@egen-civitas/esm-app-shell 2.11.1 → 3.0.1

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.
Files changed (137) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dependencies.json +0 -1
  3. package/dist/{20657ca044e03c5a.js → 3511cb52421245d2.js} +1 -1
  4. package/dist/{20657ca044e03c5a.js.map → 3511cb52421245d2.js.map} +1 -1
  5. package/dist/6dbcb5941f2df991.css +1 -0
  6. package/dist/6dbcb5941f2df991.css.map +1 -0
  7. package/dist/{6e590e5d195a54b4.js → 720dc8bd817dc618.js} +1 -1
  8. package/dist/720dc8bd817dc618.js.map +1 -0
  9. package/dist/813eae2000ea36ed.js +1 -0
  10. package/dist/813eae2000ea36ed.js.map +1 -0
  11. package/dist/{e7bbded2c2574aaf.js.map → 9b6e06745c772498.js.map} +1 -1
  12. package/dist/{124ea515e17df9d6.js → 9db69859ba0e2e39.js} +1 -1
  13. package/dist/{124ea515e17df9d6.js.map → 9db69859ba0e2e39.js.map} +1 -1
  14. package/dist/ab3e1c39f24be992.js +20 -0
  15. package/dist/ab3e1c39f24be992.js.map +1 -0
  16. package/dist/{4f17082326de0924.js → bab5d9d70fb62ab3.js} +1 -1
  17. package/dist/{4f17082326de0924.js.map → bab5d9d70fb62ab3.js.map} +1 -1
  18. package/dist/{egen.193711b6d6c5fcdf.js → egen.67e93927bb64bcfa.js} +3 -3
  19. package/dist/egen.67e93927bb64bcfa.js.map +1 -0
  20. package/dist/egen.9d32a525f71496ff.css +1 -0
  21. package/dist/{5ad49928ffd2c870.js → fa413d650533c455.js} +1 -1
  22. package/dist/fa413d650533c455.js.map +1 -0
  23. package/dist/index.html +42 -2
  24. package/package.json +4 -6
  25. package/rspack.config.js +3 -23
  26. package/src/host-incompatible.ts +1 -1
  27. package/src/index.ejs +50 -6
  28. package/src/run.ts +1 -1
  29. package/src/ui/breadcrumbs.tsx +10 -9
  30. package/tools/targets.js +1 -1
  31. package/dist/08aa56bc39f555b0.js +0 -20
  32. package/dist/08aa56bc39f555b0.js.map +0 -1
  33. package/dist/56d16b0a42960c11.css +0 -1
  34. package/dist/56d16b0a42960c11.css.map +0 -1
  35. package/dist/5ad49928ffd2c870.js.map +0 -1
  36. package/dist/5eeaed47d520b54d.js +0 -1
  37. package/dist/5eeaed47d520b54d.js.map +0 -1
  38. package/dist/67c7c33d226f8c4a.css +0 -1
  39. package/dist/67c7c33d226f8c4a.css.map +0 -1
  40. package/dist/6e590e5d195a54b4.js.map +0 -1
  41. package/dist/76aef6b4c07d22a7.js +0 -1
  42. package/dist/76aef6b4c07d22a7.js.map +0 -1
  43. package/dist/dca183c189ecf073.js +0 -1
  44. package/dist/dca183c189ecf073.js.map +0 -1
  45. package/dist/egen.193711b6d6c5fcdf.js.map +0 -1
  46. package/dist/egen.5a4d64708e9ef5e3.css +0 -1
  47. package/dist/fonts/IBMPlexMono-Italic-Cyrillic.woff2 +0 -0
  48. package/dist/fonts/IBMPlexMono-Italic-Latin1.woff2 +0 -0
  49. package/dist/fonts/IBMPlexMono-Italic-Latin2.woff2 +0 -0
  50. package/dist/fonts/IBMPlexMono-Italic-Latin3.woff2 +0 -0
  51. package/dist/fonts/IBMPlexMono-Italic-Pi.woff2 +0 -0
  52. package/dist/fonts/IBMPlexMono-Light-Cyrillic.woff2 +0 -0
  53. package/dist/fonts/IBMPlexMono-Light-Latin1.woff2 +0 -0
  54. package/dist/fonts/IBMPlexMono-Light-Latin2.woff2 +0 -0
  55. package/dist/fonts/IBMPlexMono-Light-Latin3.woff2 +0 -0
  56. package/dist/fonts/IBMPlexMono-Light-Pi.woff2 +0 -0
  57. package/dist/fonts/IBMPlexMono-LightItalic-Cyrillic.woff2 +0 -0
  58. package/dist/fonts/IBMPlexMono-LightItalic-Latin1.woff2 +0 -0
  59. package/dist/fonts/IBMPlexMono-LightItalic-Latin2.woff2 +0 -0
  60. package/dist/fonts/IBMPlexMono-LightItalic-Latin3.woff2 +0 -0
  61. package/dist/fonts/IBMPlexMono-LightItalic-Pi.woff2 +0 -0
  62. package/dist/fonts/IBMPlexMono-Regular-Cyrillic.woff2 +0 -0
  63. package/dist/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
  64. package/dist/fonts/IBMPlexMono-Regular-Latin2.woff2 +0 -0
  65. package/dist/fonts/IBMPlexMono-Regular-Latin3.woff2 +0 -0
  66. package/dist/fonts/IBMPlexMono-Regular-Pi.woff2 +0 -0
  67. package/dist/fonts/IBMPlexMono-SemiBold-Cyrillic.woff2 +0 -0
  68. package/dist/fonts/IBMPlexMono-SemiBold-Latin1.woff2 +0 -0
  69. package/dist/fonts/IBMPlexMono-SemiBold-Latin2.woff2 +0 -0
  70. package/dist/fonts/IBMPlexMono-SemiBold-Latin3.woff2 +0 -0
  71. package/dist/fonts/IBMPlexMono-SemiBold-Pi.woff2 +0 -0
  72. package/dist/fonts/IBMPlexMono-SemiBoldItalic-Cyrillic.woff2 +0 -0
  73. package/dist/fonts/IBMPlexMono-SemiBoldItalic-Latin1.woff2 +0 -0
  74. package/dist/fonts/IBMPlexMono-SemiBoldItalic-Latin2.woff2 +0 -0
  75. package/dist/fonts/IBMPlexMono-SemiBoldItalic-Latin3.woff2 +0 -0
  76. package/dist/fonts/IBMPlexMono-SemiBoldItalic-Pi.woff2 +0 -0
  77. package/dist/fonts/IBMPlexSans-Italic-Cyrillic.woff2 +0 -0
  78. package/dist/fonts/IBMPlexSans-Italic-Latin1.woff2 +0 -0
  79. package/dist/fonts/IBMPlexSans-Italic-Latin2.woff2 +0 -0
  80. package/dist/fonts/IBMPlexSans-Italic-Latin3.woff2 +0 -0
  81. package/dist/fonts/IBMPlexSans-Italic-Pi.woff2 +0 -0
  82. package/dist/fonts/IBMPlexSans-Light-Cyrillic.woff2 +0 -0
  83. package/dist/fonts/IBMPlexSans-Light-Latin1.woff2 +0 -0
  84. package/dist/fonts/IBMPlexSans-Light-Latin2.woff2 +0 -0
  85. package/dist/fonts/IBMPlexSans-Light-Latin3.woff2 +0 -0
  86. package/dist/fonts/IBMPlexSans-Light-Pi.woff2 +0 -0
  87. package/dist/fonts/IBMPlexSans-LightItalic-Cyrillic.woff2 +0 -0
  88. package/dist/fonts/IBMPlexSans-LightItalic-Latin1.woff2 +0 -0
  89. package/dist/fonts/IBMPlexSans-LightItalic-Latin2.woff2 +0 -0
  90. package/dist/fonts/IBMPlexSans-LightItalic-Latin3.woff2 +0 -0
  91. package/dist/fonts/IBMPlexSans-LightItalic-Pi.woff2 +0 -0
  92. package/dist/fonts/IBMPlexSans-Regular-Cyrillic.woff2 +0 -0
  93. package/dist/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
  94. package/dist/fonts/IBMPlexSans-Regular-Latin2.woff2 +0 -0
  95. package/dist/fonts/IBMPlexSans-Regular-Latin3.woff2 +0 -0
  96. package/dist/fonts/IBMPlexSans-Regular-Pi.woff2 +0 -0
  97. package/dist/fonts/IBMPlexSans-SemiBold-Cyrillic.woff2 +0 -0
  98. package/dist/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
  99. package/dist/fonts/IBMPlexSans-SemiBold-Latin2.woff2 +0 -0
  100. package/dist/fonts/IBMPlexSans-SemiBold-Latin3.woff2 +0 -0
  101. package/dist/fonts/IBMPlexSans-SemiBold-Pi.woff2 +0 -0
  102. package/dist/fonts/IBMPlexSans-SemiBoldItalic-Cyrillic.woff2 +0 -0
  103. package/dist/fonts/IBMPlexSans-SemiBoldItalic-Latin1.woff2 +0 -0
  104. package/dist/fonts/IBMPlexSans-SemiBoldItalic-Latin2.woff2 +0 -0
  105. package/dist/fonts/IBMPlexSans-SemiBoldItalic-Latin3.woff2 +0 -0
  106. package/dist/fonts/IBMPlexSans-SemiBoldItalic-Pi.woff2 +0 -0
  107. package/dist/fonts/IBMPlexSerif-Italic-Cyrillic.woff2 +0 -0
  108. package/dist/fonts/IBMPlexSerif-Italic-Latin1.woff2 +0 -0
  109. package/dist/fonts/IBMPlexSerif-Italic-Latin2.woff2 +0 -0
  110. package/dist/fonts/IBMPlexSerif-Italic-Latin3.woff2 +0 -0
  111. package/dist/fonts/IBMPlexSerif-Italic-Pi.woff2 +0 -0
  112. package/dist/fonts/IBMPlexSerif-Light-Cyrillic.woff2 +0 -0
  113. package/dist/fonts/IBMPlexSerif-Light-Latin1.woff2 +0 -0
  114. package/dist/fonts/IBMPlexSerif-Light-Latin2.woff2 +0 -0
  115. package/dist/fonts/IBMPlexSerif-Light-Latin3.woff2 +0 -0
  116. package/dist/fonts/IBMPlexSerif-Light-Pi.woff2 +0 -0
  117. package/dist/fonts/IBMPlexSerif-LightItalic-Cyrillic.woff2 +0 -0
  118. package/dist/fonts/IBMPlexSerif-LightItalic-Latin1.woff2 +0 -0
  119. package/dist/fonts/IBMPlexSerif-LightItalic-Latin2.woff2 +0 -0
  120. package/dist/fonts/IBMPlexSerif-LightItalic-Latin3.woff2 +0 -0
  121. package/dist/fonts/IBMPlexSerif-LightItalic-Pi.woff2 +0 -0
  122. package/dist/fonts/IBMPlexSerif-Regular-Cyrillic.woff2 +0 -0
  123. package/dist/fonts/IBMPlexSerif-Regular-Latin1.woff2 +0 -0
  124. package/dist/fonts/IBMPlexSerif-Regular-Latin2.woff2 +0 -0
  125. package/dist/fonts/IBMPlexSerif-Regular-Latin3.woff2 +0 -0
  126. package/dist/fonts/IBMPlexSerif-Regular-Pi.woff2 +0 -0
  127. package/dist/fonts/IBMPlexSerif-SemiBold-Cyrillic.woff2 +0 -0
  128. package/dist/fonts/IBMPlexSerif-SemiBold-Latin1.woff2 +0 -0
  129. package/dist/fonts/IBMPlexSerif-SemiBold-Latin2.woff2 +0 -0
  130. package/dist/fonts/IBMPlexSerif-SemiBold-Latin3.woff2 +0 -0
  131. package/dist/fonts/IBMPlexSerif-SemiBold-Pi.woff2 +0 -0
  132. package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Cyrillic.woff2 +0 -0
  133. package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Latin1.woff2 +0 -0
  134. package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Latin2.woff2 +0 -0
  135. package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Latin3.woff2 +0 -0
  136. package/dist/fonts/IBMPlexSerif-SemiBoldItalic-Pi.woff2 +0 -0
  137. /package/dist/{e7bbded2c2574aaf.js → 9b6e06745c772498.js} +0 -0
@@ -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 n,r;function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n=this,r=function(){return function(e,t,n){var r=t.prototype,i=function(e){var t=e.date,i=e.utc,o={};if(!(null===t||a(t,Date)||a(t,Array)||r.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var s=i?n.utc():n();Object.keys(t).forEach(function(e){var n;o["date"===(n=r.$utils().p(e))?"day":n]=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=r.parse;r.parse=function(e){e.date=i.bind(this)(e),o.bind(this)(e)};var s=r.set,l=r.add,u=r.subtract,c=function(e,t,n,r){void 0===r&&(r=1);var a=Object.keys(t),i=this;return a.forEach(function(n){i=e.bind(i)(t[n]*r,n)}),i};r.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)},r.add=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t):l.bind(this)(e,t)},r.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=r():"function"==typeof define&&define.amd?define(r):(n="u">typeof globalThis?globalThis:n||self).dayjs_plugin_objectSupport=r()},2147(e,t){var n,r;n=this,r=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,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 n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},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(r,a){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],i=a[0],o=60*a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(r)))return this;var o=16>=Math.abs(r)?60*r:r;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,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),a=i(e).local();return f.call(r,a,t,n)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="u">typeof globalThis?globalThis:n||self).dayjs_plugin_utc=r()},6503(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n(e,t){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");if(t=o(t),a(e,n))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],n=e.match(t);if(!n)throw TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f(n[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,n))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&&r(n.prototype,e),t&&r(n,t),n}();var o=n(6480),s=n(4299),l=s.safeRe,u=s.t,c=n(570),d=n(7139),f=n(7583),p=n(7490)},7490(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){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,n){var r=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(n=s(n),a(e,t))if(!!n.loose===e.loose&&!!n.includePrerelease===e.includePrerelease)return e;else return new t(e.raw,n);if(a(e,l))return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(i," "),this.set=this.raw.split("||").map(function(e){return r.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],n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].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,n=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,n.options)}).join(" ").split(/\s+/).map(function(e){return R(e,n.options)});s&&(d=d.filter(function(e){return u("loose invalid filter",e,n.options),!!e.match(f[h.COMPARATORLOOSE])})),u("range list",d);var p=new Map,g=d.map(function(e){return new l(e,n.options)}),j=!0,O=!1,E=void 0;try{for(var A,D=g[Symbol.iterator]();!(j=(A=D.next()).done);j=!0){var P=A.value;if(S(P))return[P];p.set(P.value,P)}}catch(e){O=!0,E=e}finally{try{j||null==D.return||D.return()}finally{if(O)throw E}}p.size>1&&p.has("")&&p.delete("");var T=function(e){if(Array.isArray(e))return r(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 r(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 r(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,T),T}},{key:"intersects",value:function(e,n){if(!a(e,t))throw TypeError("a Range is required");return this.set.some(function(t){return O(t,n)&&e.set.some(function(e){return O(e,n)&&t.every(function(t){return e.every(function(e){return t.intersects(e,n)})})})})}},{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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}();var o=new(n(3235)),s=n(6480),l=n(6503),u=n(7139),c=n(7583),d=n(4299),f=d.safeRe,p=d.src,h=d.t,m=d.comparatorTrimReplace,y=d.tildeTrimReplace,v=d.caretTrimReplace,g=n(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 n=!0,r=e.slice(),a=r.pop();n&&r.length;)n=r.every(function(e){return a.intersects(e,t)}),a=r.pop();return n},k=function(e,t){return u("comp",e=e.replace(f[h.BUILD],""),t),u("caret",e=P(e,t)),u("tildes",e=A(e,t)),u("xrange",e=C(e,t)),u("stars",e=M(e,t)),e},E=function(e){return!e||"x"===e.toLowerCase()||"*"===e},A=function(e,t){return e.trim().split(/\s+/).map(function(e){return D(e,t)}).join(" ")},D=function(e,t){var n=t.loose?f[h.TILDELOOSE]:f[h.TILDE],r=t.includePrerelease?"-0":"";return e.replace(n,function(t,n,a,i,o){var s;return u("tilde",e,t,n,a,i,o),E(n)?s="":E(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):E(i)?s=">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):o?(u("replaceTilde pr",o),s=">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0")):s=">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(+a+1,".0-0"),u("tilde return",s),s})},P=function(e,t){return e.trim().split(/\s+/).map(function(e){return T(e,t)}).join(" ")},T=function(e,t){u("caret",e,t);var n=t.loose?f[h.CARETLOOSE]:f[h.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,function(t,n,a,i,o){var s;return u("caret",e,t,n,a,i,o),E(n)?s="":E(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):E(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):o?(u("replaceCaret pr",o),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(+n+1,".0.0-0")):(u("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),u("caret return",s),s})},C=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 n=t.loose?f[h.XRANGELOOSE]:f[h.XRANGE];return e.replace(n,function(n,r,a,i,o,s){if(u("xRange",e,n,r,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"="===r&&h&&(r=""),s=t.includePrerelease?"-0":"",f?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(p&&(i=0),o=0,">"===r?(r=">=",p?(a=+a+1,i=0):i=+i+1,o=0):"<="===r&&(r="<",p?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(o).concat(s)):p?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):h&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),u("xRange return",n),n})},M=function(e,t){return u("replaceStars",e,t),e.trim().replace(f[h.STAR],"")},R=function(e,t){return u("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?h.GTE0PRE:h.GTE0],"")},I=function(e){return function(t,n,r,a,i,o,s,l,u,c,d,f){return n=E(r)?"":E(a)?">=".concat(r,".0.0").concat(e?"-0":""):E(i)?">=".concat(r,".").concat(a,".0").concat(e?"-0":""):o?">=".concat(n):">=".concat(n).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(n," ").concat(l).trim()}},L=function(e,t,n){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.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,n){"use strict";function r(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a=n(7139),i=n(9345),o=i.MAX_LENGTH,s=i.MAX_SAFE_INTEGER,l=n(4299),u=l.safeRe,c=l.t,d=n(6480),f=n(6640).compareIdentifiers,p=function(e,t){var n=t.split(".");if(n.length>e.length)return!1;for(var r=0;r<n.length;r++)if(0!==f(e[r],n[r]))return!1;return!0};e.exports=function(){var e;function t(e,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(n=d(n),r(e,t))if(!!n.loose===e.loose&&!!n.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,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var i,l=e.trim().match(n.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),!r(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(r(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(r(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 n=0;do{var i=this.prerelease[n],o=e.prerelease[n];if(a("prerelease compare",n,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(++n)}},{key:"compareBuild",value:function(e){r(e,t)||(e=new t(e,this.options));var n=0;do{var i=this.build[n],o=e.build[n];if(a("build compare",n,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(++n)}},{key:"inc",value:function(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){var r="-".concat(t).match(this.options.loose?u[c.PRERELEASELOOSE]:u[c.PRERELEASE]);if(!r||r[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,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);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(n);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===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){var o=[t,a];!1===n&&(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},5995(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},570(e,t,n){"use strict";function r(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var a=n(6534),i=n(9962),o=n(4907),s=n(9928),l=n(6228),u=n(4401);e.exports=function(e,t,n,c){switch(t){case"===":return(void 0===e?"undefined":r(e))==="object"&&(e=e.version),(void 0===n?"undefined":r(n))==="object"&&(n=n.version),e===n;case"!==":return(void 0===e?"undefined":r(e))==="object"&&(e=e.version),(void 0===n?"undefined":r(n))==="object"&&(n=n.version),e!==n;case"":case"=":case"==":return a(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return s(e,n,c);case"<":return l(e,n,c);case"<=":return u(e,n,c);default:throw TypeError("Invalid operator: ".concat(t))}}},5877(e,t,n){"use strict";var r=n(7583),a=n(5749),i=n(4299),o=i.safeRe,s=i.t;e.exports=function(e,t){if(i=e,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](i):i instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var i,l,u=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];(l=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&l.index+l[0].length===n.index+n[0].length||(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}else n=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===n)return null;var c=n[2],d=n[3]||"0",f=n[4]||"0",p=t.includePrerelease&&n[5]?"-".concat(n[5]):"",h=t.includePrerelease&&n[6]?"+".concat(n[6]):"";return a("".concat(c,".").concat(d,".").concat(f).concat(p).concat(h),t)}},2740(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n){var a=new r(e,n),i=new r(t,n);return a.compare(i)||a.compareBuild(i)}},9478(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t){return r(e,t,!0)}},2057(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n){return new r(e,n).compare(new r(t,n))}},6003(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,null,!0),a=r(t,null,!0),i=n.compare(a);if(0===i)return null;var o=i>0,s=o?n:a,l=o?a:n,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 n.major!==a.major?c+"major":n.minor!==a.minor?c+"minor":n.patch!==a.patch?c+"patch":"prerelease"}},6534(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0===r(e,t,n)}},4907(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(e,t,n)>0}},9928(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(e,t,n)>=0}},4006(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n,a,i){"string"==typeof n&&(i=a,a=n,n=void 0);try{return new r((null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)?e.version:e,n).inc(t,a,i).version}catch(e){return null}}},6228(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0>r(e,t,n)}},4401(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0>=r(e,t,n)}},9211(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).major}},2895(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).minor}},9962(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0!==r(e,t,n)}},5749(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},6008(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).patch}},510(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},6153(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(t,e,n)}},9268(e,t,n){"use strict";var r=n(2740);e.exports=function(e,t){return e.sort(function(e,n){return r(n,e,t)})}},5775(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t,n){try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},4372(e,t,n){"use strict";var r=n(2740);e.exports=function(e,t){return e.sort(function(e,n){return r(e,n,t)})}},7406(e,t,n){"use strict";var r=n(5749),a=n(9345),i=n(7583),o=function(e,t){return r((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,n){if(!a.RELEASE_TYPES.includes(t))return null;var r=o(e,n);return r&&s(r,t)}},3440(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,t);return n?n.version:null}},8164(e,t,n){"use strict";var r=n(4299),a=n(9345),i=n(7583),o=n(6640);e.exports={parse:n(5749),valid:n(3440),clean:n(5995),inc:n(4006),diff:n(6003),major:n(9211),minor:n(2895),patch:n(6008),prerelease:n(510),compare:n(2057),rcompare:n(6153),compareLoose:n(9478),compareBuild:n(2740),sort:n(4372),rsort:n(9268),gt:n(4907),lt:n(6228),eq:n(6534),neq:n(9962),gte:n(9928),lte:n(4401),cmp:n(570),coerce:n(5877),truncate:n(7406),Comparator:n(6503),Range:n(7490),satisfies:n(5775),toComparators:n(7690),maxSatisfying:n(5901),minSatisfying:n(6975),minVersion:n(8158),validRange:n(3429),outside:n(3452),gtr:n(2560),ltr:n(9801),intersects:n(453),simplifyRange:n(1784),subset:n(7885),SemVer:i,re:r.re,src:r.src,tokens:r.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,n;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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(n=console).error.apply(n,["SEMVER"].concat(function(e){if(Array.isArray(e))return r(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 r(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 r(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]+$/,n=function(e,n){if("number"==typeof e&&"number"==typeof n)return e===n?0:e<n?-1:1;var r=t.test(e),a=t.test(n);return r&&a&&(e*=1,n*=1),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:function(e,t){return n(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 n=this.map.keys().next().value;this.delete(n)}this.map.set(e,t)}return this}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},6480(e){"use strict";var t=Object.freeze({loose:!0}),n=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:n}},4299(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(9345),i=a.MAX_SAFE_COMPONENT_LENGTH,o=a.MAX_SAFE_BUILD_LENGTH,s=a.MAX_LENGTH,l=n(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,n=!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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return r(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 r(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){n=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw a}}return e},g=function(e,t,n){var r=v(t),a=h++;l(e,a,t),p[e]=a,d[a]=t,f[a]=r,u[a]=new RegExp(t,n?"g":void 0),c[a]=new RegExp(r,n?"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,n){"use strict";var r=n(3452);e.exports=function(e,t,n){return r(e,t,">",n)}},453(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t,n){return e=new r(e,n),t=new r(t,n),e.intersects(t,n)}},9801(e,t,n){"use strict";var r=n(3452);e.exports=function(e,t,n){return r(e,t,"<",n)}},5901(e,t,n){"use strict";var r=n(7583),a=n(7490);e.exports=function(e,t,n){var i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||-1===o.compare(e))&&(o=new r(i=e,n))}),i}},6975(e,t,n){"use strict";var r=n(7583),a=n(7490);e.exports=function(e,t,n){var i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||1===o.compare(e))&&(o=new r(i=e,n))}),i}},8158(e,t,n){"use strict";var r=n(7583),a=n(7490),i=n(4907);e.exports=function(e,t){e=new a(e,t);var n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=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 r(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&&(!n||i(n,o))&&(n=o)}(o);return n&&e.test(n)?n:null}},3452(e,t,n){"use strict";var r=n(7583),a=n(6503),i=a.ANY,o=n(7490),s=n(5775),l=n(4907),u=n(6228),c=n(4401),d=n(9928);e.exports=function(e,t,n,f){var p,h,m,y,v;switch(e=new r(e,f),t=new o(t,f),n){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(n){var r=t.set[n],o=null,s=null;return(r.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,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(5775),i=n(2057);e.exports=function(e,t,n){var o=[],s=null,l=null,u=e.sort(function(e,t){return i(e,t,n)}),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,n)?(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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(S)||function(e){if(e){if("string"==typeof e)return r(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 r(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(" || "),A="string"==typeof t.raw?t.raw:String(t);return E.length<A.length?E:t}},7885(e,t,n){"use strict";var r=n(7490),a=n(6503),i=a.ANY,o=n(5775),s=n(2057),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=function(e,t,n){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=n.includePrerelease?l:u;if(1===t.length&&t[0].semver===i)if(n.includePrerelease)return!0;else t=u;var r=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,n):"<"===g.operator||"<="===g.operator?m=f(m,g,n):r.add(g.semver)}}catch(e){c=!0,p=e}finally{try{a||null==v.return||v.return()}finally{if(c)throw p}}if(r.size>1)return null;if(h&&m&&((S=s(h.semver,m.semver,n))>0||0===S&&(">="!==h.operator||"<="!==m.operator)))return null;var b=!0,x=!1,w=void 0;try{for(var S,j,O=r[Symbol.iterator]();!(b=(j=O.next()).done);b=!0){var k=j.value;if(h&&!o(k,String(h),n)||m&&!o(k,String(m),n))return null;var E=!0,A=!1,D=void 0;try{for(var P,T=t[Symbol.iterator]();!(E=(P=T.next()).done);E=!0){var C=P.value;if(!o(k,String(C),n))return!1}}catch(e){A=!0,D=e}finally{try{E||null==T.return||T.return()}finally{if(A)throw D}}return!0}}catch(e){x=!0,w=e}finally{try{b||null==O.return||O.return()}finally{if(x)throw w}}var N=!!m&&!n.includePrerelease&&!!m.semver.prerelease.length&&m.semver,M=!!h&&!n.includePrerelease&&!!h.semver.prerelease.length&&h.semver;N&&1===N.prerelease.length&&"<"===m.operator&&0===N.prerelease[0]&&(N=!1);var R=!0,I=!1,L=void 0;try{for(var F,B,V,z,W,U=t[Symbol.iterator]();!(R=(W=U.next()).done);R=!0){var $=W.value;if(z=z||">"===$.operator||">="===$.operator,V=V||"<"===$.operator||"<="===$.operator,h){if(M&&$.semver.prerelease&&$.semver.prerelease.length&&$.semver.major===M.major&&$.semver.minor===M.minor&&$.semver.patch===M.patch&&(M=!1),">"===$.operator||">="===$.operator){if((F=d(h,$,n))===$&&F!==h)return!1}else if(">="===h.operator&&!$.test(h.semver))return!1}if(m){if(N&&$.semver.prerelease&&$.semver.prerelease.length&&$.semver.major===N.major&&$.semver.minor===N.minor&&$.semver.patch===N.patch&&(N=!1),"<"===$.operator||"<="===$.operator){if((B=f(m,$,n))===$&&B!==m)return!1}else if("<="===m.operator&&!$.test(m.semver))return!1}if(!$.operator&&(m||h)&&0!==S)return!1}}catch(e){I=!0,L=e}finally{try{R||null==U.return||U.return()}finally{if(I)throw L}}return(!h||!V||!!m||0===S)&&(!m||!z||!!h||0===S)&&!M&&!N&&!0},d=function(e,t,n){if(!e)return t;var r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},f=function(e,t,n){if(!e)return t;var r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new r(e,n),t=new r(t,n);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,n);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,n){"use strict";var r=n(7490);e.exports=function(e,t){return new r(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}},3429(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t){try{return new r(e,t).range||"*"}catch(e){return null}}},5898(e,t,n){"use strict";n.d(t,{KM:()=>d,Mj:()=>c,Z4:()=>h,j6:()=>m});var r=n(4942);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}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 n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}function c(e){return o(i({},e),{keys:e.keys.map(function(e){var t={},n=!0,a=!1,l=void 0;try{for(var u,c,d,f,p=Object.entries(null!=(u=e.pose)?u:{})[Symbol.iterator]();!(n=(f=p.next()).done);n=!0){var h=s(f.value,2),m=h[0],y=h[1],v=(0,r.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{n||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}),n=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],A=n.get(k);A||n.set(k,A={times:[],values:[]}),A.times.push(m.t),A.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 D=!0,P=!1,T=void 0;try{for(var C,N=n[Symbol.iterator]();!(D=(C=N.next()).done);D=!0){var M=s(C.value,2),R=M[0],I=M[1],L=r.v$[R];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){P=!0,T=e}finally{try{D||null==N.return||N.return()}finally{if(P)throw T}}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:n,lift:F,hands:i}}var f=function(e){return e*e*(3-2*e)};function p(e,t){var n=e.times,r=e.values;if(t<=n[0])return r[0];var a=n.length-1;if(t>=n[a])return r[a];for(var i=0;i<a&&n[i+1]<t;)i++;var o=n[i],s=n[i+1],l=s>o?f((t-o)/(s-o)):1,u=r[i],c=r[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 n=e.loop?t%e.duration:Math.min(t,e.duration),r={},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];r[d]=p(f,n)}}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<=n&&(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:r,hands:h,lift:e.lift?p(e.lift,n)[0]:0}}function m(e,t,n,r){var a=e.fadeIn>0?Math.min(1,t/e.fadeIn):1,i=1;return n?i=e.fadeOut>0?Math.max(0,1-(t-r)/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,n){"use strict";n.d(t,{L:()=>g});var r=n(5898),a=n(9881),i=n(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 n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}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 n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e,t,n,r){return e+(t-e)*(1-Math.exp(-n*r))},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,n,r,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!=(n=a.seed)?n: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==(r=a.autoBehaviors)||r,this.nextBlinkAt=1.5+2*this.rand()}return e=[{key:"play",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.q5)(e,null!=(t=n.side)?t:"L");return this.start(r,(a.kh[e],1),n)}},{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,n=!1,r=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){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}},{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 n,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==(n=this.walkTarget)||n.resolve(),new Promise(function(n){var i;r.walkTarget={x:e,z:t,arriveYaw:null!=(i=a.arriveYaw)?i:null,resolve:n}})}},{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 n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(e){c(i,r,a,o,s,"next",e)}function s(e){c(i,r,a,o,s,"throw",e)}o(void 0)})}).call(this)}},{key:"reachAt",value:function(e,t){var n=this.reach[e];n.active=null!==t,t&&(n.target=f(t))}},{key:"toRobotFrame",value:function(e,t,n){var r=e-this.root.x,a=n-this.root.z,i=Math.cos(this.root.yaw),o=Math.sin(this.root.yaw);return[r*i-a*o,t-this.root.lift,r*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 n=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];n[c][0]=f[0],n[c][1]=f[1],n[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(n),this.updateLocomotion(t),this.applyGait(n);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,r.j6)(w.clip,w.time,w.stopping,w.stopTime);if(!(S<=0)){var j=(0,r.Z4)(w.clip,w.time),O=!0,k=!1,E=void 0;try{for(var A,D=Object.entries(j.pose)[Symbol.iterator]();!(O=(A=D.next()).done);O=!0){var P=d(A.value,2),T=P[0],C=P[1],N=n[T];N[0]+=(C[0]-N[0])*S,N[1]+=(C[1]-N[1])*S,N[2]+=(C[2]-N[2])*S}}catch(e){k=!0,E=e}finally{try{O||null==D.return||D.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(n,t);var M=!0,R=!1,I=void 0;try{for(var L,F=i.qS[Symbol.iterator]();!(M=(L=F.next()).done);M=!0){var B=L.value,V=(0,i.FW)(B,n[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){R=!0,I=e}finally{try{M||null==F.return||F.return()}finally{if(R)throw I}}this.updateHands(t,h),this.root.lift=m(this.root.lift,p+this.walkBob(),24,t);for(var U=0,$=["L","R"];U<$.length;U++){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,n){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,r.KM)(n.loop?(a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(i)).forEach(function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(i,e))}),a):e);return new Promise(function(e){var r;o.players.push({id:o.nextId++,clip:p,time:0,speed:null!=(r=n.speed)?r:1,stopping:!1,stopTime:0,priority:t,resolve:e,loopOverride:!!n.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,n=!1,r=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){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}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)],n=this.rand()>.5?"L":"R",r=(0,a.q5)(t,n);this.start(r,0,{speed:.9+.3*this.rand()}),this.nextTalkAt=e+r.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,n=this.root.yaw,r=!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,r=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-n)/e;var f=Math.abs(this.yawRate)>.5;if(this.walkBlend=m(this.walkBlend,r||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 n=this.walkPhase,r=Math.sin(n),a=Math.cos(n),i=.5*Math.min(1,.4+(this.speed+.1*Math.abs(this.yawRate))/.9),o=function(n,r){var a=e[n];a[0]+=(r[0]-a[0])*t,a[1]+=(r[1]-a[1])*t,a[2]+=(r[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*r,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*r,0]),o("chest",[0,.14*r,0]),o("hips",[0,.1*r,.03*a])}}},{key:"applyAdditive",value:function(e,t){var n,r=this.time,a=Math.sin(1.55*r);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*r)*(1-this.walkBlend),e.hips[2]+=.012*Math.sin(.31*r+.7)*(1-this.walkBlend),e.head[2]+=.014*Math.sin(.71*r+1.1),"speaking"===this.state){var i=.02+.1*this.speechLevel;e.head[0]+=Math.sin(7.3*r)*i*.6+Math.sin(3.1*r)*i,e.head[1]+=Math.sin(2.3*r)*i*1.5}var o=null!=(n=this.gazeManual)?n: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 n=0,r=["L","R"];n<r.length;n++){var a=r[n],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,n){var r="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,-r*u*s[o]],d=[0,0,-r*u*l[o]];"thumb"===i&&(c[0]=-n),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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},9881(e,t,n){"use strict";n.d(t,{AT:()=>h,kh:()=>f,q5:()=>m,rG:()=>p});var r=n(5898);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),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,r.Mj)(e);return o(i({},e),{keys:e.keys.map(function(e,n){var r,a,s,l;return o(i({},e),{pose:i({},null!=(r=e.pose)?r:{},null!=(a=t.keys[n].pose)?a:{}),hands:i({},null!=(s=e.hands)?s:{},null!=(l=t.keys[n].hands)?l:{})})})})}function u(e,t,n,r,a){for(var i=[],o=0;o<2*n;o++)i.push({t:e+o*t/2,pose:o%2==0?r: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",n=f[e];return n.sided&&"R"===t?(0,r.Mj)(n.def):n.def}},4942(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n.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,n){return[e,t,n]},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,n){e[t]=n};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 n=!0,p=!1,h=void 0;try{for(var m,y=s[Symbol.iterator]();!(n=(m=y.next()).done);n=!0)!function(){var e=m.value,n="L"===e?1:-1,s=function(e,t){return 1===n?{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(n*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(n*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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(b)||function(e){if(e){if("string"==typeof e)return r(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 r(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(n*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{n||null==y.return||y.return()}finally{if(p)throw h}}return e}(),h=Object.keys(p),m=function(){var e={},t=!0,n=!1,r=void 0;try{for(var a,i=h[Symbol.iterator]();!(t=(a=i.next()).done);t=!0)e[a.value]=[]}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}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,n=!1,r=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){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}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 n=p[e],r=n.min,a=n.max;return[Math.min(a[0],Math.max(r[0],t[0])),Math.min(a[1],Math.max(r[1],t[1])),Math.min(a[2],Math.max(r[2],t[2]))]}},1017(e,t,n){"use strict";n.d(t,{u:()=>o});var r=n(3645),a=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],i={primaryColor:{_type:r.Type.String,_description:"The color for displaying primary classification tags",_default:"red",_validators:[r.validators.oneOf(a)]},secondaryColor:{_type:r.Type.String,_description:"The color for displaying secondary classification tags",_default:"blue",_validators:[r.validators.oneOf(a)]}},o={"Brand color #1":{_default:"#005d5d",_type:r.Type.String},"Brand color #2":{_default:"#004144",_type:r.Type.String},"Brand color #3":{_default:"#007d79",_type:r.Type.String},implementationName:{_type:r.Type.String,_description:"The name of the deployment or authority displayed in the UI.",_default:"Framework"},preferredCalendar:{_type:r.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:[r.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:r.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:r.Type.String}},classificationTags:i}},2657(e,t,n){"use strict";let r,a,i,o,s,l,u;n.d(t,{dNG:()=>m2,JTN:()=>oq,_RD:()=>y5,FNf:()=>PH,eCO:()=>ou,CW5:()=>EE,rGP:()=>kY,wmT:()=>EW,Xhy:()=>T0,ozP:()=>gi,aRn:()=>O,ttj:()=>TX,e_T:()=>vn,id:()=>so,fNA:()=>j2,vFG:()=>oR,whL:()=>N4,uBm:()=>gt,yBj:()=>oB,_f_:()=>Ps,Q5Y:()=>TA,lbO:()=>kP,kNS:()=>jW,nFg:()=>oP,y0l:()=>TO,rGw:()=>NL.rG,KGd:()=>P4,ivh:()=>TE,Lfm:()=>o2,gHx:()=>kh,Vsm:()=>TB,Pfj:()=>Ny,WO_:()=>ge,T7Q:()=>kN,iq0:()=>Th,SvQ:()=>y$,QsE:()=>Ep,ilK:()=>yf,toY:()=>hZ,d4y:()=>N9,P0c:()=>yB,gpz:()=>mq,O3W:()=>kq,c0o:()=>km,EPe:()=>hY,jCr:()=>gE,No8:()=>ks,zYs:()=>mK,lgu:()=>NC,mOW:()=>N6,dKS:()=>mZ,Bic:()=>k$,LdX:()=>TP,lFh:()=>Tm,Uve:()=>sl,XWY:()=>kO,CU$:()=>my,ctS:()=>y7,Wjo:()=>gp,nBS:()=>Td,o81:()=>NP,pm$:()=>om,Hwc:()=>kT,W5n:()=>ln,XWC:()=>jX,ZyP:()=>mb,NIm:()=>Oh,Kz$:()=>mB,P8U:()=>jA,EiO:()=>E9,m9A:()=>yw,BM2:()=>PK,Wdn:()=>oS,GF9:()=>Pi,Fny:()=>jx,WyE:()=>vd,qUP:()=>oE,z0Y:()=>mN,wn6:()=>Tw,cJy:()=>v9,YP7:()=>jF,ZLm:()=>yu,LPu:()=>oX,uTG:()=>mV,ncA:()=>Oy,EDM:()=>vl,i_j:()=>kX,b6Z:()=>TD,aJF:()=>o1,uge:()=>kM,mqB:()=>F,Dsh:()=>mv,pdq:()=>kA,pyx:()=>T5,Qsg:()=>jZ,ZLW:()=>kJ,cjw:()=>jQ,SwV:()=>od,UcB:()=>kL,GGC:()=>U,mmM:()=>oo,Nqf:()=>mF,tKr:()=>s8,Kpk:()=>oi,gCo:()=>EL,JJd:()=>oc,Ua6:()=>le,hae:()=>jK,lq$:()=>oK,QeH:()=>AB,lok:()=>yD,uDL:()=>Pp,gz6:()=>ko,pJo:()=>S6,Fmw:()=>yq,y8:()=>yN,D3D:()=>oy,BIq:()=>NA,x9q:()=>y3,YJP:()=>ov,uWG:()=>yj,REV:()=>ot,frg:()=>Ef,OeE:()=>yX,ZLN:()=>on,CTc:()=>os,paI:()=>P9,osL:()=>sn,MiD:()=>NN,EJV:()=>o7,drd:()=>h3,mIk:()=>TW,flY:()=>oa,tp2:()=>Om,OoY:()=>NS,F$l:()=>Eg,b1c:()=>o6,T7$:()=>CU,zfR:()=>mg,ICb:()=>k1,iRo:()=>E7,d1P:()=>yS,QpY:()=>s9,xlj:()=>kC,q__:()=>m4,s3U:()=>ok,XvC:()=>vG,Ycj:()=>Ph,_Jn:()=>N8,kxh:()=>S9,bmf:()=>m8,GcC:()=>mD,ckU:()=>K,tdF:()=>yc,EA:()=>p,bqE:()=>EM,bF1:()=>m9,JvV:()=>NI,npY:()=>oe,Ddn:()=>P8,wwY:()=>oG,foY:()=>kx,hPu:()=>EA,pYV:()=>o4,_kB:()=>js,Xac:()=>Ck,eFc:()=>TJ,yde:()=>jN,iVR:()=>Mt,gFP:()=>TV,v99:()=>yb,Pyy:()=>oT,lyJ:()=>oV,qb_:()=>yr,pyG:()=>oj,A60:()=>or,Ogf:()=>C2,AFR:()=>C4,aiS:()=>Tq,PtA:()=>ss,Fm9:()=>jq,C44:()=>Nv,TC2:()=>yK,slS:()=>lt,CGR:()=>jz,Apm:()=>PG,AnT:()=>ky,vY7:()=>Pq,jT8:()=>Ab,FtQ:()=>oh,ofx:()=>N5,PK0:()=>E8,KFv:()=>m7,OFC:()=>Ei,ZrL:()=>oM,oVc:()=>Ek,mjw:()=>NR,Eg0:()=>hQ,OC$:()=>o3,Nvq:()=>T9,p4K:()=>k7,u7L:()=>kj,Y26:()=>S8,SLu:()=>Cv,WIv:()=>oQ,BDu:()=>O9,$Kb:()=>kk,MO4:()=>se,qLc:()=>ju,RPL:()=>kg,dwU:()=>o8,bDP:()=>ol,O_s:()=>s1,USm:()=>ox,G3_:()=>Ak,uFu:()=>oF,rmb:()=>CB,biy:()=>v4,cn:()=>mP,GYk:()=>v3,_PX:()=>jE,SCH:()=>op,koC:()=>hM,_e_:()=>oN,G_3:()=>y8,_1W:()=>vt,rv3:()=>oz,XaH:()=>oA,AOq:()=>E0,RFy:()=>o0,x4I:()=>NT,SnF:()=>P0,F3N:()=>yZ,LMw:()=>N_.L,CH0:()=>y9,qpM:()=>jY,NGl:()=>E5,RGi:()=>Pm,BpM:()=>m_,cxd:()=>Y,wJ8:()=>Cz,n$t:()=>hP,RJr:()=>Ml,_Xm:()=>oL,Km0:()=>Ng,Y21:()=>m3,uQc:()=>oC,lHJ:()=>k0,XzH:()=>y4,DYW:()=>mR,Tqd:()=>kw,vKP:()=>og,aN0:()=>function e(t,n){var r,a=(0,h_.Q_)(t),i=n.state,o=n.onWorkspaceGroupLaunch,s=n.workspaceGroupCleanup,l=n.workspaceToLaunch,u=function(){return y3}();if(u.getState().openWorkspaces.length){var c=u.getState().workspaceGroup;c?yH(null==c?void 0:c.name,function(){e(t,n)}):y8(function(){e(t,n)})}else u.setState(function(e){return yU(yW({},e),{workspaceGroup:{name:t,members:a.members,cleanup:s}})}),vn(t,i),null==o||o(),l&&yK(l.name,null!=(r=l.additionalProps)?r:{})},vNL:()=>N3,nys:()=>sr,DWK:()=>A_,BGy:()=>oU,X3I:()=>Tp,KId:()=>jT,tMf:()=>vT,EDr:()=>yg,vJW:()=>m1,yDT:()=>st,YpM:()=>Tk,sCq:()=>jD,TQT:()=>q,pd:()=>kB,PAB:()=>Mv,Zqu:()=>Eh,AkA:()=>v7,oSs:()=>kr,JrA:()=>lr,Ce6:()=>oO,tyG:()=>Ca,Rt$:()=>oI,Plc:()=>Nd,BT6:()=>o_,Oi_:()=>sa,hpF:()=>kn,Pe5:()=>C$,NNe:()=>S7,l6P:()=>EP,uQD:()=>B.u,NOx:()=>mL,zLd:()=>O7,Int:()=>sc,oCk:()=>ow,Jbi:()=>PW,KbA:()=>o5,Ws0:()=>Me,Qnn:()=>NQ,pTx:()=>v5,SwB:()=>o9,zkr:()=>kR,MJ8:()=>y0,SKX:()=>m5,AA7:()=>Tz,qXl:()=>E6,JKc:()=>y1,zlb:()=>yQ,WMK:()=>y,rZj:()=>oH,KKH:()=>m6,Fe_:()=>PY,cQD:()=>oY,Jc:()=>oD,lA$:()=>kE,Rnm:()=>oW,Zes:()=>oJ,aHM:()=>yh,f1b:()=>yF,D6i:()=>j6,PPo:()=>o$,IHy:()=>kU,cBB:()=>CV,NAP:()=>oZ,oy0:()=>su,lu9:()=>Mn,Mtm:()=>ob,kE8:()=>i7,ZHE:()=>of,wtE:()=>Oc,aXL:()=>kb,tCQ:()=>si,hLN:()=>v8,a8E:()=>kF});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=n(2883),g=n(8783),b=n.n(g),x=n(9663),w=n.n(x),S=n(7388);function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){var t,n=e.title,r=e.children,a="tablet"===(0,S.useLayoutType)();return(0,v.jsxs)("div",{className:w()((j(t={},"Vkmd-M3ZdPZe+c6OloVbnw==",a),j(t,"ocWGqN+S6wY3-wV0QG3pOw==",!a),t)),children:[(0,v.jsx)("h4",{children:n}),r]})}let k={card:"xY-hjnMj2Vhb3NXpN1HzQQ==",content:"gtaa8ThYG84yx53YeLa39Q==",title:"e1HZjiL1P-XgmgMdGZsPDA==",description:"UZ1UltB3v6g6dVcdmKZSFg==","card--default":"_31cbAPdcvXMVx5O8ZFyHeg==","card--dots":"kO1dmpc37xfNzZfZ5pTHBw==",hLineTop:"_8HsRyQKGDhsCaZ-kREjyVw==",hLineBottom:"ZZDCyLFNUAKpiGi6n-shAQ==",dotsFrame:"BCFjDcyKcFZlZqoa3t6lOg==",dotsGrid:"_7PFHoKqERi5GXdUZ6HAuPw==",dot:"ROnKesaIAN68AZ35f5+sDg==",dotsInner:"_986dypuAW0G1ypk84XA88A==","card--gradient":"mj83Zsyhev1OZshBKkb1iA==",gradientLineTop:"m1SGh5vNmhhfAY98gfr+QA==",gradientLineBottom:"KBCAwgrsoY7-dvt2GhMU2w==",gradientSideLeft:"tiUBDDY8Au-1arWuyojnRg==",gradientSideRight:"EUGUmYnGW908QRwyd6PjPA==",gradientInner:"Auxn3dhfk0IFhyo7u92q3Q==","card--plus":"zZhYiUShtg81oZa8dfyL8Q==",plusIcon:"RBEQhWdrHdEVlT9FD9pDcw==","plusIcon--topLeft":"aznYnJ0jHj8iO5RqNcoDzg==","plusIcon--topRight":"C3kihD1fEE2RDqM-EkL3qA==","plusIcon--bottomLeft":"GZOruZH1iBepzH5y-caEPw==","plusIcon--bottomRight":"FAufx9GojvBX0BR5R4jHag==","card--neubrutalism":"TzwGTGmOKN521-9GKgM3CA==","card--inner":"_7F06d0fmL+k0+GoI-jJJHQ==",innerPanel:"kd+9ACDN7VmUHuFd6NU16A==","card--lifted":"_0Y37o+L7KDOcK9eSOh3Pmg==","card--corners":"zpT+IrBZGp9wUrJE9TSNsg==",cornerBracket:"+5UNj3yT+4ObxnsZHsca+g==","cornerBracket--topLeft":"WdsryH2D9JjEzWSzc7YD+A==","cornerBracket--topRight":"_620KZHKAClNQtKPLDuQNJw==","cornerBracket--bottomLeft":"LUtOIpYoA9CKcWIB5WBUSw==","cornerBracket--bottomRight":"pMjLtlazZqXeonjgX3aU5g==","card--glass":"krTNomK41WCUElSE3Wm3yg==","card--mirror":"rsdHzWYe6nr2mHqiRKV29Q==",mirrorSurface:"uj-xxJmQ4tFQGOBeAgUqlg==",mirrorShadow:"AFWMLjsCN6T34CLjglwuiA==","mirrorSurface--sm":"hN2+kcLxmWrZs4eVlKcEPw==","mirrorSurface--default":"CTQ+aR5eT0ezIF9LbKQE2g==","mirrorSurface--lg":"QyGzH3w3+zadG4Gjh-U44w==","mirrorSurface--icon":"ivg5LA5pTCCEwGWWFD5MEg=="};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"}})]})})]})},A=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})]})},D=["topLeft","topRight","bottomLeft","bottomRight"],P=function(){return(0,v.jsx)(v.Fragment,{children:D.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)})})},T=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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e){if(Array.isArray(e))return e}function M(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function L(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}}var F=(0,g.forwardRef)(function(e,t){var n,r=N(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||L(n)||M(),a=r[0],i=r.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 n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["variant","size","title","description","children","className","style","contentClassName","contentStyle","dotsColor"]),b=(N(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||L(i,1)||M())[0],x=(0,v.jsxs)("div",{className:w()(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]}),S=w()(k.card,k["card--".concat(s)],f);switch(s){case"dots":return(0,v.jsxs)("div",I(R({ref:b,className:S,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(R({ref:b,className:S,style:p},g),{children:[(0,v.jsx)(A,{}),(0,v.jsx)("div",{className:k.gradientInner,children:x})]}));case"inner":return(0,v.jsx)("div",I(R({ref:b,className:S,style:p},g),{children:(0,v.jsx)("div",{className:k.innerPanel,children:x})}));case"plus":return(0,v.jsxs)("div",I(R({ref:b,className:S,style:p},g),{children:[(0,v.jsx)(P,{}),x]}));case"corners":return(0,v.jsxs)("div",I(R({ref:b,className:S,style:p},g),{children:[(0,v.jsx)(T,{}),x]}));case"mirror":return(0,v.jsxs)("div",I(R({ref:b,className:S,style:p},g),{children:[(0,v.jsx)("div",{className:w()(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(R({ref:b,className:S,style:p},g),{children:x}))}});F.displayName="DecoratedCard";var B=n(1017),V=n(8300),z=n(5565),W={"carbon.table.batch.cancel":"cancel","carbon.table.batch.items.selected":"batchActionsItemsSelected","carbon.table.batch.item.selected":"batchActionItemSelected","carbon.table.batch.selectAll":"selectAll"},U=function(e){return(0,v.jsx)(V.TableBatchActions,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({translateWithId:function(e,t){var n=W[e];return n?(0,z.V)(n,e,t):e}},e))};function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=(0,g.createContext)(null);function K(){var e=(0,g.useContext)(G);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function q(e){var t,n=e.menuTitle,r=e.children,a=function(e){if(Array.isArray(e))return e}(t=b().useState(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}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,S.useOnClickOutside)(function(){return o(!1)},i),l="tablet"===(0,S.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]),x=(0,g.useCallback)(function(e){"Escape"===e.key&&i&&(e.stopPropagation(),m())},[m,i]),j=g.Children.toArray(r);(0,g.useEffect)(function(){if(i&&d.current){var e=d.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[i]);var O=(0,g.useCallback)(function(e){e.currentIndex;var t,n,r,a,i,o,s=e.direction,l=null==(n=d.current)?void 0:n.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==l?void 0:l.length){var u=null!=(t=null==(a=document.activeElement)||null==(r=a.closest)?void 0:r.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=j.map(function(e,t){return(0,g.isValidElement)(e)?(0,g.cloneElement)(e,{closeMenu:m,handleOverflowMenuItemFocus:O,index:t}):e});return(0,v.jsxs)("div",{"data-overflow-menu":!0,className:w()("cds--overflow-menu","_8PykSzSXNNdifN25ybqq3w=="),ref:s,children:[(0,v.jsx)("button",{className:w()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":i},"n86GzT7Rs8Kf8e25ihYZPg=="),"aria-controls":h,"aria-expanded":i,"aria-haspopup":"true",id:p,onClick:u,onKeyDown:x,ref:c,children:n}),(0,v.jsxs)("div",{className:w()("cds--overflow-menu-options","cds--overflow-menu--flip","qsOLntRcFqCu-mnZH0czJA==",H({},"BserJewmzluWUcq5q8a0yw==",i)),"aria-labelledby":p,"data-floating-menu-direction":"bottom",id:h,onKeyDown:x,ref:d,role:"menu",tabIndex:-1,children:[(0,v.jsx)("ul",{className:w()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":l}),children:(0,v.jsx)(G.Provider,{value:y,children:k})}),(0,v.jsx)("span",{})]})]})}function Y(e){var t,n,r=(0,g.useContext)(G);return(0,v.jsx)(V.OverflowMenuItem,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){H(e,t,n[t])})}return e}({},e),n=n={closeMenu:null==r?void 0:r.closeMenu},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function Z(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let X="u">typeof document?b().useLayoutEffect:()=>{},Q={prefix:String(Math.round(1e10*Math.random())),current:0},J=b().createContext(Q),ee=b().createContext(!1),et=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),en="function"==typeof b().useId?function(e){let t=b().useId(),[n]=(0,g.useState)(eo()),r=n?"react-aria":`react-aria${Q.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,g.useContext)(J),n=function(e=!1){let t=(0,g.useContext)(J),n=(0,g.useRef)(null);if(null===n.current&&!e){let e=b().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=et.get(e);null==n?et.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,et.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function er(){return!1}function ea(){return!0}function ei(e){return()=>{}}function eo(){return"function"==typeof b().useSyncExternalStore?b().useSyncExternalStore(ei,er,ea):(0,g.useContext)(ee)}let es=!!("u">typeof window&&window.document&&window.document.createElement),el=new Map;"u">typeof FinalizationRegistry&&(r=new FinalizationRegistry(e=>{el.delete(e)}));let eu=new WeakMap;function ec(e){let[t,n]=(0,g.useState)(e),a=(0,g.useRef)(null),i=en(t),o=(0,g.useRef)(null),s=eu.get(o);if(r&&s!==i&&(null!=s&&r.unregister(o),r.register(o,i,o),eu.set(o,i)),es){let e=el.get(i);e&&!e.includes(a)?e.push(a):el.set(i,[a])}return X(()=>()=>{r&&(r.unregister(o),eu.delete(o)),el.delete(i)},[i]),(0,g.useEffect)(()=>{let e=a.current;return e&&n(e),()=>{e&&(a.current=null)}}),i}function ed(e=[]){let t=ec(),[n,r]=function(e){let[t,n]=(0,g.useState)(e),r=(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}r.current===e.value?i.current():n(e.value)});return X(()=>{r.current=t,a.current&&i.current()}),[t,(0,g.useCallback)(e=>{a.current=e(r.current),i.current()},[i])]}(t),a=(0,g.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return X(a,[t,a,...e]),n}function ef(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=ep(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():ep(e[n],null)})}}}function ep(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let eh=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r};function em(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],a=r[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=Z(n,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof a?t[e]=eh(n,a):"id"===e&&n&&a?t.id=function(e,t){if(e===t)return e;let n=el.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=el.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,a):"ref"===e&&n&&a?t.ref=ef(n,a):t[e]=void 0!==a?a:n}}return t}function ey(e){let t=(0,g.useRef)(null),n=(0,g.useRef)(void 0),r=(0,g.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():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,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}let ev=Symbol("default");function eg({values:e,children:t}){for(let[n,r]of e)t=b().createElement(n.Provider,{value:r},t);return t}function eb(e){let{className:t,style:n,children:r,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 n?n({...s,defaultStyle:o||{}}):n,c="function"==typeof r?r({...s,defaultChildren:i}):null==r?i:r,{className:e??a,style:u||o?{...o,...u}:void 0,children:c??i,"data-rac":"",render:l?e=>l(e,s):void 0}},[t,n,r,a,i,o,s,l])}function ex(e,t){let n=(0,g.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||ev;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function ew(e,t,n){let{ref:r,...a}=ex(n,e.slot)||{},i=ey((0,g.useMemo)(()=>ef(t,r),[t,r])),o=em(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 n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},i="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:o.style={...a.style,...e.style}),[o,i]}function eS(e=!0){let[t,n]=(0,g.useState)(e),r=(0,g.useRef)(!1),a=(0,g.useCallback)(e=>{r.current=!0,n(!!e)},[]);return X(()=>{r.current||n(!1)},[]),[a,t]}function ej(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function eO(e,t,n){let{render:r,...a}=t,i=(0,g.useRef)(null),o=(0,g.useMemo)(()=>ef(n,i),[n,i]);X(()=>{},[e,r]);let s={...a,ref:o};return r?r(s,void 0):b().createElement(e,s)}let ek={},eE=new Proxy({},{get(e,t){if("string"!=typeof t)return;let n=ek[t];return n||(n=(0,g.forwardRef)(eO.bind(null,t)),ek[t]=n),n}}),eA=(0,g.createContext)(null),eD=null;function eP(e,t="assertive",n=7e3){eD?eD.announce(e,t,n):(eD=new eT,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?eD.announce(e,t,n):setTimeout(()=>{eD?.isAttached()&&eD?.announce(e,t,n)},100))}class eT{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",n=7e3){if(!this.node)return;let r=document.createElement("div");"object"==typeof e?(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",e["aria-labelledby"])):r.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),""!==e&&setTimeout(()=>{r.remove()},n)}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"]),eN=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),eM=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),eR=new Set(["dir","lang","hidden","inert","translate"]),eI=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"]),e_=/^(data-.*)$/;function eL(e,t={}){let{labelable:n,isLink:r,global:a,events:i=a,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(eC.has(t)||n&&eN.has(t)||r&&eM.has(t)||a&&eR.has(t)||i&&(eI.has(t)||t.endsWith("Capture")&&eI.has(t.slice(0,-7)))||o?.has(t)||e_.test(t))&&(s[t]=e[t]);return s}function eF(e){if(function(){if(null==eB){eB=!1;try{document.createElement("div").focus({get preventScroll(){return eB=!0,!0}})}catch{}}return eB}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let eB=null,eV=e=>{var t,n;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:eW(n=e)&&9===n.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},ez=e=>{let t=eV(e);return t?.defaultView??("u">typeof window?window:void 0)};function eW(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function eU(e,t,n,r){if(null==n||null==e)return()=>{};let a=Array.isArray(e)?e:[e];for(let e of a)e.addEventListener(t,n,r);return()=>{for(let e of a)e.removeEventListener(t,n,r)}}function e$(e,t,n,r){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,n,r),a.unshift(()=>{e?i.style.setProperty(t,e,o):i.style.removeProperty(t)})}return()=>{for(let e of a)e()}}function eH(e,t){return!!t&&!!e&&e.contains(t)}function eG(e){return e.target}function eK(e,t){if(null===t)return[];let n=[t=t??ez(e)];return n}function eq(e){if(!e)return!1;let t=e.getRootNode(),n=ez(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return null!=r&&e.contains(r)}let eY="u">typeof Element&&"checkVisibility"in Element.prototype;function eZ(e,t){return eY?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=ez(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a="none"!==n&&"hidden"!==r&&"collapse"!==r;if(a){let{getComputedStyle:t}=ez(e),{display:n,visibility:r}=t(e);a="none"!==n&&"hidden"!==r&&"collapse"!==r}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||eZ(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"],eQ=eX.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";eX.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let eJ=eX.join(':not([hidden]):not([tabindex="-1"]),');function e0(e,t){return e.matches(eQ)&&!e2(e)&&(t?.skipVisibilityCheck||eZ(e))}function e1(e){return e.matches(eJ)&&eZ(e)&&!e2(e)}function e2(e){let t=e;for(;null!=t;){if(t instanceof ez(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function e3(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function e4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function e5(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)(n=>{let r=eG(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=e3(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let e6=!1;function e8(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 e9(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function e7(e){let t=null;return()=>(null==t&&(t=e()),t)}let te=e7(function(){return e9(/^Mac/i)}),tt=e7(function(){return e9(/^iPhone/i)}),tn=e7(function(){return e9(/^iPad/i)||te()&&navigator.maxTouchPoints>1}),tr=e7(function(){return tt()||tn()});e7(function(){return te()||tr()});let ta=e7(function(){return e8(/AppleWebKit/i)&&(tr()||!ti())});e7(function(){return ta()&&!ti()&&!ts()});let ti=e7(function(){return e8(/Chrome|CriOS|CrMo/i)}),to=e7(function(){return e8(/Android/i)}),ts=e7(function(){return e8(/(Firefox|FxiOS)/i)});function tl(e){return""===e.pointerType&&!!e.isTrusted||(to()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function tu(e,t,n=!0){let{metaKey:r,ctrlKey:a,altKey:i,shiftKey:o}=t;!ta()&&ts()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(te()?r=!0:a=!0);let s=ta()&&te()&&!tn()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:a,altKey:i,shiftKey:o}):new MouseEvent("click",{metaKey:r,ctrlKey:a,altKey:i,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});tu.isOpening=n,eF(e),e.dispatchEvent(s),tu.isOpening=!1}tu.isOpening=!1;let tc=null,td=new Set,tf=new Map,tp=!1,th=!1,tm={Tab:!0,Escape:!0};function ty(e,t){for(let n of td)n(e,t)}function tv(e){tp=!0,tu.isOpening||e.metaKey||!te()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(tc="keyboard",ty("keyboard",e))}function tg(e){tc="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(tp=!0,ty("pointer",e))}function tb(e){!tu.isOpening&&tl(e)&&(tp=!0,tc="virtual")}function tx(e){if(e6)return;let t=eG(e),n=ez(t),r=eV(t);if(t===n){th=!0;return}t!==r&&e.isTrusted&&(tp||th||(tc="virtual",ty("virtual",e)),tp=!1,th=!1)}function tw(){e6||(tp=!1,th=!0)}function tS(e){if("u"<typeof window||"u"<typeof document)return;let t=ez(e),n=eV(e);if(tf.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){tp=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",tv,!0),n.addEventListener("keyup",tv,!0),n.addEventListener("click",tb,!0),t.addEventListener("focus",tx,!0),t.addEventListener("blur",tw,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",tg,!0),n.addEventListener("pointermove",tg,!0),n.addEventListener("pointerup",tg,!0)),t.addEventListener("beforeunload",()=>{tj(e)},{once:!0}),tf.set(t,{focus:r})}let tj=(e,t)=>{let n=ez(e),r=eV(e);t&&r.removeEventListener("DOMContentLoaded",t),tf.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:tf.get(n).focus}),r.removeEventListener("keydown",tv,!0),r.removeEventListener("keyup",tv,!0),r.removeEventListener("click",tb,!0),n.removeEventListener("focus",tx,!0),n.removeEventListener("blur",tw,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",tg,!0),r.removeEventListener("pointermove",tg,!0),r.removeEventListener("pointerup",tg,!0)),tf.delete(n))};function tO(){return"pointer"!==tc}"u">typeof document&&("loading"!==(l=eV(void 0)).readyState?tS(void 0):l.addEventListener("DOMContentLoaded",()=>{tS(void 0)}));let tk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),tE=new Map,tA=new Set;function tD(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=eG(n);if(!e(n)||!r)return;let a=tE.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),tE.delete(r)),0===tE.size)){for(let e of tA)e();tA.clear()}};document.body.addEventListener("transitionrun",n=>{let r=eG(n);if(!e(n)||!r)return;let a=tE.get(r);a||(a=new Set,tE.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function tP(e){requestAnimationFrame(()=>{for(let[e]of tE)"isConnected"in e&&!e.isConnected&&tE.delete(e);0===tE.size?e():tA.add(e)})}function tT(e){if(!e.isConnected)return;let t=eV(e);if("virtual"===tc){let n=((e=document)=>e.activeElement)(t);tP(()=>{let r=((e=document)=>e.activeElement)(t);(r===n||r===t.body)&&e.isConnected&&eF(e)})}else eF(e)}function tC(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,i=(0,g.useCallback)(e=>{if(eG(e)===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),o=e5(i),s=(0,g.useCallback)(e=>{let t=eG(e),r=eV(t),i=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===i&&(n&&n(e),a&&a(!0),o(e))},[a,n,o]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?i:void 0}}}function tN(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){n=!0},continuePropagation(){n=!1,"function"==typeof t.continuePropagation&&t.continuePropagation()},isPropagationStopped:()=>n}),n&&!("function"==typeof t.isPropagationStopped&&t.isPropagationStopped())&&t.stopPropagation()}}"u">typeof document&&("loading"!==document.readyState?tD():document.addEventListener("DOMContentLoaded",tD));let tM=new Set(["shift","alt","control","meta","mod"]),tR=["Alt","Control","Meta","Shift"];function tI(e){return tR.filter(t=>e.has(t))}function t_(e){return e.toLowerCase()}let tL={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function tF(e){let t,n,{shortcuts:r,allowRepeats:a=!1,allowComposing:i=!1}=e;if(r){let o=function(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=function(e){let t=e.split("+").reduce((e,t)=>{let n=t.toLowerCase();return tM.has(n)?"shift"===n?e.shift=!0:"alt"===n?e.alt=!0:"control"===n?e.ctrl=!0:"meta"===n?e.meta=!0:"mod"===n&&(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}(n);t.set(function(e){let t,n,r,a=tI((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(te()?"Meta":"Control"),t)),i=null!=(r=tL[n=t_(e.key)])?r:n;return a.length>0?`${a.join("+")}+${i}`:i}(e),r)}return e=>{let n,r,a,i=(r=tI((n=new Set,e.altKey&&n.add("Alt"),e.ctrlKey&&n.add("Control"),e.metaKey&&n.add("Meta"),e.shiftKey&&n.add("Shift"),n)),a=t_(e.key),(r.length>0?`${r.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()}}(r),s=tN(e=>{!eH(e.currentTarget,eG(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing&&!i?e.continuePropagation():o(e)}),l=tN(e=>{!eH(e.currentTarget,eG(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing,e.continuePropagation()});t=e.onKeyDown?Z(e.onKeyDown,s):s,n=e.onKeyUp?Z(e.onKeyUp,l):l}else t=tN(e.onKeyDown),n=tN(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:t,onKeyUp:n}}}function tB(e,t){X(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let tV=b().createContext(null);function tz(e,t){let{focusProps:n}=tC(e),{keyboardProps:r}=tF(e),a=em(n,r),i=function(e){let t=(0,g.useContext)(tV)||{};tB(t,e);let{ref:n,...r}=t;return r}(t),o=e.isDisabled?{}:i,s=(0,g.useRef)(e.autoFocus);(0,g.useEffect)(()=>{s.current&&t.current&&tT(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:em({...a,tabIndex:l},o)}}b().forwardRef(function(e,t){let{children:n,...r}=e,a=ey(t),i={...r,ref:a};return b().createElement(tV.Provider,{value:i},n)});let tW="default",tU="",t$=new WeakMap;function tH(e){if(tr()&&ta())"disabled"===tW&&(tW="restoring",setTimeout(()=>{tP(()=>{if("restoring"===tW){let t=eV(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=tU||""),tU="",tW="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&t$.has(e)){let t=t$.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),t$.delete(e)}}let tG=new WeakMap;function tK(e){let t=eV(e),n=tG.get(t);return void 0!==(n??=function(e,t){let n,r=ez(t),a=eV(t);if(null==a||null==r)return;let i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=a.querySelector(i);return o&&o instanceof r.HTMLMetaElement&&("csp-nonce"===e&&o.nonce&&(n??=o.nonce||void 0),o.content&&(n??=o.content||void 0)),"csp-nonce"===e&&(n??=r.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),n}("csp-nonce",t))&&tG.set(t,n),n}let tq=b().createContext({register:()=>{}});tq.displayName="PressResponderContext";let tY=b().useInsertionEffect??X;function tZ(e){let t=(0,g.useRef)(null);return tY(()=>{t.current=e},[e]),(0,g.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function tX(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)((t,n,r,a)=>{let i=a?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:a}),t.addEventListener(n,i,a)},[]),n=(0,g.useCallback)((t,n,r,a)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,a),e.current.delete(r)},[]),r=(0,g.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,g.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var tQ=n(803),tJ=n.n(tQ);class t0{#e;constructor(e,t,n,r){this.#e=!0;let a=r?.target??n.currentTarget;const i=a?.getBoundingClientRect();let o,s=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.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=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=o,this.y=s,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let t1=Symbol("linkClicked"),t2="react-aria-pressable-style",t3="data-react-aria-pressable";function t4(e){let{onPress:t,onPressChange:n,onPressStart:r,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)(tq);if(t){let{register:n,ref:r,...a}=t;e=em(a,e),n()}return tB(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,r){let n=new t0("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,m(!0),i},[s,r,n]),w=(0,g.useCallback)((e,r,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 t0("pressend",r,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),m(!1),t&&i&&!s){let n=new t0("press",r,e);t(n),l&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,l},[s,a,n,t]),S=tZ(w),j=tZ((0,g.useCallback)((e,t)=>{let n=y.current;if(s)return!1;if(i){n.isTriggeringEvent=!0;let r=new t0("pressup",t,e);return i(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,i])),O=(0,g.useCallback)(e=>{let t=y.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&w(t8(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||tH(t.target),t.disposables))n();t.disposables=[]}},[d,b,w]),k=tZ(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]),A=(0,g.useCallback)(e=>{s||o?.(e)},[s,o]),D=(0,g.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent("click",e);e4(n,t),o(e3(n))}},[s,o]),P=(0,g.useMemo)(()=>{let e=y.current,t={onKeyDown(t){if(t6(t.nativeEvent,t.currentTarget)&&eH(t.currentTarget,eG(t))){t9(eG(t),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=x(t,"keyboard"));let a=t.currentTarget;v(eV(t.currentTarget),"keyup",Z(t=>{t6(t,a)&&!t.repeat&&eH(a,eG(t))&&e.target&&j(t8(e.target,t),"keyboard")},n),!0),r&&t.stopPropagation(),t.metaKey&&te()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||eH(t.currentTarget,eG(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!tu.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||tl(t.nativeEvent))){let e=x(t,"virtual"),r=j(t,"virtual"),a=S(t,"virtual");A(t),n=e&&r&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",a=j(t8(t.currentTarget,t),r),i=S(t8(t.currentTarget,t),r,!0);n=a&&i,e.isOverTarget=!1,A(t),k(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&t6(t,e.target)){t9(eG(t),t.key)&&t.preventDefault();let n=eG(t),r=eH(e.target,n);S(t8(e.target,t),"keyboard",r),r&&D(t,e.target),b(),"Enter"!==t.key&&t5(e.target)&&eH(e.target,n)&&!t[t1]&&(t[t1]=!0,tu(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 n of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",n))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var a;if(0!==t.button||!eH(t.currentTarget,eG(t)))return;if(a=t.nativeEvent,!to()&&0===a.width&&0===a.height||to()&&1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(tr()&&ta()){if("default"===tW){let t=eV(e);tU=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tW="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=eG(t);"releasePointerCapture"in a&&("hasPointerCapture"in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),v(eV(t.currentTarget),"pointerup",n,!1),v(eV(t.currentTarget),"pointercancel",r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(eH(t.currentTarget,eG(t))&&0===t.button){if(u){let n=function(e){for(var t;e&&!e0(e,{skipVisibilityCheck:!0});)e=e.parentElement;let n=((e=document)=>e.activeElement)(ez(e).document);if(!n||n===e)return;let r=e?.getRootNode(),a=null!=r&&eW(t=r)&&11===t.nodeType&&"host"in t?r:ez(e),i=t=>t===e||null!=t&&eH(e,t),o=e=>e===n||null!=n&&null!=e&&eH(n,e);e6=!0;let s=!1,l=e=>{(o(eG(e))||s)&&e.stopImmediatePropagation()},u=t=>{(o(eG(t))||s)&&(t.stopImmediatePropagation(),e||s||(s=!0,eF(n),f()))},c=e=>{(i(eG(e))||s)&&e.stopImmediatePropagation()},d=e=>{(i(eG(e))||s)&&(e.stopImmediatePropagation(),s||(s=!0,eF(n),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),e6=!1,s=!1},p=requestAnimationFrame(f);return f}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{eH(t.currentTarget,eG(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(t8(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,S(t8(e.target,t),e.pointerType,!1),E(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(eH(e.target,eG(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?k(t):(eF(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else k(t);e.isOverTarget=!1}},r=e=>{k(e)};t.onDragStart=e=>{eH(e.currentTarget,eG(e))&&k(e)}}return t},[v,s,u,b,d,E,x,A,D]);return(0,g.useEffect)(()=>{if(!f)return;let e=eV(f.current);if(!e||!e.head||e.getElementById(t2))return;let t=e.createElement("style");t.id=t2;let n=tK(e);n&&(t.nonce=n),t.textContent=`
2
- @layer {
3
- [${t3}] {
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||tH(e.target??void 0),e.disposables))t();e.disposables=[]}},[d]),{isPressed:l||h,pressProps:em(p,P,{[t3]:!0})}}function t5(e){return"A"===e.tagName&&e.hasAttribute("href")}function t6(e,t){let{key:n,code:r}=e,a=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof ez(t).HTMLInputElement&&!ne(t,n)||t instanceof ez(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&t5(t))&&"Enter"!==n)}function t8(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function t9(e,t){return(!te()||"Enter"!==t)&&(e instanceof HTMLInputElement?("Enter"!==t||"checkbox"!==e.type&&"radio"!==e.type)&&!ne(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!t5(e)))}let t7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ne(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:t7.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 nt=(0,g.createContext)(!1);function nn(e){let t=(t,n)=>(0,g.useContext)(nt)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,g.forwardRef)(t)}function nr(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,i=(0,g.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=tX(),l=(0,g.useCallback)(e=>{eH(e.currentTarget,eG(e))&&i.current.isFocusWithin&&!eH(e.currentTarget,e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,i,s]),u=e5(l),c=(0,g.useCallback)(e=>{if(!eH(e.currentTarget,eG(e)))return;let t=eG(e),n=eV(t),s=((e=document)=>e.activeElement)(n);if(!i.current.isFocusWithin&&s===t){r&&r(e),a&&a(!0),i.current.isFocusWithin=!0,u(e);let t=e.currentTarget;o(n,"focus",e=>{let r=eG(e);if(i.current.isFocusWithin&&!eH(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});e4(e,t),l(e3(e))}},{capture:!0})}},[r,a,u,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function na(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:a}=e,i=(0,g.useRef)({isFocused:!1,isFocusVisible:n||tO()}),[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=tO(),s(e),c()},[c]);t={enabled:o,isTextInput:r},tS(),(0,g.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,n)=>{var r;let a,o,s,l,u,d,f,p;r=!!t?.isTextInput,o=eV(a=n?eG(n):void 0),l=void 0!==(s=ez(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),(r=r||p instanceof l&&!tk.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&n instanceof f&&!tm[n.key]||(e=>{i.current.isFocusVisible=e,c()})(tO())};return td.add(e),()=>{td.delete(e)}},[r,o]);let{focusProps:f}=tC({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=nr({isDisabled:!a,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:a?p:f}}let ni=!1,no=0;function ns(e){"touch"===e.pointerType&&(ni=!0,setTimeout(()=>{ni=!1},500))}function nl(){let e=eV(null);if(void 0!==e)return 0===no&&"u">typeof PointerEvent&&e.addEventListener("pointerup",ns),no++,()=>{!(--no>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",ns)}}function nu(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[i,o]=(0,g.useState)(!1),s=(0,g.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,g.useEffect)(nl,[]);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(),r&&r({type:"hoverend",target:a,pointerType:t}),n&&n(!1),o(!1))},i={};return"u">typeof PointerEvent&&(i.onPointerEnter=r=>{ni&&"mouse"===r.pointerType||((r,i)=>{if(s.pointerType=i,a||"touch"===i||s.isHovered||!eH(r.currentTarget,eG(r)))return;s.isHovered=!0;let u=r.currentTarget;s.target=u,l(eV(eG(r)),"pointerover",t=>{s.isHovered&&s.target&&!eH(s.target,eG(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:i}),n&&n(!0),o(!0)})(r,r.pointerType)},i.onPointerLeave=t=>{!a&&eH(t.currentTarget,eG(t))&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,r,a,s,l,u]);return(0,g.useEffect)(()=>{a&&d({currentTarget:s.target},s.pointerType)},[a]),{hoverProps:c,isHovered:i}}let nc=(0,g.createContext)({}),nd=nn(function(e,t){[e,t]=ew(e,t,nc);let n=e,{isPending:r}=n,{buttonProps:a,isPressed:i}=function(e,t){let n,{elementType:r="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;n="button"===r?{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"!==r||a?void 0:p,target:"a"===r?h:void 0,type:"input"===r?y:void 0,disabled:"input"===r?a:void 0,"aria-disabled":a&&"input"!==r?a:void 0,rel:"a"===r?m:void 0};let{pressProps:v,isPressed:g}=t4({onPressStart:o,onPressEnd:s,onPressChange:u,onPress:i,onPressUp:l,onClick:f,isDisabled:a,preventFocusOnPress:c,ref:t}),{focusableProps:b}=tz(e,t);d&&(b.tabIndex=a?-1:b.tabIndex);let x=em(b,v,eL(e,{labelable:!0}));return{isPressed:g,buttonProps:em(n,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")&&!nf.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}(a,r);let{focusProps:o,isFocused:s,isFocusVisible:l}=na(e),{hoverProps:u,isHovered:c}=nu({...e,isDisabled:e.isDisabled||r}),d={isHovered:c,isPressed:(n.isPressed||i)&&!r,isFocused:s,isFocusVisible:l,isDisabled:e.isDisabled||!1,isPending:r??!1},f=eb({...e,values:d,defaultClassName:"react-aria-Button"}),p=ec(a.id),h=ec(),m=a["aria-labelledby"];r&&(m?m=`${m} ${h}`:a["aria-label"]&&(m=`${p} ${h}`));let y=(0,g.useRef)(r);(0,g.useEffect)(()=>{let e={"aria-labelledby":m||p};!y.current&&s&&r?eP(e,"assertive"):y.current&&s&&!r&&eP(e,"assertive"),y.current=r},[r,s,m,p]);let v=eL(e,{global:!0});return delete v.onClick,b().createElement(eE.button,{...em(v,f,a,o,u),type:"submit"===a.type&&r?"button":a.type,id:p,ref:t,"aria-labelledby":m,slot:e.slot||void 0,"aria-disabled":r?"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":r||void 0,"data-focus-visible":l||void 0},b().createElement(eA.Provider,{value:{id:h}},f.children))}),nf=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/,np=(0,g.createContext)({}),nh=(0,g.createContext)({}),nm=nn(function(e,t){[e,t]=ew(e,t,nh);let{elementType:n="span",...r}=e,a=eE[n];return b().createElement(a,{className:"react-aria-Text",...r,ref:t})});var ny={};function nv(e,t){let n=(0,g.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}ny={"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 ng=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),nb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function nx(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return ng.has(t.script)}let t=e.split("-")[0];return nb.has(t)}let nw=Symbol.for("react-aria.i18n.locale");function nS(){let e="u">typeof window&&window[nw]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:nx(e)?"rtl":"ltr"}}let nj=nS(),nO=new Set;function nk(){for(let e of(nj=nS(),nO))e(nj)}function nE(){let e=eo(),[t,n]=(0,g.useState)(nj);return((0,g.useEffect)(()=>(0===nO.size&&window.addEventListener("languagechange",nk),nO.add(n),()=>{nO.delete(n),0===nO.size&&window.removeEventListener("languagechange",nk)}),[]),e)?{locale:"u">typeof window&&window[nw]||"en-US",direction:"ltr"}:t}let nA=b().createContext(null);function nD(e){let{locale:t,children:n}=e,r=b().useMemo(()=>({locale:t,direction:nx(t)?"rtl":"ltr"}),[t]);return b().createElement(nA.Provider,{value:r},n)}function nP(e){let{children:t}=e,n=nE();return b().createElement(nA.Provider,{value:n},t)}function nT(e){let{locale:t,children:n}=e;return t?b().createElement(nD,{locale:t,children:n}):b().createElement(nP,{children:n})}function nC(){let e=nE();return(0,g.useContext)(nA)||e}let nN=new Map;class nM{constructor(e,t={}){this.formatter=nI(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 n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==nL&&(nL="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),nL&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=nI(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===r&&23===a)return"h23";if(24===r&&23===a)return"h24";if(0===r&&11===a)return"h11";if(12===r&&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 nR={true:{ja:"h11"},false:{}};function nI(e,t={}){if("boolean"==typeof t.hour12&&(null==n_&&(n_="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),n_)){let n=nR[String((t={...t}).hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(nN.has(n))return nN.get(n);let r=new Intl.DateTimeFormat(e,t);return nN.set(n,r),r}let n_=null,nL=null;function nF(e){e=nv(e??{},nB);let{locale:t}=nC();return(0,g.useMemo)(()=>new nM(t,e),[t,e])}function nB(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}let nV=Symbol.for("react-aria.i18n.locale"),nz=Symbol.for("react-aria.i18n.strings");class nW{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let a=(r=e,Intl.Locale?new Intl.Locale(r).language:r.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[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[nV];if(void 0===u){let e=window[nz];if(!e)return null;for(let n in u={},e)u[n]=new nW({[t]:e[n]},t)}let n=u?.[e];if(!n)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}let nU=new Map,n$=new Map;class nH{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let a=this.locale+":"+n,i=nU.get(a);return i||(i=new Intl.PluralRules(this.locale,{type:n}),nU.set(a,i)),"function"==typeof(r=t[i.select(e)]||t.other)?r():r}number(e){let t=n$.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),n$.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}}let nG=new WeakMap;function nK(e,t){let n;return t&&nW.getGlobalDictionaryForPackage(t)||((n=nG.get(e))||(n=new nW(e),nG.set(e,n)),n)}function nq(e,t){let{locale:n}=nC(),r=nK(e,t);return(0,g.useMemo)(()=>new nH(n,r),[n,r])}var nY=n(240);function nZ(e){return e&&e.__esModule?e.default:e}let nX=new WeakMap;function nQ(e){return e?.calendar.identifier==="gregory"&&"BC"===e.era?"short":void 0}function nJ(e,t,n,r){let a=nq(nZ(ny),"@react-aria/calendar"),i=nQ(e)||nQ(t),o=nF({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n}),s=nF({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n});return(0,g.useMemo)(()=>{if((0,nY.ro)(e,(0,nY.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,nY.ro)(t,(0,nY.p9)(e)))return o.format(i.toDate(n));if((0,nY.ro)(t,(0,nY.p9)(t)))return r?n0(o,a,i,s,n):o.formatRange(i.toDate(n),s.toDate(n))}return r?n0(s,a,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,a,n,r])}function n0(e,t,n,r,a){let i=e.formatRangeToParts(n.toDate(a),r.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 n1(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=ec(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),r||a||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function n2(e,t){let n=(0,g.useRef)(!0),r=(0,g.useRef)(null),a=tZ(e);(0,g.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,g.useEffect)(()=>{let e=r.current;n.current?n.current=!1:(!e||t.some((t,n)=>!Object.is(t,e[n])))&&a(),r.current=t},t)}function n3(e,t){var n;let r=nq((n=ny)&&n.__esModule?n.default:n,"@react-aria/calendar"),a=eL(e),i=nJ(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=nJ(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);n2(()=>{t.isFocused||eP(o)},[o]);let s=function(e){let t,n,r=nq(nZ(ny),"@react-aria/calendar");"highlightedRange"in e?{start:t,end:n}=e.highlightedRange||{}:(t=Array.isArray(e.value)?e.value[0]:e.value??void 0,n=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let a=nF({weekday:"long",month:"long",year:"numeric",day:"numeric",era:nQ(t)||nQ(n),timeZone:e.timeZone}),{locale:i}=nC(),o=(0,g.useMemo)(()=>new Intl.ListFormat(i),[i]),s="anchorDate"in e?e.anchorDate:null;return(0,g.useMemo)(()=>{if(!s&&t&&n){if((0,nY.ro)(t,n)){let n=a.format(t.toDate(e.timeZone));return r.format("selectedDateDescription",{date:n})}else if("highlightedRange"in e){let i=n0(a,r,t,n,e.timeZone);return r.format("selectedRangeDescription",{dateRange:i})}else if(Array.isArray(e.value)){let t=e.value.map(t=>a.format(t.toDate(e.timeZone))),n=o.format(t);return r.format("selectedDateDescription",{date:n})}}return""},[t,n,s,e,r,a,o])}(t);n2(()=>{s&&eP(s,"polite",4e3)},[s]);let l=ed([!!e.errorMessage,e.isInvalid,e.validationState]);nX.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:em(a,n1({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":r.format("next"),isDisabled:d,onFocusChange:c},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:h,onFocusChange:p},errorMessageProps:{id:l},title:i}}function n4(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,a=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&"hidden"!==n.overflow&&(a=!0),a&&t&&(a=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),a}function n5(e,t){let n=e;for(n4(n,t)&&(n=n.parentElement);n&&!n4(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function n6(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(n4(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function n8(e,t,n={}){if(e===t)return;let r=t.getBoundingClientRect();!function(e,t,n,r={}){let{block:a="nearest",inline:i="nearest"}=r,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,A=parseFloat(c.borderLeftWidth)||0,D=parseFloat(c.borderRightWidth)||0,P=n.top-v,T=n.bottom+g,C=n.left-b,N=n.right+x,M=e===d?0:A+D,R=e===d?0:k+E,I=e===d?0:e.offsetWidth-e.clientWidth-M,L=e===d?0:e.offsetHeight-e.clientHeight-R,F=p+(f?0:k)+w,B=h-(f?0:E)-S-L,V=m+(f?0:A)+j,z=y-(f?0:D)-O;tr()&&ta()||"ltr"===c.direction?z-=I:"rtl"===c.direction&&(V+=I);let W=P<F||T>B,U=C<V||N>z;if(W&&"start"===a)o+=P-F;else if(W&&"center"===a)o+=(P+T)/2-(F+B)/2;else if(W&&"end"===a)o+=T-B;else if(W&&"nearest"===a){let e=P-F,t=T-B;o+=Math.abs(e)<=Math.abs(t)?e:t}if(U&&"start"===i)s+=C-V;else if(U&&"center"===i)s+=(C+N)/2-(V+z)/2;else if(U&&"end"===i)s+=N-z;else if(U&&"nearest"===i){let e=C-V,t=N-z;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}(e,t,r,n)}function n9(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:r}=e.getBoundingClientRect(),a=n6(e,!0);for(let t of a)n8(t,e);let{left:i,top:o}=e.getBoundingClientRect();if(Math.abs(t-i)>1||Math.abs(r-o)>1){for(let e of a=n?n6(n,!0):[])n8(e,n,{block:"center",inline:"center"});for(let t of n6(e,!0))n8(t,e)}}else{let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:a,top:i}=e.getBoundingClientRect();(Math.abs(t-a)>1||Math.abs(r-i)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let n7=0,re=new Map;function rt(e){let[t,n]=(0,g.useState)();return X(()=>{if(!e)return;let t=re.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${n7++}`;n(r);let a=document.createElement("div");a.id=r,a.style.display="none",a.textContent=e,document.body.appendChild(a),t={refCount:0,element:a},re.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),re.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function rn(e,t,n,r){let a=tZ(n),i=null==n;(0,g.useEffect)(()=>{if(!i&&null!=e.current)return eU(e.current,t,a,r)},[e,t,r,i])}var rr=n(227),ra=n(9405);function ri(e,t,n){return null!=t&&0>e.compare(t)||null!=n&&e.compare(n)>0}function ro(e,t,n,r,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=rs(e,t,n).subtract(i);return ru(e,o,t,n,r,a)}function rs(e,t,n,r,a){let i=e;return t.years?i=(0,nY.D)(e):t.months?i=(0,nY.wH)(e):(t.weeks||t.days&&t.days>7)&&(i=(0,nY.kq)(e,n)),ru(e,i,t,n,r,a)}function rl(e,t,n,r,a){let i={...t};i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--;let o=rs(e,t,n).subtract(i);return ru(e,o,t,n,r,a)}function ru(e,t,n,r,a,i){if(a&&e.compare(a)>=0){let e=(0,nY.ZI)(t,rs((0,ra.gw)(a),n,r));e&&(t=e)}if(i&&0>=e.compare(i)){let e=(0,nY.Py)(t,rl((0,ra.gw)(i),n,r));e&&(t=e)}return t}function rc(e,t,n){if(t){let n=(0,nY.ZI)(e,(0,ra.gw)(t));n&&(e=n)}if(n){let t=(0,nY.Py)(e,(0,ra.gw)(n));t&&(e=t)}return e}function rd(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}let rf="u">typeof document?b().useInsertionEffect??b().useLayoutEffect:()=>{};function rp(e,t,n){let[r,a]=(0,g.useState)(e||t),i=(0,g.useRef)(r),o=(0,g.useRef)(void 0!==e),s=void 0!==e;(0,g.useEffect)(()=>{o.current,o.current=s},[s]);let l=s?e:r;rf(()=>{i.current=l});let[,u]=(0,g.useReducer)(()=>({}),{});return[l,(0,g.useCallback)((e,...t)=>{let r="function"==typeof e?e(i.current):e;Object.is(i.current,r)||(i.current=r,a(r),u(),n?.(r,...t))},[n])]}var rh=n(345);function rm(e){let t=(0,g.useMemo)(()=>new nM(e.locale),[e.locale]),n=(0,g.useMemo)(()=>t.resolvedOptions(),[t]),{locale:r,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(n.calendar),[a,n.calendar]),[m,y]=rp(e.value,e.defaultValue??null,e.onChange),v=(0,g.useMemo)(()=>Array.isArray(m)?m.map(e=>(0,ra.yP)((0,ra.gw)(e),h)):m?(0,ra.yP)((0,ra.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:n.timeZone},[m,n.timeZone]),[x,w]=rp((0,g.useMemo)(()=>e.focusedValue?rc((0,ra.yP)((0,ra.gw)(e.focusedValue),h),o,s):void 0,[e.focusedValue,h,o,s]),(0,g.useMemo)(()=>e.defaultFocusedValue?rc((0,ra.yP)((0,ra.gw)(e.defaultFocusedValue),h),o,s):v?rc(Array.isArray(v)?v[0]:v,o,s):rc((0,ra.yP)((0,nY.Ec)(b),h),o,s),[e.defaultFocusedValue,v,b,h,o,s]),e.onFocusChange),S=()=>{switch(l){case"start":return rs(x,i,r,o,s);case"end":return rl(x,i,r,o,s);default:return ro(x,i,r,o,s)}},[j,O]=(0,g.useState)(S),[k,E]=(0,g.useState)(e.autoFocus||!1),[A,D]=(0,g.useState)(i);i!==A&&(i.days!==A.days||i.weeks!==A.weeks||i.months!==A.months||i.years!==A.years)&&(D(i),O(S()));let P=(0,g.useMemo)(()=>{let e={...i};return e.days?e.days--:e.days=-1,j.add(e)},[j,i]),[T,C]=(0,g.useState)(h);if(!(0,nY.Jg)(h,T)){let e=(0,ra.yP)(x,h);O(ro(e,i,r,o,s)),w(e),C(h)}function N(e){w(e=rc(e,o,s))}function M(e){let t=rc(e,o,s),n=o??(0,nY.Py)(t,j),r=rd(t,n,u);if(!r)return null;let a=Array.isArray(m)?m[0]:m,i=(0,ra.yP)(r,a?.calendar||new(0,rh.FG));return a&&"hour"in a?a.set(i):i}function R(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void y("multiple"===d?[]:null);if(Array.isArray(t))y(t.map(M).filter(Boolean));else{let e=M(t);e&&y(e)}}}ri(x,o,s)?w(rc(x,o,s)):0>x.compare(j)?O(rl(x,i,r,o,s)):x.compare(P)>0&&O(rs(x,i,r,o,s));let I=(0,g.useMemo)(()=>!!v&&(Array.isArray(v)?v.some(e=>u?.(e)||ri(e,o,s)):u?.(v)||ri(v,o,s)),[v,u,o,s]),L=e.isInvalid||"invalid"===e.validationState||I,F=(0,g.useMemo)(()=>"visible"===c?i:ry(i),[c,i]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:v,setValue:R,selectionMode:d,visibleDuration:i,visibleRange:{start:j,end:P},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(rc(x.add(F),o,s)),O(rs(ru(x,e,F,r,o,s),F,r))},focusPreviousPage(){let e=j.subtract(F);w(rc(x.subtract(F),o,s)),O(rs(ru(x,e,F,r,o,s),F,r))},focusSectionStart(){i.days?N(j):i.weeks?N((0,nY.kq)(x,r)):(i.months||i.years)&&N((0,nY.wH)(x))},focusSectionEnd(){i.days?N(P):i.weeks?N((0,nY.$I)(x,r)):(i.months||i.years)&&N((0,nY.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(ry(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(ry(i)))},selectFocusedDate(){u&&u(x)||this.selectDate(x)},selectDate(t){if(!e.isDisabled&&!e.isReadOnly)if("multiple"===d&&null!=t){let e=M(t);if(!e)return;let n=[];Array.isArray(m)?n=m:null!=m&&(n=[m]);let r=n.findIndex(t=>(0,nY.ro)(t,e));y(r>=0?n.slice(0,r).concat(n.slice(r+1)):[...n,e])}else R(t)},isFocused:k,setFocused:E,isInvalid:e=>ri(e,o,s),isSelected(e){return!(!v||this.isCellDisabled(e)||this.isCellUnavailable(e))&&(Array.isArray(v)?v.some(t=>(0,nY.ro)(t,e)):(0,nY.ro)(e,v))},isCellFocused:e=>k&&x&&(0,nY.ro)(e,x),isCellDisabled(t){return e.isDisabled||0>t.compare(j)||t.compare(P)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=j.subtract({days:1});return(0,nY.ro)(e,j)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=P.add({days:1});return(0,nY.ro)(e,P)||this.isInvalid(e)},getDatesInWeek(e,t=j){let n=t.add({weeks:e}),a=[],o=i.days&&i.days<7?i.days:7;if(7===o){n=(0,nY.kq)(n,r,f);let e=(0,nY.SJ)(n,r,f);for(let t=0;t<e;t++)a.push(null)}for(;a.length<o;){a.push(n);let e=n.add({days:1});if((0,nY.ro)(n,e))break;n=e}for(;a.length<o;)a.push(null);return a},getWeeksInMonth(e=j){let t=p||(0,nY.RZ)(e,r,f);return(i.weeks||i.days)&&(t=i.weeks??0,i.days&&(t+=Math.ceil(i.days/7))),t}}}function ry(e){let t={...e};for(let n in e)t[n]=1;return t}function rv(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:(0,ra.gw)(e),end:(0,ra.gw)(t)}):null}function rg(e,t){return(e=(0,ra.yP)(e,t?.calendar||new(0,rh.FG)),t&&"hour"in t)?t.set(e):e}function rb(e,t,n,r){let a=e.add({days:r}),i=e.subtract(n),o=e.add(n);for(;(r<0?a.compare(i)>=0:0>=a.compare(o))&&!t(a);)a=a.add({days:r});if(t(a))return a.add({days:-r})}let rx={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 rw(e={}){let{style:t,isFocusable:n}=e,[r,a]=(0,g.useState)(!1),{focusWithinProps:i}=nr({isDisabled:!n,onFocusWithinChange:e=>a(e)}),o=(0,g.useMemo)(()=>r?t:t?{...rx,...t}:rx,[r]);return{visuallyHiddenProps:{...i,style:o}}}function rS(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...i}=e,{visuallyHiddenProps:o}=rw(e);return b().createElement(n,em(i,o),t)}let rj=(0,g.createContext)(null),rO=(0,g.createContext)(null),rk=(0,g.createContext)(null),rE=(0,g.createContext)(null),rA=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,rj);let{locale:n}=nC(),r=rm({...e,locale:n,createCalendar:e.createCalendar||rr.d}),{calendarProps:a,prevButtonProps:i,nextButtonProps:o,errorMessageProps:s,title:l}=n3(e,r),u=eb({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=eL(e,{global:!0});return b().createElement(eE.div,{...em(c,u,a),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},b().createElement(eg,{values:[[nc,{slots:{previous:i,next:o}}],[np,{"aria-hidden":!0,level:2,children:l}],[rk,r],[rj,e],[nh,{slots:{errorMessage:s}}]]},b().createElement(rS,null,b().createElement("h2",null,a["aria-label"])),u.children,b().createElement(rS,null,b().createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),rD=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,rO);let{locale:n}=nC(),r=function(e){let{value:t,defaultValue:n,onChange:r,createCalendar:a,locale:i,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=rp(t,n||null,r),[f,p]=(0,g.useState)(null),h="center";if(c&&c.start&&c.end){let e=ro((0,ra.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:rb(t,m,o,-1),end:rb(t,m,o,1)}:null,[m,o,e.allowsNonContiguousRanges]),v=(0,g.useMemo)(()=>y(f),[y,f]),b=(0,g.useMemo)(()=>(0,nY.ZI)(s,v?.start),[s,v]),x=(0,g.useMemo)(()=>(0,nY.Py)(l,v?.end),[l,v]),w=rm({...u,value:c&&c.start,createCalendar:a,locale:i,visibleDuration:o,minValue:b,maxValue:x,selectionAlignment:e.selectionAlignment||h,isDateUnavailable:m}),S=f?rv(f,w.focusedDate):c&&rv(c.start,c.end),j=t=>{if(e.isReadOnly)return;let n=rd(rc(t,b,x),w.visibleRange.start,m);if(n)if(f){let e=rv(f,n);e&&d({start:rg(e.start,c?.start),end:rg(e.end,c?.end)}),p(null)}else p(n)},[O,k]=(0,g.useState)(!1),E=(0,g.useMemo)(()=>!!c&&!f&&(!!(m&&(m(c.start)||m(c.end)))||ri(c.start,s,l)||ri(c.end,s,l)),[m,c,f,s,l]),A=e.isInvalid||"invalid"===e.validationState||E;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:p,highlightedRange:S,validationState:A?"invalid":null,isValueInvalid:A,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)||ri(e,v?.start,v?.end),isDragging:O,setDragging:k,clearSelection(){p(null),d(null)},focusNearestAvailableDate(e){let t=y(e),n=e=>this.isInvalid(e)||ri(e,t?.start,t?.end),r=e.add({days:1});n(r)&&(r=e.subtract({days:1})),n(r)||(this.setFocusedDate(r),this.setFocused(!0))}}}({...e,locale:n,createCalendar:e.createCalendar||rr.d}),{calendarProps:a,prevButtonProps:i,nextButtonProps:o,errorMessageProps:s,title:l}=function(e,t,n){let{commitBehavior:r="select",...a}=e,i=n3(a,t),o=(0,g.useRef)(!1),s=(0,g.useRef)("u">typeof window?window:null);rn(s,"pointerdown",e=>{o.current=0===e.width&&0===e.height});let l={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return rn(s,"pointerup",e=>{if(o.current){o.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let a=eG(e);n.current&&eq(n.current)&&(!eH(n.current,a)||!a.closest('button, [role="button"]'))&&l[r]()}),i.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&eH(n.current,e.relatedTarget)||!t.anchorDate||l[r]())},rn(n,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),i}(e,r,t),u=eb({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=eL(e,{global:!0});return b().createElement(eE.div,{...em(u,c,a),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},b().createElement(eg,{values:[[nc,{slots:{previous:i,next:o}}],[np,{"aria-hidden":!0,level:2,children:l}],[rE,r],[rO,e],[nh,{slots:{errorMessage:s}}]]},b().createElement(rS,null,b().createElement("h2",null,a["aria-label"])),u.children,b().createElement(rS,null,b().createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),rP=(0,g.createContext)(null),rT=(0,g.forwardRef)(function(e,t){let n=(0,g.useContext)(rk),r=(0,g.useContext)(rE),a=ex(rj),i=ex(rO),o=n??r,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:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:a}=e,{direction:i}=nC(),{keyboardProps:o}=tF({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:s}=tF({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=nJ(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=nX.get(t),d=n1({"aria-label":[u,l].filter(Boolean).join(", "),"aria-labelledby":c}),f=nF({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=nC(),h=(0,g.useMemo)(()=>{let e=t.visibleDuration.days&&t.visibleDuration.days<7,r=e?n:(0,nY.kq)((0,nY.Ec)(t.timeZone),p,a);return[...Array(e?t.visibleDuration.days:7).keys()].map(e=>{let n=r.add({days:e}).toDate(t.timeZone);return f.format(n)})},[p,t.timeZone,f,a,n,t.visibleDuration.days]),m=t.getWeeksInMonth(n);return{gridProps:em(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||"multiple"===t.selectionMode||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},o,s),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:m}}({startDate:s,endDate:(0,nY.p9)(s),weekdayStyle:e.weekdayStyle,firstDayOfWeek:l},o),p=eL(e,{global:!0});return b().createElement(rP.Provider,{value:{headerProps:c,weekDays:d,startDate:s,weeksInMonth:f}},b().createElement(eE.table,{render:e.render,...em(p,u),ref:t,style:e.style,cellPadding:0,className:e.className??"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:b().createElement(b().Fragment,null,b().createElement(rC,null,e=>b().createElement(rN,null,e)),b().createElement(rM,null,e.children))))}),rC=(0,g.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,{headerProps:i,weekDays:o}=(0,g.useContext)(rP),s=eL(e,{global:!0});return b().createElement(eE.thead,{render:e.render,...em(s,i),ref:t,style:r,className:a??"react-aria-CalendarGridHeader"},b().createElement("tr",null,o.map((e,t)=>b().cloneElement(n(e),{key:t}))))}),rN=(0,g.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,i=eL(e,{global:!0});return b().createElement(eE.th,{render:e.render,...i,ref:t,style:r,className:a||"react-aria-CalendarHeaderCell"},n)}),rM=(0,g.forwardRef)(function(e,t){let{children:n,style:r,className:a}=e,i=(0,g.useContext)(rk),o=(0,g.useContext)(rE),s=i??o,{startDate:l,weeksInMonth:u}=(0,g.useContext)(rP),c=eL(e,{global:!0});return b().createElement(eE.tbody,{render:e.render,...c,ref:t,style:r,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(n(e),{key:t}):b().createElement("td",{key:t})))))}),rR=(0,g.forwardRef)(function({date:e,...t},n){let r=(0,g.useContext)(rk),a=(0,g.useContext)(rE),i=r??a,{startDate:o}=(0,g.useContext)(rP)??{startDate:i.visibleRange.start},s=!i.visibleDuration.days&&!i.visibleDuration.weeks&&!(0,nY.tF)(o,e),l=(0,nY.cK)(e,i.timeZone),u=(0,g.useRef)(null),{cellProps:c,buttonProps:d,...f}=function(e,t,n){var r;let a,{date:i,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:l}=nX.get(t),u=nq((r=ny)&&r.__esModule?r.default:r,"@react-aria/calendar"),c=nF({weekday:"long",day:"numeric",month:"long",year:"numeric",era:nQ(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,nY.ro)(e,i)):t.value&&(m=(0,nY.ro)(t.value,i))),m&&!o&&(h=!0),i=nv(i,nY.NV);let y=(0,g.useMemo)(()=>i.toDate(t.timeZone),[i,t.timeZone]),v=(0,nY.cK)(i,t.timeZone),b=(0,g.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&((0,nY.ro)(i,t.value.start)||(0,nY.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,nY.ro)(i,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&(0,nY.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=rt(x),S=(0,g.useRef)(!1),j=(0,g.useRef)(!1),O=(0,g.useRef)(void 0),{pressProps:k,isPressed:E}=t4({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,nY.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,nY.ro)(i,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),j.current=!0;return}}let n=()=>{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(n,200):n()}},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,nY.ro)(i,t.focusedDate)?0:-1),(0,g.useEffect)(()=>{d&&n.current&&(eF(n.current),"pointer"!==tc&&((e=document)=>e.activeElement)()===n.current&&n9(n.current,{containingElement:n5(n.current)}))},[d,n]);let A=nF({day:"numeric",timeZone:t.timeZone,calendar:i.calendar.identifier}),D=(0,g.useMemo)(()=>A.formatToParts(y).find(e=>"day"===e.type).value,[A,y]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":h||void 0,"aria-invalid":m||void 0},buttonProps:em(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=eG(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:D}}({date:e,isOutsideMonth:s},i,u),{hoverProps:p,isHovered:h}=nu({...t,isDisabled:f.isDisabled||f.isUnavailable}),{focusProps:m,isFocusVisible:y}=na();y&&=f.isFocused;let v=!1,x=!1;"highlightedRange"in i&&i.highlightedRange&&(v=(0,nY.ro)(e,i.highlightedRange.start),x=(0,nY.ro)(e,i.highlightedRange.end));let w=eb({...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=eL(t,{global:!0});return b().createElement("td",{...c,ref:n},b().createElement(eE.div,{...em(j,d,m,p,S,w),ref:u}))}),rI=(0,g.createContext)({}),r_=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,rI);let{isDisabled:n,isInvalid:r,isReadOnly:a,onHoverStart:i,onHoverChange:o,onHoverEnd:s,...l}=e;n??=!!e["aria-disabled"]&&"false"!==e["aria-disabled"],r??=!!e["aria-invalid"]&&"false"!==e["aria-invalid"];let{hoverProps:u,isHovered:c}=nu({onHoverStart:i,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=na({within:!0}),h=eb({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});return b().createElement(eE.div,{...em(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":n||void 0,"data-invalid":r||void 0,"data-readonly":a||void 0},h.children)}),rL=(0,g.createContext)({}),rF=nn(function(e,t){[e,t]=ew(e,t,rL);let{hoverProps:n,isHovered:r}=nu({...e,isDisabled:e.disabled}),{isFocused:a,isFocusVisible:i,focusProps:o}=na({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=eb({...e,values:{isHovered:r,isFocused:a,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return b().createElement(eE.input,{...em((e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...a}=e;return a})(e),o,n),...l,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})});function rB(e,t,n,r){return e.createTreeWalker(t,n,r)}let rV=b().createContext(null),rz="react-aria-focus-scope-restore",rW=null;function rU(e){var t,n,r,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)(rV)||{},k=(0,g.useMemo)(()=>new r4({scopeRef:j}),[j]);X(()=>{let e=O||r5.root;if(r5.getTreeNode(e.scopeRef)&&rW&&!rq(rW,e.scopeRef)){let t=r5.getTreeNode(rW);t&&(e=t)}e.addChild(k),r5.addNode(k)},[k,O]),X(()=>{let e=r5.getTreeNode(j);e&&(e.contain=!!y)},[y]),X(()=>{let e=w.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==S.current;)t.push(e),e.addEventListener(rz,n),e=e.nextSibling;return j.current=t,()=>{for(let e of t)e.removeEventListener(rz,n)}},[m]),X(()=>{if(n||r)return;let e=t.current,a=eV(e?e[0]:void 0),i=e=>{let n=eG(e);rG(n,t.current)?rW=t:rK(n)||(rW=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,n=v,r=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=eV(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!rH(a)||e.isComposing)return;let n=((e=document)=>e.activeElement)(t),r=a.current;if(!r||!rG(n,r))return;let i=r0(r$(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=e.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&(rY(o,!0),o instanceof ez(o).HTMLInputElement&&o.select())},r=e=>{(!rW||rq(rW,a))&&rG(eG(e),a.current)?(rW=a,d.current=eG(e)):rH(a)&&!rK(eG(e),a)?d.current?rY(d.current):rW&&rW.current&&rX(rW.current):rH(a)&&(d.current=eG(e))},o=e=>{f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{let n=tc,r=("virtual"===n||null===n)&&to()&&ti(),i=((e=document)=>e.activeElement)(t);if(!r&&i&&rH(a)&&!rK(i,a)){rW=a;let t=eG(e);t&&t.isConnected?(d.current=t,rY(d.current)):rW.current&&rX(rW.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),e?.forEach(e=>e.addEventListener("focusout",o,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!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)(eV(o.current?o.current[0]:void 0)):null),X(()=>{let e=o.current,t=eV(e?e[0]:void 0);if(!s||l)return;let n=()=>{(!rW||rq(rW,o))&&rG(((e=document)=>e.activeElement)(t),o.current)&&(rW=o)};return t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1))}},[o,l]),X(()=>{let e=eV(o.current?o.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!rH(o)||t.isComposing)return;let n=e.activeElement;if(!rK(n,o)||!rQ(o))return;let r=r5.getTreeNode(o);if(!r)return;let a=r.nodeToRestore,i=r0(e.body,{tabbable:!0});i.currentNode=n;let s=t.shiftKey?i.previousNode():i.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,r.nodeToRestore=void 0),(!s||!rK(s,o))&&a){i.currentNode=a;do s=t.shiftKey?i.previousNode():i.nextNode();while(rK(s,o));(t.preventDefault(),t.stopPropagation(),s)?rY(s,!0):rK(a)?rY(a,!0):n.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[o,s,l]),X(()=>{let e=eV(o.current?o.current[0]:void 0);if(!s)return;let t=r5.getTreeNode(o);if(t)return t.nodeToRestore=p.current??void 0,()=>{let t=r5.getTreeNode(o);if(!t)return;let n=t.nodeToRestore,r=((e=document)=>e.activeElement)(e);if(s&&n&&(r&&rK(r,o)||r===e.body&&rQ(o))){let t=r5.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(o);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void rJ(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(o);e;){if(e.scopeRef&&e.scopeRef.current&&r5.getTreeNode(e.scopeRef)){let t=rZ(e.scopeRef.current,!0);if(t)return void rJ(t)}e=e.parent}}})}}},[o,s]),u=j,c=x,h=b().useRef(c),(0,g.useEffect)(()=>{h.current&&(rW=u,!rG(((e=document)=>e.activeElement)(eV(u.current?u.current[0]:void 0)),rW.current)&&u.current&&rX(u.current)),h.current=!1},[u]),(0,g.useEffect)(()=>{let e=((e=document)=>e.activeElement)(eV(j.current?j.current[0]:void 0)),t=null;if(rG(e,j.current)){for(let n of r5.traverse())n.scopeRef&&rG(e,n.scopeRef.current)&&(t=n);t===r5.getTreeNode(j)&&(rW=t.scopeRef)}},[j]),X(()=>()=>{let e=r5.getTreeNode(j)?.parent?.scopeRef??null;(j===rW||rq(j,rW))&&(!e||r5.getTreeNode(e))&&(rW=e),r5.removeTreeNode(j)},[j]);let E=(0,g.useMemo)(()=>{var e;return e=j,{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:i,accept:o}=t,s=r||((e=document)=>e.activeElement)(eV(n[0]??void 0)),l=n[0].previousElementSibling,u=r0(r$(n),{tabbable:a,accept:o},n);u.currentNode=rG(s,n)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&rY(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:i,accept:o}=t,s=r||((e=document)=>e.activeElement)(eV(n[0]??void 0)),l=n[n.length-1].nextElementSibling,u=r0(r$(n),{tabbable:a,accept:o},n);u.currentNode=rG(s,n)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&rY(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,i=r0(r$(n),{tabbable:r,accept:a},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&rY(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,i=r0(r$(n),{tabbable:r,accept:a},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&rY(o,!0),o}}},[]),A=(0,g.useMemo)(()=>({focusManager:E,parentNode:k}),[k,E]);return b().createElement(rV.Provider,{value:A},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 r$(e){return e[0].parentElement}function rH(e){let t=r5.getTreeNode(rW);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function rG(e,t){return!!e&&!!t&&t.some(t=>eH(t,e))}function rK(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of r5.traverse(r5.getTreeNode(t)))if(n&&rG(e,n.current))return!0;return!1}function rq(e,t){let n=r5.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function rY(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{tT(e)}catch{}}function rZ(e,t=!0){let n=e[0].previousElementSibling,r=r$(e),a=r0(r,{tabbable:t},e);a.currentNode=n;let i=a.nextNode();return t&&!i&&((a=r0(r=r$(e),{tabbable:!1},e)).currentNode=n,i=a.nextNode()),i}function rX(e,t=!0){rY(rZ(e,t))}function rQ(e){let t=r5.getTreeNode(rW);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function rJ(e){e.dispatchEvent(new CustomEvent(rz,{bubbles:!0,cancelable:!0}))&&rY(e)}function r0(e,t,n){let r=t?.tabbable?e1:e0,a=eV(e?.nodeType===Node.ELEMENT_NODE?e:null),i=rB(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>eH(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(eV(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=ez(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.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:r(e)&&(!n||rG(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(i.currentNode=t.from),i}function r1(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:a,tabbable:i=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(eV(r)),u=r0(r,{tabbable:i,accept:s});eH(r,l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&rY(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:a,tabbable:i=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=a||((e=document)=>e.activeElement)(eV(r)),u=r0(r,{tabbable:i,accept:s});if(eH(r,l))u.currentNode=l;else{let e=r2(u);return e&&rY(e,!0),e??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let e=r2(u);if(!e)return null;c=e}return c&&rY(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:i=t.accept}=n,o=r0(r,{tabbable:a,accept:i}).nextNode();return o&&rY(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:a=t.tabbable,accept:i=t.accept}=n,o=r2(r0(r,{tabbable:a,accept:i}));return o&&rY(o,!0),o??null}}}function r2(e){let t,n;do(t=e.lastChild())&&(n=t);while(t);return n}class r3{constructor(){this.fastMap=new Map,this.root=new r4({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let a=new r4({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&rG(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.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 r3;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class r4{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 r5=new r3;var r6={};function r8(e,t,n){let{direction:r}=nC(),a=(0,g.useMemo)(()=>r1(t),[t]),{keyboardProps:i}=tF({shortcuts:{"Alt+ArrowDown":()=>"setOpen"in e&&void e.setOpen(!0),"Alt+ArrowUp":()=>"setOpen"in e&&void e.setOpen(!0),ArrowLeft:e=>{if(n)return!1;if("rtl"!==r)return void a.focusPrevious();if(t.current){let n=eG(e),r=r9(t.current,n.getBoundingClientRect().left,-1);if(r)return void r.focus()}return!1},ArrowRight:e=>{if(n)return!1;if("rtl"!==r)return void a.focusNext();if(t.current){let n=eG(e),r=r9(t.current,n.getBoundingClientRect().left,1);if(r)return void r.focus()}return!1}},allowRepeats:!0}),o=()=>{if(!t.current)return;let e=window.event?eG(window.event):null,n=r0(t.current,{tabbable:!0});if(e&&(n.currentNode=e,e=n.previousNode()),!e){let t;do(t=n.lastChild())&&(e=t);while(t)}for(;e?.hasAttribute("data-placeholder");){let t=n.previousNode();if(t&&t.hasAttribute("data-placeholder"))e=t;else break}e&&e.focus()},{pressProps:s}=t4({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return em(s,i)}function r9(e,t,n){let r=r0(e,{tabbable:!0}),a=r.nextNode(),i=null,o=1/0;for(;a;){let e=a.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<o&&(i=a,o=s),a=r.nextNode()}return i}function r7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:o}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=ec(t);let o=ec(),s={};return n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:"label"===i?t:void 0}),{labelProps:s,fieldProps:n1({id:t,"aria-label":a,"aria-labelledby":r})}}(e),s=ed([!!t,!!n,r,a]),l=ed([!!t,!!n,r,a]);return{labelProps:i,fieldProps:o=em(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function ae(e,t,n){let r=tZ(e=>{n&&!e.defaultPrevented&&n(t)});(0,g.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",r),()=>{t?.removeEventListener("reset",r)}},[e])}function at(e,t,n){let{validationBehavior:r,focus:a}=e;X(()=>{if("native"===r&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){var e;let r,a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let i=(0,g.useRef)(!1),o=tZ(()=>{i.current||t.resetValidation()}),s=tZ(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}(r)===n.current&&(a?a():n.current?.focus(),tc="keyboard",ty("keyboard",null));e.preventDefault()}),l=tZ(()=>{t.commitValidation()});(0,g.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{i.current=!window.event||"message"===window.event.type&&eG(window.event)instanceof MessagePort,r?.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=r)}},[n,r])}r6={"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 an=new WeakMap,ar="__reactAriaDateFieldRole",aa="__reactAriaDateFieldFocusManager";function ai(e,t,n){var r;let a,{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=r7({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),f=(0,g.useRef)(null),{focusWithinProps:p}=nr({...e,onFocusWithin(n){f.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),h=nq((r=r6)&&r.__esModule?r.default:r,"@react-aria/datepicker"),m="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===t.maxGranularity?"time":"date",v=rt(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[aa],w=(0,g.useMemo)(()=>x||r1(n),[x,n]),S=r8(t,n,"presentation"===e[ar]);an.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"}:em(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),(0,g.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),ae(e.inputRef,t.defaultValue,t.setValue),at({...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=eL(e);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:em(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 ao={};ao={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:"Datum zah\xe1jen\xed mus\xed předch\xe1zet datu ukončen\xed.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:"Vybran\xe9 datum nen\xed k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xe6re f\xf8r slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xe6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar."},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuup\xe4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date s\xe9lectionn\xe9e n’est pas disponible."},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő d\xe1tumnak a befejező d\xe1tumn\xe1l kor\xe1bbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:"A kiv\xe1lasztott d\xe1tum nem \xe9rhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xe0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xedcio deve ser anterior \xe0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:"Data de \xeenceput trebuie să fie anterioară datei de sf\xe2rșit.",rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:"D\xe1tum začiatku mus\xed byť skorš\xed ako d\xe1tum konca.",rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:"Vybrat\xfd d\xe1tum je nedostupn\xfd."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xe5ste vara f\xf6re slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xe4r inte tillg\xe4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:"Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.",rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:"Se\xe7ilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:"所選日期無法使用。"}};let as={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},al={...as,customError:!0,valid:!1},au={isInvalid:!1,validationDetails:as,validationErrors:[]},ac=(0,g.createContext)({}),ad="__reactAriaFormValidationState";function af(e){if(e[ad]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[ad];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return function(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:o,validationBehavior:s="aria"}=e;n&&(t||="invalid"===n);let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:al}:null,u=(0,g.useMemo)(()=>o&&null!=a?ah(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return ap(n)}return[]}(o,a)):null,[o,a]);i?.validationDetails.valid&&(i=void 0);let c=(0,g.useContext)(ac),d=(0,g.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>ap(c[e])):ap(c[r]):[],[c,r]),[f,p]=(0,g.useState)(c),[h,m]=(0,g.useState)(!1);c!==f&&(p(c),m(!1));let y=(0,g.useMemo)(()=>ah(h?[]:d),[h,d]),v=(0,g.useRef)(au),[b,x]=(0,g.useState)(au),w=(0,g.useRef)(au),[S,j]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{if(!S)return;j(!1);let e=u||i||v.current;am(e,w.current)||(w.current=e,x(e))}),{realtimeValidation:l||y||u||i||au,displayValidation:"native"===s?l||y||b:l||y||u||i||b,updateValidation(e){"aria"!==s||am(b,e)?v.current=e:x(e)},resetValidation(){am(au,w.current)||(w.current=au,x(au)),"native"===s&&j(!1),m(!0)},commitValidation(){"native"===s&&j(!0),m(!0)}}}(e)}function ap(e){return e?Array.isArray(e)?e:[e]:[]}function ah(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:al}:null}function am(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function ay(...e){let t=new Set,n=!1,r={...as};for(let a of e){for(let e of a.validationErrors)t.add(e);for(let e in n||=a.isInvalid,r)r[e]||=a.validationDetails[e]}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}var av=n(5923);let ag=new nW((gC=ao)&&gC.__esModule?gC.default:gC);function ab(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function ax(e,t,n,r,a){let i=null!=e&&null!=n&&e.compare(n)>0,o=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&r?.(e)||!1,l=i||o||s,u=[];if(l){let e=ab(),r=new nH(e,nW.getGlobalDictionaryForPackage("@react-stately/datepicker")||ag),l=new nM(e,aj({},a)),c=l.resolvedOptions().timeZone;o&&null!=t&&u.push(r.format("rangeUnderflow",{minValue:l.format(t.toDate(c))})),i&&null!=n&&u.push(r.format("rangeOverflow",{maxValue:l.format(n.toDate(c))})),s&&u.push(r.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 aw={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},aS={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function aj(e,t){e={...t.shouldForceLeadingZeros?aS:aw,...e};let n=t.granularity||"minute",r=Object.keys(e),a=r.indexOf(t.maxGranularity??"year");a<0&&(a=0);let i=r.indexOf(n);if(i<0&&(i=2),a>i)throw Error("maxGranularity must be greater than granularity");let o=r.slice(a,i+1).reduce((t,n)=>(t[n]=e[n],t),{});return null!=t.hourCycle&&(o.hour12=12===t.hourCycle),o.timeZone=t.timeZone||"UTC",("hour"===n||"minute"===n||"second"===n)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&0===a&&(o.era="short"),o}function aO(e){return e&&"hour"in e?e:new(0,av.gX)}function ak(e,t){return null===e?null:e?(0,ra.yP)(e,t):void 0}function aE(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=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)([r,n]);return e&&(a[0]!==r||a[1]!==n)&&i([r,n]),t||(t=e?r:a[0]),[t,e?n:a[1]]}let aA=new nW({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 aD{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset="offset"in(n??{})?n.offset:null,null!=this.hour){let[e,n]=aT(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let e=new aD(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,n]=aT(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,n){let r=this.copy();return r[e]=t,"hour"===e&&null==r.dayPeriod&&"hour"in n&&(r.dayPeriod=aT(n.hour,this.hourCycle)[0]),"year"===e&&null==r.era&&(r.era=n.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let a=this.copy();if(null==a[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in n){let[e,t]=aT(n.hour,this.hourCycle);a.dayPeriod=e,a.hour=t}else a[e]=n[e];return"year"===e&&null==a.era&&(a.era=n.era),a}switch(e){case"era":{let e=this.calendar.getEras(),n=e.indexOf(a.era);n=aP(n,t,0,e.length-1),a.era=e[n];break}case"year":{let r=new(0,av.ng)(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);a.era=(r=r.cycle(e,t,{round:"year"===e})).era,a.year=r.year;break}case"month":a.month=aP(a.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=aP(a.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=r.some(e=>["year","month","day"].includes(e));if("timeZone"in n&&(!e||null!=a.year&&null!=a.month&&null!=a.day)){let e=this.toValue(n),[r,i]=aT((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);a.hour=i,a.dayPeriod=r,a.offset=e.offset}else{let e=a.hour??0,r=this.getSegmentLimits("hour");a.hour=aP(e,t,r.minValue,r.maxValue),null==a.dayPeriod&&"hour"in n&&(a.dayPeriod=aT(n.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=aP(a.dayPeriod??0,t,0,1);break;case"minute":a.minute=aP(a.minute??0,t,0,59,!0);break;case"second":a.second=aP(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,n){switch(n){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 n=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 n&&null!=this.offset&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}}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 aP(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function aT(e,t){let n=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}var aC=n(449);let aN={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},aM={year:5,month:2,day:7,hour:2,minute:15,second:15},aR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function aI(e){let{locale:t,createCalendar:n,hideTimeZone:r,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]=aE(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 r=new nM(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[y,v]=rp(e.value,e.defaultValue??null,e.onChange),[b]=(0,g.useState)(y),x=(0,g.useMemo)(()=>ak(y,h)??null,[y,h]),[w,S]=(0,g.useState)(()=>new aD(h,m,x)),j="gregory"===h.identifier&&"BC"===w.era,O=(0,g.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:j,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,j]),k=(0,g.useMemo)(()=>aj({},O),[O]),E=(0,g.useMemo)(()=>new nM(t,k),[t,k]),A=(0,g.useMemo)(()=>E.resolvedOptions(),[E]),D=(0,g.useMemo)(()=>(function(e,t,n,r){if(e)return ak(e,n);let a=(0,ra.yP)((0,nY.tB)(r??(0,nY.Xj)()).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?(0,ra.gw)(a):r?a:(0,ra.tR)(a)})(e.placeholderValue,d,h,f),[e.placeholderValue,d,h,f]),P=(0,g.useMemo)(()=>{let t="h11"===m||"h12"===m,n=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],r=n.indexOf(e.maxGranularity||"era"),a=n.indexOf("hour"===d&&t?"dayPeriod":d);return n.slice(r,a+1)},[e.maxGranularity,d,m]),[T,C]=(0,g.useState)(x),[N,M]=(0,g.useState)(h),[R,I]=(0,g.useState)(m);x===T&&m===R&&(0,nY.Jg)(h,N)||(w=new aD(h,m,x),C(x),M(h),I(m),S(w));let L=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof aD&&t.isCleared(P))S(new aD(h,m,x)),v(null);else if(t instanceof aD){if(t.isComplete(P)){let e=t.toValue(x??D);if(t.validate(e,P)){let t=(0,ra.yP)(e,c?.calendar||new(0,rh.FG));if(!y||0!==t.compare(y)){S(new aD(h,m,x)),v(t);return}}}S(t)}else t=(0,ra.yP)(t,c?.calendar||new(0,rh.FG)),S(new aD(h,m,x)),v(t)},F=(0,g.useMemo)(()=>w.toValue(x??D).toDate(p),[w,p,x,D]),B=(0,g.useMemo)(()=>(function(e,t,n,r,a,i,o){let s=["hour","minute","second"],l=n.formatToParts(e),u=new(0,aC.K)(i,{useGrouping:!1}),c=new(0,aC.K)(i,{useGrouping:!1,minimumIntegerDigits:2});for(let e of l)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let n=t[e.type]??0;"2-digit"===r[e.type]?e.value=c.format(n):e.value=u.format(n)}let d=[];for(let e of l){var f;let n=aR[e.type]||e.type,r=aN[n];"era"===n&&1===a.getEras().length&&(r=!1);let l=aN[n]&&null==t[e.type],u=aN[n]?(f=e.value,"era"===n||"dayPeriod"===n?f:"year"===n||"month"===n||"day"===n?aA.getStringForLocale(n,i):"––"):null,c={type:n,text:l?u:e.value,...t.getSegmentLimits(n),isPlaceholder:l,placeholder:u,isEditable:r};"hour"===n?(d.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),d.push(c),n===o&&d.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(n)&&n===o?(d.push(c),d.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.push(c)}return d})(F,w,E,A,h,t,d),[F,E,A,w,h,t,d]),V=(e,t)=>{L(w.cycle(e,t,D,P))},z=(0,g.useMemo)(()=>ax(y,s,l,u,O),[y,s,l,u,O]),W=af({...e,value:y,builtinValidation:z}),U=W.displayValidation.isInvalid,$=e.validationState||(U?"invalid":null);return{...W,value:x,defaultValue:e.defaultValue??b,dateValue:F,calendar:h,setValue:L,segments:B,dateFormatter:E,validationState:$,isInvalid:U,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,aM[e]||1)},decrementPage(e){V(e,-(aM[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===m?11:w.getSegmentLimits(e).maxValue;L(w.set(e,t,D))},decrementToMin(e){let t="hour"===e&&"h12"===m?12:w.getSegmentLimits(e).minValue;L(w.set(e,t,D))},setSegment(e,t){L(w.set(e,t,D))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&w.isComplete(P)){let e=w.toValue(x??D),t=(0,ra.yP)(e,c?.calendar||new(0,rh.FG));y&&0===t.compare(y)||v(t),S(new aD(h,m,x))}},clearSegment(e){let t=w;"timeZoneName"!==e&&"literal"!==e&&(t=w.clear(e)),L(t)},formatValue:e=>x?new nM(t,aj(e,O)).format(F):"",getDateFormatter:(e,t)=>new nM(e,aj({},{...O,...t}))}}let a_=(0,g.createContext)(null),aL=(0,g.createContext)(null),aF=(0,g.createContext)(null),aB=(0,g.forwardRef)(function(e,t){let n=(0,g.useContext)(aL),r=(0,g.useContext)(aF);return n||r?b().createElement(az,{...e,ref:t}):b().createElement(aV,{...e,ref:t})}),aV=(0,g.forwardRef)((e,t)=>{let[n,r]=ew({slot:e.slot},t,a_),{locale:a}=nC(),i=aI({...n,locale:a,createCalendar:rr.d}),o=(0,g.useRef)(null),{fieldProps:s,inputProps:l}=ai({...n,inputRef:o},i,r);return b().createElement(eg,{values:[[aL,i],[rL,{...l,ref:o}],[rI,{...s,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},b().createElement(az,e))}),az=(0,g.forwardRef)((e,t)=>{let{className:n,children:r}=e,a=(0,g.useContext)(aL),i=(0,g.useContext)(aF),o=a??i;return b().createElement(b().Fragment,null,b().createElement(r_,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((e,t)=>(0,g.cloneElement)(r(e),{key:t}))),b().createElement(rF,{className:""}))});function aW({children:e}){let t=(0,g.useMemo)(()=>({register:()=>{}}),[]);return b().createElement(tq.Provider,{value:t},e)}b().forwardRef(({children:e,...t},n)=>{let r=(0,g.useRef)(!1),a=(0,g.useContext)(tq),i=em(a||{},{...t,register(){r.current=!0,a&&a.register()}});return i.ref=ey(n||a?.ref),tB(a,i.ref),(0,g.useEffect)(()=>{r.current||(r.current=!0)},[]),b().createElement(tq.Provider,{value:i},e)});let aU=(0,g.createContext)({}),a$=b().createContext(null);function aH(e){let t=eo(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,i]=(0,g.useState)(!1),o=(0,g.useMemo)(()=>({contain:a,setContain:i}),[a,i]),{getContainer:s}=(0,g.useContext)(aU)??{};if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=b().createElement(rU,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},l)),l=b().createElement(a$.Provider,{value:o},b().createElement(aW,null,b().createElement(tV.Provider,{value:null},l))),tJ().createPortal(l,n)}let aG=(0,g.createContext)(null),aK=(0,g.createContext)(null),aq=(0,g.forwardRef)(function(e,t){let n=e["aria-labelledby"];[e,t]=ew(e,t,aG);let{dialogProps:r,titleProps:a,contentProps:i}=function(e,t){let n,r,{role:a="dialog"}=e,i=ed();i=e["aria-label"]?void 0:i;let o=ed();o="alertdialog"!==a||e["aria-describedby"]?void 0:o;let s=(0,g.useRef)(!1);(0,g.useEffect)(()=>{if(t.current&&!eq(t.current)){tT(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(),tT(t.current)),s.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),n=(0,g.useContext)(a$),X(()=>{r?.(!0)},[r=n?.setContain]),(0,g.useRef)(!1),(0,g.useEffect)(()=>{});let l=e["aria-describedby"]??o;return{dialogProps:{...eL(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":n},t),o=(0,g.useContext)(aK);r["aria-label"]||r["aria-labelledby"]||e["aria-labelledby"]&&(r["aria-labelledby"]=e["aria-labelledby"]);let s=eb({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),l=eL(e,{global:!0});return b().createElement(eE.section,{...em(l,s,r),render:e.render,ref:t,slot:e.slot||void 0},b().createElement(eg,{values:[[np,{slots:{[ev]:{},title:{...a,level:2}}}],[nh,{slots:{[ev]:{},description:i}}],[nc,{slots:{[ev]:{},close:{onPress:()=>o?.close()}}}]]},s.children))}),aY=(0,g.createContext)(null),aZ=(0,g.forwardRef)(function(e,t){let n=(0,g.useContext)(aY);return n?.isInvalid?b().createElement(aX,{...e,ref:t}):null}),aX=(0,g.forwardRef)((e,t)=>{let n=(0,g.useContext)(aY),{elementType:r,...a}=e,i=eL(a,{global:!0}),o=eb({...a,defaultClassName:"react-aria-FieldError",defaultChildren:0===n.validationErrors.length?void 0:n.validationErrors.join(" "),values:n});return null==o.children?null:b().createElement(nm,{slot:"errorMessage",elementType:r,...i,...o,ref:t})}),aQ=(0,g.createContext)(null);var aJ=n(2298);let a0=["day","month","year"],a1={hour:1,minute:2,second:3};function a2(e){let{state:t}=e,{containerProps:n,inputProps:r}=function(e,t){let{autoComplete:n,isDisabled:r,name:a}=e,{visuallyHiddenProps:i}=rw({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,ra.gw)(t.value).toString():(0,ra.tR)("timeZone"in t.value?(0,ra.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=a1[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:n,disabled:r,type:l,form:"",name:a,step:o,value:s,onChange:e=>{let n=eG(e).value.toString();if(n)try{let e=(0,aJ.DP)(n);if("day"===t.granularity&&(e=(0,aJ._U)(n)),"setSegment"in t)for(let n in e)a0.includes(n)&&t.setSegment(n,e[n]),u.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}({...e},t);return b().createElement("div",{...n,"data-testid":"hidden-dateinput-container"},b().createElement("input",r))}let a3=(0,g.createContext)({}),a4=nn(function(e,t){[e,t]=ew(e,t,a3);let{elementType:n="label",...r}=e,a=eE[n];return b().createElement(a,{className:"react-aria-Label",...r,ref:t})}),a5=(0,g.createContext)({placement:"bottom"}),a6="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,a8=new WeakMap,a9=[];function a7(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ie(e,t){let n=e,r=0,a=t.toString(),i=a.toLowerCase().indexOf("e-");if(i>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let e=a.indexOf(".");e>=0&&(r=a.length-e)}if(r>0){let e=Math.pow(10,r);n=Math.round(n*e)/e}return n}function it(e,t,n,r){t=Number(t),n=Number(n);let a=(e-(isNaN(t)?0:t))%r,i=ie(2*Math.abs(a)>=r?e+Math.sign(a)*(r-Math.abs(a)):e-a,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(ie(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(ie((n-t)/r,r))*r),i=ie(i,r)}let ir={top:"top",bottom:"top",left:"left",right:"left"},ia={top:"bottom",bottom:"top",left:"right",right:"left"},ii={top:"left",left:"top"},io={top:"height",left:"width"},is={width:"totalWidth",height:"totalHeight"},il={};function iu(e,t){let n=0,r=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,n=t?.width??a,r=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:n,height:r,top:o,left:s}=iy(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,a=n,i=r;return ta()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(l.top=0,l.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:a,totalHeight:i,scroll:l,top:o,left:s}}function ic(e,t,n,r,a,i,o){let s=a.scroll[e]??0,l=r[io[e]],u=o[e]+r.scroll[ir[e]]+i,c=o[e]+r.scroll[ir[e]]+l-i,d=t-s+r.scroll[ir[e]]+o[e]-r[ir[e]],f=t-s+n+r.scroll[ir[e]]+o[e]-r[ir[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function id(e){if(il[e])return il[e];let[t,n]=e.split(" "),r=ir[t]||"right",a=ii[r];ir[n]||(n="center");let i=io[r],o=io[a];return il[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:i,crossSize:o},il[e]}function ip(e,t,n,r,a,i,o,s,l,u,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:h,size:m,crossSize:y}=r,v={};v[h]=e[h]??0,"center"===f?v[h]+=((e[y]??0)-(n[y]??0))/2:f!==h&&(v[h]+=(e[y]??0)-(n[y]??0)),v[h]+=i;let g=e[h]-n[y]+l+u,b=e[h]+e[y]-l-u;if(v[h]=a7(v[h],g,b),d===p){let t=s?c[m]:c[is[m]];v[ia[p]]=Math.floor(t-e[p]+a)}else v[p]=Math.floor(e[p]+e[m]+a);return v}function ih(e,t,n,r,a,i,o,s){let{placement:l,axis:u,size:c}=i;return l===u?Math.max(0,n[u]-(o.scroll[u]??0)-(e[u]+(s?t[u]:0))-(r[u]??0)-r[ia[u]]-a):Math.max(0,e[c]+e[u]+(s?t[u]:0)-n[u]-n[c]+(o.scroll[u]??0)-(r[u]??0)-r[ia[u]]-a)}function im(e,t){let{top:n,left:r,width:a,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(a=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:a,height:i}}function iy(e,t,n){let{top:r,left:a,width:i,height:o}=n||im(e,t),{scrollTop:s,scrollLeft:l,clientTop:u,clientLeft:c}=document.documentElement;return{top:r+s-u,left:a+l-c,width:i,height:o}}function iv(e,t,n,r){let a,i=window.getComputedStyle(e);if("fixed"===i.position)a=r||im(e,n);else{a=iy(e,n,r);let i=iy(t,n),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 ig(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 ib=new WeakMap;function ix(e){let{ref:t,box:n,onResize:r}=e,a=tZ(r);(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:n}),()=>{e&&t.unobserve(e)}}},[t,n])}let iw="u">typeof document?window.visualViewport:null;function iS(e,t){if(e.button>0)return!1;let n=eG(e);if(n){let e=n.ownerDocument;if(!e||!eH(e.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let ij=[],iO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ik(e){return e instanceof HTMLInputElement&&!iO.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let iE="u">typeof document&&window.visualViewport,iA=0;function iD(e,t){t||!iE?iP(e):iE.addEventListener("resize",()=>iP(e),{once:!0})}function iP(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=n5(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;iE&&(n=Math.min(n,iE.offsetTop+iE.height));let a=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+a)),behavior:"smooth"})}}n=e.parentElement}}var iT={};function iC(e){var t;let{onDismiss:n,...r}=e,a=n1(r,nq((t=iT)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return b().createElement(rS,null,b().createElement("button",{...a,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}function iN(e){let[t,n]=rp(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,a]=(0,g.useState)(null),i=(0,g.useCallback)(()=>{n(!0)},[n]),o=(0,g.useCallback)(()=>{n(!1)},[n]),s=(0,g.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:o,toggle:s,point:r,setPoint:a}}function iM(e,t,n){X(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,tQ.flushSync)(()=>{n()})}),()=>{r=!0}}},[e,t,n])}iT={"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 iR=(0,g.createContext)(null),iI=(0,g.createContext)(null),i_=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,iR);let n=(0,g.useContext)(aK),r=iN(e),a=null==e.isOpen&&null==e.defaultOpen&&n?n:r,i=function(e,t){let[n,r]=(0,g.useState)(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open")}let a="exiting"===n;return iM(e,a,(0,g.useCallback)(()=>{r(e=>"exiting"===e?"closed":e)},[])),a}(t,a.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&i||!1,s=(0,g.useContext)(nt),{direction:l}=nC();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(iL,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:o,dir:l}):null});function iL({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let o=(0,g.useRef)(null),s=(0,g.useRef)(null),l=(0,g.useContext)(iI),u=l&&"SubmenuTrigger"===i.trigger,{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:h}=function(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l,...u}=e,c="SubmenuTrigger"===u.trigger,{overlayProps:d,underlayProps:f}=function(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,l=(0,g.useRef)(void 0);(0,g.useEffect)(()=>{if(a&&!ij.includes(t))return ij.push(t),()=>{let e=ij.indexOf(t);e>=0&&ij.splice(e,1)}},[a,t]);let u=()=>{ij[ij.length-1]===t&&n&&n()},{keyboardProps:c}=tF({shortcuts:{Escape:()=>!o&&void u()}});!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,i=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=tZ(e=>{n&&iS(e,t)&&(a&&a(e),i.current.isPointerDown=!0)}),s=tZ(e=>{n&&n(e)});(0,g.useEffect)(()=>{let e=i.current;if(r)return;let n=eV(t.current);if("u">typeof PointerEvent){let r=n=>{e.isPointerDown&&iS(n,t)&&s(n),e.isPointerDown=!1};return n.addEventListener("pointerdown",o,!0),n.addEventListener("click",r,!0),()=>{n.removeEventListener("pointerdown",o,!0),n.removeEventListener("click",r,!0)}}},[t,r])}({ref:t,onInteractOutside:i&&a?e=>{(!s||s(eG(e)))&&(ij[ij.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0}:void 0,onInteractOutsideStart:e=>{let n=ij[ij.length-1];l.current=n,(!s||s(eG(e)))&&n===t&&e.stopPropagation()}});let{focusWithinProps:d}=nr({isDisabled:!r,onBlurWithin:e=>{!(!e.relatedTarget||rK(e.relatedTarget,rW))&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...c,...d},underlayProps:{}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l},i??r),{overlayProps:p,arrowProps:h,placement:m,triggerAnchorPoint:y}=function(e){var t;let{direction:n}=nC(),{arrowSize:r,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,n,v,b,r],O=(0,g.useRef)(iw?.scale);(0,g.useEffect)(()=>{m&&(O.current=iw?.scale)},[m]);let k=(0,g.useCallback)(()=>{var e;if(!1===h||!m||!i.current||!a.current||!d||iw?.scale!==O.current)return;let t=null;if(s.current&&eq(s.current)){let e=((e=document)=>e.activeElement)()?.getBoundingClientRect(),n=s.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-n.top}).offset>n.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-n.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,n,{placement:r,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&&!ig(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!ig(t);)t=t.parentElement;return t||document.documentElement}(i):document.documentElement,g=v===document.documentElement,b=window.getComputedStyle(v).position,x=g?iy(a,!1,m):iv(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=iy(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=iu(u,y),O=iu(v,y);if("BODY"!==u.tagName&&"HTML"!==u.tagName||g)n=("BODY"===u.tagName||"HTML"===u.tagName)&&g?{top:0,left:0,width:0,height:0}:iv(u,v,!1);else{let e=im(v,!1);n={top:-(e.top-j.top),left:-(e.left-j.left),width:0,height:0}}return function(e,t,n,r,a,i,o,s,l,u,c,d,f,p,h,m,y){var v,g,b;let x,w,S,j=id(e),{size:O,crossAxis:k,crossSize:E,placement:A,crossPlacement:D}=j,P=ip(t,o,n,j,u,c,l,d,p,h,s),T=u,C=ih(o,l,t,r,a+u,j,s,m);if(i&&n[O]>C){let e=id(`${ia[A]} ${D}`),i=ip(t,o,n,e,u,c,l,d,p,h,s);ih(o,l,t,r,a+u,e,s,m)>C&&(j=e,P=i,T=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 M=ic(k,P[k],n[E],o,s,a,l);P[k]+=M;let R=(v=P,g=n.height,b=N,x=(null!=v.top?v.top:s[is.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-((r.top??0)+(r.bottom??0)+a)):Math.max(0,x+g-S.top-((r.top??0)+(r.bottom??0)+a)));f&&f<R&&(R=f),n.height=Math.min(n.height,R),M=ic(k,(P=ip(t,o,n,j,T,c,l,d,p,h,s))[k],n[E],o,s,a,l),P[k]+=M;let I={},L=t[k]-P[k]-r[ir[k]],F=L+.5*t[E],B=p/2+h,V="left"===ir[k]?(r.left??0)+(r.right??0):(r.top??0)+(r.bottom??0),z=n[E]-V-p/2-h,W=a7(F,t[k]+p/2-(P[k]+r[ir[k]]),t[k]+t[E]-p/2-(P[k]+r[ir[k]]));I[k]=a7(W,B,z),({placement:A,crossPlacement:D}=j),p?L=I[k]:"right"===D?L+=t[E]:"center"===D&&(L+=t[E]/2);let U="left"===A||"top"===A?n[O]:0,$={x:"top"===A||"bottom"===A?L:U,y:"left"===A||"right"===A?L:U};return{position:P,maxHeight:R,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:A,triggerAnchorPoint:$}}(r,x,w,S,s,l,j,O,n,c,d,!!b&&"static"!==b,f,p,h,eH(u,v),y)}({placement:(e=l,"rtl"===n?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:r??(o?.current?im(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(),n=s.current.getBoundingClientRect(),r=e[t.type]-n[t.type];s.current.scrollTop+=r-t.offset}S(g)},j);X(k,j),X(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=k]),ix({ref:i,onResize:k}),ix({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()},n=()=>{E.current&&t()};iw?.addEventListener("resize",t),iw?.addEventListener("scroll",n);let r=eU(eK(window),"scroll",n);return()=>{iw?.removeEventListener("resize",t),iw?.removeEventListener("scroll",n),r()}},[k]);let A=(0,g.useCallback)(()=>{E.current||y?.()},[y,E]);return!function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,g.useEffect)(()=>{if(n&&null!==r)return eU(eK(t.current),"scroll",e=>{let n=eG(e);if(!t.current||n instanceof Node&&!eH(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let a=r||ib.get(t.current);a&&a()},!0)},[n,r,t])}({triggerRef:a,isOpen:m,onClose:y&&A}),{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:n,overlayRef:r,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,n,r,i,o,s,l;return 1==++iA&&(a=tr()&&ta()?(t=e$(document.documentElement,"overflow","hidden"),n=!1,r=document.createElement("style"),(i=tK())&&(r.nonce=i),r.textContent=`
8
- @layer {
9
- * {
10
- overscroll-behavior: contain;
11
- }
12
- }`.trim(),document.head.prepend(r),o=HTMLElement.prototype.focus,Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=((e=document)=>e.activeElement)(),n=null!=t&&ik(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||iD(this,n)}}),s=Z(eU(document,"touchstart",t=>{let r=eG(t);e=n4(r)?r:n5(r,!0),n=!1;let a=r.ownerDocument.defaultView.getSelection();a&&!a.isCollapsed&&a.containsNode(r,!0)&&(n=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(n=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},{passive:!1,capture:!0}),eU(document,"touchmove",t=>{if(2!==t.touches.length&&!n){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}),eU(document,"blur",e=>{let t=eG(e),n=e.relatedTarget;if(n&&ik(n))n.focus({preventScroll:!0}),iD(n,ik(t));else if(!n){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),r.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:o})}):Z((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==--iA&&a()}}},[t])}({isDisabled:o||!t.isOpen}),(0,g.useEffect)(()=>{if(t.isOpen&&r.current)if(o){var e,n,a=i?.current??r.current;let t=a9[a9.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??r.current],a=(n={shouldUseInert:!0})instanceof(t=ez(e?.[0])).Element?{root:n}:n,o=a?.root??document.body,s=a?.shouldUseInert&&a6,l=new Set(e),u=new Set,c=(e,n)=>{s&&e instanceof t.HTMLElement?e.inert=n:n?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(eH(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=rB(eV(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)f(e),e=n.nextNode()}},f=e=>{let n=a8.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===n||(0===n&&c(e,!0),u.add(e),a8.set(e,n+1))},a9.length&&a9[a9.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let n of e)if("childList"===n.type&&n.target.isConnected&&![...l,...u].some(e=>eH(e,n.target)))for(let e of n.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()}},a9.push(h),()=>{for(let e of(p.disconnect(),u)){let t=a8.get(e);null!=t&&(1===t?(c(e,!1),a8.delete(e)):a8.set(e,t-1))}h===a9[a9.length-1]?(a9.pop(),a9.length&&a9[a9.length-1].observe()):a9.splice(a9.indexOf(h),1)}}},[o,t.isOpen,r,i]);let{focusWithinProps:v}=nr(e);return{popoverProps:em(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[n,r]=(0,g.useState)(!0),a=n&&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]),iM(e,a,(0,g.useCallback)(()=>r(!1),[])),a}(m,!!p),v=i.isEntering||!i.shouldSkipAnimation&&y||!1,x=eb({...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"!==tc)&&m.current&&!eq(m.current)&&tT(m.current)},[S,m,i.trigger]);let O=(0,g.useMemo)(()=>{let e=x.children;if(r)for(let t of r)e=b().createElement(t.Provider,{value:null},e);return e},[x.children,r]),[k,E]=(0,g.useState)(null),A=(0,g.useCallback)(()=>{i.triggerRef.current&&E(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);X(A,[A]),ix({ref:x.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:A});let D={...c.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...x.style,"--trigger-width":x.style?.["--trigger-width"]||k},P=b().createElement(eE.div,{...em(eL(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:D,dir:i.dir,"data-trigger":i.trigger,"data-placement":p,"data-entering":v||void 0,"data-exiting":t||void 0},!i.isNonModal&&b().createElement(iC,{onDismiss:e.close}),b().createElement(a5.Provider,{value:{...f,placement:p,ref:o}},O),b().createElement(iC,{onDismiss:e.close}));return u?b().createElement(aH,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:n??l?.current??void 0},P):b().createElement(aH,{...i,shouldContainFocus:S&&"PreviewTrigger"!==i.trigger,isExiting:t,portalContainer:n},!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(iI.Provider,{value:s},P)))}function iF(e){return e?.start!=null&&null!=e.end}let iB=(0,g.createContext)(null),iV=(0,g.createContext)(null),iz=(0,g.createContext)(null),iW=(0,g.createContext)(null),iU=[rI,nc,a3,nh],i$=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,iB);let{validationBehavior:n}=ex(aQ)||{},r=e.validationBehavior??n??"native",a=function(e){let t=iN(e),[n,r]=rp(e.value,e.defaultValue||null,e.onChange),[a]=(0,g.useState)(n),i=n||e.placeholderValue||null,[o,s]=aE(i,e.granularity),l=null!=n?n.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(n&&(d=n,"hour"in n&&(p=n)),i&&!(o in i))throw Error("Invalid granularity "+o+" for value "+i.toString());let m=n?.calendar.identifier==="gregory"&&"BC"===n.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)(()=>ax(n,v,b,x,y),[n,v,b,x,y]),S=af({...e,value:n,builtinValidation:w}),j=S.displayValidation.isInvalid,O=e.validationState||(j?"invalid":null),k=(e,t)=>{r("timeZone"in t?t.set((0,ra.gw)(e)):(0,ra.tR)(e,t)),f(null),h(null),S.commitValidation()};return{...S,value:n,defaultValue:e.defaultValue??a,setValue:r,dateValue:d,timeValue:p,setDateValue:n=>{let a="function"==typeof c?c():c;u?p||a?k(n,p||aO(e.defaultValue||e.placeholderValue)):f(n):(r(n),S.commitValidation()),a&&t.setOpen(!1)},setTimeValue:e=>{d&&e?k(d,e):h(e)},granularity:o,hasTime:u,...t,setOpen(r){!r&&!n&&d&&u&&k(d,p||aO(e.defaultValue||e.placeholderValue)),t.setOpen(r)},validationState:O,isInvalid:j,formatValue:(e,t)=>l?new nM(e,aj(t,y)).format(l):"",getDateFormatter:(e,t)=>new nM(e,aj({},{...y,...t}))}}({...e,validationBehavior:r}),i=(0,g.useRef)(null),[o,s]=eS(!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,n){var r;let a=ec(),i=ec(),o=ec(),s=nq((r=r6)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=r7({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),m=r8(t,n),y=f["aria-labelledby"]||f.id,{locale:v}=nC(),b=t.formatValue(v,{month:"long"}),x=rt(b?s.format("selectedDateDescription",{date:b}):""),w=[x["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=eL(e),j=(0,g.useMemo)(()=>r1(n),[n]),O=(0,g.useRef)(!1),{focusWithinProps:k}=nr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{eH(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:em(S,m,f,x,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":y,"aria-describedby":w,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),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,[ad]: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}}({...ej(e),label:s,validationBehavior:r},a,i),{focusProps:v,isFocused:x,isFocusVisible:w}=na({within:!0}),S=eb({...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=eL(e,{global:!0});return delete j.id,b().createElement(eg,{values:[[iz,a],[rI,{...l,ref:i,isInvalid:a.isInvalid}],[a_,c],[nc,{...d,isPressed:a.isOpen}],[a3,{...u,ref:o,elementType:"span"}],[rj,p],[aK,a],[iR,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",clearContexts:iU}],[aG,f],[nh,{slots:{description:h,errorMessage:m}}],[aY,y]]},b().createElement(eE.div,{...em(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(a2,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),iH=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,iV);let{validationBehavior:n}=ex(aQ)||{},r=e.validationBehavior??n??"native",a=function(e){let t=iN(e),[n,r]=rp(e.value,e.defaultValue||null,e.onChange),[a]=(0,g.useState)(n),[i,o]=(0,g.useState)(()=>n||{start:null,end:null});null==n&&i.start&&i.end&&o(i={start:null,end:null});let s=n||i,l=e=>{o(s=e||{start:null,end:null}),iF(s)?r(s):r(null)},[u,c]=aE(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&&iF(s)&&(p=s,"hour"in s.start&&(m=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,ra.gw)(e.start)):(0,ra.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,ra.gw)(e.end)):(0,ra.tR)(e.end,t.end)}),h(null),y(null),A.commitValidation()},b=n=>{let r="function"==typeof f?f():f;d?iF(n)&&(r||m?.start&&m?.end)?v(n,{start:m?.start||aO(e.placeholderValue),end:m?.end||aO(e.placeholderValue)}):h(n):iF(n)?(l(n),A.commitValidation()):h(n),r&&t.setOpen(!1)},x=e=>{iF(p)&&iF(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 n;return e=s,t=k?e=>k(e,null):void 0,n=ay(ax(e?.start??null,j,O,t,S),ax(e?.end??null,j,O,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(n=ay(n,{isInvalid:!0,validationErrors:[(nW.getGlobalDictionaryForPackage("@react-stately/datepicker")||ag).getStringForLocale("rangeReversed",ab())],validationDetails:{...as,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),n},[s,j,O,k,S]),A=af({...e,value:n,name:(0,g.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:E}),D=A.displayValidation.isInvalid,P=e.validationState||(D?"invalid":null);return{...A,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(n){!n&&!(s?.start&&s?.end)&&iF(p)&&d&&v(p,{start:m?.start||aO(e.placeholderValue),end:m?.end||aO(e.placeholderValue)}),t.setOpen(n)},validationState:P,isInvalid:D,formatValue(t,n){let r;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=aj(n,{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 nM(t,u);if(a===o&&i===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let a=0;a<e.length;a++)a<t?n+=e[a].value:a>t&&(r+=e[a].value);return{start:n,end:r}}catch{}r=f}else r=new nM(t,aj(n,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:r.format(d)}},getDateFormatter:(e,t)=>new nM(e,aj({},{...S,...t}))}}({...e,validationBehavior:r}),i=(0,g.useRef)(null),[o,s]=eS(!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,n){var r;let a=nq((r=r6)&&r.__esModule?r.default:r,"@react-aria/datepicker"),{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=r7({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=nC(),h=t.formatValue(p,{month:"long"}),m=rt(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=ec(),x=ec(),w=r8(t,n),S=[m["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=(0,g.useMemo)(()=>r1(n,{accept:e=>e.id!==b}),[n,b]),O={[aa]: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=eL(e),E=(0,g.useRef)(!1),{focusWithinProps:A}=nr({...e,isDisabled:t.isOpen,onBlurWithin:t=>{eH(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))}}),D=(0,g.useRef)(au),P=(0,g.useRef)(au);return{groupProps:em(k,w,u,m,A,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(n){!t.isOpen&&e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){!t.isOpen&&e.onKeyUp&&e.onKeyUp(n)}}),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,[ad]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){D.current=e,t.updateValidation(ay(e,P.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,[ad]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(ay(D.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}}({...ej(e),label:s,validationBehavior:r},a,i),{focusProps:x,isFocused:w,isFocusVisible:S}=na({within:!0}),j=eb({...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=eL(e,{global:!0});return delete O.id,b().createElement(eg,{values:[[iW,a],[rI,{...l,ref:i,isInvalid:a.isInvalid}],[nc,{...f,isPressed:a.isOpen}],[a3,{...u,ref:o,elementType:"span"}],[rO,h],[aK,a],[iR,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",clearContexts:iU}],[aG,p],[a_,{slots:{start:c,end:d}}],[nh,{slots:{description:m,errorMessage:y}}],[aY,v]]},b().createElement(eE.div,{...em(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 iG(e){return b().createElement(nT,e)}var iK=n(5350),iq=n.n(iK);function iY(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function iZ(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return n?e:void 0;if("string"==typeof e&&!e)return n?null:void 0;if(iY(e,av.ng)||iY(e,av._l)||iY(e,av.Ip))return t?(0,ra.yP)(e,t):e;var r=iq()(e).toDate(),a=new av.ng(r.getFullYear(),r.getMonth()+1,r.getDate());return t?(0,ra.yP)(a,t):a}function iX(e){if(e)return e.toDate((0,nY.Xj)())}var iQ=n(1851),iJ=n(3903);function i0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function i1(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var i2=(0,g.createContext)(null);function i3(){var e=(0,S.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,g.useMemo)(function(){var t=(0,iQ.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),n=(0,g.useMemo)(function(){var e=(0,iJ.a7)(t);return void 0!==e?(0,rr.d)(e):void 0},[t]),r=(0,g.useMemo)(function(){return new Intl.Locale(t,{calendar:null==n?void 0:n.identifier})},[t,n]),a=(0,g.useMemo)(function(){return n?(0,ra.yP)((0,nY.Ec)((0,nY.Xj)()),n):(0,nY.Ec)((0,nY.Xj)())},[n]);return{calendar:n,intlLocale:r,today_:a}}var i4=new av.ng(1793,1,1);function i5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i6(e){if(Array.isArray(e))return e}function i8(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i9(e,t){if(e){if("string"==typeof e)return i5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i5(e,t)}}var i7=["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"],oe=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-activity",iconProps:e})})),ot=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-add",iconProps:e})})),on=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-arrow-down",iconProps:e})})),or=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-arrow-left",iconProps:e})})),oa=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-arrow-right",iconProps:e})})),oi=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-arrow-up",iconProps:e})})),oo=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-calendar-heat-map",iconProps:e})})),os=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-calendar",iconProps:e})})),ol=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-caret-down",iconProps:e})})),ou=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-caret-left",iconProps:e})})),oc=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-caret-right",iconProps:e})})),od=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-caret-up",iconProps:e})})),of=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-chart-average",iconProps:e})})),op=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-chart-line",iconProps:e})})),oh=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-checkmark-filled",iconProps:e})})),om=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-checkmark-outline",iconProps:e})})),oy=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-chevron-down",iconProps:e})})),ov=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-chevron-left",iconProps:e})})),og=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-chevron-right",iconProps:e})})),ob=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-chevron-up",iconProps:e})})),ox=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-close",iconProps:e})})),ow=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-close-filled",iconProps:e})})),oS=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-close-outline",iconProps:e})})),oj=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-document",iconProps:e})})),oO=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-document-attachment",iconProps:e})})),ok=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-download",iconProps:e})})),oE=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-edit",iconProps:e})})),oA=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-event-schedule",iconProps:e})})),oD=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-events",iconProps:e})})),oP=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-group",iconProps:e})})),oT=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-group-access",iconProps:e})})),oC=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-information",iconProps:e})})),oN=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-information-filled",iconProps:e})})),oM=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-information-square",iconProps:e})})),oR=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-inventory-management",iconProps:e})})),oI=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-list-checked",iconProps:e})})),o_=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-location",iconProps:e})})),oL=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-maximize",iconProps:e})})),oF=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-message-queue",iconProps:e})})),oB=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-money",iconProps:e})})),oV=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-movement",iconProps:e})})),oz=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),oW=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),oU=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-password",iconProps:e})})),o$=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-pedestrian-family",iconProps:e})})),oH=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-pen",iconProps:e})})),oG=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-printer",iconProps:e})})),oK=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-programs",iconProps:e})})),oq=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-renew",iconProps:e})})),oY=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-report",iconProps:e})})),oZ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-reset",iconProps:e})})),oX=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-save",iconProps:e})})),oQ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-search",iconProps:e})})),oJ=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-settings",iconProps:e})})),o0=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-switcher",iconProps:e})})),o1=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-shopping-cart",iconProps:e})})),o2=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-shopping-cart--arrow-down",iconProps:e})})),o3=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-sticky-note-add",iconProps:e})})),o4=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-table-of-contents",iconProps:e})})),o5=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-table",iconProps:e})})),o6=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-time",iconProps:e})})),o8=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-tools",iconProps:e})})),o9=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-translate",iconProps:e})})),o7=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-trash-can",iconProps:e})})),se=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-tree-view--alt",iconProps:e})})),st=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-user-avatar",iconProps:e})})),sn=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-user-follow",iconProps:e})})),sr=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-user",iconProps:e})})),sa=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-view-off",iconProps:e})})),si=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-view",iconProps:e})})),so=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(sc,{ref:t,icon:"egen-icon-warning",iconProps:e})})),ss=oO,sl=o2,su=(0,g.memo)((0,g.forwardRef)(function(e,t){var n,r=i6(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||i9(n)||i8(),a=r[0],i=r.slice(1),o=a.icon,s=a.fallback,l=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["icon","fallback"]),u=(i6(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||i9(i,1)||i8())[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,n=!1,r=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){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,v.jsx)(S.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,v.jsx)(sc,{ref:u,icon:o,iconProps:l})})})),sc=(0,g.memo)((0,g.forwardRef)(function(e,t){var n=e.icon,r=Object.assign({},{fill:"currentColor",size:20},e.iconProps),a=r.className,i=r.fill,o=r.size;(o<=0||o>72)&&(console.error("Invalid size '".concat(o,"' specified for ").concat(n,". 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:w()("egen-icon","BfFhdfwf1e98NnHqJTMOmw==",a),height:o,width:o,viewBox:"0 0 16 16",children:(0,v.jsx)("use",{href:"#".concat(n)})})})),sd=function(e){var t=e.className,n=e.size,r=void 0===n?16:n;return(0,v.jsx)("svg",{className:t,width:r,height:r,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"})})},sf={};function sp(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sh(e={}){let{locale:t}=nC();return(0,g.useMemo)(()=>new(0,aC.K)(t,e),[t,e])}sf={"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 sm={};sm={"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 sy=()=>{};function sv(e){var t;let n=(0,g.useRef)(void 0),{value:r,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=nq((t=sm)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,g.useRef)(!1),b=(0,g.useCallback)(()=>{clearTimeout(n.current),v.current=!1},[]),x=tZ(()=>{b()});(0,g.useEffect)(()=>()=>x(),[]);let{keyboardProps:w}=tF({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||`${r}`).replace("-","−");(0,g.useEffect)(()=>{S.current&&(eD&&eD.clear("assertive"),eP(k,"assertive"))},[k]);let E=(0,g.useCallback)(()=>{b()},[b]),A=tZ(c??sy),D=tZ(f??sy),P=tZ(()=>{(void 0===o||isNaN(o)||void 0===r||isNaN(r)||r<o)&&(A(),T(60))}),T=tZ(e=>{x(),v.current=!0,n.current=window.setTimeout(P,e)}),C=tZ(()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r>i)&&(D(),N(60))}),N=tZ(e=>{x(),v.current=!0,n.current=window.setTimeout(C,e)}),M=e=>{e.preventDefault()},{addGlobalListener:R,removeAllGlobalListeners:I}=tX(),L=(0,g.useRef)(!1),[F,B]=(0,g.useState)(null);(0,g.useEffect)(()=>{"touch"===F?T(600):F?T(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===r||isNaN(r)?void 0:r,"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")):(R(window,"pointercancel",E,{capture:!0}),L.current=!1,B("touch")),R(window,"contextmenu",M)},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")):(R(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 sg=null;var sb=n(4264);function sx(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){let a=t.toString().split("."),i=n.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),n=Math.round(n*o),r=("+"===e?t+n:t-n)/o}return r}let sw=(0,g.createContext)(null),sS=(0,g.createContext)(null),sj=(0,g.forwardRef)(function(e,t){[e,t]=ew(e,t,sw);let{validationBehavior:n}=ex(aQ)||{},r=e.validationBehavior??n??"native",{locale:a}=nC(),i=function(e){let{minValue:t,maxValue:n,step:r,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===r||isNaN(r)?a7(e,t,n):it(e,t,n,r),[r,t,n]);void 0===i||isNaN(i)||"snap"!==d||(i=f(i)),isNaN(o)||"snap"!==d||(o=f(o));let[p,h]=rp(i,isNaN(o)?NaN:o,s),[m]=(0,g.useState)(p),[y,v]=(0,g.useState)(()=>isNaN(p)?"":new(0,aC.K)(l,a).format(p)),b=(0,g.useMemo)(()=>new(0,sb.d)(l,a),[l,a]),x=(0,g.useMemo)(()=>b.getNumberingSystem(y),[b,y]),w=(0,g.useMemo)(()=>new(0,aC.K)(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=af({...e,value:p}),k=void 0===r||isNaN(r)?1:r;"percent"===S.style&&(void 0===r||isNaN(r))&&(k=.01);let[E,A]=(0,g.useState)(p),[D,P]=(0,g.useState)(l),[T,C]=(0,g.useState)(a);Object.is(p,E)&&l===D&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(a,T)||(v(j(p)),A(p),P(l),C(a));let N=(0,g.useMemo)(()=>b.parse(y),[b,y]),M=(e,r=0)=>{if(isNaN(N))return it(isNaN(r)?0:r,t,n,k);{let r=it(N,t,n,k);return"+"===e&&r>N||"-"===e&&r<N?r:it(sx(e,N,k),t,n,k)}},R=(0,g.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===n||isNaN(n)||it(N,t,n,k)>N||sx("+",N,k)<=n),[u,c,t,n,k,N]),I=(0,g.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||it(N,t,n,k)<N||sx("-",N,k)>=t),[u,c,t,n,k,N]);return{...O,validate:e=>b.isValidPartialNumber(e,t,n),increment:()=>{let e=M("+",t);e===p&&v(j(e)),h(e),O.commitValidation()},incrementToMax:()=>{null!=n&&(h(it(n,t,n,k)),O.commitValidation())},decrement:()=>{let e=M("-",n);e===p&&v(j(e)),h(e),O.commitValidation()},decrementToMin:()=>{null!=t&&(h(t),O.commitValidation())},canIncrement:R,canDecrement:I,minValue:t,maxValue:n,numberValue:N,defaultNumberValue:isNaN(o)?m:o,setNumberValue:h,setInputValue:v,inputValue:y,commit:e=>{let t=void 0===e?y:e,n=N;if(void 0!==e&&(n=b.parse(t)),!t.length){h(NaN),v(void 0===i?"":j(p));return}if(isNaN(n))return void v(j(p));let r="snap"===d?f(n):n,a=(r=b.parse(j(r)))!==p;h(r),v(j(void 0===i?r:p)),a&&O.commitValidation()}}}({...e,locale:a,validationBehavior:r}),o=(0,g.useRef)(null),[s,l]=eS(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:h,errorMessageProps:m,...y}=function(e,t,n){var r,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:A,onFocusChange:D,onKeyDown:P,onKeyUp:T,description:C,errorMessage:N,isWheelDisabled:M,...R}=e,{increment:I,incrementToMax:L,decrement:F,decrementToMin:B,numberValue:V,inputValue:z,commit:W,commitValidation:U}=t,$=nq((r=sf)&&r.__esModule?r.default:r,"@react-aria/numberfield"),H=(0,g.useCallback)(()=>{let e=n.current?.value??"";(0,tQ.flushSync)(()=>{W()}),n.current?.value!==e&&eP(n.current?.value??"","assertive")},[W,n]),G=ec(p),{focusProps:K}=tC({onBlur(){H()}}),q=sh(k),Y=(0,g.useMemo)(()=>q.resolvedOptions(),[q]),Z=sh({...k,currencySign:void 0}),Q=(0,g.useMemo)(()=>isNaN(V)?"":Z.format(V),[Z,V]),{spinButtonProps:J,incrementButtonProps:ee,decrementButtonProps:et}=sv({isDisabled:y,isReadOnly:v,isRequired:x,maxValue:S,minValue:w,onIncrement:I,onIncrementToMax:L,onDecrement:F,onDecrementToMin:B,value:V,textValue:Q}),[en,er]=(0,g.useState)(!1),{focusWithinProps:ea}=nr({isDisabled:y,onFocusWithinChange:er});!function(e,t){let{onScroll:n,isDisabled:r}=e,a=(0,g.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);rn(t,"wheel",r?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:M||y||v||!en},n);let ei=(Y.maximumFractionDigits??0)>0,eo=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,es="numeric";tt()?eo?es="text":ei&&(es="decimal"):to()&&(eo?es="numeric":ei&&(es="decimal"));let el=eL(e),{keyboardProps:eu}=tF({isDisabled:y||v,shortcuts:{Enter:()=>((0,tQ.flushSync)(()=>{W()}),U(),{shouldPreventDefault:!1})},onKeyDown:P,onKeyUp:T}),{isInvalid:ed,validationErrors:ef,validationDetails:ep}=t.displayValidation,{labelProps:eh,inputProps:ey,descriptionProps:ev,errorMessageProps:eg}=function(e,t,n){let r=tZ(e=>{let r=n.current;if(!r)return;let a=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":a=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentForward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteContentBackward":a=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":a=r.value.slice(r.selectionStart);break;default:null!=e.data&&(a=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}null!=a&&t.validate(a)||e.preventDefault()});(0,g.useEffect)(()=>{if(!sp()||!n.current)return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}},[n]);let a=sp()?null:e=>{let n=eG(e).value.slice(0,eG(e).selectionStart)+e.data+eG(e).value.slice(eG(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:i,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:o="text",validationBehavior:s="aria"}=e,[l,u]=rp(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=tz(e,t),d=af({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:h}=d.displayValidation,{labelProps:m,fieldProps:y,descriptionProps:v,errorMessageProps:x}=r7({...e,isInvalid:f,errorMessage:e.errorMessage||p}),w=eL(e,{labelable:!0}),S={type:o,pattern:e.pattern},[j]=(0,g.useState)(l);return ae(t,e.defaultValue??j,u),at(e,d,t),{labelProps:m,inputProps:em(w,"input"===n?S:void 0,{disabled:r,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(eG(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,n),c=(0,g.useRef)(null);return{inputProps:em(o,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;c.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:a}=c.current;n.current.value=e,n.current.setSelectionRange(r,a),t.setInputValue(e)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...u}}({...R,...el,name:void 0,form:void 0,label:O,autoFocus:j,isDisabled:y,isReadOnly:v,isRequired:x,validate:void 0,[ad]: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:A,onFocusChange:D,onPaste:t=>{e.onPaste?.(t);let n=eG(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),W(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:C,errorMessage:N},t,n),eb=em(eu,ey);ae(n,t.defaultNumberValue,t.setNumberValue),a=t,i=e.validationBehavior,o=e.commitBehavior,s=n,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||(!sg&&"u">typeof document&&((sg=document.createElement("input")).type="number"),!sg))return;sg.min=null==l||isNaN(l)?"":String(l),sg.max=null==u||isNaN(u)?"":String(u),sg.step=null==c||isNaN(c)?"":String(c),sg.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&sg.validity.valid,n=e.validationMessage||sg.validationMessage,r={isInvalid:!t,validationErrors:n?[n]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:sg.validity.rangeOverflow,rangeUnderflow:sg.validity.rangeUnderflow,stepMismatch:sg.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};a.updateValidation(r),"native"!==i||sg.validity.valid||e.setCustomValidity(sg.validationMessage)});let ex=em(J,K,eb,{role:null,"aria-roledescription":tr()?null:$.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ex["aria-required"]=void 0);let ew=e=>{((e=document)=>e.activeElement)()!==n.current&&("mouse"===e.pointerType?n.current?.focus():e.target.focus())},eS=e["aria-label"]||("string"==typeof e.label?e.label:"");eS||(f=null!=e.label?eh.id:e["aria-labelledby"]);let ej=ec(),eO=ec(),ek=em(ee,{"aria-label":m||$.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=em(et,{"aria-label":h||$.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:eh,inputProps:ex,incrementButtonProps:ek,decrementButtonProps:eE,errorMessageProps:eg,descriptionProps:ev,isInvalid:ed,validationErrors:ef,validationDetails:ep}}({...ej(e),label:l,validationBehavior:r},i,o),v=eb({...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=eL(e,{global:!0});return delete x.id,b().createElement(eg,{values:[[sS,i],[rI,c],[rL,{...d,ref:o}],[a3,{...u,ref:s}],[nc,{slots:{increment:f,decrement:p}}],[nh,{slots:{description:h,errorMessage:m}}],[aY,y]]},b().createElement(eE.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 sO(e,t){return Number.parseInt((0,iJ.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sk=(0,g.forwardRef)(function(e,t){var n=e.className,r=(0,g.useContext)(rk),a=(0,g.useContext)(rE),i=null!=r?r:a,o=(0,g.useContext)(i2),s=(0,nY.Xj)(),l=(0,iJ.Yq)(i.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sO(i.visibleRange.start.toDate(s),o),c=i.maxValue?sO(i.maxValue.toDate(s),o):void 0,d=i.minValue?sO(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:n,children:[(0,v.jsx)("span",{children:l}),(0,v.jsxs)(sj,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,v.jsx)(rF,{}),(0,v.jsxs)(r_,{children:[(0,v.jsx)(nd,{slot:"increment",children:(0,v.jsx)(od,{size:8})}),(0,v.jsx)(nd,{slot:"decrement",children:(0,v.jsx)(ol,{size:8})})]})]})]})});let sE="+4zksyca-I5VROi6oiQzJQ==",sA="wiExnFcGq1fPxn+K4eWeig==",sD="uiyACHcxSXjudv9HIlh57w==",sP="SxtTLfuOGW-Mst6POMWfQA==",sT="UU1QpNunTQCrdkAN2b2Ecg==",sC="fhR-1dd9yTq-5JUfl4REqA==",sN="_5INZ7v7pw4CkyEJ2Y8RsrA==",sM="RFMrlShZc97nAtIJF9P8jw==";function sR(e){var t=e.children,n=(0,g.useContext)(iz),r=(0,g.useContext)(iW),a=null!=n?n:r,i=(0,S.useOnClickOutside)(function(){return null==a?void 0:a.close()});return(0,v.jsx)(aq,{className:"qllIfMFRvFHzGUeuOQ+PpA==",ref:i,children:t})}function sI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s_=(0,g.forwardRef)(function(e,t){var n,r,a=e.variant,i=e.today_,o=e.minDate,s=e.maxDate,l="range"===a;return(0,v.jsx)(i_,{ref:t,className:"_16UMXpLD7yf8iGA5mGYNeA==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,v.jsx)(sR,{children:(0,v.jsxs)(l?rD:rA,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sI(e,t,n[t])})}return e}({},l?{minValue:void 0===o?void 0:o,maxValue:void 0===s?void 0:s,className:"cds--date-picker__calendar"}:{}),r=r={children:[(0,v.jsxs)("header",{className:"WAVlDbzjKhHAlu18b5VwWw==",children:[(0,v.jsx)(nd,{className:w()(sT,sC),slot:"previous",children:(0,v.jsx)(ov,{size:16})}),(0,v.jsx)(sk,{className:"A3aKFbSSeqZsllm0oKdxgg=="}),(0,v.jsx)(nd,{className:w()(sT,sC),slot:"next",children:(0,v.jsx)(og,{size:16})})]}),(0,v.jsx)(rT,{className:"_6qRB2DssZC4NegdCeg1ktQ==",children:function(e){return(0,v.jsx)(rR,{className:w()("cds--date-picker__day",sI({},"TZl6MCGNAAF8bYh2zSUQ2w==",0===i.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})});function sL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sB(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var sV=(0,g.forwardRef)(function(e,t){var n,r=(0,g.useContext)(iz),a=function(e){if(Array.isArray(e))return e}(n=ew({slot:e.slot},t,a_))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(n)||function(e){if(e){if("string"==typeof e)return sL(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 sL(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.")}(),i=a[0],o=a[1],s=nC().locale,l=aI(sB(sF({},i),{locale:s,createCalendar:rr.d})),u=(0,g.useRef)(null),c=ai(sB(sF({},i),{inputRef:u}),l,o),d=c.fieldProps,f=c.inputProps,p=(0,g.useCallback)(function(){l.isDisabled||r.toggle()},[]);return(0,v.jsxs)(eg,{values:[[aL,l],[rL,sB(sF({},f),{ref:u})],[rI,sB(sF({},d),{ref:o,isInvalid:l.isInvalid})]],children:[(0,v.jsx)(r_,sB(sF({},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,n){return(0,g.cloneElement)(e.children(t),{key:n})})})),(0,v.jsx)(rF,{})]})});function sz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var sW=(0,g.forwardRef)(function(e,t){var n=(0,g.useContext)(iz),r=(0,g.useContext)(iW);return(null!=n?n:r).isInvalid?(0,v.jsx)(so,sz({ref:t,size:16},e)):(0,v.jsx)(os,sz({ref:t,size:16},e))});class sU{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let s$=new Map;function sH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sG(e){if(Array.isArray(e))return e}function sK(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function sY(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function sZ(e,t){if(e){if("string"==typeof e)return sH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sH(e,t)}}var sX=(0,g.forwardRef)(function(e,t){var n,r,a,i,o,s,l,u,c,d,f,p=sG(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||sZ(n)||sK(),h=p[0],m=p.slice(1),y=h.segment,x=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(h,["segment"]),w=(sG(m)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(m)||sZ(m,1)||sK())[0],S=(0,g.useContext)(aL),j=ey(w),O=function(e,t,n){let r,a,i,o,s=(0,g.useRef)(""),{locale:l,direction:u}=nC(),c=function(){var e;let{locale:t}=nC(),n=nK((e=r6)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,g.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new sU(t,n)}},[t,n])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:h}=an.get(t),m=e.isPlaceholder?"":e.text,y=(0,g.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),v=nF({month:"long",timeZone:y.timeZone}),x=nF({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}=sv({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(0,sb.d)(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 n=e.text.slice(0,-1),r=S.parse(n);0===(n=0===r?"":n).length||0===r?t.clearSegment(e.type):t.setSegment(e.type,r),s.current=n}},{keyboardProps:O}=tF({shortcuts:{Backspace:()=>{j()},Delete:()=>{j()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:k}=(r=function(e){let{locale:t}=nC(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(s$.has(n))return s$.get(n);let r=new Intl.Collator(t,e);return s$.set(n,r),r}({usage:"search",sensitivity:"base"}),a=(0,g.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(0,t.length),t)),[r]),i=(0,g.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===r.compare(e.slice(-t.length),t)),[r]),o=(0,g.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let n=0,a=(t=t.normalize("NFC")).length;for(;n+a<=e.length;n++){let i=e.slice(n,n+a);if(0===r.compare(t,i))return!0}return!1},[r]),(0,g.useMemo)(()=>({startsWith:a,endsWith:i,contains:o}),[a,i,o])),E=nF({hour:"numeric",hour12:!0}),A=(0,g.useMemo)(()=>{let e=new Date;return e.setHours(0),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),D=(0,g.useMemo)(()=>{let e=new Date;return e.setHours(12),E.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[E]),P=nF({year:"numeric",era:"narrow",timeZone:"UTC"}),T=(0,g.useMemo)(()=>{if("era"!==e.type)return[];let n=(0,ra.yP)(new(0,av.ng)(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:P.formatToParts(t).find(e=>"era"===e.type).value}}),a=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map(e=>e.formatted));if(a)for(let e of r)e.formatted=e.formatted.slice(a);return r},[P,t.calendar,e.type]),C=n=>{if(t.isDisabled||t.isReadOnly)return;let r=s.current+n;switch(e.type){case"dayPeriod":if(k(A,n))t.setSegment("dayPeriod",0);else if(k(D,n))t.setSegment("dayPeriod",1);else break;h.focusNext();break;case"era":{let e=T.find(e=>k(e.formatted,n));e&&(t.setSegment("era",e.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(r))return;let a=S.parse(r),i=a;if(void 0!==e.maxValue&&a>e.maxValue&&(i=S.parse(n)),isNaN(a))return;t.setSegment(e.type,i),void 0!==e.maxValue&&(Number(a+"0")>e.maxValue||r.length>=String(e.maxValue).length)?(s.current="",h.focusNext()):s.current=r}}};rn((0,g.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&eH(n.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===n.current&&e.collapse(n.current)});let N=(0,g.useRef)("");rn(n,"beforeinput",r=>{if(n.current)switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&j();break;case"insertCompositionText":N.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&C(r.data)}}),rn(n,"input",e=>{let{inputType:t,data:r}=e;"insertCompositionText"===t&&(n.current&&(n.current.textContent=N.current),null!=r&&(k(A,r)||k(D,r))&&C(r))}),X(()=>{let e=n.current;return()=>{((e=document)=>e.activeElement)()===e&&(h.focusPrevious()||h.focusNext())}},[n,h]);let M=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 R=ec(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L="literal"===e.type?"":c.of(e.type),F=n1({"aria-label":`${L}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let B={caretColor:"transparent"};if("rtl"===u){B.unicodeBidi="embed";let t=y[e.type];("numeric"===t||"2-digit"===t)&&(B.direction="ltr")}return{segmentProps:em(w,F,{id:R,...M,...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="",n.current&&n9(n.current,{containingElement:n5(n.current)});let e=window.getSelection();e?.collapse(n.current)},style:B,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(y,S,j).segmentProps,k=na(),E=k.focusProps,A=k.isFocused,D=k.isFocusVisible,P=nu(sY(sq({},x),{isDisabled:S.isDisabled||"literal"===y.type})),T=P.hoverProps,C=P.isHovered,N=(a=(r=sY(sq({},x),{values:sY(sq({},y),{isReadOnly:!y.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:C,isFocused:A,isFocusVisible:D}),defaultChildren:y.text})).className,i=r.style,o=r.children,l=void 0===(s=r.defaultClassName)?void 0:s,c=void 0===(u=r.defaultChildren)?void 0:u,d=r.defaultStyle,f=r.values,(0,g.useMemo)(function(){var e,t,n;return e="function"==typeof a?a(i1(i0({},f),{defaultClassName:l})):a,t="function"==typeof i?i(i1(i0({},f),{defaultStyle:d||{}})):i,n="function"==typeof o?o(i1(i0({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?i0({},d,t):void 0,children:null!=n?n:c,"data-rac":""}},[a,i,o,l,c,d,f])),M=(0,g.useCallback)(function(e){e.stopPropagation()},[]);return(0,v.jsx)("span",sY(sq({},em(eL(x),O,E,T),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":C||void 0,"data-focused":A||void 0,"data-focus-visible":D||void 0,onClick:M}))});function sQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){sQ(e,t,n[t])})}return e}var s0={short:!1,size:"md"},s1=(0,g.forwardRef)(function(e,t){var n,r,a,i,o,s=sJ({},s0,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,S=s.minDate,j=s.onChange,O=s.onChangeRaw,k=s.short,E=s.size,A=s.value,D=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),P=i3(),T=P.calendar,C=P.intlLocale,N=P.today_,M=(0,g.useId)(),R=!!(null!=m?m:h),I=(0,g.useMemo)(function(){return iZ(u,T)},[u,T]),L=(0,g.useMemo)(function(){return iZ(A,T,!0)},[A,T]),F=(0,g.useMemo)(function(){return iZ(x,T)},[x,T]),B=(0,g.useMemo)(function(){return iZ(null!=S?S:i4,T)},[S,T]),V=(0,g.useMemo)(function(){return d||p},[d,p]),z=(0,g.useMemo)(function(){return O&&j&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==j?void 0:j(iX(e))}},[O,j]);return(0,v.jsx)(iG,{locale:C.toString(),children:(0,v.jsx)("div",{className:w()("cds--form-item",l),children:(0,v.jsx)(eg,{values:[[i2,C]],children:(0,v.jsxs)(i$,(n=sJ({className:w()("cds--date-picker","cds--date-picker--single",(sQ(a={},"cds--date-picker--short",k),sQ(a,"cds--date-picker--light",y),a)),defaultValue:I,isDisabled:c,isInvalid:V,maxValue:F,minValue:B,value:L,shouldForceLeadingZeros:"en"===C.language||void 0},D),r=r={onChange:z,children:[(0,v.jsxs)("div",{className:"cds--date-picker-container",children:[R&&(0,v.jsx)(a4,{className:w()("cds--label",{"cds--label--disabled":c}),htmlFor:M,children:null!=m?m:h}),(0,v.jsxs)(r_,{className:sE,children:[(0,v.jsx)(sV,{id:R?M:void 0,ref:t,className:w()("cds--date-picker-input__wrapper","kykar4EZi79xhpVitgu-vg==",(sQ(i={},"KJtg-MP1knHYLUz4R6hZEw==","sm"===E),sQ(i,"ablE9mmlFsZsPekwcW7jjQ==","md"===E||!E||0===E.length),sQ(i,"_5dkQpmV3FO9GZg+Ai3BG3A==","lg"===E),i)),children:function(e){return"era"!==e.type?(0,v.jsx)(sX,{className:sA,segment:e}):(0,v.jsx)(b().Fragment,{})}}),(0,v.jsx)(nd,{className:w()(sT,(sQ(o={},sN,"sm"===E),sQ(o,sC,"md"===E||!E||0===E.length),sQ(o,sM,"lg"===E),o)),children:(0,v.jsx)(sW,{})})]}),(0,v.jsx)(aZ,{className:sP,children:f})]}),(0,v.jsx)(s_,{variant:"single",today_:N})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})})});function s2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s3(e){if(Array.isArray(e))return e}function s4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s5(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s6(e,t){if(e){if("string"==typeof e)return s2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s2(e,t)}}var s8=(0,g.forwardRef)(function(e,t){var n,r,a,i,o,s=s3(a=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||s6(a)||s5(),l=s[0],u=s.slice(1),c=l.className,d=l.defaultValue,f=l.invalid,p=l.invalidText,h=l.isDisabled,m=l.isInvalid,y=l.label,b=l.labelText,x=l.light,S=l.maxDate,j=l.minDate,O=l.onChange,k=l.onChangeRaw,E=l.size,A=void 0===E?"md":E,D=l.value,P=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(l,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),T=(s3(u)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(u)||s6(u,1)||s5())[0],C=i3(),N=C.calendar,M=C.intlLocale,R=C.today_,I=(0,g.useId)(),L=!!(null!=b?b:y),F=(0,g.useMemo)(function(){if(D)return{start:iZ(D[0],N,!1),end:iZ(D[1],N,!1)}},[D,N]),B=(0,g.useMemo)(function(){if(d)return{start:iZ(d[0],N,!1),end:iZ(d[1],N,!1)}},[d,N]),V=(0,g.useMemo)(function(){return iZ(null!=j?j:i4,N,!0)},[j,N]),z=(0,g.useMemo)(function(){return iZ(S,N,!0)},[S,N]),W=(0,g.useMemo)(function(){return f||m},[f,m]),U=(0,g.useMemo)(function(){return k&&O&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=k?k:function(e){return null==O?void 0:O([iX(e.start),iX(e.end)])}},[k,O]);return(0,v.jsx)(iG,{locale:M.toString(),children:(0,v.jsx)("div",{className:w()("cds--form-item",c),children:(0,v.jsx)(eg,{values:[[i2,M]],children:(0,v.jsx)(iH,(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s4(e,t,n[t])})}return e}({id:L?I:void 0,className:w()("cds--date-picker",{"cds--date-picker--light":x,"cds--date-picker--disabled":h}),isInvalid:W,shouldForceLeadingZeros:"en"===M.language||void 0,maxValue:z,minValue:V,value:F,defaultValue:B,ref:T,isDisabled:h},P),r=r={onChange:U,children:(0,v.jsxs)("div",{className:"cds--date-picker-container",children:[L&&(0,v.jsx)(a4,{className:w()("cds--label",{"cds--label--disabled":h}),htmlFor:I,children:null!=b?b:y}),(0,v.jsxs)(r_,{className:sE,children:[(0,v.jsxs)("div",{className:w()("YlkGhdQcBgSDJNSlS1cQnw==",(s4(i={},"fAKhSoomCu7Mn5FBku20SQ==","sm"===A),s4(i,"XVgGPgTNDC4UIcE+4yAZPQ==","md"===A||!A||0===A.length),s4(i,"UgHJ1nnMa-axxvCtxsZexg==","lg"===A),i)),children:[(0,v.jsx)(aB,{className:w()("cds--date-picker-input__wrapper","qgbQm03oBFnWnXNV1GFW6Q==",sD),slot:"start",children:function(e){return(0,v.jsx)(sX,{className:sA,segment:e})}}),(0,v.jsx)("div",{className:"_79vXZ2hgTRvmmxREZu5WGw==",children:(0,v.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,v.jsx)(aB,{className:w()("cds--date-picker-input__wrapper","huv7xQjo+RZmT7LsDwVMdw==",sD),slot:"end",children:function(e){return(0,v.jsx)(sX,{className:sA,segment:e})}})]}),(0,v.jsx)(nd,{className:w()(sT,(s4(o={},sN,"sm"===A),s4(o,sC,"md"===A||!A||0===A.length),s4(o,sM,"lg"===A),o)),children:(0,v.jsx)(sW,{})})]}),(0,v.jsx)(aZ,{className:sP,children:p}),(0,v.jsx)(s_,{variant:"range",today_:R,minDate:V,maxDate:z})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))})})})});function s9(e){var t=e.classifications,n=(0,S.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,v.jsx)("div",{"aria-label":(0,z.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var r,a,i="primary"===e.rank||1===e.rank,o="secondary"===e.rank||2===e.rank,s=i?null!=(r=null==n?void 0:n.primaryColor)?r:"red":o?null!=(a=null==n?void 0:n.secondaryColor)?a:"blue":"gray";return(0,v.jsx)(V.Tag,{type:s,size:"sm",children:e.display},"".concat(e.display,"-").concat(t))})}):null}let s7={action:"Y0dulYR6B5fprvtdpjGfEg==",content:"fo0nBB+424Kd5d6PQgXSNw==",heading:"sxyN788Qj+7TLTeyCjE6bw==",tile:"QB8Ldd7u7gkdqC6n-YSg0Q=="};var le=function(e){var t=e.width,n=e.height;return(0,v.jsx)("svg",{width:void 0===t?"64":t,height:void 0===n?"64":n,viewBox:"0 0 64 64",children:(0,v.jsx)("use",{href:"#egen-empty-data-illustration"})})},lt=function(e){var t="tablet"===(0,S.useLayoutType)(),n=e.launchForm;return(0,v.jsx)(V.Layer,{className:s7.layer,children:(0,v.jsxs)(V.Tile,{className:s7.tile,children:[(0,v.jsx)(O,{title:e.headerTitle}),(0,v.jsx)(le,{}),(0,v.jsx)("p",{className:s7.content,children:(0,z.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,v.jsx)("p",{className:s7.action,children:n&&(0,v.jsx)(V.Button,{onClick:function(){return n()},kind:"ghost",size:t?"lg":"sm",children:(0,z.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},ln=function(e){var t,n,r=e.error,a=e.headerTitle;return(0,v.jsx)(V.Layer,{children:(0,v.jsxs)(V.Tile,{className:"dd4186Mm5sjs8UUsDMSW1g==",children:[(0,v.jsx)(O,{title:a}),(0,v.jsxs)("p",{className:"z2RiNHQhCUYOlXJFOX2flg==",children:[(0,z.V)("error","Error")," ","".concat(null==r||null==(t=r.response)?void 0:t.status,": "),null==r||null==(n=r.response)?void 0:n.statusText]}),(0,v.jsx)("p",{className:"dq+e2AreXbyoxopCEZRwXA==",children:(0,z.V)("errorCopy")})]})})},lr=ln;let la={field:"_43NbpAusYvdB5tccpwugCA==",fieldControl:"G1h3dJAllPDcbDsNL-kJLw==","field--sm":"qZ3I0hYsBw+2jkiCqmcUJA==",input:"QpQk8fSE4iroHHsFDJ99Aw==","field--md":"nssddTppPkQP0CugsUPX5g==","field--lg":"xIJwiskqnesjex9fPTygkg==","field--has-left-icon":"TJqIuzWKloLr6PhYm355Qw==","field--has-validation-icon":"Nt3RLjaf9OLWbKmVXDGn9Q==",leftIcon:"tnIgGaBUPHeeupW35eP2SA==",fieldIconGlyph:"Q9JAzVjLjsA7LK8yUAjMTA==",label:"ZlGeR10bC-HigCF3J94reg==",labelIconGlyph:"F0FzdhtESa7tOKDzB1LKuQ==",labelText:"_613ljFLjrRFib1esYu9tJQ==",requiredMark:"_6FSEkZ0YQLyZBgkHo0BbDA==","field--outlined":"AkjaqVgv7Lppw5FWlx9P1w==","field--filled":"xauRzt+u2w1HMkxD2nGWEQ==","field--standard":"_9MpGPx8nMOJlVLn0jh-V5w==","field--kinetic":"k9FGXNPiNV2jvPoXKT1QMQ==",kineticLabelWrapper:"-yRyWB-CtGn2AbaQJZi+4w==",kineticLabel:"G7MW0q8Btg4BxqJV3Z5miQ==",kineticLetter:"jBg3TwH5jGyQrU0OTBShZw==","field--success":"+snaLZpHBI7Sb8Kc3uOAjg==","field--warning":"cQBS9BRsyXY8-1W4KF3yVQ==","field--error":"DgTzJdsnBz2-8wS1-e6oQg==","field--animating":"gUU0Ammae3v1wFhr9u4-eQ==","egen-field-shake":"U6ngyfp0+rnW1PldL6yMBA==",validationIcon:"xoHozMA+LguHzECzMvwlrw==","validationIcon--visible":"d5MbW0CwL3XCn4-F8lJG2g==","validationIcon--success":"_64EifujVeYZHHGEtsTPxeQ==",validationIconGlyph:"pV9JSxOQeNRZb2lm9cYv4g==","validationIcon--warning":"_8aVrbporEe5AA9sQ6Xpi2Q==","validationIcon--error":"eNuD0-w+bOIn+mvwWjOIXQ==",message:"g+uLmewSwVY7BrP2VTSvMA==","egen-field-message-in":"nfxbATxFUBP+xWnBhxZGRA==",messageLead:"_1f6rXhfiFQXbJtoltWX3kg==","field--disabled":"CLnEkNXEBL-I2g3+3YwItw=="};var li=function(e){var t=e.fieldIcon,n=e.className;if(!t)return null;var r=t.icon;return(0,v.jsx)(r,{className:[la.fieldIconGlyph,n].filter(Boolean).join(" "),size:16})};function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ls={success:oh,warning:so,error:sd},ll=function(e){var t,n,r,a=e.currentValidation,i=e.showIcons,o=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return lo(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 lo(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=ls[a.type];return u?(0,v.jsx)("div",{className:w()(la.validationIcon,la["validationIcon--".concat(a.type)],(n={},r=la["validationIcon--visible"],r in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s,n)),children:(0,v.jsx)(u,{className:la.validationIconGlyph,size:16})}):null};let lu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lc=new Set([...lu,"pathRotation"]),ld=(e,t,n)=>n>t?t:n<e?e:n,lf={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lp={...lf,transform:e=>ld(0,1,e)},lh={...lf,default:1},lm=e=>Math.round(1e5*e)/1e5,ly=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,lv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lg=(e,t)=>n=>!!("string"==typeof n&&lv.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),lb=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[a,i,o,s]=r.match(ly);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},lx={...lf,transform:e=>Math.round(ld(0,255,e))},lw={test:lg("rgb","red"),parse:lb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lx.transform(e)+", "+lx.transform(t)+", "+lx.transform(n)+", "+lm(lp.transform(r))+")"},lS={test:lg("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:lw.transform},lj=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lO=lj("deg"),lk=lj("%"),lE=lj("px"),lA=lj("vh"),lD=lj("vw"),lP={...lk,parse:e=>lk.parse(e)/100,transform:e=>lk.transform(100*e)},lT={test:lg("hsl","hue"),parse:lb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lk.transform(lm(t))+", "+lk.transform(lm(n))+", "+lm(lp.transform(r))+")"},lC={test:e=>lw.test(e)||lS.test(e)||lT.test(e),parse:e=>lw.test(e)?lw.parse(e):lT.test(e)?lT.parse(e):lS.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lw.transform(e):lT.transform(e),getAnimatableNone:e=>{let t=lC.parse(e);return t.alpha=0,lC.transform(t)}},lN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,lM="number",lR="color",lI=/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 l_(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[],i=0,o=t.replace(lI,e=>(lC.test(e)?(r.color.push(i),a.push(lR),n.push(lC.parse(e))):e.startsWith("var(")?(r.var.push(i),a.push("var"),n.push(e)):(r.number.push(i),a.push(lM),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:o,indexes:r,types:a}}function lL({split:e,types:t}){let n=e.length;return r=>{let a="";for(let i=0;i<n;i++)if(a+=e[i],void 0!==r[i]){let e=t[i];e===lM?a+=lm(r[i]):e===lR?a+=lC.transform(r[i]):a+=r[i]}return a}}let lF={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(ly)?.length||0)+(e.match(lN)?.length||0)>0},parse:function(e){return l_(e).values},createTransformer:function(e){return lL(l_(e))},getAnimatableNone:function(e){let t=l_(e);return lL(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:lC.test(e)?lC.getAnimatableNone(e):e)(e,t.split[n])))}},lB=new Set(["brightness","contrast","saturate","opacity"]);function lV(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(ly)||[];if(!r)return e;let a=n.replace(r,""),i=+!!lB.has(t);return r!==n&&(i*=100),t+"("+i+a+")"}let lz=/\b([a-z-]*)\(.*?\)/gu,lW={...lF,getAnimatableNone:e=>{let t=e.match(lz);return t?t.map(lV).join(" "):e}},lU={...lF,getAnimatableNone:e=>{let t=lF.parse(e);return lF.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},l$={...lf,transform:Math.round},lH={borderWidth:lE,borderTopWidth:lE,borderRightWidth:lE,borderBottomWidth:lE,borderLeftWidth:lE,borderRadius:lE,borderTopLeftRadius:lE,borderTopRightRadius:lE,borderBottomRightRadius:lE,borderBottomLeftRadius:lE,width:lE,maxWidth:lE,height:lE,maxHeight:lE,top:lE,right:lE,bottom:lE,left:lE,inset:lE,insetBlock:lE,insetBlockStart:lE,insetBlockEnd:lE,insetInline:lE,insetInlineStart:lE,insetInlineEnd:lE,padding:lE,paddingTop:lE,paddingRight:lE,paddingBottom:lE,paddingLeft:lE,paddingBlock:lE,paddingBlockStart:lE,paddingBlockEnd:lE,paddingInline:lE,paddingInlineStart:lE,paddingInlineEnd:lE,margin:lE,marginTop:lE,marginRight:lE,marginBottom:lE,marginLeft:lE,marginBlock:lE,marginBlockStart:lE,marginBlockEnd:lE,marginInline:lE,marginInlineStart:lE,marginInlineEnd:lE,fontSize:lE,backgroundPositionX:lE,backgroundPositionY:lE,rotate:lO,pathRotation:lO,rotateX:lO,rotateY:lO,rotateZ:lO,scale:lh,scaleX:lh,scaleY:lh,scaleZ:lh,skew:lO,skewX:lO,skewY:lO,distance:lE,translateX:lE,translateY:lE,translateZ:lE,x:lE,y:lE,z:lE,perspective:lE,transformPerspective:lE,opacity:lp,originX:lP,originY:lP,originZ:lE,zIndex:l$,fillOpacity:lp,strokeOpacity:lp,numOctaves:l$},lG={...lH,color:lC,backgroundColor:lC,outlineColor:lC,fill:lC,stroke:lC,borderColor:lC,borderTopColor:lC,borderRightColor:lC,borderBottomColor:lC,borderLeftColor:lC,filter:lW,WebkitFilter:lW,mask:lU,WebkitMask:lU},lK=e=>lG[e],lq=()=>({translate:0,scale:1,origin:0,originPoint:0}),lY=()=>({x:lq(),y:lq()}),lZ=()=>({min:0,max:0}),lX=()=>({x:lZ(),y:lZ()}),lQ=e=>!!(e&&e.getVelocity),lJ=new Set(["width","height","top","left","right","bottom",...lu]),l0=e=>t=>t.test(e),l1=[lf,lE,lk,lO,lD,lA,{test:e=>"auto"===e,parse:e=>e}],l2=e=>l1.find(l0(e)),l3=()=>{},l4=()=>{},l5=e=>t=>"string"==typeof t&&t.startsWith(e),l6=l5("--"),l8=l5("var(--"),l9=e=>!!l8(e)&&l7.test(e.split("/*")[0].trim()),l7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ue(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ut=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,un=e=>180*e/Math.PI,ur=e=>ui(un(Math.atan2(e[1],e[0]))),ua={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ur,rotateZ:ur,skewX:e=>un(Math.atan(e[1])),skewY:e=>un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ui=e=>((e%=360)<0&&(e+=360),e),uo=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),us=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ul={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uo,scaleY:us,scale:e=>(uo(e)+us(e))/2,rotateX:e=>ui(un(Math.atan2(e[6],e[5]))),rotateY:e=>ui(un(Math.atan2(-e[2],e[0]))),rotateZ:ur,rotate:ur,skewX:e=>un(Math.atan(e[4])),skewY:e=>un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uu(e){return+!!e.includes("scale")}function uc(e,t){let n,r;if(!e||"none"===e)return uu(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)n=ul,r=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ua,r=t}if(!r)return uu(t);let i=n[t],o=r[1].split(",").map(ud);return"function"==typeof i?i(o):o[i]}function ud(e){return parseFloat(e.trim())}let uf=e=>e===lf||e===lE,up=new Set(["x","y","z"]),uh=lu.filter(e=>!up.has(e)),um={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let a=e.max-e.min;return"border-box"===r?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let a=e.max-e.min;return"border-box"===r?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uc(t,"x"),y:(e,{transform:t})=>uc(t,"y")};um.translateX=um.x,um.translateY=um.y;let uy=e=>e,uv={},ug=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ub(e,t){let n=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=ug.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!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&&r?t:n;return a&&i.add(e),s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(o=e,r){a=!0;return}r=!0;let i=t;t=n,n=i,t.forEach(s),t.clear(),r=!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=uv.useManualTiming,o=i?a.timestamp:performance.now();n=!1,i||(a.delta=r?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,n&&t&&(r=!1,e(m))};return{schedule:ug.reduce((t,i)=>{let s=o[i];return t[i]=(t,i=!1,o=!1)=>(!n&&(n=!0,r=!0,a.isProcessing||e(m)),s.schedule(t,i,o)),t},{}),cancel:e=>{for(let t=0;t<ug.length;t++)o[ug[t]].cancel(e)},state:a,steps:o}}let{schedule:ux,cancel:uw,state:uS,steps:uj}=ub("u">typeof requestAnimationFrame?requestAnimationFrame:uy,!0),uO=new Set,uk=!1,uE=!1,uA=!1;function uD(){if(uE){let e=Array.from(uO).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],uh.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uE=!1,uk=!1,uO.forEach(e=>e.complete(uA)),uO.clear()}function uP(){uO.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uE=!0)})}class uT{constructor(e,t,n,r,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(uO.add(this),uk||(uk=!0,ux.read(uP),ux.resolveKeyframes(uD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let a=r?.get(),i=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){let r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===a&&r.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),uO.delete(this)}cancel(){"scheduled"===this.state&&(uO.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let uC=new Set([lW,lU]);function uN(e,t){let n=lK(e);return uC.has(n)||(n=lF),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let uM=new Set(["auto","none","0"]);class uR extends uT{constructor(e,t,n,r,a){super(e,t,n,r,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&l9(r=r.trim())){let a=function e(t,n,r=1){l4(r<=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=ut.exec(e);if(!t)return[,];let[,n,r,a]=t;return[`--${n??r}`,a]}(t);if(!a)return;let o=window.getComputedStyle(n).getPropertyValue(a);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return l9(i)?e(i,n,r+1):i}(r,t.current);void 0!==a&&(e[n]=a),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!lJ.has(n)||2!==e.length)return;let[r,a]=e,i=l2(r),o=l2(a);if(ue(r)!==ue(a)&&um[n]){this.needsMeasurement=!0;return}if(i!==o)if(uf(i)&&uf(o))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else um[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];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]))&&n.push(t);n.length&&function(e,t,n){let r,a=0;for(;a<e.length&&!r;){let t=e[a];"string"==typeof t&&!uM.has(t)&&l_(t).values.length&&(r=e[a]),a++}if(r&&n)for(let a of t)e[a]=uN(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=um[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let a=n.length-1,i=n[a];n[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,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let uI=e=>1e3*e;function u_(e,t){-1===e.indexOf(t)&&e.push(t)}function uL(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class uF{constructor(){this.subscriptions=[]}add(e){return u_(this.subscriptions,e),()=>uL(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){let r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function uB(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function uV(e){let t;return()=>(void 0===t&&(t=e()),t)}let uz={};function uW(e,t){let n=uV(e);return()=>uz[t]??n()}let uU=uW(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),u$=e=>null!==e;function uH(e,{repeat:t,repeatType:n="loop"},r,a=1){let i=e.filter(u$),o=a<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class uG{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 uK=e=>Array.isArray(e)&&"number"==typeof e[0],uq=uW(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),uY=(e,t,n=10)=>{let r="",a=Math.max(Math.round(t/n),2);for(let t=0;t<a;t++)r+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},uZ=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uZ([0,.65,.55,1]),circOut:uZ([.55,0,1,.45]),backIn:uZ([.31,.01,.66,-.59]),backOut:uZ([.33,1.53,.69,.99])};function uQ(e){return"function"==typeof e&&"applyToOptions"in e}class uJ extends uG{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=e,l4("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return uQ(e)&&uq()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?uq()?uY(t,n):"ease-out":uK(t)?uZ(t):Array.isArray(t)?t.map(t=>e(t,n)||uX.easeOut):uX[t]}(s,a);Array.isArray(d)&&(c.easing=d);let f={delay:r,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,n,r,l,a),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=uH(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),uB(t,n,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=uI(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:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&uU())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),uy):r(this)}}let u0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:u1}=ub(queueMicrotask,!1);function u2(){i=void 0}let u3={now:()=>(void 0===i&&u3.set(uS.isProcessing||uv.useManualTiming?uS.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(u2)}},u4=(e,t)=>t?1e3/t*e:0,u5;class u6{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=u3.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=u3.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 uF);let n=this.events[e].add(t);return"change"===e?()=>{n(),ux.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}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 u5&&u5.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=u3.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return u4(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 u8(e,t){return new u6(e,t)}let u9=[...l1,lC,lF],u7=new WeakMap;function ce(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ct(e){return"string"==typeof e||Array.isArray(e)}let cn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cr=["initial",...cn];function ca(e){return ce(e.animate)||cr.some(t=>ct(e[t]))}function ci(e){return!!(ca(e)||e.variants)}let co={current:null},cs={current:!1},cl="u">typeof window;function cu(){if(cs.current=!0,cl)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>co.current=e.matches;e.addEventListener("change",t),t()}else co.current=!1}function cc(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function cd(e,t,n,r){if("function"==typeof t){let[a,i]=cc(r);t=t(void 0!==n?n:e.custom,a,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,i]=cc(r);t=t(void 0!==n?n:e.custom,a,i)}return t}let cf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cp={};class ch{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,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=uT,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=u3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ux.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=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=a,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ca(t),this.isVariantNode=ci(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]&&lQ(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,u7.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:(cs.current||cu(),this.shouldReduceMotion=co.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(),uw(this.notifyUpdate),uw(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 n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&u0.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:a,ease:i,duration:o}=t.accelerate,s=new uJ({element:this.current,name:e,keyframes:r,times:a,ease:i,duration:uI(o)}),l=n(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let r=lc.has(e);r&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ux.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),n&&n()})}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 cp){let t=cp[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(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):lX()}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<cf.length;t++){let n=cf[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let a=t[r],i=n[r];if(lQ(a))e.addValue(r,a);else if(lQ(i))e.addValue(r,u8(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(r);e.addValue(r,u8(void 0!==t?t:a,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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 n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);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 n=this.values.get(e);return void 0===n&&void 0!==t&&(n=u8(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,a;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(a=n,/^0[^.\s]+$/u.test(a))))n=parseFloat(n);else{let r;r=n,!u9.find(l0(r))&&lF.test(t)&&(n=uN(e,t))}this.setBaseTarget(e,lQ(n)?n.get():n)}return lQ(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=cd(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||lQ(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new uF),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){u1.render(this.render)}}class cm extends ch{constructor(){super(...arguments),this.KeyframeResolver=uR}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;lQ(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function cy(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let cv=(e,t)=>t&&"number"==typeof e?t.transform(e):e,cg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cb=lu.length;function cx(e,t,n){let{style:r,vars:a,transformOrigin:i}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(lc.has(e)){o=!0;continue}if(l6(e)){a[e]=n;continue}{let t=cv(n,lH[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(!t.transform&&(o||n?r.transform=function(e,t,n){let r="",a=!0;for(let i=0;i<cb;i++){let o=lu[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||n){let e=cv(s,lH[o]);if(!l){a=!1;let t=cg[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let i=e.pathRotation;return i&&(a=!1,r+=`rotate(${cv(i,lH.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}let cw={offset:"stroke-dashoffset",array:"stroke-dasharray"},cS={offset:"strokeDashoffset",array:"strokeDasharray"},cj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cO(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...s},l,u,c){if(cx(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),cj))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==a&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;let i=a?cw:cS;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}(d,a,i,o,!1)}let ck=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"]),cE=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cA(e,{style:t,vars:n},r,a){let i,o=e.style;for(i in t)o[i]=t[i];for(i in a?.applyProjectionStyles(o,r),n)o.setProperty(i,n[i])}let cD=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function cP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let cT={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lE.test(e))return e;else e=parseFloat(e);let n=cP(e,t.target.x),r=cP(e,t.target.y);return`${n}% ${r}%`}},cC=(e,t,n)=>e+(t-e)*n,cN={borderRadius:{...cT,applyTo:[...cD]},borderTopLeftRadius:cT,borderTopRightRadius:cT,borderBottomLeftRadius:cT,borderBottomRightRadius:cT,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=lF.parse(e);if(r.length>5)return e;let a=lF.createTransformer(e),i=+("number"!=typeof r[0]),o=n.x.scale*t.x,s=n.y.scale*t.y;r[0+i]/=o,r[1+i]/=s;let l=cC(o,s,.5);return"number"==typeof r[2+i]&&(r[2+i]/=l),"number"==typeof r[3+i]&&(r[3+i]/=l),a(r)}}};function cM(e,{layout:t,layoutId:n}){return lc.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!cN[e]||"opacity"===e)}function cR(e,t,n){let r=e.style,a=t?.style,i={};if(!r)return i;for(let t in r)(lQ(r[t])||a&&lQ(a[t])||cM(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(i[t]=r[t]);return i}function cI(e,t,n){let r=cR(e,t,n);for(let n in e)(lQ(e[n])||lQ(t[n]))&&(r[-1!==lu.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class c_ extends cm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lX}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(lc.has(t)){let e=lK(t);return e&&e.default||0}return t=ck.has(t)?t:cy(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return cI(e,t,n)}build(e,t,n){cO(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in cA(e,t,void 0,r),t.attrs)e.setAttribute(ck.has(n)?n:cy(n),t.attrs[n])}mount(e){this.isSVGTag=cE(e.tagName),super.mount(e)}}function cL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cF(e){return void 0===e||1===e}function cB({scale:e,scaleX:t,scaleY:n}){return!cF(e)||!cF(t)||!cF(n)}function cV(e){return cB(e)||cz(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cz(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function cW(e,t,n,r,a){return void 0!==a&&(e=r+a*(e-r)),r+n*(e-r)+t}function cU(e,t=0,n=1,r,a){e.min=cW(e.min,t,n,r,a),e.max=cW(e.max,t,n,r,a)}function c$(e,{x:t,y:n}){cU(e.x,t.translate,t.scale,t.originPoint),cU(e.y,n.translate,n.scale,n.originPoint)}function cH(e,t){e.min+=t,e.max+=t}function cG(e,t,n,r,a=.5){let i=cC(e.min,e.max,a);cU(e,t,n,i,r)}function cK(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function cq(e,t,n){let r=n??e;cG(e.x,cK(t.x,r.x),t.scaleX,t.scale,t.originX),cG(e.y,cK(t.y,r.y),t.scaleY,t.scale,t.originY)}function cY(e,t){return cL(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class cZ extends cm{constructor(){super(...arguments),this.type="html",this.renderInstance=cA}mount(e){l4(!!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(lc.has(t))return this.projection?.isProjecting?uu(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return uc(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(l6(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return cY(e,t)}build(e,t,n){cx(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return cR(e,t,n)}}let cX=["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 cQ(e){if("string"!=typeof e||e.includes("-"));else if(cX.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let cJ=(0,g.createContext)({}),c0=(0,g.createContext)({strict:!1}),c1=(0,g.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),c2=(0,g.createContext)({});function c3(e){return Array.isArray(e)?e.join(" "):e}let c4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c5(e,t,n){for(let r in t)lQ(t[r])||cM(r,n)||(e[r]=t[r])}let c6=()=>({...c4(),attrs:{}}),c8=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 c9(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||c8.has(e)}let c7=e=>!c9(e);try{gN=require("@emotion/is-prop-valid").default,"function"==typeof gN&&(c7=e=>e.startsWith("on")?!c9(e):gN(e))}catch{}function de(e){return lQ(e)?e.get():e}let dt=(0,g.createContext)(null);function dn(e){let t=(0,g.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dr=e=>(t,n)=>{let r=(0,g.useContext)(c2),a=(0,g.useContext)(dt),i=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:function(e,t,n,r){let a={},i=r(e,{});for(let e in i)a[e]=de(i[e]);let{initial:o,animate:s}=e,l=ca(e),u=ci(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;if(d&&"boolean"!=typeof d&&!ce(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=cd(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[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}(n,r,a,e),renderState:t()}})(e,t,r,a);return n?i():dn(i)},da=dr({scrapeMotionValuesFromProps:cR,createRenderState:c4}),di=dr({scrapeMotionValuesFromProps:cI,createRenderState:c6}),ds={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"]},dl=!1;function du(){return!function(){if(dl)return;let e={};for(let t in ds)e[t]={isEnabled:e=>ds[t].some(t=>!!e[t])};cp=e,dl=!0}(),cp}let dc=Symbol.for("motionComponentSymbol"),dd="data-"+cy("framerAppearId"),df=(0,g.createContext)({});function dp(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dh="u">typeof window?g.useLayoutEffect:g.useEffect;function dm(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&function(e){let t=du();for(let n in e)t[n]={...t[n],...e[n]};cp=t}(r);let i=n?"svg"===n:cQ(e),o=i?di:da;function s(n,r){var s;let l,u,c,d={...(0,g.useContext)(c1),...n,layoutId:function({layoutId:e}){let t=(0,g.useContext)(cJ).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:f}=d,p=function(e){let{initial:t,animate:n}=function(e,t){if(ca(e)){let{initial:t,animate:n}=e;return{initial:!1===t||ct(t)?t:void 0,animate:ct(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,g.useContext)(c2));return(0,g.useMemo)(()=>({initial:t,animate:n}),[c3(t),c3(n)])}(n),h=o(n,f);if(!f&&"u">typeof window){(0,g.useContext)(c0).strict;let t=function(e){let{drag:t,layout:n}=du();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,n,r,a,i){let{visualElement:o}=(0,g.useContext)(c2),s=(0,g.useContext)(c0),l=(0,g.useContext)(dt),u=(0,g.useContext)(c1),c=u.reducedMotion,d=u.skipAnimations,f=(0,g.useRef)(null),p=(0,g.useRef)(!1);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,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)(df);h&&!h.projection&&a&&("html"===h.type||"svg"===h.type)&&function(e,t,n,r){let{layoutId:a,layout:i,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(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&&dp(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,n,a,m);let y=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{h&&y.current&&h.update(n,l)});let v=n[dd],b=(0,g.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dh(()=>{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)(c2.Provider,{value:p,children:[l&&p.visualElement?(0,v.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,n,{latestValues:r},a,i=!1,o){let s=(o??cQ(e)?function(e,t,n,r){let a=(0,g.useMemo)(()=>{let n=c6();return cO(n,t,cE(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};c5(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let n,r,a={},i=(n=e.style||{},c5(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,g.useMemo)(()=>{let n=c4();return cx(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);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,r,a,e),l=function(e,t,n){let r={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!lQ(e[a])&&(c7(a)||!0===n&&c9(a)||!t&&!c9(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(t,"string"==typeof e,i),u=e!==g.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,g.useMemo)(()=>lQ(c)?c.get():c,[c]);return(0,g.createElement)(e,{...u,children:d})}(e,n,(s=p.visualElement,u=(0,g.useRef)(r),(0,g.useInsertionEffect)(()=>{u.current=r}),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 n=t(e);"function"==typeof n&&(c.current=n)}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[dc]=e,l}class dy{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dv(e,t,n){let r=e.getProps();return cd(r,t,void 0!==n?n:r.custom,e)}function dg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function db(e,t){let n=e?.[t]??e?.default??e;return n!==e?dg(n,e):n}let dx=e=>Array.isArray(e);function dw(e,t){let{transitionEnd:n={},transition:r={},...a}=dv(e,t)||{};for(let t in a={...a,...n}){var i;let n=dx(i=a[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,u8(n))}}function dS(e,t){let n=e.getValue("willChange");if(lQ(n)&&n.add)return n.add(t);if(!n&&uv.WillChange){let n=new uv.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let dj=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function dO(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dk(e,t){return n=>n>0?t:e}let dE=(e,t,n)=>{let r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},dA=[lS,lw,lT];function dD(e){let t=dA.find(t=>t.test(e));if(l3(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===lT&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let a=0,i=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=dO(s,r,e+1/3),i=dO(s,r,e),o=dO(s,r,e-1/3)}else a=i=o=n;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*o),alpha:r}}(n)),n}let dP=(e,t)=>{let n=dD(e),r=dD(t);if(!n||!r)return dk(e,t);let a={...n};return e=>(a.red=dE(n.red,r.red,e),a.green=dE(n.green,r.green,e),a.blue=dE(n.blue,r.blue,e),a.alpha=cC(n.alpha,r.alpha,e),lw.transform(a))},dT=new Set(["none","hidden"]);function dC(e,t){return n=>cC(e,t,n)}function dN(e){return"number"==typeof e?dC:"string"==typeof e?l9(e)?dk:lC.test(e)?dP:dI:Array.isArray(e)?dM:"object"==typeof e?lC.test(e)?dP:dR:dk}function dM(e,t){let n=[...e],r=n.length,a=e.map((e,n)=>dN(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}}function dR(e,t){let n={...e,...t},r={};for(let a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=dN(e[a])(e[a],t[a]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let dI=(e,t)=>{let n=lF.createTransformer(t),r=l_(e),a=l_(t);if(!(r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length))return l3(!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"),dk(e,t);if(dT.has(e)&&!a.values.length||dT.has(t)&&!r.values.length)return dT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return dj(dM(function(e,t){let n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let i=t.types[a],o=e.indexes[i][r[i]],s=e.values[o]??0;n[a]=s,r[i]++}return n}(r,a),a.values),n)};function d_(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?cC(e,t,n):dN(e)(e,t)}let dL=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ux.update(t,e),stop:()=>uw(t),now:()=>uS.isProcessing?uS.timestamp:u3.now()}};function dF(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let dB=.01,dV=2,dz=.005,dW=.5;function dU(e,t){return e*Math.sqrt(1-t*t)}let d$=["duration","bounce"],dH=["stiffness","damping","mass"];function dG(e,t){return t.some(t=>void 0!==e[t])}function dK(e=.3,t=.3){let n,r,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(!dG(e,dH)&&dG(e,d$))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,a=2*ld(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:a}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let a,i;l3(e<=uI(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=ld(.05,1,o),e=ld(.01,10,e/1e3),o<1?(a=t=>{let r=t*o,a=r*e;return .001-(r-n)/dU(t,o)*Math.exp(-a)},i=t=>{let r=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=dU(Math.pow(t,2),o);return(r*n+n-i)*s*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),i=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,i,5/e);if(e=uI(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,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?dB:dV),c||(c=O?dz:dW),w<1)a=dU(j,w),i=(x+w*j*S)/a,n=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,r=e=>Math.exp(-w*j*e)*(o*Math.sin(a*e)+s*Math.cos(a*e));else if(1===w){n=e=>f-Math.exp(-j*e)*(S+(x+j*S)*e);let e=x+j*S;r=t=>Math.exp(-j*t)*(j*e*t-x)}else{let e=j*Math.sqrt(w*w-1);n=t=>{let n=Math.exp(-w*j*t),r=Math.min(e*t,300);return f-n*((x+w*j*S)*Math.sinh(r)+e*S*Math.cosh(r))/e};let t=(x+w*j*S)/e,a=w*j*t-S*e,i=w*j*S-t*e;r=t=>{let n=Math.exp(-w*j*t),r=Math.min(e*t,300);return n*(a*Math.sinh(r)+i*Math.cosh(r))}}let k={calculatedDuration:b&&v||null,velocity:e=>uI(r(e)),next:e=>{if(!b&&w<1){let t=Math.exp(-w*j*e),n=Math.sin(a*e),r=Math.cos(a*e),l=f-t*(i*n+S*r);return p.done=Math.abs(uI(t*(o*n+s*r)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=n(e);return b?p.done=e>=v:p.done=Math.abs(uI(r(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(dF(k),2e4),t=uY(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function dq(e,t,n){let r=Math.max(t-5,0);return u4(n-e(r),t-r)}function dY({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=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=n*t,y=p+m,v=void 0===o?y:o(y);v!==y&&(m=v-p);let g=e=>-m*Math.exp(-e/r),b=e=>v+g(e),x=e=>{let t=g(e),n=b(e);h.done=Math.abs(t)<=u,h.value=h.done?v:n},w=e=>{let t;if(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,f=dK({keyframes:[h.value,(n=h.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:dq(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)}}}dK.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),a=Math.min(dF(r),2e4);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:a/1e3}}(e,100,dK);return e.ease=t.ease,e.duration=uI(t.duration),e.type="keyframes",e};let dZ=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function dX(e,t,n,r){return e===t&&n===r?uy:a=>0===a||1===a?a:dZ(function(e,t,n,r,a){let i,o,s=0;do(i=dZ(o=t+(n-t)/2,r,a)-e)>0?n=o:t=o;while(Math.abs(i)>1e-7&&++s<12);return o}(a,0,1,e,n),t,r)}let dQ=dX(.42,0,1,1),dJ=dX(0,0,.58,1),d0=dX(.42,0,.58,1),d1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d2=e=>t=>1-e(1-t),d3=dX(.33,1.53,.69,.99),d4=d2(d3),d5=d1(d4),d6=e=>e>=1?1:(e*=2)<1?.5*d4(e):.5*(2-Math.pow(2,-10*(e-1))),d8=e=>1-Math.sin(Math.acos(e)),d9=d2(d8),d7=d1(d8),fe={linear:uy,easeIn:dQ,easeInOut:d0,easeOut:dJ,circIn:d8,circInOut:d7,circOut:d9,backIn:d4,backInOut:d5,backOut:d3,anticipate:d6},ft=e=>{if(uK(e)){l4(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,a]=e;return dX(t,n,r,a)}return"string"==typeof e?(l4(void 0!==fe[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fe[e]):e},fn=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function fr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var a;let i,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ft):ft(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let i=e.length;if(l4(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,n){let r=[],a=n||uv.mix||d_,i=e.length-1;for(let n=0;n<i;n++){let i=a(e[n],e[n+1]);t&&(i=dj(Array.isArray(t)?t[n]||uy:t,i)),r.push(i)}return r}(t,r,a),l=s.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let a=fn(e[r],e[r+1],n);return s[r](a)};return n?t=>u(ld(e[0],e[i-1],t)):u}((a=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let a=fn(0,t,r);e.push(cC(n,1,a))}}(i=[0],t.length-1),i),a.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||d0).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fa={decay:dY,inertia:dY,tween:fr,keyframes:fr,spring:dK};function fi(e){"string"==typeof e.type&&(e.type=fa[e.type])}let fo=e=>e/100;class fs extends uG{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!==u3.now()&&this.tick(u3.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;fi(e);let{type:t=fr,repeat:n=0,repeatDelay:r=0,repeatType:a,velocity:i=0}=e,{keyframes:o}=e,s=t||fr;s!==fr&&"number"!=typeof o[0]&&(this.mixKeyframes=dj(fo,d_(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=dF(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,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 n,{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return r.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=r;if(d){let e=Math.min(this.currentTime,a)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/s)):"mirror"===f&&(x=o)),b=ld(0,1,n)*s}g?(this.delayState.value=c[0],n=this.delayState):n=x.next(b),i&&!g&&(n.value=i(n.value));let{done:w}=n;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!==dY&&(n.value=uH(c,this.options,y,this.speed)),m&&m(n.value),S&&this.finish(),n}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=uI(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 dq(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(u3.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=dL,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"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(u3.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 fl={anticipate:d6,backInOut:d5,circInOut:d7};class fu extends uJ{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fl&&(e.ease=fl[e.ease])}(e),fi(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:a,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fs({...i,autoplay:!1}),s=Math.max(10,u3.now()-this.startTime),l=ld(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;a&&c&&uB(a,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}let fc=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(lF.test(e)||"0"===e)&&!e.startsWith("url("));function fd(e){e.duration=0,e.type="keyframes"}let ff=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fp=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fh=uV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fm extends uG{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=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=u3.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:a,repeatType:i,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||uT;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let a;this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=u3.now();let d=!0;!function(e,t,n,r){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],o=fc(a,t),s=fc(i,t);return l3(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 n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||uQ(n))&&r)}(e,i,o,s)&&(d=!1,(uv.instantAnimations||!l)&&c?.(uH(e,n,t)),e[0]=e[e.length-1],fd(n),n.repeat=0);let f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,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 fh()&&n&&(u0.has(n)||fp.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ff.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!c)&&!u&&!r&&"mirror"!==a&&0!==i&&"inertia"!==o}(f),h=f.motionValue?.owner?.current;if(p)try{a=new fu({...f,element:h})}catch{a=new fs(f)}else a=new fs(f);a.finished.then(()=>{this.notifyFinished()}).catch(uy),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(),uA=!0,uP(),uD(),uA=!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 fy={type:"spring",stiffness:500,damping:25,restSpeed:10},fv={type:"keyframes",duration:.8},fg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fb=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fx=(e,t,n,r={},a,i)=>o=>{let s=db(r,e)||{},l=s.delay||r.delay||0,{elapsed:u=0}=r;u-=uI(l);let c={keyframes:Array.isArray(n)?n:[null,n],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(!fb.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?fv:lc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:fy:fg)(e,c)),c.duration&&(c.duration=uI(c.duration)),c.repeatDelay&&(c.repeatDelay=uI(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(fd(c),0===c.delay&&(d=!0)),(uv.instantAnimations||uv.skipAnimations||a?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fd(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!i&&void 0!==t.get()){let e=uH(c.keyframes,s);if(void 0!==e)return void ux.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fs(c):new fm(c)};function fw(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i,transitionEnd:o,...s}=t,l=e.getDefaultTransition();i=i?dg(i,l):l;let u=i?.reduceMotion,c=i?.skipAnimations;r&&(i=r);let d=[],f=a&&e.animationState&&e.animationState.getState()[a],p=i?.path;for(let t in p&&p.animateVisualElement(e,s,i,n,d),s){let r=e.getValue(t,e.latestValues[t]??null),a=s[t];if(void 0===a||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let o={delay:n,...db(i||{},t)};c&&(o.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(a)&&a===l&&!o.velocity){ux.update(()=>r.set(a));continue}let p=!1;if(window.MotionHandoffAnimation){let n=e.props[dd];if(n){let e=window.MotionHandoffAnimation(n,t,ux);null!==e&&(o.startTime=e,p=!0)}}dS(e,t);let h=u??e.shouldReduceMotion;r.start(fx(t,r,a,h&&lJ.has(t)?{type:!1}:o,e,p));let m=r.animation;m&&d.push(m)}if(o){let t=()=>ux.update(()=>{o&&dw(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fS(e,t,n,r=0,a=1){let i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return"function"==typeof n?n(i,o):1===a?i*r:s-i*r}function fj(e,t,n={}){let r=dv(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);let i=r?()=>Promise.all(fw(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,a=0,i=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fj(l,t,{...o,delay:n+("function"==typeof r?0:r)+fS(e.variantChildren,l,r,a,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:s}=a;if(!s)return Promise.all([i(),o(n.delay)]);{let[e,t]="beforeChildren"===s?[i,o]:[o,i];return e().then(()=>t())}}function fO(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>fj(e,t,n)));else if("string"==typeof t)r=fj(e,t,n);else{let a="function"==typeof t?dv(e,t,n.custom):t;r=Promise.all(fw(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}let fk=cr.length;function fE(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let fA=[...cn].reverse(),fD=cn.length;function fP(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fT(){return{animate:fP(!0),whileInView:fP(),whileHover:fP(),whileTap:fP(),whileDrag:fP(),whileFocus:fP(),exit:fP()}}let fC=0,fN={x:!1,y:!1};function fM(e){return[e("x"),e("y")]}function fR(e){return e.max-e.min}function fI(e,t,n,r=.5){e.origin=r,e.originPoint=cC(t.min,t.max,e.origin),e.scale=fR(n)/fR(t),e.translate=cC(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function f_(e,t,n,r){fI(e.x,t.x,n.x,r?r.originX:void 0),fI(e.y,t.y,n.y,r?r.originY:void 0)}function fL(e,t,n,r=0){e.min=(r?cC(n.min,n.max,r):n.min)+t.min,e.max=e.min+fR(t)}function fF(e,t,n,r=0){let a=r?cC(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+fR(t)}function fB(e,t,n,r){fF(e.x,t.x,n.x,r?.x),fF(e.y,t.y,n.y,r?.y)}let fV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),fz=new Set(["INPUT","SELECT","TEXTAREA"]);function fW(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}let fU=e=>"object"==typeof e&&null!==e;function f$(e){return fU(e)&&"ownerSVGElement"in e}function fH(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(e=>null!=e)}let fG=new WeakMap,fK=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:f$(r)&&"getBBox"in r?r.getBBox()[t]:r[n],fq=fK("inline","width","offsetWidth"),fY=fK("block","height","offsetHeight");function fZ({target:e,borderBoxSize:t}){fG.get(e)?.forEach(n=>{n(e,{get width(){return fq(e,t)},get height(){return fY(e,t)}})})}function fX(e){e.forEach(fZ)}let fQ=new Set;function fJ(e,t){let n;return"function"==typeof e?(fQ.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};fQ.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{fQ.delete(e),fQ.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(fX)),(n=fH(e)).forEach(e=>{let n=fG.get(e);n||(n=new Set,fG.set(e,n)),n.add(t),o?.observe(e)}),()=>{n.forEach(e=>{let n=fG.get(e);n?.delete(t),n?.size||o?.unobserve(e)})})}let f0=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function f1(e){return{point:{x:e.pageX,y:e.pageY}}}function f2(e,t,n,r){return fW(e,t,e=>f0(e)&&n(e,f1(e)),r)}let f3=({current:e})=>e?e.ownerDocument.defaultView:null,f4=(e,t)=>Math.abs(e-t),f5=new Set(["auto","scroll"]);class f6{constructor(e,t,{transformPagePoint:n,contextWindow:r=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=f8(this.lastRawMoveEventInfo,this.transformPagePoint));let n=f7(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,a=(e=n.offset,t={x:0,y:0},Math.sqrt(f4(e.x,t.x)**2+f4(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!a)return;let{point:i}=n,{timestamp:o}=uS;this.history.push({...i,timestamp:o});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=f8(t,this.transformPagePoint),ux.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:a}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=f7("pointercancel"===e.type?this.lastMoveEventInfo:f8(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!f0(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const s=f8(f1(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uS;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,f7(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dj(f2(this.contextWindow,"pointermove",this.handlePointerMove,d),f2(this.contextWindow,"pointerup",this.handlePointerUp,d),f2(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(f5.has(e.overflowX)||f5.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 n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:r.x-t.x,y:r.y-t.y};(0!==a.x||0!==a.y)&&(n?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,r),ux.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uw(this.updatePoint)}}function f8(e,t){return t?{point:t(e.point)}:e}function f9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function f7({point:e},t){return{point:e,delta:f9(e,pe(t)),offset:f9(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=pe(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>uI(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*uI(.1)&&(n=e[1]);let a=(r.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};let i={x:(r.x-n.x)/a,y:(r.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}(t)}}function pe(e){return e[e.length-1]}function pt(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pn(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function pr(e,t,n){return{min:pa(e,t),max:pa(e,n)}}function pa(e,t){return"number"==typeof e?e:e[t]||0}let pi=new WeakMap;class po{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=lX(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let a=e=>{t&&this.snapToCursor(f1(e).point),this.stopAnimation()},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:a}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(fN[e])return null;else return fN[e]=!0,()=>{fN[e]=!1};return fN.x||fN.y?null:(fN.x=fN.y=!0,()=>{fN.x=fN.y=!1})}(n),!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),fM(e=>{let t=this.getAxisMotionValue(e).get()||0;if(lk.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=fR(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&ux.update(()=>a(e,t),!1,!0),dS(this.visualElement,"transform");let{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:a,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(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&&ux.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 f6(e,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:f3(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&ux.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&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,n){let{drag:r}=this.getProps();if(!n||!pl(e,r,this.currentDirection))return;let a=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?cC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?cC(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&dp(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:a}){return{x:pt(e.x,n,a),y:pt(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pr(e,"left","right"),y:pr(e,"top","bottom")}}(t),r!==this.constraints&&!dp(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&fM(e=>{var t,r;let a;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],a={},void 0!==r.min&&(a.min=r.min-t.min),void 0!==r.max&&(a.max=r.max-t.min),a))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dp(t))return!1;let r=t.current;l4(null!==r,"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,n){let r=cY(e,n),{scroll:a}=t;return a&&(cH(r.x,a.offset.x),cH(r.y,a.offset.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),o=(e=a.layout.layoutBox,{x:pn(e.x,i.x),y:pn(e.y,i.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=cL(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(fM(o=>{if(!pl(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===i||i===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return dS(this.visualElement,e),n.start(fx(e,n,0,t,this.visualElement,!1))}stopAnimation(){fM(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){fM(t=>{let{drag:n}=this.getProps();if(!pl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:i}=r.layout.layoutBox[t],o=a.get()||0;a.set(e[t]-cC(n,i,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dp(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};fM(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,a;let i,o,s,l=t.get();r[e]=(n={min:l,max:l},a=this.constraints[e],i=.5,o=fR(n),(s=fR(a))>o?i=fn(a.min,a.max-o,n.min):o>s&&(i=fn(n.min,n.max-s,a.min)),ld(0,1,i))}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),fM(t=>{if(!pl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:a,max:i}=this.constraints[t];n.set(cC(a,i,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pi.set(this.visualElement,this);let t=this.visualElement.current,n=f2(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),a=e.target,i=a!==t&&(fz.has(a.tagName)||!0===a.isContentEditable);n&&r&&!i&&this.start(e)}),r=()=>{var n,r,a;let i,o,{dragConstraints:s}=this.getProps();dp(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=s.current,i=fJ(n,ps(a=()=>this.scalePositionWithinConstraints())),o=fJ(r,ps(a)),e=()=>{i(),o()}))},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ux.read(r);let o=fW(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(fM(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:i=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:i,dragMomentum:o}}}function ps(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pl(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let pu=e=>(t,n)=>{e&&ux.update(()=>e(t,n),!1,!0)},pc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pd(e=!0){let t=(0,g.useContext)(dt);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:a}=t,i=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return a(i)},[e]);let o=(0,g.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}let pf=!1;class pp extends g.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),pf&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,{projection:i}=n;return i&&(i.isPresent=a,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),pf=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==a?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||ux.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),u1.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;pf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ph(e){let[t,n]=pd(),r=(0,g.useContext)(cJ);return(0,v.jsx)(pp,{...e,layoutGroup:r,switchLayoutGroup:(0,g.useContext)(df),isPresent:t,safeToRemove:n})}let pm=cD.length,py=e=>"string"==typeof e?parseFloat(e):e,pv=e=>"number"==typeof e||lE.test(e);function pg(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pb=pw(0,.5,d9),px=pw(.5,.95,uy);function pw(e,t,n){return r=>r<e?0:r>t?1:n(fn(e,t,r))}function pS(e,t){e.min=t.min,e.max=t.max}function pj(e,t){pS(e.x,t.x),pS(e.y,t.y)}function pO(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pk(e,t,n,r,a){return e-=t,e=r+1/n*(e-r),void 0!==a&&(e=r+1/a*(e-r)),e}function pE(e,t,[n,r,a],i,o){!function(e,t=0,n=1,r=.5,a,i=e,o=e){if(lk.test(t)&&(t=parseFloat(t),t=cC(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=cC(i.min,i.max,r);e===i&&(s-=t),e.min=pk(e.min,t,n,s,a),e.max=pk(e.max,t,n,s,a)}(e,t[n],t[r],t[a],t.scale,i,o)}let pA=["x","scaleX","originX"],pD=["y","scaleY","originY"];function pP(e,t,n,r){pE(e.x,t,pA,n?n.x:void 0,r?r.x:void 0),pE(e.y,t,pD,n?n.y:void 0,r?r.y:void 0)}function pT(e){return 0===e.translate&&1===e.scale}function pC(e){return pT(e.x)&&pT(e.y)}function pN(e,t){return e.min===t.min&&e.max===t.max}function pM(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pR(e,t){return pM(e.x,t.x)&&pM(e.y,t.y)}function pI(e){return fR(e.x)/fR(e.y)}function p_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class pL{constructor(){this.members=[]}add(e){u_(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(uL(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(uL(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 n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:a}=e.options;(void 0===r||r!==a)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.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 pF=(e,t)=>e.depth-t.depth;class pB{constructor(){this.children=[],this.isDirty=!1}add(e){u_(this.children,e),this.isDirty=!0}remove(e){uL(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pF),this.isDirty=!1,this.children.forEach(e)}}let pV=["","X","Y","Z"],pz=0;function pW(e,t,n,r){let{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pU({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(e={},n=t?.()){this.id=pz++,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(pG),this.nodes.forEach(p1),this.nodes.forEach(p2),this.nodes.forEach(pK)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new pB)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new uF),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=f$(t)&&!(f$(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,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&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,a=()=>this.root.updateBlockedByResize=!1;ux.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,i;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=u3.now(),i=({timestamp:e})=>{let n=e-t;n>=250&&(uw(i),a(n-250))},ux.setup(i,!0),n=()=>uw(i),pc.hasAnimatedSinceResize&&(pc.hasAnimatedSinceResize=!1,this.nodes.forEach(p0))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&a&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||p9,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!pR(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...db(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||p0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),uw(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(p3),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:n}=t.options;if(!n)return;let r=n.props[dd];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ux,!(e||n))}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:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(pZ),this.nodes.forEach(pY);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(pX);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pQ),this.nodes.forEach(pJ),this.nodes.forEach(p$),this.nodes.forEach(pH)):this.nodes.forEach(pX),this.clearAllSnapshots();let e=u3.now();uS.delta=ld(0,1e3/60,e-uS.timestamp),uS.timestamp=e,uS.isProcessing=!0,uj.update.process(uS),uj.preRender.process(uS),uj.render.process(uS),uS.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,u1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pq),this.sharedNodes.forEach(p4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ux.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ux.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||fR(this.snapshot.measuredBox.x)||fR(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=lX()),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=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!pC(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||cV(this.latestValues)||i)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),ht((t=r).x),ht(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return lX();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hr))){let{scroll:e}=this.root;e&&(cH(t.x,e.offset.x),cH(t.y,e.offset.y))}return t}removeElementScroll(e){let t=lX();if(pj(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:a,options:i}=r;r!==this.root&&a&&i.layoutScroll&&(a.wasRoot&&pj(t,e),cH(t.x,a.offset.x),cH(t.y,a.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||lX();pj(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(cH(r.x,-n.scroll.offset.x),cH(r.y,-n.scroll.offset.y)),cV(n.latestValues)&&cq(r,n.latestValues,n.layout?.layoutBox)}return cV(this.latestValues)&&cq(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=lX();pj(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];cV(r.latestValues)&&(r.instance&&(cB(r.latestValues)&&r.updateSnapshot(),pj(n=lX(),r.measurePageBox())),pP(t,r.latestValues,r.snapshot?.layoutBox,n))}return cV(this.latestValues)&&pP(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!==uS.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 n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:a}=this.options;if(!this.layout||!(r||a))return;this.resolvedRelativeTargetAt=uS.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=lX(),this.targetWithTransforms=lX()),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,fL(o.x,s.x,l.x,u?.x),fL(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pj(this.target,this.layout.layoutBox),c$(this.target,this.targetDelta)):pj(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||cB(this.parent.latestValues)||cz(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,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lX(),this.relativeTargetOrigin=lX(),fB(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),pj(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===uS.timestamp&&(n=!1),n)return;let{layout:r,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||!(r||a))return;pj(this.layoutCorrected,this.layout.layoutBox);let i=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){let a,i,o=n.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){i=(a=n[s]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(cH(e.x,-a.scroll.offset.x),cH(e.y,-a.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,c$(e,i)),r&&cV(a.latestValues)&&cq(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=lX());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pO(this.prevProjectionDelta.x,this.projectionDelta.x),pO(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f_(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&p_(this.projectionDelta.x,this.prevProjectionDelta.x)&&p_(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=lY(),this.projectionDelta=lY(),this.projectionDeltaWithTransform=lY()}setAnimationOrigin(e,t=!1,n){let r,a=this.snapshot,i=a?a.latestValues:{},o={...this.latestValues},s=lY();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=lX(),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(p8));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,a=p?.(n);if(a?(s.x.translate=a.x,s.x.scale=cC(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=a.y,s.y.scale=cC(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(p5(s.x,e.x,n),p5(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,y,v,g;fB(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,y=this.relativeTargetOrigin,v=l,g=n,p6(m.x,y.x,v.x,g),p6(m.y,y.y,v.y,g),r&&(c=this.relativeTarget,h=r,pN(c.x,h.x)&&pN(c.y,h.y))&&(this.isProjectionDirty=!1),r||(r=lX()),pj(r,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,n,r,a,i){a?(e.opacity=cC(0,n.opacity??1,pb(r)),e.opacityExit=cC(t.opacity??1,0,px(r))):i&&(e.opacity=cC(t.opacity??1,n.opacity??1,r));for(let a=0;a<pm;a++){let i=cD[a],o=pg(t,i),s=pg(n,i);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||pv(o)===pv(s)?(e[i]=Math.max(cC(py(o),py(s),r),0),(lk.test(s)||lk.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=cC(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,n,f,d)),a&&void 0!==a.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=a.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uw(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ux.update(()=>{var t,n,r;let a;pc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=u8(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(a=lQ(t)?t:u8(t)).start(fx("",a,n,r)),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:n,layout:r,latestValues:a}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&hn(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||lX();let t=fR(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=fR(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}pj(t,n),cq(t,a),f_(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new pL),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.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:n}={}){let r=this.getStack();r&&r.promote(this,n),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:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&pW("z",e,r,this.animationValues);for(let t=0;t<pV.length;t++)pW(`rotate${pV[t]}`,e,r,this.animationValues),pW(`skew${pV[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=de(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=de(t?.pointerEvents)||""),this.hasProjected&&!cV(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let a=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="",a=e.x.translate/t.x,i=e.y.translate/t.y,o=n?.z||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:a,rotateX:i,rotateY:o,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),a&&(r+=`rotate(${a}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);n&&(i=n(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`,r.animationValues?e.opacity=r===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,cN){if(void 0===a[t])continue;let{correct:n,applyTo:o,isCSSVariable:s}=cN[t],l="none"===i?a[t]:n(a[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?de(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(pY),this.root.sharedNodes.clear()}}}function p$(e){e.updateLayout()}function pH(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,i=t.source!==e.layout.source;if("size"===a)fM(e=>{let r=i?t.measuredBox[e]:t.layoutBox[e],a=fR(r);r.min=n[e].min,r.max=r.min+a});else if("x"===a||"y"===a){let e="x"===a?"y":"x";pS(i?t.measuredBox[e]:t.layoutBox[e],n[e])}else hn(a,t.layoutBox,n)&&fM(r=>{let a=i?t.measuredBox[r]:t.layoutBox[r],o=fR(n[r]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=lY();f_(o,n,t.layoutBox);let s=lY();i?f_(s,e.applyTransform(r,!0),t.measuredBox):f_(s,n,t.layoutBox);let l=!pC(o),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:a,layout:i}=r;if(a&&i){let o=e.options.layoutAnchor||void 0,s=lX();fB(s,t.layoutBox,a.layoutBox,o);let l=lX();fB(l,n,i.layoutBox,o),pR(s,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,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 pG(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 pK(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pq(e){e.clearSnapshot()}function pY(e){e.clearMeasurements()}function pZ(e){e.isLayoutDirty=!0,e.updateLayout()}function pX(e){e.isLayoutDirty=!1}function pQ(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function pJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function p0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function p1(e){e.resolveTargetDelta()}function p2(e){e.calcProjection()}function p3(e){e.resetSkewAndRotation()}function p4(e){e.removeLeadSnapshot()}function p5(e,t,n){e.translate=cC(t.translate,0,n),e.scale=cC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function p6(e,t,n,r){e.min=cC(t.min,n.min,r),e.max=cC(t.max,n.max,r)}function p8(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let p9={duration:.45,ease:[.4,0,.1,1]},p7=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),he=p7("applewebkit/")&&!p7("chrome/")?Math.round:uy;function ht(e){e.min=he(e.min),e.max=he(e.max)}function hn(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(pI(t)-pI(n)))}function hr(e){return e!==e.root&&e.scroll?.wasRoot}let ha=pU({attachResizeListener:(e,t)=>fW(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hi={current:void 0},ho=pU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hi.current){let e=new ha({});e.mount(window),e.setOptions({layoutScroll:!0}),hi.current=e}return hi.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function hs(e,t){let n=fH(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function hl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let a=r["onHover"+n];a&&ux.postRender(()=>a(t,f1(t)))}function hu(e){return fU(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let hc=(e,t)=>!!t&&(e===t||hc(e,t.parentElement)),hd=new WeakSet;function hf(e){return t=>{"Enter"===t.key&&e(t)}}function hp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function hh(e){return f0(e)&&!(fN.x||fN.y)}let hm=new WeakSet;function hy(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let a=r["onTap"+("End"===n?"":n)];a&&ux.postRender(()=>a(t,f1(t)))}let hv=new WeakMap,hg=new WeakMap,hb=e=>{let t=hv.get(e.target);t&&t(e)},hx=e=>{e.forEach(hb)},hw={some:0,all:1},hS=function(e,t){if("u"<typeof Proxy)return dm;let n=new Map,r=(n,r)=>dm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(a,i)=>"create"===i?r:(n.has(i)||n.set(i,dm(i,void 0,e,t)),n.get(i))})}({animation:{Feature:class extends dy{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>fO(e,t,n))),n=fT(),r=!0,a=!1,i=t=>(n,r)=>{let a=dv(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<fk;e++){let r=cr[e],a=t.props[r];(ct(a)||!1===a)&&(n[r]=a)}return n}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<fD;t++){var p,h;let m=fA[t],y=n[m],v=void 0!==s[m]?s[m]:l[m],g=ct(v),b=m===o?y.isActive:null;!1===b&&(f=t);let x=v===l[m]&&v!==s[m]&&g;if(x&&(r||a)&&e.manuallyAnimateOnMount&&(x=!1),y.protectedKeys={...d},!y.isActive&&null===b||!v&&!y.prevProp||ce(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)&&!fE(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,A={...E,...k},D=t=>{S=!0,c.has(t)&&(j=!0,c.delete(t)),y.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in A){let t=k[e],n=E[e];if(!d.hasOwnProperty(e))(dx(t)&&dx(n)?!fE(t,n)||w:t!==n)?null!=t?D(e):c.add(e):void 0!==t&&c.has(e)?D(e):y.protectedKeys[e]=!0}y.prevProp=v,y.prevResolvedValues=k,y.isActive&&(d={...d,...k}),(r||a)&&e.blockInitialAnimation&&(S=!1);let P=x&&w,T=!P||j;S&&T&&u.push(...O.map(t=>{let n={type:m};if("string"==typeof t&&(r||a)&&!P&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,a=dv(r,t);if(r.enteringChildren&&a){let{delayChildren:t}=a.transition||{};n.delay=fS(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let n=dv(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let m=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,a=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=fT(),a=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ce(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 dy{constructor(){super(...arguments),this.id=fC++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=dv(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.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 dy{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:a,amount:i="some",once:o}=n,s={root:r?r.current:void 0,rootMargin:a,threshold:"number"==typeof i?i:hw[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:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;hg.has(n)||hg.set(n,{});let r=hg.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(hx,{root:e,...t})),r[a]}(s),hv.set(e,l),t.observe(e),()=>{hv.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 n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends dy{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,a,i]=hs(e,n),o=e=>{let r=e.currentTarget;if(!hh(e)||hm.has(e))return;hd.add(r),n.stopPropagation&&hm.add(e);let i=t(r,e),o={...a,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),hd.has(r)&&hd.delete(r),hh(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{s(e,r===window||r===document||n.useGlobalTarget||hc(r,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",o,a),hu(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=hf(()=>{if(hd.has(n))return;hp(n,"down");let e=hf(()=>{hp(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>hp(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,a)),fV.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(hy(this.node,t,"Start"),(e,{success:t})=>hy(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends dy{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=dj(fW(this.node.current,"focus",()=>this.onFocus()),fW(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends dy{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,a,i]=hs(e,n);return r.forEach(e=>{let n,r=!1,i=!1,o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(r){i=!0;return}o(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||fN.x||fN.y)return;i=!1;let o=t(e,r);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",l,a))},a),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",s,a)},a)}),i}(e,(e,t)=>(hl(this.node,t,"Start"),e=>hl(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dy{constructor(){super(...arguments),this.removePointerDownListener=uy}onPointerDown(e){this.session=new f6(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:f3(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:pu(e),onStart:pu(t),onMove:pu(n),onEnd:(e,t)=>{delete this.session,r&&ux.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=f2(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 dy{constructor(e){super(e),this.removeGroupControls=uy,this.removeListeners=uy,this.controls=new po(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uy}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:ho,MeasureLayout:ph},layout:{ProjectionNode:ho,MeasureLayout:ph}},(e,t)=>t.isSVG??cQ(e)?new c_(t):new cZ(t,{allowProjection:e!==g.Fragment}));var hj={initial:{},animate:{transition:{staggerChildren:.05}}},hO={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},hk=function(e){var t=e.label,n=e.active,r=e.required;return(0,v.jsxs)(hS.span,{className:la.kineticLabel,variants:hj,initial:"initial",animate:n?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,v.jsx)(hS.span,{className:la.kineticLetter,variants:hO,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),r&&(0,v.jsx)("span",{className:la.requiredMark,children:" *"})]})};function hE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hE(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 hD={error:[100,50,100],warning:[50,30,50],success:[30]},hP={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function hT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hT(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 hM=function(e){var t,n,r,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,S=e.disabled,j=void 0!==S&&S,O=e.required,k=void 0!==O&&O,E=e.autoComplete,A=e.autoFocus,D=e.id,P=e.name,T=e.fieldIcon,C=e.validation,N=void 0===C?hP:C,M=e.onFocus,R=e.onBlur,I=e.onValidationChange,L=(0,g.useId)(),F=null!=D?D:"egen-field-".concat(L),B="".concat(F,"-help"),V=hN((0,g.useState)(y),2),z=V[0],W=V[1],U=hN((0,g.useState)(!1),2),$=U[0],H=U[1],G=(0,g.useRef)(null),K=(n=(t=hA((0,g.useState)(null),2))[0],r=t[1],i=(a=hA((0,g.useState)(!1),2))[0],o=a[1],s=function(e){N.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(hD[e]),setTimeout(function(){return o(!1)},600))},(0,g.useEffect)(function(){if(!N.realTimeValidation||!z||0===N.rules.length){r(null),null==I||I(null);return}var e=N.rules.find(function(e){return!e.regex.test(z)});if(e){(null==n?void 0:n.type)!==e.type&&s(e.type),r(e),null==I||I(e);return}var t=N.rules.find(function(e){return"success"===e.type&&e.regex.test(z)});if(t){(null==n?void 0:n.type)!=="success"&&s("success"),r(t),null==I||I(t);return}r(null),null==I||I(null)},[z,N.rules,N.realTimeValidation,null==n?void 0:n.type,I]),{currentValidation:n,isAnimating:i}),q=K.currentValidation,Y=K.isAnimating;(0,g.useEffect)(function(){y!==z&&W(y)},[y]);var Z=(null==T?void 0:T.position)==="left",X=(null==T?void 0:T.position)==="label",Q=!!N.showIcons&&!!q,J=w()(la.field,la["field--".concat(c)],la["field--".concat(void 0===d?"md":d)],(hC(l={},la["field--disabled"],j),hC(l,la["field--animating"],Y),hC(l,la["field--has-left-icon"],Z),hC(l,la["field--has-validation-icon"],Q),l),q&&la["field--".concat(q.type)],x);return(0,v.jsxs)("div",{className:J,children:[(0,v.jsxs)("div",{className:la.fieldControl,ref:G,children:[Z&&(0,v.jsx)("div",{className:la.leftIcon,children:(0,v.jsx)(li,{fieldIcon:T})}),(0,v.jsx)("input",{type:void 0===h?"text":h,id:F,name:P,value:z,onChange:function(e){var t=e.target.value;W(t),null==b||b(t)},onFocus:function(e){H(!0),null==M||M(e)},onBlur:function(e){H(!1),null==R||R(e)},disabled:j,required:k,autoComplete:E,autoFocus:A,className:la.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:la.kineticLabelWrapper,children:(0,v.jsx)(hk,{label:f,active:$||z.length>0,required:k})}),f&&"kinetic"!==c&&(0,v.jsxs)("label",{htmlFor:F,className:la.label,children:[X&&(0,v.jsx)(li,{fieldIcon:T,className:la.labelIconGlyph}),(0,v.jsxs)("span",{className:la.labelText,children:[f,k&&(0,v.jsxs)("span",{className:la.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,v.jsx)(ll,{currentValidation:q,showIcons:!!N.showIcons})]}),N.showMessages&&q&&(0,v.jsxs)("p",{id:B,className:la.message,role:"error"===q.type?"alert":void 0,children:[(0,v.jsxs)("span",{className:la.messageLead,children:["success"===q.type&&"Parfait !","error"===q.type&&"Erreur —","warning"===q.type&&"Attention —"]})," ",q.message]})]})},hR=n(9250),hI=n(1442),h_=n(7267),hL=n(8507);function hF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hB(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function hV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function hz(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function hW(e,t){if(e){if("string"==typeof e)return hF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hF(e,t)}}var hU=(0,hI.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),h$=0,hH=window.getComputedStyle(document.body).overflow;function hG(e){var t=e.modalStack,n=e.modalContainer;n&&(t.length?(n.style.visibility||(addEventListener("keydown",hq),document.body.style.overflow="hidden",n.style.visibility="unset"),t.forEach(function(e,r){switch(e.state){case"NEW":var a,i,o,s,l,u,c,d=(a=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(i=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(a),i.setAttribute("role","dialog"),i.setAttribute("tabindex","-1"),i.setAttribute("aria-modal","true"),i);e.container=d,(function(e,t){var n;return(n=function(e,t){var n,r,a,i,o,s=arguments;return function(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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(n=s.length>2&&void 0!==s[2]?s[2]:{},r=(0,h_.Fg)(t),a=null,!e)return[3,2];if(!r)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,r.load)()];case 1:return i=l.sent(),o=h$++,a=(0,hR.mountRootParcel)(hz(hV({},i),{name:"".concat(t,"-").concat(o)}),hz(hV({},n),{domElement:e})),[3,3];case 2:(0,hL.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(r,a){var i=n.apply(e,t);function o(e){hB(i,r,a,o,s,"next",e)}function s(e){hB(i,r,a,o,s,"throw",e)}o(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",n.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=r?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(o=s.unmount)||o.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){hU.setState({modalContainer:n,modalStack:t.filter(function(t){return t!==e})})},0)}})):(n.style.removeProperty("visibility"),document.body.style.overflow=hH,removeEventListener("keydown",hq)))}function hK(e){var t=hU.getState(),n=t.modalStack.map(function(t){return t===e?hz(hV({},t),{state:"TO_BE_DELETED"}):t});hU.setState(hz(hV({},t),{modalStack:n}))}function hq(e){var t,n;"Escape"===e.key&&(n=(function(e){if(Array.isArray(e))return e}(t=hU.getState().modalStack)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||hW(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])&&hK(n)}function hY(e){hU.subscribe(hG),hU.setState(hz(hV({},hU.getState()),{modalContainer:e}))}function hZ(e){var t,n,r,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=hU.getState().modalStack.find(function(e){return e.onClose===i});e&&hK(e)};return(0,h_.Fg)(e)?(r=[{state:"NEW",onClose:i,modalName:e,props:hV({close:o},a)}].concat(function(e){if(Array.isArray(e))return hF(e)}(n=(t=hU.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hW(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.")}()),hU.setState(hz(hV({},t),{modalStack:r}))):(0,hL.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var hX=n(919),hQ=function(e){var t=e.notification,n=t.description,r=t.action,a=t.kind,i=t.critical,o=t.title,s=t.onAction;return(0,v.jsx)(V.ActionableNotification,{actionButtonLabel:r,kind:a||"info",lowContrast:i,subtitle:n,title:o||"",inline:!0,onActionButtonClick:s})};function hJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h0(e,t){if(e){if("string"==typeof e)return hJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hJ(e,t)}}let h1=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||h0(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=r[0],i=r[1];return(0,g.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return hJ(e)})(n=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)}(n)||h0(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([e])})});return function(){return e.unsubscribe()}},[n]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){return(0,v.jsx)(hQ,{notification:e},e.id)})})};function h2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h3=function(e){var t,n=e.notification,r=n.actionButtonLabel,a=n.onActionButtonClick,i=void 0===a?function(){}:a,o=n.subtitle,s=n.kind,l=n.title,u=n.critical,c=n.progressActionLabel,d=(n.id,function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(n,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(r))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return h2(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 h2(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];return(0,v.jsx)(V.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({kind:s||"info",actionButtonLabel:p,ariaLabel:(0,z.V)("closesActionableNotification","Closes actionable notification"),onActionButtonClick:function(){i(),c&&h(c)},statusIconDescription:(0,z.V)("actionableNotification","Actionable notification"),subtitle:o,title:l,lowContrast:u,inline:!0},d))};function h4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h5(e,t){if(e){if("string"==typeof e)return h4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h4(e,t)}}let h6=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||h5(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=r[0],i=r[1];return(0,g.useEffect)(function(){var e=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return h4(e)})(n=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)}(n)||h5(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([e])})});return function(){return e.unsubscribe()}},[n]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){return(0,v.jsx)(h3,{notification:e},e.id)})})};var h8=n(5217),h9=n(72),h7=n(2797),me=n(8206),mt=n(3497),mn=n(8134),mr=n(4666),ma=n(7931),mi=Object.prototype.hasOwnProperty;let mo=function(e){if(null==e)return!0;if((0,mt.A)(e)&&((0,me.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,mn.A)(e)||(0,ma.A)(e)||(0,h7.A)(e)))return!e.length;var t=(0,h9.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,mr.A)(e))return!(0,h8.A)(e).length;for(var n in e)if(mi.call(e,n))return!1;return!0};var ms=n(8279);function ml(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function md(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var mf=new hX.Subject,mp=0,mh=new hX.Subject,mm=0;function my(e){e&&(0,ms.createRoot)(e).render((0,v.jsx)(h1,{subject:mf}))}function mv(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":md(t))==="object"&&(ml(t,Error)||!mo(t)))?(ml(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){mf.next(mc(mu({},e),{id:mp++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function mg(e){e&&(0,ms.createRoot)(e).render((0,v.jsx)(h6,{subject:mh}))}function mb(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":md(t))==="object"&&!mo(t))?setTimeout(function(){mh.next(mc(mu({},e),{id:mm++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}function mx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mw(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function mS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mj(e,t,n){return t&&mS(e.prototype,t),n&&mS(e,n),e}function mO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mx(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 mk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mE=function(){function e(t){mw(this,e),mk(this,"canvas",void 0),mk(this,"gl",void 0),mk(this,"meshes",[]),mk(this,"commonUniforms",void 0),mk(this,"width",void 0),mk(this,"height",void 0),mk(this,"Material",void 0),mk(this,"Uniform",void 0),mk(this,"PlaneGeometry",void 0),mk(this,"Mesh",void 0),mk(this,"Attribute",void 0),this.canvas=t;var n=this.canvas.getContext("webgl",{antialias:!0});if(!n)throw Error("WebGL not supported");this.gl=n;var r=this.gl,a=this;this.Uniform=function(){function e(t){mw(this,e),mk(this,"type","float"),mk(this,"value",void 0),mk(this,"typeFn",void 0),mk(this,"excludeFrom",void 0),mk(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 mj(e,[{key:"update",value:function(e){if(void 0!==this.value&&null!==e){var t=0===this.typeFn.indexOf("Matrix"),n="uniform".concat(this.typeFn);t?r[n](e,this.transpose||!1,this.value):r[n](e,this.value)}}},{key:"getDeclaration",value:function(e,t,n){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 r=e.replace("u_","");r=r.charAt(0).toUpperCase()+r.slice(1);var a=Object.entries(this.value).map(function(e){var n=mO(e,2),r=n[0];return n[1].getDeclaration(r,t).replace(/^uniform/,"")}).join("");return"uniform struct ".concat(r," \n{\n").concat(a,"\n} ").concat(e).concat(n?"[".concat(n,"]"):"",";")}return"uniform ".concat(this.type," ").concat(e).concat(n?"[".concat(n,"]"):"",";")}}]),e}(),this.Attribute=function(){function e(t){mw(this,e),mk(this,"type",r.FLOAT),mk(this,"normalized",!1),mk(this,"buffer",void 0),mk(this,"target",void 0),mk(this,"size",void 0),mk(this,"values",void 0),this.buffer=r.createBuffer(),Object.assign(this,t)}return mj(e,[{key:"update",value:function(){this.values&&(r.bindBuffer(this.target,this.buffer),r.bufferData(this.target,this.values,r.STATIC_DRAW))}},{key:"attach",value:function(e,t){var n=r.getAttribLocation(t,e);return this.target===r.ARRAY_BUFFER&&(r.bindBuffer(this.target,this.buffer),r.enableVertexAttribArray(n),r.vertexAttribPointer(n,this.size,this.type,this.normalized,0,0)),n}},{key:"use",value:function(e){r.bindBuffer(this.target,this.buffer),this.target===r.ARRAY_BUFFER&&(r.enableVertexAttribArray(e),r.vertexAttribPointer(e,this.size,this.type,this.normalized,0,0))}}]),e}(),this.Material=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};mw(this,e);var o=function(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(n)),Error("Shader compilation error");return n},s=function(e,t){return Object.entries(e).map(function(e){var n=mO(e,2),r=n[0];return n[1].getDeclaration(r,t)}).join("\n")};mk(this,"uniforms",void 0),mk(this,"uniformInstances",[]),mk(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(n,"\n ");if(this.program=r.createProgram(),r.attachShader(this.program,o(r.VERTEX_SHADER,u)),r.attachShader(this.program,o(r.FRAGMENT_SHADER,c)),r.linkProgram(this.program),!r.getProgramParameter(this.program,r.LINK_STATUS))throw console.error(r.getProgramInfoLog(this.program)),Error("Program linking error");r.useProgram(this.program),this.attachUniforms(void 0,a.commonUniforms),this.attachUniforms(void 0,this.uniforms)}return mj(e,[{key:"attachUniforms",value:function(e,t){var n=this;void 0===e?Object.entries(t).forEach(function(e){var t=mO(e,2),r=t[0],a=t[1];return n.attachUniforms(r,a)}):"array"===t.type?t.value.forEach(function(t,r){return n.attachUniforms("".concat(e,"[").concat(r,"]"),t)}):"struct"===t.type?Object.entries(t.value).forEach(function(t){var r=mO(t,2),a=r[0],i=r[1];return n.attachUniforms("".concat(e,".").concat(a),i)}):this.uniformInstances.push({uniform:t,location:r.getUniformLocation(this.program,e)})}}]),e}(),this.PlaneGeometry=function(){function e(){mw(this,e),mk(this,"width",1),mk(this,"height",1),mk(this,"attributes",void 0),mk(this,"vertexCount",0),mk(this,"xSegCount",0),mk(this,"ySegCount",0),this.attributes={position:new a.Attribute({target:r.ARRAY_BUFFER,size:3}),uv:new a.Attribute({target:r.ARRAY_BUFFER,size:2}),uvNorm:new a.Attribute({target:r.ARRAY_BUFFER,size:2}),index:new a.Attribute({target:r.ELEMENT_ARRAY_BUFFER,size:3,type:r.UNSIGNED_SHORT})}}return mj(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 n=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*n);for(var r=0;r<=this.ySegCount;r++)for(var a=0;a<=this.xSegCount;a++){var i=r*(this.xSegCount+1)+a;if(this.attributes.uv.values[2*i]=a/this.xSegCount,this.attributes.uv.values[2*i+1]=1-r/this.ySegCount,this.attributes.uvNorm.values[2*i]=a/this.xSegCount*2-1,this.attributes.uvNorm.values[2*i+1]=1-r/this.ySegCount*2,a<this.xSegCount&&r<this.ySegCount){var o=r*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 n=-(e/2),r=-(t/2),a=e/this.xSegCount,i=t/this.ySegCount,o=0;o<=this.ySegCount;o++)for(var s=r+o*i,l=0;l<=this.xSegCount;l++){var u=n+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,n){var r=this;mw(this,e),mk(this,"geometry",void 0),mk(this,"material",void 0),mk(this,"attributeInstances",[]),this.geometry=t,this.material=n,Object.entries(this.geometry.attributes).forEach(function(e){var t=mO(e,2),n=t[0],a=t[1];r.attributeInstances.push({attribute:a,location:a.attach(n,r.material.program)})}),a.meshes.push(this)}return mj(e,[{key:"draw",value:function(){r.useProgram(this.material.program),this.material.uniformInstances.forEach(function(e){var t=e.uniform,n=e.location;return t.update(n)}),this.attributeInstances.forEach(function(e){var t=e.attribute,n=e.location;return t.use(n)}),r.drawElements(r.TRIANGLES,this.geometry.attributes.index.values.length,r.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 mj(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}(),mA=function(){function e(t,n){var r=this;mw(this,e),mk(this,"canvas",void 0),mk(this,"colors",void 0),mk(this,"minigl",void 0),mk(this,"mesh",void 0),mk(this,"time",0),mk(this,"last",0),mk(this,"animationId",void 0),mk(this,"isPlaying",!1),mk(this,"animate",function(e){if(r.isPlaying){r.last||(r.last=e);var t=e-r.last;r.last=e,r.time+=Math.min(t,1e3/15),r.mesh.material.uniforms.u_time.value=r.time,r.minigl.render(),r.animationId=requestAnimationFrame(r.animate)}}),mk(this,"handleResize",function(){r.resize()}),this.canvas=t,this.colors=n,this.minigl=new mE(t),this.init()}return mj(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"})},n=1;n<e.length;n++)t.u_waveLayers.value.push(new this.minigl.Uniform({value:{color:new this.minigl.Uniform({value:e[n],type:"vec3"}),noiseFreq:new this.minigl.Uniform({value:[2+n/e.length,3+n/e.length],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:11+.3*n}),noiseFlow:new this.minigl.Uniform({value:6.5+.3*n}),noiseSeed:new this.minigl.Uniform({value:5+10*n}),noiseFloor:new this.minigl.Uniform({value:.1}),noiseCeil:new this.minigl.Uniform({value:.63+.07*n})},type:"struct"}));var r=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,r),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 n=Math.ceil(.02*e),r=Math.ceil(.05*t);this.mesh.geometry.setTopology(n,r),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 mD(e){var t=e.colors,n=void 0===t?["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"]:t,r=e.isPlaying,a=void 0===r||r,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 mA(e,n);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 n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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)})}function mP(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var mT=(0,hI.getGlobalStore)("pageBackground",{config:null,owner:null});function mC(e){mT.setState({config:e,owner:null})}function mN(e){var t=e.children;return(0,v.jsx)(v.Fragment,{children:t})}var mM=function(){return mT.getState().config};function mR(){var e=(0,g.useSyncExternalStore)(mT.subscribe,mM,mM);return(0,g.useMemo)(function(){return{config:e,setPageBackground:mC}},[e])}var mI=["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"];function m_(e){var t=e.className;return(0,v.jsxs)("div",{className:mP("fixed inset-0 w-full h-full pointer-events-none z-0 overflow-hidden select-none bg-[#030708]",t),children:[(0,v.jsx)(mD,{colors:mI,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 mL(e){var t=e.imageSrc,n=e.imageAlt,r=e.imageFit,a=void 0===r?"cover":r,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:mP("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===n?"Arri\xe8re-plan immersif":n,className:mP("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:mP("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:mP("absolute inset-0 pointer-events-none transition-all duration-500",s)}),(void 0===c||c)&&(0,v.jsx)("div",{className:mP("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)(m_,{className:i})}function mF(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.fallback,i=mR().config;return(null==i?void 0:i.customComponent)?(0,v.jsx)("div",{className:mP("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)(mL,{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==(n=i.showDarkWash)||n,accent:i.accent,children:i.children}):"none"===(void 0===a?"animated":a)?null:(0,v.jsx)(m_,{className:null==i?void 0:i.className})}function mB(e){var t=e.customComponent,n=e.imageSrc,r=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,mT.setState({config:{customComponent:t,imageSrc:n,imageAlt:r,imageFit:a,className:i,imageClassName:o,overlayClassName:s,glowClassName:l,showAtmosphere:u,showGlow:c,showDarkWash:d,accent:f,children:p},owner:e})},[t,n,r,a,i,o,s,l,u,c,d,f,p]),(0,g.useEffect)(function(){var e=h.current;return function(){mT.getState().owner===e&&mT.setState({config:null,owner:null})}},[]),null}function mV(e){e&&(0,ms.createRoot)(e).render((0,v.jsx)(mF,{fallback:"none"}))}var mz=n(3645);let mW="YOpQLiaTysM+swWB7ATzKw==";function mU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function mH(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function mG(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}var mK=function(e){if("children"in e){var t=e.children,n=e.className,r=mG(e,["children","className"]);return(0,v.jsx)("div",mH(m$({className:w()(mW,n)},r),{children:t}))}var a=e.title,i=e.illustration,o=e.className,s=mG(e,["title","illustration","className"]);return(0,v.jsx)("div",mH(m$({className:w()(mW,o)},s),{children:(0,v.jsx)(mq,{title:a,illustration:i})}))},mq=function(e){var t,n=e.title,r=e.illustration,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(null))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return mU(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 mU(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,mz.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,v.jsxs)("div",{className:w()("PjsJmcqHjhav+51GzX5n1A==",a),children:[r,(0,v.jsxs)("div",{className:"pPcKj1kNkKP4cQZUtFRU5g==",children:[(null==o?void 0:o.implementationName)&&(0,v.jsx)("p",{children:(0,z.V)(o.implementationName)}),(0,v.jsx)("p",{className:"_3d4ICXZtVrDwUYN1iMMJCA==",children:n})]})]})};function mY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mZ=function(e){var t,n=e.totalItems,r=e.pageSize,a=e.onPageNumberChange,i=e.pageNumber,o=e.dashboardLinkUrl,s=e.currentItems,l=e.dashboardLinkLabel,u=(0,S.usePaginationInfo)(r,n,i,s),c=u.pageSizes,d=u.pageItemsCount,f="tablet"===(0,S.useLayoutType)(),p=(0,z.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:n,pageItemsCount:d});return(0,v.jsx)(v.Fragment,{children:n>0&&(0,v.jsxs)("div",{className:w()((mY(t={},"lQ3akicW2mAhjncqby7nDA==",f),mY(t,"HfUTYLFumnQ+awk4OaX1Dg==",!f),t)),children:[(0,v.jsxs)("div",{children:[p,o&&(0,v.jsx)(S.ConfigurableLink,{to:o,className:"NM9v7zGqLsggVcQgLFigdA==",children:null!=l?l:(0,z.V)("seeAll","See all")})]}),(0,v.jsx)(V.Pagination,{className:"WzkBsEFtArGu5wzXr0lPcA==",page:i,pageSize:r,pageSizes:c,totalItems:n,onChange:a,pageRangeText:function(e,t){return(0,z.V)("paginationOfPages","of {{count}} pages",{count:t})},size:f?"lg":"sm"})]})})};function mX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mQ(e){if(Array.isArray(e))return e}function mJ(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m0(e,t){if(e){if("string"==typeof e)return mX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mX(e,t)}}var m1=["egen-pict-home","egen-pict-payments-desk","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer"],m2=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(m9,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),m3=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(m9,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),m4=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(m9,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),m5=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(m9,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),m6=(0,g.memo)((0,g.forwardRef)(function(e,t){return(0,v.jsx)(m9,{ref:t,pictogram:"egen-pict-home",pictogramProps:e})})),m8=(0,g.memo)((0,g.forwardRef)(function(e,t){var n,r=mQ(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||m0(n)||mJ(),a=r[0],i=r.slice(1),o=a.pictogram,s=a.fallback,l=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["pictogram","fallback"]),u=(mQ(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||m0(i,1)||mJ())[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,n=!1,r=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){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,v.jsx)(S.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,v.jsx)(m9,{ref:u,pictogram:o,pictogramProps:l})})})),m9=(0,g.memo)((0,g.forwardRef)(function(e,t){var n=e.pictogram,r=Object.assign({},{size:92},e.pictogramProps),a=r.className,i=r.size;return(i<=26||i>144)&&(console.error("Invalid size '".concat(i,"' specified for ").concat(n,". Defaulting to 92.")),i=92),(0,v.jsx)("svg",{ref:t,className:w()("wXX7tgyTzQUB487Ai2jwkw==",a),height:i,width:i,children:(0,v.jsx)("use",{href:"#".concat(n)})})})),m7=function(e){var t=e.children;return"tablet"===(0,S.useLayoutType)()?(0,v.jsx)(V.Layer,{children:t}):(0,v.jsx)(v.Fragment,{children:t})};function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ye(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 yr=function(e){var t,n=e.snackbar,r=e.closeSnackbar,a=n.actionButtonLabel,i=n.kind,o=void 0===i?"success":i,s=n.onActionButtonClick,l=void 0===s?function(){}:s,u=n.isLowContrast,c=n.progressActionLabel,d=n.subtitle,f=n.timeoutInMs,p=void 0===f?5e3:f,h=n.autoClose,m=void 0===h?"error"!==o:h,y=n.title,b=(n.id,function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(n,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),x=yn((0,g.useState)(void 0===a?"":a),2),S=x[0],j=x[1],O=yn((0,g.useState)(!0),2),k=O[0],E=O[1],A=yn((0,g.useState)(!1),2),D=A[0],P=A[1],T=(0,g.useCallback)(function(){setTimeout(r,250)},[r]),C=(0,g.useCallback)(function(){P(!0),T()},[T]);return(0,g.useEffect)(function(){if(m){var e=setTimeout(C,p);return function(){return clearTimeout(e)}}},[p,m,C]),(0,g.useEffect)(function(){E(!1),window.setTimeout(function(){E(!0)},0)},[]),(0,v.jsx)(V.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){yt(e,t,n[t])})}return e}({actionButtonLabel:S,"aria-label":(0,z.V)("closeSnackbar","Close snackbar"),className:w()("-oZItDje+VqIMbRFsj0vKg==",(yt(t={},"M2YBUemKsEmA3Eg4hsWRFQ==",k),yt(t,"yEmGTBZUeA8w30tHbNSn5g==",D),t)),kind:o,lowContrast:void 0===u?"error"!==o:u,onActionButtonClick:function(){l(),C(),c&&j(c)},onClose:T,statusIconDescription:(0,z.V)("snackbarNotification","Snackbar notification"),subtitle:void 0===d?"":d,title:y},b))};function ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yi(e,t){if(e){if("string"==typeof e)return ya(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ya(e,t)}}let yo=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||yi(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=r[0],i=r[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=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return ya(e)})(n=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)}(n)||yi(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([e])})});return function(){return e.unsubscribe()}},[n]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){return(0,v.jsx)(yr,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var ys=new hX.Subject,yl=0;function yu(e){e&&(0,ms.createRoot)(e).render((0,v.jsx)(yo,{subject:ys}))}function yc(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,n;ys.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:yl++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}var yd="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 yf(){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(yd,'" />\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(yd,'" />\n <circle class="egen-loader__ring" cx="100" cy="100" r="64" />\n </svg>\n</div>')}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yh(e){var t,n=e.visible,r=void 0===n||n,a=e.local,i=e.size,o=e.label,s=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(r))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yp(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 yp(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(r)return void u(!0);var e=window.setTimeout(function(){return u(!1)},300);return function(){return window.clearTimeout(e)}},[r]),l)?(0,v.jsx)("div",{className:"egen-loader-overlay ".concat(void 0!==a&&a?"egen-loader-overlay--local ":"").concat(r?"egen-anim-fade-in":"egen-anim-fade-out"),dangerouslySetInnerHTML:{__html:yf(void 0===i?160:i,o)}}):null}var ym=0,yy=null;function yv(){if(window.clearTimeout(gY),null==yy?void 0:yy.isConnected){yy.className="egen-loader-overlay egen-anim-fade-in";return}(yy=document.createElement("div")).id="egen-page-loader",yy.className="egen-loader-overlay egen-anim-fade-in",yy.innerHTML=yf(),document.body.appendChild(yy)}function yg(){var e=!1;return 1===(ym+=1)&&(window.clearTimeout(gq),gq=window.setTimeout(yv,120)),function(){if(!e&&(e=!0,0===(ym=Math.max(0,ym-1)))){var t;window.clearTimeout(gq),(t=yy)&&(t.className="egen-loader-overlay egen-anim-fade-out",gY=window.setTimeout(function(){t.remove(),yy===t&&(yy=null)},300))}}}function yb(e){(0,g.useEffect)(function(){if(e)return yg()},[e])}var yx="egen-anim-page-enter";function yw(){var e,t,n,r=document.getElementById("egen-apps-container");!r||null!=(e=null==(t=(n=window).matchMedia)?void 0:t.call(n,"(prefers-reduced-motion: reduce)").matches)&&e||(r.classList.remove(yx),r.offsetWidth,r.classList.add(yx),r.addEventListener("animationend",function(e){e.target===r&&r.classList.remove(yx)},{once:!1}))}function yS(){var e=null,t=function(t){var n=t.detail;(null==n?void 0:n.totalAppChanges)&&(null==e||e(),e=yg())},n=function(){null==e||e(),e=null,yw()};return window.addEventListener("single-spa:before-routing-event",t),window.addEventListener("single-spa:routing-event",n),function(){window.removeEventListener("single-spa:before-routing-event",t),window.removeEventListener("single-spa:routing-event",n),null==e||e()}}function yj(e){var t=document.createElement("div");return t.className="egen-loader-overlay egen-anim-fade-in",t.innerHTML=yf(),e.appendChild(t),function(){t.className="egen-loader-overlay egen-anim-fade-out",window.setTimeout(function(){return t.remove()},300)}}let yO={hiddenFilterSvg:"_8Tz1qFn+MdiJYyy6ez9GUQ==",card:"g40kSNNDpE9NhhUcTafNYw==","card--draggable":"rThVqQdfhOLBiRBlHkth2g==","card--expandable":"RY0ShAGOhiA0XKXO5Sqiag==",bendLayer:"qD6yEcIICh3zPVuc8ZeuEg==",faceLayer:"_0PONrThn18sTfyx8zxhmXg==",edgeLayer:"pg4uJnFEM6WrdOUdtEOQlA==",content:"ArelXhGngOZ+93JNlrBqBg==","blur--sm":"SLe0Wxb5gGxBgiL0MGasOQ==","blur--md":"zrxPZBEXl4NzqG6waBPZVg==","blur--lg":"_4P1jOOMRFuy5KYChqfEj3g==","blur--xl":"R19jP34asJMxjyzQwC1oKw==","glow--none":"pjXAlSa28W1lJr+wo68vVg==","glow--xs":"BmE-JvgGalzpyYFqsovNxw==","glow--sm":"HzeozIN6URFjM+uRLyEe5w==","glow--md":"dQu1UUEYusviaHtggLbX+w==","glow--lg":"ZtA9BZduBptr1334IbiEsg==","glow--xl":"f7aLRCodz2Y3rXD1qsAbLQ==","glow--2xl":"_7B6p9WVoCjjA5J7+JXNMgA==","shadow--none":"_7yiJ0EQp31lzXiYhtAIB8A==","shadow--xs":"r-9qY0z9axV1DyplHMrWsg==","shadow--sm":"vimfUTeWGP8vYRTc-UMX1Q==","shadow--md":"sjeik7aBFWGSrsclplvNbg==","shadow--lg":"_7n0E+oT-MyS2EusrZlSw-A==","shadow--xl":"Mys4y+e4Tg5csfEWKYKLLw==","shadow--2xl":"IE6NX0hiQXPvc27tAfJfgg=="};function yk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){yE(e,t,n[t])})}return e}var yD=function(e){var t,n,r,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,S=void 0===x?"0px":x,j=e.style,O=e.onClick,k=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return yk(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yk(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),E=k[0],A=k[1],D="egen-glass-blur-".concat((0,g.useId)().replace(/:/g,"")),P=l||c,T=P?hS.div:"div",C=P?{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")||A(function(e){return!e})}:O,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:O};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("svg",{className:yO.hiddenFilterSvg,"aria-hidden":"true",children:(0,v.jsx)("defs",{children:(0,v.jsxs)("filter",{id:D,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)(T,(n=yA({className:w()(yO.card,(yE(a={},yO["card--draggable"],l),yE(a,yO["card--expandable"],c),a),o),style:yA({borderRadius:S},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,j)},C),r=r={children:[(0,v.jsx)("div",{className:w()(yO.bendLayer,yO["blur--".concat(void 0===m?"xl":m)]),style:{borderRadius:S,filter:"url(#".concat(D,")")}}),(0,v.jsx)("div",{className:w()(yO.faceLayer,yO["glow--".concat(void 0===b?"sm":b)]),style:{borderRadius:S}}),(0,v.jsx)("div",{className:w()(yO.edgeLayer,yO["shadow--".concat(void 0===y?"md":y)]),style:{borderRadius:S}}),(0,v.jsx)("div",{className:yO.content,children:i})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))]})},yP={success:{icon:oh,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:sd,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:so,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:so,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:oN,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:oM,defaultEyebrow:"Information",colorToken:"info"}};let yT={wrapper:"GyBEs6eqDODWqnwCpOxkgA==",card:"H4pKi7IOS084SKqk0uyFfw==","card--success":"Yc+Kmcmvk2bUbJwvPd+ztA==","card--error":"qlQ3boD91foq+pO8piYM9Q==","card--warning":"+saabNyI2jV1RFmo+4Ggzw==","card--info":"hQvSQJ9lXVa4+WqICvWmFQ==",body:"UweKpMInr5Gk7FaBD5PKUw==",icon:"_7Hl059E-jiqdGfi2Fb7NQQ==",textArea:"XWDeilHanNAG+waXginzsw==",eyebrow:"VL4zl-URrFpGVQ+9Q78q1Q==",title:"GsPNPqYPa1DgbBA8SflK-g==",description:"vki-oFtrZPJfrXBNph1o9g==",closeButton:"JVG-auHlci1Qq5baFfgK1w==",actionsRow:"D4Ei6TMzlNUZXEhyvYFl5w==",actionButton:"vDOcCETP0Tg78PBf1+D5wQ==","actionButton--primary":"M5CeDQDbJCaliICbl1CZhQ==","actionButton--secondary":"EaDTATDS5SHmXghyS+5P2w==","actionButton--danger":"L-Gz2FqBtGPKiZm5v8YYlg==",progressTrack:"MN3iwSn3QIJeWC9eYIP6RQ==",progressFill:"wQc9y8YYdjvKSmG+bfICrQ=="};var yC=function(e){var t=e.colorVar,n=e.mode,r=e.durationMs,a=e.value;return(0,v.jsx)("div",{className:yT.progressTrack,children:"countdown"===n?(0,v.jsx)(hS.div,{className:yT.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=r?r:4e3)/1e3,ease:"linear"}}):(0,v.jsx)(hS.div,{className:yT.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=a?a:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},yN=function(e){var t,n=e.toast,r=e.closeToast,a=n.description,i=n.kind,o=n.critical,s=n.title,l=n.actionButtonLabel,u=n.onActionButtonClick,c=n.variant,d=void 0===c?"default":c,f=n.eyebrow,p=n.progress,h=n.actions,m=n.duration;n.toastKey;var y=yP[void 0===i?"info":i],b=y.icon,x="var(--colors-".concat(y.colorToken,"-500)"),S=(0,g.useMemo)(function(){return(null==h?void 0:h.length)?h:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[h,l,u]),j=(0,g.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&r()},[r]),O=null!=m?m:"default"===d&&0===S.length?4e3:void 0;(0,g.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(r,1200);return function(){return clearTimeout(e)}}return}if(O){var t=setTimeout(r,O);return function(){return clearTimeout(t)}}},[d,p,O,r]);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)(hS.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:yT.wrapper,children:(0,v.jsxs)(yD,{blurIntensity:"xl",glowIntensity:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:w()(yT.card,yT["card--".concat(y.colorToken)]),children:[(0,v.jsxs)("div",{className:yT.body,children:[(0,v.jsx)(b,{className:yT.icon,size:20}),(0,v.jsxs)("div",{className:yT.textArea,children:[(0,v.jsx)("span",{className:yT.eyebrow,children:k}),s&&(0,v.jsx)("p",{className:yT.title,children:s}),(0,v.jsx)("div",{className:yT.description,children:E})]}),(0,v.jsx)("button",{type:"button",onClick:r,className:yT.closeButton,"aria-label":"Fermer",children:(0,v.jsx)(ox,{size:14})})]}),S.length>0&&(0,v.jsx)("div",{className:yT.actionsRow,children:S.map(function(e,t){var n,r;return(0,v.jsx)("button",{type:"button",className:w()(yT.actionButton,yT["actionButton--".concat(null!=(n=e.kind)?n:"primary")]),onClick:function(){return j(e)},children:e.label},null!=(r=e.id)?r:t)})}),"transfer"===d?(0,v.jsx)(yC,{colorVar:x,mode:"progress",value:p}):O&&(0,v.jsx)(yC,{colorVar:x,mode:"countdown",durationMs:O})]})})};function yM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yR(e,t){if(e){if("string"==typeof e)return yM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yM(e,t)}}let yI=function(e){var t,n=e.subject,r=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)([]))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||yR(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=r[0],i=r[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=n.subscribe(function(e){return i(function(t){var n;return((function(e){if(Array.isArray(e))return yM(e)})(n=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)}(n)||yR(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([e])})});return function(){return e.unsubscribe()}},[n]),(0,v.jsx)(v.Fragment,{children:a.map(function(e){var t;return(0,v.jsx)(yN,{toast:e,closeToast:function(){return o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var y_=new hX.Subject,yL=0;function yF(e){e&&(0,ms.createRoot)(e).render((0,v.jsx)(yI,{subject:y_}))}function yB(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"&&!mo(t))?setTimeout(function(){var t,n;y_.next((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={id:yL++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,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 yV=n(7774);function yz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function yU(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function y$(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var n=yY[e];return!n||!n()}function yH(e,t){var n,r=null==(n=y3.getState())?void 0:n.workspaceGroup,a=null==r?void 0:r.name;a&&e===a&&y8(function(){var n=vn(e);n&&(n.setState({},!0),n.subscribe(function(){})()),"function"==typeof(null==r?void 0:r.cleanup)&&r.cleanup(),y3.setState(function(e){return yU(yW({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},a?function(e){return e.currentWorkspaceGroup===a}:function(){return!0})}function yG(e,t){var n,r=t.name,a=t.additionalProps;(0,h_.Xb)(r);var i=function(){y0(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return yK(r,a)},closeWorkspaceGroup:!1})};y$(e.name)?i():y7("closing-workspace-launching-new-workspace",i,null!=(n=e.title)?n:e.name)}function yK(e,t){var n,r,a=(0,h_.Xb)(e),i=y3.getState().workspaceGroup;if(i&&!(null==(n=i.members)?void 0:n.includes(e)))return void yH(i.name,function(){yK(e,t)});var o=null==(r=y3.getState().workspaceGroup)?void 0:r.name,s=yU(yW({},a),{title:ve(a,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y0(e,t)},closeWorkspaceWithSavedChanges:function(t){return y0(e,yW({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var n,r;return n=e,r=t,void(yY[n]=r)},setTitle:function(t,n){s.title=t,s.titleNode=n,y3.setState(function(t){var n=t.openWorkspaces.map(function(t){return t.name===e?s:t});return yU(yW({},t),{openWorkspaces:n})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){y3.setState(function(n){var r,a=[e].concat(function(e){if(Array.isArray(e))return yz(e)}(r=null!=t?t:n.openWorkspaces)||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 yz(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 yz(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.")}()),i=y6(e);return yU(yW({},n),{openWorkspaces:a,workspaceWindowState:i})})}o&&vn(o,t);var u=y3.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(yW(yU(yW({},f),{additionalProps:s.additionalProps}),f.title===ve(f,f.additionalProps)&&{title:ve(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,y3.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),yG(d,{name:e,additionalProps:t})):l(s);else yG(u[0],{name:e,additionalProps:t})}function yq(e){var t=e.targetUrl,n=e.contextKey,r=e.workspaceName,a=e.additionalProps;y1(n),yK(r,a),(0,yV.oo)({to:t})}var yY={};function yZ(e,t){yY[e]=t}function yX(e){return yY[e]}function yQ(){var e=y3.getState();y3.setState(yU(yW({},e),{prompt:null}))}var yJ={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function y0(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=yW({},yJ,n);var r=function(){var t,r,a=y3.getState();a.openWorkspaces.find(function(t){return t.name===e});var i=a.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=y3.getState().workspaceGroup)?void 0:t.name;o&&n.closeWorkspaceGroup&&yH(o),yY[e]=function(){return!1},y3.setState(function(e){return yU(yW({},e),{prompt:null,openWorkspaces:i,workspaceWindowState:y6(null==i?void 0:i[0])})}),null==n||null==(r=n.onWorkspaceClose)||r.call(n)};return y$(e,null==n?void 0:n.ignoreChanges)?(r(),!0):(y7("closing-workspace",r,null!=(t=(0,h_.Xb)(e).title)?t:e),!1)}function y1(e){y3.getState().context!=e&&y3.setState({context:e,openWorkspaces:[],prompt:null})}var y2={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},y3=(0,hI.createGlobalStore)("workspace",y2);function y4(){return y3}function y5(e){var t=y3.getState();y3.setState(yU(yW({},t),{workspaceWindowState:e}))}function y6(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function y8(){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},n=y3.getState().openWorkspaces.filter(t).every(function(e){return y$(e.name)}),r=function(){vt(),null==e||e()};n?r():y7("closing-all-workspaces",r)}function y9(){var e=(0,S.useStore)(y3),t=e.workspaceWindowState,n=e.openWorkspaces,r=e.prompt,a=e.workspaceGroup;return(0,g.useMemo)(function(){return{active:n.length>0,prompt:r,workspaceWindowState:t,workspaces:n,workspaceGroup:a}},[n,t,r,a])}function y7(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,z.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,z.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==n||n()},confirmText:(0,z.V)("discard","Discard")};break;case"closing-all-workspaces":var a=y3.getState().openWorkspaces.filter(function(e){return!y$(e.name)}).map(function(e,t){var n=e.title;return"".concat(t+1,". ").concat(n)});t={title:(0,z.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,z.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==n||n()},confirmText:(0,z.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:a.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,z.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,z.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:r}),onConfirm:function(){y3.setState(function(e){return yU(yW({},e),{prompt:null})}),null==n||n()},confirmText:(0,z.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==n||n();return}y3.setState(function(e){return yU(yW({},e),{prompt:t})})}function ve(e,t){var n;return null!=(n=null==t?void 0:t.workspaceTitle)?n:e.title}function vt(){y3.setState(y2)}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var n=(0,hI.getGlobalStore)(e,{});return t&&n.setState(function(e){return yW({},e,t)}),n}}let vr="f7spBy3jUTfjOH25a05A1A==",va="ZROo9Y2WovRqEcmbEXN7sQ==",vi="+mcQhrE2BMNqPBknif4FqQ==";function vo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vs(e){var t=e.getIcon,n=e.formOpenInTheBackground,r=e.tagContent;return(0,v.jsxs)(v.Fragment,{children:[t({size:16}),n?(0,v.jsx)("span",{className:"_7695LgJosRmkPmkyVGdZ-g==",children:"!"}):(0,v.jsx)("span",{className:"vo9ZXEHO6camG8qEsBCH8A==",children:r})]})}var vl=function(e){var t,n=e.getIcon,r=e.label,a=e.iconDescription,i=e.handler,o=e.type,s=e.tagContent,l=(0,S.useLayoutType)(),u=y9(),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)(V.Button,{className:w()(vr,vo({},vi,p)),iconDescription:a,kind:"ghost",onClick:i,role:"button",tabIndex:0,size:"md",children:[(0,v.jsx)("span",{className:va,children:(0,v.jsx)(vs,{formOpenInTheBackground:h,getIcon:n,tagContent:s})}),(0,v.jsx)("span",{children:r})]}):(0,v.jsx)(V.IconButton,{align:"left","aria-label":a,className:w()(vr,vo({},vi,p)),enterDelayMs:300,kind:"ghost",label:r,onClick:i,size:"md",children:(0,v.jsx)("div",{className:va,children:(0,v.jsx)(vs,{formOpenInTheBackground:h,getIcon:n,tagContent:s})})})};function vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vd(e){var t,n,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vu(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 vu(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)(S.ComponentContext).featureName,d=(0,S.useLayoutType)();return(0,g.useEffect)(function(){var e=function(){l(!(0,S.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:w()("GJUJ7TWs47hZNAq1HgT48A==",(vc(n={},"_7+TCfrT4vrpC5TH4e1by0w==",r),vc(n,"bQ0UMzF1JBk1bcCogWlGrw==",s),vc(n,"v-1cRnDYDLbApkU1gJodvg==",!s),n)),children:(0,v.jsx)("div",{className:"WocuWYX1W7JwP94ypr0B8A==",children:(0,v.jsx)(S.ExtensionSlot,{className:"Cn3Jbzq8LOgwfW4fj6XYSQ==",name:"action-menu-".concat(a&&"default"!=a?a:c,"-items-slot"),state:void 0===i?{}:i})})})}var vf=n(3511),vp=n(2086);function vh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vm(e){if(Array.isArray(e))return e}function vy(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function vg(e,t){if(e){if("string"==typeof e)return vh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vh(e,t)}}var vb=b().forwardRef(function(e,t){var n,r=vm(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vg(n)||vy(),a=r[0],i=r.slice(1),o=a.children,s=a.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["children","size"]),c=(vm(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||vg(i,1)||vy())[0];return 16===l||"16"===l||"16px"===l?b().createElement(vp.A,vv({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),(0,v.jsx)("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"}),(0,v.jsx)("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"}),o):b().createElement(vp.A,vv({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,v.jsx)("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"}),(0,v.jsx)("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"}),o)}),vx=n(2283);function vw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vS(e){if(Array.isArray(e))return e}function vj(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vO(e,t){if(e){if("string"==typeof e)return vw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vw(e,t)}}var vk=b().forwardRef(function(e,t){var n,r=vS(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vO(n)||vj(),a=r[0],i=r.slice(1),o=a.children,s=a.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["children","size"]),c=(vS(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||vO(i,1)||vj())[0];return b().createElement(vp.A,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,v.jsx)("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"}),(0,v.jsx)("path",{d:"M4 22H28V24H4z"}),o)}),vE=n(2768),vA=/[\\^$.*+?()[\]{}|]/g,vD=RegExp(vA.source);let vP=function(e){return(e=(0,vE.A)(e))&&vD.test(e)?e.replace(vA,"\\$&"):e};function vT(e){var t,n,r=e.contextKey,a=y9().prompt;return(0,g.useEffect)(function(){new RegExp("/".concat(vP(r),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(r,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,g.useEffect)(function(){return y1(r),function(){y1(null)}},[r]),(0,g.useEffect)(function(){var e=function(e){var t=e.detail,n=t.cancelNavigation,a=t.newUrl,i=new RegExp("/".concat(vP(r),"(/|$)")),o=new URL(a),s=i.test(o.pathname),l=y3.getState().openWorkspaces.every(function(e){return y$(e.name)});s||(l?vt():(null==n||n(),y8(function(){(0,yV.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.jsxs)(V.ComposedModal,{open:!0,onClose:yQ,children:[(0,v.jsx)(V.ModalHeader,{title:a.title}),(0,v.jsx)(V.ModalBody,{children:(0,v.jsx)("p",{className:"+SBeVyf3Vs1HLINqeNxwCA==",children:a.body})}),(0,v.jsxs)(V.ModalFooter,{children:[(0,v.jsx)(V.Button,{kind:"secondary",onClick:yQ,children:null!=(t=a.cancelText)?t:(0,z.V)("cancel")}),(0,v.jsx)(V.Button,{kind:"danger",onClick:a.onConfirm,children:null!=(n=a.confirmText)?n:(0,z.V)("confirm")})]})]}):null}var vC=n(2879);function vN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vN(Object(n),!0).forEach(function(t){vI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v_(e){return(v_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vL(e,t){return(vL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vF(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vB=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&&vL(o,t);var n,r,a,i=(n=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=v_(o);e=n?Reflect.construct(t,arguments,v_(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 vF(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),vI(vF(t=i.call(this,e)),"handleRef",function(e){t.el=e}),vI(vF(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),vI(vF(t),"getParcelProps",function(){var e=vM(vM({},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 r=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)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(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,vM({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 vC.i&&vC.i.Consumer?g.createElement(vC.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vC.i&&vC.i.Consumer?g.createElement(vC.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)}}],vR(o.prototype,r),a&&vR(o,a),o}();vI(vB,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vV(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 vW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function v$(e){var t,n,r,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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return vW(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 vW(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=(n=u.currentWorkspaceGroup,a=(r=vz((0,g.useState)({}),2))[0],i=r[1],s=(o=vz((0,g.useState)(n),2))[0],l=o[1],(0,g.useEffect)(function(){s!==n&&l(n)},[n]),(0,g.useEffect)(function(){var e,t=vn(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&&vU({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,h,u.additionalProps)},[u,c,h]);return f?(0,v.jsx)(vB,vU({config:f,mountParcel:hR.mountRootParcel},m),u.name):(0,v.jsx)(V.InlineLoading,{className:"H6dHj0oBasuEG5BThmRHhw==",description:"".concat((0,z.V)("loading","Loading")," ...")})}function vH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vG(e){var t,n,r,a=e.contextKey,i=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,S.useLayoutType)(),c=y9(),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",x=(0,g.useMemo)(function(){return o||h&&!y},[h,y,o]);return(0,S.useBodyScrollLock)(!y&&!(0,S.isDesktop)(u)),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:o?"AHHuuXanpv12GtwxcK3ogA==":"E7yiHjGY1d2E+4Abx0jh7g==",children:[(0,v.jsx)("aside",{className:w()(i?"_7nS969hUMMe36pOPOtI3Fg==":"l+rgkmJVqlq3O++ce09vbA==",(vH(n={},"AJHmQ2iPp0Yic2jCrU6NIA==",y),vH(n,"Vb16L-oIiZ74fu1QQMOirg==","narrow"===b),vH(n,"Bn7v8I0voAWdRO7H9eKQiw==","wider"===b),vH(n,"vN8kIRmjOaaBlFkAfGVJ5g==","extra-wide"===b),n)),children:(0,v.jsx)("div",{className:w()("pBPmoo5CjBr1d116v8KrrA==",(vH(r={},"Sew5FCwW7FqufRz17h2owg==","maximized"===f),vH(r,"BxutHfy6GErdVMJpbvmkVg==",y),r)),children:d.map(function(e,t){return(0,v.jsx)("div",{className:w()("tYaVVyyd6Tcv58Bbo4mkcw==",vH({},"lBaWeq3srAzA5Ngk2dm0kQ==",0!==t)),children:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(vf.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,v.jsx)(vK,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,v.jsx)(vT,{contextKey:a})]}),x&&(0,v.jsx)(vd,{name:h,isWithinWorkspace:!o,actionMenuProps:l})]})}function vK(e){var t,n=e.workspaceInstance,r=e.additionalWorkspaceProps,a=(0,vf.useTranslation)().t,i=(0,S.useLayoutType)(),o=y9(),s=o.workspaceWindowState,l=o.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,g.useEffect)(function(){var e=a(n.title);e!==n.title&&n.setTitle(e)},[n.title,a,n.setTitle]);var d=(0,g.useContext)(S.ComponentContext).featureName,f=(0,g.useCallback)(function(){y5(c?"normal":"maximized")},[c]),p=(0,g.useMemo)(function(){return null!=n?n:{}},[n]),h=p.canHide,m=void 0!==h&&h,y=p.canMaximize,b=p.currentWorkspaceGroup,x=p.closeWorkspace,j=(0,g.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){vH(e,t,n[t])})}return e}({},r,null==n?void 0:n.additionalProps)},[r,n]);return n&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(V.Header,{"aria-label":(0,z.V)("workspaceHeader","Workspace Header"),className:"-3kjtr5uYox3-kZnfzcNuw==",children:[!(0,S.isDesktop)(i)&&!m&&(0,v.jsx)(V.HeaderMenuButton,{"aria-label":(0,z.V)("close","Close"),renderMenuIcon:(0,v.jsx)(or,{}),onClick:function(){return x()}}),(0,v.jsx)(V.HeaderName,{prefix:"",children:null!=(t=n.titleNode)?t:a(n.title)}),(0,v.jsx)("div",{className:"_2Zd7JZN89pW2XY09qZBAAw=="}),(0,v.jsxs)(V.HeaderGlobalBar,{className:"ppNsYZC7Z00KBemD1lNxQA==",children:[(0,v.jsx)(S.ExtensionSlot,{name:"workspace-header-group-".concat(n.currentWorkspaceGroup,"-slot"),state:j}),(0,v.jsx)(S.ExtensionSlot,{name:"workspace-header-type-".concat(n.type,"-slot"),state:j}),(0,v.jsx)(S.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:j}),(0,S.isDesktop)(i)&&(0,v.jsxs)(v.Fragment,{children:[(void 0!==y&&y||c)&&(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":c?(0,z.V)("minimize","Minimize"):(0,z.V)("maximize","Maximize"),onClick:f,children:c?(0,v.jsx)(vb,{}):(0,v.jsx)(vx.hz,{})}),m&&!u?(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("hide","Hide"),onClick:function(){return y5("hidden")},children:(0,v.jsx)(oa,{})}):(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("close","Close"),onClick:function(){return null==x?void 0:x()},children:(0,v.jsx)(ox,{})})]}),"tablet"===i&&m&&(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("close","Close"),onClick:function(){return null==x?void 0:x()},children:(0,v.jsx)(vk,{})})]})]}),(0,v.jsx)("div",{className:w()("cNdK12M+p0cj6LR0VGui6A==",vH({},"RXftxuAFC8bU7RXpujMdHA==",!!(void 0===b?"":b))),children:(0,v.jsx)(v$,{workspace:n,additionalPropsFromPage:r},n.name)})]})}var vq=n(1400),vY=n(8254);function vZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vX(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function vQ(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){vX(i,r,a,o,s,"next",e)}function s(e){vX(i,r,a,o,s,"throw",e)}o(void 0)})}}function vJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function v0(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function v1(e){return function(e){if(Array.isArray(e))return vZ(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 vZ(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 vZ(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 v2(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function v3(e,t){return vQ(function(){var n;return v2(this,function(r){switch(r.label){case 0:if(!(n=h_.J_.getState().openedGroup))return[3,3];if(!(n.groupName!==e||!v6(n.props,t)))return[3,2];return[4,v8({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!r.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return h_.J_.setState(function(n){return v0(vJ({},n),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function v4(e){return vQ(function(){var t,n,r,a;return v2(this,function(i){switch(i.label){case 0:if(n=(t=h_.J_.getState()).openedGroup,r=t.openedWindows,!n)return[3,4];if(!(r.length>0))return[3,3];if(a=e)return[3,2];return[4,v8({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 h_.J_.setState(function(e){return v0(vJ({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function v5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return vQ(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 v2(this,function(E){switch(E.label){case 0:if(!(a=h_.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(i=(0,h_.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,h_.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,h_.YX)(e))>=0,!(o&&(o.groupName!==l.name||!v6(o.props,r))))return[3,2];return[4,v8({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(E.sent())return h_.J_.setState(v0(vJ({},a),{openedGroup:{groupName:l.name,props:r},openedWindows:[{windowName:s,openedWorkspaces:[gn(e,t)],props:n,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,!v6(p.props,n))return[3,6];if(!((v=y.find(function(t){return t.workspaceName===e}))&&v6(v.props,t)))return[3,3];return(m||u!==a.openedWindows.length-1)&&h_.J_.setState(v9.restoreWindow(a,s)),[2,!0];case 3:return[4,v8({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(E.sent())return h_.J_.setState(v0(vJ({},a),{openedGroup:{groupName:l.name,props:null!=(g=null==a||null==(x=a.openedGroup)?void 0:x.props)?g:h},openedWindows:v1(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[gn(e,t)],props:null!=(b=null==p?void 0:p.props)?b:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,v8({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(E.sent())return h_.J_.setState(v0(vJ({},a),{openedGroup:{groupName:l.name,props:null!=h?h:null==a||null==(w=a.openedGroup)?void 0:w.props},openedWindows:v1(a.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[gn(e,t)],props:n,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,v8({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:i.name})];case 10:if(E.sent())return h_.J_.setState(v0(vJ({},a),{openedGroup:{groupName:l.name,props:null!=(S=null!=r?r:null==a||null==(j=a.openedGroup)?void 0:j.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[gn(e,t)],props:n,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return h_.J_.setState(v0(vJ({},a),{openedGroup:{groupName:l.name,props:null!=(O=null!=r?r:null==a||null==(k=a.openedGroup)?void 0:k.props)?O:null},openedWindows:v1(a.openedWindows).concat([{windowName:s,openedWorkspaces:[gn(e,t)],props:n,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function v6(e,t){return null==e||null==t||(0,vY.b)(e,t)}function v8(e){function t(e,t){for(var n=[],r=e.openedWorkspaces.length-1;r>=0;r--){var a=e.openedWorkspaces[r];if(a.hasUnsavedChanges&&n.push(a),t&&a.workspaceName===t)break}return n}var n=h_.J_.getState(),r=n.openedWindows,a=n.workspaceTitleByWorkspaceName,i=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":i=r.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=r.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=r.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=r.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=hZ("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:i.map(function(e){return a[e.workspaceName]})})})}var v9={setWindowMaximized:function(e,t,n){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),a=v1(e.openedWindows),i=v0(vJ({},a[r]),{maximized:n});return a[r]=i,v0(vJ({},e),{openedWindows:a})},hideWindow:function(e){return v0(vJ({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),r=e.openedWindows[n],a=v1(e.openedWindows.filter(function(e,t){return t!==n})).concat([r]);return v0(vJ({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var n=(0,h_.YX)(t);if(n<0)return e;var r=vJ({},e.openedWindows[n]),a=r.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),i=v1(e.openedWindows);r.openedWorkspaces=r.openedWorkspaces.slice(0,a);var o=e.isMostRecentlyOpenedWindowHidden;if(0===r.openedWorkspaces.length){var s=n===e.openedWindows.length-1;i.splice(n,1),s&&i.length>0&&(o=!1)}else i[n]=r;return v0(vJ({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,n,r){var a=e.registeredWorkspacesByName[n];if(!a)throw Error('No workspace named "'.concat(n,'" 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(n," 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(n," 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(n," 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?v0(vJ({},e),{openedWorkspaces:v1(u).concat([gn(n,r)])}):e})}},setHasUnsavedChanges:function(e,t,n){var r=(0,h_.YX)(t);if(r<0)return e;var a=vJ({},e.openedWindows[r]),i=a.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(i<0)return e;a.openedWorkspaces[i]=v0(vJ({},a.openedWorkspaces[i]),{hasUnsavedChanges:n});var o=v1(e.openedWindows);return o[r]=a,v0(vJ({},e),{openedWindows:o})},setWorkspaceTitle:function(e,t,n){var r=vJ({},e.workspaceTitleByWorkspaceName);return null===n?delete r[t]:r[t]=n,v0(vJ({},e),{workspaceTitleByWorkspaceName:r})}};function v7(){return(0,S.useStoreWithActions)(h_.J_,v9)}var ge=function(){return(0,g.useContext)(vC.i)},gt=function(){return Object.keys(h_.J_.getState().registeredWorkspacesByName)};function gn(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,vq.A)()}}let gr={workspaceOuterContainer:"bPVpyfZzXGTGRy6q-9pUCQ==",narrowWorkspace:"kSYS7aTPRggp+MU8vlcg9Q==",widerWorkspace:"nW2HBDZ0RgkGRkWQv4sdoQ==",extraWideWorkspace:"em5yAU5C7oWbHDo0sV+3mw==",workspaceMiddleContainer:"Bx1i6z+7q-g19Un039FkIw==",maximized:"Kfygrk5eNBXuECXupuCX8g==",hidden:"RPimX0oediR2hea+lS-OuQ==",workspaceInnerContainer:"_5zxptoWhQKImthth5lAP+g==",workspaceSpacer:"E+9820x1sb5UGVFe-CBnKA==",loader:"vmBQnPcRkkl1-BXrxfe78A==",hiddenExtraWorkspace:"qkbMGOnFdM1xyc3yNGcang==",header:"IZ-2+-SpwQ-zVx81DihBdw==",headerButtons:"_81a2NYhmPVTD24yRK8d2FQ==",workspaceContent:"eetPy90L7DgJzpdTBFH3sg==",overlayHeaderSpacer:"ruc6rYzwbrMxADrXzvYMPA==",isActionMenuOpened:"XgCkc1lLTADQAwD3tG9jVA==",showActionMenu:"sHRt1Fx7e+48j2yyo8ktzg==",marginWorkspaceContent:"TN+S+hiol289+iSd7tDjwA==",workspaceContainerWithActionMenu:"xLg8emf8GoZJo-KsUJV1QQ==",workspaceFixedContainer:"W9cgZ7vfCSiTpKs+aaYksQ==",workspaceContainerWithoutActionMenu:"fRrxdLWEtrSuNfqGjVjqVA=="};function ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gi=function(e){var t,n,r,a,i=e.title,o=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,S.useLayoutType)(),c=v7(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,h=c.openedWindows,m=c.openedGroup,y=c.registeredGroupsByName,b=c.registeredWindowsByName,x=c.registeredWorkspacesByName,j=c.workspaceTitleByWorkspaceName,O=c.setWorkspaceTitle,k=c.isMostRecentlyOpenedWindowHidden,E=ge(),A=E.workspaceName,D=E.isRootWorkspace,P=E.closeWorkspace,T=E.showActionMenu,C=(0,h_.YX)(A),N=h[C],M=null==N?void 0:N.openedWorkspaces.find(function(e){return e.workspaceName===A});if((0,g.useEffect)(function(){(null==M?void 0:M.hasUnsavedChanges)!=l&&p(A,null!=l&&l)},[null==M?void 0:M.hasUnsavedChanges,l,A,p]),(0,g.useEffect)(function(){j[A]!==i&&O(A,i)},[j,A,i,O]),C<0||null==m||null==M)return null;var R=y[m.groupName];if(!R)throw Error("Cannot find registered workspace group ".concat(m.groupName));var I=x[A].window,L=b[I];if(!L)throw Error("Cannot find registered workspace window ".concat(I));var F=L.icon,B=L.canMaximize,W="closable"===R.persistence,U=!!F&&!W,$=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=C<h.length-1||k;return(0,v.jsxs)("div",{className:w()(gr.workspaceOuterContainer,(ga(n={},gr.narrowWorkspace,"narrow"===H),ga(n,gr.widerWorkspace,"wider"===H),ga(n,gr.extraWideWorkspace,"extra-wide"===H),ga(n,gr.isActionMenuOpened,G),n)),children:[(0,v.jsx)("div",{className:w()(gr.workspaceSpacer,ga({},gr.hidden,K))}),(0,v.jsx)("div",{className:w()(gr.workspaceMiddleContainer,(ga(r={},gr.maximized,$),ga(r,gr.hidden,K),ga(r,gr.isRootWorkspace,D),ga(r,gr.showActionMenu,T),r)),children:(0,v.jsxs)("div",{className:w()(gr.workspaceInnerContainer,(ga(a={},gr.maximized,$),ga(a,gr.hidden,K),ga(a,gr.isRootWorkspace,D),a)),children:[(0,v.jsxs)(V.Header,{"aria-label":(0,z.V)("workspaceHeader"),className:gr.header,children:[(0,v.jsx)(V.HeaderName,{prefix:"",children:i}),(0,v.jsx)("div",{className:gr.overlayHeaderSpacer}),(0,v.jsx)(V.HeaderGlobalBar,{className:gr.headerButtons,children:(0,S.isDesktop)(u)?(0,v.jsxs)(v.Fragment,{children:[(B||$)&&(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":$?(0,z.V)("minimize"):(0,z.V)("maximize"),onClick:function(){return d(I,!$)},children:$?(0,v.jsx)(vb,{}):(0,v.jsx)(vx.hz,{})}),U&&(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("hide"),onClick:function(){return f()},children:(0,v.jsx)(oa,{})}),!W&&(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("close"),onClick:function(){return P({closeWindow:!0})},children:(0,v.jsx)(ox,{})})]}):(0,v.jsxs)(v.Fragment,{children:[U&&(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("hide"),onClick:function(){return f()},children:(0,v.jsx)(vk,{})}),(0,v.jsx)(V.HeaderGlobalAction,{"aria-label":(0,z.V)("close"),onClick:function(){W?v4():P({closeWindow:!0})},children:(0,v.jsx)(ox,{})})]})})]}),(0,v.jsx)("div",{className:w()(gr.workspaceContent),children:o})]})})]})};let go="jc6--ve4CL-z756RWjy-Gg==",gs="whLL8QyjyxlJqTQo67X7BQ==",gl="fbyFm5PlSWWUnG9aPE8kTg==",gu="+aVpzvvOae5n83hGlMESXg==";function gc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function gd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){var t=e.getIcon,n=e.hasUnsavedChanges,r=e.tagContent;return(0,v.jsxs)(v.Fragment,{children:[t({size:16}),n?(0,v.jsx)("span",{className:"sRkvSBatkOj+HMw7m2i81Q==",children:"!"}):(0,v.jsx)("span",{className:"XMH0DAK2HUw4W4tYCVa-Fg==",children:r})]})}var gp=function(e){var t,n,r,a=e.icon,i=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,S.useLayoutType)(),c=v7(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,h=c.isMostRecentlyOpenedWindowHidden,m=(0,g.useContext)(S.ComponentContext).extension,y=d.findIndex(function(e){return e.windowName===(null==m?void 0:m.extensionId)}),b=d[y],x=null!=b,j=x&&(y<d.length-1||h),O=x&&!j,k=null!=(t=null==b?void 0:b.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,E=function(){var e;return(e=function(){var e,t;return function(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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:if(!x)return[3,1];return j?f(b.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:n.sent()&&(t=s.workspaceName,v5(t,s.workspaceProps,s.windowProps)),n.label=3;case 3:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){gc(i,r,a,o,s,"next",e)}function s(e){gc(i,r,a,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,v.jsxs)(V.Button,{className:w()(go,(gd(n={},gl,x&&!O),gd(n,gu,O),n)),iconDescription:i,kind:"ghost",onClick:E,role:"button",tabIndex:0,size:"md",children:[(0,v.jsx)("span",{className:gs,children:(0,v.jsx)(gf,{hasUnsavedChanges:k,getIcon:a,tagContent:o})}),(0,v.jsx)("span",{children:i})]}):(0,v.jsx)(V.IconButton,{align:"left","aria-label":i,className:w()(go,(gd(r={},gl,x&&!O),gd(r,gu,O),r)),enterDelayMs:300,kind:"ghost",label:i,onClick:E,size:"md",children:(0,v.jsx)("div",{className:gs,children:(0,v.jsx)(gf,{hasUnsavedChanges:k,getIcon:a,tagContent:o})})})},gh=n(3400);let gm="_6Gke0iocK8-7xF6UDXtjtQ==";function gy(e){var t=e.workspaceGroup,n=e.groupProps,r=(0,S.useLayoutType)(),a=t.persistence;return(0,v.jsx)("aside",{className:"T2lMV3y-c2DH29-1sQdY7g==",children:(0,v.jsxs)("div",{className:gm,children:["closable"==a&&(0,S.isDesktop)(r)&&(0,v.jsx)(V.IconButton,{align:"left",onClick:function(){return v4()},label:(0,z.V)("close"),kind:"ghost",children:(0,v.jsx)(ox,{})}),(0,v.jsx)(S.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,v.jsx)(S.ExtensionSlot,{className:gm,name:t.name,state:{groupProps:n}})})]})})}var gv=n(8148);function gg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gb(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function gx(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){gb(i,r,a,o,s,"next",e)}function s(e){gb(i,r,a,o,s,"throw",e)}o(void 0)})}}function gw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gS(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var gj=function(e){var t=e.lifeCycle,n=e.openedWorkspace,r=e.openedWindow,a=e.isRootWorkspace,i=e.isLeafWorkspace,o=e.showActionMenu,s=v7(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,g.useMemo)(function(){return n&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gx(function(){var t,a,i,o,s,l;return gS(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,v8({reason:"CLOSE_WINDOW",explicit:!0,windowName:r.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(r.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=o)return[3,5];return[4,v8({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:r.windowName,workspaceName:n.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(n.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return gx(function(){var a,i,o;return gS(this,function(s){switch(s.label){case 0:if(a=n.workspaceName,-1===(o=(i=r.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,v8({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:r.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:n.workspaceName,workspaceProps:n.props,windowProps:r.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:a,isLeafWorkspace:i,windowName:r.windowName,showActionMenu:o}},[n,u,l,r]);if(!t){var f,p,h=h_.J_.getState().registeredWorkspacesByName[n.workspaceName],m=h&&h.window?h.window:void 0,y=h_.J_.getState().registeredWindowsByName,b=m?y[m]:void 0,x=b&&b.width?b.width:"narrow",S=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:w()(gr.workspaceOuterContainer,(gw(f={},gr.narrowWorkspace,"narrow"===x),gw(f,gr.widerWorkspace,"wider"===x),gw(f,gr.extraWideWorkspace,"extra-wide"===x),gw(f,gr.isActionMenuOpened,S),f)),children:[(0,v.jsx)("div",{className:gr.workspaceSpacer}),(0,v.jsx)("div",{className:w()(gr.workspaceMiddleContainer,(gw(p={},gr.isRootWorkspace,a),gw(p,gr.showActionMenu,o),p)),children:(0,v.jsx)("div",{className:w()(gr.workspaceInnerContainer,gw({},gr.isRootWorkspace,a)),children:(0,v.jsx)(V.InlineLoading,{className:gr.loader,description:"".concat((0,z.V)("loading")," ...")})})})]})}return(0,v.jsx)(vB,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){gw(e,t,n[t])})}return e}({config:t,mountParcel:hR.mountRootParcel},d),n.workspaceName)};let gO=function(e){var t,n=e.openedWindow,r=e.showActionMenu,a=n.openedWorkspaces,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)())||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return gg(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 gg(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=h_.J_.getState().registeredWorkspacesByName;return(0,g.useEffect)(function(){Promise.all(a.map(function(e){var t=l[e.workspaceName],n=t.moduleName,r=t.component;return(0,gv.o)(n,r)})).then(s)},[a]),(0,v.jsx)(v.Fragment,{children:a.map(function(e,t){return(0,v.jsx)(gj,{openedWorkspace:e,openedWindow:n,lifeCycle:o&&o[t]?o[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===a.length-1,showActionMenu:r},e.uuid)})})};function gk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gE(e){e&&(0,ms.createRoot)(e).render((0,v.jsx)(gA,{}))}function gA(){var e,t=v7(),n=t.openedGroup,r=t.openedWindows,a=t.registeredGroupsByName,i=t.registeredWindowsByName;if((0,g.useEffect)(function(){return(0,gh.mI)("before-page-changed",function(e){var t=e.newPage,r=e.cancelNavigation,i=e.oldUrl,o=e.newUrl;if(n){if(t)return void r(v4().then(function(e){return!e}));var s=a[n.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,n){try{var r=new URL(t,window.location.origin).pathname,a=new URL(n,window.location.origin).pathname,i=new RegExp(e),o=r.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)&&r(v4().then(function(e){return!e}))}})},[n,a]),!n)return null;var o=a[n.groupName],s=r.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 n,r;return(null!=(n=e.order)?n:Number.MAX_VALUE)-(null!=(r=t.order)?r:Number.MAX_VALUE)}).length>0;return(0,v.jsxs)("div",{className:w()("_2u2mcnHqn77Jo33H5a1H2g==",(gk(e={},"_7RHYZQ-hEc8EPJUY-c9Hpg==",o.overlay),gk(e,"gvJRdHcF9cqv2qaFk6opjw==",s),e)),children:[(0,v.jsx)("div",{className:"_40ITOKKqqE8nvSQt409qiA==",children:r.map(function(e){return(0,v.jsx)(gO,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,v.jsx)(gy,{workspaceGroup:o,groupProps:n.props})]})}function gD(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function gP(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var gC,gN,gM,gR,gI,g_,gL,gF,gB,gV,gz,gW,gU,g$,gH,gG,gK,gq,gY,gZ,gX,gQ,gJ,g0,g1,g2,g3,g4,g5,g6,g8={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},g9={duration:.5,overwrite:!1,delay:0},g7=2*Math.PI,be=g7/4,bt=0,bn=Math.sqrt,br=Math.cos,ba=Math.sin,bi=function(e){return"string"==typeof e},bo=function(e){return"function"==typeof e},bs=function(e){return"number"==typeof e},bl=function(e){return void 0===e},bu=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},bc=function(e){return!1!==e},bd=function(){return"u">typeof window},bf=function(e){return bo(e)||bi(e)},bp="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},bh=Array.isArray,bm=/random\([^)]+\)/g,by=/,\s*/g,bv=/(?:-?\.?\d|\.)+/gi,bg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,bb=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,bx=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,bw=/[+-]=-?[.\d]+/,bS=/[^,'"\[\]\s]+/gi,bj=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,bO={},bk={},bE=function(e){return(bk=b2(e,bO))&&wK},bA=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},bD=function(e,t){return!t&&console.warn(e)},bP=function(e,t){return e&&(bO[e]=t)&&bk&&(bk[e]=t)||bO},bT=function(){return 0},bC={suppressEvents:!0,isStart:!0,kill:!1},bN={suppressEvents:!0,kill:!1},bM={suppressEvents:!0},bR={},bI=[],b_={},bL={},bF={},bB=30,bV=[],bz="",bW=function(e){var t,n,r=e[0];if(bu(r)||bo(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=bV.length;n--&&!bV[n].targetTest(r););t=bV[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new x7(e[n],t)))||e.splice(n,1);return e},bU=function(e){return e._gsap||bW(xE(e))[0]._gsap},b$=function(e,t,n){return(n=e[t])&&bo(n)?e[t]():bl(n)&&e.getAttribute&&e.getAttribute(t)||n},bH=function(e,t){return(e=e.split(",")).forEach(t)||e},bG=function(e){return Math.round(1e5*e)/1e5||0},bK=function(e){return Math.round(1e7*e)/1e7||0},bq=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+r:"-"===n?e-r:"*"===n?e*r:e/r},bY=function(e,t){for(var n=t.length,r=0;0>e.indexOf(t[r])&&++r<n;);return r<n},bZ=function(){var e,t,n=bI.length,r=bI.slice(0);for(e=0,b_={},bI.length=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},bX=function(e){return!!(e._initted||e._startAt||e.add)},bQ=function(e,t,n,r){bI.length&&!gX&&bZ(),e.render(t,n,r||!!(gX&&t<0&&bX(e))),bI.length&&!gX&&bZ()},bJ=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(bS).length<2?t:bi(e)?e.trim():e},b0=function(e){return e},b1=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},b2=function(e,t){for(var n in t)e[n]=t[n];return e},b3=function e(t,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=bu(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},b4=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},b5=function(e){var t,n=e.parent||gJ,r=e.keyframes?(t=bh(e.keyframes),function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}):b1;if(bc(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},b6=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},b8=function(e,t,n,r,a){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i,o=e[r];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[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},b9=function(e,t,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a=t._prev,i=t._next;a?a._next=i:e[n]===t&&(e[n]=i),i?i._prev=a:e[r]===t&&(e[r]=a),t._next=t._prev=t.parent=null},b7=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},xe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},xt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},xn=function(e,t,n,r){return e._startAt&&(gX?e._startAt.revert(bN):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},xr=function(e){return e._repeat?xa(e._tTime,e=e.duration()+e._rDelay)*e:0},xa=function(e,t){var n=Math.floor(e=bK(e/t));return e&&n===e?n-1:n},xi=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},xo=function(e){return e._end=bK(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},xs=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=bK(n._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),xo(e),n._dirty||xe(n,e)),e},xl=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=xi(e.rawTime(),t),(!t._dur||xS(0,t.totalDuration(),n)-t._tTime>1e-8)&&t.render(n,!0)),xe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},xu=function(e,t,n,r){return t.parent&&b7(t),t._start=bK((bs(n)?n:n||e!==gJ?xb(e,n,t):e._time)+t._delay),t._end=bK(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),b8(e,t,"_first","_last",e._sort?"_start":0),xp(t)||(e._recent=t),r||xl(e,t),e._ts<0&&xs(e,e._tTime),e},xc=function(e,t){return(bO.ScrollTrigger||bA("scrollTrigger",t))&&bO.ScrollTrigger.create(t,e)},xd=function(e,t,n,r,a){return(wf(e,t,a),e._initted)?!n&&e._pt&&!gX&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&g4!==xY.frame?(bI.push(e),e._lazy=[a,r],1):void 0:1},xf=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(0>n.rawTime()||e(n))},xp=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xh=function(e,t,n,r){var a,i,o,s=e.ratio,l=t<0||!t&&(!e._start&&xf(e)&&!(!e._initted&&xp(e))||(e._ts<0||e._dp._ts<0)&&!xp(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(i=xa(c=xS(0,e._tDur,t),u),e._yoyo&&1&i&&(l=1-l),i!==xa(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||gX||r||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xd(e,t,r,n,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!n,n||(n=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&&xn(e,t,n,!0),e._onUpdate&&!n&&xL(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&xL(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&b7(e,1),n||gX||(xL(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xm=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<t)return r;r=r._prev}},xy=function(e,t,n,r){var a=e._repeat,i=bK(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=i/e._dur),e._dur=i,e._tDur=a?a<0?1e10:bK(i*(a+1)+e._rDelay*a):i,o>0&&!r&&xs(e,e._tTime=e._tDur*o),e.parent&&xo(e),n||xe(e.parent,e),e},xv=function(e){return gD(e,wt)?xe(e):xy(e,e._dur)},xg={_start:0,endTime:bT,totalDuration:bT},xb=function e(t,n,r){var a,i,o,s=t.labels,l=t._recent||xg,u=t.duration()>=1e8?l.endTime(!1):t._dur;return bi(n)&&(isNaN(n)||n in s)?(i=n.charAt(0),o="%"===n.substr(-1),a=n.indexOf("="),"<"===i||">"===i)?(a>=0&&(n=n.replace(/=/,"")),("<"===i?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(a<0?l:r).totalDuration()/100:1)):a<0?(n in s||(s[n]=u),s[n]):(i=parseFloat(n.charAt(a-1)+n.substr(a+1)),o&&r&&(i=i/100*(bh(r)?r[0]:r).totalDuration()),a>1?e(t,n.substr(0,a-1),r)+i:u+i):null==n?u:+n},xx=function(e,t,n){var r,a,i=bs(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o];if(i&&(s.duration=t[1]),s.parent=n,e){for(r=s,a=n;a&&!("immediateRender"in r);)r=a.vars.defaults||{},a=bc(a.vars.inherit)&&a.parent;s.immediateRender=bc(r.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new wb(t[0],s,t[o+1])},xw=function(e,t){return e||0===e?t(e):t},xS=function(e,t,n){return n<e?e:n>t?t:n},xj=function(e,t){return bi(e)&&(t=bj.exec(e))?t[1]:""},xO=[].slice,xk=function(e,t){return e&&bu(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&bu(e[0]))&&!e.nodeType&&e!==g0},xE=function(e,t,n){var r;return gQ&&!t&&gQ.selector?gQ.selector(e):bi(e)&&!n&&(g1||!xZ())?xO.call((t||g2).querySelectorAll(e),0):bh(e)?(void 0===r&&(r=[]),e.forEach(function(e){var t;return bi(e)&&!n||xk(e,1)?(t=r).push.apply(t,xE(e)):r.push(e)})||r):xk(e)?xO.call(e,0):e?[e]:[]},xA=function(e){return e=xE(e)[0]||bD("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return xE(t,n.querySelectorAll?n:n===e?bD("Invalid scope")||g2.createElement("div"):e)}},xD=function(e){return e.sort(function(){return .5-Math.random()})},xP=function(e){if(bo(e))return e;var t=bu(e)?e:{each:e},n=x4(t.ease),r=t.from||0,a=parseFloat(t.base)||0,i={},o=r>0&&r<1,s=isNaN(r)||o,l=t.axis,u=r,c=r;return bi(r)?u=c=({center:.5,edges:.5,end:1})[r]||0:!o&&s&&(u=r[0],c=r[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:r%x,p=1e8===x?0:s?w*c/x-.5:r/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):bn(h*h+m*m),y>g&&(g=y),y<b&&(b=y);"random"===r&&xD(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"===r?-1:1),S.b=w<0?a-w:a,S.u=xj(t.amount||t.each)||0,n=n&&w<0?x3(n):n}return w=(S[e]-S.min)/S.max||0,bK(S.b+(n?n(w):w)*S.v)+S.u}},xT=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=bK(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(bs(n)?0:xj(n))}},xC=function(e,t){var n,r,a=bh(e);return!a&&bu(e)&&(n=a=e.radius||1e8,e.values?(r=!bs((e=xE(e.values))[0]))&&(n*=n):e=xT(e.increment)),xw(t,a?bo(e)?function(t){return Math.abs((r=e(t))-t)<=n?r:t}:function(t){for(var a,i,o=parseFloat(r?t.x:t),s=parseFloat(r?t.y:0),l=1e8,u=0,c=e.length;c--;)(a=r?(a=e[c].x-o)*a+(i=e[c].y-s)*i:Math.abs(e[c]-o))<l&&(l=a,u=c);return u=!n||l<=n?e[u]:t,r||u===t||bs(t)?u:u+xj(t)}:xT(e))},xN=function(e,t,n,r){return xw(bh(e)?!t:!0===n?(n=0,!1):!r,function(){return bh(e)?e[~~(Math.random()*e.length)]:(r=(n=n||1e-5)<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r})},xM=function(e,t,n){return xw(n,function(n){return e[~~t(n)]})},xR=function(e){return e.replace(bm,function(e){var t=e.indexOf("[")+1,n=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(by);return xN(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},xI=function(e,t,n,r,a){var i=t-e,o=r-n;return xw(a,function(t){return n+((t-e)/i*o||0)})},x_=function(e,t,n){var r,a,i,o=e.labels,s=1e8;for(r in o)(a=o[r]-t)<0==!!n&&a&&s>(a=Math.abs(a))&&(i=r,s=a);return i},xL=function(e,t,n){var r,a,i,o=e.vars,s=o[t],l=gQ,u=e._ctx;if(s)return r=o[t+"Params"],a=o.callbackScope||e,n&&bI.length&&bZ(),u&&(gQ=u),i=r?s.apply(a,r):s.call(a),gQ=l,i},xF=function(e){return b7(e),e.scrollTrigger&&e.scrollTrigger.kill(!!gX),1>e.progress()&&xL(e,"onInterrupt"),e},xB=[],xV=function(e){if(e)if(e=!e.name&&e.default||e,bd()||e.headless){var t=e.name,n=bo(e),r=t&&!n&&e.init?function(){this._props=[]}:e,a={init:bT,render:wD,add:wu,kill:wT,modifier:wP,rawVars:0},i={targetTest:0,get:0,getSetter:wO,aliases:{},register:0};if(xZ(),e!==r){if(bL[t])return;b1(r,b1(b4(e,a),i)),b2(r.prototype,b2(a,b4(e,i))),bL[r.prop=t]=r,e.targetTest&&(bV.push(r),bR[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}bP(t,r),e.register&&e.register(wK,r,wM)}else xB.push(e)},xz={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]},xW=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*255+.5|0},xU=function(e,t,n){var r,a,i,o,s,l,u,c,d,f,p=e?bs(e)?[e>>16,e>>8&255,255&e]:0:xz.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xz[e])p=xz[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),e="#"+r+r+(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(bv),t){if(~e.indexOf("="))return p=e.match(bg),n&&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,r=2*l-a,p.length>3&&(p[3]*=1),p[0]=xW(o+1/3,r,a),p[1]=xW(o,r,a),p[2]=xW(o-1/3,r,a);else p=e.match(bv)||xz.transparent;p=p.map(Number)}return t&&!f&&(r=p[0]/255,l=((u=Math.max(r,a=p[1]/255,i=p[2]/255))+(c=Math.min(r,a,i)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===r?(a-i)/d+6*(a<i):u===a?(i-r)/d+2:(r-a)/d+4)*60),p[0]=~~(o+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),n&&p.length<4&&(p[3]=1),p},x$=function(e){var t=[],n=[],r=-1;return e.split(xG).forEach(function(e){var a=e.match(bb)||[];t.push.apply(t,a),n.push(r+=a.length+1)}),t.c=n,t},xH=function(e,t,n){var r,a,i,o,s="",l=(e+s).match(xG),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=xU(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),n&&(i=x$(e),(r=n.c).join(s)!==i.c.join(s)))for(o=(a=e.replace(xG,"1").split(bb)).length-1;c<o;c++)s+=a[c]+(~r.indexOf(c)?l.shift()||u+"0,0,0,0)":(i.length?i:l.length?l:n).shift());if(!a)for(o=(a=e.split(xG)).length-1;c<o;c++)s+=a[c]+l[c];return s+a[o]},xG=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xz)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),xK=/hsl[a]?\(/,xq=function(e){var t,n=e.join(" ");if(xG.lastIndex=0,xG.test(n))return t=xK.test(n),e[1]=xH(e[1],t),e[0]=xH(e[0],t,x$(e[1])),!0},xY=(gB=Date.now,gV=500,gz=33,gU=gW=gB(),g$=1e3/240,gH=1e3/240,gG=[],gK=function e(t){var n,r,a,i,o=gB()-gU,s=!0===t;if((o>gV||o<0)&&(gW+=o-gz),gU+=o,((n=(a=gU-gW)-gH)>0||s)&&(i=++g_.frame,gL=a-1e3*g_.time,g_.time=a/=1e3,gH+=n+(n>=g$?4:g$-n),r=1),s||(gM=gR(e)),r)for(gF=0;gF<gG.length;gF++)gG[gF](a,gL,i,t)},g_={time:0,frame:0,tick:function(){gK(!0)},deltaRatio:function(e){return gL/(1e3/(e||60))},wake:function(){g3&&(!g1&&bd()&&(g2=(g0=g1=window).document||{},bO.gsap=wK,(g0.gsapVersions||(g0.gsapVersions=[])).push(wK.version),bE(bk||g0.GreenSockGlobals||!g0.gsap&&g0||{}),xB.forEach(xV)),gI="u">typeof requestAnimationFrame&&requestAnimationFrame,gM&&g_.sleep(),gR=gI||function(e){return setTimeout(e,gH-1e3*g_.time+1|0)},g6=1,gK(2))},sleep:function(){(gI?cancelAnimationFrame:clearTimeout)(gM),g6=0,gR=bT},lagSmoothing:function(e,t){gz=Math.min(t||33,gV=e||1/0)},fps:function(e){g$=1e3/(e||240),gH=1e3*g_.time+g$},add:function(e,t,n){var r=t?function(t,n,a,i){e(t,n,a,i),g_.remove(r)}:e;return g_.remove(e),gG[n?"unshift":"push"](r),xZ(),r},remove:function(e,t){~(t=gG.indexOf(e))&&gG.splice(t,1)&&gF>=t&&gF--},_listeners:gG}),xZ=function(){return!g6&&xY.wake()},xX={},xQ=/^[\d.\-M][\d.\-,\s]/,xJ=/["']/g,x0=function(e){for(var t,n,r,a={},i=e.substr(1,e.length-3).split(":"),o=i[0],s=1,l=i.length;s<l;s++)n=i[s],t=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),a[o]=isNaN(r)?r.replace(xJ,"").trim():+r,o=n.substr(t+1).trim();return a},x1=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",t);return e.substring(t,~r&&r<n?e.indexOf(")",n+1):n)},x2=function(e){var t=(e+"").split("("),n=xX[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[x0(t[1])]:x1(e).split(",").map(bJ)):xX._CE&&xQ.test(e)?xX._CE("",e):n},x3=function(e){return function(t){return 1-e(1-t)}},x4=function(e,t){return e&&(bo(e)?e:xX[e]||x2(e))||t},x5=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var a,i={easeIn:t,easeOut:n,easeInOut:r};return bH(e,function(e){for(var t in xX[e]=bO[e]=i,xX[a=e.toLowerCase()]=n,i)xX[a+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=xX[e+"."+t]=i[t]}),i},x6=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},x8=function e(t,n,r){var a=n>=1?n:1,i=(r||(t?.3:.45))/(n<1?n:1),o=i/g7*(Math.asin(1/a)||0),s=function(e){return 1===e?1:a*Math.pow(2,-10*e)*ba((e-o)*i)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:x6(s);return i=g7/i,l.config=function(n,r){return e(t,n,r)},l},x9=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},a="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:x6(r);return a.config=function(n){return e(t,n)},a};bH("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;x5(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow((1-e)*2,n)/2})}),xX.Linear.easeNone=xX.none=xX.Linear.easeIn,x5("Elastic",x8("in"),x8("out"),x8()),wr=2*(wn=1/2.75),wa=2.5*wn,x5("Bounce",function(e){return 1-wi(1-e)},wi=function(e){return e<wn?7.5625*e*e:e<wr?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<wa?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),x5("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),x5("Circ",function(e){return-(bn(1-e*e)-1)}),x5("Sine",function(e){return 1===e?1:-br(e*be)+1}),x5("Back",x9("in"),x9("out"),x9()),xX.SteppedEase=xX.steps=bO.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,r=e+ +!t,a=+!!t,i=.99999999;return function(e){return((r*xS(0,i,e)|0)+a)*n}}},g9.ease=xX["quad.out"],bH("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return bz+=e+","+e+"Params,"});var x7=function(e,t){this.id=bt++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:b$,this.set=t?t.getSetter:wO},we=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,xy(this,+e.duration,1,1),this.data=e.data,gQ&&(this._ctx=gQ,gQ.data.push(this)),g6||xY.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,xy(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(xZ(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(xs(this,e),!n._dp||n.parent||xl(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:-((n.totalDuration()-n._tTime)/n._ts))&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&xu(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),bQ(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+xr(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)+xr(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?xa(this._tTime,n)+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 n=this.parent&&this._ts?xi(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xS(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),xo(this),xt(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):(xZ(),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=bK(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&xu(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(bc(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?xi(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=bM);var t=gX;return gX=e,bX(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),gX=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xv(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xv(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(xb(this,e),bc(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,bc(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,n=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var a=bo(e)?e:b0,i=function(){var e=t.then;t.then=null,n&&n(),bo(a)&&(a=a(t))&&(a.then||a===t)&&(t.then=e),r(a),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){xF(this)},e}();b1(we.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 wt=function(e){function t(t,n){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=bc(t.sortChildren),gJ&&xu(t.parent||gJ,gP(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&xc(gP(r),t.scrollTrigger),r}gT(t,e);var n=t.prototype;return n.to=function(e,t,n){return xx(0,arguments,this),this},n.from=function(e,t,n){return xx(1,arguments,this),this},n.fromTo=function(e,t,n,r){return xx(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,b5(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new wb(e,t,xb(this,n),1),this},n.call=function(e,t,n){return xu(this,wb.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,a,i,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=i,n.onCompleteParams=o,n.parent=this,new wb(e,n,xb(this,a)),this},n.staggerFrom=function(e,t,n,r,a,i,o){return n.runBackwards=1,b5(n).immediateRender=bc(n.immediateRender),this.staggerTo(e,t,n,r,a,i,o)},n.staggerFromTo=function(e,t,n,r,a,i,o,s){return r.startAt=n,b5(r).immediateRender=bc(r.immediateRender),this.staggerTo(e,t,r,a,i,o,s)},n.render=function(e,t,n){var r,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:bK(e),b=this._zTime<0!=e<0&&(this._initted||!v);if(this!==gJ&&g>y&&e>=0&&(g=y),g!==this._tTime||n||b){if(m!==this._time&&v&&(g+=this._time-m,e+=this._time-m),r=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,n);if(r=bK(g%s),g===y?(o=this._repeat,r=v):((o=~~(f=bK(g/s)))&&o===f&&(r=v,o--),r>v&&(r=v)),f=xa(this._tTime,s),!m&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(r=v-r,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:bK(o*s)),t,!v)._lock=0,this._tTime=g,!t&&this.parent&&xL(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=xm(this,bK(m),bK(r)))&&(g-=r-(r=u._start)),this._tTime=g,this._time=r,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&g&&v&&!t&&!f&&(xL(this,"onStart"),this._tTime!==g))return this;if(r>=m&&e>=0)for(a=this._first;a;){if(i=a._next,(a._act||r>=a._start)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(r-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(r-a._start)*a._ts,t,n),r!==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:r;a;){if(i=a._prev,(a._act||S<=a._end)&&a._ts&&u!==a){if(a.parent!==this)return this.render(e,t,n);if(a.render(a._ts>0?(S-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(S-a._start)*a._ts,t,n||gX&&bX(a)),r!==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(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=d,xo(this),this.render(e,t,n);this._onUpdate&&!t&&xL(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)&&b7(this,1),t||e<0&&!m||!g&&!m&&y||(xL(this,g===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(g<y&&this.timeScale()>0)&&this._prom()))}return this},n.add=function(e,t){var n=this;if(bs(t)||(t=xb(this,t,e)),!gD(e,we)){if(bh(e))return e.forEach(function(e){return n.add(e,t)}),this;if(bi(e))return this.addLabel(e,t);if(!bo(e))return this;e=wb.delayedCall(0,e)}return this!==e?xu(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var a=[],i=this._first;i;)i._start>=r&&(gD(i,wb)?t&&a.push(i):(n&&a.push(i),e&&a.push.apply(a,i.getChildren(!0,t,n)))),i=i._next;return a},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return bi(e)?this.removeLabel(e):bo(e)?this.killTweensOf(e):(e.parent===this&&b9(this,e),e===this._recent&&(this._recent=this._last),xe(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=bK(xY.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=xb(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=wb.delayedCall(0,t||bT,n);return r.data="isPause",this._hasPause=1,xu(this,r,xb(this,e))},n.removePause=function(e){var t=this._first;for(e=xb(this,e);t;)t._start===e&&"isPause"===t.data&&b7(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),a=r.length;a--;)wo!==r[a]&&r[a].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],a=xE(e),i=this._first,o=bs(t);i;)gD(i,wb)?bY(i._targets,a)&&(o?(!wo||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&r.push(i):(n=i.getTweensOf(a,t)).length&&r.push.apply(r,n),i=i._next;return r},n.tweenTo=function(e,t){t=t||{};var n,r=this,a=xb(r,e),i=t,o=i.startAt,s=i.onStart,l=i.onStartParams,u=i.immediateRender,c=wb.to(r,b1({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:t.duration||Math.abs((a-(o&&"time"in o?o.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((a-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==e&&xy(c,e,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,b1({startAt:{time:xb(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),x_(this,xb(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),x_(this,xb(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);var r,a=this._first,i=this.labels;for(e=bK(e);a;)a._start>=n&&(a._start+=e,a._end+=e),a=a._next;if(t)for(r in i)i[r]>=n&&(i[r]+=e);return xe(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),xe(this)},n.totalDuration=function(e){var t,n,r,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(r=this.parent;i;)t=i._prev,i._dirty&&i.totalDuration(),(n=i._start)>o&&this._sort&&i._ts&&!this._lock?(this._lock=1,xu(this,i,n-i._delay,1)._lock=0):o=n,n<0&&i._ts&&(a-=n,(!r&&!this._dp||r&&r.smoothChildTiming)&&(this._start+=bK(n/this._ts),this._time-=n,this._tTime-=n),this.shiftChildren(-n,!1,-Infinity),o=0),i._end>a&&i._ts&&(a=i._end),i=t;xy(this,this===gJ&&this._time>a?this._time:a,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(gJ._ts&&(bQ(gJ,xi(e,gJ)),g4=xY.frame),xY.frame>=bB){bB+=g8.autoSleep||120;var t=gJ._first;if((!t||!t._ts)&&g8.autoSleep&&xY._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||xY.sleep()}}},t}(we);b1(wt.prototype,{_lock:0,_hasPause:0,_forcing:0});var wn,wr,wa,wi,wo,ws,wl=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,h,m=new wM(this._pt,e,t,0,1,wA,null,a),y=0,v=0;for(m.b=n,m.e=r,n+="",r+="",(p=~r.indexOf("random("))&&(r=xR(r)),i&&(i(h=[n,r],e,t),n=h[0],r=h[1]),l=n.match(bx)||[];s=bx.exec(r);)c=s[0],d=r.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)?bq(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=bx.lastIndex);return m.c=y<r.length?r.substring(y,r.length):"",m.fp=o,(bw.test(r)||p)&&(m.e=0),this._pt=m,m},wu=function(e,t,n,r,a,i,o,s,l,u){bo(r)&&(r=r(a||0,e,i));var c,d=e[t],f="get"!==n?n:bo(d)?l?e[t.indexOf("set")||!bo(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=bo(d)?l?wS:ww:wx;if(bi(r)&&(~r.indexOf("random(")&&(r=xR(r)),"="===r.charAt(1)&&((c=bq(f,r)+(xj(f)||0))||0===c)&&(r=c)),!u||f!==r||ws)return isNaN(f*r)||""===r?(d||t in e||bA(t,r),wl.call(this,e,t,f,r,p,s||g8.stringFilter,l)):(c=new wM(this._pt,e,t,+f||0,r-(f||0),"boolean"==typeof d?wE:wk,0,p),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},wc=function(e,t,n,r,a){if(bo(e)&&(e=wy(e,a,t,n,r)),!bu(e)||e.style&&e.nodeType||bh(e)||bp(e))return bi(e)?wy(e,a,t,n,r):e;var i,o={};for(i in e)o[i]=wy(e[i],a,t,n,r);return o},wd=function(e,t,n,r,a,i){var o,s,l,u;if(bL[e]&&!1!==(o=new bL[e]).init(a,o.rawVars?t[e]:wc(t[e],r,a,i,n),n,r,i)&&(n._pt=s=new wM(n._pt,a,e,0,1,o.render,o,0,o.priority),n!==g5))for(l=n._ptLookup[n._targets.indexOf(a)],u=o._props.length;u--;)l[o._props[u]]=s;return o},wf=function e(t,n,r){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,A=t._dur,D=t._startAt,P=t._targets,T=t.parent,C=T&&"nested"===T.data?T.vars.targets:P,N="auto"===t._overwrite&&!gZ,M=t.timeline,R=v.easeReverse||O;if(!M||k&&g||(g="none"),t._ease=x4(g,g9.ease),t._rEase=R&&(x4(R)||t._ease),t._from=!M&&!!v.runBackwards,t._from&&(t.ratio=1),!M||k&&!v.stagger){if(m=(d=P[0]?bU(P[0]).harness:0)&&v[d.prop],a=b4(v,bR),D&&(D._zTime<0&&D.progress(1),n<0&&j&&x&&!E?D.render(-1,!0):D.revert(j&&A?bN:bC),D._lazy=0),b){if(b7(t._startAt=wb.set(P,b1({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!D&&bc(w),startAt:null,delay:0,onUpdate:S&&function(){return xL(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(gX||!x&&!E)&&t._startAt.revert(bN),x&&A&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(j&&A&&!D)if(n&&(x=!1),o=b1({overwrite:!1,data:"isFromStart",lazy:x&&!D&&bc(w),immediateRender:x,stagger:0,parent:T},a),m&&(o[d.prop]=m),b7(t._startAt=wb.set(P,o)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(gX?t._startAt.revert(bN):t._startAt.render(-1,!0)),t._zTime=n,x){if(!n)return}else e(t._startAt,1e-8,1e-8);for(i=0,t._pt=t._ptCache=0,w=A&&bc(w)||w&&!A;i<P.length;i++){if(c=(l=P[i])._gsap||bW(P)[i]._gsap,t._ptLookup[i]=p={},b_[c.id]&&bI.length&&bZ(),h=C===P?i:C.indexOf(l),d&&!1!==(f=new d).init(l,m||a,t,h,C)&&(t._pt=s=new wM(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)bL[o]&&(f=wd(o,a,t,h,l,C))?f.priority&&(u=1):p[o]=s=wu.call(t,l,o,"get",a[o],h,C,0,v.stringFilter);t._op&&t._op[i]&&t.kill(l,t._op[i]),N&&t._pt&&(wo=t,gJ.killTweensOf(l,p,t.globalTime(n)),y=!t.parent,wo=0),t._pt&&w&&(b_[c.id]=1)}u&&wN(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,k&&n<=0&&M.render(1e8,!0,!0)},wp=function(e,t,n,r,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 ws=1,e.vars[t]="+=0",wf(e,o),ws=0,s?bD(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=(r||0===r)&&!a?r:l.s+(r||0)+i*l.c,l.c=n-l.s,u.e&&(u.e=bG(n)+xj(u.e)),u.b&&(u.b=l.s+xj(u.b))},wh=function(e,t){var n,r,a,i,o=e[0]?bU(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(r in n=b2({},t),s)if(r in n)for(a=(i=s[r].split(",")).length;a--;)n[i[a]]=n[r];return n},wm=function(e,t,n,r){var a,i,o=t.ease||r||"power1.inOut";if(bh(t))i=n[e]||(n[e]=[]),t.forEach(function(e,n){return i.push({t:n/(t.length-1)*100,v:e,e:o})});else for(a in t)i=n[a]||(n[a]=[]),"ease"===a||i.push({t:parseFloat(e),v:t[a],e:o})},wy=function(e,t,n,r,a){return bo(e)?e.call(t,n,r,a):bi(e)&&~e.indexOf("random(")?xR(e):e},wv=bz+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",wg={};bH(wv+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return wg[e]=1});var wb=function(e){function t(t,n,r,a){"number"==typeof n&&(r.duration=n,n=r,r=null);var i,o,s,l,u,c,d,f,p=e.call(this,a?n:b5(n))||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=n.parent||gJ,O=(bh(t)||bp(t)?bs(t[0]):"length"in n)?[t]:xE(t);if(p._targets=O.length?bW(O):bD("GSAP target "+t+" not found. https://gsap.com",!g8.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,x||g||bf(m)||bf(y)){var k=(n=p.vars).easeReverse||n.yoyoEase;if((i=p.timeline=new wt({data:"nested",defaults:w||{},targets:j&&"nested"===j.data?j.vars.targets:O})).kill(),i.parent=i._dp=gP(p),i._start=0,g||bf(m)||bf(y)){if(l=O.length,d=g&&xP(g),bu(g))for(u in g)~wv.indexOf(u)&&(f||(f={}),f[u]=g[u]);for(o=0;o<l;o++)(s=b4(n,wg)).stagger=0,k&&(s.easeReverse=k),f&&b2(s,f),c=O[o],s.duration=+wy(m,gP(p),o,c,O),s.delay=(+wy(y,gP(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=xX.none;i.duration()?m=y=0:p.timeline=0}else if(x){b5(b1(i.vars.defaults,{ease:"none"})),i._ease=x4(x.ease||n.ease||"none");var E,A,D,P=0;if(bh(x))x.forEach(function(e){return i.to(O,e,">")}),i.duration();else{for(u in s={},x)"ease"===u||"easeEach"===u||wm(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}),P=0;o<E.length;o++)(D={ease:(A=E[o]).e,duration:(A.t-(o?E[o-1].t:0))/100*m})[u]=A.v,i.to(O,D,P),P+=D.duration;i.duration()<m&&i.to({},{duration:m-i.duration()})}}m||p.duration(m=i.duration())}else p.timeline=0;return!0!==b||gZ||(wo=gP(p),gJ.killTweensOf(O),wo=0),xu(j,gP(p),r),n.reversed&&p.reverse(),n.paused&&p.paused(!0),(v||!m&&!x&&p._start===bK(j._time)&&bc(v)&&function e(t){return!t||t._ts&&e(t.parent)}(gP(p))&&"nested"!==j.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&xc(gP(p),S),p}gT(t,e);var n=t.prototype;return n.render=function(e,t,n){var r,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||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(r=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&h)return this.totalTime(100*o+e,t,n);if(r=bK(m%o),m===f?(i=this._repeat,r=p):(i=~~(s=bK(m/o)))&&i===s?(r=p,i--):r>p&&(r=p),(l=this._yoyo&&1&i)&&(r=p-r),s=xa(this._tTime,o),r===d&&!n&&this._initted&&i===s)return this._tTime=m,this;i!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&r!==o&&this._initted&&(this._lock=n=1,this.render(bK(o*i),!0).invalidate()._lock=0)}if(!this._initted){if(xd(this,h?e:r,n,t,m))return this._tTime=0,this;if(d!==this._time&&!(n&&this.vars.repeatRefresh&&i!==s))return this;if(p!==this._dur)return this.render(e,t,n)}if(this._rEase){var y=r<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((r-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(r/p);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!s&&(xL(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(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(h&&xn(this,e,t,n),xL(this,"onUpdate")),this._repeat&&i!==s&&this.vars.onRepeat&&!t&&this.parent&&xL(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(h&&!this._onUpdate&&xn(this,e,!0,!0),(e||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&b7(this,1),!t&&!(h&&!d)&&(m||d||l)&&(xL(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else xh(this,e,t,n);return this},n.targets=function(){return this._targets},n.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)},n.resetTo=function(e,t,n,r,a){g6||xY.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||wf(this,i),wp(this,e,t,n,r,this._ease(i/this._dur),i,a))?this.resetTo(e,t,n,r,1):(xs(this,0),this.parent||b8(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xF(this):this.scrollTrigger&&this.scrollTrigger.kill(!!gX),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,wo&&!0!==wo.vars.overwrite)._first||xF(this),this.parent&&n!==this.timeline.totalDuration()&&xy(this,this._dur*this.timeline._tDur/n,0,1),this}var r,a,i,o,s,l,u,c=this._targets,d=e?xE(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&b6(c,d))return"all"===t&&(this._pt=0),xF(this);for(r=this._op=this._op||[],"all"!==t&&(bi(t)&&(s={},bH(t,function(e){return s[e]=1}),t=s),t=wh(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in a=f[u],"all"===t?(r[u]=t,o=a,i={}):(i=r[u]=r[u]||{},o=t),o)(l=a&&a[s])&&("kill"in l.d&&!0!==l.d.kill(s)||b9(this,l,"_pt"),delete a[s]),"all"!==i&&(i[s]=1);return this._initted&&!this._pt&&p&&xF(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return xx(1,arguments)},t.delayedCall=function(e,n,r,a){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:a})},t.fromTo=function(e,t,n){return xx(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return gJ.killTweensOf(e,t,n)},t}(we);b1(wb.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),bH("staggerTo,staggerFrom,staggerFromTo",function(e){wb[e]=function(){var t=new wt,n=xO.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var wx=function(e,t,n){return e[t]=n},ww=function(e,t,n){return e[t](n)},wS=function(e,t,n,r){return e[t](r.fp,n)},wj=function(e,t,n){return e.setAttribute(t,n)},wO=function(e,t){return bo(e[t])?ww:bl(e[t])&&e.setAttribute?wj:wx},wk=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},wE=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},wA=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},wD=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},wP=function(e,t,n,r){for(var a,i=this._pt;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},wT=function(e){for(var t,n,r=this._pt;r;)n=r._next,(r.p!==e||r.op)&&r.op!==e?r.dep||(t=1):b9(this,r,"_pt"),r=n;return!t},wC=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},wN=function(e){for(var t,n,r,a,i=e._pt;i;){for(t=i._next,n=r;n&&n.pr>i.pr;)n=n._next;(i._prev=n?n._prev:a)?i._prev._next=i:r=i,(i._next=n)?n._prev=i:a=i,i=t}e._pt=r},wM=function(){function e(e,t,n,r,a,i,o,s,l){this.t=t,this.s=r,this.c=a,this.p=n,this.r=i||wk,this.d=o||this,this.set=s||wx,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=wC,this.m=e,this.mt=n,this.tween=t},e}();bH(bz+"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 bR[e]=1}),bO.TweenMax=bO.TweenLite=wb,bO.TimelineLite=bO.TimelineMax=wt,gJ=new wt({sortChildren:!1,defaults:g9,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),g8.stringFilter=xq;var wR=[],wI={},w_=[],wL=0,wF=0,wB=function(e){return(wI[e]||w_).map(function(e){return e()})},wV=function(){var e=Date.now(),t=[];e-wL>2&&(wB("matchMediaInit"),wR.forEach(function(e){var n,r,a,i,o=e.queries,s=e.conditions;for(r in o)(n=g0.matchMedia(o[r]).matches)&&(a=1),n!==s[r]&&(s[r]=n,i=1);i&&(e.revert(),a&&t.push(e))}),wB("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),wL=e,wB("matchMedia"))},wz=function(){function e(e,t){this.selector=t&&xA(t),this.data=[],this._r=[],this.isReverted=!1,this.id=wF++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){bo(e)&&(n=t,t=e,e=bo);var r=this,a=function(){var e,a=gQ,i=r.selector;return a&&a!==r&&a.data.push(r),n&&(r.selector=xA(n)),gQ=r,e=t.apply(r,arguments),bo(e)&&r._r.push(e),gQ=a,r.selector=i,r.isReverted=!1,e};return r.last=a,e===bo?a(r,function(e){return r.add(null,e)}):e?r[e]=a:a},t.ignore=function(e){var t=gQ;gQ=null,e(this),gQ=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return gD(n,e)?t.push.apply(t,n.getTweens()):gD(n,wb)&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e){for(var r,a=n.getTweens(),i=n.data.length;i--;)"isFlip"===(r=n.data[i]).data&&(r.revert(),r.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=n.data.length;i--;)gD(r=n.data[i],wt)?"nested"!==r.data&&(r.scrollTrigger&&r.scrollTrigger.revert(),r.kill()):!gD(r,wb)&&r.revert&&r.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var o=wR.length;o--;)wR[o].id===this.id&&wR.splice(o,1)},t.revert=function(e){this.kill(e||{})},e}(),wW=function(){function e(e){this.contexts=[],this.scope=e,gQ&&gQ.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){bu(e)||(e={matches:e});var r,a,i,o=new wz(0,n||this.scope),s=o.conditions={};for(a in gQ&&!o.selector&&(o.selector=gQ.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===a?i=1:(r=g0.matchMedia(e[a]))&&(0>wR.indexOf(o)&&wR.push(o),(s[a]=r.matches)&&(i=1),r.addListener?r.addListener(wV):r.addEventListener("change",wV));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}(),wU={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return xV(e)})},timeline:function(e){return new wt(e)},getTweensOf:function(e,t){return gJ.getTweensOf(e,t)},getProperty:function(e,t,n,r){bi(e)&&(e=xE(e)[0]);var a=bU(e||{}).get,i=n?b0:bJ;return"native"===n&&(n=""),e?t?i((bL[t]&&bL[t].get||a)(e,t,n,r)):function(t,n,r){return i((bL[t]&&bL[t].get||a)(e,t,n,r))}:e},quickSetter:function(e,t,n){if((e=xE(e)).length>1){var r=e.map(function(e){return wK.quickSetter(e,t,n)}),a=r.length;return function(e){for(var t=a;t--;)r[t](e)}}e=e[0]||{};var i=bL[t],o=bU(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=i?function(t){var r=new i;g5._pt=0,r.init(e,n?t+n:t,g5,0,[e]),r.render(1,r),g5._pt&&wD(1,g5)}:o.set(e,s);return i?l:function(t){return l(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,a=wK.to(e,b1(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),i=function(e,n,r){return a.resetTo(t,e,n,r)};return i.tween=a,i},isTweening:function(e){return gJ.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=x4(e.ease,g9.ease)),b3(g9,e||{})},config:function(e){return b3(g8,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,a=e.defaults,i=e.extendTimeline;(r||"").split(",").forEach(function(e){return e&&!bL[e]&&!bO[e]&&bD(t+" effect requires "+e+" plugin.")}),bF[t]=function(e,t,r){return n(xE(e),b1(t||{},a),r)},i&&(wt.prototype[t]=function(e,n,r){return this.add(bF[t](e,bu(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){xX[e]=x4(t)},parseEase:function(e,t){return arguments.length?x4(e,t):xX},getById:function(e){return gJ.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,a=new wt(e);for(a.smoothChildTiming=bc(e.smoothChildTiming),gJ.remove(a),a._dp=0,a._time=a._tTime=gJ._time,n=gJ._first;n;)r=n._next,(t||!(!n._dur&&gD(n,wb)&&n.vars.onComplete===n._targets[0]))&&xu(a,n,n._start-n._delay),n=r;return xu(gJ,a,0),a},context:function(e,t){return e?new wz(e,t):gQ},matchMedia:function(e){return new wW(e)},matchMediaRefresh:function(){return wR.forEach(function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()})||wV()},addEventListener:function(e,t){var n=wI[e]||(wI[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=wI[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var a=n-t;return bh(t)?xM(t,e(0,t.length),n):xw(r,function(e){return(a+(e-t)%a)%a+t})},wrapYoyo:function e(t,n,r){var a=n-t,i=2*a;return bh(t)?xM(t,e(0,t.length-1),n):xw(r,function(e){return e=(i+(e-t)%i)%i||0,t+(e>a?i-e:e)})},distribute:xP,random:xN,snap:xC,normalize:function(e,t,n){return xI(e,t,0,1,n)},getUnit:xj,clamp:function(e,t,n){return xw(n,function(n){return xS(e,t,n)})},splitColor:xU,toArray:xE,selector:xA,mapRange:xI,pipe:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||xj(n))}},interpolate:function e(t,n,r,a){var i=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!i){var o,s,l,u,c,d=bi(t),f={};if(!0===r&&(a=1)&&(r=null),d)t={p:t},n={p:n};else if(bh(t)&&!bh(n)){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)},r=n}else a||(t=b2(bh(t)?[]:{},t));if(!l){for(o in n)wu.call(f,t,o,"get",n[o]);i=function(e){return wD(e,f)||(d?t.p:t)}}}return xw(r,i)},shuffle:xD},install:bE,effects:bF,ticker:xY,updateRoot:wt.updateRoot,plugins:bL,globalTimeline:gJ,core:{PropTween:wM,globals:bP,Tween:wb,Timeline:wt,Animation:we,getCache:bU,_removeLinkedListItem:b9,reverting:function(){return gX},context:function(e){return e&&gQ&&(gQ.data.push(e),e._ctx=gQ),gQ},suppressOverwrites:function(e){return gZ=e}}};bH("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return wU[e]=wb[e]}),xY.add(wt.updateRoot),g5=wU.to({},{duration:0});var w$=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},wH=function(e,t){var n,r,a,i=e._targets;for(n in t)for(r=i.length;r--;)(a=e._ptLookup[r][n])&&(a=a.d)&&(a._pt&&(a=w$(a,n)),a&&a.modifier&&a.modifier(t[n],e,i[r],n))},wG=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,a;if(bi(n)&&(r={},bH(n,function(e){return r[e]=1}),n=r),t){for(a in r={},n)r[a]=t(n[a]);n=r}wH(e,n)}}}},wK=wU.registerPlugin({name:"attr",init:function(e,t,n,r,a){var i,o,s;for(i in this.tween=n,t)s=e.getAttribute(i)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[i],r,a,0,0,i)).op=i,o.b=s,this._props.push(i)},render:function(e,t){for(var n=t._pt;n;)gX?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},wG("roundProps",xT),wG("modifiers"),wG("snap",xC))||wU;function wq(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}wb.version=wt.version=wK.version="3.15.0",g3=1,bd()&&xZ(),xX.Power0,xX.Power1,xX.Power2,xX.Power3,xX.Power4,xX.Linear,xX.Quad,xX.Cubic,xX.Quart,xX.Quint,xX.Strong,xX.Elastic,xX.Back,xX.SteppedEase,xX.Bounce,xX.Sine,xX.Expo,xX.Circ;var wY,wZ,wX,wQ,wJ,w0,w1,w2={},w3=180/Math.PI,w4=Math.PI/180,w5=Math.atan2,w6=/([A-Z])/g,w8=/(left|right|width|margin|padding|x)/i,w9=/[\s,\(]\S/,w7={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Se=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},St=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)},Sn=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)},Sr=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)},Sa=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Si=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},So=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},Ss=function(e,t,n){return e.style[t]=n},Sl=function(e,t,n){return e.style.setProperty(t,n)},Su=function(e,t,n){return e._gsap[t]=n},Sc=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Sd=function(e,t,n,r,a){var i=e._gsap;i.scaleX=i.scaleY=n,i.renderTransform(a,i)},Sf=function(e,t,n,r,a){var i=e._gsap;i[t]=n,i.renderTransform(a,i)},Sp="transform",Sh=Sp+"Origin",Sm=function e(t,n){var r=this,a=this.target,i=a.style,o=a._gsap;if(t in w2&&i){if(this.tfm=this.tfm||{},"transform"===t)return w7.transform.split(",").forEach(function(t){return e.call(r,t,n)});if(~(t=w7[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=SM(a,e)}):this.tfm[t]=o.x?o[t]:SM(a,t),t===Sh&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(Sp)>=0)return;o.svg&&(this.svgo=a.getAttribute("data-svg-origin"),this.props.push(Sh,n,"")),t=Sp}(i||n)&&this.props.push(t,n,i[t])},Sy=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Sv=function(){var e,t,n=this.props,r=this.target,a=r.style,i=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?a[n[e]]=n[e+2]:a.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(w6,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)i[t]=this.tfm[t];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=w0())&&e.isStart||a[Sp]||(Sy(a),i.zOrigin&&a[Sh]&&(a[Sh]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Sg=function(e,t){var n={target:e,props:[],revert:Sv,save:Sm};return e._gsap||wK.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},Sb=function(e,t){var n=wY.createElementNS?wY.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):wY.createElement(e);return n&&n.style?n:wY.createElement(e)},Sx=function e(t,n,r){var a=getComputedStyle(t);return a[n]||a.getPropertyValue(n.replace(w6,"-$1").toLowerCase())||a.getPropertyValue(n)||!r&&e(t,SS(n)||n,1)||""},Sw="O,Moz,ms,Ms,Webkit".split(","),SS=function(e,t,n){var r=(t||wQ).style,a=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(Sw[a]+e in r););return a<0?null:(3===a?"ms":a>=0?Sw[a]:"")+e},Sj=function(){"u">typeof window&&window.document&&(wZ=(wY=window.document).documentElement,wQ=Sb("div")||{style:{}},Sb("div"),Sh=(Sp=SS(Sp))+"Origin",wQ.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",w1=!!SS("perspective"),w0=wK.core.reverting,wX=1)},SO=function(e){var t,n=e.ownerSVGElement,r=Sb("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=e.cloneNode(!0);a.style.display="block",r.appendChild(a),wZ.appendChild(r);try{t=a.getBBox()}catch(e){}return r.removeChild(a),wZ.removeChild(r),t},Sk=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},SE=function(e){var t,n;try{t=e.getBBox()}catch(r){t=SO(e),n=1}return t&&(t.width||t.height)||n||(t=SO(e)),!t||t.width||t.x||t.y?t:{x:+Sk(e,["x","cx","x1"])||0,y:+Sk(e,["y","cy","y1"])||0,width:0,height:0}},SA=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&SE(e))},SD=function(e,t){if(t){var n,r=e.style;t in w2&&t!==Sh&&(t=Sp),r.removeProperty?(("ms"===(n=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty("--"===n?t:t.replace(w6,"-$1").toLowerCase())):r.removeAttribute(t)}},SP=function(e,t,n,r,a,i){var o=new wM(e._pt,t,n,0,1,i?So:Si);return e._pt=o,o.b=r,o.e=a,e._props.push(n),o},ST={deg:1,rad:1,turn:1},SC={grid:1,flex:1},SN=function e(t,n,r,a){var i,o,s,l,u=parseFloat(r)||0,c=(r+"").trim().substr((u+"").length)||"px",d=wQ.style,f=w8.test(n),p="svg"===t.tagName.toLowerCase(),h=(p?"client":"offset")+(f?"Width":"Height"),m="px"===a,y="%"===a;if(a===c||!u||ST[a]||ST[c])return u;if("px"===c||m||(u=e(t,n,r,"px")),l=t.getCTM&&SA(t),(y||"%"===c)&&(w2[n]||~n.indexOf("adius")))return i=l?t.getBBox()[f?"width":"height"]:t[h],bG(y?u/i*100:u/100*i);if(d[f?"width":"height"]=100+(m?c:a),o="rem"!==a&&~n.indexOf("adius")||"em"===a&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==wY&&o.appendChild||(o=wY.body),(s=o._gsap)&&y&&s.width&&f&&s.time===xY.time&&!s.uncache)return bG(u/s.width*100);if(y&&("height"===n||"width"===n)){var v=t.style[n];t.style[n]=100+a,i=t[h],v?t.style[n]=v:SD(t,n)}else(y||"%"===c)&&!SC[Sx(o,"display")]&&(d.position=Sx(t,"position")),o===t&&(d.position="static"),o.appendChild(wQ),i=wQ[h],o.removeChild(wQ),d.position="absolute";return f&&y&&((s=bU(o)).time=xY.time,s.width=o[h]),bG(m?i*u/100:i&&u?100/i*u:0)},SM=function(e,t,n,r){var a;return wX||Sj(),t in w7&&"transform"!==t&&~(t=w7[t]).indexOf(",")&&(t=t.split(",")[0]),w2[t]&&"transform"!==t?(a=SH(e,r),a="transformOrigin"!==t?a[t]:a.svg?a.origin:SG(Sx(e,Sh))+" "+a.zOrigin+"px"):(!(a=e.style[t])||"auto"===a||r||~(a+"").indexOf("calc("))&&(a=SF[t]&&SF[t](e,t,n)||Sx(e,t)||b$(e,t)||+("opacity"===t)),n&&!~(a+"").trim().indexOf(" ")?SN(e,t,a,n)+n:a},SR=function(e,t,n,r){if(!n||"none"===n){var a=SS(t,e,1),i=a&&Sx(e,a,1);i&&i!==n?(t=a,n=i):"borderColor"===t&&(n=Sx(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,h,m,y,v=new wM(this._pt,e.style,t,0,1,wA),g=0,b=0;if(v.b=n,v.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=Sx(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(d=e.style[t],e.style[t]=r,r=Sx(e,t)||r,d?e.style[t]=d:SD(e,t)),xq(o=[n,r]),n=o[0],r=o[1],l=n.match(bb)||[],(r.match(bb)||[]).length){for(;s=bb.exec(r);)f=s[0],h=r.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=bq(u,f)+y),p=parseFloat(f),m=f.substr((p+"").length),g=bb.lastIndex-m.length,m||(m=m||g8.units[t]||y,g===r.length&&(r+=m,v.e+=m)),y!==m&&(u=SN(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<r.length?r.substring(g,r.length):""}else v.r="display"===t&&"none"===r?So:Si;return bw.test(r)&&(v.e=0),this._pt=v,v},SI={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},S_=function(e){var t=e.split(" "),n=t[0],r=t[1]||"50%";return("top"===n||"bottom"===n||"left"===r||"right"===r)&&(e=n,n=r,r=e),t[0]=SI[n]||n,t[1]=SI[r]||r,t.join(" ")},SL=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,a,i=t.t,o=i.style,s=t.u,l=i._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(a=(s=s.split(",")).length;--a>-1;)w2[n=s[a]]&&(r=1,n="transformOrigin"===n?Sh:Sp),SD(i,n);r&&(SD(i,Sp),l&&(l.svg&&i.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",SH(i,1),l.uncache=1,Sy(o)))}},SF={clearProps:function(e,t,n,r,a){if("isFromStart"!==a.data){var i=e._pt=new wM(e._pt,t,n,0,0,SL);return i.u=r,i.pr=-10,i.tween=a,e._props.push(n),1}}},SB=[1,0,0,1,0,0],SV={},Sz=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},SW=function(e){var t=Sx(e,Sp);return Sz(t)?SB:t.substr(7).match(bg).map(bG)},SU=function(e,t){var n,r,a,i,o=e._gsap||bU(e),s=e.style,l=SW(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(",")?SB:l:(l!==SB||e.offsetParent||e===wZ||o.svg||(a=s.display,s.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(i=1,r=e.nextElementSibling,wZ.appendChild(e)),l=SW(e),a?s.display=a:SD(e,"display"),i&&(r?n.insertBefore(e,r):n?n.appendChild(e):wZ.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},S$=function(e,t,n,r,a,i){var o,s,l,u,c=e._gsap,d=a||SU(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;n?d!==SB&&(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=SE(e)).x+(~S[0].indexOf("%")?j/100*o.width:j),O=o.y+(~(S[1]||S[0]).indexOf("%")?O/100*o.height:O)),r||!1!==r&&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=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[Sh]="0px 0px",i&&(SP(i,c,"xOrigin",f,j),SP(i,c,"yOrigin",p,O),SP(i,c,"xOffset",h,c.xOffset),SP(i,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",j+" "+O)},SH=function(e,t){var n=e._gsap||new x7(e);if("x"in n&&!t&&!n.uncache)return n;var r,a,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k,E,A,D,P,T,C,N,M,R,I=e.style,L=n.scaleX<0,F=getComputedStyle(e),B=Sx(e,Sh)||"0";return r=a=i=l=u=c=d=f=p=0,o=s=1,n.svg=!!(e.getCTM&&SA(e)),F.translate&&(("none"!==F.translate||"none"!==F.scale||"none"!==F.rotate)&&(I[Sp]=("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[Sp]?F[Sp]:"")),I.scale=I.rotate=I.translate="none"),y=SU(e,n.svg),n.svg&&(n.uncache?(A=e.getBBox(),B=n.xOrigin-A.x+"px "+(n.yOrigin-A.y)+"px",E=""):E=!t&&e.getAttribute("data-svg-origin"),S$(e,E||B,!!E||n.originIsAbsolute,!1!==n.smooth,y)),h=n.xOrigin||0,m=n.yOrigin||0,y!==SB&&(x=y[0],w=y[1],S=y[2],j=y[3],r=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?w5(w,x)*w3:0,(d=S||j?w5(S,j)*w3+l:0)&&(s*=Math.abs(Math.cos(d*w4))),n.svg&&(r-=h-(h*x+m*S),a-=m-(h*w+m*j))):(R=y[6],N=y[7],P=y[8],T=y[9],C=y[10],M=y[11],r=y[12],a=y[13],i=y[14],u=(v=w5(R,C))*w3,v&&(E=O*(g=Math.cos(-v))+P*(b=Math.sin(-v)),A=k*g+T*b,D=R*g+C*b,P=-(O*b)+P*g,T=-(k*b)+T*g,C=-(R*b)+C*g,M=-(N*b)+M*g,O=E,k=A,R=D),c=(v=w5(-S,C))*w3,v&&(E=x*(g=Math.cos(-v))-P*(b=Math.sin(-v)),A=w*g-T*b,D=S*g-C*b,M=j*b+M*g,x=E,w=A,S=D),l=(v=w5(w,x))*w3,v&&(E=x*(g=Math.cos(v))+w*(b=Math.sin(v)),A=O*g+k*b,w=w*g-x*b,k=k*g-O*b,x=E,O=A),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=bG(Math.sqrt(x*x+w*w+S*S)),s=bG(Math.sqrt(k*k+R*R)),d=Math.abs(v=w5(O,k))>2e-4?v*w3:0,p=M?1/(M<0?-M:M):0),n.svg&&(E=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!Sz(Sx(e,Sp)),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||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+"px",n.y=a-((n.yPercent=a&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-a)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+"px",n.z=i+"px",n.scaleX=bG(o),n.scaleY=bG(s),n.rotation=bG(l)+"deg",n.rotationX=bG(u)+"deg",n.rotationY=bG(c)+"deg",n.skewX=d+"deg",n.skewY=f+"deg",n.transformPerspective=p+"px",(n.zOrigin=parseFloat(B.split(" ")[2])||!t&&n.zOrigin||0)&&(I[Sh]=SG(B)),n.xOffset=n.yOffset=0,n.force3D=g8.force3D,n.renderTransform=n.svg?SX:w1?SZ:Sq,n.uncache=0,n},SG=function(e){return(e=e.split(" "))[0]+" "+e[1]},SK=function(e,t,n){var r=xj(t);return bG(parseFloat(t)+parseFloat(SN(e,"x",n+"px",r)))+r},Sq=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,SZ(e,t)},SY="0deg",SZ=function(e,t){var n=t||this,r=n.xPercent,a=n.yPercent,i=n.x,o=n.y,s=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,h=n.scaleY,m=n.transformPerspective,y=n.force3D,v=n.target,g=n.zOrigin,b="",x="auto"===y&&e&&1!==e||!0===y;if(g&&(c!==SY||u!==SY)){var w,S=parseFloat(u)*w4,j=Math.sin(S),O=Math.cos(S);i=SK(v,i,-(j*(w=Math.cos(S=parseFloat(c)*w4))*g)),o=SK(v,o,-(-Math.sin(S)*g)),s=SK(v,s,-(O*w*g)+g)}"0px"!==m&&(b+="perspective("+m+") "),(r||a)&&(b+="translate("+r+"%, "+a+"%) "),(x||"0px"!==i||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||x?"translate3d("+i+", "+o+", "+s+") ":"translate("+i+", "+o+") "),l!==SY&&(b+="rotate("+l+") "),u!==SY&&(b+="rotateY("+u+") "),c!==SY&&(b+="rotateX("+c+") "),(d!==SY||f!==SY)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==h)&&(b+="scale("+p+", "+h+") "),v.style[Sp]=b||"translate(0, 0)"},SX=function(e,t){var n,r,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*=w4,p*=w4,n=Math.cos(f)*m,r=Math.sin(f)*m,a=-(Math.sin(f-p)*y),i=Math.cos(f-p)*y,p&&(h*=w4,a*=o=Math.sqrt(1+(o=Math.tan(p-h))*o),i*=o,h&&(n*=o=Math.sqrt(1+(o=Math.tan(h))*o),r*=o)),n=bG(n),r=bG(r),a=bG(a),i=bG(i)):(n=m,i=y,r=a=0),(j&&!~(c+"").indexOf("px")||O&&!~(d+"").indexOf("px"))&&(j=SN(v,"x",c,"px"),O=SN(v,"y",d,"px")),(g||b||x||w)&&(j=bG(j+g-(g*n+b*a)+x),O=bG(O+b-(g*r+b*i)+w)),(l||u)&&(j=bG(j+l/100*(o=v.getBBox()).width),O=bG(O+u/100*o.height)),o="matrix("+n+","+r+","+a+","+i+","+j+","+O+")",v.setAttribute("transform",o),S&&(v.style[Sp]=o)},SQ=function(e,t,n,r,a){var i,o,s=bi(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?w3:1)-r,u=r+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 wM(e._pt,t,n,r,l,St),o.e=u,o.u="deg",e._props.push(n),o},SJ=function(e,t){for(var n in t)e[n]=t[n];return e},S0=function(e,t,n){var r,a,i,o,s,l,u,c=SJ({},n._gsap),d=n.style;for(a in c.svg?(i=n.getAttribute("transform"),n.setAttribute("transform",""),d[Sp]=t,r=SH(n,1),SD(n,Sp),n.setAttribute("transform",i)):(i=getComputedStyle(n)[Sp],d[Sp]=t,r=SH(n,1),d[Sp]=i),w2)(i=c[a])!==(o=r[a])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)&&(s=xj(i)!==(u=xj(o))?SN(n,a,i,u):parseFloat(i),l=parseFloat(o),e._pt=new wM(e._pt,r,a,s,l-s,Se),e._pt.u=u||0,e._props.push(a));SJ(r,c)};bH("padding,margin,Width,Radius",function(e,t){var n="Right",r="Bottom",a="Left",i=(t<3?["Top",n,r,a]:["Top"+a,"Top"+n,r+n,r+a]).map(function(n){return t<2?e+n:"border"+n+e});SF[t>1?"border"+e:e]=function(e,t,n,r,a){var o,s;if(arguments.length<4)return 5===(s=(o=i.map(function(t){return SM(e,t,n)})).join(" ")).split(o[0]).length?o[0]:s;o=(r+"").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 S1={name:"css",register:Sj,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,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=n.vars.startAt;for(d in wX||Sj(),this.styles=this.styles||Sg(e),x=this.styles.props,this.tween=n,t)if("autoRound"!==d&&(o=t[d],!(bL[d]&&wd(d,t,n,r,e,a)))){if(u=void 0===o?"undefined":wq(o),c=SF[d],"function"===u&&(u=void 0===(o=o.call(n,r,e,a))?"undefined":wq(o)),"string"===u&&~o.indexOf("random(")&&(o=xR(o)),c)c(this,e,d,o,n)&&(b=1);else if("--"===d.substr(0,2))i=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",xG.lastIndex=0,!xG.test(i)&&(f=xj(i),(p=xj(o))?f!==p&&(i=SN(e,d,i,p)+p):f&&(o+=f)),this.add(j,"setProperty",i,o,r,a,0,0,d),S.push(d),x.push(d,0,j[d]);else if("undefined"!==u){if(O&&d in O?(bi(i="function"==typeof O[d]?O[d].call(n,r,e,a):O[d])&&~i.indexOf("random(")&&(i=xR(i)),xj(i+"")||"auto"===i||(i+=g8.units[d]||xj(SM(e,d))||""),"="===(i+"").charAt(1)&&(i=SM(e,d))):i=SM(e,d),l=parseFloat(i),(h="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in w7&&("autoAlpha"===d&&(1===l&&"hidden"===SM(e,"visibility")&&s&&(l=0),x.push("visibility",0,j.visibility),SP(this,j,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=w7[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in w2){if(this.styles.save(d),w=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=Sx(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var k=e.style.perspective;e.style.perspective=o,o=Sx(e,"perspective"),k?e.style.perspective=k:SD(e,"perspective")}s=parseFloat(o)}if(y||((v=e._gsap).renderTransform&&!t.parseTransform||SH(e,t.parseTransform),g=!1!==t.smoothOrigin&&v.smooth,(y=this._pt=new wM(this._pt,j,Sp,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new wM(this._pt,v,"scaleY",v.scaleY,(h?bq(v.scaleY,h+s):s)-v.scaleY||0,Se),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){x.push(Sh,0,j[Sh]),o=S_(o),v.svg?S$(e,o,0,g,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&SP(this,v,"zOrigin",v.zOrigin,p),SP(this,j,d,SG(i),SG(o)));continue}else if("svgOrigin"===d){S$(e,o,1,g,0,this);continue}else if(d in SV){SQ(this,v,d,l,h?bq(l,h+o):o);continue}else if("smoothOrigin"===d){SP(this,v,"smooth",v.smooth,o);continue}else if("force3D"===d){v[d]=o;continue}else if("transform"===d){S0(this,o,e);continue}}else d in j||(d=SS(d)||d);if(m||(s||0===s)&&(l||0===l)&&!w9.test(o)&&d in j)f=(i+"").substr((l+"").length),s||(s=0),p=xj(o)||(d in g8.units?g8.units[d]:f),f!==p&&(l=SN(e,d,i,p)),this._pt=new wM(this._pt,m?v:j,d,l,(h?bq(l,h+s):s)-l,!m&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?Sa:Se),this._pt.u=p||0,m&&w!==o?(this._pt.b=i,this._pt.e=w,this._pt.r=Sr):f!==p&&"%"!==p&&(this._pt.b=i,this._pt.r=Sn);else if(d in j)SR.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,r,a);else if("parseTransform"!==d){bA(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&&wN(this)},render:function(e,t){if(t.tween._time||!w0())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:SM,aliases:w7,getSetter:function(e,t,n){var r=w7[t];return r&&0>r.indexOf(",")&&(t=r),t in w2&&t!==Sh&&(e._gsap.x||SM(e,"x"))?n&&wJ===n?"scale"===t?Sc:Su:(wJ=n||{},"scale"===t?Sd:Sf):e.style&&!bl(e.style[t])?Ss:~t.indexOf("-")?Sl:wO(e,t)},core:{_removeProperty:SD,_getMatrix:SU}};wK.utils.checkPrefix=SS,wK.core.getStyleSaver=Sg,Dm=bH("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Dh="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){w2[e]=1}),bH(Dh,function(e){g8.units[e]="deg",SV[e]=1}),w7[Dm[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Dh,bH("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");w7[t[1]]=Dm[t[0]]}),bH("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){g8.units[e]="px"}),wK.registerPlugin(S1);var S2=wK.registerPlugin(S1)||wK;function S3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S4(e,t){if(e){if("string"==typeof e)return S3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S3(e,t)}}S2.core.Tween;var S5=/-page-\d+$/;function S6(){return new Set((0,hR.getMountedApps)().map(function(e){return e.replace(S5,"")}))}function S8(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,g.useState)(S6))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||S4(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.")}(),n=t[0],r=t[1];return(0,g.useEffect)(function(){var e=function(){return r(function(e){var t=S6();return e.size===t.size&&((function(e){if(Array.isArray(e))return S3(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S4(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)}},[]),n}function S9(e){var t=e.moduleName,n=e.meta;return n.titleKey?(0,z.t)(t,n.titleKey,n.title):n.title}function S7(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h_.y$,t=arguments.length>1?arguments[1]:void 0,n=(0,S.useAssignedExtensions)(e),r=S8();return(0,g.useMemo)(function(){return(0,h_.wR)(n,r,{maxEntries:t})},[n,r,t])}var je={moduleName:"@egen-civitas/esm-styleguide",featureName:"staggered-menu"};function jt(e){var t=e.entry,n=e.slotName,r=e.state,a=e.loadContent,i=S9(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)(S.ExtensionSlot,{name:n,select:o,state:r,className:"sm-ext-slot"})]})}function jn(e){var t=e.area,n=e.entries,r=e.slotName,a=e.state,i=e.loadContent,o=(0,g.useContext)(S.ComponentContext),s=(null==o?void 0:o.moduleName)?o:je,l=(0,g.useMemo)(function(){return n.filter(function(e){return e.area===t})},[n,t]);return 0===l.length?null:(0,v.jsx)(S.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)(jt,{entry:e,slotName:r,state:a,loadContent:i},e.id)})})})}function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ja(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(e){return function(e){if(Array.isArray(e))return jr(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jo(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 jo(e,t){if(e){if("string"==typeof e)return jr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jr(e,t)}}var js=function(e){var t,n=e.isOpen,r=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?h_.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),A=(0,g.useRef)(null),D=(0,g.useRef)(!1),P=(0,g.useRef)(!1),T=m||"",C=S7(T||h_.y$,y),N=(0,g.useMemo)(function(){return T?C:[]},[T,C]),M=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(n))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||jo(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.")}(),R=M[0],I=M[1];n&&!R&&I(!0);var L=(0,g.useMemo)(function(){return{closeMenu:function(){return null==r?void 0:r()},position:i,isOpen:n}},[r,i,n]);(0,g.useLayoutEffect)(function(){var e=S2.context(function(){var e=S.current,t=j.current;if(e){var n=[];t&&(n=Array.from(t.querySelectorAll(".sm-prelayer"))),O.current=n;var r="left"===i?-100:100;S2.set([e].concat(ji(n)),{xPercent:r,opacity:1}),t&&S2.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=A.current)||p.kill();var n=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),r=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}});n.length&&S2.set(n,{yPercent:140,rotate:10}),r.length&&S2.set(r,ja({},"--sm-num-opacity",0)),a&&S2.set(a,{opacity:0}),o.length&&S2.set(o,{y:25,opacity:0}),s.length&&S2.set(s,{y:28,opacity:0});var c=S2.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),n.length){var f,p,h,m=d+.0975;c.to(n,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},m),r.length&&c.to(r,(ja(h={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),ja(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(){S2.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(){S2.set(s,{clearProps:"opacity,transform"})}},d+.22749999999999998),k.current=c,c},[i]),B=(0,g.useCallback)(function(){if(!D.current){D.current=!0;var e=F();e?(e.eventCallback("onComplete",function(){D.current=!1}),e.play(0)):D.current=!1}},[F]),V=(0,g.useCallback)(function(){null==(e=k.current)||e.kill(),k.current=null,null==(t=A.current)||t.kill();var e,t,n,r=S.current,a=O.current;if(r){var o=ji(a).concat([r]);null==(n=E.current)||n.kill();var s="left"===i?-100:100;E.current=S2.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(r.querySelectorAll(".sm-panel-itemLabel"));e.length&&S2.set(e,{yPercent:140,rotate:10});var t=Array.from(r.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&S2.set(t,ja({},"--sm-num-opacity",0));var n=r.querySelector(".sm-socials-title"),a=Array.from(r.querySelectorAll(".sm-socials-link"));n&&S2.set(n,{opacity:0}),a.length&&S2.set(a,{y:25,opacity:0});var i=Array.from(r.querySelectorAll(".sm-ext"));i.length&&S2.set(i,{y:28,opacity:0}),D.current=!1}})}},[i]);b().useEffect(function(){n!==P.current&&(P.current=n,n?B():V())},[n,B,V]),(0,g.useLayoutEffect)(function(){var e;null==(e=S.current)||e.toggleAttribute("inert",!n)},[n]),b().useEffect(function(){if(p&&n){var e=function(e){var t,n=e.target;null!=n&&null!=(t=n.closest)&&t.call(n,'[data-staggered-menu-keep-open], [data-radix-popper-content-wrapper], [role="dialog"], [role="listbox"], [role="menu"]')||S.current&&!S.current.contains(n)&&(null==r||r())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[p,n,r]);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 U=null!=s?s:[],$=null!=l?l:[];return(0,v.jsxs)("div",{className:"sm-scope",style:d?ja({},"--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":!n,children:(0,v.jsxs)("div",{className:"sm-panel-inner",children:[(0,v.jsx)(jn,{area:"top",entries:N,slotName:T,state:L,loadContent:R}),U.length>0&&(0,v.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===c||c||void 0,children:U.map(function(e,t){return(0,v.jsx)("li",{className:"sm-panel-itemWrap",children:(0,v.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,v.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(0,v.jsx)(jn,{area:"content",entries:N,slotName:T,state:L,loadContent:R}),(void 0===u||u)&&$.length>0&&(0,v.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,v.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,v.jsx)("ul",{className:"sm-socials-list",role:"list",children:$.map(function(e,t){return(0,v.jsx)("li",{className:"sm-socials-item",children:(0,v.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]}),(0,v.jsx)(jn,{area:"bottom",entries:N,slotName:T,state:L,loadContent:R})]})}),(void 0===x||x)&&r&&(0,v.jsx)("div",{className:"sm-close-frame","data-open":n?"true":"false",children:(0,v.jsx)("button",{type:"button",className:"sm-close-btn","aria-label":void 0===w?"Fermer le menu":w,onClick:r,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 jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ju=function(e){var t,n=e.isOpen,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jl(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 jl(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=S2.context(function(){var e=c.current,t=d.current,n=f.current,r=p.current;e&&t&&n&&r&&(S2.set(e,{transformOrigin:"50% 50%",rotate:0}),S2.set(t,{transformOrigin:"50% 50%",rotate:90}),S2.set(n,{rotate:0,transformOrigin:"50% 50%"}),S2.set(r,{yPercent:0}),u.current&&a&&S2.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&&S2.set(u.current,{color:e})}else a&&S2.set(u.current,{color:a})},[s,a,i]);var k=(0,g.useCallback)(function(e){var t,n=f.current,r=c.current,a=d.current;n&&r&&a&&(null==(t=w.current)||t.kill(),e?(S2.set(n,{rotate:0,transformOrigin:"50% 50%"}),w.current=S2.timeline({defaults:{ease:"power4.out"}}).to(r,{rotate:45,duration:.5},0).to(a,{rotate:-45,duration:.5},0)):w.current=S2.timeline({defaults:{ease:"power3.inOut"}}).to(r,{rotate:0,duration:.35},0).to(a,{rotate:90,duration:.35},0).to(n,{rotate:0,duration:.001},0))},[]),E=(0,g.useCallback)(function(e){var t,n=u.current;if(n)if(null==(t=j.current)||t.kill(),s){var r=e?i:a;r&&(j.current=S2.to(n,{color:r,delay:.18,duration:.3,ease:"power2.out"}))}else a&&S2.set(n,{color:a})},[i,a,s]),A=(0,g.useCallback)(function(e){var t,n=p.current;if(n){null==(t=S.current)||t.kill();for(var r=e?"Menu":"Close",a=e?"Close":"Menu",i=[r],o=r,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",i.push(o);o!==a&&i.push(a),i.push(a),x(i),S2.set(n,{yPercent:0});var l=i.length;S.current=S2.to(n,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return b().useEffect(function(){n!==O.current&&(O.current=n,k(n),E(n),A(n))},[n,k,E,A]),(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":n?"Close menu":"Open menu","aria-expanded":n,"aria-controls":"staggered-menu-panel",onClick:r,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 jc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class jd extends g.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(hu(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=hu(e)&&e.offsetWidth||0,r=hu(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=n-i.width-i.left,i.bottom=r-i.height-i.top,i.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function jf({children:e,isPresent:t,anchorX:n,anchorY:r,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)(c1),c=function(...e){return g.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=jc(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():jc(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"===n?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,g="bottom"===r?`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)(jd,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:!1===i?e:g.cloneElement(e,{ref:c})})}let jp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dn(jh),d=(0,g.useId)(),f=(0,g.useRef)(n),p=(0,g.useRef)(r);dh(()=>{f.current=n,p.current=r});let h=!0,m=(0,g.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;r&&r()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[n,c,r]);return i&&h&&(m={...m}),(0,g.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),g.useEffect(()=>{n||c.size||!r||r()},[n]),e=(0,v.jsx)(jf,{pop:"popLayout"===o,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),(0,v.jsx)(dt.Provider,{value:m,children:e})};function jh(){return new Map}let jm=e=>e.key||"";function jy(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}let jv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=pd(o),f=(0,g.useMemo)(()=>jy(e),[e]),p=o&&!c?[]:f.map(jm),h=(0,g.useRef)(!0),m=(0,g.useRef)(f),y=dn(()=>new Map),b=(0,g.useRef)(new Set),[x,w]=(0,g.useState)(f),[S,j]=(0,g.useState)(f);dh(()=>{h.current=!1,m.current=f;for(let e=0;e<S.length;e++){let t=jm(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 n=S[t],r=jm(n);p.includes(r)||(e.splice(t,0,n),O.push(n))}return"wait"===i&&O.length&&(e=O),j(jy(e)),w(f),null}let{forceRender:k}=(0,g.useContext)(cJ);return(0,v.jsx)(v.Fragment,{children:S.map(e=>{let g=jm(e),x=(!o||!!c)&&(f===S||p.includes(g));return(0,v.jsx)(jp,{isPresent:x,initial:(!h.current||!!n)&&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?.(),r&&r())},anchorX:s,anchorY:l,children:e},g)})})},jg={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jx=function(e){var t,n=e.columnItems,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}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.")}(),c=u[0],d=u[1],f=(0,g.useMemo)(function(){if(!c.trim())return n;var e=c.trim().toLowerCase();return n.filter(function(t){return t.label.toLowerCase().includes(e)})},[n,c]);return(0,v.jsxs)(hS.div,{className:jg.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:jg.columnSearch,children:[(0,v.jsx)(oQ,{className:jg.columnSearchIcon,size:14}),(0,v.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:jg.columnSearchInput,"aria-label":o})]}),(0,v.jsxs)("ul",{className:jg.columnList,role:"list",children:[f.map(function(e){var t,n=a[r]===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:jg.columnItem,"data-active":n||void 0,onMouseEnter:function(){return s(e,r)},onFocus:function(){return s(e,r)},onClick:function(){!i&&e.path&&l(e.path)},children:[o&&(0,v.jsx)(o,{className:jg.columnItemIcon,size:16}),(0,v.jsx)("span",{className:jg.columnItemLabel,children:e.label}),i&&(0,v.jsx)(og,{className:jg.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,v.jsx)("li",{className:jg.columnEmpty,children:"—"})]})]})};function jw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||jk(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 jO(e){return function(e){if(Array.isArray(e))return jw(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jk(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 jk(e,t){if(e){if("string"==typeof e)return jw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jw(e,t)}}var jE=function(e){var t,n,r=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=jj((0,g.useState)(!1),2),m=h[0],y=h[1],b=jj((0,g.useState)([r]),2),x=b[0],S=b[1],j=jj((0,g.useState)([]),2),O=j[0],k=j[1],E=jj((0,g.useState)(null),2),A=E[0],D=E[1],P=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){m||(S([r]),k([]))},[r,m]),(0,g.useLayoutEffect)(function(){if(m&&P.current){var e=P.current.getBoundingClientRect();D("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[m,s]);var T=function(e,t){var n,r=jO(O);r[t]=e.id,(null==(n=e.children)?void 0:n.length)?S(jO(x.slice(0,t+1)).concat([e.children])):S(x.slice(0,t+1)),k(r)},C=function(e){y(!1),null==f||f(e)};return(0,v.jsxs)("div",{className:w()(jg.wrapper,p),children:[(0,v.jsxs)("button",{ref:P,type:"button",className:jg.trigger,onClick:function(){return y(function(e){return!e})},"aria-haspopup":"true","aria-expanded":m,children:[i&&(0,v.jsx)(i,{className:jg.triggerIcon,size:16}),(0,v.jsx)("span",{children:void 0===a?"Navigation":a}),(0,v.jsx)(oy,{className:w()(jg.triggerChevron,(jS(t={},jg["triggerChevron--open"],m),jS(t,jg["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,v.jsx)(jv,{children:m&&A&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:jg.overlay,onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsx)(hS.div,{className:w()(jg.panel,jg["panel--".concat(s)]),style:(jS(n={left:A.left,top:A.top,bottom:A.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),jS(n,"--cnd-column-width","16rem"),n),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:jg.panelInner,children:(0,v.jsx)(jv,{mode:"sync",children:x.map(function(e,t){return(0,v.jsx)(jx,{columnItems:e,columnIndex:t,activeItems:O,searchable:u,searchPlaceholder:d,onHover:T,onNavigate:C},t)})})})})]})})]})},jA=(0,g.createContext)(null),jD=function(){var e=(0,g.useContext)(jA);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function jP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jT=function(e){var t,n=e.children,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jP(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 jP(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!==r,h=p?r:d,m=(0,g.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,v.jsx)(jA.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:n})};function jC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jN=function(e){var t,n=e.children,r=e.container,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}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.")}(),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:n}):n;return(0,tQ.createPortal)(l,r||document.body)};let jM={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function jR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jI(e){if(Array.isArray(e))return e}function j_(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jL(e,t){if(e){if("string"==typeof e)return jR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jR(e,t)}}var jF=(0,g.forwardRef)(function(e,t){var n,r=jI(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||jL(n)||j_(),a=r[0],i=r.slice(1),o=a.className,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["className"]),l=(jI(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||jL(i,1)||j_())[0],u=jD(),c=u.isOpen,d=u.onOpenChange,f=(0,g.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,v.jsx)(hS.div,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:w()(jM.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function jB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function jV(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}jF.displayName="SheetOverlay";var jz=function(e){var t=e.asChild,n=e.children,r=e.className,a=jD().onOpenChange,i=function(){return a(!0)};return t&&b().isValidElement(n)?b().cloneElement(n,jV(jB({},n.props),{className:w()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:w()(jM.triggerReset,r),children:n})},jW=function(e){var t=e.asChild,n=e.children,r=e.className,a=jD().onOpenChange,i=function(){return a(!1)};return t&&b().isValidElement(n)?b().cloneElement(n,jV(jB({},n.props),{className:w()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:w()(jM.triggerReset,r),children:n})};function jU(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&dw(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{jU(e,t)})})}function j$(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){l4(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(fO(e,n,{transitionOverride:r}))}),Promise.all(a)},set:n=>(l4(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?jU(t,r):"string"==typeof r?jU(t,[r]):dw(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}let jH=function(){let e=dn(j$);return dh(e.mount,[]),e};function jG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jK=function(e){var t,n=e.children,r=e.className,a=jD(),i=a.isOpen,o=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=jH(),f=(0,g.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return jG(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 jG(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,n=window.innerWidth;return e=n<=640?.6*t:n<=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 S=(0,g.useCallback)(function(e,t){var n=y*t.offset.y>h*u,r=y*t.velocity.y>800;n||r?b():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,b,u,h,y]),j=(0,g.useCallback)(function(e){e.target===f.current&&b()},[b]);if(0===h)return null;var O="top"===c?{top:-h,bottom:0}:{top:0,bottom:h};return(0,v.jsx)(jN,{children:(0,v.jsxs)("div",{className:w()(jM.container,!i&&jM["container--closed"]),children:[(0,v.jsx)(hS.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!i},transition:{duration:.2,ease:"easeOut"},onClick:j,className:jM.overlay,style:{pointerEvents:i?"auto":"none"}}),(0,v.jsxs)(hS.div,{drag:"y",dragConstraints:O,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:S,animate:d,initial:{y:y*(h+50)},className:w()(jM.panel,jM["panel--".concat(c)],void 0===r?"":r),style:{height:h},children:["bottom"===c&&(0,v.jsx)("div",{className:jM.handleRow,children:(0,v.jsx)("div",{className:jM.handle})}),(0,v.jsx)("div",{className:jM.body,children:(0,v.jsx)("div",{className:jM.scrollArea,children:n})}),"top"===c&&(0,v.jsx)("div",{className:jM.handleRow,children:(0,v.jsx)("div",{className:jM.handle})})]})]})})},jq=function(e){var t=e.children,n=e.className;return(0,v.jsx)("div",{className:w()(jM.header,n),children:t})},jY=function(e){var t=e.children,n=e.className;return(0,v.jsx)("h3",{className:w()(jM.title,n),children:t})},jZ=function(e){var t=e.children,n=e.className;return(0,v.jsx)("p",{className:w()(jM.description,n),children:t})},jX=function(e){var t=e.children,n=e.className;return(0,v.jsx)("div",{className:w()(jM.footer,n),children:t})},jQ=jT;function jJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jJ(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 j2=function(e){var t=e.items,n=e.title,r=e.hint,a=void 0===r?"Glisser une carte vers le bas pour fermer":r,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=j1((0,g.useState)(void 0!==o&&o),2),y=m[0],b=m[1],x=j1((0,g.useState)(!1),2),S=x[0],j=x[1],O=void 0!==i,k=O?i:y,E=function(e){null==s||s(e),O||b(e)},A=function(e,t){t.offset.y>100&&k&&(E(!1),j(!1))},D=(t.length-1)/2,P=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){j0(e,t,n[t])})}return e}({},h?j0({},"--fg-accent",h):void 0,u);return(0,v.jsx)("div",{className:w()("mf1PQJZJIkTcC6ieajp06g==",l),style:P,children:(0,v.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,v.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,v.jsxs)(hS.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!k,scale:k?.9:1},children:[(0,v.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,v.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,v.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,v.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var n=t-D,r=1-.03*Math.abs(n);return(0,v.jsx)(hS.div,{drag:k,dragSnapToOrigin:!0,onDragEnd:A,className:w()("x+8qV1iWMRfwOVcjmG22XA==",j0({},"-43huhs0q9f4MpiDC1igog==",k)),style:{width:d,height:p},animate:k?{y:-130,x:130*n,rotate:0,scale:1.05,zIndex:50}:{y:S?-10*n-40:-5*n,x:S?30*n:3*n,rotate:S?8*n:3*n,scale:r,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)(hS.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!k,rotateX:S?-25:0,y:10*!!S,pointerEvents:k?"none":"auto"},onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onClick:function(){return E(!0)},children:(0,v.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,v.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,v.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,v.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===n?"Dossier":n})})]})})]}),a&&(0,v.jsx)(hS.div,{animate:{opacity:+!!k,y:50*!k},className:"xaOf3vz5KbUopgtshcuAKA==",children:a})]})})};function j3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j5(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j3(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 j6(e){var t=e.items,n=e.className,r=e.style,a=j5((0,g.useState)(null),2),i=a[0],o=a[1],s=j5((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:w()("cwEvWWvWR1VRjUW5EIdhaA==",n),style:r,children:[t.map(function(e){var t,n=(null==i?void 0:i.id)===e.id,r=!n&&(null==l?void 0:l.id)===e.id;return(0,v.jsx)("div",{className:e.className,children:(0,v.jsxs)(hS.div,{role:"button",tabIndex:0,"aria-pressed":n,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:w()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(j4(t={},"wpWM12DNjfwunfLOmmaBnQ==",n),j4(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!n),j4(t,"_1zQI0+1IAUASZtCPebAKvg==",r),t)),layoutId:"layout-grid-card-".concat(e.id),children:[n&&(0,v.jsx)(j9,{item:i}),(0,v.jsx)(j8,{item:e})]})},e.id)}),(0,v.jsx)(hS.div,{onClick:d,className:w()("SfuCW8U7MUzYHVthm3806Q==",j4({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==i?void 0:i.id))),animate:{opacity:+(null!=i&&!!i.id)},"aria-hidden":"true"})]})}function j8(e){var t=e.item;return(0,v.jsx)(hS.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function j9(e){var t=e.item;return(0,v.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,v.jsx)(hS.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,v.jsx)(hS.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:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let j7="VL60poBQJU5GXBc55DtOgg==",Oe="Z-QYx9GU0-9PvqywVAWDOw==",Ot="k5GwrlmSGQEXCHiD9NJSgg==",On="Sd+oehXhY2IvCEPY7LquSQ==",Or="_2TUXiGgesFw6MMltbcDw7g==",Oa="aaY-ypFw8QYOvR34L1Ad3g==",Oi="_0FXGSaE3Vf6Xfst6Bn-1XQ==",Oo="J+6pxxgImJiBa+5uolSRLA==",Os="-cMLmEDNbTRZO+q9J5EnZQ==",Ol="pNL9YXjomLOkN1Sc1NOXsw==",Ou="YY-ar9Letsk0I16pNK2koQ==";var Oc=function(){return(0,v.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,v.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function Od(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Of(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Od(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 Oh=function(e){var t=e.title,n=e.coverImageUrl,r=e.category,a=e.itemCountLabel,i=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=Op((0,g.useState)(!1),2),f=d[0],p=d[1],h=Op((0,g.useState)(null),2),m=h[0],y=h[1],b=Op((0,g.useState)(null),2),x=b[0],S=b[1],j=Op((0,g.useState)(0),2),O=j[0],k=j[1],E=Op((0,g.useState)("translateY(0px)"),2),A=E[0],D=E[1],P=(0,g.useRef)(null),T=(0,g.useRef)(new Map),C=null!==m,N=f||C;(0,g.useEffect)(function(){if(null!==m){var e=function(){var e=T.current.get(m);e&&P.current&&k(e.getBoundingClientRect().top-P.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[m]);var M=function(e){if(e.detail){var t=T.current.get(e.id);if(t&&P.current){var n=window.innerHeight-t.getBoundingClientRect().bottom+P.current.offsetTop-390;D("translateY(".concat(n,"px)"))}y(e.id),S(e)}};return(0,v.jsx)("div",{className:w()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,v.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,v.jsxs)("div",{ref:P,className:w()("_09AECjHCq6I9nuofSaItrA==",Of({},"GyoWR7DyKiD7EWOqlosJAg==",N)),children:[(0,v.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,v.jsxs)("div",{className:j7,children:[(0,v.jsx)("img",{className:Oe,src:n,alt:""}),(0,v.jsx)("img",{className:w()(Oe,Ot),src:n,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,v.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,v.jsx)("h1",{className:On,children:t}),(0,v.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[r&&(0,v.jsx)("p",{className:Or,children:r}),r&&a&&(0,v.jsx)("div",{className:Oi}),a&&(0,v.jsx)("p",{className:Or,children:a}),a&&i&&(0,v.jsx)("div",{className:Oi}),i&&(0,v.jsx)("p",{className:Or,children:i})]})]}),(0,v.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,v.jsxs)("div",{ref:(t=e.id,function(e){e?T.current.set(t,e):T.current.delete(t)}),className:Oo,onClick:function(){return M(e)},children:[(0,v.jsx)("p",{className:Oa,children:e.title}),(0,v.jsxs)("div",{className:Os,children:[(0,v.jsx)("button",{type:"button",className:Ol,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,v.jsx)(oz,{size:20})}),e.meta&&(0,v.jsx)("p",{className:Or,children:e.meta})]})]},e.id)})})]})]}),x&&(0,v.jsxs)("div",{className:w()("T5TjonuT8CpL6L9LnfYUbg==",Of({},"Yw84bwYkOFxUPSl8uIlHYA==",C)),style:{top:"".concat(O,"px"),transform:A},children:[(0,v.jsxs)("div",{className:Oo,children:[(0,v.jsx)("p",{className:Oa,children:x.title}),(0,v.jsxs)("div",{className:Os,children:[(0,v.jsx)("button",{type:"button",className:Ol,onClick:function(){D("translateY(0px)"),y(null)},"aria-label":"Fermer",children:(0,v.jsx)(ot,{size:20,className:Ou})}),x.meta&&(0,v.jsx)("p",{className:Or,children:x.meta})]})]}),(0,v.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,v.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,v.jsx)(Oc,{})]}),s&&(0,v.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":C?"none":void 0},children:[(0,v.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,v.jsx)(ot,{size:24,className:w()(Of({},Ou,f))})}),(0,v.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,v.jsxs)("div",{className:j7,children:[(0,v.jsx)("h1",{className:On,children:s.name}),(0,v.jsx)("img",{className:Oe,src:s.photoUrl,alt:""}),(0,v.jsx)("img",{className:w()(Oe,Ot),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,v.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,v.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,v.jsx)("p",{className:w()(Or,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,v.jsx)("div",{className:Oi}),s.itemCountLabel&&(0,v.jsx)("p",{className:Or,children:s.itemCountLabel})]}),s.statLabel&&(0,v.jsx)("p",{className:Or,children:s.statLabel})]}),s.description&&(0,v.jsx)("p",{className:Oa,children:s.description})]})]}),(0,v.jsx)(Oc,{}),(0,v.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})};function Om(e){var t=e.moduleName,n=e.meta;return n.titleKey?(0,z.t)(t,n.titleKey,n.title):n.title}function Oy(e,t){var n=(0,S.useAssignedExtensions)(h_.As[e]),r=S8();return(0,g.useMemo)(function(){return n.map(function(e,t){return{extension:e,index:t}}).filter(function(e){var t=e.extension;return(0,h_.oW)(t.meta)}).filter(function(n){var r,a=n.extension;return!t||"bottom"!==e||(null!=(r=a.meta.rail)?r:"left")===t}).filter(function(t){var n=t.extension;return"right"===e||!0===n.meta.global||r.has(n.moduleName)}).sort(function(e,t){var n,r;return(null!=(n=e.extension.meta.order)?n:e.index)-(null!=(r=t.extension.meta.order)?r:t.index)||e.index-t.index}).map(function(t){var n=t.extension;return{id:n.name,moduleName:n.moduleName,meta:n.meta,compartment:"bottom"===e?null:(0,h_.lN)(n.meta)}})},[n,r,e,t])}var Ov=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e,t,n){return!!e&&""!==e.trim()&&n.indexOf(e)===t}).join(" ").trim()},Og={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 Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ox(e){if(Array.isArray(e))return e}function Ow(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function OS(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function OO(e,t){return Ox(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||OE(e,t)||OS()}function Ok(e){return function(e){if(Array.isArray(e))return Ob(e)}(e)||Ow(e)||OE(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 OE(e,t){if(e){if("string"==typeof e)return Ob(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ob(e,t)}}var OA=(0,g.forwardRef)(function(e,t){var n,r,a,i=Ox(n=[e,t])||Ow(n)||OE(n)||OS(),o=i[0],s=i.slice(1),l=o.color,u=o.size,c=void 0===u?24:u,d=o.strokeWidth,f=void 0===d?2:d,p=o.absoluteStrokeWidth,h=o.className,m=o.children,y=o.iconNode,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),b=OO(s,1)[0];return(0,g.createElement)("svg",Oj((r=Oj({ref:b},Og),a=a={width:c,height:c,stroke:void 0===l?"currentColor":l,strokeWidth:p?24*Number(f)/Number(c):f,className:Ov("lucide",void 0===h?"":h)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r),v),Ok(y.map(function(e){var t=OO(e,2),n=t[0],r=t[1];return(0,g.createElement)(n,r)})).concat(Ok(Array.isArray(m)?m:[m])))});function OD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OP(e){if(Array.isArray(e))return e}function OT(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function OC(e,t){if(e){if("string"==typeof e)return OD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OD(e,t)}}var ON=function(e,t){var n=(0,g.forwardRef)(function(n,r){var a,i=OP(a=[n,r])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||OC(a)||OT(),o=i[0],s=i.slice(1),l=o.className,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["className"]),c=(OP(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||OC(s,1)||OT())[0];return(0,g.createElement)(OA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:c,iconNode:t,className:Ov("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l)},u))});return n.displayName="".concat(e),n},OM=ON("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"}]]),OR=ON("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"}]]),OI=ON("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"}]]),O_=ON("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"}]]),OL=ON("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"}]]),OF=ON("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"}]]),OB=ON("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"}]]),OV=ON("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"}]]),Oz=ON("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"}]]),OW=ON("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),OU=ON("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"}]]),O$=ON("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"}]]),OH=ON("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"}]]),OG=ON("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"}]]),OK=ON("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"}]]),Oq=ON("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),OY=ON("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"}]]),OZ=ON("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),OX=ON("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"}]]),OQ=ON("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"}]]),OJ=ON("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"}]]),O0=ON("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"}]]),O1=ON("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"}]]),O2=ON("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"}]]),O3=ON("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"}]]),O4=ON("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"}]]),O5=ON("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"}]]),O6=ON("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"}]]),O8=ON("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"}]]),O9={BookOpen:OM,Bell:OR,Bot:OI,Building2:O_,CalendarDays:OL,CircleHelp:OF,Folder:OB,FolderTree:OV,House:Oz,Info:OW,LayoutGrid:OU,ListTree:O$,MapPin:OH,Megaphone:OG,Newspaper:OK,Search:Oq,Settings:OY,Terminal:OZ,Users:OX,Calendar:OQ,CalendarCheck:OJ,Compass:O0,Contact:O1,FileCheck:O2,FileText:O3,Globe:O4,Layers:O5,Radio:O6,Star:O8,Zap:ON("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"}]])};function O7(e){return e?O9[e]:void 0}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kt(e){return function(e){if(Array.isArray(e))return ke(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 ke(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 ke(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 kn="__default__",kr={height:60,minHeight:25,maxHeight:100},ka=function(e){return Math.round(100*e)/100};function ki(e){var t=e.reduce(function(e,t){return e+t.minHeight},0),n=e.reduce(function(e,t){return e+t.maxHeight},0),r=t>100?100/t:1;return{mins:e.map(function(e){return e.minHeight*r}),maxs:e.map(function(e){return n<100?100:Math.max(e.maxHeight,e.minHeight*r)})}}function ko(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e.length)return[];if(1===e.length)return[100];var r=ki(e),a=r.mins,i=r.maxs,o=e.map(function(e){var t=n[e.key];return"number"==typeof t&&Number.isFinite(t)&&t>0}),s=e.reduce(function(e,t,n){return e+(o[n]?0:t.height)},0),l=e.reduce(function(e,t,r){return e+(o[r]?n[t.key]:0)},0),u=100-s;if(l>0&&u>0)t=e.map(function(e,t){return o[t]?n[e.key]*u/l:e.height});else{var c=e.map(function(e,t){return o[t]?n[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 n=f.reduce(function(e,t){return e+(null!=t?t:0)},0),r=e.map(function(e,t){return t}).filter(function(e){return void 0===f[e]});if(0===r.length)return"break";var o=r.reduce(function(e,n){return e+t[n]},0),s=o>0?(100-n)/o:0,l=new Map(r.map(function(e){return[e,o>0?t[e]*s:(100-n)/r.length]})),u=0,c=!0,d=!1,p=void 0;try{for(var h,m=r[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=r.filter(function(e){return l.get(e)<a[e]-1e-6}),b=r.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=r[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:kt(g).concat(kt(b)),A=!0,D=!1,P=void 0;try{for(var T,C=(E.length>0?E:kt(g).concat(kt(b)))[Symbol.iterator]();!(A=(T=C.next()).done);A=!0){var N=T.value;f[N]=Math.min(i[N],Math.max(a[N],l.get(N)))}}catch(e){D=!0,P=e}finally{try{A||null==C.return||C.return()}finally{if(D)throw P}}}();p+=1);var h=e.map(function(e,n){var r;return null!=(r=f[n])?r:t[n]}).map(ka),m=ka(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]=ka(h[y]+m)}return h}function ks(e,t,n,r){var a=kt(e);if(n<0||n>=e.length-1||!Number.isFinite(r)||0===r)return a;var i=ki(t),o=i.mins,s=i.maxs,l=Array.from({length:n+1},function(e,t){return n-t}),u=Array.from({length:e.length-n-1},function(e,t){return n+1+t}),c=r>0?l:u,d=r>0?u:l,f=Math.min(Math.abs(r),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 A=k.value,D=Math.min(w,Math.max(0,a[A]-o[A]));if(a[A]-=D,(w-=D)<=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(ka)}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ku(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ku(e,t,n[t])})}return e}function kd(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function kf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||kp(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 kp(e,t){if(e){if("string"==typeof e)return kl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kl(e,t)}}var kh="egen-workbench-layout",km=["left","bottom","right"],ky={left:280,right:320,bottom:240},kv={left:{min:200,max:640},right:{min:220,max:640},bottom:{min:120,max:720}},kg=["left","right"];function kb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn;return"".concat(e,":").concat(t)}function kx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{width:window.innerWidth,height:window.innerHeight},r=kv[e],a=r.min,i=r.max,o=Math.floor(("bottom"===e?.7*n.height:.5*n.width)||i),s=Math.max(a,Math.min(i,o));return Number.isFinite(t)?Math.round(Math.min(s,Math.max(a,t))):ky[e]}var kw=(0,hI.getGlobalStore)("workbench",function(){var e={sizes:kc({},ky),active:{left:null,right:null,bottom:null},compartments:{left:[],right:[]},heights:{}};try{var t=window.localStorage.getItem(kh);if(!t)return e;var n=JSON.parse(t),r=!0,a=!1,i=void 0;try{for(var o,s,l=km[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var u,c,d=s.value,f=null==n||null==(u=n.sizes)?void 0:u[d];"number"==typeof f&&(e.sizes[d]=kx(d,f));var p=null==n||null==(c=n.active)?void 0:c[d];"string"==typeof p&&p.length>0&&(e.active[d]=p)}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}var h=!0,m=!1,y=void 0;try{for(var v,g=kg[Symbol.iterator]();!(h=(v=g.next()).done);h=!0)!function(){var t,r=v.value,a=null==n||null==(t=n.compartments)?void 0:t[r];Array.isArray(a)&&(e.compartments[r]=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==n?void 0:n.heights)?o:{})[Symbol.iterator]();!(b=(S=j.next()).done);b=!0){var O=kf(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}());kw.subscribe(function(e){try{window.localStorage.setItem(kh,JSON.stringify(e))}catch(e){}});var kS=function(e){return"left"===e||"right"===e};function kj(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kw.getState();return kS(e)&&null!=(t=null==(n=r.compartments)?void 0:n[e])?t:[]}function kO(e,t){if(!kS(e))return!1;try{var n=(0,h_.zx)(h_.As[e]).find(function(e){return e.name===t});return!!((null==n?void 0:n.meta)&&(0,h_.lN)(n.meta))}catch(e){return!1}}function kk(e,t){var n=kw.getState(),r=kj(e,n);r.includes(t)||kw.setState({compartments:kd(kc({},kD(),n.compartments),ku({},e,((function(e){if(Array.isArray(e))return kl(e)})(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||kp(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([t])))})}function kE(e,t){var n=kw.getState(),r=kj(e,n);r.includes(t)&&kw.setState({compartments:kd(kc({},kD(),n.compartments),ku({},e,r.filter(function(e){return e!==t})))})}function kA(e,t){kj(e).includes(t)?kE(e,t):kk(e,t)}function kD(){return{left:[],right:[]}}function kP(e){var t,n=null!=(t=kw.getState().heights)?t:{};Object.entries(e).some(function(e){var t,r=kf(e,2),a=r[0],i=r[1];return Math.abs((null!=(t=n[a])?t:-1)-i)>.005})&&kw.setState({heights:kc({},n,e)})}function kT(e,t){if(kS(e)&&kO(e,t))return kA(e,t);var n=kw.getState().active;kw.setState({active:kd(kc({},n),ku({},e,n[e]===t?null:t))})}function kC(e,t){if(kS(e)&&kO(e,t))return kk(e,t);var n=kw.getState().active;n[e]!==t&&kw.setState({active:kd(kc({},n),ku({},e,t))})}function kN(e,t){var n=kw.getState();if(void 0!==t)return kS(e)&&kj(e,n).includes(t)?kE(e,t):void(n.active[e]===t&&kw.setState({active:kd(kc({},n.active),ku({},e,null))}));var r={};null!==n.active[e]&&(r.active=kd(kc({},n.active),ku({},e,null))),kS(e)&&kj(e,n).length>0&&(r.compartments=kd(kc({},kD(),n.compartments),ku({},e,[]))),Object.keys(r).length>0&&kw.setState(r)}function kM(e,t){var n=kw.getState().sizes,r=kx(e,t);n[e]!==r&&kw.setState({sizes:kd(kc({},n),ku({},e,r))})}function kR(e){kM(e,ky[e])}function kI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kI(e,t,n[t])})}return e}var kL=(0,hI.getGlobalStore)("workbench-badges",{});function kF(e,t){var n,r,a=kL.getState();if(null==t||0===t||""===t){if(!(e in a))return;var i=k_({},a);delete i[e],kL.setState(i,!0);return}a[e]!==t&&kL.setState((n=k_({},a),r=null!=(r=kI({},e,t))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function kB(e){return"number"==typeof e&&e>99?"99+":String(e)}let kV={rail:"U-q0gY3cs3x5fbfEPnKCCQ==",railGroup:"ESBJAakRqUW3PKIR5eV7Ww==",railSpacer:"_80Qn0Gk7qaDa88KjnPoGaQ==",railIconMask:"_12UZoVQUm1d-mCC3r7Ws3Q==",railBadge:"C7TqDakmZFR78UB-J0UZ8w==",railButton:"C1ayWSxgdA7nzrIoTIKRyA==",zone:"u7xBFkQcPLpLJlBCCG-wRw==",compartment:"uqw4a1-+BNYMCJBL5Nnu0w==","zone-left":"JG5S5j2hPjiJYAueOOpoZA==","zone-right":"IMXowfKwDYTJochm61bF3w==","zone-bottom":"tQPrkL3qbV2IAVC5VLJBrQ==",compartmentGap:"cVq9CkYFpkemEWQ7mP-xqg==",compartmentSplitter:"TD8CgM5MP793WX89qup-YA==",zoneHeader:"H4atJr2Xz56lwQF+UBpF9A==",zoneTitle:"hjXw0i5pEu+GS+zHg-eDqw==",zoneHeaderTools:"pt+li0reVnJAMCPiIuAeOw==",zoneClose:"tyRTBpax-KejsMfsJ+bp6w==",zoneBody:"WhUjoxzwMEo+qqZXOwgINQ==",zoneSlot:"Je+gZyA7+g660GqeJM+DTQ==",splitter:"qtg-hGW1DTeZScDybl76hQ==","splitter-left":"l2-471oYB4znZs5ivaNk4g==","splitter-right":"l9zLlul-KnjOFEeoewlqkQ==","splitter-bottom":"xtsAK0rdIruEBnmIik4+wQ==",cornerSplitter:"cSY52FPpU16gjapvrbtFZA==","cornerSplitter-left":"W-HVXSkOcGBatycJ05Ztig==","cornerSplitter-right":"jAHgwBYau8kVWXKBcY34NA=="};function kz(e){var t=e.anchor,n=e.label,r=Oy(t,e.rail),a=(0,S.useStore)(kw),i=a.active[t],o=kj(t,a);return 0===r.length?null:(0,v.jsx)("div",{role:"group","aria-label":n,"data-anchor":t,className:"".concat(kV.railGroup," egen-anim-stagger egen-anim-stagger--fade"),children:r.map(function(e){return(0,v.jsx)(kW,{tool:e,active:e.compartment?o.includes(e.id):e.id===i,onClick:function(){return e.compartment?kA(t,e.id):kT(t,e.id)}},e.id)})})}function kW(e){var t=e.tool,n=e.active,r=e.onClick,a=Om(t),i=O7(t.meta.icon),o=(0,h_.e4)(t.meta.iconUrl)?t.meta.iconUrl:void 0,s=(0,S.useStore)(kL)[t.id];return(0,v.jsxs)("button",{type:"button",className:kV.railButton,"aria-pressed":n,"aria-label":a,title:a,"data-active":n,onClick:r,children:[o?(0,v.jsx)("span",{"aria-hidden":"true",className:kV.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:kV.railBadge,"data-testid":"workbench-badge-".concat(t.id),children:kB(s)})]})}function kU(){return(0,v.jsxs)("nav",{"aria-label":"Outils de l'application","data-testid":"workbench-rail-left",className:kV.rail,children:[(0,v.jsx)(kz,{anchor:"left",label:"Panneau lat\xe9ral"}),(0,v.jsx)("span",{className:kV.railSpacer}),(0,v.jsx)(kz,{anchor:"bottom",rail:"left",label:"Panneau inf\xe9rieur"})]})}function k$(){return(0,v.jsxs)("nav",{"aria-label":"Outils globaux","data-testid":"workbench-rail-right",className:kV.rail,children:[(0,v.jsx)(kz,{anchor:"right",label:"Panneau droit"}),(0,v.jsx)("span",{className:kV.railSpacer}),(0,v.jsx)(kz,{anchor:"bottom",rail:"right",label:"Panneau inf\xe9rieur"})]})}var kH=ON("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function kG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kK="data-workbench-resizing";function kq(e){var t=e.anchor,n=e.label,r=(0,S.useStore)(kw).sizes[t],a=(0,g.useRef)(null),i="bottom"!==t,o=function(e){var t,n;a.current&&(a.current=null,null==(t=(n=e.currentTarget).releasePointerCapture)||t.call(n,e.pointerId),document.documentElement.removeAttribute(kK))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":n,"aria-orientation":i?"vertical":"horizontal","aria-valuenow":r,"aria-valuemin":kx(t,0),"aria-valuemax":kx(t,Number.MAX_SAFE_INTEGER),"data-anchor":t,className:"".concat(kV.splitter," ").concat(kV["splitter-".concat(t)]),onPointerDown:function(e){if(0===e.button){var n,r,i,o,s=null!=(n=null==(r=e.currentTarget.parentElement)?void 0:r.parentElement)?n: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(kK,t),e.preventDefault()}}},onPointerMove:function(e){if(a.current){var n,r,i,o;kM(t,(n=e.clientX,r=e.clientY,i=a.current.edge,o=a.current.grab,"left"===t?n-o-i:"right"===t?i-(n-o):i-(r-o)))}},onPointerUp:o,onPointerCancel:o,onDoubleClick:function(){return kR(t)},onKeyDown:function(e){var n="left"===t?"ArrowRight":"right"===t?"ArrowLeft":"ArrowUp",r="left"===t?"ArrowLeft":"right"===t?"ArrowRight":"ArrowDown";if(e.key===n)kM(t,kw.getState().sizes[t]+16);else if(e.key===r)kM(t,kw.getState().sizes[t]-16);else if("Home"===e.key)kM(t,0);else{if("End"!==e.key)return;kM(t,Number.MAX_SAFE_INTEGER)}e.preventDefault()}})}function kY(e){var t=e.side,n=e.label,r=(0,g.useRef)(null),a="corner-".concat(t),i=function(e){var t,n;r.current&&(r.current=null,null==(t=(n=e.currentTarget).releasePointerCapture)||t.call(n,e.pointerId),document.documentElement.removeAttribute(kK))};return(0,v.jsx)("div",{"aria-hidden":"true",title:n,"data-corner":t,className:"".concat(kV.cornerSplitter," ").concat(kV["cornerSplitter-".concat(t)]),onPointerDown:function(e){if(0===e.button){var n,i,o=kw.getState().sizes;r.current={x:e.clientX,y:e.clientY,side:o[t],bottom:o.bottom},null==(n=(i=e.currentTarget).setPointerCapture)||n.call(i,e.pointerId),document.documentElement.setAttribute(kK,a),e.preventDefault()}},onPointerMove:function(e){var n=r.current;if(n){var a=e.clientX-n.x;kM(t,n.side+("left"===t?a:-a)),kM("bottom",n.bottom-(e.clientY-n.y))}},onPointerUp:i,onPointerCancel:i,onDoubleClick:function(){kR(t),kR("bottom")}})}var kZ=function(e,t){return Object.fromEntries(e.map(function(e,n){return[e.key,t[n]]}))};function kX(e){var t=e.anchor,n=e.index,r=e.items,a=e.heights,i=e.label,o=(0,g.useRef)(null),s=function(e){var t,n;o.current&&(o.current=null,null==(t=(n=e.currentTarget).releasePointerCapture)||t.call(n,e.pointerId),document.documentElement.removeAttribute(kK))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":i,"aria-orientation":"horizontal","aria-valuenow":Math.round(a[n]),"aria-valuemin":0,"aria-valuemax":100,"data-compartment-splitter":n,className:kV.compartmentSplitter,onPointerDown:function(e){if(0===e.button){var n,i,s=e.currentTarget.parentElement;if(s){var l=e.currentTarget.getBoundingClientRect().height,u=s.getBoundingClientRect().height-l*(r.length-1);u>0&&(o.current={y:e.clientY,heights:function(e){if(Array.isArray(e))return kG(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 kG(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 kG(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==(n=(i=e.currentTarget).setPointerCapture)||n.call(i,e.pointerId),document.documentElement.setAttribute(kK,"compartment-".concat(t)),e.preventDefault())}}},onPointerMove:function(e){var t=o.current;if(t){var a=(e.clientY-t.y)*t.perPixel;kP(kZ(r,ks(t.heights,r,n,a)))}},onPointerUp:s,onPointerCancel:s,onDoubleClick:function(){return kP(kZ(r,ko(r,{})))},onKeyDown:function(e){("ArrowUp"===e.key||"ArrowDown"===e.key)&&(kP(kZ(r,ks(a,r,n,"ArrowDown"===e.key?5:-5))),e.preventDefault())}})}function kQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kJ="data-tool-window-container",k0="data-tool-window-header";function k1(e){var t,n=e.children,r=(0,g.useRef)(null),a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}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,n=null==(t=r.current)?void 0:t.closest("[".concat(kJ,"], aside[data-anchor]"));o(null!=(e=null==n?void 0:n.querySelector("[".concat(k0,"]")))?e:null)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{ref:r,hidden:!0}),void 0===i?null:null===i?n:(0,tQ.createPortal)(n,i)]})}function k2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){k3(e,t,n[t])})}return e}var k5={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench"},k6={left:"--egen-zone-left-width",right:"--egen-zone-right-width",bottom:"--egen-zone-bottom-height"},k8={left:"egen-anim-slide-in-from-left",right:"egen-anim-slide-in-from-right",bottom:"egen-anim-slide-in-from-bottom"},k9={left:"egen-anim-slide-out-to-left",right:"egen-anim-slide-out-to-right",bottom:"egen-anim-slide-out-to-bottom"};function k7(e){var t,n=e.anchor,r=Oy(n),a=(0,S.useStore)(kw),i=a.active,o=a.sizes,s=i[n],l=o[n],u="bottom"===n?null:n,c=[],d=r.find(function(e){return!e.compartment&&e.id===s});if(d&&c.push({tool:d,item:k4({key:kb(null!=u?u:"left")},kr)}),u){var f=!0,p=!1,h=void 0;try{for(var m,y,b=kj(u,a)[Symbol.iterator]();!(f=(y=b.next()).done);f=!0)!function(){var e=y.value,t=r.find(function(t){return t.id===e&&t.compartment});(null==t?void 0:t.compartment)&&c.push({tool:t,item:k4({key:kb(u,e)},t.compartment)})}()}catch(e){p=!0,h=e}finally{try{f||null==b.return||b.return()}finally{if(p)throw h}}}var x=c.length>0,w=(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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return k2(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 k2(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];x&&(w.current=c);var A=x?c:"closing"===k?w.current:[],D=A.length>0;(0,g.useLayoutEffect)(function(){if(x!==j.current){j.current=x,E(x?"opening":"closing");var e=window.setTimeout(function(){x||(w.current=[]),E("open")},300);return function(){return window.clearTimeout(e)}}},[x]),(0,g.useEffect)(function(){document.documentElement.style.setProperty(k6[n],x?"".concat(l,"px"):"0px")},[n,x,l]),(0,g.useEffect)(function(){return function(){document.documentElement.style.removeProperty(k6[n])}},[n]);var P=A.map(function(e){return e.item}),T=ko(P,null!=(m=a.heights)?m:{}),C=P.map(function(e,t){return"".concat(e.key,"=").concat(T[t])}).join("|");(0,g.useEffect)(function(){x&&!(P.length<2)&&kP(Object.fromEntries(P.map(function(e,t){return[e.key,T[t]]})))},[x,C]);var N=A[0]?Om(A[0].tool):"",M="closing"===k?k9[n]:"opening"===k?k8[n]:"",R="closing"!==k;return(0,v.jsx)("aside",{"data-testid":"workbench-zone-".concat(n),"data-anchor":n,"data-open":x,"data-phase":k,"data-compartments":A.length,"aria-label":N||void 0,hidden:!D,style:{"--egen-zone-inner-size":"".concat(l,"px")},className:"".concat(kV.zone," ").concat(kV["zone-".concat(n)]," ").concat(M),children:D&&(0,v.jsxs)(v.Fragment,{children:[A.map(function(e,t){var r=e.tool,a=e.item;return(0,v.jsxs)(g.Fragment,{children:[t>0&&R&&u&&(0,v.jsx)(kX,{anchor:u,index:t-1,items:P,heights:T,label:"Redimensionner ".concat(Om(A[t-1].tool)," et ").concat(Om(r))}),t>0&&!(R&&u)&&(0,v.jsx)("span",{"aria-hidden":"true",className:kV.compartmentGap}),(0,v.jsx)(Ee,{anchor:n,tool:r,height:T[t],own:a.key!==kb(null!=u?u:"left"),single:1===A.length})]},a.key)}),"closing"!==k&&(0,v.jsx)(kq,{anchor:n,label:"Redimensionner ".concat(N)}),"bottom"===n&&"closing"!==k&&null!==i.left&&(0,v.jsx)(kY,{side:"left",label:"Redimensionner la zone gauche et la zone basse"}),"bottom"===n&&"closing"!==k&&null!==i.right&&(0,v.jsx)(kY,{side:"right",label:"Redimensionner la zone droite et la zone basse"})]})})}function Ee(e){var t,n=e.anchor,r=e.tool,a=e.height,i=e.own,o=e.single,s=Om(r),l=(0,g.useCallback)(function(e){return e.filter(function(e){return e.name===r.id})},[r.id]);return(0,v.jsxs)("section",(k3(t={"data-testid":"workbench-compartment-".concat(n,"-").concat(i?r.id:kn),"data-compartment":i?"own":"default","data-height":Math.round(100*a)/100},kJ,""),k3(t,"style",o?void 0:{flex:"".concat(a," 1 0%")}),k3(t,"className",kV.compartment),k3(t,"children",[(0,v.jsxs)("header",{className:kV.zoneHeader,children:[(0,v.jsx)("h2",{className:kV.zoneTitle,children:s}),(0,v.jsx)("div",k3({className:kV.zoneHeaderTools},k0,"")),(0,v.jsx)("button",{type:"button",className:kV.zoneClose,"aria-label":"Fermer ".concat(s),title:"Fermer ".concat(s),onClick:function(){return kN(n,r.id)},children:(0,v.jsx)(kH,{size:14,"aria-hidden":"true"})})]}),(0,v.jsx)("div",{className:"".concat(kV.zoneBody," egen-anim-fade-in"),children:(0,v.jsx)(S.ComponentContext.Provider,{value:k5,children:(0,v.jsx)(S.ExtensionSlot,{name:h_.As[n],select:l,className:kV.zoneSlot})})},r.id)]),t))}var Et={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench",strictMode:!1},En=(0,S.egenComponentDecorator)(Et)(kU),Er=(0,S.egenComponentDecorator)(Et)(k$),Ea=(0,S.egenComponentDecorator)(Et)(k7);function Ei(e){var t=e.railLeft,n=e.railRight,r=e.zoneLeft,a=e.zoneRight,i=e.zoneBottom;t&&(0,ms.createRoot)(t).render((0,v.jsx)(En,{})),n&&(0,ms.createRoot)(n).render((0,v.jsx)(Er,{})),r&&(0,ms.createRoot)(r).render((0,v.jsx)(Ea,{anchor:"left"})),a&&(0,ms.createRoot)(a).render((0,v.jsx)(Ea,{anchor:"right"})),i&&(0,ms.createRoot)(i).render((0,v.jsx)(Ea,{anchor:"bottom"}))}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Eu(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){return function(e){if(Array.isArray(e))return Eo(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Eu(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 Eu(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eo(e,t)}}var Ec=function(e,t,n){return t?(0,z.t)(e,t,n):n};function Ed(){var e=window.getEgenSpaBase().replace(/\/$/,""),t=window.location.pathname;return(t.startsWith(e)?t.slice(e.length):t).replace(/^\/+|\/+$/g,"")}function Ef(e){var t,n,r,a=e.section,i=(0,S.useAssignedExtensions)(h_.yS),o=(n=(t=Es((0,g.useState)(Ed),2))[0],r=t[1],(0,g.useEffect)(function(){var e=function(){return r(Ed())};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)}},[]),n),s=Es((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useMemo)(function(){var e=new Map,t=!0,n=!1,r=void 0;try{for(var o,s=i[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var l=o.value;if((0,h_.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?Ec(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){n=!0,r=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw r}}return El(e.values())},[i,a]),d=(0,g.useMemo)(function(){var e,t,n=c.flatMap(function(e){return e.entries}).filter(function(e){var t;return o===(t=e.meta.route)||o.startsWith("".concat(t,"/"))});if(0===n.length)return null;var r=(e=Math).max.apply(e,El(n.map(function(e){return e.meta.route.length}))),a=n.filter(function(e){return e.meta.route.length===r});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:"_7eztyhT6g8BBF+b2zwNxzQ==","data-testid":"section-nav-".concat(a),children:c.map(function(e){return(0,v.jsxs)("div",{className:"_39E0CGSd4CEdvjRf4uhk1A==",role:"group","aria-label":e.label,children:[e.label&&(0,v.jsx)("h3",{className:"Qe0xVBpoxvmDH+4PTCE6sA==",children:e.label}),(0,v.jsx)("ul",{className:"aTi-X-2m0FLjgtWqGpnRAQ==",children:e.entries.map(function(e){var t=O7(e.meta.icon),n=Ec(e.moduleName,e.meta.labelKey,e.meta.label),r=e.meta.description?Ec(e.moduleName,e.meta.descriptionKey,e.meta.description):void 0;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:"znzmYEQH9TLAv93dGs-RHw==","data-active":e.name===d,"aria-current":e.name===d?"page":void 0,title:r,onClick:function(){u(e.name),(0,yV.oo)({to:"${egenSpaBase}/".concat(e.meta.route)})},children:[t&&(0,v.jsx)(t,{size:16,"aria-hidden":"true",className:"kE-ZZCWIUUr-U9WBp1ALhQ=="}),(0,v.jsx)("span",{className:"K-KnQoVYGW8SaVVvvZhYAg==",children:n})]})},e.name)})})]},e.key)})})}var Ep={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:{}}},Eh={warp:{transformPerspective:1e3,originX:.5,originY:0}};function Em(){cs.current||cu();let[e]=(0,g.useState)(co.current);return e}let Ey={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",warpGlow:"lYwavaEqP5zZdSgBjnAJMA==",warpWave:"jRakhK4YumTwCC7BXtuFBg==",warpWaveTint:"cU-bGBRAWHh2yEPWcXkLIQ==",warpBlob:"h0LgItaR7oviJoeBaSTnpg==",warpBlobA:"QN0RGZu3WONOa+NKEx3Yfg==",warpBlobB:"xt+VET70amAh1iOdz50cJw==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};var Ev=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({opacity:.9,transition:{duration:.5,scale:{duration:15,repeat:1/0,repeatType:"loop",ease:"easeInOut",delay:.35}}},e?{}:{scale:[1,.7,1]})},Eg=function(){var e=Em();return(0,v.jsxs)("div",{className:Ey.warpGlow,"aria-hidden":"true",children:[(0,v.jsx)(hS.div,{className:Ey.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)(hS.div,{className:"".concat(Ey.warpBlob," ").concat(Ey.warpBlobA),initial:{opacity:0},animate:Ev(e),exit:{opacity:0,transition:{duration:.25}}}),(0,v.jsx)(hS.div,{className:"".concat(Ey.warpBlob," ").concat(Ey.warpBlobB),initial:{opacity:0},animate:Ev(e),exit:{opacity:0,transition:{duration:.25}}})]})};function Eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ex(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ex(e,t,n[t])})}return e}function ES(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eb(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 Ej=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},EO=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Ek=function(e){var t,n,r,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,S=e.draggable,j=void 0!==S&&S,O=e.dockable,k=void 0!==O&&O,E=e.dockIcon,A=e.dockEdgeThreshold,D=void 0===A?80:A,P=e.dockUndockDistance,T=void 0===P?120:P,C=e.dockSize,N=void 0===C?56:C,M=e.closeOnOverlayClick,R=e.closeOnEscape,I=void 0===R||R,L=e.showOverlay,B=e.lockScroll,V=void 0===B||B,z=e.animation,W=void 0===z?"scale":z,U=e.overlayAnimation,$=e.overlayEffect,H=e.warpColor,G=e.className,K=e.style,q=e.overlayClassName,Y=ES((0,g.useState)(void 0!==d&&d),2),Z=Y[0],X=Y[1],Q=ES((0,g.useState)(!1),2),J=Q[0],ee=Q[1],et=ES((0,g.useState)(null),2),en=et[0],er=et[1],ea=(0,g.useRef)(null),ei=(0,g.useId)(),eo=void 0!==c,es=eo?c:Z,el=(0,g.useCallback)(function(e){null==f||f(e),eo||X(e)},[f,eo]),eu=(0,g.useCallback)(function(){return el(!1)},[el]);(0,g.useEffect)(function(){return ee(!0)},[]),(0,g.useEffect)(function(){es&&er(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,n=e.top+e.height/2;if(en)return void(Math.abs(t-("left"===en.side?0:window.innerWidth))>T?er(null):er({side:en.side,y:Ej(n,N)}));t<=D?er({side:"left",y:Ej(n,N)}):t>=window.innerWidth-D&&er({side:"right",y:Ej(n,N)})}},[k,en,D,T,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=EO(W)?W:{preset:W},ef=null!=(r=ed.variants)?r:Ep[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?Eh[eh]:void 0,ey=null!=$?$:"warp"===eh?"warp":"none",ev={duration:null!=(l=null==U?void 0:U.duration)?l:.2,ease:null!=(u=null==U?void 0:U.ease)?u:"easeOut"},eg=(0,v.jsx)(jv,{children:es&&(0,v.jsxs)("div",{className:Ey.root,children:[(void 0===L||L)&&!en&&(0,v.jsx)(hS.div,{className:w()(Ey.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===M||M?eu:void 0,"aria-hidden":"true",children:"warp"===ey&&(0,v.jsx)(Eg,{})}),en?(0,v.jsx)(hS.div,{ref:ea,className:w()(Ey.dockBubble,Ey["dockBubble--".concat(en.side)]),style:Ex({top:en.y,width:N,height:N},en.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)&&er(null)},children:null!=E?E:(0,v.jsx)(oL,{size:20})}):(0,v.jsx)("div",{className:Ey.centerLayer,children:(0,v.jsx)(hS.div,{ref:ea,role:"dialog","aria-modal":"true","aria-labelledby":(null==x?void 0:x.title)?ei:void 0,className:w()(Ey.panel,G),style:Ew({},em,K),variants:ef,initial:"initial",animate:"animate",exit:"exit",transition:ep,drag:j,dragMomentum:!1,dragElastic:.12,onDragEnd:k?ec:void 0,whileDrag:j?{cursor:"grabbing"}:void 0,children:(0,v.jsxs)(F,(t=Ew({variant:void 0===b?"default":b},x),n=n={children:[(void 0===m||m)&&(y?y(eu):(0,v.jsx)("button",{type:"button",className:Ey.closeButton,onClick:eu,"aria-label":"Fermer",children:(0,v.jsx)(ox,{size:18})})),h]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})})]})});return(0,v.jsxs)(v.Fragment,{children:[p&&(0,v.jsx)("span",{className:Ey.triggerWrap,onClick:function(){return el(!0)},children:p}),J&&(0,tQ.createPortal)(eg,document.body)]})},EE=(0,g.createContext)(null);function EA(){var e=(0,g.useContext)(EE);if(!e)throw Error("Select compound components must be used within <Select>");return e}function ED(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EP(e){var t,n=e.children,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ED(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 ED(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=r.find(function(e){return u(e)===a}))?e:r[0]},[r,a,u]),S=(0,g.useCallback)(function(e){null==i||i(e),x(!1)},[i,x]);return(0,v.jsx)(EE.Provider,{value:{open:b,setOpen:x,selectedOption:w,options:r,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:m},children:n})}function ET(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EC=function(e){var t,n=e.src,r=e.name,a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ET(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 ET(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 n&&!i?(0,v.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:n,alt:"",onError:function(){return o(!0)}}):(0,v.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:r.charAt(0).toUpperCase()})};function EN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EM=function(e){var t,n,r=e.className,a=e.renderTrigger,i=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["className","renderTrigger","showAvatar","placeholder"]),l=EA(),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 n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){EN(e,t,n[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:w()("t3j-WppHuYF4Q80G8ssYTw==",r),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),n=n={children:[a?a(d,u):(0,v.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,v.jsxs)(v.Fragment,{children:[(void 0===i||i)&&(0,v.jsx)(EC,{src:d.logo,name:f(d)}),(0,v.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,v.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,v.jsx)(oy,{className:w()("Mx+cKK19Fg1ZkYsq9XTF+Q==",EN({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function ER(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ER(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ER(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 EL=function(e){var t=e.className,n=e.style,r=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=EA(),m=h.open,y=h.setOpen,b=h.options,x=h.selectedOption,S=h.onOptionSelect,j=h.getOptionId,O=h.getOptionName,k=h.triggerRef,E=E_((0,g.useState)(""),2),A=E[0],D=E[1],P=E_((0,g.useState)(null),2),T=P[0],C=P[1],N=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){if(m&&k.current){var e=k.current.getBoundingClientRect();C({top:e.bottom+8,left:e.left,width:e.width})}},[m,k]),(0,g.useLayoutEffect)(function(){if(m){var e=function(e){var t,n,r=e.target;(null==(t=N.current)?void 0:t.contains(r))||(null==(n=k.current)?void 0:n.contains(r))||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(A)},[A,u]);var M=(0,g.useMemo)(function(){if(!A.trim())return b;var e=A.trim().toLowerCase();return b.filter(function(t){return O(t).toLowerCase().includes(e)})},[b,A,O]);return(0,v.jsx)(jv,{children:m&&T&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsxs)(hS.div,{ref:N,role:"listbox",className:w()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){EI(e,t,n[t])})}return e}({top:T.top,left:T.left,minWidth:T.width},n),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:"A2JDtexU43VW64EghIpTQA==",children:(0,v.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:i})}),void 0!==o&&o&&(0,v.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,v.jsx)(oQ,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,v.jsx)("input",{type:"search",value:A,onChange:function(e){return D(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,v.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===M.length?(0,v.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):M.map(function(e){var t=!!(x&&j(x)===j(e));return(0,v.jsx)("button",{type:"button",role:"option","aria-selected":t,className:w()("mqfrCZDVzn25GOVXds14vw==",EI({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return S(e)},children:r?r(e,t):(0,v.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,v.jsx)(EC,{src:e.logo,name:O(e)}),(0,v.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,v.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:O(e)}),"string"==typeof e.plan&&(0,v.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,v.jsx)(om,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},j(e))})}),p&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,v.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let EF="YDxgnSM2QPGOYYICdgjq7Q==";function EB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Ez(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 Ez(e,t){if(e){if("string"==typeof e)return EB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EB(e,t)}}function EW(e){var t=e.options,n=e.defaultActiveIndex,r=e.onChange,a=e.title,i=e.subtitle,o=e.className,s=e.style,l=EV((0,g.useState)(void 0===n?0:n),2),u=l[0],c=l[1],d=EV((0,g.useState)([]),2),f=d[0],p=d[1],h=function(e){e!==u&&(c(e),null==r||r(e))};return(0,g.useEffect)(function(){var e=[];return t.forEach(function(t,n){var r=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return EB(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ez(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([n])})},180*n);e.push(r)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,v.jsxs)("div",{className:w()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(a||i)&&(0,v.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[a&&(0,v.jsx)("h1",{className:w()("TsIf8Q8vAVSLc-vC4h6-UA==",EF,"CUA6-RpM0KPkwxkPhWbpzg=="),children:a}),i&&(0,v.jsx)("p",{className:w()("GiaxLFLhrXHmZTTZjk2qqg==",EF,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:i})]}),(0,v.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,v.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var n=u===t,r=f.includes(t);return(0,v.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":n,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:n?"auto 100%":"auto 120%",opacity:+!!r,transform:r?"translateX(0)":"translateX(-60px)",borderColor:n?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:n?"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:n?"7 1 0%":"1 1 0%",zIndex:n?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:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:n?"0":"-40px",boxShadow:n?"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:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,v.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,v.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,v.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.title}),(0,v.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function EU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function E$(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var EH=function(e){return EU({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)},EG=function(e){return(0,v.jsx)("svg",E$(EU({},EH(e)),{children:(0,v.jsx)("path",{d:"m6 9 6 6 6-6"})}))},EK=function(e){return(0,v.jsx)("svg",E$(EU({},EH(e)),{children:(0,v.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},Eq=function(e){return(0,v.jsxs)("svg",E$(EU({},EH(e)),{children:[(0,v.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,v.jsx)("path",{d:"m7 9 5-5 5 5"})]}))},EY=function(e){return(0,v.jsxs)("svg",E$(EU({},EH(e)),{children:[(0,v.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,v.jsx)("path",{d:"m21 21-4.3-4.3"})]}))},EZ=function(e){return(0,v.jsxs)("svg",E$(EU({},EH(e)),{children:[(0,v.jsx)("path",{d:"M18 6 6 18"}),(0,v.jsx)("path",{d:"m6 6 12 12"})]}))},EX=function(e){return(0,v.jsx)("svg",E$(EU({},EH(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 n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function EJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 E0={type:"spring",duration:.5,bounce:.22},E1="flex w-full items-center justify-between gap-2 px-3.5 py-2.5 text-sm",E2={hidden:{opacity:0,y:-6,filter:"blur(3px)"},show:{opacity:1,y:0,filter:"blur(0px)"}},E3=(0,g.createContext)(null);function E4(e){var t=(0,g.useContext)(E3);if(!t)throw Error("".concat(e," must be used within <MorphSelect>"));return t}function E5(e){var t,n=e.value,r=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?E0: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,w=e.children,S=null!=(t=Em())&&t,j=(0,g.useId)(),O=(0,g.useRef)(null),k=EJ((0,g.useState)(void 0!==o&&o),2),E=k[0],A=k[1],D=void 0!==i,P=D?i:E,T=(0,g.useCallback)(function(e){D||A(e),null==s||s(e)},[D,s]),C=EJ((0,g.useState)(r),2),N=C[0],M=C[1],R=EJ((0,g.useState)(new Map),2),I=R[0],L=R[1],F=EJ((0,g.useState)("Select"),2),B=F[0],V=F[1],z=void 0!==n,W=z?n:N,U=(0,g.useCallback)(function(e){z||M(e),null==a||a(e),T(!1)},[z,a,T]),$=(0,g.useCallback)(function(e,t){L(function(n){var r,a,i=new Map(n);return i.set(e,{label:t,count:(null!=(r=null==(a=n.get(e))?void 0:a.count)?r:0)+1}),i})},[]),H=(0,g.useCallback)(function(e){L(function(t){var n=t.get(e);if(!n)return t;var r=new Map(t);return n.count<=1?r.delete(e):r.set(e,{label:n.label,count:n.count-1}),r})},[]);(0,g.useEffect)(function(){if(P){var e=function(e){return"Escape"===e.key&&T(!1)},t=function(e){O.current&&!O.current.contains(e.target)&&T(!1)};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}}},[P,T]);var G=(0,g.useMemo)(function(){return{value:W,open:P,setOpen:T,select:U,register:$,unregister:H,labelFor:function(e){var t;return void 0===e||null==(t=I.get(e))?void 0:t.label},placeholder:B,setPlaceholder:V,reduce:S,layoutId:"".concat(j,"-surface"),triggerId:"".concat(j,"-trigger"),listId:"".concat(j,"-list"),disabled:u,transition:d,radius:p,stagger:m,staggerDelay:b}},[W,P,T,U,$,H,I,B,S,j,u,d,p,m,b]);return(0,v.jsx)(E3.Provider,{value:G,children:(0,v.jsx)("div",{ref:O,className:mP("relative",x),children:w})})}function E6(e){var t,n=e.placeholder,r=e.className,a=E4("MorphSelectValue");(0,g.useEffect)(function(){n&&a.setPlaceholder(n)},[n,a.setPlaceholder]);var i=a.labelFor(a.value);return(0,v.jsx)("span",{className:mP(i?"text-foreground":"text-muted-foreground",r),children:null!=(t=null!=i?i:n)?t:"Select"})}function E8(e){var t,n,r=e.className,a=e.icon,i=e.children,o=E4("MorphSelectTrigger"),s=null!=a?a:(0,v.jsx)(EG,{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 n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"aria-hidden":!0},{inert:""}),n=n={className:mP(E1,"invisible rounded-xl border border-border"),children:[i,s]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)),(0,v.jsx)(jv,{initial:!1,mode:"popLayout",children:o.open?null:(0,v.jsxs)(hS.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:mP(E1,"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",r),children:[(0,v.jsx)(hS.span,{layout:"position",className:"min-w-0 truncate",children:i}),(0,v.jsx)(hS.span,{layout:"position",className:"text-muted-foreground",children:s})]},"trigger")})]})}function E9(e){var t=e.className,n=e.headerClassName,r=e.listClassName,a=e.icon,i=e.children,o=E4("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)(jv,{initial:!1,mode:"popLayout",children:o.open?(0,v.jsxs)(hS.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:mP("absolute inset-x-0 top-0 z-30 overflow-hidden border border-border bg-background shadow-lg",t),children:[(0,v.jsxs)(hS.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return o.setOpen(!1)},className:mP(E1,"outline-none",n),children:[(0,v.jsx)("span",{className:mP("min-w-0 truncate",s?"text-foreground":"text-muted-foreground"),children:null!=s?s:o.placeholder}),(0,v.jsx)(hS.span,{animate:{rotate:180},transition:o.reduce?{duration:0}:o.transition,className:"text-muted-foreground",children:null!=a?a:(0,v.jsx)(EG,{className:"h-4 w-4"})})]}),(0,v.jsx)("div",{className:"h-px bg-border"}),(0,v.jsx)(hS.ul,{initial:"hidden",animate:"show",variants:o.reduce?void 0:l,className:mP("p-1",r),children:i})]},"panel"):null})]})}function E7(e){var t=e.value,n=e.disabled,r=e.label,a=e.indicator,i=e.className,o=e.children,s=E4("MorphSelectItem"),l=s.value===t,u=null!=r?r:"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)(hS.li,{variants:s.reduce?void 0:E2,children:(0,v.jsxs)("button",{type:"button",role:"option","aria-selected":l,disabled:void 0!==n&&n,onClick:function(){return s.select(t)},className:mP("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)(EK,{className:"h-3.5 w-3.5 shrink-0"}):null]})})}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function At(e){if(Array.isArray(e))return e}function An(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Ar(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Aa(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Ao(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function As(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function Al(e,t){return At(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Ac(e,t)||Aa()}function Au(e){return At(e)||Ar(e)||Ac(e)||Aa()}function Ac(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(e,t)}}var Ad=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)"}})})},Af=function(e){var t=e.className;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:mP("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"})})},Ap=function(e){var t=e.className;return(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:mP("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"})]})},Ah=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Al(g.useState(!1),2),n=t[0],r=t[1],a=g.useRef(null),i=g.useRef(null),o=g.useRef(null),s=function(t){if(!e&&a.current&&i.current){r(!0),null==(n=o.current)||n.cancel();var n,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 n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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 r(!1),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){An(i,r,a,o,s,"next",e)}function s(e){An(i,r,a,o,s,"throw",e)}o(void 0)})})()};return{surfaceRef:a,rippleRef:i,pressed:n,events:{onPointerDown:function(e){0===e.button&&s(e)},onPointerUp:l,onPointerLeave:l,onPointerCancel:l}}},Am=g.forwardRef(function(e,t){var n=e.pressed,r=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:r,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:n?"0.12":"0",transitionDuration:n?"100ms":"375ms"}})]})});Am.displayName="RippleLayer";var Ay=g.forwardRef(function(e,t){var n=Au([e,t]),r=n[0],a=n.slice(1),i=r.children,o=r.className,s=r.viewportRef,l=As(r,["children","className","viewportRef"]),u=Al(a,1)[0],c=g.useRef(null),d=s||c,f=g.useRef(null),p=g.useRef(null),h=Al(g.useState(0),2),m=h[0],y=h[1],b=Al(g.useState(0),2),x=b[0],w=b[1],S=Al(g.useState(!1),2),j=S[0],O=S[1],k=g.useRef({startY:0,startScrollTop:0}),E=g.useCallback(function(){if(d.current){var e=d.current,t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(f.current&&(f.current.style.opacity=t>0?"1":"0"),p.current&&(p.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1"),n>r){var a=Math.max(r/n*r,30);y(a),w((r-a)/(n-r)*t)}else y(0)}},[d]);return g.useEffect(function(){var e=d.current;if(e){E();var t=new ResizeObserver(function(){return E()});t.observe(e),e.firstElementChild&&t.observe(e.firstElementChild);var n=new MutationObserver(function(){return E()});return n.observe(e,{childList:!0,subtree:!0,characterData:!0}),function(){t.disconnect(),n.disconnect()}}},[E,d]),g.useEffect(function(){if(j){var e=function(e){if(d.current){var t=e.clientY-k.current.startY,n=d.current,r=n.scrollHeight,a=n.clientHeight,i=Math.max(a/r*a,30);d.current.scrollTop=k.current.startScrollTop+(r-a)/(a-i)*t}},t=function(){O(!1),document.body.style.userSelect=""};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),function(){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}}},[j,d]),(0,v.jsxs)("div",Ao(Ai({ref:u,"data-dragging":j,className:mP("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:E,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:mP("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:mP("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(),O(!0),k.current={startY:e.clientY,startScrollTop:(null==(t=d.current)?void 0:t.scrollTop)||0},document.body.style.userSelect="none"}})})]}))});Ay.displayName="CustomFloatingScrollArea";var Av=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 '}})},Ag=g.forwardRef(function(e,t){var n=Au([e,t]),r=n[0],a=n.slice(1),i=r.className,o=r.children,s=r.isActive,l=r.isSelected,u=r.onSelectAction,c=As(r,["className","children","isActive","isSelected","onSelectAction"]),d=Al(a,1)[0],f=Ah(),p=f.surfaceRef,h=f.rippleRef,m=f.pressed,y=f.events;return(0,v.jsxs)("li",Ao(Ai({ref:function(e){p.current=e,"function"==typeof d?d(e):d&&(d.current=e)},role:"option","aria-selected":l,"data-active":s,className:mP("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)(Am,{rippleRef:h,pressed:m}),(0,v.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:o})]}))});function Ab(e){var t=e.items,n=e.placeholder,r=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"],w=e["aria-labelledby"],S=e.maxOptions,j=e.minOptions,O=e.classNames,k=e.labels,E=e.renderItem,A=e.maxListHeight,D=void 0===A?260:A,P=e.chipMaxWidth,T=void 0===P?120:P,C=e.style,N=Array.isArray(a),M=null!=(ek=null==k?void 0:k.empty)?ek:void 0===r?"No results found.":r,R=null!=(eE=null==k?void 0:k.loading)?eE:"Loading results...",I=null!=(eA=null==k?void 0:k.clear)?eA:"Clear",L=null!=(eD=null==k?void 0:k.toggle)?eD:"Toggle options",F=null!=(eP=null==k?void 0:k.create)?eP:function(e){return'Create "'.concat(e,'"')},B=g.useId(),V=y?"".concat(y,"-listbox"):"".concat(B,"-listbox"),z=function(e){return"".concat(V,"-option-").concat(e)},W=Al(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=W[0],$=W[1],H=Al(g.useState(U),2),G=H[0],K=H[1],q=Al(g.useState(!1),2),Y=q[0],Z=q[1],X=Al(g.useState("closed"),2),Q=X[0],J=X[1],ee=Al(g.useState(-1),2),et=ee[0],en=ee[1],er=g.useRef("mouse"),ea=Al(g.useState("bottom"),2),ei=ea[0],eo=ea[1],es=Al(g.useState(D),2),el=es[0],eu=es[1],ec=g.useRef(null),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=Al(g.useState(a),2),ex=eb[0],ew=eb[1],eS=Al(g.useState(t),2),ej=eS[0],eO=eS[1];if(a!==ex||t!==ej)if(ew(a),eO(t),N)a&&0!==a.length||($(""),K(""));else if(a){var ek,eE,eA,eD,eP,eT,eC=(null==(eT=t.find(function(e){return e.value===a}))?void 0:eT.label)||"";$(eC),K(eC)}else $(""),K("");var eN=Ah(o),eM=eN.surfaceRef,eR=eN.rippleRef,eI=eN.pressed,e_=eN.events,eL=Ah(o),eF=eL.surfaceRef,eB=eL.rippleRef,eV=eL.pressed,ez=eL.events,eW=g.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,G)}):G?t.filter(function(e){return e.label.toLowerCase().includes(G.toLowerCase())}):t},[t,G,f]),eU=Al(g.useState(eW),2),e$=eU[0],eH=eU[1];g.useEffect(function(){"open"===Q&&eH(eW)},[eW,Q]);var eG=g.useCallback(function(){if(ed.current){var e=ed.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top,r=t<280&&n>t?"top":"bottom";eo(r),eu(Math.max(100,Math.min(D,("bottom"===r?t:n)-16)))}},[D]);g.useEffect(function(){var e=ed.current;if(e){var t=new ResizeObserver(function(){eG()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eG),function(){t.disconnect(),window.removeEventListener("resize",eG)}}},[eG]),g.useEffect(function(){if(Y)return window.addEventListener("scroll",eG,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eG,!0)}},[Y,eG]);var eK=g.useCallback(function(e){$(e),eg.current&&clearTimeout(eg.current),h&&h>0?eg.current=setTimeout(function(){K(e),c&&c(e)},h):(K(e),c&&c(e))},[h,c]),eq=g.useCallback(function(e){if(Z(!0),J("open"),ev.current&&clearTimeout(ev.current),"number"==typeof e)en(e);else{var t=eW.findIndex(function(e){return e.value===a});en(t>=0?t:-1)}},[eW,a]),eY=g.useCallback(function(){if(Z(!1),J("closing"),en(-1),N)$(""),K("");else if(a){var e,n=(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||"";$(n),K(n)}else $(""),K("");ev.current&&clearTimeout(ev.current),ev.current=setTimeout(function(){J(function(e){return"closing"===e?"closed":e})},300)},[a,t,N]);g.useEffect(function(){return function(){ev.current&&clearTimeout(ev.current),eg.current&&clearTimeout(eg.current)}},[]),g.useEffect(function(){var e=function(e){ed.current&&!ed.current.contains(e.target)&&Y&&eY()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[Y,eY]),g.useEffect(function(){if(et>=0&&ef.current&&"keyboard"===er.current){var e=ef.current.children[et];e&&e.scrollIntoView({block:"nearest"})}},[et]);var eZ=g.useCallback(function(){var e=eh.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;em.current&&(em.current.style.opacity=t>1?"1":"0"),ey.current&&(ey.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1")}},[]),eX=g.useRef(0);g.useEffect(function(){if(N){var e=eh.current;if(e){var t=(null==a?void 0:a.length)||0;t>eX.current&&requestAnimationFrame(function(){e.scrollLeft=e.scrollWidth}),eX.current=t}}},[a,N]),g.useEffect(function(){var e,t,n=eh.current;if(n){var r=!1,a=function(a){r=!0,e=a.pageX-n.offsetLeft,t=n.scrollLeft,document.body.style.userSelect="none"},i=function(){r&&(r=!1,document.body.style.userSelect="")},o=function(a){if(r){a.preventDefault();var i=(a.pageX-n.offsetLeft-e)*1.5;n.scrollLeft=t-i}},s=function(e){0!==e.deltaY&&(e.preventDefault(),n.scrollLeft+=e.deltaY)};n.addEventListener("mousedown",a),n.addEventListener("mouseleave",i),n.addEventListener("mouseup",i),n.addEventListener("mousemove",o),n.addEventListener("wheel",s,{passive:!1}),eZ(),n.addEventListener("scroll",eZ);var l=new ResizeObserver(function(){return eZ()});return l.observe(n),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseleave",i),n.removeEventListener("mouseup",i),n.removeEventListener("mousemove",o),n.removeEventListener("wheel",s),n.removeEventListener("scroll",eZ),l.disconnect(),document.body.style.userSelect=""}}},[Y,a,eZ]);var eQ=void 0!==s&&s&&U.length>0&&!t.some(function(e){return e.label.toLowerCase()===U.toLowerCase()}),eJ=function(e){var n;if(N){var r,o,s=a||[];if(s.includes(e)){if("number"==typeof j&&s.length<=j){null==(r=ec.current)||r.focus();return}var l=s.filter(function(t){return t!==e});i&&i(l)}else{if("number"==typeof S&&s.length>=S){null==(o=ec.current)||o.focus();return}var u=((function(e){if(Array.isArray(e))return Ae(e)})(s)||Ar(s)||Ac(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)}$(""),K(""),c&&c("")}else{if(a===e)$(""),K(""),i&&i("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";$(f),K(f),i&&i(e)}eY()}null==(n=ec.current)||n.focus()},e0=function(){var e;l&&U&&l(U),N||eY(),null==(e=ec.current)||e.focus()},e1=U.length>0?"x":Y?"up":"down",e2="closing"===Q?e$:eW,e3=N&&(a||[]).length>0,e4=g.useCallback(function(e){if(!N)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof S&&!!(t.length>=S)},[N,a,S]),e5=Y||"closing"===Q;return(0,v.jsxs)("div",{ref:ed,style:C,className:mP("relative w-full transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",e3?"h-[5.25rem]":"h-11",u,null==O?void 0:O.root),children:[(0,v.jsx)(Av,{}),m&&(N?(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":Q,className:mP("m3-auto-container absolute inset-x-0 flex bg-card overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]","top"===ei?"bottom-0 flex-col-reverse":"top-0 flex-col",e5?"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==O?void 0:O.container),children:[(0,v.jsxs)("div",{className:mP("relative flex items-center w-full h-11 flex-shrink-0 pl-4 pr-1.5 z-30",null==O?void 0:O.inputRow),children:[(0,v.jsx)("input",{ref:ec,id:y,role:"combobox","aria-expanded":Y,"aria-autocomplete":"list","aria-controls":V,"aria-activedescendant":et>=0?z(et):void 0,"aria-label":x,"aria-labelledby":w,value:U,onChange:function(e){var t=e.target.value;eK(t);var n=t.length>0?0:-1;Y?en(n):eq(n),er.current="keyboard"},onFocus:function(){return eq()},onKeyDown:function(e){var t=eW.length+ +!!eQ;if("Tab"===e.key){Y&&eY();return}if(!Y&&("ArrowDown"===e.key||"ArrowUp"===e.key)){e.preventDefault(),eq();return}if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),er.current="keyboard",en(function(e){return(e+1)%t});break;case"ArrowUp":e.preventDefault(),er.current="keyboard",en(function(e){return(e-1+t)%t});break;case"Home":e.preventDefault(),er.current="keyboard",en(0);break;case"End":e.preventDefault(),er.current="keyboard",en(t-1);break;case"Enter":if(e.preventDefault(),et>=0)if(et<eW.length){var n=eW[et],r=N&&a||[],i=r.includes(n.value);N&&!i&&"number"==typeof S&&r.length>=S||eJ(n.value)}else eQ&&e0();break;case"Escape":eY()}},disabled:o,placeholder:n||"Select an option...",autoComplete:"off",className:mP("flex-1 h-full bg-transparent outline-none text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==O?void 0:O.input)}),(0,v.jsxs)("button",Ao(Ai({ref:eM,type:"button",tabIndex:-1,className:mP("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==O?void 0:O.toggleButton),onClick:function(e){var t;e.preventDefault(),null==(t=ec.current)||t.focus(),U.length>0?(eK(""),!N&&i&&i(""),Y||eq(-1)):Y?eY():eq()},disabled:o,"aria-label":L},e_),{children:[(0,v.jsx)(Am,{rippleRef:eR,pressed:eI}),(0,v.jsx)("span",{className:"relative z-10 flex items-center justify-center pointer-events-none",children:(0,v.jsx)(Ad,{state:e1})})]}))]}),N&&(a||[]).length>0&&(0,v.jsxs)("div",{className:mP("relative flex items-center justify-between h-10 overflow-hidden flex-shrink-0 border-border/40","top"===ei?"border-b":"border-t",null==O?void 0:O.chipsRow),children:[(0,v.jsx)("div",{ref:em,className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(0,v.jsx)("div",{ref:eh,className:"flex items-center gap-1.5 overflow-x-auto m3-hide-scroll flex-1 min-w-0 h-full py-0.5 pl-4 pr-12 select-none cursor-default",children:(a||[]).map(function(e){var n=t.find(function(t){return t.value===e});return n?(0,v.jsxs)("button",{type:"button",className:mP("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==O?void 0:O.chip),onClick:function(){var t,n=a||[];if("number"!=typeof j||!(n.length<=j)){var r=n.filter(function(t){return t!==e});i&&i(r),null==(t=ec.current)||t.focus()}},children:[(0,v.jsx)("span",{className:"truncate",style:{maxWidth:T},children:n.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:ey,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"}),(!j||0===j)&&(0,v.jsxs)("button",Ao(Ai({ref:eF,type:"button",onClick:function(){var e;i&&i([]),null==(e=ec.current)||e.focus()},className:mP("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==O?void 0:O.clearButton)},ez),{children:[(0,v.jsx)(Am,{rippleRef:eB,pressed:eV}),(0,v.jsx)("span",{className:"relative",children:I})]}))]}),(0,v.jsx)("div",{className:mP("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] relative z-10",Y?"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"!==Q&&(0,v.jsx)("div",{className:"flex flex-col w-full",children:(0,v.jsx)(Ay,{viewportRef:ep,style:{maxHeight:"".concat(el,"px")},className:"w-full",children:(0,v.jsx)("ul",{ref:ef,id:V,role:"listbox","aria-multiselectable":N,className:mP("w-full text-popover-foreground outline-none pb-2 pt-1",null==O?void 0:O.list),children:void 0!==d&&d?(0,v.jsxs)("li",{className:mP("m3-auto-item p-6 flex flex-col items-center justify-center gap-2 text-xs text-muted-foreground",null==O?void 0:O.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:R})]}):0!==e2.length||eQ?(0,v.jsxs)(v.Fragment,{children:[e2.map(function(e,t){var n=e4(e.value),r=N?!!(null==a?void 0:a.includes(e.value)):a===e.value,i=et===t;return(0,v.jsxs)(Ag,{id:z(t),isActive:i,isSelected:r,onSelectAction:function(){n||eJ(e.value)},onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(er.current="mouse",et!==t&&en(t))},className:mP(n&&"opacity-40 cursor-not-allowed pointer-events-none",null==O?void 0:O.item),children:[r&&(0,v.jsx)(Af,{className:"mr-3 flex-shrink-0 text-primary"}),E?E(e,{isActive:i,isSelected:r,isDisabled:n}):(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)}),eQ&&(0,v.jsxs)(Ag,{id:z(eW.length),isActive:et===eW.length,isSelected:!1,onSelectAction:e0,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(er.current="mouse",et!==eW.length&&en(eW.length))},className:mP("text-primary/90 font-medium border-t border-border/40",null==O?void 0:O.item),children:[(0,v.jsx)(Ap,{className:"mr-3 flex-shrink-0"}),(0,v.jsx)("span",{children:F(U)})]})]}):(0,v.jsx)("li",{className:mP("m3-auto-item p-4 px-4 text-sm text-center text-muted-foreground",null==O?void 0:O.emptyState),children:M})})})})})})]})]})}function Ax(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Aj(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 AS(e){return function(e){if(Array.isArray(e))return Ax(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Aj(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 Aj(e,t){if(e){if("string"==typeof e)return Ax(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ax(e,t)}}Ag.displayName="M3AutocompleteItem";var AO=function(e,t){var n,r=t.trim().toLowerCase();return!r||[e.label,e.value,e.description].concat(AS(null!=(n=e.keywords)?n:[])).filter(Boolean).some(function(e){return String(e).toLowerCase().includes(r)})};function Ak(e){var t,n,r=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,w=e.filterFn,S=e.onSearchChange,j=e.side,O=void 0===j?"auto":j,k=e.align,E=void 0===k?"center":k,A=e.sideOffset,D=void 0===A?4:A,P=e.renderItem,T=e.renderValue,C=e.triggerIcon,N=e.checkIcon,M=e.name,R=e.id,I=e["aria-label"],L=e.classNames,F=e.className,B=e.style,V=g.useId(),z="".concat(V,"-listbox"),W=function(e){return"".concat(V,"-option-").concat(e)},U=void 0!==a,$=Aw(g.useState(void 0===i?"":i),2),H=$[0],G=$[1],K=U?a:H,q=void 0!==s,Y=Aw(g.useState(void 0!==l&&l),2),Z=Y[0],X=Y[1],Q=q?s:Z,J=g.useCallback(function(e){q||X(e),null==u||u(e)},[q,u]),ee=Aw(g.useState(""),2),et=ee[0],en=ee[1],er=Aw(g.useState(0),2),ea=er[0],ei=er[1],eo=Aw(g.useState("bottom"),2),es=eo[0],el=eo[1],eu=g.useRef("mouse"),ec=g.useRef(null),ed=g.useRef(null),ef=g.useRef(null),ep=g.useRef(null),eh=g.useMemo(function(){return r.find(function(e){return e.value===K})},[r,K]),em=g.useMemo(function(){if(!1===w)return r;var e=null!=w?w:AO;return r.filter(function(t){return e(t,et)})},[r,et,w]),ey=g.useCallback(function(e){var t,n=y&&e===K?"":e;U||G(n),null==o||o(n),x&&(J(!1),null==(t=ed.current)||t.focus())},[y,K,U,o,x,J]);g.useEffect(function(){if(!Q)return void en("");var e=em.findIndex(function(e){return e.value===K&&!e.disabled});ei(e>=0?e:Math.max(0,em.findIndex(function(e){return!e.disabled})));var t=requestAnimationFrame(function(){var e;return null==(e=ef.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(t)}},[Q]),g.useLayoutEffect(function(){if(Q&&ec.current){if("auto"!==O)return void el(O);var e=ec.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;el(t<340&&n>t?"top":"bottom")}},[Q,O]),g.useEffect(function(){if(Q){var e=function(e){ec.current&&!ec.current.contains(e.target)&&J(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[Q,J]),g.useEffect(function(){Q&&ei(Math.max(0,em.findIndex(function(e){return!e.disabled})))},[et]),g.useEffect(function(){var e,t;Q&&"keyboard"===eu.current&&(null==(t=ep.current)||null==(e=t.querySelector('[data-index="'.concat(ea,'"]')))||e.scrollIntoView({block:"nearest"}))},[ea,Q]);var ev=function(e,t){var n=em.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!em[r=(r+e+n)%n].disabled)return r;return t},eg=mP("bottom"===es?"top-full":"bottom-full","start"===E&&"left-0","center"===E&&"left-1/2","end"===E&&"right-0"),eb=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},"bottom"===es?{marginTop:D}:{marginBottom:D}),n=n={"--egen-combobox-to":"center"===E?"translateX(-50%)":"translateX(0)","--egen-combobox-from-bottom":"".concat("center"===E?"translateX(-50%) ":"","translateY(-8px)"),"--egen-combobox-from-top":"".concat("center"===E?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===E?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),ex=[];em.forEach(function(e,t){var n=ex[ex.length-1];n&&n.heading===e.group?n.entries.push({item:e,index:t}):ex.push({heading:e.group,entries:[{item:e,index:t}]})});var ew=function(e){var t=e.item,n=e.index,r=K===t.value,a=ea===n;return(0,v.jsxs)("div",{id:W(n),role:"option","data-index":n,"data-selected":a,"data-disabled":t.disabled?"true":void 0,"aria-selected":r,"aria-disabled":t.disabled||void 0,onMouseMove:function(){t.disabled||(eu.current="mouse",ea!==n&&ei(n))},onClick:function(){return!t.disabled&&ey(t.value)},className:mP("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==L?void 0:L.item),children:[P?P(t,{isActive:a,isSelected:r}):(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]}),N&&r?(0,v.jsx)("span",{className:mP("ml-auto",null==L?void 0:L.itemCheck),children:N}):(0,v.jsx)(EK,{className:mP("ml-auto",r?"opacity-100":"opacity-0",null==L?void 0:L.itemCheck)})]},t.value)};return(0,v.jsxs)("div",{ref:ec,style:B,className:mP("relative w-full max-w-xs",F,null==L?void 0:L.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:K}):null,(0,v.jsxs)("button",{ref:ed,id:R,type:"button",role:"combobox","aria-expanded":Q,"aria-haspopup":"listbox","aria-controls":Q?z:void 0,"aria-label":I,disabled:void 0!==c&&c,onClick:function(){return J(!Q)},onKeyDown:function(e){Q||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),J(!0))},className:mP("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==L?void 0:L.trigger),children:[(0,v.jsx)("span",{className:"min-w-0 truncate",children:T?T(eh):eh?eh.label:void 0===d?"Select...":d}),null!=C?C:(0,v.jsx)(Eq,{className:"size-4 shrink-0 opacity-50"})]}),Q?(0,v.jsx)("div",{"data-side":es,"data-state":"open",style:eb,className:mP("egen-combobox-content absolute z-50 w-72 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",eg,null==L?void 0:L.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),J(!1),null==(t=ed.current)||t.focus();return}if("Tab"===e.key)return void J(!1);if(0!==em.length)switch(e.key){case"ArrowDown":e.preventDefault(),eu.current="keyboard",ei(function(e){return ev(1,e)});break;case"ArrowUp":e.preventDefault(),eu.current="keyboard",ei(function(e){return ev(-1,e)});break;case"Home":e.preventDefault(),eu.current="keyboard",ei(Math.max(0,em.findIndex(function(e){return!e.disabled})));break;case"End":e.preventDefault(),eu.current="keyboard";var n=AS(em).reverse().findIndex(function(e){return!e.disabled});ei(n>=0?em.length-1-n:0);break;case"Enter":e.preventDefault();var r=em[ea];r&&!r.disabled&&ey(r.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:mP("flex h-9 items-center gap-2 border-b border-border px-3",null==L?void 0:L.searchWrapper),children:[(0,v.jsx)(EY,{className:mP("size-4 shrink-0 opacity-50",null==L?void 0:L.searchIcon)}),(0,v.jsx)("input",{ref:ef,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":z,"aria-activedescendant":em.length?W(ea):void 0,placeholder:void 0===f?"Search...":f,value:et,onChange:function(e){en(e.target.value),eu.current="keyboard",null==S||S(e.target.value)},className:mP("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==L?void 0:L.searchInput)})]}):(0,v.jsx)("input",{ref:ef,readOnly:!0,"aria-label":I,"aria-controls":z,"aria-activedescendant":em.length?W(ea):void 0,className:"sr-only"}),(0,v.jsx)("div",{ref:ep,id:z,role:"listbox",className:mP("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",null==L?void 0:L.list),children:0===em.length?(0,v.jsx)("div",{className:mP("py-6 text-center text-sm",null==L?void 0:L.empty),children:void 0===p?"No results found.":p}):ex.map(function(e,t){var n;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:mP("overflow-hidden p-1 text-foreground",null==L?void 0:L.group),children:[e.heading?(0,v.jsx)("div",{className:mP("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==L?void 0:L.groupHeading),children:e.heading}):null,e.entries.map(ew)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))})})]})}):null]})}function AE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AD(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function AP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function AT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||AN(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 AC(e){return function(e){if(Array.isArray(e))return AA(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AN(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 AN(e,t){if(e){if("string"==typeof e)return AA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AA(e,t)}}var AM=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:[e]},AR=function(e){var t;return Array.isArray(e)?{items:e,hasMore:!1}:{items:null!=(t=e.items)?t:[],hasMore:!!e.hasMore}},AI=function(e){return"number"==typeof e?"".concat(e,"px"):e};function A_(e){var t,n,r,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,w=void 0!==x&&x,S=e.filterFn,j=e.debounceMs,O=e.minQueryLength,k=void 0===O?0:O,E=e.fetchOnOpen,A=e.cacheResults,D=void 0===A||A,P=e.reloadKey,T=e.initialOptions,C=e.resolveOption,N=e.open,M=e.defaultOpen,R=e.onOpenChange,I=e.disabled,L=void 0!==I&&I,F=e.name,B=e.id,V=e["aria-label"],z=e.label,W=e.placeholder,U=void 0===W?"Select...":W,$=e.searchPlaceholder,H=e.noResultsMessage,G=e.minQueryMessage,K=e.loadingMessage,q=e.retryLabel,Y=e.clearLabel,Z=e.removeLabel,X=void 0===Z?function(e){return"Remove ".concat(e)}:Z,Q=e.errorMessage,J=void 0===Q?"Failed to fetch options":Q,ee=e.loadMoreErrorLabel,et=e.searchable,en=e.clearable,er=void 0===en||en,ea=e.showClearButton,ei=e.closeOnSelect,eo=e.width,es=e.contentWidth,el=void 0===es?"trigger":es,eu=e.side,ec=void 0===eu?"auto":eu,ed=e.align,ef=void 0===ed?"start":ed,ep=e.sideOffset,eh=void 0===ep?4:ep,em=e.maxListHeight,ey=void 0===em?300:em,ev=e.loadingSkeleton,eg=e.loadingIndicator,eb=e.notFound,ex=e.renderError,ew=e.header,eS=e.footer,ej=e.triggerIcon,eO=e.checkIcon,ek=e.controllerRef,eE=e.classNames,eA=e.className,eD=e.triggerClassName,eP=e.style,eT=!0===e.multiple,eC=!0===e.multiple?e.maxSelected:void 0,eN=!0===e.multiple&&null!=(u=e.maxVisibleTags)?u:3,eM=!0===e.multiple?e.renderTag:void 0,eR=null!=ei?ei:!eT,eI=g.useId(),e_="".concat(eI,"-listbox"),eL=function(e){return"".concat(eI,"-option-").concat(e)},eF=g.useCallback(function(e){return p?p(e):f(e)},[p,f]),eB=void 0!==e.value,eV=AT(g.useState(function(){return AM(e.defaultValue)}),2),ez=eV[0],eW=eV[1],eU=eB?AM(e.value):ez,e$=void 0!==N,eH=AT(g.useState(void 0!==M&&M),2),eG=eH[0],eK=eH[1],eq=e$?N:eG,eY=g.useCallback(function(e){e$||eK(e),null==R||R(e)},[e$,R]),eZ=g.useRef(new Map),eX=g.useRef(new Set),eQ=AT(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 eJ=g.useRef(C);eJ.current=C;var e0=eU.join("\0");g.useEffect(function(){var e=eJ.current;if(e){var t=!1;return eU.forEach(function(n){eZ.current.has(n)||eX.current.has(n)||(eX.current.add(n),Promise.resolve(e(n)).then(function(e){t||void 0===e||(eZ.current.set(n,e),eQ())}).catch(function(){}))}),function(){t=!0}}},[e0]);var e1=AT(g.useState(""),2),e2=e1[0],e3=e1[1],e4=(t=w?"":e2,n=w?0:void 0===j?300:j,i=(a=function(e){if(Array.isArray(e))return e}(r=g.useState(t))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(r)||function(e){if(e){if("string"==typeof e)return AE(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 AE(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.")}())[0],o=a[1],g.useEffect(function(){if(!(n<=0)){var e=setTimeout(function(){return o(t)},n);return function(){return clearTimeout(e)}}},[t,n]),n<=0?t:i),e5=e4.trim(),e6=!w&&e5.length>0&&e5.length<k,e8=AT(g.useState([]),2),e9=e8[0],e7=e8[1],te=AT(g.useState("idle"),2),tt=te[0],tn=te[1],tr=AT(g.useState(null),2),ta=tr[0],ti=tr[1],to=AT(g.useState(!1),2),ts=to[0],tl=to[1],tu=AT(g.useState(!1),2),tc=tu[0],td=tu[1],tf=AT(g.useState(!1),2),tp=tf[0],th=tf[1],tm=AT(g.useState(0),2),ty=tm[0],tv=tm[1],tg=g.useRef(d);tg.current=d;var tb=g.useRef(f);tb.current=f;var tx=g.useRef(new Map),tw=g.useRef(0),tS=g.useRef(0),tj=g.useRef(null),tO=(eq||!(void 0===E||E))&&!e6,tk="".concat(null!=P?P:"","\0").concat(ty,"\0").concat(""===e5?"":e4),tE=g.useCallback(function(e){e.forEach(function(e){return eZ.current.set(tb.current(e),e)})},[]);g.useEffect(function(){if(tO){var e,t=D?tx.current.get(tk):void 0;if(t){e7(t.items),tl(t.hasMore),th(!1),tS.current=t.page,ti(null),tn("ready");return}null==(e=tj.current)||e.abort();var n=new AbortController,r=++tw.current;return tn("loading"),ti(null),th(!1),Promise.resolve().then(function(){return tg.current(""===e5?"":e4,{signal:n.signal,page:0})}).then(function(e){if(!n.signal.aborted&&r===tw.current){var t=AR(e);tE(t.items),D&&tx.current.set(tk,{items:t.items,hasMore:t.hasMore,page:0}),tS.current=0,e7(t.items),tl(t.hasMore),tn("ready"),eQ()}}).catch(function(e){if(!n.signal.aborted&&r===tw.current){var t;ti((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&e.message?e.message:J),tn("error")}}),function(){return n.abort()}}},[tO,tk,D]);var tA=g.useCallback(function(){tx.current.delete(tk),tv(function(e){return e+1})},[tk]),tD=g.useCallback(function(){var e;return(e=function(){var e,t,n,r,a;return function(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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"!==tt||!ts||tc)return[2];e=tw.current,t=tS.current+1,tj.current=n=new AbortController,td(!0),th(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,tg.current(""===e5?"":e4,{signal:n.signal,page:t})];case 2:if(r=i.sent(),n.signal.aborted||e!==tw.current)return[2];return tE((a=AR(r)).items),e7(function(e){var n=new Set(e.map(function(e){return tb.current(e)})),r=AC(e).concat(AC(a.items.filter(function(e){return!n.has(tb.current(e))})));return D&&tx.current.set(tk,{items:r,hasMore:a.hasMore,page:t}),r}),tS.current=t,tl(a.hasMore),[3,5];case 3:return i.sent(),n.signal.aborted||e!==tw.current||th(!0),[3,5];case 4:return tj.current===n&&(tj.current=null,td(!1)),[7];case 5:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){AD(i,r,a,o,s,"next",e)}function s(e){AD(i,r,a,o,s,"throw",e)}o(void 0)})})()},[tt,ts,tc,e5,e4,tE,D,tk]);g.useEffect(function(){return function(){var e;tw.current+=1,null==(e=tj.current)||e.abort()}},[]);var tP=g.useMemo(function(){return!1===S?null:S||(w?function(e,t){var n=t.trim().toLowerCase();return!n||eF(e).toLowerCase().includes(n)}:null)},[S,w,eF]),tT=g.useMemo(function(){return tP&&e2?e9.filter(function(e){return tP(e,e2)}):e9},[e9,tP,e2]),tC=eU.map(function(e){return eZ.current.get(e)}),tN=eT&&void 0!==eC&&eU.length>=eC,tM=function(e){return!!(null==b?void 0:b(e))||tN&&!eU.includes(f(e))},tR=function(t){var n,r,a;eB||eW(t),!0===e.multiple?null==(n=e.onChange)||n.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!=(r=t[0])?r:"",void 0!==t[0]?eZ.current.get(t[0]):void 0)},tI=g.useRef(null),t_=g.useRef(null),tL=g.useRef(null),tF=g.useRef(null),tB=g.useRef(null),tV=function(e){var t,n=f(e);if(eZ.current.set(n,e),eT){var r=eU.includes(n);if(!r&&tN)return;tR(r?eU.filter(function(e){return e!==n}):AC(eU).concat([n]))}else tR(er&&eU[0]===n?[]:[n]);eR&&(eY(!1),null==(t=tI.current)||t.focus())},tz=function(e){return tR(eU.filter(function(t){return t!==e}))},tW=function(){return tR([])};g.useImperativeHandle(ek,function(){return{open:function(){return!L&&eY(!0)},close:function(){return eY(!1)},focus:function(){var e;return null==(e=tI.current)?void 0:e.focus()},clear:tW,refresh:function(){tx.current.clear(),tv(function(e){return e+1})}}},[L,eY,eU,eB]);var tU=AT(g.useState(0),2),t$=tU[0],tH=tU[1],tG=AT(g.useState("bottom"),2),tK=tG[0],tq=tG[1],tY=g.useRef("mouse"),tZ=function(){return Math.max(0,tT.findIndex(function(e){return!tM(e)}))};g.useEffect(function(){if(!eq)return void e3("");var e=requestAnimationFrame(function(){var e;return null==(e=tL.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[eq]),g.useEffect(function(){if(eq){var e=eT||void 0===eU[0]?-1:tT.findIndex(function(e){return f(e)===eU[0]&&!tM(e)});tH(e>=0?e:tZ())}},[eq,e2,tt]),g.useLayoutEffect(function(){if(eq&&t_.current){if("auto"!==ec)return void tq(ec);var e=t_.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;tq(t<Math.min(ey,300)+48&&n>t?"top":"bottom")}},[eq,ec,ey]),g.useEffect(function(){if(eq){var e=function(e){t_.current&&!t_.current.contains(e.target)&&eY(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[eq,eY]),g.useEffect(function(){var e,t,n;eq&&"keyboard"===tY.current&&(null==(n=tF.current)||null==(t=n.querySelector('[data-index="'.concat(t$,'"]')))||null==(e=t.scrollIntoView)||e.call(t,{block:"nearest"}))},[t$,eq]),g.useEffect(function(){if(!(!eq||!ts||"ready"!==tt||tp||"u"<typeof IntersectionObserver)){var e=tB.current;if(e){var t=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&tD()},{root:tF.current,rootMargin:"48px"});return t.observe(e),function(){return t.disconnect()}}}},[eq,ts,tt,tp,tD,tT.length]);var tX=function(e,t){var n=tT.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!tM(tT[r=(r+e+n)%n]))return r;return t},tQ=mP("bottom"===tK?"top-full":"bottom-full","start"===ef&&"left-0","center"===ef&&"left-1/2","end"===ef&&"right-0"),tJ=(s=AP({width:"trigger"===el?"100%":AI(el)},"bottom"===tK?{marginTop:eh}:{marginBottom:eh}),l=l={"--egen-async-select-to":"center"===ef?"translateX(-50%)":"translateX(0)","--egen-async-select-from-bottom":"".concat("center"===ef?"translateX(-50%) ":"","translateY(-8px)"),"--egen-async-select-from-top":"".concat("center"===ef?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===ef?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(l)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(l,e))}),s),t0=[];tT.forEach(function(e,t){var n=null==y?void 0:y(e),r=t0[t0.length-1];r&&r.heading===n?r.entries.push({item:e,index:t}):t0.push({heading:n,entries:[{item:e,index:t}]})});var t1=function(e){var t=e.item,n=e.index,r=f(t),a=eU.includes(r),i=t$===n,o=tM(t);return(0,v.jsxs)("div",{id:eL(n),role:"option","data-index":n,"data-selected":i,"data-disabled":o?"true":void 0,"aria-selected":a,"aria-disabled":o||void 0,onMouseMove:function(){o||(tY.current="mouse",t$!==n&&tH(n))},onClick:function(){return!o&&tV(t)},className:mP("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==eE?void 0:eE.item),children:[h?h(t,{isActive:i,isSelected:a,isDisabled:o}):eF(t),eO&&a?(0,v.jsx)("span",{className:mP("ml-auto",null==eE?void 0:eE.itemCheck),children:eO}):(0,v.jsx)(EK,{className:mP("ml-auto size-3",a?"opacity-100":"opacity-0",null==eE?void 0:eE.itemCheck)})]},r)},t2=function(e,t){return void 0!==t?eF(t):e},t3=eU.length>0,t4=null!=$?$:"Search ".concat(z.toLowerCase(),"..."),t5=null!=H?H:"No ".concat(z.toLowerCase()," found."),t6="loading"===tt;return(0,v.jsxs)("div",{ref:t_,style:AP({width:AI(void 0===eo?"200px":eo)},eP),className:mP("relative",eA,null==eE?void 0:eE.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'}}),F?eT?eU.map(function(e){return(0,v.jsx)("input",{type:"hidden",name:F,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:F,value:null!=(c=eU[0])?c:""}):null,(0,v.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:t6?void 0===K?"Loading...":K:""}),(0,v.jsxs)("div",{ref:tI,id:B,role:"combobox",tabIndex:L?-1:0,"aria-expanded":eq,"aria-haspopup":"listbox","aria-controls":eq?e_:void 0,"aria-label":null!=V?V:z,"aria-disabled":L||void 0,"aria-busy":t6||void 0,"data-disabled":L?"true":void 0,"data-state":eq?"open":"closed",onClick:function(){return!L&&eY(!eq)},onKeyDown:function(e){!L&&(eq||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key&&" "!==e.key?!eq&&eT&&"Backspace"===e.key&&t3&&tz(eU[eU.length-1]):(e.preventDefault(),eY(!0)))},className:mP("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==eE?void 0:eE.trigger),children:[(0,v.jsx)("span",{className:mP("flex min-w-0 flex-1 items-center",null==eE?void 0:eE.triggerValue),children:function(){if(!t3)return(0,v.jsx)("span",{className:mP("truncate text-muted-foreground",null==eE?void 0:eE.placeholder),children:U});if(!eT){var e=tC[0];return(0,v.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?m?m(e):eF(e):eU[0]})}var t=eU.slice(0,Math.max(0,eN)),n=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),n=t2(e,t);return(0,v.jsxs)("span",{className:mP("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==eE?void 0:eE.tag),children:[(0,v.jsx)("span",{className:"truncate",children:eM?eM(t,e):n}),L?null:(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":X(n),onMouseDown:function(e){return e.preventDefault()},onClick:function(t){t.stopPropagation(),tz(e)},className:mP("rounded-sm opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eE?void 0:eE.tagRemove),children:(0,v.jsx)(EZ,{className:"size-3"})})]},e)}),n.length>0?(0,v.jsxs)("span",{title:n.map(function(e){return t2(e,eZ.current.get(e))}).join(", "),className:mP("rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",null==eE?void 0:eE.tag),children:["+",n.length]}):null]})}()}),void 0!==ea&&ea&&t3&&!L?(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":void 0===Y?"Clear":Y,onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),tW()},className:mP("shrink-0 rounded-sm opacity-50 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eE?void 0:eE.clearButton),children:(0,v.jsx)(EZ,{className:"size-4"})}):null,null!=ej?ej:(0,v.jsx)(Eq,{className:mP("size-3 shrink-0 opacity-50",null==eE?void 0:eE.triggerIcon)})]}),eq?(0,v.jsx)("div",{"data-side":tK,"data-state":"open",style:tJ,className:mP("egen-async-select-content absolute z-50 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",tQ,null==eE?void 0:eE.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),eY(!1),null==(t=tI.current)||t.focus();return}if("Tab"===e.key)return void eY(!1);if("Backspace"===e.key&&eT&&""===e2&&eU.length>0)return void tz(eU[eU.length-1]);if(0!==tT.length)switch(e.key){case"ArrowDown":e.preventDefault(),tY.current="keyboard",tH(function(e){return tX(1,e)});break;case"ArrowUp":e.preventDefault(),tY.current="keyboard",tH(function(e){return tX(-1,e)});break;case"Home":e.preventDefault(),tY.current="keyboard",tH(tZ());break;case"End":e.preventDefault(),tY.current="keyboard";var n=AC(tT).reverse().findIndex(function(e){return!tM(e)});tH(n>=0?tT.length-1-n:0);break;case"Enter":e.preventDefault();var r=tT[t$];r&&!tM(r)&&tV(r)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[ew?(0,v.jsx)("div",{className:null==eE?void 0:eE.header,children:ew}):null,void 0===et||et?(0,v.jsxs)("div",{className:mP("relative flex h-9 items-center gap-2 border-b border-border px-3",null==eE?void 0:eE.searchWrapper),children:[(0,v.jsx)(EY,{className:mP("size-4 shrink-0 opacity-50",null==eE?void 0:eE.searchIcon)}),(0,v.jsx)("input",{ref:tL,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":e_,"aria-activedescendant":tT.length?eL(t$):void 0,placeholder:t4,value:e2,onChange:function(e){e3(e.target.value),tY.current="keyboard"},className:mP("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==eE?void 0:eE.searchInput)}),t6&&tT.length>0?(0,v.jsx)("span",{className:mP("flex shrink-0 items-center text-muted-foreground",null==eE?void 0:eE.searchSpinner),"aria-hidden":!0,children:null!=eg?eg:(0,v.jsx)(EX,{className:"size-4 animate-spin"})}):null]}):(0,v.jsx)("input",{ref:tL,readOnly:!0,"aria-label":null!=V?V:z,"aria-controls":e_,"aria-activedescendant":tT.length?eL(t$):void 0,className:"sr-only"}),(0,v.jsxs)("div",{ref:tF,id:e_,role:"listbox","aria-multiselectable":eT||void 0,"aria-busy":t6||void 0,style:{maxHeight:ey},className:mP("scroll-py-1 overflow-x-hidden overflow-y-auto",null==eE?void 0:eE.list),children:[e6?(0,v.jsx)("div",{className:mP("py-6 text-center text-sm text-muted-foreground",null==eE?void 0:eE.hint),children:null!=G?G:"Type at least ".concat(k," characters to search.")}):"error"===tt?ex?ex(null!=ta?ta:J,tA):(0,v.jsxs)("div",{role:"alert",className:mP("flex flex-col items-center gap-2 p-4 text-center text-sm text-destructive",null==eE?void 0:eE.error),children:[(0,v.jsx)("span",{children:null!=ta?ta:J}),(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===q?"Retry":q})]}):(t6||"idle"===tt)&&0===tT.length?null!=ev?ev:(0,v.jsx)("div",{className:mP("p-1",null==eE?void 0:eE.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!=eb?eb:(0,v.jsx)("div",{className:mP("py-6 text-center text-sm",null==eE?void 0:eE.empty),children:t5}):t0.map(function(e,t){var n;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:mP("overflow-hidden p-1 text-foreground",null==eE?void 0:eE.group),children:[e.heading?(0,v.jsx)("div",{className:mP("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==eE?void 0:eE.groupHeading),children:e.heading}):null,e.entries.map(t1)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))}),ts&&"ready"===tt?(0,v.jsx)("div",{ref:tB,className:mP("flex items-center justify-center p-2 text-xs text-muted-foreground",null==eE?void 0:eE.loadMore),children:tp?(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===ee?"Failed to load more. Retry":ee}):tc?null!=eg?eg:(0,v.jsx)(EX,{className:"size-4 animate-spin"}):null}):null]}),eS?(0,v.jsx)("div",{className:null==eE?void 0:eE.footer,children:eS}):null]})}):null]})}function AL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AF(e,t){if(e){if("string"==typeof e)return AL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AL(e,t)}}var AB=function(e){var t,n=e.images,r=e.cardWidth,a=void 0===r?256:r,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:n.length},function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||AF(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:n.length},function(e,t){return t}))},[n.length]);var S=(0,g.useCallback)(function(e,t){var n,r,a=null==(r=getComputedStyle(t||document.documentElement))||null==(n=r.getPropertyValue(e))?void 0:n.trim();return a?a.endsWith("ms")?parseFloat(a):a.endsWith("s")?1e3*parseFloat(a):parseFloat(a)||0:0},[]),j=(0,g.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),O=(0,g.useCallback)(function(){return j()[0]||null},[j]),k=(0,g.useCallback)(function(){j().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[j]),E=(0,g.useCallback)(function(e){var t=O();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[O]),A=(0,g.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,h.current=e;var t=O();t&&(t.style.transition="none")}},[O]),D=(0,g.useCallback)(function(){if(f.current){m.current&&(cancelAnimationFrame(m.current),m.current=null);var e=h.current-p.current,t=S("--card-swap-duration",d.current),n=O();if(n)if(n.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var r=Math.sign(e);n.style.setProperty("--swipe-x","".concat(300*r,"px")),n.style.setProperty("--swipe-rotate","".concat(20*r,"deg")),setTimeout(function(){O()===n&&n.style.setProperty("--swipe-rotate","".concat(-(20*r),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],r>0?"right":"left"),((function(e){if(Array.isArray(e))return AL(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||AF(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}},[S,O,E,c]),P=(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&&D()}))},[E,D]);return(0,g.useEffect)(function(){var e=d.current;if(e){var t=function(e){return A(e.clientX)},n=function(e){return P(e.clientX)},r=function(){return D()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",n),e.addEventListener("pointerup",r),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",r),m.current&&cancelAnimationFrame(m.current)}}},[A,P,D]),(0,g.useEffect)(function(){k()},[b,k]),(0,v.jsx)("section",{ref:d,className:w()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":n.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:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:n.length-t,width:a,height:o},children:(0,v.jsx)("img",{src:n[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(n[e],"-").concat(e))})})},AV=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,Az=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,AW=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,AU=/(^[#\.][a-z]|[a-y][a-z])/i,A$=Math.PI/180,AH=180/Math.PI,AG=Math.sin,AK=Math.cos,Aq=Math.abs,AY=Math.sqrt,AZ=Math.atan2,AX=function(e){return"string"==typeof e},AQ=function(e){return"number"==typeof e},AJ={},A0={},A1=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},A2=function(e){return Math.round(1e5*e)/1e5||0},A3=function(e){return Math.round(1e10*e)/1e10||0},A4=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},A5=function(e,t,n,r){var a=e[t],i=1===r?6:Ds(a,n,r);if((i||!r)&&i+n+2<a.length)return e.splice(t,0,a.slice(0,n+i+2)),a.splice(0,n+i),1},A6=function(e,t,n){var r=e.length,a=~~(n*r);if(e[a]>t){for(;--a&&e[a]>t;);a<0&&(a=0)}else for(;e[++a]<t&&a<r;);return a<r?a:r-1},A8=function(e,t){var n=e.length;for(t||e.reverse();n--;)e[n].reversed||function(e){var t,n=0;for(e.reverse();n<e.length;n+=2)t=e[n],e[n]=e[n+1],e[n+1]=t;e.reversed=!e.reversed}(e[n])},A9=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},A7=function(e,t){var n=e.length,r=e[n-1]||[],a=r.length;n&&t[0]===r[a-2]&&t[1]===r[a-1]&&(t=r.concat(t.slice(2)),n--),e[n]=t};function De(e){var t,n=(e=AX(e)&&AU.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return n&&(e=e.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(t=n._gsPath[e])&&!t._dirty?t:n._gsPath[e]=Dd(e)):e?AX(e)?Dd(e):AQ(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var Dt=function(e,t){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(e.attributes),i=a.length;for(t=","+t+",";--i>-1;)n=a[i].nodeName.toLowerCase(),0>t.indexOf(","+n+",")&&r.setAttributeNS(null,n,a[i].nodeValue);return r},Dn={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},Dr=function(e,t){for(var n=t?t.split(","):[],r={},a=n.length;--a>-1;)r[n[a]]=+e.getAttribute(n[a])||0;return r};function Da(e,t,n){var r,a=e[t],i=e[t+2],o=e[t+4];return a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,r=i+(o+(e[t+6]-o)*n-i)*n-a,a=e[t+1],i=e[t+3],o=e[t+5],a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,A2(AZ(i+(o+(e[t+7]-o)*n-i)*n-a,r)*AH)}function Di(e,t,n){var r=Math.max(0,~~(Aq((n=void 0===n?1:A3(n)||0)-(t=A3(t)||0))-1e-8)),a=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=A9(e[n],e[n].slice(0));return A9(e,t)}(e);if(t>n&&(t=1-t,n=1-n,A8(a),a.totalLength=0),t<0||n<0){var i=Math.abs(~~Math.min(t,n))+1;t+=i,n+=i}a.totalLength||Do(a);var o,s,l,u,c,d,f,p,h=n>1,m=Dl(a,t,AJ,!0),y=Dl(a,n,A0),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||r){for(o=b<x||j&&w<S||O&&y.t<m.t,A5(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-(n-t))?b=x-1:!y.t&&b?b--:A5(a,b,w,y.t)&&o&&x++,1===m.t&&(x=(x+1)%a.length),c=[],f=1+(d=a.length)*r,p=x,f+=(d-x+b)%d,u=0;u<f;u++)A7(c,a[p++%d]);a=c}else if(l=1===y.t?6:Ds(v,w,y.t),t!==n)for(s=Ds(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=Da(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 Do(e,t){var n,r,a;for(a=n=r=0;a<e.length;a++)e[a].resolution=~~t||12,n+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var n,r,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,A=(t?e.minLength:1e8)||1e8,D=k[O+(void 0)*b-1],P=t?k[O-1]:0;for(k.length=E.length=0,r=t+2;r<w;r+=6){if(a=e[r+4]-S,i=e[r+2]-S,o=e[r]-S,u=e[r+5]-j,c=e[r+3]-j,d=e[r+1]-j,s=l=f=p=0,.01>Aq(a)&&.01>Aq(u)&&Aq(o)+Aq(d)<.01)e.length>8&&(e.splice(r,6),r-=6,w-=6);else for(n=1;n<=b;n++)h=1-(m=x*n),s=l-(l=(m*m*a+3*h*(m*i+h*o))*m),(v=AY((f=p-(p=(m*m*u+3*h*(m*c+h*d))*m))*f+s*s))<A&&(A=v),P+=v,k[O++]=P;S+=a,j+=u}if(D)for(D-=P;O<k.length;O++)k[O]+=D;if(k.length&&A){if(e.totalLength=g=k[k.length-1]||0,e.minLength=A,g/A<9999)for(n=0,v=y=0;n<g;n+=A)E[v++]=k[y]<n?++y:y}else e.totalLength=k[0]=0;return t?P-k[t/2-1]:P}(e[a]),r+=e[a].length;return e.totalPoints=r,e.totalLength=n,e}function Ds(e,t,n){if(n<=0||n>=1)return 0;var r=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=r+(i-r)*n,f=i+(s-i)*n,p=a+(o-a)*n,h=o+(l-o)*n,m=d+(f-d)*n,y=p+(h-p)*n,v=s+(u-s)*n,g=l+(c-l)*n;return f+=(v-f)*n,h+=(g-h)*n,e.splice(t+2,4,A2(d),A2(p),A2(m),A2(y),A2(m+(f-m)*n),A2(y+(h-y)*n),A2(f),A2(h),A2(v),A2(g)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function Dl(e,t,n,r){n=n||{},e.totalLength||Do(e),(t<0||t>1)&&(t=A1(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:A6(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),r&&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 n.t=c,n.i=u,n.path=e,n.segment=f,n.segIndex=d,n}function Du(e,t,n,r){var a,i,o,s,l,u,c,d,f,p=e[0],h=r||{};if((t<0||t>1)&&(t=A1(t)),p.lookup||Do(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:A6(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=A2((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),h.y=A2((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),n&&(h.angle=p.totalLength?Da(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),h}function Dc(e,t,n,r,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*r+i,s[u+1]=c*n+d*a+o;return e._dirty=1,e}function Dd(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,h,m,y=(e+"").replace(AW,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(AV)||[],v=[],g=0,b=0,x=2/3,w=y.length,S=0,j="ERROR: malformed path: "+e,O=function(e,t,n,r){c=(n-e)/3,d=(r-t)/3,s.push(e+c,t+d,n-c,r-d,n,r)};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--,r=+y[t+1],a=+y[t+2],o&&(r+=g,a+=b),t||(l=r,u=a),"M"===i)s&&(s.length<8?v.length-=1:S+=s.length,A4(s)),g=l=r,b=u=a,s=[r,a],v.push(s),t+=2,i="L";else if("C"===i)s||(s=[0,0]),o||(g=b=0),s.push(r,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,r,a,g+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===i)c=g+(r-g)*x,d=b+(a-b)*x,o||(g=b=0),g+=+y[t+3],b+=+y[t+4],s.push(c,d,g+(r-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,r+(g+1.5*c-r)*x,a+(b+1.5*d-a)*x,g=r,b=a),t+=2;else if("H"===i)O(g,b,g=r,b),t+=1;else if("V"===i)O(g,b,g,b=r+(o?b-g:0)),t+=1;else if("L"===i||"Z"===i)"Z"===i&&(r=l,a=u,s.closed=!0),("L"===i||Aq(g-r)>.5||Aq(b-a)>.5)&&(O(g,b,r,a),"L"===i&&(t+=2)),g=r,b=a;else if("A"===i){if(h=y[t+4],m=y[t+5],c=y[t+6],d=y[t+7],n=7,h.length>1&&(h.length<3?(d=c,c=m,n--):(d=m,c=h.substr(2),n-=2),m=h.charAt(1),h=h.charAt(0)),f=function(e,t,n,r,a,i,o,s,l){if(e!==s||t!==l){n=Aq(n),r=Aq(r);var u=a%360*A$,c=AK(u),d=AG(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/(n*n)+b/(r*r);x>1&&(n=AY(x)*n,r=AY(x)*r);var w=n*n,S=r*r,j=(w*S-w*b-S*g)/(w*b+S*g);j<0&&(j=0);var O=(i===o?-1:1)*AY(j),k=n*v/r*O,E=-(r*y/n*O),A=(e+s)/2+(c*k-d*E),D=(t+l)/2+(d*k+c*E),P=(y-k)/n,T=(v-E)/r,C=(-y-k)/n,N=(-v-E)/r,M=P*P+T*T,R=(T<0?-1:1)*Math.acos(P/AY(M)),I=(P*N-T*C<0?-1:1)*Math.acos((P*C+T*N)/AY(M*(C*C+N*N)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),R%=p;var L,F=Math.ceil(Aq(I%=p)/(p/4)),B=[],V=I/F,z=4/3*AG(V/2)/(1+AK(V/2)),W=c*n,U=d*n,$=-(d*r),H=c*r;for(L=0;L<F;L++)y=AK(a=R+L*V),v=AG(a),P=AK(a+=V),T=AG(a),B.push(y-z*v,v+z*y,P+z*T,T-z*P,P,T);for(L=0;L<B.length;L+=2)y=B[L],v=B[L+1],B[L]=y*W+v*$+A,B[L+1]=y*U+v*H+D;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+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);g=s[s.length-2],b=s[s.length-1]}else console.log(j);return(t=s.length)<6?(v.pop(),t=0):A4(s),v.totalPoints=S+t,v}function Df(e,t){1e-4>Aq(e[0]-e[2])&&1e-4>Aq(e[1]-e[3])&&(e=e.slice(2));var n,r,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(n=g,r=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-n)/4,b-(b-r)/4,g,b,g+(x-g)/4,b+(w-b)/4);continue}s=AY(i*i+o*o),l=AY(j*j+O*O),u=AY(Math.pow(j/l+i/s,2)+Math.pow(O/l+o/s,2)),c=(s+l)*t*.25/u,d=g-(g-n)*(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-r)*(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(A2(d+p),A2(h+y),A2(g),A2(b),A2(f+p),A2(m+y))}return g!==x||b!==w||S.length<4?S.push(A2(x),A2(w),A2(x),A2(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 Dp(e){AQ(e[0])&&(e=[e]);var t,n,r,a,i="",o=e.length;for(n=0;n<o;n++){for(i+="M"+A2((a=e[n])[0])+","+A2(a[1])+" C",t=a.length,r=2;r<t;r++)i+=A2(a[r++])+","+A2(a[r++])+" "+A2(a[r++])+","+A2(a[r++])+" "+A2(a[r++])+","+A2(a[r])+" ";a.closed&&(i+="z")}return i}var Dh,Dm,Dy,Dv,Dg,Db,Dx,Dw,DS,Dj,DO,Dk="transform",DE=Dk+"Origin",DA=function(e){var t=e.ownerDocument||e;for(!(Dk in e.style)&&("msTransform"in e.style)&&(DE=(Dk="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Dv=window,DS=new DL,t){Dy=t,Dg=t.documentElement,Db=t.body,(Dj=Dy.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),r=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.style.position="static",n.style.transform="translate3d(0,0,1px)",DO=r.offsetParent!==n,a.removeChild(n))}return t},DD=function(e){for(var t,n;e&&e!==Db;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},DP=[],DT=[],DC=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},DN=function e(t,n){if(t.parentNode&&(Dy||DA(t))){var r=DC(t),a=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=r?n?"rect":"g":"div",o=100*(2===n),s=100*(3===n),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=Dy.createElementNS?Dy.createElementNS(a.replace(/^https/,"http"),i):Dy.createElement(i);return n&&(r?(Dw||(Dw=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Dw.appendChild(u)):(Dx||Object.assign((Dx=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Dx.appendChild(u))),u}throw"Need document and parent."},DM=function(e){for(var t=new DL,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},DR=function(e){var t,n=e.getCTM();return n||(t=e.style[Dk],e.style[Dk]="none",e.appendChild(Dj),n=Dj.getCTM(),e.removeChild(Dj),t?e.style[Dk]=t:e.style.removeProperty(Dk.replace(/([A-Z])/g,"-$1").toLowerCase())),n||DS.clone()},DI=function(e,t){var n,r,a,i,o,s,l=DC(e),u=e===l,c=l?DP:DT,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===Dv)return e;if(c.length||c.push(DN(e,1),DN(e,2),DN(e,3)),n=l?Dw:Dx,l)u?(i=-(a=DR(e)).e/a.a,o=-a.f/a.d,r=DS):e.getBBox?(a=e.getBBox(),i=(r=(r=e.transform?e.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?DM(r):r.getItem(0).matrix:DS).a*a.x+r.c*a.y,o=r.b*a.x+r.d*a.y):(r=new DL,i=o=0),t&&"g"===e.tagName.toLowerCase()&&(i=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+i)+","+(r.f+o)+")");else{if(i=o=0,DO)for(r=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==r&&a.parentNode;)(Dv.getComputedStyle(a)[Dk]+"").length>4&&(i=a.offsetLeft,o=a.offsetTop,a=0);if("absolute"!==(s=Dv.getComputedStyle(e)).position&&"fixed"!==s.position)for(r=e.offsetParent;d&&d!==r;)i+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(a=n.style).top=e.offsetTop-o+"px",a.left=e.offsetLeft-i+"px",a[Dk]=s[Dk],a[DE]=s[DE],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(n)}return n},D_=function(e,t,n,r,a,i,o){return e.a=t,e.b=n,e.c=r,e.d=a,e.e=i,e.f=o,e},DL=function(){function e(e,t,n,r,a,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===i&&(i=0),D_(this,e,t,n,r,a,i)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,a=this.e,i=this.f,o=e*r-t*n||1e-10;return D_(this,r/o,-t/o,-n/o,e/o,(n*i-r*a)/o,-(e*i-t*a)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=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 D_(this,s*t+u*r,s*n+u*a,l*t+c*r,l*n+c*a,i+d*t+f*r,o+d*n+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,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&a===e.d&&i===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var n=e.x,r=e.y,a=this.a,i=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=n*a+r*o+l||0,t.y=n*i+r*s+u||0,t},e}();function DF(e,t,n,r){if(!e||!e.parentNode||(Dy||DA(e)).documentElement===e)return new DL;var a=DD(e),i=DC(e)?DP:DT,o=DI(e,n),s=i[0].getBoundingClientRect(),l=i[1].getBoundingClientRect(),u=i[2].getBoundingClientRect(),c=o.parentNode,d=!r&&function e(t){return"fixed"===Dv.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new DL((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:Dv.pageXOffset||Dy.scrollLeft||Dg.scrollLeft||Db.scrollLeft||0),s.top+(d?0:Dv.pageYOffset||Dy.scrollTop||Dg.scrollTop||Db.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 DB,DV,Dz,DW,DU,D$,DH="x,translateX,left,marginLeft,xPercent".split(","),DG="y,translateY,top,marginTop,yPercent".split(","),DK=Math.PI/180,Dq=function(e,t,n,r){for(var a=t.length,i=2===r?0:r,o=0;o<a;o++)e[i]=parseFloat(t[o][n]),2===r&&(e[i+1]=0),i+=2;return e},DY=function(e,t,n){return parseFloat(e._gsap.get(e,t,n||"px"))||0},DZ=function(e){var t,n=e[0],r=e[1];for(t=2;t<e.length;t+=2)n=e[t]+=n,r=e[t+1]+=r},DX=function(e,t,n,r,a,i,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(DY(n,r,s),a?DY(n,a,l):0),o.relative&&DZ(t),t=[(a?Df:function(e,t){void 0===t&&(t=1);for(var n=e[0],r=0,a=[n,0],i=2;i<e.length;i+=2)a.push(n,r,e[i],r=(e[i]-n)*t/2,n=e[i],-r);return a})(t,o.curviness)]),t=i(D2(t,n,o)),D3(e,n,r,t,"x",s),a&&D3(e,n,a,t,"y",l),Do(t,o.resolution||(0===o.curviness?20:12))},DQ=function(e){return e},DJ=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,D0=function(e,t,n){var r,a=DF(e),i=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(r=e.viewBox.baseVal).width||(r={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):r=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(i=t.push?t[0]*(r?r.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(r?r.height:e.offsetHeight||0):t.y),n.apply(i||o?a.apply({x:i,y:o}):{x:a.e,y:a.f})},D1=function(e,t,n,r){var a,i=DF(e.parentNode,!0,!0),o=i.clone().multiply(DF(t)),s=D0(e,n,i),l=D0(t,r,i),u=l.x,c=l.y;return o.e=o.f=0,"auto"===r&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(DJ)||[],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},D2=function(e,t,n){var r,a,i,o=n.align,s=n.matrix,l=n.offsetX,u=n.offsetY,c=n.alignOrigin,d=e[0][0],f=e[0][1],p=DY(t,"x"),h=DY(t,"y");return e&&e.length?(o&&("self"===o||(r=DW(o)[0]||t)===t?Dc(e,1,0,0,1,p-d,h-f):(c&&!1!==c[2]?DB.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(DY(t,"xPercent")/100),-(DY(t,"yPercent")/100)],i=(a=D1(t,r,c,"auto")).apply({x:d,y:f}),Dc(e,a.a,a.b,a.c,a.d,p+a.e-(i.x-a.e),h+a.f-(i.y-a.f)))),s?Dc(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&Dc(e,1,0,0,1,l||0,u||0),e):De("M0,0L0,0")},D3=function(e,t,n,r,a,i){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[n],u=l&&0>l.indexOf(",")?l:n,c=e._pt=new DV(e._pt,t,u,0,0,DQ,0,o.set(t,u,e));c.u=Dz(o.get(t,u,i))||0,c.path=r,c.pp=a,e._props.push(u)},D4={version:"3.15.0",name:"motionPath",register:function(e,t,n){Dz=(DB=e).utils.getUnit,DW=DB.utils.toArray,DU=DB.core.getStyleSaver,D$=DB.core.reverting||function(){},DV=n},init:function(e,t,n){if(!DB)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!t.style&&t.path||(t={path:t});var r,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?Di(e,a,i):e});if(this.rawPaths=l,this.target=e,this.tween=n,this.styles=DU&&DU(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=Dz(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)Do(o=v(D2(De(t.path),e,t)),t.resolution),l.push(o),D3(this,e,t.x||"x",o,"x",t.unitX||"px"),D3(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!h&&~DH.indexOf(s)?h=s:!m&&~DG.indexOf(s)&&(m=s);for(s in h&&m?l.push(DX(this,Dq(Dq([],c,h,0),c,m,1),e,h,m,v,t,f||Dz(c[0][h]),p||Dz(c[0][m]))):h=m=0,y)s!==h&&s!==m&&l.push(DX(this,Dq([],c,s,2),e,s,0,v,t,Dz(c[0][s])))}n.vars.immediateRender&&this.render(n.progress(),this)},render:function(e,t){var n=t.rawPaths,r=n.length,a=t._pt;if(t.tween._time||!D$()){for(e>1?e=1:e<0&&(e=0);r--;)Du(n[r],e,!r&&t.rotate,n[r]);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,n[0].angle*(t.radians?DK:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return Do(De(e)).totalLength},sliceRawPath:Di,getRawPath:De,pointsToSegment:Df,stringToRawPath:Dd,rawPathToString:Dp,transformRawPath:Dc,getGlobalMatrix:DF,getPositionOnPath:Du,cacheRawPathMeasurements:Do,convertToPath:function(e,t){return DW(e).map(function(e){var n,r,a,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k;return n=!1!==t,"path"!==(k=e.tagName.toLowerCase())&&e.getBBox?(l=Dt(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),O=Dr(e,Dn[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,r="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"):r="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,r="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?r="M"+O.x1+","+O.y1+" L"+O.x2+","+O.y2:("polyline"===k||"polygon"===k)&&(r="M"+(a=(d=(e.getAttribute("points")+"").match(Az)||[]).shift())+","+(i=d.shift())+" L"+d.join(","),"polygon"===k&&(r+=","+a+","+i+"z")),l.setAttribute("d",Dp(l._gsRawPath=Dd(r))),n&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,n){var r=DF(t,!0,!0).multiply(DF(e));return n?r.apply(n):r},getAlignMatrix:D1,getRelativePosition:function(e,t,n,r){var a=D1(e,t,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function(e,t){var n=Dq(Dq([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&DZ(n),["cubic"===t.type?n:Df(n,t.curviness)]}};(DB||"u">typeof window&&(DB=window.gsap)&&DB.registerPlugin&&DB)&&DB.registerPlugin(D4);let D5="_91T10b5z4yVLEvBTiOHB2w==",D6="DV-xKWaHEEvN+MaZK6G-sw==",D8="BiOYgCt0Z+UKXxmzw9enhg==";function D9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Pe(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}S2.registerPlugin(D4);var Pt=function(e){var t,n=e.url,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return D9(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 D9(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,n=c?0:e+t;a?S2.timeline().set(f.current,D7({},p,h())).to(f.current,Pe(D7({},p,m()),{duration:t,ease:"power3.inOut"})).to(f.current,Pe(D7({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):S2.timeline({overwrite:!0}).set(f.current,D7({},p,{cx:5100,cy:200,r:4900})).to(f.current,Pe(D7({},p,m()),{delay:n,duration:e,ease:"power4.out"})).to(f.current,Pe(D7({},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:D5,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:n,className:D6,children:(0,v.jsx)("title",{children:r})})})]})},Pn=function(e){var t=e.images,n=e.onSelect,r=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:D5,children:t.map(function(e,t){return(0,v.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,v.jsx)("circle",{cx:r(t),cy:a(),r:7})})}),(0,v.jsx)("image",{x:r(t)-7,y:a()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:D6,preserveAspectRatio:"xMidYMid slice"}),(0,v.jsx)("circle",{onClick:function(){return n(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:r(t),cy:a(),r:9,children:(0,v.jsx)("title",{children:e.title})})]},e.url)})})};function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pr(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 Pi=function(e){var t=e.images,n=e.autoplay,r=void 0===n||n,a=e.autoplayInterval,i=void 0===a?4500:a,o=e.className,s=e.style,l=Pa((0,g.useState)(0),2),u=l[0],c=l[1],d=Pa((0,g.useState)(0),2),f=d[0],p=d[1],h=Pa((0,g.useState)(!1),2),m=h[0],y=h[1],b=(0,g.useRef)(null),x=function(e){return p(e)},S=(0,g.useCallback)(function(){c(function(e){var n=e+1;return n>=t.length&&(n=0),n})},[t.length]),j=(0,g.useCallback)(function(){c(function(e){var n=e-1;return n<0&&(n=t.length-1),n})},[t.length]);return(0,g.useEffect)(function(){return y(!0)},[u]),(0,g.useEffect)(function(){return y(!1)},[f]),(0,g.useEffect)(function(){if(r)return b.current&&clearInterval(b.current),b.current=window.setInterval(S,i),function(){b.current&&clearInterval(b.current)}},[u,r,i,S]),(0,v.jsxs)("div",{className:w()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,v.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,n){return(0,v.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===n?n:t.length+1},children:(0,v.jsx)(Pt,{total:t.length,id:n,url:e.url,title:e.title,open:u===n,inPlace:f===n,onInPlace:x})},e.url)}),(0,v.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,v.jsx)(Pn,{images:t,onSelect:function(e){m||c(e)}})})]}),(0,v.jsx)("button",{type:"button",className:w()(D8,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:j,disabled:m,"aria-label":"Image pr\xe9c\xe9dente",children:(0,v.jsx)(ov,{size:28})}),(0,v.jsx)("button",{type:"button",className:w()(D8,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:S,disabled:m,"aria-label":"Image suivante",children:(0,v.jsx)(og,{size:28})})]})};function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(e){var t=e.handleShuffle,n=e.testimonial,r=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"===r;return(0,v.jsxs)(hS.div,{style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Po(e,t,n[t])})}return e}({zIndex:"front"===r?2:+("middle"===r),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===r?"-6deg":"middle"===r?"0deg":"6deg",x:"front"===r?"0%":"middle"===r?"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 n=e.clientX;d.current-n>150&&t(),d.current=0},transition:{duration:.35},className:w()("ohCq+RO21+rIvJcyy3o2gw==",Po({},"ovSoDUuNx-SamWlqj-vDmQ==",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:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,v.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',n,'"']}),(0,v.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:i})]})}function Pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pu(e){if(Array.isArray(e))return e}function Pc(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Pd(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pf(e,t){if(e){if("string"==typeof e)return Pl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pl(e,t)}}function Pp(e){var t,n=e.testimonials,r=e.cardWidth,a=void 0===r?350:r,i=e.cardHeight,o=void 0===i?450:i,s=e.className,l=e.style,u=e.onShuffle,c=Pu(t=(0,g.useState)(function(){return n.map(function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||Pf(t,2)||Pd(),d=c[0],f=c[1];(0,g.useEffect)(function(){f(n.map(function(e,t){return t}))},[n]);var p=(0,g.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,r=Pu(e)||Pc(e)||Pf(e)||Pd(),a=r[0],i=r.slice(1);return null==u||u(null==(t=n[a])?void 0:t.id),((function(e){if(Array.isArray(e))return Pl(e)})(i)||Pc(i)||Pf(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,n]);return(0,v.jsx)("div",{className:w()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a,height:o},l),children:d.map(function(e,t){var r=n[e];return r?(0,v.jsx)(Ps,{id:r.id,testimonial:r.testimonial,author:r.author,avatarUrl:r.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:a,cardHeight:o},r.id):null})})}var Ph=(0,g.createContext)(null),Pm=function(){var e=(0,g.useContext)(Ph);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Py(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Pv(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(function(n){var r=e[n],a=t[n];return"function"==typeof r?"".concat(r)==="".concat(a):Py(r)&&Py(a)?Pv(r,a):r===a})}function Pg(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Pb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Px(e){return"number"==typeof e}function Pw(e){return"string"==typeof e}function PS(e){return"boolean"==typeof e}function Pj(e){return"[object Object]"===Object.prototype.toString.call(e)}function PO(e){return Math.abs(e)}function Pk(e){return Math.sign(e)}function PE(e){return PT(e).map(Number)}function PA(e){return e[PD(e)]}function PD(e){return Math.max(0,e.length-1)}function PP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,n){return t+n})}function PT(e){return Object.keys(e)}function PC(e,t){var n;return void 0!==t.MouseEvent&&(null!=(n=t.MouseEvent)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)}function PN(){var e=[],t={add:function(n,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in n?(n.addEventListener(r,a,o),i=function(){return n.removeEventListener(r,a,o)}):(n.addListener(a),i=function(){return n.removeListener(a)}),e.push(i),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function PM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=PO(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function PR(e){var t=e;function n(e){return Px(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function PI(e,t){var n="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},r=t.style,a=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!i){var o=Math.round(100*e.direction(t))/100;o!==a&&(r.transform=n(o),a=o)}},toggleActive:function(e){i=!e}}}var P_={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 PL(e,t,n){var r,a,i,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,n){return[t,n].reduce(function(t,n){return PT(n).forEach(function(r){var a=t[r],i=n[r],o=Pj(a)&&Pj(i);t[r]=o?e(a,i):i}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){var r=n.breakpoints||{},a=PT(r).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return r[e]}).reduce(function(e,n){return t(e,n)},{});return t(n,a)},optionsMediaQueries:function(t){return t.map(function(e){return PT(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 n,r;return Object.assign(e,(n={},r=t.name,r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),m=PN(),y=(a={},i={init:function(e){r=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(r,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(P_,PL.globalOptions),k=v(O),E=[];function A(t,n){var r,a,i,o;!j&&(k=g(O=v(O,t)),E=n||E,r=k.container,a=k.slides,u=(Pw(r)?e.querySelector(r):r)||e.children[0],i=Pw(a)?u.querySelectorAll(a):a,c=[].slice.call(i||u.children),s=function t(n){var r=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k,E,A,D,P,T,C,N,M,R,I,L,F,B,V,z,W,U,$,H,G,K,q,Y,Z,X,Q=i.align,J=i.axis,ee=i.direction,et=i.startIndex,en=i.loop,er=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,n=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}},em=eh.measure(t),ey=n.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,n=e.width;return f?t:n},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 Pw(s)?u[s](e):s(l,e,t)}}),ew=!en&&!!eu,eS=en||!!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 PO(em[v]-e[v])}(),w=b?parseFloat(a.getComputedStyle(PA(n)).getPropertyValue("margin-".concat(g))):0,S=ey.map(y),j=ey.map(function(e,t,n){var r=t===PD(n);return t?r?S[t]+w:n[t+1][v]-e[v]:S[t]+x}).map(PO),{slideSizes:S,slideSizesWithGaps:j,startGap:x,endGap:w}),eO=ej.slideSizes,ek=ej.slideSizesWithGaps,eE=ej.startGap,eA=ej.endGap,eD=(O=ev.startEdge,k=ev.endEdge,E=ev.direction,A=Px(es),{groupSlides:function(e){return A?PE(e).filter(function(e){return e%es==0}).map(function(t){return e.slice(t,t+es)}):e.length?PE(e).reduce(function(t,n,r){var a=PA(t)||0,i=n===PD(e),o=em[O]-ey[a][O],s=em[O]-ey[n][k],l=en||0!==a?0:E(eE),u=PO(s-(!en&&i?E(eA):0)-(o+l));return r&&u>eg+2&&t.push(n),i&&t.push(e.length),t},[]).map(function(t,n,r){var a=Math.max(r[n-1]||0);return e.slice(a,t)}):[]}}),eP=(D=ev.startEdge,P=ev.endEdge,C=(T=eD.groupSlides)(ey).map(function(e){return PA(e)[P]-e[0][D]}).map(PO).map(ex.measure),M=T(N=ey.map(function(e){return em[D]-e[D]}).map(function(e){return-PO(e)})).map(function(e){return e[0]}).map(function(e,t){return e+C[t]}),{snaps:N,snapsAligned:M}),eT=eP.snaps,eC=eP.snapsAligned,eN=-PA(eT)+PA(ek),eM=function(e,t,n,r){var a,i,o=PM(-t+e,0),s=n.map(function(e,t){var r=o.min,a=o.max,i=o.constrain(e),s=t===PD(n);return t?s||function(e,t){return 1>=PO(e-t)}(r,i)?r:function(e,t){return 1>=PO(e-t)}(a,i)?a:i:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],i=PA(s),PM(s.lastIndexOf(a),s.indexOf(i)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;var n=l.min,a=l.max;return s.slice(n,a)}(),scrollContainLimit:l}}(eg,eN,eC,eu),eR=eM.snapsContained,eI=eM.scrollContainLimit,e_=ew?eR:eC,eL=(R=e_[0],{limit:PM(en?R-eN:PA(e_),R)}).limit,eF=function e(t,n,r){var a=PM(0,t).constrain,i=t+1,o=s(n);function s(e){return r?PO((i+e)%i):a(e)}function l(){return e(t,o,r)}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}(PD(e_),et,en),eB=eF.clone(),eV=PE(n),ez=function(e){var t=e.dragHandler,n=e.scrollBody,r=e.scrollBounds;e.options.loop||r.constrain(t.pointerDown()),n.seek()},eW=function(e,t){var n=e.scrollBody,r=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=n.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(n.direction()),l.loop()),r.to(i.get()),v&&d.emit("settle"),y||d.emit("scroll")},eU=function(e,t,n,r){var a=PN(),i=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,n(),n());var a=e-o;for(o=e,s+=a;s>=i;)n(),s-=i;r(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:n,render:r}}(r,a,function(){return ez(e3)},function(e){return eW(e3,e)}),e$=e_[eF.get()],eH=PR(e$),eG=PR(e$),eK=PR(e$),eq=PR(e$),eY=function(e,t,n,r,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=r.get()-e.get(),a=0;return s?(n.set(e),i+=t/s,i*=l,u+=i,e.add(i),a=u-c):(i=0,n.set(r),e.set(r),a=t),o=Pk(a),c=u,p},settled:function(){return .001>PO(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(a)},useFriction:f,useDuration:d};return p}(eH,eK,eG,eq,er),eZ=function(e,t,n,r,a){var i=r.reachedAny,o=r.removeOffset,s=r.constrain;function l(e){return e.concat().sort(function(e,t){return PO(e)-PO(t)})[0]}function u(t,r){var a=[t,t+n,t-n];if(!e)return t;if(!r)return l(a);var i=a.filter(function(e){return Pk(e)===r});return i.length?l(i):PA(a)-n}return{byDistance:function(n,r){var l,c=a.get()+n,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 PO(e.diff)-PO(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,h=!e&&i(c);if(!r||h)return{index:f,distance:n};var m=n+u(t[f]-p,0);return{index:f,distance:m}},byIndex:function(e,n){var r=u(t[e]-a.get(),n);return{index:e,distance:r}},shortcut:u}}(en,e_,eN,eL,eq),eX=function(e,t,n,r,a,i,o){function s(a){var s=a.distance,l=a.index!==t.get();i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(a.index),o.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}(eU,eF,eB,eY,eZ,eq,o),eQ=(I=eL.max,L=eL.length,{get:function(e){return L?-((e-I)/L):0}}),eJ=PN(),e0=(B={},V=null,z=null,W=!1,{init:function(){F=new IntersectionObserver(function(e){W||(e.forEach(function(e){B[n.indexOf(e.target)]=e}),V=null,z=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:eo}),n.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=PT(B).reduce(function(t,n){var r=parseInt(n),a=B[r].isIntersecting;return(e&&a||!e&&!a)&&t.push(r),t},[]);return e&&(V=t),e||(z=t),t}}),e1=(U=eD.groupSlides,$=eI.min,H=eI.max,{slideRegistry:(c=U(eV),1===e_.length?[eV]:ew&&"keepSnaps"!==eu?c.slice($,H).map(function(e,t,n){var r=t===PD(n);return t?r?PP(PD(eV)-PA(n)[0]+1,PA(n)[0]):e:PP(PA(n[0])+1)}):c)}).slideRegistry,e2=function(e,t,n,r,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){(PS(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var i=n.findIndex(function(e){return e.includes(t)});Px(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,n,e1,eX,eY,eJ,o,ep),e3={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:em,slideRects:ey,animation:eU,axis:ev,dragHandler:function(e,t,n,r,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=PN(),j=PN(),O=PM(50,225).constrain(p.measure(20)),k={mouse:300,touch:400},E={mouse:500,touch:600},A=h?43:25,D=!1,P=0,T=0,C=!1,N=!1,M=!1,R=!1;function I(e){if(!PC(e,r)&&e.touches.length>=2)return L(e);var t=i.readPoint(e),n=i.readPoint(e,g),o=PO(t-P),l=PO(n-T);if(!N&&!R&&(!e.cancelable||!(N=o>l)))return L(e);var c=i.pointerMove(e);o>m&&(M=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(b(c)),e.preventDefault()}function L(e){var t,n,r,a=c.byDistance(0,!1).index!==d.get(),o=i.pointerUp(e)*(h?E:k)[R?"mouse":"touch"],s=(t=b(o),n=d.add(-1*Pk(t)),r=c.byDistance(t,!h).distance,h||PO(t)<O?r:y&&a?.5*r:c.byIndex(n.get(),0).distance),p=function(e,t){if(0===e||0===t||PO(e)<=PO(t))return 0;var n,r,a=(n=PO(e),r=PO(t),PO(n-r));return PO(a/e)}(o,s);N=!1,C=!1,j.clear(),u.useDuration(A-10*p).useFriction(.68+p/50),l.distance(s,!h),R=!1,f.emit("pointerUp")}function F(e){M&&(e.stopPropagation(),e.preventDefault(),M=!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;(PS(v)||v(e,s))&&(R=p=PC(l=s,r),M=h&&p&&!l.buttons&&D,D=PO(a.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",x.includes(c)||(C=!0,i.pointerDown(l),u.useFriction(0).useDuration(0),a.set(o),d=R?n:t,j.add(d,"touchmove",I,w).add(d,"touchend",L).add(d,"mousemove",I,w).add(d,"mouseup",L),P=i.readPoint(l),T=i.readPoint(l,g),f.emit("pointerDown"))))}},destroy:function(){S.clear(),j.clear()},pointerDown:function(){return C}}}(ev,e,r,a,eq,function(e,t){var n,r;function a(e){return e.timeStamp}function i(n,r){var a=r||e.scroll;return(PC(n,t)?n:n.touches[0])["client".concat("x"===a?"X":"Y")]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){var t=i(e)-i(r),o=a(e)-a(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;var t=i(r)-i(n),o=a(e)-a(n),s=a(e)-a(r)>170,l=t/o;return o&&!s&&PO(l)>.1?l:0},readPoint:i}}(ev,a),eH,eU,eX,eY,eZ,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,n,r,a,i,o){var s,l,u=[e].concat(r),c=[],d=!1;function f(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(l=f(e),c=r.map(f),s=new ResizeObserver(function(n){(PS(i)||i(a,n))&&function(n){var i=!0,o=!1,s=void 0;try{for(var u,p=n[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var h=u.value;if(d)return;var m=h.target===e,y=r.indexOf(h.target),v=m?l:c[y],g=f(m?e:r[y]);if(PO(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}}}(n)}),n.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,a,n,ev,ec,eh),scrollBody:eY,scrollBounds:function(e,t,n,r,a){var i=a.measure(10),o=a.measure(50),s=PM(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=PO(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(c/o);n.subtract(d*f),!a&&PO(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(eL,eK,eq,eY,eb),scrollLooper:(G=[eH,eK,eG,eq],q=(K=PM(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:eZ,scrollTo:eX,slideLooper:function(e,t,n,r,a,i,o,s,l){var u=PE(a),c=PE(a).reverse(),d=h(p(c,o[0]),n,!1).concat(h(p(u,t-o[0]-1),-n,!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,n){return f(e,t)>0?e.concat([n]):e},[])}function h(a,o,u){var c=i.map(function(e,n){return{start:e-r[n]+.5+o,end:e+t-.5+o}});return a.map(function(t){var r=u?0:-n,a=u?n:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:PR(-1),translate:PI(e,l[t]),target:function(){return s.get()>i?r:a}}})}return{canLoop:function(){return d.every(function(e){var n=e.index;return .1>=f(u.filter(function(e){return e!==n}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,n=e.translate,r=e.slideLocation,a=t();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:d}}(ev,eg,eN,eO,ek,eT,e_,eK,n),slideFocus:e2,slidesHandler:(X=!1,{init:function(e){ed&&(Z=new MutationObserver(function(t){!X&&(PS(ed)||ed(e,t))&&function(t){var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(t)})).observe(t,{childList:!0})},destroy:function(){Z&&Z.disconnect(),X=!0}}),slidesInView:e0,slideIndexes:eV,slideRegistry:e1,slidesToScroll:eD,target:eq,translate:PI(ev,t)};return e3}(e,u,c,d,f,n,y);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(k),b([O].concat(function(e){if(Array.isArray(e))return Pb(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 Pb(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 Pb(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",D)}),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 D(e,t){var n=C();P(),A(v({startIndex:n},e),t),y.emit("reInit")}function P(){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 T(e,t,n){k.active&&!j&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:k.duration),s.scrollTo.index(e,n||0))}function C(){return s.index.get()}var N={canScrollNext:function(){return s.index.add(1).get()!==C()},canScrollPrev:function(){return s.index.add(-1).get()!==C()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){j||(j=!0,m.clear(),P(),y.emit("destroy"),y.clear())},off:w,on:x,emit:S,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:D,rootNode:function(){return e},scrollNext:function(e){T(s.index.add(1).get(),e,-1)},scrollPrev:function(e){T(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:T,selectedScrollSnap:C,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return A(t,n),setTimeout(function(){return y.emit("init")},0),N}function PF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PF(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 PV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,g.useRef)(e),r=(0,g.useRef)(t),a=PB((0,g.useState)(),2),i=a[0],o=a[1],s=PB((0,g.useState)(),2),l=s[0],u=s[1],c=(0,g.useCallback)(function(){i&&i.reInit(n.current,r.current)},[i]);return(0,g.useEffect)(function(){Pv(n.current,e)||(n.current=e,c())},[e,c]),(0,g.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var n=Pg(e),r=Pg(t);return n.every(function(e,t){return Pv(e,r[t])})}(r.current,t)&&(r.current=t,c())},[t,c]),(0,g.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){PL.globalOptions=PV.globalOptions;var e=PL(l,n.current,r.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,i]}PL.globalOptions=void 0,PV.globalOptions=void 0;let Pz={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function PW(e){var t=e.children,n=e.className,r=Pm(),a=r.axis,i=r.mainViewportRef;return(0,v.jsx)("div",{ref:i,className:w()(Pz.viewport,Pz["viewport--".concat(a)],n),children:(0,v.jsx)("div",{className:w()(Pz.container,Pz["container--".concat(a)]),children:t})})}function PU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PU(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 PH(e){var t,n,r,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!=(r=null==i?void 0:i.axis)?r:"x",f=P$(PV((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},i),n=n={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),o),2),p=f[0],h=f[1],m=P$(PV({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),y=m[0],x=m[1],S=P$((0,g.useState)(0),2),j=S[0],O=S[1],k=(0,g.useMemo)(function(){return function(e){var t=b().Children.toArray(e),n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if(b().isValidElement(s)&&s.type===PW){var l=s.props;return b().Children.toArray(l.children).filter(b().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return[]}(a)},[a]),E=(0,g.useCallback)(function(e){null==h||h.scrollTo(e)},[h]),A=(0,g.useCallback)(function(){if(h){var e=h.selectedScrollSnap();O(e),null==x||x.scrollTo(e)}},[h,x]);return(0,g.useEffect)(function(){if(h)return A(),h.on("select",A).on("reInit",A),function(){h.off("select",A).off("reInit",A)}},[h,A]),(0,v.jsx)(Ph.Provider,{value:{axis:d,mainViewportRef:p,mainApi:h,thumbsViewportRef:y,thumbsApi:x,selectedIndex:j,scrollTo:E,thumbnails:k},children:(0,v.jsx)("div",{className:w()(Pz.root,u),style:c,children:a})})}function PG(e){var t=e.children,n=e.className,r=Pm().axis;return(0,v.jsx)("div",{className:w()(Pz.slide,Pz["slide--".concat(r)],n),children:t})}function PK(e){var t=e.className,n=e.thumbsSliderClassName,r=Pm(),a=r.axis,i=r.thumbsViewportRef,o=r.thumbnails,s=r.selectedIndex,l=r.scrollTo;return 0===o.length?null:(0,v.jsx)("div",{ref:i,className:w()(Pz.thumbsViewport,t),children:(0,v.jsx)("div",{className:w()(Pz.thumbsContainer,Pz["thumbsContainer--".concat(a)]),children:o.map(function(e,t){var r,a,i=t===s;return(0,v.jsx)("button",{type:"button",onClick:function(){return l(t)},className:w()(Pz.thumb,(r={},a=Pz["thumb--active"],a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),i&&n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":i,children:e&&(0,v.jsx)("img",{src:e,alt:"",className:Pz.thumbImage})},t)})})})}function Pq(e){var t=e.className,n=e.dotClassName,r=Pm(),a=r.thumbnails,i=r.selectedIndex,o=r.scrollTo;return 0===a.length?null:(0,v.jsx)("div",{className:w()(Pz.dots,t),children:a.map(function(e,t){var r,a,s;return(0,v.jsx)("button",{type:"button",onClick:function(){return o(t)},className:w()(Pz.dot,(r={},a=Pz["dot--active"],s=t===i,a in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,r),n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===i},t)})})}function PY(e){var t=e.id,n=e.as,r=e.variant,a=void 0===r?"transparent":r,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===n?"section":n,{id:t,"aria-label":u,className:["xsPyVpEdgja0llYjB3PdYg==","panel"===a?"IdjlGes9g7I9RGbalXKuEw==":"mSODpTRIETPzwrdlVZKHAQ==",void 0!==c&&c&&"panel"===a?"dqH8uZ6svn0a-ANxRswbEw==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,v.jsxs)("div",{className:"LYLZgwdW+ZQ094mxka6QwQ==",children:[(0,v.jsxs)("div",{className:"+Aqb8e3ZepkrAMa4z4v-tQ==",children:[i&&(0,v.jsx)(void 0===o?"h2":o,{className:"QEtbLMiYFeiRjc7fZ+Qrwg==",children:i}),s&&(0,v.jsx)("p",{className:"teYjkGxaHLinWBvLv5ULwA==",children:s})]}),l&&(0,v.jsx)("div",{className:"yD97e81VCsiEGleZjd-MSQ==",children:l})]}),(0,v.jsx)("div",{className:"gH7gSQGqCrm6Kdq+mty58A==",children:f})]})}var PZ={collapse:"Replier la section",expand:"D\xe9plier la section"},PX=(0,g.createContext)({tone:"onDark",density:"comfortable",classNames:{},labels:PZ,headerLayout:"split",footerLayout:"between",divider:!0,footerDivider:!0,collapsible:!1,collapsed:!1,toggle:function(){}});function PQ(){return(0,g.useContext)(PX)}var PJ={sm:{text:"h-7 px-2.5 text-xs",icon:"size-7"},md:{text:"h-8 px-3 text-[13px]",icon:"size-8"}};function P0(e){var t=e.children,n=e.icon,r=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=mP("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?mP(PJ[u].icon,"p-0"):PJ[u].text,"solid"===s?"border-0 bg-(--section-accent,#10b981) text-white hover:brightness-110":"outline"===s?mP("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)"):mP("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:[n,t]});return c?(0,v.jsx)("a",{href:c,target:d,rel:null!=f?f:"_blank"===d?"noreferrer noopener":void 0,title:r,"aria-label":g?r: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:r,"aria-label":g?r:void 0,"aria-pressed":i||void 0,disabled:p,onClick:m,className:b,children:x})}var P1={none:"gap-0",xs:"gap-2",sm:"gap-3",md:"gap-5",lg:"gap-8",xl:"gap-10"},P2={base:1,md:2,lg:3},P3=["base","sm","md","lg","xl","2xl"];function P4(e){var t=e.as,n=e.columns,r=void 0===n?P2:n,a=e.minItemWidth,i=e.gap,o=e.className,s=e.children,l={};if(a)l["--sg-min"]=a;else{var u="number"==typeof r?{base:r}:r,c=!0,d=!1,f=void 0;try{for(var p,h=P3[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:mP("grid min-w-0",P1[void 0===i?"md":i],a?"grid-cols-[repeat(auto-fill,minmax(min(100%,var(--sg-min)),1fr))]":mP("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 P5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P6(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P5(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 P8={position:"--section-header-position",top:"--section-sticky-top",zIndex:"--section-sticky-z"};function P9(e){var t=e.sticky,n=e.offset,r=e.zIndex,a={};return void 0!==t&&(a[P8.position]=t?"sticky":"static"),void 0!==n&&(a[P8.top]=n),void 0!==r&&(a[P8.zIndex]=r),a}var P7=(c={},d=P8.position,f="static",d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c);function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Tn(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var Tr={compact:"pb-2",comfortable:"pb-3",spacious:"pb-4"},Ta={compact:"pt-3",comfortable:"pt-4",spacious:"pt-6"},Ti={compact:"mt-3",comfortable:"mt-4",spacious:"mt-6"},To={compact:"pt-2",comfortable:"pt-3",spacious:"pt-4"},Ts={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"},Tl={split:"flex-wrap items-center justify-between",stacked:"flex-col items-start",centered:"flex-col items-center text-center"},Tu={split:"ml-auto justify-end",stacked:"justify-start",centered:"justify-center"},Tc={between:"justify-between",start:"justify-start",center:"justify-center",end:"justify-end"};function Td(e){var t=e.className,n=PQ().classNames;return(0,v.jsx)("div",{role:"presentation","aria-hidden":"true","data-section-part":"divider",className:mP("h-px w-full shrink-0 bg-(--section-line,rgba(255,255,255,0.12))",n.divider,t)})}function Tf(){var e=PQ(),t=e.collapsed,n=e.toggle,r=e.labels,a=e.bodyId,i=t?r.expand:r.collapse;return(0,v.jsx)("button",{type:"button",onClick:n,title:i,"aria-label":i,"aria-expanded":!t,"aria-controls":a,className:mP("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:mP("transition-transform duration-300 motion-reduce:transition-none",!t&&"rotate-180"),children:(0,v.jsx)("path",{d:"M4 6l4 4 4-4"})})})}function Tp(e){var t,n,r,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,w=e.className,S=PQ(),j=S.classNames,O=S.density,k=S.collapsible,E=null!=b?b:S.headerLayout,A=null!=x?x:S.divider,D=(0,g.useRef)(null),P=(t=S.stickyKey,n=(0,g.useRef)(null),a=(r=P6((0,g.useState)(!1),2))[0],i=r[1],s=(o=P6((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=n.current;if(!a||!e||!t||"u"<typeof IntersectionObserver)return void l(!1);var r=parseFloat(getComputedStyle(e).top)||0,i=new IntersectionObserver(function(e){return l(!P6(e,1)[0].isIntersecting)},{rootMargin:"-".concat(r,"px 0px 0px 0px"),threshold:0});return i.observe(t),function(){return i.disconnect()}},[D,a]),{isSticky:a,stuck:s,sentinelRef:n}),T=P.isSticky,C=P.stuck,N=P.sentinelRef,M=null!=h&&""!==h,R=null!=m&&!1!==m;return(0,v.jsxs)(v.Fragment,{children:[T?(0,v.jsx)("div",{ref:N,"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(C):void 0,className:mP("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)]",j.header,w),children:[(0,v.jsxs)("div",{className:mP("flex gap-x-4 gap-y-2",Tl[E],Tr[O]),children:[null!=y?(0,v.jsx)("div",{className:"min-w-0 flex-1",children:y}):(0,v.jsxs)("div",{className:mP("flex min-w-0 flex-col gap-1","split"===E&&"flex-1 basis-48",j.heading),children:[(0,v.jsxs)("div",{className:mP("flex min-w-0 items-center gap-2.5","centered"===E&&"justify-center"),children:[f?(0,v.jsx)("span",{className:mP("inline-flex shrink-0 items-center justify-center text-(--section-accent,#34d399)",j.leading),children:f}):null,u?(0,v.jsx)(void 0===c?"h2":c,{id:S.headingId,className:mP("m-0 min-w-0 text-balance tracking-tight text-(--section-fg,#fff)",Ts[void 0===d?"md":d],j.title),children:u}):null,M?(0,v.jsx)("span",{className:mP("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))",j.count),children:h}):null]}),p?(0,v.jsx)("p",{className:mP("m-0 max-w-3xl text-sm leading-relaxed text-(--section-muted,rgba(255,255,255,0.65))",j.description),children:p}):null]}),R||k?(0,v.jsxs)("div",{className:mP("flex flex-wrap items-center gap-1.5",Tu[E],null!=y&&"split"===E&&"shrink-0",j.actions),children:[m,k?(0,v.jsx)(Tf,{}):null]}):null]}),A?(0,v.jsx)(Td,{}):null]})]})}function Th(e){var t,n=e.children,r=e.flush,a=e.maxHeight,i=e.className,o=PQ(),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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Te(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 Te(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:mP("min-w-0",!(void 0!==r&&r)&&Ta[l],a&&"overflow-y-auto overscroll-contain",s.body,i),style:a?Tn(Tt({},P7),{maxHeight:a}):P7,children:n});return u?(0,v.jsx)("div",Tn(Tt({id:d,"aria-hidden":c||void 0},c?{inert:""}:{}),{className:mP("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:mP("min-h-0",p&&"overflow-hidden"),children:y})})):(0,v.jsx)("div",{id:d,children:y})}function Tm(e){var t=e.children,n=e.actions,r=e.layout,a=e.divider,i=e.className,o=PQ(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=null!=r?r:o.footerLayout,f=null!=a?a:o.footerDivider,p=null!=t&&!1!==t,h=null!=n&&!1!==n;return u&&c?null:(0,v.jsxs)("div",{"data-section-part":"footer",className:mP("flex flex-col",Ti[l],s.footer,i),children:[f?(0,v.jsx)(Td,{}):null,(0,v.jsxs)("div",{className:mP("flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-(--section-muted,rgba(255,255,255,0.65))",To[l],Tc[d]),children:[p?(0,v.jsx)("div",{className:mP("min-w-0",s.footerStart),children:t}):null,h?(0,v.jsx)("div",{className:mP("flex flex-wrap items-center gap-1.5","between"===d&&"ml-auto",s.footerEnd),children:n}):null]})]})}function Ty(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Tv={plain:"",glass:"rounded-2xl p-5 backdrop-blur-xl ring-1 ring-inset ring-(--section-line,rgba(255,255,255,0.12))"},Tg={onDark:"bg-black/40",onLight:"bg-white/70"},Tb=new Set([Tp,Th,Tm]);function Tx(e){return null!=e&&!1!==e&&""!==e}var Tw=Object.assign(function(e){var t,n=e.id,r=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,w=e.headerLayout,S=void 0===w?"split":w,j=e.divider,O=void 0===j||j,k=e.stickyHeader,E=e.stickyOffset,A=e.stickyZIndex,D=e.footer,P=e.footerActions,T=e.footerLayout,C=void 0===T?"between":T,N=e.footerDivider,M=void 0===N||N,R=e.bodyMaxHeight,I=e.bodyFlush,L=e.collapsible,F=void 0!==L&&L,B=e.collapsed,V=e.defaultCollapsed,z=e.onCollapsedChange,W=e.labels,U=e.className,$=e.classNames,H=void 0===$?{}:$,G=e.children,K=(0,g.useId)(),q="".concat(K,"-title"),Y="".concat(K,"-body"),Z=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0!==V&&V))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ty(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 Ty(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.")}(),X=Z[0],Q=Z[1],J=F&&(null!=B?B:X),ee=(0,g.useCallback)(function(){var e=!J;void 0===B&&Q(e),null==z||z(e)},[J,B,z]),et=Tx(d),en=(0,g.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},PZ,W)},[W]),er=(0,g.useMemo)(function(){return{tone:l,density:c,classNames:H,labels:en,headerLayout:S,footerLayout:C,divider:O,footerDivider:M,collapsible:F,collapsed:J,toggle:ee,headingId:et?q:void 0,bodyId:Y,stickyKey:"".concat(k,"|").concat(E,"|").concat(A)}},[l,c,H,en,S,C,O,M,F,J,ee,et,q,Y,k,E,A]),ea=et||Tx(m)||Tx(b)||Tx(h)||Tx(x)||null!=y&&""!==y||F,ei=Tx(D)||Tx(P),eo=Tx(G),es=g.Children.toArray(G).some(function(e){return(0,g.isValidElement)(e)&&Tb.has(e.type)});return(0,v.jsx)(PX.Provider,{value:er,children:(0,v.jsxs)(void 0===r?"section":r,{id:n,"aria-label":a,"aria-labelledby":!a&&et?q:void 0,"data-section-variant":o,style:P9({sticky:k,offset:E,zIndex:A}),className:mP("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)]",Tv[o],"glass"===o&&Tg[l],U,H.root),children:[ea?(0,v.jsx)(Tp,{title:d,titleAs:f,titleSize:p,icon:h,description:m,count:y,actions:b,children:x}):null,eo?es?G:(0,v.jsx)(Th,{flush:I,maxHeight:R,children:G}):null,ei?(0,v.jsx)(Tm,{actions:P,children:D}):null]})})},{Header:Tp,Body:Th,Footer:Tm,Divider:Td,Action:P0,Grid:P4});function TS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var Tj={none:"gap-0",sm:"gap-4",md:"gap-6",lg:"gap-10",xl:"gap-14"};function TO(e){var t=e.name,n=e.state,r=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=TS({},P9({sticky:void 0===a||a,offset:void 0===i?"0px":i,zIndex:void 0===o?10:o}),d),p=mP("flex w-full min-w-0 flex-col",Tj[void 0===s?"lg":s],u);return(0,v.jsx)(S.ExtensionSlot,{name:t,select:r,"data-section-slot":t,className:p,style:f,children:function(e){var t=(0,v.jsx)(S.Extension,{state:n}),r={name:e.name,moduleName:e.moduleName,meta:TS({},e.meta)};return(0,v.jsx)("div",{"data-section-slot-item":e.name,className:mP("min-w-0",c),children:l?l(t,r):t})}})}var Tk=mP("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 TE(e){var t,n,r=e.as,a=e.className,i=e.children,o=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["as","className","children"]);return(0,v.jsx)(void 0===r?"div":r,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"data-section-card":"",className:mP(Tk,a)},o),n=n={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function TA(e){var t=e.onClick,n=e.className,r=e.children;return(0,v.jsx)("button",{type:"button",onClick:t,className:mP("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-['']",n),children:r})}function TD(e){var t,n=e.tile,r=e.size,a=e.onSelect,i=e.className;return(0,v.jsxs)(hS.div,{whileHover:{scale:"large"===r?1.008:1.012},transition:{duration:.2},onClick:function(){return a(n)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(n))},className:["epn5Xr0wuijHX+AGdLOjTQ==","large"===r?"vfFCu1fewysJ2OePivqftg==":"_5PSxM40V8VvkMWcjtHh7lQ==",null!=i?i:""].join(" "),children:[(0,v.jsx)("img",{src:n.imageUrl,alt:n.title,className:"FZ7wibJ0rKv9a7xHLPzhCw==",referrerPolicy:"no-referrer"}),(0,v.jsx)("div",{className:"V2q1if8rFbKRFCMAsXIx3A=="}),(0,v.jsx)("div",{className:"RhZz5XHN5ocl4A43Psz1eg==",children:"large"===r?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("h3",{className:"FDykDf3R9FzapTX-dyKZTg==",children:n.title}),(0,v.jsx)("span",{className:"ehVT3WDOS1PC11dEIvTfsw==",children:null!=(t=n.linkText)?t:"En savoir plus →"})]}):(0,v.jsx)("h4",{className:"j3a-9yic75kspWNZW+1m+Q==",children:n.title})})]})}function TP(e){var t=e.mainTile,n=e.secondaryTiles,r=e.onSelectTile;return(0,v.jsxs)("div",{className:"gqDAe+adtM8NJnnwyLSxnA==",children:[(0,v.jsx)(TD,{tile:t,size:"large",onSelect:r}),n.slice(0,4).map(function(e){return(0,v.jsx)(TD,{tile:e,size:"medium",onSelect:r},e.id)})]})}function TT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TC(e){if(Array.isArray(e))return e}function TN(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function TM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function TR(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function TI(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function T_(e,t){return TC(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TF(e,t)||TN()}function TL(e){return TC(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||TF(e)||TN()}function TF(e,t){if(e){if("string"==typeof e)return TT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TT(e,t)}}var TB=(0,g.forwardRef)(function(e,t){var n=e.left,r=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:mP("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:mP("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:n}),r?(0,v.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:r}):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]})}),TV=(0,g.forwardRef)(function(e,t){var n=TL([e,t]),r=n[0],a=n.slice(1),i=r.icon,o=r.label,s=r.badge,l=r.active,u=void 0!==l&&l,c=r.className,d=r.type,f=TI(r,["icon","label","badge","active","className","type"]),p=T_(a,1)[0],h=null!=s&&""!==s&&0!==s;return(0,v.jsxs)("button",TR(TM({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"aria-pressed":u||void 0,className:mP("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 Tz(e){var t=e.className;return(0,v.jsx)("div",{"aria-hidden":"true",className:mP("mx-1 h-5 w-px bg-white/15",t)})}var TW=(0,g.forwardRef)(function(e,t){var n=TL([e,t]),r=n[0],a=n.slice(1),i=r.src,o=r.name,s=r.active,l=r.className,u=r.type,c=TI(r,["src","name","active","className","type"]),d=T_(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",TR(TM({ref:d,type:void 0===u?"button":u,title:o,"aria-label":o,className:mP("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}))}),TU=ON("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),T$=ON("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function TH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TK(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 TK(e,t){if(e){if("string"==typeof e)return TH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TH(e,t)}}function Tq(e){var t=e.sites,n=e.onSelect,r=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=TG((0,g.useState)(function(){return o(t)}),2),l=s[0],u=s[1],c=TG((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 n=function(e){if(Array.isArray(e))return TH(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||TK(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.")}(),r=0;r<Math.abs(e);r++){var a=e>0?n.shift():n.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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},a),{key:i.current++});e>0?n.push(o):n.unshift(o)}return n})},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:mP("relative w-full overflow-hidden cursor-grab active:cursor-grabbing touch-pan-y select-none",a),style:{height:void 0===r?500:r},children:[l.map(function(e,t){var r=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":r.name,onKeyDown:function(e){return"Enter"===e.key&&o&&(null==n?void 0:n(r))},onClick:function(){p.current||(o?null==n||n(r):y(i))},className:mP("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:[r.imageUrl&&(0,v.jsx)("img",{src:r.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:[r.name," — ",r.description]}),(0,v.jsxs)("p",{className:mP("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:[r.shortName," • ",r.head," (",r.memberCount," membres, ",r.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)(TU,{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)(T$,{className:"w-6 h-6"})})]})]})}var TY=ON("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"}]]),TZ=ON("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 TX(e){var t=e.value,n=e.onChange,r=e.placeholder,a=void 0===r?"Rechercher…":r,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:mP("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)(Oq,{className:"w-4 h-4"})}),(0,v.jsx)("input",{ref:p,type:"text",value:t,onChange:function(e){return n(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;n(""),null==(e=p.current)||e.focus()},className:mP(m,"hover:bg-white/10 hover:text-white"),children:(0,v.jsx)(kH,{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:mP("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)(TY,{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:mP(m,"hover:bg-rose-500/20 hover:text-rose-300"),children:(0,v.jsx)(TZ,{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 TQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TJ(e){var t,n=e.activeTab,r=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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return TQ(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 TQ(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:mP("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===n});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(),r(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===n;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 r(e.id)},className:mP("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 T0(e){var t=e.icon,n=e.title,r=e.description,a=e.actions,i=e.className;return(0,v.jsxs)("div",{className:mP("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:n})]}),r&&(0,v.jsx)("p",{className:"text-xs text-slate-400 mt-0.5",children:r})]}),a&&(0,v.jsx)("div",{className:"shrink-0 self-start sm:self-auto",children:a})]})}var T1=ON("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 T2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||T4(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 T4(e,t){if(e){if("string"==typeof e)return T2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T2(e,t)}}function T5(e){var t=e.applications,n=e.onOpen,r=e.title,a=e.description,i=e.allLabel,o=void 0===i?"Tous":i,s=e.className,l=T3((0,g.useState)(""),2),u=l[0],c=l[1],d=T3((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 T2(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)||T4(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:mP("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===r?"Applications & Outils M\xe9tier":r}),(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)(Oq,{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:mP("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,r=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return n(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:mP("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)(r,{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)(T1,{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 T6=ON("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"}]]),T8={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 T9(e){var t=e.resources,n=e.shortcuts,r=void 0===n?[]:n,a=e.onShortcut,i=e.onDownload,o=e.primaryAction,s=e.title,l=e.description,u=e.className;return(0,v.jsxs)("div",{className:mP("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]}),r.length>0&&(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(function(e){var t,n=T8[null!=(t=e.tone)?t:"teal"],r=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return null==a?void 0:a(e)},className:mP("text-left p-4 rounded-xl bg-gradient-to-r border transition-all cursor-pointer flex items-center justify-between",n.card),children:[(0,v.jsxs)("span",{className:"space-y-1",children:[(0,v.jsx)("span",{className:mP("block text-[10px] font-bold uppercase tracking-wider",n.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)(r,{className:mP("w-8 h-8 shrink-0 ml-2",n.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)(O3,{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)(T6,{className:"w-4 h-4"})})]},e.id)})})]})]})}var T7=ON("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 Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(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 Cn="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");function Cr(e){var t=e.member,n=e.size;return t.avatar?(0,v.jsx)("img",{src:t.avatar,alt:"",className:mP("rounded-full object-cover border border-white/20 shrink-0",n)}):(0,v.jsx)("span",{className:mP("rounded-full bg-teal-600/40 border border-white/20 flex items-center justify-center font-bold text-teal-100 shrink-0",n),children:t.name.slice(0,1).toUpperCase()})}function Ca(e){var t=e.siteName,n=e.members,r=e.teams,a=void 0===r?[]:r,i=e.onSelect,o=e.className,s=Ct((0,g.useState)(""),2),l=s[0],u=s[1],c=Ct((0,g.useState)("all"),2),d=c[0],f=c[1],p=Ct((0,g.useState)(""),2),h=p[0],m=p[1],y=Ct((0,g.useState)("grid"),2),b=y[0],x=y[1],w=(0,g.useMemo)(function(){return new Set(n.map(function(e){return e.name.slice(0,1).toUpperCase()}))},[n]),S=(0,g.useMemo)(function(){var e=l.trim().toLowerCase();return n.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")})},[n,l,d,h]),j=function(e){return mP("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:mP("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",o),children:[(0,v.jsx)(T0,{icon:(0,v.jsx)(OX,{className:"w-4 h-4 text-teal-400"}),title:"Membres & \xc9quipes — ".concat(t),description:"".concat(S.length," membre").concat(S.length>1?"s":""," affich\xe9").concat(S.length>1?"s":""," sur ").concat(n.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:mP("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)(OU,{className:"w-4 h-4"}):(0,v.jsx)(T7,{className:"w-4 h-4"})},e)})})}),(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsx)(Oq,{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:j("all"===d),onClick:function(){return f("all")},children:"Toutes les \xe9quipes"}),a.map(function(e){return(0,v.jsx)("button",{type:"button",className:j(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:j(!h),onClick:function(){return m("")},children:"Tous"}),Cn.map(function(e){return(0,v.jsx)("button",{type:"button",disabled:!w.has(e),onClick:function(){return m(h===e?"":e)},className:mP(j(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===S.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:S.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)(Cr,{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:S.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)(Cr,{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 Ci=ON("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"}]]),Co=ON("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Cs=ON("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Cl=ON("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Cu=ON("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 Cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Cf(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Cp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cc(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 Ch=[{id:"all",label:"Toutes"},{id:"todo",label:"\xc0 faire"},{id:"in_progress",label:"En cours"},{id:"done",label:"Termin\xe9es"}],Cm={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"}},Cy="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 Cv(e){var t=e.siteName,n=e.tasks,r=e.onToggleStatus,a=e.onCreate,i=e.className,o=Cp((0,g.useState)("all"),2),s=o[0],l=o[1],u=Cp((0,g.useState)(""),2),c=u[0],d=u[1],f=Cp((0,g.useState)(!1),2),p=f[0],h=f[1],m=Cp((0,g.useState)({title:"",description:"",priority:"moyenne",dueDate:""}),2),y=m[0],b=m[1],x=(0,g.useMemo)(function(){return{all:n.length,todo:n.filter(function(e){return"todo"===e.status}).length,in_progress:n.filter(function(e){return"in_progress"===e.status}).length,done:n.filter(function(e){return"done"===e.status}).length}},[n]),w=(0,g.useMemo)(function(){var e=c.trim().toLowerCase();return n.filter(function(t){return("all"===s||t.status===s)&&(!e||t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[n,s,c]);return(0,v.jsxs)("div",{className:mP("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",i),children:[(0,v.jsx)(T0,{icon:(0,v.jsx)(Ci,{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)(Co,{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:Ch.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return l(e.id)},className:mP("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)(Oq,{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===w.length?(0,v.jsxs)("div",{className:"text-center py-12 text-slate-400 text-xs",children:[(0,v.jsx)(Cs,{className:"w-8 h-8 mx-auto mb-2 text-slate-500"}),"Aucune t\xe2che ne correspond \xe0 vos filtres."]}):w.map(function(e){return(0,v.jsxs)("div",{className:mP("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 r(e)},title:"Changer le statut","aria-label":"Changer le statut de ".concat(e.title),className:mP("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)(Cl,{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:mP("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)(OQ,{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)(Cu,{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:mP("px-2 py-0.5 rounded-full text-[10px] font-bold uppercase border",Cm[e.priority].cls),children:Cm[e.priority].label}),(0,v.jsx)("span",{className:mP("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)(Ci,{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)(kH,{className:"w-4 h-4"})})]}),(0,v.jsxs)("form",{onSubmit:function(e){e.preventDefault(),y.title.trim()&&(a(Cf(Cd({},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:Cy,value:y.title,onChange:function(e){return b(Cf(Cd({},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:mP(Cy,"resize-none"),value:y.description,onChange:function(e){return b(Cf(Cd({},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:Cy,value:y.priority,onChange:function(e){return b(Cf(Cd({},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:Cy,value:y.dueDate,onChange:function(e){return b(Cf(Cd({},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 Cg=ON("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"}]]),Cb=ON("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 Cx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cw(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function CS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cx(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 Cj=[{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"}],CO={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 Ck(e){var t=e.siteName,n=e.activities,r=e.onRefresh,a=e.className,i=CS((0,g.useState)("all"),2),o=i[0],s=i[1],l=CS((0,g.useState)(!1),2),u=l[0],c=l[1],d=(0,g.useMemo)(function(){return n.filter(function(e){return"all"===o||e.action===o})},[n,o]);return(0,v.jsxs)("div",{className:mP("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",a),children:[(0,v.jsx)(T0,{icon:(0,v.jsx)(Cg,{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:r&&(0,v.jsxs)("button",{type:"button",disabled:u,onClick:function(){var e;return(e=function(){return function(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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==r?void 0:r()];case 2:return e.sent(),[3,4];case 3:return c(!1),[7];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Cw(i,r,a,o,s,"next",e)}function s(e){Cw(i,r,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)(Cb,{className:mP("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:Cj.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return s(e.id)},className:mP("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(n.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:mP("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",CO[e.action].cls),children:CO[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)(O3,{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 CE=ON("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"}]]),CA=ON("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"}]]),CD=ON("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"}]]),CP=ON("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"}]]),CT=ON("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 CC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CN(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function CM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CC(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 CR=[{id:"PUBLIC",label:"Public",hint:"Accessible \xe0 tous les collaborateurs de l'organisation.",icon:O4},{id:"MODERATED",label:"Mod\xe9r\xe9",hint:"Adh\xe9sion soumise \xe0 l'approbation du gestionnaire du site.",icon:OX},{id:"PRIVATE",label:"Priv\xe9",hint:"Strictement r\xe9serv\xe9 aux membres invit\xe9s manuellement.",icon:CE}],CI="p-4 rounded-xl bg-slate-900/60 border border-white/10 space-y-3",C_="text-xs font-bold text-teal-300 uppercase tracking-wider flex items-center gap-2",CL="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 CF(e){var t=e.label,n=e.hint,r=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}),n&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:n})]}),(0,v.jsx)("input",{type:"checkbox",checked:r,onChange:function(e){return a(e.target.checked)},className:"w-4 h-4 accent-teal-500 cursor-pointer shrink-0"})]})}function CB(e){var t=e.siteName,n=e.siteUuid,r=e.initialValue,a=e.storage,i=e.onSave,o=e.className,s=CM((0,g.useState)(r),2),l=s[0],u=s[1],c=CM((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 n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t,e)})};return(0,v.jsxs)("div",{className:mP("flex-1 min-h-0 flex flex-col gap-4 text-slate-100 overflow-y-auto pr-1",o),children:[(0,v.jsx)(T0,{icon:(0,v.jsx)(OY,{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)(Cs,{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 n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(e){CN(i,r,a,o,s,"next",e)}function s(e){CN(i,r,a,o,s,"throw",e)}o(void 0)})})()},className:"space-y-4",children:[(0,v.jsxs)("section",{className:CI,children:[(0,v.jsxs)("h3",{className:C_,children:[(0,v.jsx)(CA,{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:CL,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:mP(CL,"bg-black/60 border-white/10 text-slate-400 font-mono"),value:n})]})]}),(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:mP(CL,"resize-none"),value:l.description,onChange:function(e){return p({description:e.target.value})}})]})]}),(0,v.jsxs)("section",{className:CI,children:[(0,v.jsxs)("h3",{className:C_,children:[(0,v.jsx)(CD,{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:CR.map(function(e){var t=e.id,n=e.label,r=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:mP("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:n})]}),(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:r})]},t)})}),(0,v.jsx)(CF,{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:CI,children:[(0,v.jsxs)("h3",{className:C_,children:[(0,v.jsx)(CP,{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)(CF,{label:"Notifier lors du t\xe9l\xe9versement d'un nouveau document",checked:l.notifyOnUpload,onChange:function(e){return p({notifyOnUpload:e})}}),(0,v.jsx)(CF,{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)(CT,{className:"w-4 h-4"}),"Enregistrer les param\xe8tres du site"]})})]})]})}function CV(e){var t=e.title,n=e.subtitle,r=e.avatar,a=e.following,i=e.onToggleFollow,o=e.actions,s=e.className;return(0,v.jsx)("div",{className:mP("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:[r&&(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:r}),(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}),n&&(0,v.jsx)("p",{className:"text-teal-100/80 text-[10px] sm:text-[11px] leading-none truncate",children:n})]})]}),(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)(O8,{className:mP("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 Cz={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"]}},CW="egen_assistant_mode";function CU(){if("u"<typeof window)return"conversation";try{var e=localStorage.getItem(CW);if(e&&Cz[e])return e}catch(e){}return"conversation"}function C$(e){if("u">typeof window)try{localStorage.setItem(CW,e)}catch(e){}}function CH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function CK(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Cq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CH(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 CY=["#7C6AF7","#7DD3C7","#E8B4D4"],CZ=["#3DBA2E","#F2E62F"],CX="\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 CQ(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function CJ(e){var t=e.replace("#","").trim(),n=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(n)?[.96,.96,.96]:[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255]}function C0(e,t,n){var r=e.createShader(t);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))?r:(CQ()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(r)),e.deleteShader(r),null):null}function C1(e,t,n,r,a){var i,o,s,l,u="#F4F4F5",c="#09090B",d=0,f=CY,p=CZ;return"black"===e?(u="#18181B",c="#F4F4F5"):"webgl"===e?(u=null!=(i=(f=r&&r.length>0?r:CY)[1])?i:CY[1],c="#0C0C10",d=1,p=[null!=(o=f[0])?o:CY[0],null!=(s=f[2])?s:CY[2]]):"custom"===e&&(u=null!=t?t:"#7C5CFF",c=null!=n?n:"#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 C2(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=CG({variant:"white",interactive:!0,blink:!0,ears:!0},n),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=C0(s,s.VERTEX_SHADER,"\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}\n"),u=C0(s,s.FRAGMENT_SHADER,CX);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 CQ()&&console.warn("LiveOrb: program failed to link\n",s.getProgramInfoLog(c)),null;s.useProgram(c),null==(t=r.onHasGl)||t.call(r,!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"),A=p("u_ear2");s.disable(s.BLEND);var D=0,P=!0,T=!0,C=performance.now(),N=C,M=C+1800+2400*Math.random(),R=-1e4,I=function(){var t=e.parentElement;if(t){var n=Math.min(window.devicePixelRatio||1,2),r=t.clientWidth,a=t.clientHeight;r<=0||a<=0||(e.width=Math.max(1,Math.floor(r*n)),e.height=Math.max(1,Math.floor(a*n)),e.style.width="".concat(r,"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=Cq(e,1)[0];T=!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(r.interactive){var n=e.parentElement;if(n){var a=n.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 U=function(e){var t;e.preventDefault(),P=!1,cancelAnimationFrame(D),null==(t=r.onHasGl)||t.call(r,!1)};e.addEventListener("webglcontextlost",U);var $=function(t){if(P){D=requestAnimationFrame($);var n,l,u=Math.min(.05,Math.max(.001,(t-N)/1e3));if(N=t,T&&!document.hidden){var c,d,f,p,I,L,F,B,V,z=C1(r.variant,r.color,r.eyeColor,r.colors,r.earColors),W=(t-C)/1e3,U=r.interactive?i.x:0,H=r.interactive?i.y:.06;a.vx+=((U-a.x)*130-17*a.vx)*u,a.vy+=((H-a.y)*130-17*a.vy)*u,a.x+=a.vx*u,a.y+=a.vy*u;var 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&&r.blink&&t>=M&&(R=t,M=t+2200+3800*Math.random());var Y=(t-R)/1e3,Z=0;!o&&r.blink&&(Y<.055?Z=Y/.055:Y<.1?Z=1:Y<.18&&(Z=1-(Y-.1)/.08));var X=CJ(z.body),Q=CJ(z.eye),J=[0,1,2].map(function(e){var t;return CJ(null!=(t=z.palette[e%z.palette.length])?t:CY[e])}),ee=CJ(null!=(n=z.ear[0])?n:CZ[0]),et=CJ(null!=(l=z.ear[1])?l:CZ[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,Z),s.uniform1f(b,z.mode),s.uniform1f(x,+!!r.ears),s.uniform3f(w,X[0],X[1],X[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(A,et[0],et[1],et[2]),s.drawArrays(s.TRIANGLES,0,6)}}};return D=requestAnimationFrame($),{setOptions:function(e){r=CG({},r,e)},destroy:function(){var t;P=!1,cancelAnimationFrame(D),L.disconnect(),null==F||F.disconnect(),B.removeEventListener("change",V),window.removeEventListener("pointermove",z),document.removeEventListener("mouseout",W),e.removeEventListener("webglcontextlost",U),null==(t=r.onHasGl)||t.call(r,!1),s.deleteProgram(c),s.deleteShader(l),s.deleteShader(u),s.deleteBuffer(d)}}}function C3(e){var t=e.resolved,n=e.ears,r=e.interactive,a=(0,g.useRef)(null),i=(0,g.useRef)(null);(0,g.useEffect)(function(){if(r){var e=a.current,t=i.current,n=null==e?void 0:e.parentElement;if(e&&n){var o=function(r){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var i=3*Math.max(a.width,a.height)+120,o=Math.tanh((r.clientX-(a.left+a.width/2))/i*2.2),s=Math.tanh((a.top+a.height/2-r.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)}}}},[r]);var o=Cq(t.ear,2),s=o[0],l=o[1],u="transform 140ms ease-out",c={position:"absolute"},d=CK(CG({},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:CK(CG({},c),{inset:0,transform:"scale(".concat(1.09,")")}),children:[n?(0,v.jsx)("div",{ref:i,"data-part":"ears","aria-hidden":!0,style:CK(CG({},c),{inset:0,transition:u}),children:[0,1].map(function(e){return(0,v.jsx)("span",{"data-part":"ear",style:CK(CG({},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:CK(CG({},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:CK(CG(CK(CG({},c),{overflow:"hidden",left:"15%",top:"24%",width:"70%",height:"52%",borderRadius:"50%"}),function(e){if(1===e.mode){var t,n,r,a=null!=(t=e.palette[0])?t:CY[0],i=null!=(n=e.palette[1])?n:CY[1],o=null!=(r=e.palette[2])?r:CY[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:CK(CG({},c),{inset:0,transition:u}),children:[(0,v.jsx)("span",{"data-part":"eye",style:CK(CG({},d),{left:"29.9%"})}),(0,v.jsx)("span",{"data-part":"eye",style:CK(CG({},d),{left:"61.8%"})}),(0,v.jsx)("span",{"data-part":"line",style:CK(CG({},c),{backgroundColor:t.eye,left:"34%",width:"32%",height:"1.6%",top:"46.6%",borderRadius:"999px"})})]})]})}function C4(e){var t=e.className,n=e.size,r=void 0===n?280:n,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),w=Cq((0,g.useState)(!1),2),S=w[0],j=w[1];(0,g.useEffect)(function(){var e=b.current;if(e)return x.current=C2(e,{variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:m,earColors:y,onHasGl:j}),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:j})},[o,s,l,u,d,p,m,y]);var O=C1(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:mP("relative shrink-0",t),style:{position:"relative",width:r,height:r},children:[S?null:(0,v.jsx)(C3,{resolved:O,ears:m,interactive:d}),(0,v.jsx)("canvas",{ref:b,className:"absolute inset-0 size-full"})]})}function C5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C6(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function C8(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){C6(i,r,a,o,s,"next",e)}function s(e){C6(i,r,a,o,s,"throw",e)}o(void 0)})}}function C9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||C7(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 C7(e,t){if(e){if("string"==typeof e)return C5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C5(e,t)}}function Ne(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function Nt(e){var t=e.text,n=C9((0,g.useState)("auto"),2),r=n[0],a=n[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:r},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 Nn(e){var t=e.model,n=e.className,r={"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:r[t]||r["GPT 5.5"],alt:t,className:mP("object-contain",{"GPT 5.5":"dark:invert"}[t],n)})}function Nr(){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 Na(){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 Ni(){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 No(){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 Ns(){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 Nl(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 Nu(e){var t=e.attachment,n=e.index,r=e.onRemove,a=e.onOpen,i=e.registerRef,o=C9((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*n,"ms"),animationFillMode:"backwards"},className:mP("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:mP("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(),r(t.id)},className:mP("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)(Ns,{})})})]})}function Nc(e){var t=e.attachment,n=e.originRect,r=e.onClose,a=C9((0,g.useState)("opening"),2),i=a[0],o=a[1],s=C9((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),n=Math.min(.78*window.innerHeight,720),r=t.width||800,a=t.height||600,i=Math.min(e/r,n/a,1.6),s=r*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:n.top,left:n.left,width:n.width,height:n.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&&r()},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:mP("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)(Ns,{})})})]})}var Nd=g.forwardRef(function(e,t){var n=e.onSubmit,r=e.placeholder,a=void 0===r?"Ask anything":r,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=C9((0,g.useState)(!1),2),y=m[0],b=m[1],x=C9((0,g.useState)(!1),2),w=x[0],S=x[1],j=C9((0,g.useState)(void 0===c?"":c),2),O=j[0],k=j[1],E=C9((0,g.useState)(s[0]),2),A=E[0],D=E[1],P=C9((0,g.useState)(1),2),T=P[0],C=P[1],N=C9((0,g.useState)(!1),2),M=N[0],R=N[1],I=C9((0,g.useState)([]),2),L=I[0],F=I[1],B=C9((0,g.useState)(null),2),V=B[0],z=B[1],W=C9((0,g.useState)(!1),2),U=W[0],$=W[1],H=C9((0,g.useState)([,,,,,].fill(0)),2),G=H[0],K=H[1],q=(0,g.useRef)(void 0!==d?d:O),Y=(0,g.useRef)(null),Z=(0,g.useRef)(null),X=(0,g.useRef)(null),Q=(0,g.useRef)(null),J=(0,g.useRef)(null),ee=(0,g.useRef)(null),et=C9((0,g.useState)({opacity:0,transform:"translateY(0px) scale(0.95)",transition:"none"}),2),en=et[0],er=et[1],ea=C9((0,g.useState)(116),2),ei=ea[0],eo=ea[1],es=C9((0,g.useState)(68),2),el=es[0],eu=es[1],ec=C9((0,g.useState)(!1),2),ed=ec[0],ef=ec[1],ep=void 0!==d,eh=ep?d:O,em=""!==eh.trim()||L.length>0,ey=L.length>0,ev=(0,g.useRef)(null),eg=(0,g.useRef)(null),eb=(0,g.useRef)(null),ex=(0,g.useRef)(null),ew=(0,g.useRef)(null),eS=(0,g.useRef)(new Map);(0,g.useEffect)(function(){q.current=eh},[eh]);var ej=function(){var e=ev.current;if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;eb.current&&(eb.current.style.opacity=Math.min(t/20,1).toString()),ex.current&&(ex.current.style.opacity=Math.min(Math.max(n-r-t-16,0)/10,1).toString())}},eO=(0,g.useCallback)(function(e){S(!0),ep||k(e),null==f||f(e)},[ep,f]),ek=(0,g.useCallback)(function(){Q.current&&(Q.current.stop(),Q.current=null),X.current&&(cancelAnimationFrame(X.current),X.current=null),Y.current&&(Y.current.getTracks().forEach(function(e){return e.stop()}),Y.current=null),Z.current&&(Z.current.close(),Z.current=null),J.current&&(window.clearInterval(J.current),J.current=null),ee.current&&(window.clearInterval(ee.current),ee.current=null),$(!1),K([,,,,,].fill(0))},[]),eE=(0,g.useCallback)(function(){return C8(function(){var e,t,n,r,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,n=q.current;ee.current=window.setInterval(function(){t<e.length?(eO(n=(n?n+" ":"")+e[t]),t++):ek()},300)}return Ne(this,function(u){switch(u.label){case 0:S(!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 $(!0),e?(Y.current=e,Z.current=t=new(window.AudioContext||window.webkitAudioContext),(n=t.createAnalyser()).fftSize=64,t.createMediaStreamSource(e).connect(n),r=new Uint8Array(n.frequencyBinCount),(a=function(){n.getByteFrequencyData(r);for(var e=[,,,,,].fill(0),t=Math.floor(r.length/5),i=0;i<5;i++){for(var o=0,s=0;s<t;s++)o+=r[i*t+s];e[i]=o/t/255}K(e),X.current=requestAnimationFrame(a)})(),(i=window.SpeechRecognition||window.webkitSpeechRecognition)?((o=new i).continuous=!0,o.interimResults=!0,s=q.current,o.onresult=function(e){for(var t="",n="",r=e.resultIndex;r<e.results.length;++r)e.results[r].isFinal?n+=e.results[r][0].transcript:t+=e.results[r][0].transcript;n&&(s+=(s?" ":"")+n),eO((s+(t?" "+t:"")).trim())},o.onerror=function(e){console.error("Speech recognition error",e),ek()},o.onend=function(){ek()},Q.current=o,o.start()):(console.warn("Speech Recognition API not supported in this browser. Using simulated text."),l())):(J.current=window.setInterval(function(){K(Array.from({length:5},function(){return .8*Math.random()+.1}))},100),l()),[2]}})})()},[eO,ek]);(0,g.useEffect)(function(){U&&ev.current&&(ev.current.scrollTop=ev.current.scrollHeight)},[eh,U]),(0,g.useEffect)(function(){return function(){ek(),L.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[ek,L]),(0,g.useEffect)(function(){(""!==eh.trim()||ey)&&!y&&(S(!1),b(!0))},[eh,y,ey]),(0,g.useEffect)(function(){if(y&&!U){var e=setTimeout(function(){if(ev.current){ev.current.focus();var e=ev.current.value.length;ev.current.setSelectionRange(e,e)}},50);return function(){return clearTimeout(e)}}},[y,U]),(0,g.useEffect)(function(){if(ev.current){var e=ev.current,t=e.style.height;e.style.transition="none",e.style.height="0px";var n=e.scrollHeight;e.style.height=t,e.offsetHeight,e.style.transition="";var r=Math.max(68,Math.min(n,160));e.style.height="".concat(r,"px"),eu(r),ef(n>160),setTimeout(ej,0)}},[eh,y]),(0,g.useEffect)(function(){eo(Math.max(116,el+48)),setTimeout(ej,0)},[el]),(0,g.useEffect)(function(){if(M){var e=function(e){eg.current&&!eg.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[M]);var eA=function(){(""!==eh.trim()||ey)&&(S(!1),null==n||n(eh,{model:A,effort:u[T],attachments:L.map(function(e){return e.file})}),eO(""),L.forEach(function(e){return URL.revokeObjectURL(e.url)}),F([]),b(!1),R(!1))},eD=function(e,t,n,r){var a="".concat(e.name,"-").concat(e.lastModified,"-").concat(Math.random().toString(36).slice(2,8));F(function(i){return((function(e){if(Array.isArray(e))return C5(e)})(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||C7(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:n,height:r}])})},eP=function(e){S(!0),F(function(t){var n=t.find(function(t){return t.id===e});return n&&URL.revokeObjectURL(n.url),t.filter(function(t){return t.id!==e})}),eS.current.delete(e)},eT=em&&!U,eC=!em&&!U;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),eg.current=e},onBlur:function(e){!(eg.current&&eg.current.contains(e.relatedTarget))&&(""!==eh.trim()||ey||U||(S(!1),b(!1),R(!1)))},className:mP("relative flex flex-col w-full",i),style:{maxWidth:"100%",transition:w?"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:ew,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return C8(function(){var t,n,r,a,i,o,s,l,u,c;return Ne(this,function(d){if(!(t=e.target.files)||(n=Array.from(t).filter(function(e){return e.type.startsWith("image/")}),e.target.value="",0===n.length))return[2];r=Math.max(0,h-L.length),a=n.slice(0,r),y?S(!0):(S(!1),b(!0)),i=!0,o=!1,s=void 0;try{for(l=function(){var e=c.value,t=URL.createObjectURL(e),n=new Image;n.onload=function(){return eD(e,t,n.naturalWidth,n.naturalHeight)},n.onerror=function(){return eD(e,t,800,600)},n.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":!ey,style:{height:ey&&y?68:0,transition:w?"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:ey&&y?"translateY(0)":"translateY(100%)",opacity:ey&&y?1:0,transition:w?"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:L.map(function(e,t){return(0,v.jsx)(Nu,{attachment:e,index:t,onRemove:eP,onOpen:function(e,t){return z({attachment:e,rect:t})},registerRef:function(e,t){return eS.current.set(e,t)}},e.id)})})}),(0,v.jsxs)("div",{onMouseDown:function(e){var t,n=e.target===ev.current;!y||n||U||(e.preventDefault(),null==(t=ev.current)||t.focus())},style:{borderRadius:24,height:y?ei:48,transition:w?"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:mP("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:ev,value:eh,onChange:function(e){return eO(e.target.value)},onScroll:ej,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),eA()),"Escape"!==e.key||""!==eh.trim()||ey||(S(!1),b(!1),R(!1))},placeholder:a,"aria-label":"Prompt",disabled:U,style:{transition:w?"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:mP("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",ed?"overflow-y-auto":"overflow-y-hidden",U&&"pointer-events-none")}),(0,v.jsx)("div",{ref:eb,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:ex,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(el-32,"px"),transition:w?"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(){S(!1),b(!0)},style:{transition:w?"none":"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:mP("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:mP("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(),R(function(e){return!e})},className:mP("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)(Nn,{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)(Nt,{text:A})})]}),(0,v.jsx)("div",{style:{transformOrigin:"bottom left"},onMouseLeave:function(){er(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={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(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t})},className:mP("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(){er(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),R(!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)(Nn,{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(),C(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)(Nl,{level:u[T]}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(Nt,{text:u[T]})})]}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){var t;e.stopPropagation(),null==(t=ew.current)||t.click()},disabled:L.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)(No,{})})]}),(0,v.jsx)("div",{className:mP("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:G.map(function(e,t){return(0,v.jsx)("div",{className:"w-1 rounded-full bg-primary transition-[height] duration-75 ease-out",style:{height:"".concat(Math.max(4,24*e),"px")}},t)})}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),U?ek():em?eA():eE()},"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:mP("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)(Nr,{})}),(0,v.jsx)("span",{className:mP("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eC?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 -rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(Na,{})}),(0,v.jsx)("span",{className:mP("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)(Ni,{})})]})})]})]}),V&&(0,v.jsx)(Nc,{attachment:V.attachment,originRect:V.rect,onClose:function(){return z(null)}})]})});Nd.displayName="PromptInput";var Nf=n(3766);function Np(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Nh=(0,g.lazy)(function(){return n.e("1808").then(n.bind(n,339))}),Nm=new Set;function Ny(e){if(!("u"<typeof document||(0,Nf.$)()||Nm.has(e))){Nm.add(e);var t=document.createElement("link");t.rel="preload",t.as="fetch",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}}function Nv(e){var t,n=e.scene,r=e.className,a=void 0===r?"w-full h-full":r,i=e.onLoad,o=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Np(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 Np(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,Nf.$)()?(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)(Nh,{scene:n,className:"w-full h-full",onLoad:function(e){l(!0),i&&i(e)}})})})]})}var Ng={mode:"dark",hue:0,saturation:1,brightness:1},Nb={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 Nx(e,t,n){return Math.min(n,Math.max(t,e))}function Nw(e,t){var n,r;return null!=(n=null==(r=e.theme)?void 0:r["".concat(t,"Background")])?n:e.background}function NS(e){var t=e.mode,n=void 0===t?Ng.mode:t,r=e.hue,a=void 0===r?Ng.hue:r,i=e.saturation,o=void 0===i?Ng.saturation:i,s=e.brightness,l=void 0===s?Ng.brightness:s,u=e.className,c=e.style,d="light"===n?"light":"dark",f=Nw(Nb,d),p=(0,g.useMemo)(function(){var e,t,n,r,a,i,o,s;return t=Nw(Nb,d),n=Nb.source,r=JSON.stringify(Nb.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=Nb.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(r,";\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>"),n.replace(/<\/head>/i,"".concat(o,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),h=Nx(a,-180,180),m=Nx(o,0,2),y=Nx(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:Nb.title,srcDoc:p,sandbox:"allow-scripts",loading:"eager",style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({display:"block",width:"100%",height:"100%",border:0,background:f,filter:b},c)})}function Nj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NO(e){if(Array.isArray(e))return e}function Nk(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function NE(e,t){if(e){if("string"==typeof e)return Nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nj(e,t)}}var NA=(0,g.forwardRef)(function(e,t){var n,r,a,i=NO(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||NE(n)||Nk(),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 n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["children","optionsComponent","header","footer","align","width","className","contentClassName"]),b=(NO(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||NE(s,1)||Nk())[0],x=m.includes("fixed")||m.includes("absolute");return(0,v.jsx)("div",(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r))});NA.displayName="WaterGlassModal";function ND(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NP=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");ND(this,"ctx",null),ND(this,"isMuted",!1),ND(this,"volume",.5),ND(this,"lastPlayTimes",{}),ND(this,"noiseBuffer",null);try{var n=localStorage.getItem("egen_xbox_sound_muted");null!==n&&(this.isMuted="true"===n);var r=localStorage.getItem("egen_xbox_sound_volume");null!==r&&(this.volume=parseFloat(r)||.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),n=0;n<2;n++)for(var r=t.getChannelData(n),a=0;a<e;a++)r[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 n=this.initContext();if(n)try{switch(e){case"hover":this.playHover(n);break;case"select":this.playSelect(n);break;case"back":this.playBack(n);break;case"modalOpen":this.playModalOpen(n);break;case"folderOpen":this.playFolderOpen(n);break;case"scroll":this.playScroll(n);break;case"boundary":this.playBoundary(n);break;case"notification":this.playNotification(n);break;case"achievement":this.playAchievement(n);break;case"toastSuccess":this.playToastSuccess(n);break;case"toastInfo":this.playToastInfo(n);break;case"toastWarning":this.playToastWarning(n);break;case"toastError":this.playToastError(n);break;case"toggle":this.playToggle(n)}}catch(e){console.warn("Xbox Audio error:",e)}}}}},{key:"playHover",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(2200,t),n.frequency.exponentialRampToValueAtTime(1400,t+.025),a.type="bandpass",a.frequency.setValueAtTime(1800,t),a.Q.setValueAtTime(3,t);var i=.12*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.025),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.03)}},{key:"playSelect",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="sine",n.frequency.setValueAtTime(920,t),n.frequency.exponentialRampToValueAtTime(1480,t+.035),n.frequency.exponentialRampToValueAtTime(1100,t+.07);var a=.28*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.003),r.gain.exponentialRampToValueAtTime(.001,t+.07),n.connect(r),r.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),n.start(t),i.start(t),n.stop(t+.08),i.stop(t+.06)}},{key:"playBack",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(750,t),n.frequency.exponentialRampToValueAtTime(260,t+.015);var a=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(r),r.connect(e.destination),n.start(t),n.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,n=e.currentTime,r=e.createBiquadFilter();if(r.type="lowpass",r.frequency.setValueAtTime(1100,n),r.Q.setValueAtTime(.7,n),r.connect(e.destination),this.noiseBuffer){var a=e.createBufferSource();a.buffer=this.noiseBuffer;var i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(450,n),i.frequency.exponentialRampToValueAtTime(700,n+.1),i.Q.setValueAtTime(1.2,n);var o=e.createGain(),s=.045*this.volume;o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.03),o.gain.exponentialRampToValueAtTime(1e-4,n+.18),a.connect(i),i.connect(o),o.connect(r),a.start(n),a.stop(n+.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=n+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(r),i.start(s),i.stop(s+a.dur+.01)})}},{key:"playFolderOpen",value:function(e){var t=this,n=e.currentTime;if(this.noiseBuffer){var r=e.createBufferSource();r.buffer=this.noiseBuffer;var a=e.createBiquadFilter();a.type="bandpass",a.frequency.setValueAtTime(350,n),a.frequency.exponentialRampToValueAtTime(2400,n+.12),a.frequency.exponentialRampToValueAtTime(600,n+.28),a.Q.setValueAtTime(3.5,n);var i=e.createGain(),o=.2*this.volume;i.gain.setValueAtTime(0,n),i.gain.linearRampToValueAtTime(o,n+.08),i.gain.exponentialRampToValueAtTime(1e-4,n+.28),r.connect(a),a.connect(i),i.connect(e.destination),r.start(n),r.stop(n+.3)}[659.25,987.77,1318.5].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(.85*r,n),i.frequency.exponentialRampToValueAtTime(r,n+.09);var s=.12*t.volume/(a+1);o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.04),o.gain.exponentialRampToValueAtTime(1e-4,n+.35),i.connect(o),o.connect(e.destination),i.start(n),i.stop(n+.36)})}},{key:"playScroll",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(1400,t),n.frequency.exponentialRampToValueAtTime(800,t+.018),a.type="bandpass",a.frequency.setValueAtTime(1200,t),a.Q.setValueAtTime(2,t);var i=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02)}},{key:"playBoundary",value:function(e){var t=e.currentTime,n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(450,t),n.frequency.exponentialRampToValueAtTime(180,t+.06),n.Q.setValueAtTime(1.2,t),n.connect(e.destination);var r=e.createOscillator(),a=e.createGain();r.type="sine",r.frequency.setValueAtTime(210,t),r.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),r.connect(a),a.connect(n),r.start(t),r.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(n),o.start(t),o.stop(t+.055)}},{key:"playNotification",value:function(e){var t=this,n=e.currentTime;[{f:880,start:0,dur:.22,vol:.25},{f:1320,start:.08,dur:.35,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.f,n+r.start);var o=t.volume*r.vol;i.gain.setValueAtTime(0,n+r.start),i.gain.linearRampToValueAtTime(o,n+r.start+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.start+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.start),a.stop(n+r.start+r.dur)})}},{key:"playAchievement",value:function(e){var t=this,n=e.currentTime;[{freq:739.99,time:0,dur:.15},{freq:1108.73,time:.08,dur:.55}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.freq,n+r.time);var o=.3*t.volume;i.gain.setValueAtTime(0,n+r.time),i.gain.linearRampToValueAtTime(o,n+r.time+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.time+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.time),a.stop(n+r.time+r.dur)}),[1479.98,1864.66,2217.46,2959.96].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(r,n+.12);var s=.22*t.volume/(a+1);o.gain.setValueAtTime(0,n+.12),o.gain.linearRampToValueAtTime(s,n+.14),o.gain.exponentialRampToValueAtTime(1e-4,n+.85),i.connect(o),o.connect(e.destination),i.start(n+.12),i.stop(n+.9)})}},{key:"playToastSuccess",value:function(e){var t=this,n=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(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.008),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastInfo",value:function(e){var t=this,n=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(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.006),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastWarning",value:function(e){var t=this,n=e.currentTime;[{f:554.37,delay:0,dur:.06,vol:.25},{f:466.16,delay:.075,dur:.12,vol:.26}].forEach(function(r){var a=e.createOscillator(),i=e.createGain(),o=e.createBiquadFilter();a.type="triangle",o.type="bandpass",o.frequency.setValueAtTime(900,n+r.delay),o.Q.setValueAtTime(2.2,n+r.delay);var s=n+r.delay;a.frequency.setValueAtTime(r.f,s);var l=t.volume*r.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.005),i.gain.exponentialRampToValueAtTime(1e-4,s+r.dur),a.connect(o),o.connect(i),i.connect(e.destination),a.start(s),a.stop(s+r.dur+.01)})}},{key:"playToastError",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sawtooth",n.frequency.setValueAtTime(392,t),n.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;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.005),r.gain.exponentialRampToValueAtTime(1e-4,t+.13),n.connect(a),a.connect(r),r.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),n.start(t),o.start(t),n.stop(t+.14),o.stop(t+.16)}},{key:"playToggle",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(1100,t),n.frequency.exponentialRampToValueAtTime(1600,t+.02);var a=.18*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.03),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.035)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function NT(e){NP.play(e)}function NC(){return NP.getIsMuted()}function NN(){return NP.toggleMute()}var NM=(0,g.lazy)(function(){return Promise.all([n.e("6880"),n.e("4646")]).then(n.bind(n,9477)).then(function(e){return{default:e.RobotStage}})});function NR(){Promise.all([n.e("6880"),n.e("4646")]).then(n.bind(n,9477))}function NI(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)(NM,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e))})}var N_=n(2707),NL=n(9881);function NF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){NB(e,t,n[t])})}return e}function Nz(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 n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function NW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||N$(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 NU(e){return function(e){if(Array.isArray(e))return NF(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N$(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 N$(e,t){if(e){if("string"==typeof e)return NF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NF(e,t)}}var NH={type:"spring",stiffness:560,damping:34,mass:.7};function NG(e,t){return e.find(function(e){return e.id===t})}function NK(e,t){return null==e?void 0:e.operators.find(function(e){return e.value===t})}function Nq(e){var t,n,r=e.anchorKey,a=e.label,i=e.onClose,o=e.children,s=g.useRef(null),l=Em(),u=NW(g.useState(null),2),c=u[0],d=u[1],f=NW(g.useState(!1),2),p=f[0],h=f[1],m=NW(g.useState(null),2),y=m[0],b=m[1];g.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(r,'"]'));d(e),h(!!(null==e?void 0:e.closest(".dark")))},[r]);var x=g.useRef(r);return x.current=r,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(),n=e.offsetWidth,r=e.offsetHeight,a=t.left,i=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-n-8)),i+r>window.innerHeight-8&&(i=t.top-6-r),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,tQ.createPortal)((0,v.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,v.jsx)(hS.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!=(n=null==y?void 0:y.left)?n:-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 NY(e){var t=e.items,n=e.multi,r=e.loading,a=e.error,i=e.searchable,o=e.placeholder,s=e.onQuery,l=e.onPick,u=e.onRetry,c=e.ariaLabel,d=NW(g.useState(""),2),f=d[0],p=d[1],h=NW(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":n||void 0,"aria-label":c,className:"max-h-60 overflow-y-auto p-1",onKeyDown:O,tabIndex:-1,children:[r&&(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)(N2,{})," Chargement des options…"]}),a&&!r&&(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"})]}),!r&&!a&&0===S.length&&(0,v.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!r&&!a&&S.map(function(e,t){var r=t===m;return(0,v.jsxs)("li",{id:"".concat(b,"-").concat(t),"data-idx":t,role:"option","aria-selected":n?!!e.selected:r,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)]",r?"bg-[var(--fb-bg-active)]":"bg-transparent"].join(" "),children:[n&&(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)(N1,{})}),e.glyph&&(0,v.jsx)("span",{className:"shrink-0","aria-hidden":!0,children:e.glyph}),(0,v.jsx)("span",{className:"truncate",children:e.label}),!n&&e.selected&&(0,v.jsx)("span",{className:"ml-auto text-[var(--fb-fg-muted)]",children:(0,v.jsx)(N1,{})})]},e.value)})]})]})}function NZ(e){var t=e.inputType,n=e.arity,r=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===n){var d=NW(r,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=NW(r,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 NX(e){var t=e.role,n=e.children,r=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:r,"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:n})}function NQ(e){var t,n,r=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=Em(),b=NW(g.useState(null),2),x=b[0],w=b[1],S=NW(g.useState(null),2),j=S[0],O=S[1],k=g.useRef([]),E=NW(g.useState(0),2),A=E[0],D=E[1],P=NW(g.useState({}),2),T=P[0],C=P[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(){A>N.length-1&&D(N.length-1)},[N.length,A]);var M=function(e){var t,n=Math.max(0,Math.min(e,N.length-1));D(n),null==(t=k.current[n])||t.focus()},R=function(e){var t,n,o=NG(r,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(NU(a).concat([l])),w((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:l.id})}},I=function(e,t){var n,o=NG(r,t),s=null==o?void 0:o.operators[0];i(a.map(function(n){var r;return n.id===e?Nz(NV({},n),{field:t,operator:null!=(r=null==s?void 0:s.value)?r:n.operator,values:[]}):n})),w((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:e})},L=function(e,t){var n,o,s=a.find(function(t){return t.id===e}),l=NK(NG(r,null!=(n=null==s?void 0:s.field)?n:""),t),u=null!=(o=null==l?void 0:l.arity)?o:1;i(a.map(function(n){if(n.id!==e)return n;var r=0===u?[]:(null==l?void 0:l.multi)?n.values:n.values.slice(0,u);return Nz(NV({},n),{operator:t,values:r})})),w(0===u?null:{kind:"value",filterId:e})},F=function(e,t,n){i(a.map(function(r){if(r.id!==e)return r;if(!n)return Nz(NV({},r),{values:[t]});var a=r.values.includes(t);return Nz(NV({},r),{values:a?r.values.filter(function(e){return e!==t}):NU(r.values).concat([t])})})),O(e),window.setTimeout(function(){return O(function(t){return t===e?null:t})},640),n||w(null)},B=function(e,t){i(a.map(function(n){return n.id===e?Nz(NV({},n),{values:t}):n}))},V=function(e,t){i(a.filter(function(t){return t.id!==e})),w(null);var n=Math.max(0,(null!=t?t:A)-1);requestAnimationFrame(function(){return M(n)})},z=g.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.loadOptions&&(C(function(t){var n,r;return Nz(NV({},t),NB({},e.id,{loading:!0,error:!1,options:null!=(n=null==(r=t[e.id])?void 0:r.options)?n:[]}))}),e.loadOptions(t).then(function(t){return C(function(n){return Nz(NV({},n),NB({},e.id,{loading:!1,error:!1,options:t}))})}).catch(function(){return C(function(t){return Nz(NV({},t),NB({},e.id,{loading:!1,error:!0,options:[]}))})}))},[]);g.useEffect(function(){if(x&&"value"===x.kind){var e,t,n=a.find(function(e){return e.id===x.filterId}),i=NG(r,null!=(e=null==n?void 0:n.field)?e:"");(null==i?void 0:i.loadOptions)&&!(null==(t=T[i.id])?void 0:t.options.length)&&z(i)}},[x]);var W=0,U=function(){var e=W++;return{idx:e,register:function(t){return k.current[e]=t},tabIndex:e===A?0:-1,onFocus:function(){return D(e)}}},$=x?"add"===x.kind?"add":"".concat(x.filterId,":").concat(x.kind):null,H=function(){if(!x)return"";if("add"===x.kind)return u;if("field"===x.kind)return"Modifier le champ du filtre";if("operator"===x.kind)return"Choisir un op\xe9rateur";var e,t=a.find(function(e){return e.id===x.filterId}),n=NG(r,null!=(e=null==t?void 0:t.field)?e:"");return n?"Valeur pour ".concat(n.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(),M(A>=t?0:A+1);else if("ArrowLeft"===e.key)e.preventDefault(),M(A<=0?t:A-1);else if("Home"===e.key)e.preventDefault(),M(0);else if("End"===e.key)e.preventDefault(),M(t);else if("Backspace"===e.key||"Delete"===e.key){var n=N[A];(null==n?void 0:n.filterId)&&(e.preventDefault(),V(n.filterId,A))}}},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)(jv,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,n,a,i,o,s,l,u,c,d=NG(r,e.field),f=NK(d,e.operator),p=null!=(t=null==f?void 0:f.arity)?t:1,h=null!=(n=null==d?void 0:d.type)?n:"select",m=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===h?function(e,t){if(!t.length)return{text:"Choisir…",empty:!0,glyphs:[]};var n=function(t){return null==e?void 0:e.find(function(e){return e.value===t})},r=function(e){var t,r;return null!=(t=null==(r=n(e))?void 0:r.label)?t:e},a=t.map(function(e){var t;return null==(t=n(e))?void 0:t.glyph}).filter(Boolean).slice(0,3);return 1===t.length?{text:r(t[0]),empty:!1,glyphs:a}:t.length<=3?{text:t.map(r).join(", "),empty:!1,glyphs:a}:{text:"".concat(r(t[0])," +").concat(t.length-1),empty:!1,glyphs:a}}((null==d?void 0:d.loadOptions)?null==(c=T[d.id])?void 0:c.options:null==d?void 0:d.options,e.values):function(e,t,n){if(0===t)return{text:"—",empty:!1,glyphs:[]};if(!n.some(function(e){return""!==e&&null!=e}))return{text:"Choisir une valeur…",empty:!0,glyphs:[]};var r,a,i,o=function(t){if(!t)return"…";if("date"!==e)return t;var n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleDateString()};return 2===t?{text:"".concat(o(null!=(a=n[0])?a:"")," – ").concat(o(null!=(i=n[1])?i:"")),empty:!1,glyphs:[]}:{text:o(null!=(r=n[0])?r:""),empty:!1,glyphs:[]}}(h,p,e.values),g=U(),b=U(),S=U(),O=U(),k=j===e.id;return(0,v.jsxs)(hS.div,{layout:!y,initial:!y&&{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:y?{opacity:0}:{opacity:0,scale:.9},transition:NH,className:"group flex items-stretch overflow-hidden rounded-md border border-[var(--fb-border)] bg-[var(--fb-bg-chip)]",children:[(0,v.jsxs)(NX,{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)(NX,{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)(NX,{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)(N0,{})})]},e.id)})}),(t=U(),n=0===a.length,(0,v.jsxs)("button",{type:"button",ref:t.register,tabIndex:t.tabIndex,onFocus:t.onFocus,"data-fb-anchor":"add","aria-label":n?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)(NJ,{}),n?u:s]})),G&&(0,v.jsx)("button",{type:"button",onClick:function(){i([]),w(null),requestAnimationFrame(function(){return M(0)})},className:"ml-0.5 rounded-md px-2 py-[6px] text-[13px] leading-none text-[var(--fb-fg-muted)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70",children:void 0===c?"R\xe9initialiser":c}),x&&$&&(0,v.jsx)(Nq,{anchorKey:$,label:H,onClose:function(){return w(null)},children:function(){if(!x)return null;if("add"===x.kind||"field"===x.kind){var e,t,n,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=r.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)(NY,{ariaLabel:H,items:u,multi:!1,onPick:function(e){return"add"===x.kind?R(e):I(x.filterId,e)}},null!=$?$:void 0)}var c=a.find(function(e){return e.id===x.filterId}),d=NG(r,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)(NY,{ariaLabel:H,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return L(c.id,e)}},null!=$?$:void 0)}var h=NK(d,c.operator),m=null!=(t=null==h?void 0:h.arity)?t:1;if(0===m)return null;var y=null!=(n=d.type)?n:"select";if("text"===y||"number"===y||"date"===y)return(0,v.jsx)(NZ,{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!=$?$:void 0);var g=!!(null==h?void 0:h.multi),b=d.loadOptions?T[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)(NY,{ariaLabel:H,items:w,multi:g,loading:null==b?void 0:b.loading,error:null==b?void 0:b.error,onQuery:d.loadOptions?function(e){return z(d,e)}:void 0,onRetry:function(){return z(d)},onPick:function(e){return F(c.id,e,g)}},null!=$?$:void 0)}()})]})}function NJ(){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 N0(){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 N1(){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 N2(){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 N3=NQ;var N4={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}]},N5=[{value:"true",label:"Oui"},{value:"false",label:"Non"}];function N6(e,t){var n=function(e){var n,r;return null!=(n=null==(r=t.find(function(t){return t.field===e}))?void 0:r.values)?n:[]};return e.fields.filter(function(e){return!e.dependsOn||n(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:N4.boolean,options:null!=(i=e.options)?i:N5};var t,r,a,i,o=null!=(t=e.operators)?t:N4[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?n(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:s.flatMap(function(t){var n,r;return null!=(n=null==(r=e.optionsByParent)?void 0:r[t])?n:[]})}: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!=(r=e.options)?r:[]}})}function N8(e,t){for(var n=t,r=0;r<e.fields.length&&"break"!==function(){var t=!1,r=n.filter(function(r){var a=e.fields.find(function(e){return e.id===r.field});if(!(null==a?void 0:a.dependsOn))return!0;var i=n.find(function(e){return e.field===a.dependsOn}),o=!!i&&i.values.length>0;return o||(t=!0),o});if(n=r.map(function(n){var a,i=e.fields.find(function(e){return e.id===n.field});if(!(null==i?void 0:i.dependsOn)||!i.optionsByParent)return n;var o=r.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,n,r;return null!=(t=null==(r=i.optionsByParent)||null==(n=r[e])?void 0:n.map(function(e){return e.value}))?t:[]})),l=n.values.filter(function(e){return s.has(e)});return l.length!==n.values.length&&(t=!0),l.length===n.values.length?n:Nz(NV({},n),{values:l})}),!t)return"break"}();r++);return n}function N9(e,t,n){return{fields:g.useMemo(function(){return N6(e,t)},[e,t]),onChange:g.useCallback(function(t){return n(N8(e,t))},[e,n])}}function N7(e,t,n,r){var a=function(e){return null==e?"":String(e)};switch(t){case"is_empty":return""===a(n);case"is_not_empty":return""!==a(n);case"contains":return a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"not_contains":return!a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"starts_with":return a(n).toLowerCase().startsWith(a(r[0]).toLowerCase());case"equals":return a(n).toLowerCase()===a(r[0]).toLowerCase();case"is":return a(n)===r[0];case"is_not":return a(n)!==r[0];case"is_any_of":return r.includes(a(n));case"eq":return Number(n)===Number(r[0]);case"neq":return Number(n)!==Number(r[0]);case"gt":return Number(n)>Number(r[0]);case"gte":return Number(n)>=Number(r[0]);case"lt":return Number(n)<Number(r[0]);case"lte":return Number(n)<=Number(r[0]);case"between":var i=NW(r,2),o=i[0],s=i[1];if("date"===e){var l=new Date(a(n)).getTime(),u=!o||l>=new Date(o).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(n),f=void 0===o||""===o||d>=Number(o),p=void 0===s||""===s||d<=Number(s);return f&&p;case"on":return a(n).slice(0,10)===a(r[0]).slice(0,10);case"before":return new Date(a(n)).getTime()<new Date(r[0]).getTime();case"after":return new Date(a(n)).getTime()>new Date(r[0]).getTime();default:return!0}}function Me(e,t,n,r){return Array.isArray(n)?n.some(function(n){return N7(e,t,n,r)}):N7(e,t,n,r)}function Mt(e,t){return"is_empty"===e||"is_not_empty"===e||t.some(function(e){return""!==e&&void 0!==e})}function Mn(e,t,n,r){return t.every(function(t){if(!Mt(t.operator,t.values))return!0;var a=n.fields.find(function(e){return e.id===t.field}),i=null==a?void 0:a.type;return Me("boolean"===i||void 0===i?"select":i,t.operator,r(e,t.field),t.values)})}var Mr=["\xe9lections","corruption","budget","diplomatie","sant\xe9","\xe9ducation","climat","s\xe9curit\xe9"],Ma={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 n=e.trim().toLowerCase();t(Mr.filter(function(e){return e.toLowerCase().includes(n)}).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"}]},Mi=[{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 Mo(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 Ms={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 Ml(){var e=NW(g.useState([]),2),t=e[0],n=N9(Ma,t,e[1]),r=n.fields,a=n.onChange,i=g.useMemo(function(){return Mi.filter(function(e){return Mn(e,t,Ma,Mo)})},[t]),o=g.useMemo(function(){return function(e){var t=new URLSearchParams,n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l,u=i.value;if(Mt(u.operator,u.values)){if("between"===u.operator){var c=NW(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=Ms[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){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t.toString()}(t)},[t]);return(0,v.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,v.jsx)(NQ,{fields:r,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 Mu=ON("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"}]]),Mc=ON("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"}]]),Md=ON("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"}]]),Mf=ON("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"}]]),Mp=ON("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Mh=ON("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 Mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function My(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mm(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 Mv(e){var t,n=e.currentCategory,r=e.onSelectCategory,a=e.sortOption,i=e.onSelectSort,o=e.viewMode,s=e.onToggleViewMode,l=e.typeFilter,u=e.onSelectTypeFilter,c=My((0,g.useState)(!1),2),d=c[0],f=c[1],p=My((0,g.useState)(!1),2),h=p[0],m=p[1],y=[{id:"all",label:"Tout",icon:(0,v.jsx)(OU,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,v.jsx)(O3,{className:"w-3.5 h-3.5"})},{id:"images",label:"Images",icon:(0,v.jsx)(Mu,{className:"w-3.5 h-3.5"})},{id:"videos",label:"Vid\xe9os",icon:(0,v.jsx)(Mc,{className:"w-3.5 h-3.5"})},{id:"music",label:"Musique",icon:(0,v.jsx)(Md,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,v.jsx)(Mf,{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=n===e.id;return(0,v.jsxs)("button",{onClick:function(){return r(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)(Mp,{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)(Mp,{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)(Mh,{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)(T7,{className:"w-3.5 h-3.5"})})]})]})]})}},5923(e,t,n){"use strict";n.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var r=n(2974),a=n(240),i=n(2298),o=n(345),s=n(9405);function l(e){let t,n="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,(0,r.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,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}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,n=0,a=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,i.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,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,r.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,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}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,n,a,i,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,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,r.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,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}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,n){"use strict";n.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>i});var r=n(5923),a=n(5504);function i(e,t,n,r){let a=(t=s(e,t))-1,i=-2;return n<=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*n-362)/12+i+r)}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,n=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*n+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,r.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,n){"use strict";n.d(t,{Ou:()=>w,Tr:()=>f,Yd:()=>h,ay:()=>p,cd:()=>b,gw:()=>m,oU:()=>s,tR:()=>y,uB:()=>g,yP:()=>v});var r=n(5923),a=n(2974),i=n(345),o=n(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,n,r,a,i,o){let s=new Date;return s.setUTCHours(r,a,i,o),s.setUTCFullYear(e,t-1,n),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:n,month:r,day:a,hour:i,minute:s,second:u}=d(e,t);return l(n,r,a,i,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let n=c.get(t);n||(n=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,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"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,n="compatible"){var r,a,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===n&&!(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=(r=c,((a=p-h)==(l=p-m)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===g.length)return g[0];if(g.length>1)switch(n){case"compatible":case"earlier":return g[0];case"later":return g[g.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){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,n="compatible"){return new Date(f(e,t,n))}function h(e,t){let n=u(e,t),a=new Date(e+n),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,r.Ip)(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,l,c,d,f)}function m(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let n=0,a=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:a,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:i,millisecond:o}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,i,o)}function v(e,t){if((0,o.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function g(e,t,n){return e instanceof r.Ip?e.timeZone===t?e:x(e,t):h(f(e,t,n),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,n){"use strict";let r,a;n.d(t,{d:()=>Z});var i=n(5923),o=n(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,o.LA)(t.era,t.year);return new(0,i.ng)(this,n- -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,n]=(0,o.f5)(e.year+-543);return new(0,i.ng)(t,n,e.month,e.day)}function u(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function c(e,t){let n=Math.floor(4*(t-e)/1461);t>=u(e,n+1,1,1)&&n++;let r=1+Math.floor((t-u(e,n,1,1))/30),a=t+1-u(e,n,r,1);return[n,r,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,n,r]=c(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,i.ng)(this,a,t,n,r)}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,n,r]=c(1723856,e);return t+=5500,new(0,i.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class m extends p{fromJulianDay(e){let[t,n,r]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,i.ng)(this,a,t,n,r)}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=n(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),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(n+1),7)&&(n+=1),n}function x(e){let t,n;return b(e)+(t=b(e-1),n=b(e),b(e+1)-n==356?2:+(n-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 n=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===n?30:29:3===t?0===n?29:30:6===t?30*!!g(e):30}class j{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/v*19+234)/235)+1,r=x(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=x(--n)));let o=1,s=0;for(;s<a;)s+=S(n,o),o++;let l=a-(s-=S(n,--o));return new(0,i.ng)(this,n,o,l)}toJulianDay(e){let t=x(e.year);for(let n=1;n<e.month;n++)t+=S(e.year,n);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,n,r,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)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,i.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,i]=(0,o.f5)(r);return((0,o.U_)(i)?(t=31,n=(0,o.rG)(a,i,3,21)):(t=30,n=(0,o.rG)(a,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=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,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function E(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+k(t,r,1,1)))/29.5)+1),o=n-k(t,r,a,1)+1;return new(0,i.ng)(e,r,a,o)}function A(e){return(14+11*e)%30<11}class D{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&&A(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return A(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class P extends D{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 T(e){return 460322+a[e-1300]}function C(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let n=T(e);for(let r=1;r<t;r++)n+=C(e,r);return n}function M(e){return a[e+1-1300]-a[e-1300]}class R extends D{constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=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 n=1;n<=12;n++)e+=C(t,n)}}}fromJulianDay(e){let t=e-1948440,n=T(1300),r=T(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-T(++e)+1;let a=M(e);if(r===a){n=12;break}if(r<a){let t=C(e,n);for(n=1;r>t;)r-=t,t=C(e,++n);break}}return new(0,i.ng)(this,e,n,t-N(e,n)+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):C(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):M(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,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));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),n=V(t);return new(0,i.ng)(this,B[n],t.year-F[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(z(e))}balanceDate(e){let t=z(e),n=V(t);B[n]!==e.era&&(e.era=B[n],e.year=t.year-F[n]),this.constrainDate(e)}constrainDate(e){let t=B.indexOf(e.era),n=L[t];if(null!=n){let[r,a,i]=n,o=r-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[,n,r]=I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return B}getYearsInEra(e){let t=B.indexOf(e.era),n=I[t],r=I[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(z(e))}getMinimumMonthInYear(e){let t=U(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=U(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function U(e){if(1===e.year)return I[B.indexOf(e.era)]}let $=[0,31,62,93,124,155,186,216,246,276,306,336];class H{fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-$[a]+1;return new(0,i.ng)(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=$[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function 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),[n,r]=K((0,o.LA)(t.era,t.year));return new(0,i.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=K(G(e));e.era=t,e.year=n}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,n]=(0,o.f5)(G(e));return new(0,i.ng)(t,n,e.month,e.day)}function Z(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 D;case"islamic-tbla":return new P;case"islamic-umalqura":return new R;case"japanese":return new W;case"persian":return new H;case"roc":return new q;default:return new(0,o.FG)}}},2974(e,t,n){"use strict";n.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 r=n(9405),a=n(345);function i(e,t){let n=e.copy(),r="hour"in n?y(n,t):0;o(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,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)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let i=n.calendar.getMonthsInYear(n);return n.month>i&&(n.month=i,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}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 n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return i(e,c(t))}function f(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),u(n),n}function p(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),h(n),n}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 n=e%t;return n<0&&(n+=t),n}function y(e,t){let n;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),n=Math.floor(e.hour/24),e.hour=m(e.hour,24),n}function v(e,t){let n=e.copy();return y(n,t),n}function g(e,t){return v(e,c(t))}function b(e,t,n,r){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,n,0,t.length-1,r?.round),a.era=t[i],u(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=w(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=w(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=w(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),u(a),a}function x(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(r?.hourCycle===12){let e=t>=12;i=12*!!e,o=e?23:11}a.hour=w(t,n,i,o,r?.round);break}case"minute":a.minute=w(e.minute,n,0,59,r?.round);break;case"second":a.second=w(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=w(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function w(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function S(e,t){let n;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,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function j(e,t){return S(e,c(t))}function O(e,t,n,i){switch(t){case"hour":{let t=0,o=23;if(i?.hourCycle===12){let n=e.hour>=12;t=12*!!n,o=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(p(s,{hour:t}),new(0,a.FG)),u=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],c=(0,r.yP)(p(s,{hour:o}),new(0,a.FG)),d=[(0,r.Tr)(c,e.timeZone,"earlier"),(0,r.Tr)(c,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,r.oU)(e)-e.offset,h=Math.floor(f/36e5),m=f%36e5;return f=36e5*w(h,n,Math.floor(u/36e5),Math.floor(d/36e5),i?.round)+m,(0,r.yP)((0,r.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return x(e,t,n,i);case"era":case"year":case"month":case"day":{let a=b((0,r.tR)(e),t,n,i),o=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function k(e,t,n){let a=(0,r.tR)(e),i=p(f(a,t),t);if(0===i.compare(a))return e;let o=(0,r.Tr)(i,e.timeZone,n);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}},240(e,t,n){"use strict";n.d(t,{p9:()=>w,$I:()=>O,RZ:()=>A,tB:()=>f,rS:()=>b,kq:()=>j,Jg:()=>l,Py:()=>D,tF:()=>o,Xj:()=>g,Nu:()=>m,SJ:()=>d,SE:()=>h,ro:()=>i,D:()=>S,ZI:()=>P,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>x});var r=n(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,r.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,r.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,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?c[n]:function(e){let t=E.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return E.set(e,t),t.firstDay}let n=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 n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&a[n]||0};E.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function f(e){return(0,r.Yd)(Date.now(),e)}function p(e){return(0,r.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,n){let r=d(e,t,n);return e.subtract({days:r})}function O(e,t,n){return j(e,t,n).add({days:6})}let k=new Map,E=new Map;function A(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(x(e),t,n)+r)/7)}function D(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function P(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>m,ot:()=>f,qk:()=>h});var r=n(5923),a=n(9405),i=n(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 n=new(0,r.ng)(d(t[1],0,9999),d(t[2],1,12),1);return n.day=d(t[3],1,n.calendar.getDaysInMonth(n)),n}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 n=d(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,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,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}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,n=(0,a.yP)(e,new(0,i.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function h(e){return`${p(e)}T${f(e)}`}function m(e){var t;let n,r,a,i,o;return`${h(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},1400(e,t,n){"use strict";n.d(t,{A:()=>o});for(var r=new Uint8Array(16),a=[],i=0;i<256;++i)a.push((i+256).toString(16).slice(1));let o=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){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(r);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((n=n||0)<0||n+16>t.length)throw RangeError("UUID byte range ".concat(n,":").concat(n+15," is out of buffer bounds"));for(var u=0;u<16;++u)t[n+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,n):crypto.randomUUID()}},99(e,t,n){"use strict";n.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var r=n(9726),a=n(5565),i=n(8048);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,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 n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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",r=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==r?void 0:r.maxLoadingTime)&&!(r.maxLoadingTime<=0)?r.maxLoadingTime:6e5,i=void 0,[4,Promise.race([f(e,null==r?void 0:r.importMap),new Promise(function(t,n){i=setTimeout(function(){var t;n(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(n.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 n,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(n=c(e),window[n])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,n){var r,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(){r&&o.removeEventListener("load",r),a&&o.removeEventListener("error",a)},r=function(){i(),t(null)},a=function(e){i(),n(e.message)},o.addEventListener("load",r),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 r,a="Failed to load script from ".concat(e);console.error(a,t),n(null!=(r=t.message)?r: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,r.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,n){"use strict";n.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 r=n(3766);function a(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}function o(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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,n,r,a,i,s;return o(this,function(o){switch(o.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],n=0,o.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],o.label=2;case 2:if(o.trys.push([2,7,,8]),!r.src)return[3,5];return[4,fetch(r.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:r.textContent&&t.push(JSON.parse(r.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(n),s),[3,8];case 8:return n++,[3,1];case 9:return[2,p(t)]}})})()}function p(e){var t={imports:{}},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function h(){var e={};try{for(var t=b(),n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(s)){var a=r.slice(s.length);if(!t.includes(a)){var i=localStorage.getItem(r);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={},n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(s)){var a=localStorage.getItem(r);a&&(t[r.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 n=localStorage.key(t);(null==n?void 0:n.startsWith(s))&&e.push(n)}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,r.$)())&&(d=h()))}},101(e,t,n){"use strict";n.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>j,SM:()=>a.SM,zU:()=>g,BX:()=>a.BX,w_:()=>a.w_,Y6:()=>b,Yv:()=>r.Yv,tK:()=>a.tK,Ln:()=>r.Ln,FM:()=>v,o5:()=>a.o5,fd:()=>a.fd,Tx:()=>w,KI:()=>S,rL:()=>r.rL,WY:()=>x,F$:()=>a.F$,zC:()=>r.zC,_m:()=>k,q1:()=>a.q1,uT:()=>a.uT});var r=n(99),a=n(8048),i=n(2235),o=n(3766);function s(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){s(i,r,a,o,l,"next",e)}function l(e){s(i,r,a,o,l,"throw",e)}o(void 0)})}}function u(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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,n,r,a,o;return u(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],n=0,s.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],s.label=2;case 2:if(s.trys.push([2,7,,8]),a=void 0,!r.src)return[3,5];return[4,fetch(r.src)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:r.textContent&&(a=JSON.parse(r.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(n),o),[3,8];case 8:return n++,[3,1];case 9:return[2,m(t)]}})})()}function m(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!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){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function y(){return l(function(){var e,t,n,r,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=[],n=0;n<localStorage.length;n++)(null==(r=localStorage.key(n))?void 0:r.startsWith(c))&&(a=localStorage.getItem(r))&&t.push({moduleName:r.slice(c.length),raw:a});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,n=e.raw;return l(function(){var e,r;return u(this,function(a){switch(a.label){case 0:if(e=JSON.parse(n),(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(r=a.sent(),(0,i.j)(r))return[2,{moduleName:t,routes:r}];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(n){switch(n.label){case 0:return[4,h()];case 1:if(e=n.sent(),!f)return[2,e];if(null==p)return[3,2];return t=p,[3,4];case 2:return[4,y()];case 3:t=n.sent(),n.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 n=localStorage.key(t);if(null==n?void 0:n.startsWith(c)){var r=localStorage.getItem(n);r&&(e[n.slice(c.length)]=r)}}}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 n,r=JSON.parse(t);if(!(0,i.j)(r))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(c+e,JSON.stringify(r))}else if(n=URL,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)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 n=localStorage.key(t);(null==n?void 0:n.startsWith(c))&&e.push(n)}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,n){"use strict";n.d(t,{J:()=>i,N:()=>a});var r=n(9726);function a(e){var t=o(e);setTimeout(function(){throw t})}function i(){var e=Error();return function(t){var n=o(t);n.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function o(e){var t,n;if(null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)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(n){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,r.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,r.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,n){"use strict";n.d(t,{dX:()=>r.dX,wE:()=>r.wE,_3:()=>r._3,uN:()=>r.uN,$F:()=>r.$F,Gz:()=>r.Gz,eb:()=>r.eb,Sj:()=>r.Sj,mv:()=>r.mv,yp:()=>l,PQ:()=>r.PQ});var r=n(6014),a=n(4356),i=n(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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,n={globals:s({},i.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,n),function(e){if(Array.isArray(e))return o(e)}(t=n.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 n=e,r=t,u(n.argument,r);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 n=s({},t);n.isLocalExpression=!0;var r=null!=(d=null==(p=e.params)?void 0:p.map(c(n)))?d:[],a=null!=(f=u(e.body,n))?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;r.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 n,r,a,i,o,l,d,f,p,h,m,y,v,g,b,x,w,S,j,O,k,E,A,D,P,T,C=e,N=t;if(!(C.name in N.globals))if(N.isLocalExpression)return C.name;else N.variables.add(C.name);return;case"TemplateLiteral":return A=e,D=t,void(null==(P=A.expressions)||P.map(c(D)),null==(T=A.quasis)||T.map(c(D)));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,n){"use strict";n.r(t),n.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 r=n(70),a={};for(let e in r)"default"!==e&&(a[e]=()=>r[e]);n.d(t,a);var i=n(3645),a={};for(let e in i)"default"!==e&&(a[e]=()=>i[e]);n.d(t,a);var o=n(101),s=n(3400),l=n(8507),u=n(9360),c=n(7267),d=n(5794),f=n(8840),p=n(7774),h=n(6563),m=n(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]);n.d(t,a);var y=n(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]);n.d(t,a);var v=n(7230),g=n(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]);n.d(t,a);var b=n(2657),x=n(5565),w=n(4834)},1221(e,t,n){"use strict";n.d(t,{Z:()=>a,p:()=>i});var r=null;function a(e){r=e}function i(e){return!!r&&r(e)}},8840(e,t,n){"use strict";n.d(t,{Vt:()=>r.Vt,tM:()=>i.t,q0:()=>c,j0:()=>a.j,ff:()=>r.ff,ls:()=>r.ls,LQ:()=>r.LQ,sT:()=>r.sT,FI:()=>r.FI,Ss:()=>a.S,dX:()=>r.dX,$3:()=>r.$3,pc:()=>r.pc,bK:()=>r.bK,gj:()=>r.gj,Zv:()=>o.Z,bJ:()=>r.bJ,p0:()=>o.p,Yt:()=>r.Yt,$6:()=>i.$});var r=n(9726),a=n(2235),i=n(3766),o=n(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 n=e.shellVersion,r=e.frameworkVersion,a=e.protocolVersion,i=e.apps;"string"==typeof n&&s.test(n)||t.push("shellVersion doit \xeatre une version semver (ex. 2.10.0)"),"string"==typeof r&&s.test(r)||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,n){var r="apps[".concat(n,"]");if(!u(e))return void t.push("".concat(r," doit \xeatre un objet"));var a=e.name,i=e.version,d=e.integrity;"string"!=typeof a||0===a.length?t.push("".concat(r,".name doit \xeatre une cha\xeene non vide")):c.has(a)?t.push("".concat(r,'.name "').concat(a,'" est en double')):c.add(a),"string"==typeof i&&s.test(i)||t.push("".concat(r,".version doit \xeatre une version semver exacte")),"string"==typeof d&&l.test(d)||t.push("".concat(r,".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:n,frameworkVersion:r,protocolVersion:a,apps:o}}}},2235(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){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,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return r(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 r(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.")}(),n=t[0],a=t[1];return"string"==typeof n&&i(a)})}n.d(t,{S:()=>o,j:()=>i})},6563(e,t,n){"use strict";let r;n.d(t,{nr:()=>T,xN:()=>rp,u1:()=>rI,FO:()=>rh,Q1:()=>g,FE:()=>rD,sA:()=>rb,LM:()=>rr,ff:()=>rC,wn:()=>rM,Oj:()=>rz,lY:()=>rm,Zr:()=>rs,cy:()=>ry,WA:()=>rP,T$:()=>x,Gp:()=>rf,jU:()=>rg,Og:()=>P,iD:()=>rA,C$:()=>rd,qb:()=>rE,Iq:()=>ro,NU:()=>rN,yD:()=>rT,Wo:()=>rV,sm:()=>rB,Io:()=>rl,wJ:()=>D,Oc:()=>S,e:()=>n4,xc:()=>ru,pb:()=>rc,bO:()=>rx,b1:()=>v,AO:()=>ra,Td:()=>rR,QP:()=>y,Gt:()=>b});try{self["workbox:window:6.5.4"]&&_()}catch(e){}function a(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])})}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var s=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function l(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var u=function(e,t){this.type=e,Object.assign(this,t)};function c(e,t,n){return n?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,n){var r,a;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new s,r.en=new s,r.on=new s,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!l(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener("updatefound",r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener("statechange",r.ln)},r.ln=function(e){var t=r.fn,n=e.target,a=n.state,i=n===r.vn,o={sw:n,isExternal:i,originalEvent:e};!i&&r.mn&&(o.isUpdate=!0),r.dispatchEvent(new u(a,o)),"installed"===a?r.wn=self.setTimeout(function(){"installed"===a&&t.waiting===n&&r.dispatchEvent(new u("waiting",o))},200):"activating"===a&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new u("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},a=function(e){var t=e.data,n=e.ports,a=e.source;return c(r.getSW(),function(){r.an.has(a)&&r.dispatchEvent(new u("message",{data:t,originalEvent:e,ports:n,sw:a}))})},r.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)}},r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n,r,o=t.prototype;return o.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r,a,i,o=this;return r=function(){if(!n&&"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=r())&&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 n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(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)}},n=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}],i(t.prototype,n),r&&i(t,r),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,n=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 n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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=n()).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 n=new h(e,t);return m=n.register().then(function(){return n.controlling.then(function(){return n})})}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,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function S(e){var t;return(t=function(){var t,n;return function(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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:return[4,v()];case 1:if(!(t=r.sent()))return[3,3];return[4,t.messageSW(e)];case 2:return n=r.sent(),[3,4];case 3:n={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."},r.label=4;case 4:return[2,n]}})},function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(e){w(i,r,a,o,s,"next",e)}function s(e){w(i,r,a,o,s,"throw",e)}o(void 0)})})()}function j(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function O(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){j(i,r,a,o,s,"next",e)}function s(e){j(i,r,a,o,s,"throw",e)}o(void 0)})}}function k(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var E="egen3:offline-mode",A="unavailable";function D(){return{current:A,notAvailable:"unavailable"===A,active:"on"===A}}function P(e){"unavailable"!==A&&"unavailable"!==e&&(localStorage.setItem(E,"on"===e?"active":"disabled"),A=e)}function T(){return O(function(){return k(this,function(e){switch(e.label){case 0:return[4,O(function(){var e,t;return k(this,function(n){switch(n.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=n.sent())return[3,3];return[4,O(function(){return k(this,function(e){return[2,!window.indexedDB]})})()];case 2:t=n.sent(),n.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=n.sent(),n.label=5;case 5:return[2,e]}})})()];case 1:return e.sent()||(A="active"===localStorage.getItem(E)?"on":"off"),navigator.onLine,[2]}})})()}let C="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,N=Object.keys,M=Array.isArray;function R(e,t){return"object"!=typeof t||N(t).forEach(function(n){e[n]=t[n]}),e}"u"<typeof Promise||C.Promise||(C.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(n=>{z(e,n,t[n])})}let V=Object.defineProperty;function z(e,t,n,r){V(e,t,R(n&&F(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function W(e){return{from:function(t){return e.prototype=Object.create(t.prototype),z(e.prototype,"constructor",e),{extend:B.bind(null,e.prototype)}}}}let U=Object.getOwnPropertyDescriptor;function $(e,t){let n;return U(e,t)||(n=I(e))&&$(n,t)}let H=[].slice;function G(e,t,n){return H.call(e,t,n)}function K(e,t){return t(e)}function q(e){if(!e)throw Error("Assertion Failed")}function Y(e){C.setImmediate?setImmediate(e):setTimeout(e,0)}function Z(e,t){return e.reduce((e,n,r)=>{var a=t(n,r);return a&&(e[a[0]]=a[1]),e},{})}function X(e,t){if("string"==typeof t&&F(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,a=t.length;r<a;++r){var i=X(e,t[r]);n.push(i)}return n}var o=t.indexOf(".");if(-1!==o){var s=e[t.substr(0,o)];return null==s?void 0:X(s,t.substr(o+1))}}function Q(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){q("string"!=typeof n&&"length"in n);for(var r=0,a=t.length;r<a;++r)Q(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var o=t.substr(0,i),s=t.substr(i+1);if(""===s)void 0===n?M(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=n;else{var l=e[o];l&&F(e,o)||(l=e[o]={}),Q(l,s,n)}}else void 0===n?M(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function J(e){var t={};for(var n in e)F(e,n)&&(t[n]=e[n]);return t}let ee=[].concat;function et(e){return ee.apply([],e)}let en="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=>C[e]),er=en.map(e=>C[e]);Z(en,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 n=ea&&ea.get(t);if(n)return n;if(M(t)){n=[],ea&&ea.set(t,n);for(var r=0,a=t.length;r<a;++r)n.push(e(t[r]))}else if(er.indexOf(t.constructor)>=0)n=t;else{let r=I(t);for(var i in n=r===Object.prototype?{}:Object.create(r),ea&&ea.set(t,n),t)F(t,i)&&(n[i]=e(t[i]))}return n}(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,n,r,a;if(1==arguments.length){if(M(e))return e.slice();if(this===ec&&"string"==typeof e)return[e];if(a=eu(e)){for(n=[];!(r=a.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}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 n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.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,n)=>n.indexOf(e)===t).join("\n")}function ej(e,t,n,r){this._e=ey(),this.failures=t,this.failedKeys=r,this.successCount=n,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 n=t+"Error";function r(e,r){this._e=ey(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=ex[t]||n,this.inner=null)}return W(r).from(ew),e[t]=r,e},{});eE.Syntax=SyntaxError,eE.Type=TypeError,eE.Range=RangeError;var eA=eg.reduce((e,t)=>(e[t+"Error"]=eE[t],e),{}),eD=eb.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=eE[t]),e),{});function eP(){}function eT(e){return e}function eC(e,t){return null==e||e===eT?t:function(n){return t(e(n))}}function eN(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function eM(e,t){return e===eP?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?eN(r,this.onsuccess):r),a&&(this.onerror=this.onerror?eN(a,this.onerror):a),void 0!==i?i:n}}function eR(e,t){return e===eP?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?eN(n,this.onsuccess):n),r&&(this.onerror=this.onerror?eN(r,this.onerror):r)}}function eI(e,t){return e===eP?t:function(n){var r=e.apply(this,arguments);R(n,r);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===r?void 0===o?void 0:o:R(r,o)}}function e_(e,t){return e===eP?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function eL(e,t){return e===eP?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,a=arguments.length,i=Array(a);a--;)i[a]=arguments[a];return n.then(function(){return t.apply(r,i)})}return t.apply(this,arguments)}}eD.ModifyError=ej,eD.DexieError=ew,eD.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,eU=eB&&eB.constructor,e$=!!ez;var eH=!1,eG=ez?()=>{ez.then(tr)}:C.setImmediate?setImmediate.bind(null,tr):C.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{tr(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(tr,0)},eK=function(e,t){e2.push([e,t]),eY&&(eG(),eY=!1)},eq=!0,eY=!0,eZ=[],eX=[],eQ=null,eJ=eT,e0={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:tA,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{tA(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=eP,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,n){try{n(n=>{if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&ta();n&&"function"==typeof n.then?e(t,(e,t)=>{n instanceof e5?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,e7(t)),r&&ti()}},e9.bind(null,t))}catch(e){e9(t,e)}}(this,e)}let e6={get:function(){var e=e1,t=tp;function n(n,r){var a=!e.global&&(e!==e1||t!==tp);let i=a&&!tv();var o=new e5((t,o)=>{te(this,new e8(tO(n,e,a,i),tO(r,e,a,i),t,o,e))});return ep&&tn(o,this),o}return n.prototype=eF,n},set:function(e){z(this,"then",e&&e.prototype===eF?e6:{get:function(){return e},set:e6.set})}};function e8(e,t,n,r,a){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=a}function e9(e,t){if(eX.push(t),null===e._state){var n=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 n=$(t,"stack");t._promise=e,z(t,"stack",{get:()=>eH?n&&(n.get?n.get.apply(t):n.value):e.stack})}),eZ.some(t=>t._value===e._value)||eZ.push(e),e7(e),n&&ti()}}function e7(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)te(e,t[n]);var a=e._PSD;--a.ref||a.finalize(),0===e3&&(++e3,eK(()=>{0==--e3&&to()},[]))}function te(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++e3,eK(tt,[n,e,t])}else e._listeners.push(t)}function tt(e,t,n){try{eQ=t;var r,a=t._value;t._state?r=e(a):(eX.length&&(eX=[]),r=e(a),-1===eX.indexOf(a)&&function(e){for(var t=eZ.length;t;)if(eZ[--t]._value===e._value)return void eZ.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{eQ=null,0==--e3&&to(),--n.psd.ref||n.psd.finalize()}}function tn(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function tr(){ta()&&ti()}function ta(){var e=eq;return eq=!1,eY=!1,e}function ti(){var e,t,n;do for(;e2.length>0;)for(e=e2,e2=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(e2.length>0);eq=!0,eY=!0}function to(){var e=eZ;eZ=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=e4.slice(0),n=t.length;n;)t[--n]()}function ts(e){return new e5(eF,!1,e)}function tl(e,t){var n=e1;return function(){var r=ta(),a=e1;try{return tw(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{tw(a,!1),r&&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],n=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?n(e):ts(e)):this.then(null,e=>e&&e.name===t?n(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,n,r){if(n.length===r)return n;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=""),n.push(i+(o?": "+o:"")+a)}return ep&&((a=ev(t._stackHolder,2))&&-1===n.indexOf(a)&&n.push(a),t._prev&&e(t._prev,n,r)),n})(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((n,r)=>{var a=setTimeout(()=>r(new eE.Timeout(t)),e);this.then(n,r).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,n){0===e.length&&t([]);var r=e.length;e.forEach((a,i)=>e5.resolve(a).then(n=>{e[i]=n,--r||t(e)},n))})},resolve:e=>{if(e instanceof e5)return e;if(e&&"function"==typeof e.then)return new e5((t,n)=>{e.then(t,n)});var t=new e5(eF,!0,e);return tn(t,eQ),t},reject:ts,race:function(){var e=ed.apply(null,arguments).map(tg);return new e5((t,n)=>{e.map(e=>e5.resolve(e).then(t,n))})},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((n,r)=>tm((t,n)=>{var r=e1;r.unhandleds=[],r.onunhandled=n,r.finalize=eN(function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},e4.push(function t(){e(),e4.splice(e4.indexOf(t),1)}),++e3,eK(()=>{0==--e3&&to()},[])},r.finalize),e()},t,n,r))}),eU&&(eU.allSettled&&z(e5,"allSettled",function(){let e=ed.apply(null,arguments).map(tg);return new e5(t=>{0===e.length&&t([]);let n=e.length,r=Array(n);e.forEach((e,a)=>e5.resolve(e).then(e=>r[a]={status:"fulfilled",value:e},e=>r[a]={status:"rejected",reason:e}).then(()=>--n||t(r)))})}),eU.any&&"u">typeof AggregateError&&z(e5,"any",function(){let e=ed.apply(null,arguments).map(tg);return new e5((t,n)=>{0===e.length&&n(AggregateError([]));let r=e.length,a=Array(r);e.forEach((e,i)=>e5.resolve(e).then(e=>t(e),e=>{a[i]=e,--r||n(AggregateError(a))}))})}));let tu={awaits:0,echoes:0,id:0};var tc=0,td=[],tf=0,tp=0,th=0;function tm(e,t,n,r){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=e$?{Promise:e5,PromiseProp:{value:e5,configurable:!0,writable:!0},all:e5.all,race:e5.race,allSettled:e5.allSettled,any:e5.any,resolve:e5.resolve,reject:e5.reject,nthen:tk(o.nthen,i),gthen:tk(o.gthen,i)}:{},t&&R(i,t),++a.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=tj(i,e,n,r);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===eU?(ty(),e.then(e=>(tv(),e),e=>(tv(),tD(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 n,r=e1;if((t?!tu.echoes||tf++&&e===e1:!tf||--tf&&e===e1)||(n=t?tb.bind(null,e):tx,eW.call(eB,n)),e!==e1&&(e1=e,r===e0&&(e0.env=tS()),e$)){var a=e0.env.Promise,i=e.env;eV.then=i.nthen,a.prototype.then=i.gthen,(r.global||e.global)&&(Object.defineProperty(C,"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=C.Promise;return e$?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(C,"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,n,r,a){var i=e1;try{return tw(e,!0),t(n,r,a)}finally{tw(i,!1)}}function tO(e,t,n,r){return"function"!=typeof e?e:function(){var a,i=e1;n&&ty(),tw(t,!0);try{return e.apply(this,arguments)}finally{tw(i,!1),r&&(a=tv,eW.call(eB,a))}}}function tk(e,t){return function(n,r){return e.call(this,tO(n,t),tO(r,t))}}-1===(""+eW).indexOf("[native code]")&&(ty=tv=eP);let tE="unhandledrejection";function tA(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,a={promise:t,reason:e};if(C.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(tE,!0,!0),R(r,a)):C.CustomEvent&&R(r=new CustomEvent(tE,{detail:a}),a),r&&C.dispatchEvent&&(dispatchEvent(r),!C.PromiseRejectionEvent&&C.onunhandledrejection))try{C.onunhandledrejection(r)}catch(e){}ep&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}var tD=e5.reject;let tP="3.2.7",tT=String.fromCharCode(65535),tC=-1/0,tN="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tM="String expected.",tR=[],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 tU{_trans(e,t,n){let r=this._tx||e1.trans,a=this.name;function i(e,n,r){if(!r.schema[a])throw new eE.NotFound("Table "+a+" not part of transaction");return t(r.idbtrans,r)}let o=ta();try{return r&&r.db===this.db?r===e1.trans?r._promise(e,i,n):tm(()=>r._promise(e,i,n),{trans:r,transless:e1.transless||e1}):function e(t,n,r,a){if(t.idbdb&&(t._state.openComplete||e1.letThrough||t._vip)){var i=t._createTransaction(n,r,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,n,r,a))):tD(i)}return i._promise(n,(e,t)=>tm(()=>(e1.trans=i,a(e,t,i)))).then(e=>i._completion.then(()=>e))}if(t._state.openComplete)return tD(new eE.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return tD(new eE.DatabaseClosed);t.open().catch(eP)}return t._state.dbReadyPromise.then(()=>e(t,n,r,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(M(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 n=this.schema.indexes.concat(this.schema.primKey).filter(e=>{if(e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)){for(let n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1}).sort((e,t)=>e.keyPath.length-t.keyPath.length)[0];if(n&&this.db._maxKey!==tT){let r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map(t=>e[t]))}!n&&ep&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:r}=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,n],a)=>{let o=r[a],s=e[a];return[t||o,t||!o?tV(n,o&&o.multi?e=>{let t=X(e,a);return M(t)&&t.some(e=>i(s,e))}:e=>i(s,X(e,a))):n]},[null,null]);return o?this.where(o.name).equals(e[o.keyPath]).filter(s):n?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,M(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let n=Object.create(e.prototype);for(var r in t)if(F(t,r))try{n[r]=t[r]}catch(e){}return n};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){R(this,e)})}add(e,t){let{auto:n,keyPath:r}=this.schema.primKey,a=e;return r&&n&&(a=tW(r)(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(r)try{Q(e,r,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||M(e))return this.where(":id").equals(e).modify(t);{let n=X(e,this.schema.primKey.keyPath);if(void 0===n)return tD(new eE.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?N(t).forEach(n=>{Q(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){let{auto:n,keyPath:r}=this.schema.primKey,a=e;return r&&n&&(a=tW(r)(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(r)try{Q(e,r,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,n){let r=Array.isArray(t)?t:void 0,a=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new eE.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new eE.InvalidArgument("Arguments objects and keys must have the same length");let o=e.length,s=i&&n?e.map(tW(i)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:a}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return a?t:n;throw new eO(`${this.name}.bulkAdd(): ${e} of ${o} operations failed`,r)})})}bulkPut(e,t,n){let r=Array.isArray(t)?t:void 0,a=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:i}=this.schema.primKey;if(i&&r)throw new eE.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new eE.InvalidArgument("Arguments objects and keys must have the same length");let o=e.length,s=i&&n?e.map(tW(i)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:a}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return a?t:n;throw new eO(`${this.name}.bulkPut(): ${e} of ${o} operations failed`,r)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new eO(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)})}}function t$(e){var t={},n=function(n,r){if(r){for(var a=arguments.length,i=Array(a-1);--a;)i[a-1]=arguments[a];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,a=arguments.length;r<a;++r)i(arguments[r]);return n;function i(e,r,a){if("object"!=typeof e){r||(r=e_),a||(a=eP);var o={subscribers:[],fire:a,subscribe:function(e){-1===o.subscribers.indexOf(e)&&(o.subscribers.push(e),o.fire=r(o.fire,e))},unsubscribe:function(e){o.subscribers=o.subscribers.filter(function(t){return t!==e}),o.fire=o.subscribers.reduce(r,a)}};return t[e]=n[e]=o,o}N(e).forEach(function(t){var n=e[t];if(M(n))i(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new eE.InvalidArgument("Invalid event config");var r=i(t,eT,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];r.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,n){var r=e.replayFilter;e.replayFilter=r?()=>tV(r(),t()):t,e.justLimit=n&&!r}function tY(e,t){if(e.isPrimKey)return t.primaryKey;let n=t.getIndexByKeyPath(e.index);if(!n)throw new eE.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function tZ(e,t,n){let r=tY(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tX(e,t,n,r){let a=e.replayFilter?tV(e.filter,e.replayFilter()):e.filter;if(e.or){let i={},o=(e,n,r)=>{if(!a||a(n,r,e=>n.stop(e),e=>n.fail(e))){var o=n.primaryKey,s=""+o;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(o)),F(i,s)||(i[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(o,n),tQ(tZ(e,r,n),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return tQ(tZ(e,r,n),tV(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function tQ(e,t,n,r){var a=tl(r?(e,t,a)=>n(r(e),t,a):n);return e.then(e=>{if(e)return e.start(()=>{var n=()=>e.continue();t&&!t(e,e=>n=e,t=>{e.stop(t),n=eP},t=>{e.fail(t),n=eP})||a(e.value,e,e=>n=e),n()})})}function tJ(e,t){try{let n=t0(e),r=t0(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){let n=e.length,r=t.length,a=n<r?n:r;for(let n=0;n<a;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(t1(e),t1(t));case"Array":return function(e,t){let n=e.length,r=t.length,a=n<r?n:r;for(let n=0;n<a;++n){let r=tJ(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-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 n=es(e);return"ArrayBuffer"===n?"binary":n}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 n=this._ctx;return n.error?n.table._trans(null,tD.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,tD.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 tX(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&R(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(n=>tX(t,e,n,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,n=t.table.core;if(tG(t,!0))return n.count({trans:e,query:{index:tY(t,n.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var r=0;return tX(t,()=>(++r,!1),e,n).then(()=>r)}).then(e)}sortBy(e,t){let n=e.split(".").reverse(),r=n[0],a=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function s(e,t){var n=i(e,a),r=i(t,a);return n<r?-o:n>r?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:n}=t,r=tY(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then(({result:e})=>n?e.map(n):e)}{let n=[];return tX(t,e=>n.push(e),e,t.table.core).then(()=>n)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,tG(t)?tq(t,()=>{var t=e;return(e,n)=>0===t||(1===t?--t:n(()=>{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,n,r){return--t<=0&&n(r),t>=0}},!0),this}until(e,t){return tK(this._ctx,function(n,r,a){return!e(n.value)||(r(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,n){e(n.key,n)})}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,n){e(n.primaryKey,n)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&tG(t,!0)&&t.limit>0)return this._read(e=>{var n=tY(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).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 n={};return tK(this._ctx,function(e){var t=e.primaryKey.toString(),r=F(n,t);return n[t]=!0,!r}),this}modify(e){var t=this._ctx;return this._write(n=>{var r;if("function"==typeof e)r=e;else{var a=N(e),i=a.length;r=function(t){for(var n=!1,r=0;r<i;++r){var o=a[r],s=e[o];X(t,o)!==s&&(Q(t,o,s),n=!0)}return n}}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:n,numFailures:r}=t;for(let t of(d+=e-r,N(n)))c.push(n[t])};return this.clone().primaryKeys().then(a=>{let i=c=>{let d=Math.min(u,a.length-c);return o.getMany({trans:n,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],n={value:ei(t),primKey:a[c+e]};!1!==r.call(n,n.value,n)&&(null==n.value?v.push(a[c+e]):s||0===tJ(l(t),l(n.value))?(m.push(n.value),s&&y.push(a[c+e])):(v.push(a[c+e]),h.push(n.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:n,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:n,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:n,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(n=>{let{primaryKey:r}=e.table.core.schema;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(r=>e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:n,numFailures:a})=>{if(a)throw new ej("Could not delete some values",Object.keys(e).map(t=>e[t]),r-a);return r-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,n){var r=e instanceof nt?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function t8(e){return new e.Collection(e,()=>ne("")).limit(0)}function t9(e,t,n,r){var a,i,o,s,l,u,c,d=n.length;if(!n.every(e=>"string"==typeof e))return t6(e,tM);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=n.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?"":r}f("next");var p=new e.Collection(e,()=>t7(s[0],l[d-1]+r));p._ondirectionchange=function(e){f(e)};var h=0;return p._addAlgorithm(function(e,n,r){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,n,r,a,i){for(var o=Math.min(e.length,r.length),s=-1,l=0;l<o;++l){var u=t[l];if(u!==r[l])return 0>a(e[l],n[l])?e.substr(0,l)+n[l]+n.substr(l+1):0>a(e[l],r[l])?e.substr(0,l)+r[l]+n.substr(l+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;0>a(e[l],u)&&(s=l)}return o<r.length&&"next"===i?e+n.substr(e.length):o<e.length&&"prev"===i?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.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 n(null!==p?function(){e.continue(p+c)}:r),!1}),p}function t7(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function ne(e){return{type:1,lower:e,upper:e}}class nt{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?t8(this):new this.Collection(this,()=>t7(e,t,!n,!r))}catch(e){return t6(this,tN)}}equals(e){return null==e?t6(this,tN):new this.Collection(this,()=>ne(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,tM):this.between(e,e+tT,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):t9(this,(e,t)=>0===e.indexOf(t[0]),[e],tT)}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,tT)}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 n=new this.Collection(this,()=>t7(e[0],e[e.length-1]));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm((n,a,i)=>{let o=n.key;for(;t(o,e[r])>0;)if(++r===e.length)return a(i),!1;return 0===t(o,e[r])||(a(()=>{n.continue(e[r])}),!1)}),n}notEqual(e){return this.inAnyRange([[tC,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]]):[[tC,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let n=this._cmp,r=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>=r(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=r;function d(e,t){return c(e[0],t[0])}try{(u=e.reduce(function(e,t){let r=0,a=e.length;for(;r<a;++r){let a=e[r];if(0>n(t[0],a[1])&&n(t[1],a[0])>0){a[0]=i(a[0],t[0]),a[1]=o(a[1],t[1]);break}}return r===a&&e.push(t),e},[])).sort(d)}catch(e){return t6(this,tN)}let f=0,p=l?e=>r(e,u[f][1])>0:e=>r(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=r):(m=h,c=a),u.sort(d)},y._addAlgorithm((e,t,n)=>{for(var a=e.key;m(a);)if(++f===u.length)return t(n),!1;return!!(!p(a)&&!h(a))||(0===this._cmp(a,u[f][1])||0===this._cmp(a,u[f][0])||t(()=>{c===r?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+tT])):t6(this,"startsWithAnyOf() only works with strings")}}function nn(e){return tl(function(t){return nr(t),e(t.target.error),!1})}function nr(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let na="storagemutated",ni="x-storagemutated-1",no=t$(null,na);class ns{_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,n=this.db._state.dbOpenError;if(q(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new eE.DatabaseClosed(n);case"MissingAPIError":throw new eE.MissingAPI(n.message,n);default:throw new eE.OpenFailed(n)}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=>{nr(t),this._reject(e.error)}),e.onabort=tl(t=>{nr(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&&no.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return tD(new eE.ReadOnly("Transaction is readonly"));if(!this.active)return tD(new eE.TransactionInactive);if(this._locked())return new e5((r,a)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,a)},e1])});if(n)return tm(()=>{var e=new e5((e,n)=>{this._lock();let r=t(e,n,this);r&&r.then&&r.then(e,n)});return e.finally(()=>this._unlock()),e._lib=!0,e});var r=new e5((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let n=e5.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>n);else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var a=t._waitingFor;return new e5((e,r)=>{n.then(n=>t._waitingQueue.push(tl(e.bind(null,n))),e=>t._waitingQueue.push(tl(r.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 n=this.schema[e];if(!n)throw new eE.NotFound("Table "+e+" not part of transaction");let r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function nl(e,t,n,r,a,i,o){return{name:e,keyPath:t,unique:n,multi:r,auto:a,compound:i,src:(n&&!o?"&":"")+(r?"*":"")+(a?"++":"")+nu(t)}}function nu(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function nc(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:Z(n,e=>[e.name,e])}}let nd=e=>{try{return e.only([[]]),nd=()=>[[]],[[]]}catch(e){return nd=()=>tT,tT}};function nf(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>X(t,e):t=>X(t,e)}function np(e){return[].slice.call(e)}let nh=0;function nm(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function ny({_novip:e},t){let n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},a){var i;return{dbcore:(i=function(e,t,n){let r;function a(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:n,upper:r,lowerOpen:a,upperOpen:i}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!a):t.bound(n,r,!!a,!!i)}let{schema:i,hasGetAll:o}=(r=np(e.objectStoreNames),{schema:{name:e.name,tables:r.map(e=>n.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:n}=e,r=M(t),a=null==t,i={},o={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:a,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:nf(t)},indexes:np(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:n,multiEntry:r,keyPath:a}=e,o={name:t,compound:M(a),keyPath:a,unique:n,multiEntry:r,extractKey:nf(a)};return i[nm(a)]=o,o}),getIndexByKeyPath:e=>i[nm(e)]};return i[":id"]=o.primaryKey,null!=t&&(i[nm(t)]=o.primaryKey),o})},hasGetAll:r.length>0&&"getAll"in n.objectStore(r[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:n,keys:r,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"===n||"add"===n;if(!f&&"delete"!==n&&"deleteRange"!==n)throw Error("Invalid operation type: "+n);let{length:p}=r||i||{length:1};if(r&&i&&r.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,nr(e)};if("deleteRange"===n){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,r]:[i,null]:[r,null];if(f)for(let r=0;r<p;++r)h.push(u=t&&void 0!==t[r]?c[n](e[r],t[r]):c[n](e[r])),u.onerror=v;else for(let t=0;t<p;++t)h.push(u=c[n](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"===n?r:h.map(e=>e.result),lastResult:t})};u.onerror=e=>{v(e),g(e)},u.onsuccess=g})},getMany:({trans:e,keys:n})=>new Promise((r,a)=>{r=tl(r);let i=e.objectStore(t),o=n.length,s=Array(o),l,u=0,c=0,d=e=>{let t=e.target;s[t._pos]=t.result,++c===u&&r(s)},f=nn(a);for(let e=0;e<o;++e)null!=n[e]&&((l=i.get(n[e]))._pos=e,l.onsuccess=d,l.onerror=f,++u);0===u&&r(s)}),get:({trans:e,key:n})=>new Promise((r,a)=>{r=tl(r);let i=e.objectStore(t).get(n);i.onsuccess=e=>r(e.target.result),i.onerror=nn(a)}),query:e=>new Promise((n,r)=>{n=tl(n);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 n({result:[]});if(o){let e=s?h.getAll(m,c):h.getAllKeys(m,c);e.onsuccess=e=>n({result:e.target.result}),e.onerror=nn(r)}else{let e=0,t=!s&&"openKeyCursor"in h?h.openKeyCursor(m):h.openCursor(m),a=[];t.onsuccess=r=>{let i=t.result;return i?(a.push(s?i.value:i.primaryKey),++e===l?n({result:a}):void i.continue()):n({result:a})},t.onerror=nn(r)}}),openCursor:function({trans:e,values:n,query:r,reverse:i,unique:o}){return new Promise((s,l)=>{s=tl(s);let{index:u,range:c}=r,d=e.objectStore(t),f=u.isPrimaryKey?d:d.index(u.name),p=i?o?"prevunique":"prev":o?"nextunique":"next",h=!n&&"openKeyCursor"in f?f.openKeyCursor(a(c),p):f.openCursor(a(c),p);h.onerror=nn(l),h.onsuccess=tl(t=>{let n=h.result;if(!n)return void s(null);n.___id=++nh,n.done=!1;let r=n.continue.bind(n),a=n.continuePrimaryKey;a&&(a=a.bind(n));let i=n.advance.bind(n),o=()=>{throw Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw Error("Cursor not started")},n.fail=tl(l),n.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},n.start=e=>{let t=new Promise((e,t)=>{e=tl(e),h.onerror=nn(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=o,e(t)}}),s=()=>{if(h.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw Error("Cursor behind last entry")},n.stop()};return h.onsuccess=tl(e=>{h.onsuccess=s,s()}),n.continue=r,n.continuePrimaryKey=a,n.advance=i,s(),t},s(n)},l)})},count({query:e,trans:n}){let{index:r,range:i}=e;return new Promise((e,o)=>{let s=n.objectStore(t),l=r.isPrimaryKey?s:s.index(r.name),u=a(i),c=u?l.count(u):l.count();c.onsuccess=tl(t=>e(t.target.result)),c.onerror=nn(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:nd(t),schema:i}}(t,n,a),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),i))}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach(t=>{let n=t.name;e.core.schema.tables.some(e=>e.name===n)&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))})}function nv({_novip:e},t,n,r){n.forEach(n=>{let a=r[n];t.forEach(t=>{let r=$(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?z(t,n,{get(){return this.table(n)},set(e){V(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,a))})})}function ng({_novip:e},t){t.forEach(t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]})}function nb(e,t){return e._cfg.version-t._cfg.version}function nx(e,t){let n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){let a=e[n],i=t[n];if(a){let e={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")==""+(i.primKey.keyPath||"")&&(a.primKey.auto===i.primKey.auto||tI)){let t,n=a.idxByName,o=i.idxByName;for(t in n)o[t]||e.del.push(t);for(t in o){let r=n[t],a=o[t];r?r.src!==a.src&&e.change.push(a):e.add.push(a)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}else e.recreate=!0,r.change.push(e)}else r.add.push([n,i])}return r}function nw(e,t,n,r){let a=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(e=>nS(a,e)),a}function nS(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function nj(e,t,n){let r={};return G(t.objectStoreNames,0).forEach(e=>{let t=n.objectStore(e),a=t.keyPath,i=nl(nu(a),a||"",!1,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),o=[];for(let e=0;e<t.indexNames.length;++e){let n=t.index(t.indexNames[e]);a=n.keyPath;var s=nl(n.name,a,!!n.unique,!!n.multiEntry,!1,a&&"string"!=typeof a,!1);o.push(s)}r[e]=nc(e,i,o)}),r}function nO({_novip:e},t,n){let r=n.db.objectStoreNames;for(let a=0;a<r.length;++a){let i=r[a],o=n.objectStore(i);e._hasGetAll="getAll"in o;for(let e=0;e<o.indexNames.length;++e){let n=o.indexNames[e],r=o.index(n).keyPath,a="string"==typeof r?r:"["+G(r).join("+")+"]";if(t[i]){let e=t[i].idxByName[a];e&&(e.name=n,delete t[i].idxByName[a],t[i].idxByName[n]=e)}}}"u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&C.WorkerGlobalScope&&C instanceof C.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class nk{_parseStoresSpec(e,t){N(e).forEach(n=>{if(null!==e[n]){var r=e[n].split(",").map((e,t)=>{let n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return nl(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),M(r),0===t)}),a=r.shift();if(a.multi)throw new eE.Schema("Primary key cannot be multi-valued");r.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[n]=nc(n,a,r)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?R(this._cfg.storesSource,e):e;let n=t._versions,r={},a={};return n.forEach(e=>{R(r,e._cfg.storesSource),a=e._cfg.dbschema={},e._parseStoresSpec(r,a)}),t._dbSchema=a,ng(t,[t._allTables,t,t.Transaction.prototype]),nv(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||eP,e),this}}function nE(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nH(tL,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function nA(e){return e&&"function"==typeof e.databases}function nD(e){return tm(function(){return e1.letThrough=!0,e()})}function nP(e){var t=t=>e.next(t),n=a(t),r=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(n,r):M(i)?Promise.all(i).then(n,r):n(i)}}return a(t)()}function nT(e,t,n){var r=arguments.length;if(r<2)throw new eE.InvalidArgument("Too few arguments");for(var a=Array(r-1);--r;)a[r-1]=arguments[r];return n=a.pop(),[e,et(a),n]}function nC(e,t,n){let r=M(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}let nN={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let n=e.table(t),{schema:r}=n,a={},i=[];function o(e,t,n){let r=nm(e),s=a[r]=a[r]||[],l=null==e?0:"string"==typeof e?1:e.length,u=t>0,c={...n,isVirtual:u,keyTail:t,keyLength:l,extractKey:nf(e),unique:!u&&n.unique};return s.push(c),c.isPrimaryKey||i.push(c),l>1&&o(2===l?e[0]:e.slice(0,l-1),t+1,n),s.sort((e,t)=>e.keyTail-t.keyTail),c}let s=o(r.primaryKey.keyPath,0,r.primaryKey);for(let e of(a[":id"]=[s],r.indexes))o(e.keyPath,0,e);function l(t){var n,r;let a=t.query.index;return a.isVirtual?{...t,query:{index:a,range:(n=t.query.range,r=a.keyTail,{type:1===n.type?2:n.type,lower:nC(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:nC(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}:t}return{...n,schema:{...r,primaryKey:s,indexes:i,getIndexByKeyPath:function(e){let t=a[nm(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){let{keyTail:r,isVirtual:a,keyLength:i}=t.query.index;return a?n.openCursor(l(t)).then(n=>n&&Object.create(n,{continue:{value:function(a){null!=a?n.continue(nC(a,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,a){n.continuePrimaryKey(nC(t,e.MAX_KEY,r),a)}},primaryKey:{get:()=>n.primaryKey},key:{get(){let e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:()=>n.value}})):n.openCursor(t)}}}}}};function nM(e,t,n,r){return n=n||{},r=r||"",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)?n[r+a]=t[a]:"Object"===e?nM(i,o,n,r+a+"."):i!==o&&(n[r+a]=t[a])}else i!==o&&(n[r+a]=t[a])}else n[r+a]=void 0}),N(t).forEach(a=>{F(e,a)||(n[r+a]=t[a])}),n}let nR={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let n=e.table(t),{primaryKey:r}=n.schema;return{...n,mutate(e){let a=e1.trans,{deleting:i,creating:o,updating:s}=a.table(t).hook;switch(e.type){case"add":if(o.fire===eP)break;return a._promise("readwrite",()=>l(e),!0);case"put":if(o.fire===eP&&s.fire===eP)break;return a._promise("readwrite",()=>l(e),!0);case"delete":if(i.fire===eP)break;return a._promise("readwrite",()=>l(e),!0);case"deleteRange":if(i.fire===eP)break;return a._promise("readwrite",()=>(function e(t,a,i){return n.query({trans:t,values:!1,query:{index:r,range:a},limit:i}).then(({result:n})=>l({type:"delete",keys:n,trans:t}).then(r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<i?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...a,lower:n[n.length-1],lowerOpen:!0},i)))})(e.trans,e.range,1e4),!0)}return n.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(r.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([]):n.getMany({trans:a.trans,keys:u,cache:"immutable"})).then(t=>{let a=u.map((n,a)=>{let u=t[a],c={onerror:null,onsuccess:null};if("delete"===e.type)i.fire.call(c,n,u,l);else if("add"===e.type||void 0===u){let t=o.fire.call(c,n,e.values[a],l);null==n&&null!=t&&(n=t,e.keys[a]=n,r.outbound||Q(e.values[a],r.keyPath,n))}else{let t=nM(u,e.values[a]),r=s.fire.call(c,t,n,u,l);if(r){let t=e.values[a];Object.keys(r).forEach(e=>{F(t,e)?t[e]=r[e]:Q(t,e,r[e])})}}return c});return n.mutate(e).then(({failures:n,results:r,numFailures:i,lastResult:o})=>{for(let i=0;i<u.length;++i){let o=r?r[i]:u[i],s=a[i];null==o?s.onerror&&s.onerror(n[i]):s.onsuccess&&s.onsuccess("put"===e.type&&t[i]?e.values[i]:o)}return{failures:n,results:r,numFailures:i,lastResult:o}}).catch(e=>(a.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function nI(e,t,n){try{if(!t||t.keys.length<e.length)return null;let r=[];for(let a=0,i=0;a<t.keys.length&&i<e.length;++a)0===tJ(t.keys[a],e[i])&&(r.push(n?ei(t.values[a]):t.values[a]),++i);return r.length===e.length?r:null}catch(e){return null}}let n_={stack:"dbcore",level:-1,create:e=>({table:t=>{let n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);let t=nI(e.keys,e.trans._cache,"clone"===e.cache);return t?e5.resolve(t):n.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),n.mutate(e))}}})};function nL(e){return!("from"in e)}let nF=function(e,t){if(!this){let t=new nF;return e&&"d"in e&&R(t,e),t}R(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function nB(e,t,n){let r=tJ(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(nL(e))return R(e,{from:t,to:n,d:1});let a=e.l,i=e.r;if(0>tJ(n,e.from))return a?nB(a,t,n):e.l={from:t,to:n,d:1,l:null,r:null},nW(e);if(tJ(t,e.to)>0)return i?nB(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},nW(e);0>tJ(t,e.from)&&(e.from=t,e.l=null,e.d=i?i.d+1:1),tJ(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);let o=!e.r;a&&!e.l&&nV(e,a),i&&o&&nV(e,i)}function nV(e,t){nL(t)||function e(t,{from:n,to:r,l:a,r:i}){nB(t,n,r),a&&e(t,a),i&&e(t,i)}(e,t)}function nz(e){let t=nL(e)?null:{s:0,n:e};return{next(e){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)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,!n||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 nW(e){var t,n;let r=((null==(t=e.r)?void 0:t.d)||0)-((null==(n=e.l)?void 0:n.d)||0),a=r>1?"r":r<-1?"l":"";if(a){let t="r"===a?"l":"r",n={...e},r=e[a];e.from=r.from,e.to=r.to,e[a]=r[a],n[a]=r[t],e[t]=n,n.d=nU(n)}e.d=nU(e)}function nU({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}B(nF.prototype,{add(e){return nV(this,e),this},addKey(e){return nB(this,e,e),this},addKeys(e){return e.forEach(e=>nB(this,e,e)),this},[el](){return nz(this)}});let n$={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,n=new nF(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{let a=e.table(r),{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 n=`idb://${t}/${r}/${e}`;return s[n]||(s[n]=new nF)},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(M(f)){"delete"!==d&&(f=e.results),u.addKeys(f);let t=nI(f,h);t||"add"===d||c.addKeys(f),(t||p)&&i.indexes.forEach(function(e){let n=l(e.name||"");function r(t){return null!=t?e.extractKey(t):null}let a=t=>e.multiEntry&&M(t)?t.forEach(e=>n.addKey(e)):n.addKey(t);(t||p).forEach((e,n)=>{let i=t&&r(t[n]),o=p&&r(p[n]);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(n),c.add(n),i.indexes.forEach(e=>l(e.name).add(n));return e})}},c=({query:{index:t,range:n}})=>{var r,a;return[t,new nF(null!=(r=n.lower)?r:e.MIN_KEY,null!=(a=n.upper)?a:e.MAX_KEY)]},d={get:e=>[o,new nF(e.key)],getMany:e=>[o,(new nF).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 n=`idb://${t}/${r}/${e}`;return o[n]||(o[n]=new nF)},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(n=>{if("query"===e){if(l&&i.values)return t.then(({result:e})=>(c.addKeys(e),n));let e=i.values?n.result.map(s):n.result;i.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=i.values;return n&&Object.create(n,{key:{get:()=>(f.addKey(n.primaryKey),n.key)},primaryKey:{get(){let e=n.primaryKey;return f.addKey(e),e}},value:{get:()=>(e&&c.addKey(n.primaryKey),n.value)}})}return n})}f.add(n)}}return a[e].apply(this,arguments)}}),u}}}};class nH{constructor(e,t){var n;this._middlewares={},this.verno=0;const r=nH.dependencies;this._options=t={addons:nH.addons,autoOpen:!0,indexedDB:r.indexedDB,IDBKeyRange:r.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:eP,dbReadyPromise:null,cancelOpen:eP,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=t$(this,"populate","blocked","versionchange","close",{ready:[eL,eP]}),this.on.ready.subscribe=K(this.on.ready.subscribe,e=>(t,n)=>{nH.vip(()=>{let r=this._state;if(r.openComplete)r.dbOpenError||e5.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);let r=this;n||e(function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)})}})}),this.Collection=(n=this,tH(t2.prototype,function(e,t){this.db=n;let r=tz,a=null;if(t)try{r=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:r,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!==eT?s:null}})),this.Table=function(e){return tH(tU.prototype,function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:t$(null,{creating:[eM,eP],reading:[eC,eT],updating:[eI,eP],deleting:[eR,eP]})})}(this),this.Transaction=function(e){return tH(ns.prototype,function(t,n,r,a,i){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=t$(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(),tD(e)})})}(this),this.Version=function(e){return tH(nk.prototype,function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(e){return tH(nt.prototype,function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};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=nd(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tR.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(nN),this.use(nR),this.use(n$),this.use(n_),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 n=t.filter(t=>t._cfg.version===e)[0];return n||(n=new this.Version(e),t.push(n),t.sort(nb),n.stores({}),this._state.autoSchema=!1,n)}_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(eP)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});let a=this._middlewares[e]||(this._middlewares[e]=[]);return a.push({stack:e,create:t,level:null==n?10:n,name:r}),a.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>n?e.create!==n:!!t&&e.name!==t)),this}open(){return function(e){var t;let n=e._state,{indexedDB:r}=e._deps;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?tD(n.dbOpenError):e);ep&&(n.openCanceller._stackHolder=ey()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;let a=n.openCanceller;function i(){if(n.openCanceller!==a)throw new eE.DatabaseClosed("db.open() was cancelled")}let o=n.dbReadyResolve,s=null,l=!1,u=()=>new e5((t,a)=>{if(i(),!r)throw new eE.MissingAPI;let o=e.name,u=n.autoSchema?r.open(o):r.open(o,Math.round(10*e.verno));if(!u)throw new eE.MissingAPI;u.onerror=nn(a),u.onblocked=tl(e._fireOnBlocked),u.onupgradeneeded=tl(t=>{if(s=u.transaction,n.autoSchema&&!e._options.allowEmptyDB){u.onerror=nr,s.abort(),u.result.close();let e=r.deleteDatabase(o);e.onsuccess=e.onerror=tl(()=>{a(new eE.NoSuchDatabase(`Database ${o} doesnt exist`))})}else{let n,r,o,f;s.onerror=nn(a);var i,c,d=t.oldVersion>0x4000000000000000?0:t.oldVersion;l=d<1,e._novip.idbdb=u.result,i=d/10,c=s,n=e._dbSchema,(r=e._createTransaction("readwrite",e._storeNames,n)).create(c),r._completion.catch(a),o=r._reject.bind(r),f=e1.transless||e1,tm(()=>{e1.trans=r,e1.transless=f,0===i?(N(n).forEach(e=>{nw(c,e,n[e].primKey,n[e].indexes)}),ny(e,c),e5.follow(()=>e.on.populate.fire(r)).catch(o)):(function({_novip:e},t,n,r){let a=[],i=e._versions,o=e._dbSchema=nj(e,e.idbdb,r),s=!1;return i.filter(e=>e._cfg.version>=t).forEach(i=>{a.push(()=>{let a=o,l=i._cfg.dbschema;nO(e,a,r),nO(e,l,r),o=e._dbSchema=l;let u=nx(a,l);u.add.forEach(e=>{nw(r,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=r.objectStore(e.name);e.add.forEach(e=>nS(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),nS(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let c=i._cfg.contentUpgrade;if(c&&i._cfg.version>t){let t;ny(e,r),n._memoizedTables={},s=!0;let i=J(l);u.del.forEach(e=>{i[e]=a[e]}),ng(e,[e.Transaction.prototype]),nv(e,[e.Transaction.prototype],N(i),i),n.schema=i;let o=ef(c);o&&ty();let d=e5.follow(()=>{if((t=c(n))&&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 r;s&&tI||(r=i._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==r[e]&&t.db.deleteObjectStore(e))),ng(e,[e.Transaction.prototype]),nv(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})}),(function e(){return a.length?e5.resolve(a.shift()(n.idbtrans)).then(e):e5.resolve()})().then(()=>{var e;N(e=o).forEach(t=>{r.db.objectStoreNames.contains(t)||nw(r,t,e[t].primKey,e[t].indexes)})})})(e,i,r,c).catch(o)})}},a),u.onsuccess=tl(()=>{s=null;let r=e._novip.idbdb=u.result,a=G(r.objectStoreNames);if(a.length>0)try{let t,i=r.transaction(1===a.length?a[0]:a,"readonly");n.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;let r=e._dbSchema=nj(0,t,n);e._storeNames=G(t.objectStoreNames,0),nv(e,[e._allTables],N(r),r)}(e,r,i):(nO(e,e._dbSchema,i),((t=nx(nj(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.")),ny(e,i)}catch(e){}tR.push(e),r.onversionchange=tl(t=>{n.vcFired=!0,e.on("versionchange").fire(t)}),r.onclose=tl(t=>{e.on("close").fire(t)}),l&&function({indexedDB:e,IDBKeyRange:t},n){nA(e)||n===tL||nE(e,t).put({name:n}).catch(eP)}(e._deps,o),t()},a)}).catch(e=>e&&"UnknownError"===e.name&&n.PR1398_maxLoop>0?(n.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 n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)}):Promise.resolve()).then(u)]).then(()=>(i(),n.onReadyBeingFired=[],e5.resolve(nD(()=>e.on.ready.fire(e.vip))).then(function t(){if(n.onReadyBeingFired.length>0){let r=n.onReadyBeingFired.reduce(eL,eP);return n.onReadyBeingFired=[],e5.resolve(nD(()=>r(e.vip))).then(t)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>e).catch(t=>{n.dbOpenError=t;try{s&&s.abort()}catch(e){}return a===n.openCanceller&&e._close(),tD(t)}).finally(()=>{n.openComplete=!0,o()})}(this)}_close(){let e=this._state,t=tR.indexOf(this);if(t>=0&&tR.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,n)=>{e.cancelOpen=n})}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((n,r)=>{let a=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=tl(()=>{!function({indexedDB:e,IDBKeyRange:t},n){nA(e)||n===tL||nE(e,t).delete(n).catch(eP)}(this._deps,this.name),n()}),e.onerror=nn(r),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=nT.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r,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)r=tF;else{if("rw"!=e&&e!=tB)throw new eE.InvalidArgument("Invalid transaction mode: "+e);r=tB}if(i){if(i.mode===tF&&r===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,n)=>{n(e)}):tD(e)}let s=(function e(t,n,r,a,i){return e5.resolve().then(()=>{let o,s=e1.transless||e1,l=t._createTransaction(n,r,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,n,r,null,i))):tD(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=nP(o))},{trans:l,transless:s});return(o&&"function"==typeof o.then?e5.resolve(o).then(e=>l.active?e:tD(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),tD(e)))})}).bind(null,this,r,a,i,n);return i?i._promise(r,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 nG="u">typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class nK{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[nG](){return this}}function nq(e,t){return N(t).forEach(n=>{nV(e[n]||(e[n]=new nF),t[n])}),e}try{r={indexedDB:C.indexedDB||C.mozIndexedDB||C.webkitIndexedDB||C.msIndexedDB,IDBKeyRange:C.IDBKeyRange||C.webkitIDBKeyRange}}catch(e){r={indexedDB:null,IDBKeyRange:null}}function nY(e){let t=nZ;try{nZ=!0,no.storagemutated.fire(e)}finally{nZ=t}}B(nH,{...eD,delete:e=>new nH(e,{addons:[]}).delete(),exists:e=>new nH(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return nA(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>e!==tL)):nE(e,t).toCollection().primaryKeys()})(nH.dependencies).then(e)}catch(e){return tD(new eE.MissingAPI)}},defineClass:()=>function(e){R(this,e)},ignoreTransaction:e=>e1.trans?tj(e1.transless,e):e(),vip:nD,async:function(e){return function(){try{var t=nP(e.apply(this,arguments));return t&&"function"==typeof t.then?t:e5.resolve(t)}catch(e){return tD(e)}}},spawn:function(e,t,n){try{var r=nP(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:e5.resolve(r)}catch(e){return tD(e)}},currentTransaction:{get:()=>e1.trans||null},waitFor:function(e,t){let n=e5.resolve("function"==typeof e?nH.ignoreTransaction(e):e).timeout(t||6e4);return e1.trans?e1.trans.waitFor(n):n},Promise:e5,debug:{get:()=>ep,set:e=>{ep=e,eh="dexie"===e?()=>!0:t_}},derive:W,extend:R,props:B,override:K,Events:t$,on:no,liveQuery:function(e){let t,n=!1,r=new nK(r=>{let a=ef(e),i=!1,o={},s={},l={get closed(){return i},unsubscribe:()=>{i=!0,no.storagemutated.unsubscribe(f)}};r.start&&r.start(l);let u=!1,c=!1;function d(){return N(s).some(e=>o[e]&&function(e,t){let n=nz(t),r=n.next();if(r.done)return!1;let a=r.value,i=nz(e),o=i.next(a.from),s=o.value;for(;!r.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=(r=n.next(s.from)).value:s=(o=i.next(a.from)).value}return!1}(o[e],s[e]))}let f=e=>{nq(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||(no(na,f),c=!0),u=!0,Promise.resolve(v).then(e=>{n=!0,t=e,u=!1,i||(d()?p():(o={},s=y,r.next&&r.next(e)))},e=>{u=!1,n=!1,r.error&&r.error(e),l.unsubscribe()})};return p(),l});return r.hasValue=()=>n,r.getValue=()=>t,r},extendObservabilitySet:nq,getByKeyPath:X,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:nM,cmp:tJ,asap:Y,minKey:tC,addons:[],connections:tR,errnames:ek,dependencies:r,semVer:tP,version:tP.split(".").map(e=>parseInt(e)).reduce((e,t,n)=>e+t/Math.pow(10,2*n))}),nH.maxKey=nd(nH.dependencies.IDBKeyRange),"u">typeof dispatchEvent&&"u">typeof addEventListener&&(no(na,e=>{if(!nZ){let t;tI?(t=document.createEvent("CustomEvent")).initCustomEvent(ni,!0,!0,e):t=new CustomEvent(ni,{detail:e}),nZ=!0,dispatchEvent(t),nZ=!1}}),addEventListener(ni,({detail:e})=>{nZ||nY(e)}));let nZ=!1;if("u">typeof BroadcastChannel){let e=new BroadcastChannel(ni);"function"==typeof e.unref&&e.unref(),no(na,t=>{nZ||e.postMessage(t)}),e.onmessage=e=>{e.data&&nY(e.data)}}else if("u">typeof self&&"u">typeof navigator){no(na,e=>{try{nZ||("u">typeof localStorage&&localStorage.setItem(ni,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:ni,changedParts:e})))}catch(e){}}),"u">typeof addEventListener&&addEventListener("storage",e=>{if(e.key===ni){let t=JSON.parse(e.newValue);t&&nY(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&e.type===ni&&nY(e.changedParts)})}e5.rejectionMapper=function(e,t){if(!e||e instanceof ew||e instanceof TypeError||e instanceof SyntaxError||!e.name||!eA[e.name])return e;var n=new eA[e.name](t||e.message,e);return"stack"in e&&z(n,"stack",{get:function(){return this.inner.stack}}),n},eh=t_;var nX=n(70),nQ=n(1442);function nJ(e){return(nJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n0(e,t){return(n0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n1=function(){return!!e})()}function n2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n3=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,r;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return r=["EsmOffline"],n=nJ(n=t),n2(e=function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,n1()?Reflect.construct(n,r||[],nJ(this).constructor):n.apply(this,r)),"syncQueue",void 0),n2(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&&n0(t,e),t}(nH);function n4(){return new n3}function n5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n6(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function n8(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){n6(i,r,a,o,s,"next",e)}function s(e){n6(i,r,a,o,s,"throw",e)}o(void 0)})}}function n9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,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=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n5(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 n7(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var re=new n3,rt={},rn=(0,nQ.createGlobalStore)("offline-synchronization",{});function rr(){return rn}function ra(){return n8(function(){var e,t,n,r,a,i,o,s,l,u,c,d,f;return n7(this,function(p){switch(p.label){case 0:if(rn.getState().synchronization)return[2];return[4,re.syncQueue.count()];case 1:e=p.sent(),t={},r=(n=Object.entries(rt)).length,a={},i=new AbortController,o=function(){var e,t,n=rn.getState().synchronization;rn.setState({synchronization:(e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},n),t=t={pendingCount:n.pendingCount-1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e)})},p.label=2;case 2:p.trys.push([2,,10,11]),rn.setState({synchronization:{totalCount:e,pendingCount:e,abortController:i}}),s=0,p.label=3;case 3:if(!(s<r&&n.length>0))return[3,8];l=n.length,p.label=4;case 4:if(!l--)return[3,7];if(c=(u=n9(n[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,n,r){return n8(function(e,t,n,r){var a,i,o,s,l,u,c,d,f,p,h,m,y,v,g,b,x;return n7(this,function(w){switch(w.label){case 0:return a=e.type,i=e.dependsOn,o=e.process,s=[],l=[],[4,ri()];case 1:return u=w.sent(),[4,re.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=n9(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:n,index:c,items:l,userId:u,dependencies:v.map(function(e){var n=e.id,r=e.type;return i.includes(r)?t[r][n]:void 0})})];case 5:return g=w.sent(),void 0!==m&&(t[a][m]=g),[4,re.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,re.syncQueue.update(f,{lastError:{name:x.name,message:x.message}})];case 9:return r(),[7];case 10:return c++,[3,3];case 11:return[2]}})}).apply(this,arguments)}(d,a,i,o),n.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 rn.setState({synchronization:void 0}),[7];case 11:return[2]}})})()}function ri(){return n8(function(){var e;return n7(this,function(t){switch(t.label){case 0:return[4,(0,nX.getLoggedInUser)()];case 1:return[2,(null==(e=t.sent())?void 0:e.uuid)||"*"]}})})()}function ro(e,t,n,r){return n8(function(){var a;return n7(this,function(i){switch(i.label){case 0:if(void 0===(a=r&&r.id))return[3,2];return[4,re.syncQueue.where({type:t,userId:e}).filter(function(e){return(null==e?void 0:e.descriptor.id)===a}).delete().catch(nH.errnames.DatabaseClosed)];case 1:i.sent(),i.label=2;case 2:return[4,re.syncQueue.add({type:t,content:n,userId:e,descriptor:r||{},createdOn:new Date}).catch(nH.errnames.DatabaseClosed,function(){return -1})];case 3:return[2,i.sent()]}})})()}function rs(e,t,n){return n8(function(){return n7(this,function(r){switch(r.label){case 0:return[4,ri()];case 1:return[4,ro(r.sent(),e,t,n)];case 2:return[2,r.sent()]}})})()}function rl(e,t){return n8(function(){return n7(this,function(n){switch(n.label){case 0:return[4,ru(e,t)];case 1:return[2,n.sent().map(function(e){return e.content})]}})})()}function ru(e,t){return n8(function(){var n;return n7(this,function(r){switch(r.label){case 0:return n=t?{type:t,userId:e}:{userId:e},[4,re.syncQueue.where(n).toArray().catch(nH.errnames.DatabaseClosed,function(){return[]})];case 1:return[2,r.sent()]}})})()}function rc(e){return n8(function(){return n7(this,function(t){switch(t.label){case 0:return[4,ri()];case 1:return[4,rl(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function rd(e){return n8(function(){return n7(this,function(t){switch(t.label){case 0:return[4,ri()];case 1:return[4,ru(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function rf(e){return n8(function(){return n7(this,function(t){switch(t.label){case 0:return[4,re.syncQueue.get(e).catch(nH.errnames.DatabaseClosed,function(){})];case 1:return[2,t.sent()]}})})()}function rp(e){var t;return!!(null==(t=rt[e])?void 0:t.options.onBeginEditSyncItem)}function rh(e){return n8(function(){var t,n,r;return n7(this,function(a){switch(a.label){case 0:return[4,rf(e)];case 1:if(!(n=a.sent()))throw Error("No sync item with the ID ".concat(e," exists."));if(!(r=null==(t=rt[n.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(n.type,'" supports editing items.'));return r(n),[2]}})})()}function rm(e){return n8(function(){return n7(this,function(t){switch(t.label){case 0:return[4,re.syncQueue.delete(e).catch(nH.errnames.DatabaseClosed)];case 1:return t.sent(),[2]}})})()}function ry(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};rt[e]={type:e,dependsOn:t,process:n,options:r}}var rv=n(1400),rg="OFFLINE+";function rb(){return rg+(0,rv.A)()}function rx(e){return e.startsWith(rg)}function rw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rS(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function rj(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){rS(i,r,a,o,s,"next",e)}function s(e){rS(i,r,a,o,s,"throw",e)}o(void 0)})}}function rO(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var rk={};function rE(){return Object.values(rk)}function rA(e){rk[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.')),rk[e.id]=e}function rD(e){return rj(function(){return rO(this,function(t){switch(t.label){case 0:return[4,r_()];case 1:return[4,rP(t.sent(),e)];case 2:return[2,t.sent()]}})})()}function rP(e,t){return rj(function(){var n;return rO(this,function(r){switch(r.label){case 0:return n=t?{type:t,users:e}:{users:e},[4,new n3().dynamicOfflineData.where(n).toArray().catch(nH.errnames.DatabaseClosed,function(){return[]})];case 1:return[2,r.sent()]}})})()}function rT(e,t){return rj(function(){return rO(this,function(n){switch(n.label){case 0:return[4,r_()];case 1:return[4,rC(n.sent(),e,t)];case 2:return[2,n.sent()]}})})()}function rC(e,t,n){return rj(function(){var r,a;return rO(this,function(i){switch(i.label){case 0:return[4,(r=new n3).dynamicOfflineData.get({type:t,identifier:n}).catch(nH.errnames.DatabaseClosed,function(){})];case 1:if(a=i.sent())return[3,3];return[4,r.dynamicOfflineData.add({users:[e],type:t,identifier:n}).catch(nH.errnames.DatabaseClosed)];case 2:return i.sent(),[3,5];case 3:var o;if(a.users.includes(e))return[3,5];return[4,r.dynamicOfflineData.update(a.id,{users:((function(e){if(Array.isArray(e))return rw(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 rw(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 rw(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(nH.errnames.DatabaseClosed)];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function rN(e,t){return rj(function(){return rO(this,function(n){switch(n.label){case 0:return[4,r_()];case 1:return[4,rM(n.sent(),e,t)];case 2:return[2,n.sent()]}})})()}function rM(e,t,n){return rj(function(){var r,a;return rO(this,function(i){switch(i.label){case 0:return[4,(r=new n3).dynamicOfflineData.get({type:t,identifier:n,users:e}).catch(nH.errnames.DatabaseClosed,function(){})];case 1:if(!(a=i.sent()))return[3,5];if(!(a.users.length>1))return[3,3];return[4,r.dynamicOfflineData.update(a.id,{users:a.users.filter(function(t){return t!==e})}).catch(nH.errnames.DatabaseClosed)];case 2:return i.sent(),[3,5];case 3:return[4,r.dynamicOfflineData.delete(a.id).catch(nH.errnames.DatabaseClosed)];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function rR(e,t){return rj(function(){return rO(this,function(n){switch(n.label){case 0:return[4,rD(e)];case 1:return[4,Promise.all(n.sent().map(function(e){return rj(function(){return rO(this,function(n){return[2,rI(e.type,e.identifier,t)]})})()}))];case 2:return n.sent(),[2]}})})()}function rI(e,t,n){return rj(function(){var r,a,i,o,s,l,u,c,d;return rO(this,function(f){switch(f.label){case 0:return[4,rT(e,t)];case 1:return f.sent(),r=new n3,[4,r_()];case 2:return a=f.sent(),[4,r.dynamicOfflineData.get({type:e,identifier:t}).catch(nH.errnames.DatabaseClosed,function(){})];case 3:if(i=f.sent(),o=rE().filter(function(t){return t.type===e}),!i)return[2];return[4,Promise.all(o.map(function(e){return rj(function(){var r,a,i;return rO(this,function(o){try{return e.sync(t,n),[2,{id:e.id,error:void 0}]}catch(t){return i=null!=(r=null==(a=t.message)?void 0:a.toString())?r: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,r.dynamicOfflineData.update(i.id,{syncState:d}).catch(nH.errnames.DatabaseClosed)];case 5:f.sent(),f.label=6;case 6:return[2]}})})()}function r_(){return rj(function(){var e;return rO(this,function(t){switch(t.label){case 0:return[4,(0,nX.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 rL(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}var rF=(0,nQ.createGlobalStore)("offline-entities",{offlineEntityDataSyncState:{},handlers:{}});function rB(){return rW(),rF}function rV(e,t){rW(),rA({type:"entity",displayName:t.displayName,id:e,isSynced:function(){return Promise.resolve(!0)},sync:function(e,n){return t.onOfflineEntityAdded({entityUuid:e,signal:null!=n?n:new AbortController().signal})}})}function rz(e){var t;return(t=function(){return function(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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 rW(),[4,rI("entity",e)];case 1:return t.sent(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(e){rL(i,r,a,o,s,"next",e)}function s(e){rL(i,r,a,o,s,"throw",e)}o(void 0)})})()}function rW(){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,n){"use strict";n.d(t,{yw:()=>v,Y1:()=>f,FZ:()=>y,oB:()=>d.o});var r=n(9250),a=n(3645),i=n(5794),o=n(3766),s=n(1221),l=n(9120);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=n(7267),d=n(8148);function f(e,t){var n=t.name;if(!n)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(n," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var r=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(n," 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(r.some(c.rq)){var a=(0,c.Sk)(t.meta);a.length>0&&console.warn("L'extension ".concat(n," de ").concat(e," est sur un slot de rail du shell mais ne s'affichera pas : ").concat(a.join(" ; "),"."))}(0,c.VK)({name:n,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=r[Symbol.iterator]();!(i=(f=p.next()).done);i=!0){var h=f.value;(0,c.K0)(h,n)}}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 n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}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 n,r,y,v,g,b,x,w,S,j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){try{return"4.1.0"}catch(e){return}}(),n=e.platforms,r=e.requiredCapabilities,a=e.frameworkRange;if(Array.isArray(n)&&n.length>0){var i=(0,o.t)();if(!n.includes(i))return{reason:"platform",target:i,platforms:function(e){if(Array.isArray(e))return u(e)}(n)||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 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)}}(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.")}()}}if("string"==typeof a&&a.length>0&&t&&!(0,l.r)(a,t))return{reason:"framework",required:a,current:t};if(Array.isArray(r)&&r.length>0){var c=r.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!=(n=t.extensions)?n:[],k=null!=(r=t.modals)?r:[],E=null!=(y=t.workspaces)?y:[],A=null!=(v=t.workspaceGroups)?v:[],D=null!=(g=t.featureFlags)?g:[],P=null!=(b=t.workspaceGroups2)?b:[],T=null!=(x=t.workspaceWindows2)?x:[],C=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 n,r;m.push((n=p({},t),r=r={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}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 n;(n=t.name)?t.component?(0,c.Ju)({name:n,moduleName:e,load:function(){return(0,d.o)(e,t.component)}}):console.error("The modal ".concat(n," 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 n=t.name;if(!n)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 r=t.title;if(!r)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(n," 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:n,title:r,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:[n]})}}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)}),A.forEach(function(t){if(t&&(void 0===t?"undefined":h(t))==="object"&&Object.hasOwn(t,"name")){var n,r;(r=t.name)?(0,c.io)({name:r,members:null!=(n=t.members)?n:[]}):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,P),function(e,t){(0,c.Qb)(e,t);var n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!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){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}(e,T),(0,c.Uh)(e,C),D.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,n=!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 n,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=(n=function e(t){if(Array.isArray(t)){var n,a=t.map(e);return function(e){return a.some(function(t){return t(e)})}}return"string"==typeof t?(0,r.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(n=RegExp)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)?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))&&n(e)}:n);(0,r.registerApplication)(e,function(){return(0,d.o)(t.appName,t.component)},u)}(f,u)}}catch(e){n=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw a}}}},8148(e,t,n){"use strict";n.d(t,{o:()=>u});var r=n(99),a=n(3645);function i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)})}}function s(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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 n,i,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(i=(n=t.indexOf("#"))>=0)?t.substring(0,n):e,d=i?t.substring(n+1):t,[4,(0,r.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(n){switch(n.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,r.rL)(h)];case 2:t=n.sent(),n.label=3;case 3:return e=t,[4,l[h]=new Promise(function(t,n){if(Object.hasOwn(e,"startupApp")){var r=e.startupApp;if("function"==typeof r)return Promise.resolve(r()).then(function(){(0,a.registerModuleLoad)(h),t(null)}).catch(n)}(0,a.registerModuleLoad)(h),t(null)})];case 4:return n.sent(),[3,7];case 5:return[4,l[h]];case 6:n.sent(),n.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,n){"use strict";n.d(t,{g2:()=>ev,Rt:()=>es,XE:()=>ee,a3:()=>eu,LW:()=>er,a7:()=>et,L8:()=>q,Yq:()=>ea,L3:()=>Z,fU:()=>eo,_U:()=>X,d4:()=>el,p0:()=>em,kQ:()=>Y,qE:()=>ec,pf:()=>K});var r,a=n(9405),i=n(227);if("u">typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;r=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"}}(r||"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 n=t.toLowerCase(),r=v[n];if(r)return r;let a=new e(t);return v[n]=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 n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);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 n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.stringToInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}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,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(n)+(r?this.stringToInt(r):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 n=u[e];if(!n)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(n),a=String.fromCharCode(n+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(n+e)]=e;return f[e]={group:`[${r}-${a}]`,lookup:i},f[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,y)Object.hasOwn(y,n)&&(this.vars[n]=y[n].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((n,r)=>{["","k","kuu","kuuta"].forEach((a,i)=>{e[n+a+(i<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.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(n[o]).find(r);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(n[i]).find(r);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 n=[],r={};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(/\.$/,""),n.push(`${l}\\.?`)):n.push(l),r[l]=o}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},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);n.push(s),r[s]=12*i}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}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 n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var j=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let i=e.handler(a);if(i){for(let[e,t]of Object.entries(i))e in n||void 0===t||(n[e]=t);let e=a.index??0;if(t=(t=t.slice(0,e)+t.slice(e+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):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 A=[[/([^\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"]],D={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," "],...A],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:A,id:A,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function P(e,t=o){let n=function(e){var t,n;let r,a,i=k[e];if(i)return i;let o=g.factory(e),s=new j({doneChecker:E,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{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(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n]??0;0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...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,n,r])=>{let a,i=parseFloat(t);"week"===(a=n.length<=2?x[n]:(a=n.replace(/s$/,"")).toLowerCase())&&(a="day",i*=7),("-"===e||r)&&(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)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(O.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})});return k[e]=s,s}(t),r=function(e,t){let n=D[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function T(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 C(e,t=o){let n=P(e,t),r=n.invalid?new s(NaN):T(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function N(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):C(e,t)}Date.fromString=s.fromString=C,Date.fromAny=s.fromAny=N,"u">typeof window&&(window.anyDateParser={fromString:C,fromAny:N,fromObject:T,attempt:P});var M=n(5350),R=n.n(M),I=n(648),L=n(6871),F=n(2147);let B=function(e){return null==e};var V=n(313),z=n(1851);function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){U(e,t,n[t])})}return e}function H(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}R().extend(I),R().extend(F),R().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])&&R()(e,G).isValid()}function q(e){return R()(e).isToday()}function Y(e){return K(e)?R()(e,G).toDate():null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=R()(e);return t&&(n=n.utc()),n.format(G)}function X(e){return R()(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,n=Q,r={writable:!0,value:new Map};if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,r)}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 n=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return H(this,Q).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),n),n}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function ee(e,t){J.register(e,t)}function et(e){var t,n=null!=e?e:(0,z.J)();return J.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t)?n:new Intl.Locale(n))}var en={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(e,(0,z.J)());if(n.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!B(n.day)&&B(n.month)&&(n=Object.assign({},(0,V.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},(0,V.A)(n,"day"),{date:n.day}));var r=R()().set(n).toDate();return B(n.year)&&(t.year=!1),B(n.month)&&(t.month=!1),B(n.date)&&(t.day=!1),ea(r,t)}function ea(e,t){var n,r,a=null!=(n=null==t?void 0:t.locale)?n:(0,z.J)(),i=new Intl.Locale(a),o=$({},en,{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=R()(e).isToday();if(y&&!p)r=(r=new Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(a)+r.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,n){return"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type)})),r=v.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(r+=", ".concat(eo(e))),r}var ei=function(e){return function(t,n,r){return"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+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 n,r;return ea(e,(n=$({},t),r=r={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function el(e,t){var n=et("string"==typeof t?new Intl.Locale(t):t);return n?(0,a.yP)(e,(0,i.d)(n)):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 n=P(e,(0,z.J)());return n.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(n.day&&!n.month&&(n=$({},(0,V.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=$({},(0,V.A)(n,"day"),{date:n.day})),R()(t).set(n))}return R()(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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R()(),r=arguments.length>2?arguments[2]:void 0,a=R()(n),i=ec(e,a);if(null==i)return null;if("string"==typeof r){var o=ep(r);return U({},o,a.diff(i,o))}var s=null!=r?r:{},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,n){for(var r=ed.indexOf(n),a=0;a<ed.length;a++){var i=ed[a];if(t.diff(e,i)>0)return a<=r?i:n}return n}(i,a,null!=f?f:"seconds"):ep(u),function(e,t,n,r){var a=ed.indexOf(n),i=ed.indexOf(r),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=$({},eh);if(e){var n=!0,r=!1,a=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}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){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)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 U({},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]:R()(),n=arguments.length>2?arguments[2]:void 0,r=em(e,t,n);return null==r?null:eu(r,(void 0===n?"undefined":n&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&n.formatOptions?$({},ey,n.formatOptions):ey)}},1851(e,t,n){"use strict";function r(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},4834(e,t,n){"use strict";n.d(t,{g2:()=>r.g2,kd:()=>function e(t){var n={},r=!0,a=!1,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;if(c(t[l])&&t[l].hasOwnProperty("_default"))n[l]=t[l]._default;else{if(l.startsWith("_"))continue;c(t[l])?n[l]=e(t[l]):n[l]=t[l]}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n},JK:()=>a.J,Rt:()=>r.Rt,_g:()=>u,a3:()=>r.a3,LW:()=>r.LW,XE:()=>r.XE,L5:()=>m,bN:()=>l.b,a7:()=>r.a7,sc:()=>i.s,rX:()=>d.r,L8:()=>r.L8,Yq:()=>r.Yq,w7:()=>s,L3:()=>r.L3,fU:()=>r.fU,_U:()=>r._U,d4:()=>r.d4,p0:()=>r.p0,kQ:()=>r.kQ,qE:()=>r.qE,pf:()=>r.pf});var r=n(3903),a=n(1851),i=n(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,n){if(null==e)return n;var r=o(e);if(!r)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),n;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=r;p;){var h=function(){var e=a.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",n=a.find(function(e){return e.canonical.startsWith(t)});if(n)return{v:n.original};if("ht"===p)return p="fr-HT","continue";var r=p.lastIndexOf("-");if(-1===r)return"break";var i=(p=p.slice(0,r)).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 n}var l=n(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=n(9120);function f(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){f(i,r,a,o,s,"next",e)}function s(e){f(i,r,a,o,s,"throw",e)}o(void 0)})}}function h(e,t){var n,r,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(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=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++,r=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],r=0}finally{n=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,n,r,a,i,o,s,l=arguments;return h(this,function(u){switch(u.label){case 0:n=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,r=t.getDelay,a=t.onError,n=null!=n?n:function(e){return e<=5},r=null!=r?r:function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,n?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=r(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(n(i++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}},9120(e,t,n){"use strict";n.d(t,{r:()=>o});var r=n(8164);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),3!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}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.")}(),r=n[0],i=n[1],o=n[2];return"".concat(r,".").concat(i,".").concat(o)}function o(e,t){var n=function(e){var t=e.indexOf("-");if(t>=0){var n=i(e.slice(0,t)),r=e.slice(t+1);return"".concat(n,"-").concat(r)}return i(e)}(t);return r.satisfies(n,e,{includePrerelease:!0})}}}]);