@bull-board/ui 6.4.0 → 6.5.0

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 (27) hide show
  1. package/dist/index.ejs +2 -2
  2. package/dist/static/css/{main.3abb51c2.css → main.c61c9456.css} +1 -1
  3. package/dist/static/js/33563.2599da75.js +12 -0
  4. package/dist/static/js/async/13346.1513cc1d.js +56 -0
  5. package/dist/static/js/async/{23080.8c84a1ef.js → 23080.3015db34.js} +1 -1
  6. package/dist/static/js/async/{26335.24d897e6.js → 26335.a53c8597.js} +1 -1
  7. package/dist/static/js/async/{4670.08cf1776.js → 4670.0073175f.js} +1 -1
  8. package/dist/static/js/async/{60290.7637c675.js → 60290.850b01b0.js} +1 -1
  9. package/dist/static/js/async/{81191.06985ac9.js → 81191.cd6b0529.js} +1 -1
  10. package/dist/static/js/async/85093.e6beee20.js +1 -0
  11. package/dist/static/js/async/{87586.5c49a27b.js → 87586.db222558.js} +1 -1
  12. package/dist/static/js/async/97241.83835cc1.js +1 -0
  13. package/dist/static/js/async/highlight-worker.dabf3a33.js +1 -0
  14. package/dist/static/js/{main.79ee3751.js → main.a42a3553.js} +2 -2
  15. package/package.json +3 -2
  16. package/dist/static/js/83544.ce1e4ea9.js +0 -2
  17. package/dist/static/js/async/20306.ce0432cb.js +0 -56
  18. package/dist/static/js/async/85093.c2351775.js +0 -1
  19. package/dist/static/js/async/97241.b8133980.js +0 -1
  20. package/dist/static/js/async/highlight-worker.e0105321.js +0 -1
  21. /package/dist/static/css/async/{23080.67780f94.css → 23080.aa9b41ef.css} +0 -0
  22. /package/dist/static/css/async/{26335.593132bd.css → 26335.b79fa8db.css} +0 -0
  23. /package/dist/static/css/async/{4670.812ee089.css → 4670.244365ec.css} +0 -0
  24. /package/dist/static/css/async/{70021.f7e7c024.css → 70021.27a7840f.css} +0 -0
  25. /package/dist/static/css/async/{97241.a605b410.css → 97241.4c91059a.css} +0 -0
  26. /package/dist/static/js/{83544.ce1e4ea9.js.LICENSE.txt → 33563.2599da75.js.LICENSE.txt} +0 -0
  27. /package/dist/static/js/async/{20306.ce0432cb.js.LICENSE.txt → 13346.1513cc1d.js.LICENSE.txt} +0 -0
@@ -0,0 +1,12 @@
1
+ /*! For license information please see 33563.2599da75.js.LICENSE.txt */
2
+ (self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["33563"],{49732:function(e,t,n){"use strict";n.d(t,{Ry:function(){return u}});var r=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var u,c=(u=t,(Array.isArray(e)?e:[e]).map(function(e){if(u.contains(e))return e;var t=s(e);return t&&u.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",u,". Doing nothing"),null)}).filter(function(e){return!!e}));!i[n]&&(i[n]=new WeakMap);var d=i[n],f=[],p=new Set,h=new Set(c),g=function(e){if(!(!e||p.has(e)))p.add(e),g(e.parentNode)};c.forEach(g);var m=function(e){if(!(!e||h.has(e)))Array.prototype.forEach.call(e.children,function(e){if(p.has(e))m(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(d.get(e)||0)+1;r.set(e,a),d.set(e,s),f.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(n,"true"),!i&&e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),p.clear(),a++,function(){f.forEach(function(e){var t=r.get(e)-1,i=d.get(e)-1;r.set(e,t),d.set(e,i),!t&&(!o.has(e)&&e.removeAttribute(l),o.delete(e)),!i&&e.removeAttribute(n)}),!--a&&(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]);var i=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),l(o,i,n,"aria-hidden")):function(){return null}}},6277:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(r&&(r+=" "),r+=t);return r}},96279:function(e,t,n){var r,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();r=i,function(e){var t=void 0!==r&&r||"undefined"!=typeof self&&self||void 0!==t&&t,n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer){var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1}}function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function f(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}u.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=s(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),l(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;if(n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t))this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));else throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){if(!this._bodyArrayBuffer)return this.blob().then(f);var e=c(this);return e?e:ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)}),this.text=function(){var e,t,n,r=c(this);if(r)return r;if(this._bodyBlob){;return e=this._bodyBlob,n=d(t=new FileReader),t.readAsText(e),n}if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);else throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,!t.headers&&(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!o&&null!=e._bodyInit&&(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})};function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');!t&&(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}h.call(m.prototype),h.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];v.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function w(r,o){return new Promise(function(i,a){var l=new m(r,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var e,t,n={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new v(r,n))},0)},c.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)};c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof u?l.headers.forEach(function(e,t){c.setRequestHeader(t,e)}):Object.getOwnPropertyNames(o.headers).forEach(function(e){c.setRequestHeader(e,s(o.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}w.polyfill=!0,!t.fetch&&(t.fetch=w,t.Headers=u,t.Request=m,t.Response=v),e.Headers=u,e.Request=m,e.Response=v,e.fetch=w}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var a=o.fetch?o:i;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},96081:function(e,t,n){"use strict";n.d(t,{Z:()=>f});var r,o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function c(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var s=a[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,function(e){return e.test(s)});return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}var d={ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var o=n[0],i=e.match(r.parsePattern);if(!i)return null;var a=r.valueCallback?r.valueCallback(i[0]):i[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(o.length)}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};let f={code:"en-US",formatDistance:function(e,t,n){var r,i=o[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)return n.comparison&&n.comparison>0?"in "+r:r+" ago";return r},formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:u,match:d,options:{weekStartsOn:0,firstWeekContainsDate:1}}},73463:function(e,t,n){"use strict";var r=n(48570),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var y=a[m];if(!i[y]&&!(r&&r[y])&&!(g&&g[y])&&!(s&&s[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},37320:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};if("abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,o){for(var i,a,s=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]),i)n.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s}:Object.assign},68262:function(e,t,n){"use strict";var r=n(23586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},66866:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function O(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},48570:function(e,t,n){"use strict";e.exports=n(66866)},82577:function(e,t,n){"use strict";n.d(t,{Z:()=>Q});var r,o,i,a,s,l,u,c,d,f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var h=n("2784"),g="right-scroll-bar-position",m="width-before-scroll-bar";function y(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,b=new WeakMap;function w(e){return e}var x=(void 0===o&&(o={}),(u=(i=null,void 0===a&&(a=w),s=[],l=!1,{read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(e){var t=a(e,l);return s.push(t),function(){s=s.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;s.length;){var t=s;s=[],t.forEach(e)}s={push:function(t){return e(t)},filter:function(){return s}}},assignMedium:function(e){l=!0;var t=[];if(s.length){var n=s;s=[],n.forEach(e),t=s}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),s={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),s}}}})).options=f({async:!0,ssr:!1},o),u),O=function(){},E=h.forwardRef(function(e,t){var n,r,o,i,a,s,l=h.useRef(null),u=h.useState({onScrollCapture:O,onWheelCapture:O,onTouchMoveCapture:O}),c=u[0],d=u[1],g=e.forwardProps,m=e.children,w=e.className,E=e.removeScrollBar,S=e.enabled,C=e.shards,R=e.sideCar,P=e.noIsolation,k=e.inert,j=e.allowPinchZoom,T=e.as,N=e.gapMode,L=p(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]);var M=(n=[l,t],s=(o=null,i=function(e){return n.forEach(function(t){return y(t,e)})},(a=(0,h.useState)(function(){return{value:o,callback:i,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=i,a.facade),v(function(){var e=b.get(s);if(e){var t=new Set(e),r=new Set(n),o=s.current;t.forEach(function(e){!r.has(e)&&y(e,null)}),r.forEach(function(e){!t.has(e)&&y(e,o)})}b.set(s,n)},[n]),s),A=f(f({},L),c);return h.createElement(h.Fragment,null,S&&h.createElement(R,{sideCar:x,removeScrollBar:E,shards:C,noIsolation:P,inert:k,setCallbacks:d,allowPinchZoom:!!j,lockRef:l,gapMode:N}),g?h.cloneElement(h.Children.only(m),f(f({},A),{ref:M})):h.createElement(void 0===T?"div":T,f({},A,{className:w,ref:M}),m))});E.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},E.classNames={fullWidth:m,zeroRight:g};var S=function(e){var t=e.sideCar,n=p(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,f({},n))};S.isSideCarExport=!0;var C=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r?r:n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a,s;i=t,a=o,i.styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a)),s=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R=function(){var e=C();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},P=function(){var e=R();return function(t){return e(t.styles,t.dynamic),null}},k={left:0,top:0,right:0,gap:0},j=function(e){return parseInt(e||"",10)||0},T=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[j(n),j(r),j(o)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return k;var t=T(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},L=P(),M="data-scroll-locked",A=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(M,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(g," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(m," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(g," .").concat(g," {\n right: 0 ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},D=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},I=function(){h.useEffect(function(){return document.body.setAttribute(M,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;I();var i=h.useMemo(function(){return N(o)},[o]);return h.createElement(L,{styles:A(i,!t,o,n?"":"!important")})},$=!1;if("undefined"!=typeof window)try{var F=Object.defineProperty({},"passive",{get:function(){return $=!0,!0}});window.addEventListener("test",F,F),window.removeEventListener("test",F,F)}catch(e){$=!1}var W=!!$&&{passive:!1},B=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},V=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),U(e,r)){var o=H(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},U=function(e,t){return"v"===e?B(t,"overflowY"):B(t,"overflowX")},H=function(e,t){var n,r;return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:[(r=t).scrollLeft,r.scrollWidth,r.clientWidth]},z=function(e,t,n,r,o){var i,a,s=(i=e,a=window.getComputedStyle(t).direction,"h"===i&&"rtl"===a?-1:1),l=s*r,u=n.target,c=t.contains(u),d=!1,f=l>0,p=0,h=0;do{var g=H(e,u),m=g[0],y=g[1]-g[2]-s*m;(m||y)&&U(e,u)&&(p+=y,h+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(p)||!o&&l>p)?d=!0:!f&&(o&&1>Math.abs(h)||!o&&-l>h)&&(d=!0),d},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},q=function(e){return[e.deltaX,e.deltaY]},X=function(e){return e&&"current"in e?e.current:e},J=0,Y=[];let G=(c=x,d=function(e){var t,n=h.useRef([]),r=h.useRef([0,0]),o=h.useRef(),i=h.useState(J++)[0],a=h.useState(P)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(!r&&(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(X),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=K(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=V(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=V(d,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=n),!n)return!0;var p=o.current||n;return z(p,t,e,"h"===p?l:u,!0)},[]),u=h.useCallback(function(e){if(!!Y.length&&Y[Y.length-1]===a){var t="deltaY"in e?q(e):K(e),r=n.current.filter(function(n){var r,o;return n.name===e.type&&(n.target===e.target||e.target===n.shadowParent)&&(r=n.delta,o=t,r[0]===o[0]&&r[1]===o[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(s.current.shards||[]).map(X).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=h.useCallback(function(e){r.current=K(e),o.current=void 0},[]),f=h.useCallback(function(t){c(t.type,q(t),t.target,l(t,e.lockRef.current))},[]),p=h.useCallback(function(t){c(t.type,K(t),t.target,l(t,e.lockRef.current))},[]);h.useEffect(function(){return Y.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,W),document.addEventListener("touchmove",u,W),document.addEventListener("touchstart",d,W),function(){Y=Y.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,W),document.removeEventListener("touchmove",u,W),document.removeEventListener("touchstart",d,W)}},[]);var g=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(a,{styles:(t=i,"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n"))}):null,g?h.createElement(_,{gapMode:e.gapMode}):null)},c.useMedium(d),S);var Z=h.forwardRef(function(e,t){return h.createElement(E,f({},e,{ref:t,sideCar:G}))});Z.classNames=E.classNames;let Q=Z},90047:function(e,t,n){"use strict";n.d(t,{Am:function(){return K},Ix:function(){return $}});var r,o,i,a,s,l,u,c,d,f,p,h,g=n(2784),m=n(6277),y=n(28316);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e){return"number"==typeof e&&!isNaN(e)}function w(e){return"boolean"==typeof e}function x(e){return"string"==typeof e}function O(e){return"function"==typeof e}function E(e){return x(e)||O(e)?e:null}function S(e){return 0===e||e}var C=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function R(e){return(0,g.isValidElement)(e)||x(e)||O(e)||b(e)}var P={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},k={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"},j={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter(function(e){return e!==t});return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.list.has(e)&&this.list.get(e).forEach(function(n){var o=setTimeout(function(){n.apply(void 0,r)},0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(o)})}};function T(e,t){void 0===t&&(t=!1);var n=(0,g.useRef)(e);return(0,g.useEffect)(function(){t&&(n.current=e)}),n.current}function N(e,t){switch(t.type){case 0:return[].concat(e,[t.toastId]).filter(function(e){return e!==t.staleId});case 1:var n;return 0===(n=t.toastId)||n?e.filter(function(e){return e!==t.toastId}):[]}}function L(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function M(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function A(e){var t=e.closeToast,n=e.type,r=e.ariaLabel;return(0,g.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":void 0===r?"close":r},(0,g.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,g.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function D(e){var t,n,r=e.delay,o=e.isRunning,i=e.closeToast,a=e.type,s=e.hide,l=e.className,u=e.style,c=e.controlledProgress,d=e.progress,f=e.rtl,p=e.isIn,h=v({},u,{animationDuration:r+"ms",animationPlayState:o?"running":"paused",opacity:s?0:1});c&&(h.transform="scaleX("+d+")");var y=(0,m.Z)("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+a,((t={})["Toastify__progress-bar--rtl"]=f,t)),b=O(l)?l({rtl:f,type:a,defaultClassName:y}):(0,m.Z)(y,l),w=((n={})[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]=c&&d<1?null:function(){p&&i()},n);return(0,g.createElement)("div",Object.assign({role:"progressbar","aria-hidden":s?"true":"false","aria-label":"notification timer",className:b,style:h},w))}D.defaultProps={type:k.DEFAULT,hide:!1};var I=function(e){var t,n=function(e){var t=(0,g.useState)(!0),n=t[0],r=t[1],o=(0,g.useState)(!1),i=o[0],a=o[1],s=(0,g.useRef)(null),l=T({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),u=T(e,!0),c=e.autoClose,d=e.pauseOnHover,f=e.closeToast,p=e.onClick,h=e.closeOnClick;function m(t){if(e.draggable){var n=s.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=L(t.nativeEvent),l.y=M(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(e.draggablePercent/100))}}function y(){if(l.boundingRect){var t=l.boundingRect,n=t.top,r=t.bottom,o=t.left,i=t.right;e.pauseOnHover&&l.x>=o&&l.x<=i&&l.y>=n&&l.y<=r?b():v()}}function v(){r(!0)}function b(){r(!1)}(0,g.useEffect)(function(){return O(e.onOpen)&&e.onOpen((0,g.isValidElement)(e.children)&&e.children.props),function(){O(u.onClose)&&u.onClose((0,g.isValidElement)(u.children)&&u.children.props)}},[]),(0,g.useEffect)(function(){return e.draggable&&function(){document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),document.addEventListener("touchmove",w),document.addEventListener("touchend",x)}(),function(){e.draggable&&function(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",x)}()}},[e.draggable]),(0,g.useEffect)(function(){return e.pauseOnFocusLoss&&function(){!document.hasFocus()&&b(),window.addEventListener("focus",v),window.addEventListener("blur",b)}(),function(){e.pauseOnFocusLoss&&function(){window.removeEventListener("focus",v),window.removeEventListener("blur",b)}()}},[e.pauseOnFocusLoss]);function w(t){if(l.canDrag){t.preventDefault();var r=s.current;n&&b(),l.x=L(t),l.y=M(t),"x"===e.draggableDirection?l.delta=l.x-l.start:l.delta=l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+l.delta+"px)",r.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance))}}function x(){var t=s.current;if(l.canDrag){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance){a(!0),e.closeToast();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}var E={onMouseDown:m,onTouchStart:m,onMouseUp:y,onTouchEnd:y};return c&&d&&(E.onMouseEnter=b,E.onMouseLeave=v),h&&(E.onClick=function(e){p&&p(e),l.canCloseOnClick&&f()}),{playToast:v,pauseToast:b,isRunning:n,preventExitTransition:i,toastRef:s,eventHandlers:E}}(e),r=n.isRunning,o=n.preventExitTransition,i=n.toastRef,a=n.eventHandlers,s=e.closeButton,l=e.children,u=e.autoClose,c=e.onClick,d=e.type,f=e.hideProgressBar,p=e.closeToast,h=e.transition,y=e.position,v=e.className,b=e.style,w=e.bodyClassName,x=e.bodyStyle,E=e.progressClassName,S=e.progressStyle,C=e.updateId,R=e.role,P=e.progress,k=e.rtl,j=e.toastId,N=e.deleteToast,A=e.isIn,I=(0,m.Z)("Toastify__toast","Toastify__toast--"+d,((t={})["Toastify__toast--rtl"]=k,t)),_=O(v)?v({rtl:k,position:y,type:d,defaultClassName:I}):(0,m.Z)(I,v),$=!!P;return(0,g.createElement)(h,{isIn:A,done:N,position:y,preventExitTransition:o,nodeRef:i},(0,g.createElement)("div",Object.assign({id:j,onClick:c,className:_},a,{style:b,ref:i}),(0,g.createElement)("div",Object.assign({},A&&{role:R},{className:O(w)?w({type:d}):(0,m.Z)("Toastify__toast-body",w),style:x}),l),function(e){if(e){var t={closeToast:p,type:d};if(O(e))return e(t);if((0,g.isValidElement)(e))return(0,g.cloneElement)(e,t)}}(s),(u||$)&&(0,g.createElement)(D,Object.assign({},C&&!$?{key:"pb-"+C}:{},{rtl:k,delay:u,isRunning:r,isIn:A,closeToast:p,hide:f,type:d,style:S,className:E,controlledProgress:$,progress:P}))))};var _=(o=(r={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}).enter,i=r.exit,s=void 0!==(a=r.appendPosition)&&a,u=void 0===(l=r.collapse)||l,d=void 0===(c=r.collapseDuration)?300:c,function(e){var t=e.children,n=e.position,r=e.preventExitTransition,a=e.done,l=e.nodeRef,c=e.isIn,f=s?o+"--"+n:o,p=s?i+"--"+n:i,h=(0,g.useRef)(),m=(0,g.useRef)(0);(0,g.useLayoutEffect)(function(){(function(){var e=l.current;h.current=e.className,e.className+=" "+f,e.addEventListener("animationend",y)})()},[]),(0,g.useEffect)(function(){!c&&(r?v():function(){m.current=1;var e=l.current;e.className+=" "+p,e.addEventListener("animationend",v)}())},[c]);function y(){var e=l.current;e.removeEventListener("animationend",y),0===m.current&&(e.className=h.current)}function v(){var e,t,n,r,o,i=l.current;i.removeEventListener("animationend",v),u?(e=i,t=a,void 0===(n=d)&&(n=300),r=e.scrollHeight,o=e.style,requestAnimationFrame(function(){o.minHeight="initial",o.height=r+"px",o.transition="all "+n+"ms",requestAnimationFrame(function(){o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})):a()}return g.createElement(g.Fragment,null,t)}),$=function(e){var t=function(e){var t=(0,g.useReducer)(function(e){return e+1},0)[1],n=(0,g.useReducer)(N,[]),r=n[0],o=n[1],i=(0,g.useRef)(null),a=T(0),s=T([]),l=T({}),u=T({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:c,getToast:function(e){return l[e]||null}});function c(e){return -1!==r.indexOf(e)}function d(e){var t=e.containerId;u.props.limit&&(!t||u.containerId===t)&&(a-=s.length,s=[])}function f(e){o({type:1,toastId:e})}function p(){var e=s.shift();m(e.toastContent,e.toastProps,e.staleId)}(0,g.useEffect)(function(){return u.containerId=e.containerId,j.cancelEmit(3).on(0,h).on(1,function(e){return i.current&&f(e)}).on(5,d).emit(2,u),function(){return j.emit(3,u)}},[]),(0,g.useEffect)(function(){u.isToastActive=c,u.displayedToast=r.length,j.emit(4,r.length,e.containerId)},[r]),(0,g.useEffect)(function(){u.props=e});function h(e,n){var r=n.delay,o=n.staleId,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}(n,["delay","staleId"]);if(!(!R(e)||(h=(d=c).containerId,y=d.toastId,v=d.updateId,!i.current||u.props.enableMultiContainer&&h!==u.props.containerId||l[y]&&null==v))){var d,h,y,v,S,C,P=c.toastId,k=c.updateId,j=u.props,T=function(){return f(P)},N=null==c.updateId;N&&a++;var L={toastId:P,updateId:k,isIn:!1,key:c.key||u.toastKey++,type:c.type,closeToast:T,closeButton:c.closeButton,rtl:j.rtl,position:c.position||j.position,transition:c.transition||j.transition,className:E(c.className||j.toastClassName),bodyClassName:E(c.bodyClassName||j.bodyClassName),style:c.style||j.toastStyle,bodyStyle:c.bodyStyle||j.bodyStyle,onClick:c.onClick||j.onClick,pauseOnHover:w(c.pauseOnHover)?c.pauseOnHover:j.pauseOnHover,pauseOnFocusLoss:w(c.pauseOnFocusLoss)?c.pauseOnFocusLoss:j.pauseOnFocusLoss,draggable:w(c.draggable)?c.draggable:j.draggable,draggablePercent:b(c.draggablePercent)?c.draggablePercent:j.draggablePercent,draggableDirection:c.draggableDirection||j.draggableDirection,closeOnClick:w(c.closeOnClick)?c.closeOnClick:j.closeOnClick,progressClassName:E(c.progressClassName||j.progressClassName),progressStyle:c.progressStyle||j.progressStyle,autoClose:(S=c.autoClose,C=j.autoClose,!1===S||b(S)&&S>0?S:C),hideProgressBar:w(c.hideProgressBar)?c.hideProgressBar:j.hideProgressBar,progress:c.progress,role:x(c.role)?c.role:j.role,deleteToast:function(){(function(e){delete l[e];var n=s.length;if((a=0===(r=e)||r?a-1:a-u.displayedToast)<0&&(a=0),n>0){var r,o,i=0===(o=e)||o?1:u.props.limit;if(1===n||1===i)u.displayedToast++,p();else{var c=i>n?n:i;u.displayedToast=c;for(var d=0;d<c;d++)p()}}else t()})(P)}};O(c.onOpen)&&(L.onOpen=c.onOpen),O(c.onClose)&&(L.onClose=c.onClose),"y"===L.draggableDirection&&80===L.draggablePercent&&(L.draggablePercent*=1.5);var M=j.closeButton;!1===c.closeButton||R(c.closeButton)?M=c.closeButton:!0===c.closeButton&&(M=!R(j.closeButton)||j.closeButton),L.closeButton=M;var A=e;(0,g.isValidElement)(e)&&!x(e.type)?A=(0,g.cloneElement)(e,{closeToast:T,toastProps:L}):O(e)&&(A=e({closeToast:T,toastProps:L})),j.limit&&j.limit>0&&a>j.limit&&N?s.push({toastContent:A,toastProps:L,staleId:o}):b(r)&&r>0?setTimeout(function(){m(A,L,o)},r):m(A,L,o)}}function m(e,t,n){var r=t.toastId;n&&delete l[n],l[r]={content:e,props:t},o({type:0,toastId:r,staleId:n})}return{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(l).reverse():Object.keys(l),o=0;o<r.length;o++){var i=l[r[o]],a=i.props.position;n[a]||(n[a]=[]),n[a].push(i)}return Object.keys(n).map(function(e){return t(e,n[e])})},collection:l,containerRef:i,isToastActive:c}}(e),n=t.getToastToRender,r=t.containerRef,o=t.isToastActive,i=e.className,a=e.style,s=e.rtl,l=e.containerId;return(0,g.createElement)("div",{ref:r,className:"Toastify",id:l},n(function(e,t){var n,r,l,u=0===t.length?v({},a,{pointerEvents:"none"}):v({},a);return(0,g.createElement)("div",{className:(n=e,l=(0,m.Z)("Toastify__toast-container","Toastify__toast-container--"+n,((r={})["Toastify__toast-container--rtl"]=s,r)),O(i)?i({position:n,rtl:s,defaultClassName:l}):(0,m.Z)(l,E(i))),style:u,key:"container-"+e},t.map(function(e){var t=e.content,n=e.props;return(0,g.createElement)(I,Object.assign({},n,{isIn:o(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?A:n.closeButton}),t)}))}))};$.defaultProps={position:P.TOP_RIGHT,transition:_,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:A,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert"};var F=new Map,W=[],B=!1;function V(){return Math.random().toString(36).substr(2,9)}function U(e,t){return F.size>0?j.emit(0,e,t):(W.push({content:e,options:t}),B&&C&&(B=!1,p=document.createElement("div"),document.body.appendChild(p),(0,y.render)((0,g.createElement)($,Object.assign({},h)),p))),t.toastId}function H(e,t){var n;return v({},t,{type:t&&t.type||e,toastId:(n=t)&&(x(n.toastId)||b(n.toastId))?n.toastId:V()})}var z=function(e){return function(t,n){return U(t,H(e,n))}},K=function(e,t){return U(e,H(k.DEFAULT,t))};K.success=z(k.SUCCESS),K.info=z(k.INFO),K.error=z(k.ERROR),K.warning=z(k.WARNING),K.dark=z(k.DARK),K.warn=K.warning,K.dismiss=function(e){return j.emit(1,e)},K.clearWaitingQueue=function(e){return void 0===e&&(e={}),j.emit(5,e)},K.isActive=function(e){var t=!1;return F.forEach(function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},K.update=function(e,t){void 0===t&&(t={}),setTimeout(function(){var n,r,o,i=(n=e,r=t.containerId,(o=F.get(r||f))?o.getToast(n):null);if(i){var a=i.props,s=i.content,l=v({},a,t,{toastId:t.toastId||e,updateId:V()});l.toastId!==e&&(l.staleId=e);var u=l.render||s;delete l.render,U(u,l)}},0)},K.done=function(e){K.update(e,{progress:1})},K.onChange=function(e){return O(e)&&j.on(4,e),function(){O(e)&&j.off(4,e)}},K.configure=function(e){void 0===e&&(e={}),B=!0,h=e},K.POSITION=P,K.TYPE=k,j.on(2,function(e){f=e.containerId||e,F.set(f,e),W.forEach(function(e){j.emit(0,e.content,e.options)}),W=[]}).on(3,function(e){F.delete(e.containerId||e),0===F.size&&j.off(0).off(1).off(5),C&&p&&document.body.removeChild(p)})},57613:function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,{Z:function(){return i}});let i=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&r(e),l=t&&r(t),u=s||l;if(e&&r(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");u&&""!==a[0]&&(!a[0]||!r(a[0]))&&a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}},20452:function(e,t,n){"use strict";var r=n(2784),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),a(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},80402:function(e,t,n){"use strict";var r=n(2784),o=n(43100),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,o]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},43100:function(e,t,n){"use strict";e.exports=n(20452)},41110:function(e,t,n){"use strict";e.exports=n(80402)},64896:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},32315:function(e,t,n){var r;if("function"==typeof fetch&&(r=void 0!==n.g&&n.g.fetch?n.g.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),"undefined"==typeof window){var o=r||n(96279);o.default&&(o=o.default),t.default=o,e.exports=t.default}},13714:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},12485:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},83660:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},56137:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},718:function(e,t,n){"use strict";n.d(t,{$j:function(){return A},Dx:function(){return D},VY:function(){return L},aU:function(){return M},aV:function(){return N},dk:function(){return I},fC:function(){return j},h_:function(){return T}});var r=n(2784),o=n(8210),i=n(59656),a=n(78364),s=n(56137),l=n(33883),u=n(52322),c="AlertDialog",[d,f]=(0,o.b)(c,[a.p8]),p=(0,a.p8)(),h=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,u.jsx)(a.fC,{...r,...n,modal:!0})};h.displayName=c;r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(a.xz,{...o,...r,ref:t})}).displayName="AlertDialogTrigger";var g=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,u.jsx)(a.h_,{...r,...n})};g.displayName="AlertDialogPortal";var m=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(a.aV,{...o,...r,ref:t})});m.displayName="AlertDialogOverlay";var y="AlertDialogContent",[v,b]=d(y),w=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:o,...c}=e,d=p(n),f=r.useRef(null),h=(0,i.e)(t,f),g=r.useRef(null);return(0,u.jsx)(a.jm,{contentName:y,titleName:x,docsSlug:"alert-dialog",children:(0,u.jsx)(v,{scope:n,cancelRef:g,children:(0,u.jsxs)(a.VY,{role:"alertdialog",...d,...c,ref:h,onOpenAutoFocus:(0,s.M)(c.onOpenAutoFocus,e=>{e.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(l.A4,{children:o}),(0,u.jsx)(k,{contentRef:f})]})})})});w.displayName=y;var x="AlertDialogTitle",O=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(a.Dx,{...o,...r,ref:t})});O.displayName=x;var E="AlertDialogDescription",S=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(a.dk,{...o,...r,ref:t})});S.displayName=E;var C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=p(n);return(0,u.jsx)(a.x8,{...o,...r,ref:t})});C.displayName="AlertDialogAction";var R="AlertDialogCancel",P=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=b(R,n),s=p(n),l=(0,i.e)(t,o);return(0,u.jsx)(a.x8,{...s,...r,ref:l})});P.displayName=R;var k=({contentRef:e})=>{let t=`\`${y}\` requires a description for the component to be accessible for screen reader users.
3
+
4
+ You can add a description to the \`${y}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
5
+
6
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${y}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
7
+
8
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{!document.getElementById(e.current?.getAttribute("aria-describedby"))&&console.warn(t)},[t,e]),null},j=h,T=g,N=m,L=w,M=C,A=P,D=O,I=S},59656:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return i}});var r=n(2784);function o(...e){return t=>e.forEach(e=>{var n,r;return n=e,r=t,void("function"==typeof n?n(r):null!=n&&(n.current=r))})}function i(...e){return r.useCallback(o(...e),e)}},8210:function(e,t,n){"use strict";n.d(t,{b:function(){return a},k:function(){return i}});var r=n(2784),o=n(52322);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,a=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),s=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},78364:function(e,t,n){"use strict";n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return G},h_:function(){return Q},jm:function(){return q},p8:function(){return x},x8:function(){return eo},xz:function(){return Z}});var r=n(2784),o=n(56137),i=n(59656),a=n(8210),s=n(34890),l=n(69153),u=n(12536),c=n(65340),d=n(55827),f=n(42951),p=n(3436),h=n(70653),g=n(82577),m=n(49732),y=n(33883),v=n(52322),b="Dialog",[w,x]=(0,a.b)(b),[O,E]=w(b),S=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,l.T)({prop:o,defaultProp:i,onChange:a});return(0,v.jsx)(O,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};S.displayName=b;var C="DialogTrigger",R=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=E(C,n),s=(0,i.e)(t,a.triggerRef);return(0,v.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":z(a.open),...r,ref:s,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});R.displayName=C;var P="DialogPortal",[k,j]=w(P,{forceMount:void 0}),T=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=E(P,t);return(0,v.jsx)(k,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,v.jsx)(f.z,{present:n||a.open,children:(0,v.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};T.displayName=P;var N="DialogOverlay",L=r.forwardRef((e,t)=>{let n=j(N,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=E(N,e.__scopeDialog);return i.modal?(0,v.jsx)(f.z,{present:r||i.open,children:(0,v.jsx)(M,{...o,ref:t})}):null});L.displayName=N;var M=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=E(N,n);return(0,v.jsx)(g.Z,{as:y.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,v.jsx)(p.WV.div,{"data-state":z(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),A="DialogContent",D=r.forwardRef((e,t)=>{let n=j(A,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=E(A,e.__scopeDialog);return(0,v.jsx)(f.z,{present:r||i.open,children:i.modal?(0,v.jsx)(I,{...o,ref:t}):(0,v.jsx)(_,{...o,ref:t})})});D.displayName=A;var I=r.forwardRef((e,t)=>{let n=E(A,e.__scopeDialog),a=r.useRef(null),s=(0,i.e)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,m.Ry)(e)},[]),(0,v.jsx)($,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),_=r.forwardRef((e,t)=>{let n=E(A,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,v.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&(!o.current&&n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),$=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=E(A,n),f=r.useRef(null),p=(0,i.e)(t,f);return(0,h.EW)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,v.jsx)(u.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":z(d.open),...l,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(J,{titleId:d.titleId}),(0,v.jsx)(Y,{contentRef:f,descriptionId:d.descriptionId})]})]})}),F="DialogTitle",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=E(F,n);return(0,v.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});W.displayName=F;var B="DialogDescription",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=E(B,n);return(0,v.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});V.displayName=B;var U="DialogClose",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(U,n);return(0,v.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function z(e){return e?"open":"closed"}H.displayName=U;var K="DialogTitleWarning",[q,X]=(0,a.k)(K,{contentName:A,titleName:F,docsSlug:"dialog"}),J=({titleId:e})=>{let t=X(K),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
9
+
10
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
11
+
12
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},Y=({contentRef:e,descriptionId:t})=>{let n=X("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(o)},[o,e,t]),null},G=S,Z=R,Q=T,ee=L,et=D,en=W,er=V,eo=H},12536:function(e,t,n){"use strict";n.d(t,{XB:()=>f});var r,o=n("2784"),i=n("56137"),a=n("3436"),s=n("59656"),l=n("64148"),u=n("52322"),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:y,onDismiss:v,...b}=e,w=o.useContext(d),[x,O]=o.useState(null),E=x?.ownerDocument??globalThis?.document,[,S]=o.useState({}),C=(0,s.e)(t,e=>O(e)),R=Array.from(w.layers),[P]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),k=R.indexOf(P),j=x?R.indexOf(x):-1,T=w.layersWithOutsidePointerEventsDisabled.size>0,N=j>=k,L=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){h("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...w.branches].some(e=>e.contains(t));N&&!n&&(g?.(e),y?.(e),!e.defaultPrevented&&v?.())},E),M=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(m?.(e),y?.(e),!e.defaultPrevented&&v?.())},E);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{!(j!==w.layers.size-1)&&(f?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},E),o.useEffect(()=>{if(x)return n&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(x)),w.layers.add(x),p(),()=>{n&&1===w.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[x,E,n,w]),o.useEffect(()=>()=>{x&&(w.layers.delete(x),w.layersWithOutsidePointerEventsDisabled.delete(x),p())},[x,w]),o.useEffect(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.WV.div,{...b,ref:C,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,L.onPointerDownCapture)})});f.displayName="DismissableLayer";o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,s.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch";function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.jH)(o,i):o.dispatchEvent(i)}},89007:function(e,t,n){"use strict";n.d(t,{fC:()=>nC,xz:()=>nR,VY:()=>nk,ck:()=>nj,Uv:()=>nP});var r=n("2784"),o=n("56137"),i=n("59656"),a=n("8210"),s=n("69153"),l=n("3436"),u=n("52322"),c=n("33883");function d(e){let t=e+"CollectionProvider",[n,o]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),a=n.length;function s(t){let{scope:n,children:o,...s}=t,l=n?.[e][a]||i,c=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(l.Provider,{value:c,children:o})}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e][a]||i,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,u.jsx)(a,{scope:t,itemMap:i,collectionRef:o,children:n})};l.displayName=t;let d=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(d,n),a=(0,i.e)(t,o.collectionRef);return(0,u.jsx)(c.g7,{ref:a,children:r})});f.displayName=d;let p=e+"CollectionItemSlot",h="data-radix-collection-item",g=r.forwardRef((e,t)=>{let{scope:n,children:o,...a}=e,l=r.useRef(null),d=(0,i.e)(t,l),f=s(p,n);return r.useEffect(()=>(f.itemMap.set(l,{ref:l,...a}),()=>void f.itemMap.delete(l))),(0,u.jsx)(c.g7,{[h]:"",ref:d,children:o})});return g.displayName=p,[{Provider:l,Slot:f,ItemSlot:g},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}var f=r.createContext(void 0);function p(e){let t=r.useContext(f);return e||t||"ltr"}var h=n("12536"),g=n("70653"),m=n("65340"),y=n("34890");let v=["top","right","bottom","left"],b=Math.min,w=Math.max,x=Math.round,O=Math.floor,E=e=>({x:e,y:e}),S={left:"right",right:"left",bottom:"top",top:"bottom"},C={start:"end",end:"start"};function R(e,t,n){return w(e,b(t,n))}function P(e,t){return"function"==typeof e?e(t):e}function k(e){return e.split("-")[0]}function j(e){return e.split("-")[1]}function T(e){return"x"===e?"y":"x"}function N(e){return"y"===e?"height":"width"}function L(e){return["top","bottom"].includes(k(e))?"y":"x"}function M(e){return T(L(e))}function A(e){return e.replace(/start|end/g,e=>C[e])}function D(e){return e.replace(/left|right|bottom|top/g,e=>S[e])}function I(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function _(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $(e,t,n){let r,{reference:o,floating:i}=e,a=L(t),s=T(L(t)),l=N(s),u=k(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(j(t)){case"start":r[s]-=p*(n&&c?-1:1);break;case"end":r[s]+=p*(n&&c?-1:1)}return r}let F=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=$(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:i,fn:g}=s[n],{x:m,y:y,data:v,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=$(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function W(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=P(t,e),h=I(p),g=s[f?"floating"===d?"reference":"floating":d],m=_(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=_(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function B(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return v.some(t=>e[t]>=0)}async function U(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=k(n),s=j(n),l="y"===L(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=P(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function H(){return"undefined"!=typeof window}function z(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function q(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return!!H()&&(e instanceof Node||e instanceof K(e).Node)}function J(e){return!!H()&&(e instanceof Element||e instanceof K(e).Element)}function Y(e){return!!H()&&(e instanceof HTMLElement||e instanceof K(e).HTMLElement)}function G(e){return!!H()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof K(e).ShadowRoot)}function Z(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=er(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Q(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ee(e){let t=et(),n=J(e)?er(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function et(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function en(e){return["html","body","#document"].includes(z(e))}function er(e){return K(e).getComputedStyle(e)}function eo(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ei(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||G(e)&&e.host||q(e);return G(t)?t.host:t}function ea(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ei(t);return en(n)?t.ownerDocument?t.ownerDocument.body:t.body:Y(n)&&Z(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=K(o);if(i){let e=es(a);return t.concat(a,a.visualViewport||[],Z(o)?o:[],e&&n?ea(e):[])}return t.concat(o,ea(o,[],n))}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function el(e){let t=er(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Y(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=x(n)!==i||x(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function eu(e){return J(e)?e:e.contextElement}function ec(e){let t=eu(e);if(!Y(t))return E(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=el(t),a=(i?x(n.width):n.width)/r,s=(i?x(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}let ed=E(0);function ef(e){let t=K(e);return et()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ed}function ep(e,t,n,r){var o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=eu(e),u=E(1);t&&(r?J(r)&&(u=ec(r)):u=ec(e));let c=(o=l,void 0===(i=n)&&(i=!1),(a=r)&&(!i||a===K(o))&&i)?ef(l):E(0),d=(s.left+c.x)/u.x,f=(s.top+c.y)/u.y,p=s.width/u.x,h=s.height/u.y;if(l){let e=K(l),t=r&&J(r)?K(r):r,n=e,o=es(n);for(;o&&r&&t!==n;){let e=ec(o),t=o.getBoundingClientRect(),r=er(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=i,f+=a,o=es(n=K(o))}}return _({width:p,height:h,x:d,y:f})}function eh(e,t){let n=eo(e).scrollLeft;return t?t.left+n:ep(q(e)).left+n}function eg(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:eh(e,r));return{x:o,y:r.top+t.scrollTop}}function em(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=K(e),r=q(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=et();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=q(e),n=eo(e),r=e.ownerDocument.body,o=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+eh(e),s=-n.scrollTop;return"rtl"===er(r).direction&&(a+=w(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(q(e));else if(J(t))r=function(e,t){let n=ep(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Y(e)?ec(e):E(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x;return{width:a,height:s,x:l,y:r*i.y}}(t,n);else{let n=ef(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _(r)}function ey(e){return"static"===er(e).position}function ev(e,t){if(!Y(e)||"fixed"===er(e).position)return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function eb(e,t){let n=K(e);if(Q(e))return n;if(!Y(e)){let t=ei(e);for(;t&&!en(t);){if(J(t)&&!ey(t))return t;t=ei(t)}return n}let r=ev(e,t);for(;r&&["table","td","th"].includes(z(r))&&ey(r);)r=ev(r,t);return r&&en(r)&&ey(r)&&!ee(r)?n:r||function(e){let t=ei(e);for(;Y(t)&&!en(t);){if(ee(t))return t;if(Q(t))break;t=ei(t)}return null}(e)||n}let ew=async function(e){let t=this.getOffsetParent||eb,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Y(t),o=q(t),i="fixed"===n,a=ep(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=E(0);if(r||!r&&!i){if(("body"!==z(t)||Z(o))&&(s=eo(t)),r){let e=ep(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=eh(o))}let u=!o||r||i?E(0):eg(o,s),c=a.left+s.scrollLeft-l.x-u.x;return{x:c,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=q(r),s=!!t&&Q(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=E(1),c=E(0),d=Y(r);if((d||!d&&!i)&&(("body"!==z(r)||Z(a))&&(l=eo(r)),Y(r))){let e=ep(r);u=ec(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?E(0):eg(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:q,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ea(e,[],!1).filter(e=>J(e)&&"body"!==z(e)),o=null,i="fixed"===er(e).position,a=i?ei(e):e;for(;J(a)&&!en(a);){let t=er(a),n=ee(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||Z(a)&&!n&&function e(t,n){let r=ei(t);return!(r===n||!J(r)||en(r))&&("fixed"===er(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=ei(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{let r=em(t,n,o);return e.top=w(r.top,e.top),e.right=b(r.right,e.right),e.bottom=b(r.bottom,e.bottom),e.left=w(r.left,e.left),e},em(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eb,getElementRects:ew,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=el(e);return{width:t,height:n}},getScale:ec,isElement:J,isRTL:function(e){return"rtl"===er(e).direction}},eO=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=P(e,t)||{};if(null==u)return{};let d=I(c),f={x:n,y:r},p=T(L(o)),h=N(p),g=await a.getDimensions(u),m="y"===p,y=m?"clientHeight":"clientWidth",v=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],O=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),E=O?O[y]:0;(!E||!await (null==a.isElement?void 0:a.isElement(O)))&&(E=s.floating[y]||i.floating[h]);let S=E/2-g[h]/2-1,C=b(d[m?"top":"left"],S),R=b(d[m?"bottom":"right"],S),k=E-g[h]-R,M=E/2-g[h]/2+(v/2-x/2),A=w(C,b(M,k)),D=!l.arrow&&null!=j(o)&&M!==A&&i.reference[h]/2-(M<C?C:R)-g[h]/2<0,_=D?M<C?M-C:M-k:0;return{[p]:f[p]+_,data:{[p]:A,centerOffset:M-A-_,...D&&{alignmentOffset:_}},reset:D}}}),eE=(e,t,n)=>{let r=new Map,o={platform:ex,...n},i={...o.platform,_c:r};return F(e,t,{...o,platform:i})};var eS=n("28316"),eC="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eR(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eR(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if("_owner"!==n||!e.$$typeof){if(!eR(e[n],t[n]))return!1}}return!0}return e!=e&&t!=t}function eP(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=eP(e);return Math.round(t*n)/n}function ej(e){let t=r.useRef(e);return eC(()=>{t.current=e}),t}let eT=e=>({name:"arrow",options:e,fn(t){var n;let{element:r,padding:o}="function"==typeof e?e(t):e;if(r&&(n=r,({}).hasOwnProperty.call(n,"current")))return null!=r.current?eO({element:r.current,padding:o}).fn(t):{};return r?eO({element:r,padding:o}).fn(t):{}}}),eN=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:s}=e,l=await U(e,n);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},eL=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=P(n,e),u={x:t,y:r},c=await W(e,l),d=L(k(o)),f=T(d),p=u[f],h=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=w(n,b(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=w(n,b(h,r))}let g=s.fn({...e,[f]:p,[d]:h});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[f]:i,[d]:a}}}}}),options:[e,t]}},eM=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=P(n,e),c={x:t,y:r},d=L(o),f=T(d),p=c[f],h=c[d],g=P(s,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;let e="y"===f?"width":"height",t=["top","left"].includes(k(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}),options:[e,t]}},eA=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=P(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let w=k(s),x=L(c),O=k(c)===c,E=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=g||(O||!v?[D(c)]:function(e){let t=D(e);return[A(e),t,A(t)]}(c)),C="none"!==y;!g&&C&&S.push(...function(e,t,n,r){let o=j(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(k(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(A)))),i}(c,v,y,E));let R=[c,...S],M=await W(e,b),I=[],_=(null==(r=l.flip)?void 0:r.overflows)||[];if(p&&I.push(M[w]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=j(e),o=T(L(e)),i=N(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=D(a)),[a,D(a)]}(s,u,E);I.push(M[e[0]],M[e[1]])}if(_=[..._,{placement:s,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=R[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(a=_.filter(e=>{if(C){let t=L(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eD=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:a,rects:s,platform:l,elements:u}=e,{apply:c=()=>{},...d}=P(n,e),f=await W(e,d),p=k(a),h=j(a),g="y"===L(a),{width:m,height:y}=s.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let v=y-f.top-f.bottom,x=m-f.left-f.right,O=b(y-f[o],v),E=b(m-f[i],x),S=!e.middlewareData.shift,C=O,R=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(R=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=v),S&&!h){let e=w(f.left,0),t=w(f.right,0),n=w(f.top,0),r=w(f.bottom,0);g?R=m-2*(0!==e||0!==t?e+t:w(f.left,f.right)):C=y-2*(0!==n||0!==r?n+r:w(f.top,f.bottom))}await c({...e,availableWidth:R,availableHeight:C});let T=await l.getDimensions(u.floating);return m!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eI=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=P(n,e);switch(r){case"referenceHidden":{let n=B(await W(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:V(n)}}}case"escaped":{let n=B(await W(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:V(n)}}}default:return{}}}}),options:[e,t]}},e_=(e,t)=>({...eT(e),options:[e,t]});var e$=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,u.jsx)(l.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e$.displayName="Arrow";var eF=n("64148"),eW=n("34896"),eB=n("65534"),eV="Popper",[eU,eH]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),a=n.length;function s(t){let{scope:n,children:o,...s}=t,l=n?.[e][a]||i,c=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(l.Provider,{value:c,children:o})}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e][a]||i,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(eV),[ez,eK]=eU(eV),eq=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,u.jsx)(ez,{scope:t,anchor:o,onAnchorChange:i,children:n})};eq.displayName=eV;var eX="PopperAnchor",eJ=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,s=eK(eX,n),c=r.useRef(null),d=(0,i.e)(t,c);return r.useEffect(()=>{s.onAnchorChange(o?.current||c.current)}),o?null:(0,u.jsx)(l.WV.div,{...a,ref:d})});eJ.displayName=eX;var eY="PopperContent",[eG,eZ]=eU(eY),eQ=r.forwardRef((e,t)=>{let{__scopePopper:n,side:o="bottom",sideOffset:a=0,align:s="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:g="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:v,...x}=e,E=eK(eY,n),[S,C]=r.useState(null),R=(0,i.e)(t,e=>C(e)),[P,k]=r.useState(null),j=(0,eB.t)(P),T=j?.width??0,N=j?.height??0,L="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},M=Array.isArray(p)?p:[p],A=M.length>0,D={padding:L,boundary:M.filter(e3),altBoundary:A},{refs:I,floatingStyles:_,placement:$,isPositioned:F,middlewareData:W}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);!eR(p,o)&&h(o);let[g,m]=r.useState(null),[y,v]=r.useState(null),b=r.useCallback(e=>{e!==E.current&&(E.current=e,m(e))},[]),w=r.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),x=a||g,O=s||y,E=r.useRef(null),S=r.useRef(null),C=r.useRef(d),R=null!=u,P=ej(u),k=ej(i),j=ej(c),T=r.useCallback(()=>{if(!E.current||!S.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),eE(E.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};N.current&&!eR(C.current,t)&&(C.current=t,eS.flushSync(()=>{f(t)}))})},[p,t,n,k,j]);eC(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let N=r.useRef(!1);eC(()=>(N.current=!0,()=>{N.current=!1}),[]),eC(()=>{if(x&&(E.current=x),O&&(S.current=O),x&&O){if(P.current)return P.current(x,O,T);T()}},[x,O,T,P,R]);let L=r.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:w}),[b,w]),M=r.useMemo(()=>({reference:x,floating:O}),[x,O]),A=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ek(M.floating,d.x),r=ek(M.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eP(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,M.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:T,refs:L,elements:M,floatingStyles:A}),[d,T,L,M,A])}({strategy:"fixed",placement:o+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eu(e),d=i||a?[...c?ea(c):[],...ea(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,o=q(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(!s&&t(),!d||!f)return;let p=O(c),h=O(o.clientWidth-(u+d)),g=O(o.clientHeight-(c+f)),m=O(u),y={rootMargin:-p+"px "+-h+"px "+-g+"px "+-m+"px",threshold:w(0,b(1,l))||1},v=!0;function x(e){let t=e[0].intersectionRatio;if(t!==l){if(!v)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{r=new IntersectionObserver(x,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,y)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let g=u?ep(e):null;return u&&function t(){let r=ep(e);g&&(r.x!==g.x||r.y!==g.y||r.width!==g.width||r.height!==g.height)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===y}),elements:{reference:E.anchor},middleware:[eN({mainAxis:a+N,alignmentAxis:c}),f&&eL({mainAxis:!0,crossAxis:!1,limiter:"partial"===g?eM():void 0,...D}),f&&eA({...D}),eD({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),P&&e_({element:P,padding:d}),e8({arrowWidth:T,arrowHeight:N}),m&&eI({strategy:"referenceHidden",...D})]}),[B,V]=e4($),U=(0,eF.W)(v);(0,eW.b)(()=>{F&&U?.()},[F,U]);let H=W.arrow?.x,z=W.arrow?.y,K=W.arrow?.centerOffset!==0,[X,J]=r.useState();return(0,eW.b)(()=>{S&&J(window.getComputedStyle(S).zIndex)},[S]),(0,u.jsx)("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:F?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(eG,{scope:n,placedSide:B,onArrowChange:k,arrowX:H,arrowY:z,shouldHideArrow:K,children:(0,u.jsx)(l.WV.div,{"data-side":B,"data-align":V,...x,ref:R,style:{...x.style,animation:F?void 0:"none"}})})})});eQ.displayName=eY;var e0="PopperArrow",e1={top:"bottom",right:"left",bottom:"top",left:"right"},e2=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eZ(e0,n),i=e1[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(e$,{...r,ref:t,style:{...r.style,display:"block"}})})});function e3(e){return null!==e}e2.displayName=e0;var e8=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=e4(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2,p="",h="";return"bottom"===l?(p=i?c:`${d}px`,h=`${-s}px`):"top"===l?(p=i?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=`${-s}px`,h=i?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}});function e4(e){let[t,n="center"]=e.split("-");return[t,n]}var e6=n("55827"),e5=n("42951"),e7="rovingFocusGroup.onEntryFocus",e9={bubbles:!1,cancelable:!0},te="RovingFocusGroup",[tt,tn,tr]=d(te),[to,ti]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),a=n.length;function s(t){let{scope:n,children:o,...s}=t,l=n?.[e][a]||i,c=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(l.Provider,{value:c,children:o})}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e][a]||i,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(te,[tr]),[ta,ts]=to(te),tl=r.forwardRef((e,t)=>(0,u.jsx)(tt.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(tt.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(tu,{...e,ref:t})})}));tl.displayName=te;var tu=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...v}=e,b=r.useRef(null),w=(0,i.e)(t,b),x=p(d),[O=null,E]=(0,s.T)({prop:f,defaultProp:h,onChange:g}),[S,C]=r.useState(!1),R=(0,eF.W)(m),P=tn(n),k=r.useRef(!1),[j,T]=r.useState(0);return r.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(e7,R),()=>e.removeEventListener(e7,R)},[R]),(0,u.jsx)(ta,{scope:n,orientation:a,dir:x,loop:c,currentTabStopId:O,onItemFocus:r.useCallback(e=>E(e),[E]),onItemShiftTab:r.useCallback(()=>C(!0),[]),onFocusableItemAdd:r.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>T(e=>e-1),[]),children:(0,u.jsx)(l.WV.div,{tabIndex:S||0===j?-1:0,"data-orientation":a,...v,ref:w,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{k.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(e7,e9);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable),t=e.find(e=>e.active);tp([t,e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),y)}}k.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>C(!1))})})}),tc="RovingFocusGroupItem",td=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,...c}=e,d=(0,y.M)(),f=s||d,p=ts(tc,n),h=p.currentTabStopId===f,g=tn(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=p;return r.useEffect(()=>{if(i)return m(),()=>v()},[i,m,v]),(0,u.jsx)(tt.ItemSlot,{scope:n,id:f,focusable:i,active:a,children:(0,u.jsx)(l.WV.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))){if(!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tf[o]}}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>tp(n))}})})})});td.displayName=tc;var tf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tp(e,t=!1){let n=document.activeElement;for(let r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var th=n("49732"),tg=n("82577"),tm=["Enter"," "],ty=["ArrowUp","PageDown","End"],tv=["ArrowDown","PageUp","Home",...ty],tb={ltr:[...tm,"ArrowRight"],rtl:[...tm,"ArrowLeft"]},tw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tx="Menu",[tO,tE,tS]=d(tx),[tC,tR]=(0,a.b)(tx,[tS,eH,ti]),tP=eH(),tk=ti(),[tj,tT]=tC(tx),[tN,tL]=tC(tx),tM=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:s=!0}=e,l=tP(t),[c,d]=r.useState(null),f=r.useRef(!1),h=(0,eF.W)(a),g=p(i);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,u.jsx)(eq,{...l,children:(0,u.jsx)(tj,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:d,children:(0,u.jsx)(tN,{scope:t,onClose:r.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:g,modal:s,children:o})})})};tM.displayName=tx;var tA=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tP(n);return(0,u.jsx)(eJ,{...o,...r,ref:t})});tA.displayName="MenuAnchor";var tD="MenuPortal",[tI,t_]=tC(tD,{forceMount:void 0}),t$=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tT(tD,t);return(0,u.jsx)(tI,{scope:t,forceMount:n,children:(0,u.jsx)(e5.z,{present:n||i.open,children:(0,u.jsx)(e6.h,{asChild:!0,container:o,children:r})})})};t$.displayName=tD;var tF="MenuContent",[tW,tB]=tC(tF),tV=r.forwardRef((e,t)=>{let n=t_(tF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tT(tF,e.__scopeMenu),a=tL(tF,e.__scopeMenu);return(0,u.jsx)(tO.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(e5.z,{present:r||i.open,children:(0,u.jsx)(tO.Slot,{scope:e.__scopeMenu,children:a.modal?(0,u.jsx)(tU,{...o,ref:t}):(0,u.jsx)(tH,{...o,ref:t})})})})}),tU=r.forwardRef((e,t)=>{let n=tT(tF,e.__scopeMenu),a=r.useRef(null),s=(0,i.e)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,th.Ry)(e)},[]),(0,u.jsx)(tz,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tH=r.forwardRef((e,t)=>{let n=tT(tF,e.__scopeMenu);return(0,u.jsx)(tz,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tz=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:y,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:w,onDismiss:x,disableOutsideScroll:O,...E}=e,S=tT(tF,n),C=tL(tF,n),R=tP(n),P=tk(n),k=tE(n),[j,T]=r.useState(null),N=r.useRef(null),L=(0,i.e)(t,N,S.onContentChange),M=r.useRef(0),A=r.useRef(""),D=r.useRef(0),I=r.useRef(null),_=r.useRef("right"),$=r.useRef(0),F=O?tg.Z:r.Fragment,W=O?{as:c.g7,allowPinchZoom:!0}:void 0,B=e=>{let t=A.current+e,n=k().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=function(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=(r=e,o=Math.max(a,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(s=s.filter(e=>e!==n));let l=s.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}(n.map(e=>e.textValue),t,o),a=n.find(e=>e.textValue===i)?.ref.current;!function e(t){A.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(t),a&&setTimeout(()=>a.focus())};r.useEffect(()=>()=>window.clearTimeout(M.current),[]),(0,g.EW)();let V=r.useCallback(e=>_.current===I.current?.side&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,I.current?.area),[]);return(0,u.jsx)(tW,{scope:n,searchRef:A,onItemEnter:r.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:r.useCallback(e=>{!V(e)&&(N.current?.focus(),T(null))},[V]),onTriggerLeave:r.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:D,onPointerGraceIntentChange:r.useCallback(e=>{I.current=e},[]),children:(0,u.jsx)(F,{...W,children:(0,u.jsx)(m.M,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.M)(l,e=>{e.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,u.jsx)(h.XB,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:y,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:w,onDismiss:x,children:(0,u.jsx)(tl,{asChild:!0,...P,dir:C.dir,orientation:"vertical",loop:a,currentTabStopId:j,onCurrentTabStopIdChange:T,onEntryFocus:(0,o.M)(p,e=>{!C.isUsingKeyboardRef.current&&e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,u.jsx)(eQ,{role:"menu","aria-orientation":"vertical","data-state":nl(S.open),"data-radix-menu-content":"",dir:C.dir,...R,...E,ref:L,style:{outline:"none",...E.style},onKeyDown:(0,o.M)(E.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&B(e.key));let o=N.current;if(e.target!==o||!tv.includes(e.key))return;e.preventDefault();let i=k().filter(e=>!e.disabled).map(e=>e.ref.current);ty.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)}),onBlur:(0,o.M)(e.onBlur,e=>{!e.currentTarget.contains(e.target)&&(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,nd(e=>{let t=e.target,n=$.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>$.current?"right":"left";_.current=t,$.current=e.clientX}}))})})})})})})});tV.displayName=tF;var tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(l.WV.div,{role:"group",...r,ref:t})});tK.displayName="MenuGroup";var tq=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(l.WV.div,{...r,ref:t})});tq.displayName="MenuLabel";var tX="MenuItem",tJ="menu.itemSelect",tY=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...s}=e,c=r.useRef(null),d=tL(tX,e.__scopeMenu),f=tB(tX,e.__scopeMenu),p=(0,i.e)(t,c),h=r.useRef(!1);return(0,u.jsx)(tG,{...s,ref:p,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(tJ,{bubbles:!0,cancelable:!0});e.addEventListener(tJ,e=>a?.(e),{once:!0}),(0,l.jH)(e,t),t.defaultPrevented?h.current=!1:d.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{!h.current&&e.currentTarget?.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!n&&(!t||" "!==e.key)&&tm.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tY.displayName=tX;var tG=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:s,...c}=e,d=tB(tX,n),f=tk(n),p=r.useRef(null),h=(0,i.e)(t,p),[g,m]=r.useState(!1),[y,v]=r.useState("");return r.useEffect(()=>{let e=p.current;e&&v((e.textContent??"").trim())},[c.children]),(0,u.jsx)(tO.ItemSlot,{scope:n,disabled:a,textValue:s??y,children:(0,u.jsx)(td,{asChild:!0,...f,focusable:!a,children:(0,u.jsx)(l.WV.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...c,ref:h,onPointerMove:(0,o.M)(e.onPointerMove,nd(e=>{a?d.onItemLeave(e):(d.onItemEnter(e),!e.defaultPrevented&&e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nd(e=>d.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>m(!0)),onBlur:(0,o.M)(e.onBlur,()=>m(!1))})})})}),tZ=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,u.jsx)(t6,{scope:e.__scopeMenu,checked:n,children:(0,u.jsx)(tY,{role:"menuitemcheckbox","aria-checked":nu(n)?"mixed":n,...i,ref:t,"data-state":nc(n),onSelect:(0,o.M)(i.onSelect,()=>r?.(!!nu(n)||!n),{checkForDefaultPrevented:!1})})})});tZ.displayName="MenuCheckboxItem";var tQ="MenuRadioGroup",[t0,t1]=tC(tQ,{value:void 0,onValueChange:()=>{}}),t2=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eF.W)(r);return(0,u.jsx)(t0,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,u.jsx)(tK,{...o,ref:t})})});t2.displayName=tQ;var t3="MenuRadioItem",t8=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=t1(t3,e.__scopeMenu),a=n===i.value;return(0,u.jsx)(t6,{scope:e.__scopeMenu,checked:a,children:(0,u.jsx)(tY,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nc(a),onSelect:(0,o.M)(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});t8.displayName=t3;var t4="MenuItemIndicator",[t6,t5]=tC(t4,{checked:!1}),t7=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=t5(t4,n);return(0,u.jsx)(e5.z,{present:r||nu(i.checked)||!0===i.checked,children:(0,u.jsx)(l.WV.span,{...o,ref:t,"data-state":nc(i.checked)})})});t7.displayName=t4;var t9=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(l.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});t9.displayName="MenuSeparator";var ne=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tP(n);return(0,u.jsx)(e2,{...o,...r,ref:t})});ne.displayName="MenuArrow";var nt="MenuSub",[nn,nr]=tC(nt);var no="MenuSubTrigger",ni=r.forwardRef((e,t)=>{let n=tT(no,e.__scopeMenu),a=tL(no,e.__scopeMenu),s=nr(no,e.__scopeMenu),l=tB(no,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=l,p={__scopeMenu:e.__scopeMenu},h=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>h,[h]),r.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,u.jsx)(tA,{asChild:!0,...p,children:(0,u.jsx)(tG,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":nl(n.open),...e,ref:(0,i.F)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),!e.disabled&&!t.defaultPrevented&&(t.currentTarget.focus(),!n.open&&n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,nd(t=>{l.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nd(e=>{h();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,o="right"===r,i=t[o?"left":"right"],a=t[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==l.searchRef.current;!e.disabled&&(!r||" "!==t.key)&&tb[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});ni.displayName=no;var na="MenuSubContent",ns=r.forwardRef((e,t)=>{let n=t_(tF,e.__scopeMenu),{forceMount:a=n.forceMount,...s}=e,l=tT(tF,e.__scopeMenu),c=tL(tF,e.__scopeMenu),d=nr(na,e.__scopeMenu),f=r.useRef(null),p=(0,i.e)(t,f);return(0,u.jsx)(tO.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(e5.z,{present:a||l.open,children:(0,u.jsx)(tO.Slot,{scope:e.__scopeMenu,children:(0,u.jsx)(tz,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tw[c.dir].includes(e.key);t&&n&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function nl(e){return e?"open":"closed"}function nu(e){return"indeterminate"===e}function nc(e){return nu(e)?"indeterminate":e?"checked":"unchecked"}ns.displayName=na;function nd(e){return t=>"mouse"===t.pointerType?e(t):void 0}var nf="DropdownMenu",[np,nh]=(0,a.b)(nf,[tR]),ng=tR(),[nm,ny]=np(nf),nv=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,d=ng(t),f=r.useRef(null),[p=!1,h]=(0,s.T)({prop:i,defaultProp:a,onChange:l});return(0,u.jsx)(nm,{scope:t,triggerId:(0,y.M)(),triggerRef:f,contentId:(0,y.M)(),open:p,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),modal:c,children:(0,u.jsx)(tM,{...d,open:p,onOpenChange:h,dir:o,modal:c,children:n})})};nv.displayName=nf;var nb="DropdownMenuTrigger",nw=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=ny(nb,n),c=ng(n);return(0,u.jsx)(tA,{asChild:!0,...c,children:(0,u.jsx)(l.WV.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.F)(t,s.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),!s.open&&e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nw.displayName=nb;var nx=e=>{let{__scopeDropdownMenu:t,...n}=e,r=ng(t);return(0,u.jsx)(t$,{...r,...n})};nx.displayName="DropdownMenuPortal";var nO="DropdownMenuContent",nE=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=ny(nO,n),s=ng(n),l=r.useRef(!1);return(0,u.jsx)(tV,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{!l.current&&a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nE.displayName=nO;r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(tK,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(tq,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var nS=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(tY,{...o,...r,ref:t})});nS.displayName="DropdownMenuItem";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(tZ,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(t2,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(t8,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(t7,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(t9,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(ne,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(ni,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger";r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=ng(n);return(0,u.jsx)(ns,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var nC=nv,nR=nw,nP=nx,nk=nE,nj=nS},70653:function(e,t,n){"use strict";n.d(t,{EW:function(){return i}});var r=n(2784),o=0;function i(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},65340:function(e,t,n){"use strict";n.d(t,{M:function(){return d}});var r=n(2784),o=n(59656),i=n(3436),a=n(64148),s=n(52322),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:m,onUnmountAutoFocus:y,...v}=e,[b,w]=r.useState(null),x=(0,a.W)(m),O=(0,a.W)(y),E=r.useRef(null),S=(0,o.e)(t,e=>w(e)),C=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(C.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:h(E.current,{select:!0})},t=function(e){if(C.paused||!b)return;let t=e.relatedTarget;null!==t&&!b.contains(t)&&h(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,b,C.paused]),r.useEffect(()=>{if(b){g.add(C);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,x),b.dispatchEvent(t),!t.defaultPrevented&&(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(function(e){return e.filter(e=>"A"!==e.tagName)}(f(b)),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,O),b.dispatchEvent(t),!t.defaultPrevented&&h(e??document.body,{select:!0}),b.removeEventListener(u,O),g.remove(C)},0)}}},[b,x,O,C]);let R=r.useCallback(e=>{if(!n&&!d||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e),n=p(t,e);return[n,p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,C.paused]);return(0,s.jsx)(i.WV.div,{tabIndex:-1,...v,ref:S,onKeyDown:R})});d.displayName="FocusScope";function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;if(e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t)e.select()}}var g=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=m(e,t)).unshift(t)},remove(t){e=m(e,t),e[0]?.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},34890:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,o=n(2784),i=n(34896),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{!e&&n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},55827:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(2784),o=n(28316),i=n(3436),a=n(34896),s=n(52322),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[u,c]=r.useState(!1);(0,a.b)(()=>c(!0),[]);let d=n||u&&globalThis?.document?.body;return d?o.createPortal((0,s.jsx)(i.WV.div,{...l,ref:t}),d):null});l.displayName="Portal"},42951:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(2784),o=n(59656),i=n(34896),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[o,a]=r.useState(),l=r.useRef({}),u=r.useRef(e),c=r.useRef("none");let[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,o=s(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.b)(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,n=n=>{let r=s(l.current).includes(n.animationName);if(n.target===o&&r&&(f("ANIMATION_END"),!u.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(c.current=s(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(t),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),u=(0,o.e)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||a.isPresent?r.cloneElement(l,{ref:u}):null};a.displayName="Presence";function s(e){return e?.animationName||"none"}},3436:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(2784),o=n(28316),i=n(33883),a=n(52322),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,s=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},33883:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(2784),o=n(59656),i=n(52322),a=r.forwardRef((e,t)=>{let{children:n,...o}=e,a=r.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(s,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,i.jsx)(s,{...o,ref:t,children:n})});a.displayName="Slot";var s=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props),ref:t?(0,o.F)(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===l}},64148:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(2784);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},69153:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(2784),o=n(64148);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,a=r.useRef(i),s=(0,o.W)(t);return r.useEffect(()=>{a.current!==i&&(s(i),a.current=i)},[i,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i,u=(0,o.W)(n);return[l,r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u])]}},34896:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(2784),o=globalThis?.document?r.useLayoutEffect:()=>{}},65534:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(2784),o=n(34896);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},93407:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{_:function(){return r}})},11690:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>T});var o,i,a,s,l,u,c=[];function d(){return"function"==typeof XMLHttpRequest||("undefined"==typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))==="object"}var f=n("32315"),p=n.t(f,2);function h(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof fetch&&(s="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),d()&&("undefined"!=typeof global&&global.XMLHttpRequest?l=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(l=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?u=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(u=window.ActiveXObject)),!s&&p&&!l&&!u&&(s=f||p),"function"!=typeof s&&(s=void 0);var y=function(e,t){if(t&&"object"===m(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},v=function(e,t,n,r){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(r){var i=r(e,t);if(i instanceof Promise){i.then(o).catch(n);return}}"function"==typeof fetch?fetch(e,t).then(o).catch(n):s(e,t).then(o).catch(n)},b=!1,w=function(e,t,n,r){e.queryStringParams&&(t=y(t,e.queryStringParams));var o=g({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=g({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},b?{}:i),s="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{v(t,a,r,s)}catch(e){if(!i||0===Object.keys(i).length||!e.message||0>e.message.indexOf("not implemented"))return r(e);try{Object.keys(i).forEach(function(e){delete a[e]}),v(t,a,r,s),b=!0}catch(e){r(e)}}},x=function(e,t,n,r){n&&"object"===m(n)&&(n=y("",n).slice(1)),e.queryStringParams&&(t=y(t,e.queryStringParams));try{(o=l?new l:new u("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),!e.crossDomain&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,i=e.customHeaders;if(i="function"==typeof i?i():i)for(var a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}};let O=function(e,t,n,r){return("function"==typeof n&&(r=n,n=void 0),r=r||function(){},s&&0!==t.indexOf("file:"))?w(e,t,n,r):d()||"function"==typeof ActiveXObject?x(e,t,n,r):void r(Error("No fetch and no xhr implementation found!"))};function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(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 C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}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,k(r.key),r)}}function P(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}var j=(o=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)},i=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=C(C(C({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return P({},t,n||"")},parseLoadPayload:function(e,t){},request:O,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var o=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===E(o)&&"function"==typeof o.unref&&o.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,a,s=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,n)),(l=(a=i=l)&&"function"==typeof a.then?i:Promise.resolve(i)).then(function(i){if(!i)return o(null,{});var a=s.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});s.loadUrl(a,o,t,r)})}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i="string"==typeof n?[n]:n,a="string"==typeof r?[r]:r,s=this.options.parseLoadPayload(i,a);this.options.request(this.options,e,s,function(i,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&i&&i.message){var s,l,u=i.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return u.indexOf(e)>-1}))return t("failed loading "+e+": "+i.message,!0)}if(i)return t(i,!1);try{s="string"==typeof a.data?o.options.parse(a.data,n,r):a.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)})}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,l=[],u=[];e.forEach(function(n){var r=i.options.addPath;"function"==typeof i.options.addPath&&(r=i.options.addPath(n,t));var c=i.services.interpolator.interpolate(r,{lng:n,ns:t});i.options.request(i.options,c,a,function(t,n){s+=1,l.push(t),u.push(n),s===e.length&&"function"==typeof o&&o(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){0>a.indexOf(e)&&a.push(e)})};s(i),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),a.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)})})})}}}],R(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o);j.type="backend";let T=j},1347:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ee}});let r=e=>"string"==typeof e,o=()=>{let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},i=e=>null==e?"":""+e,a=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},s=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,u=e=>!e||r(e),c=(e,t,n)=>{let o=r(t)?t.split("."):t,i=0;for(;i<o.length-1;){if(u(e))return{};let t=l(o[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return u(e)?{}:{obj:e,k:l(o[i])}},d=(e,t,n)=>{let{obj:r,k:o}=c(e,t,Object);if(void 0!==r||1===t.length){r[o]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=c(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,(s=c(e,a=a.slice(0,a.length-1),Object))&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},f=(e,t,n,r)=>{let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],o[i].push(n)},p=(e,t)=>{let{obj:n,k:r}=c(e,t);if(n)return n[r]},h=(e,t,n)=>{let r=p(e,n);return void 0!==r?r:p(t,n)},g=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?r(e[o])||e[o]instanceof String||r(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):g(e[o],t[o],n):e[o]=t[o]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let v=e=>r(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e,b=[" ",",","?","!",";"],w=new class e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),x=(e,t,n)=>{t=t||"",n=n||"";let r=b.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=w.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i},O=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;e<r.length;){let t;if(!o||"object"!=typeof o)return;let i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],void 0!==(t=o[i])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o},E=e=>e&&e.replace("_","-"),S={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(r(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new C(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new C(this.logger,e)}}var R=new C;class P{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{!this.observers[e]&&(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let t=0;t<o;t++)r.apply(r,[e,...n])})}}class k extends P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):r(n)&&a?o.push(...n.split(a)):o.push(n)));let l=p(this.data,o);return(!l&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!l&&s&&r(n))?O(this.data&&this.data[e]&&this.data[e][t],n,a):l}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),d(this.data,a,r),!o.silent&&this.emit("added",e,t,n,r)}addResources(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let o in n)(r(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});!o.silent&&this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=p(this.data,a)||{};!i.skipCopy&&(n=JSON.parse(JSON.stringify(n))),r?g(s,n,o):s={...s,...n},d(this.data,a,s),!i.silent&&this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(!t&&(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var j={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let T={};class N extends P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),a(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=R.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!x(e,n,o);if(a&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:r(i)?[i]:i};let a=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(o)}return{key:e,namespaces:r(i)?[i]:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),!t&&(t={}),null==e)return"";!Array.isArray(e)&&(e=[String(e)]);let o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],t),l=s[s.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${e}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}let d=this.resolve(e,t),f=d&&d.res,p=d&&d.usedKey||a,h=d&&d.exactUsedKey||a,g=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!r(f)&&"boolean"!=typeof f&&"number"!=typeof f;if(y&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&!(r(m)&&Array.isArray(f))){if(!t.returnObjects&&!this.options.returnObjects){!this.options.returnedObjectHandler&&this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...t,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(t),d):e}if(i){let e=Array.isArray(f),n=e?[]:{},r=e?h:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),n[e]===o&&(n[e]=f[e])}f=n}}else if(y&&r(m)&&Array.isArray(f))(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let o=!1,s=!1,c=void 0!==t.count&&!r(t.count),p=N.hasDefaultValue(t),h=c?this.pluralResolver.getSuffix(u,t.count,t):"",g=t.ordinal&&c?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${g}`]||t.defaultValue;!this.isValidLookup(f)&&p&&(o=!0,f=y),!this.isValidLookup(f)&&(s=!0,f=a);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,b=p&&y!==f&&this.options.updateMissing;if(s||o||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,a,b?y:f),i){let e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let r=(e,n,r)=>{let o=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,b,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{let n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>n.indexOf(`${this.options.pluralSeparator}zero`)&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],a+n,t[`defaultValue${n}`]||y)})}):r(e,a,y))}f=this.extendTranslation(f,e,t,d,n),s&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(s||o)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,o?f:void 0):this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(t),d):f}extendTranslation(e,t,n,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let s;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l=r(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=n.replace&&!r(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,n.lng||this.language||o.usedLng,n),l){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):a.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}let s=n.postProcess||this.options.postProcess,l=r(s)?[s]:s;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=j.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,s),u=l.key;n=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==s.count&&!r(s.count),f=d&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&(r(s.context)||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach(e=>{!this.isValidLookup(t)&&(a=e,!T[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(T[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(n=>{let r;if(this.isValidLookup(t))return;i=n;let a=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,n,e,s);else{let e;d&&(e=this.pluralResolver.getSuffix(n,s.count,s));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(a.push(u+e),s.ordinal&&0===e.indexOf(r)&&a.push(u+e.replace(r,this.options.pluralSeparator)),f&&a.push(u+t)),p){let n=`${u}${this.options.contextSeparator}${s.context}`;a.push(n),d&&(a.push(n+e),s.ordinal&&0===e.indexOf(r)&&a.push(n+e.replace(r,this.options.pluralSeparator)),f&&a.push(n+t))}}for(;r=a.pop();)!this.isValidLookup(t)&&(o=r,t=this.getResource(n,e,r,s))}))})}),{res:t,usedKey:n,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!r(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}let L=e=>e.charAt(0).toUpperCase()+e.slice(1);class M{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=R.create("languageUtils")}getScriptPartFromCode(e){if(!(e=E(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=E(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(r(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),!t&&(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),r(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return!n&&(n=e[this.getScriptPartFromCode(t)]),!n&&(n=e[this.formatLanguageCode(t)]),!n&&(n=e[this.getLanguagePartFromCode(t)]),!n&&(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return r(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):r(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{0>o.indexOf(e)&&i(this.formatLanguageCode(e))}),o}}let A=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},I=["v1","v2","v3"],_=["v4"],$={zero:0,one:1,two:2,few:3,many:4,other:5},F=()=>{let e={};return A.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:D[t.fc]}})}),e};class W{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=R.create("pluralResolver"),(!this.options.compatibilityJSON||_.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=F(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{let n=E("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i=new Intl.PluralRules(n,{type:r});return this.pluralRulesCache[o]=i,i}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>$[e]-$[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);if(r)return this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t);return this.logger.warn(`no plural rule found for: ${e}`),""}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();if("v1"===this.options.compatibilityJSON)return 1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o();if("v2"===this.options.compatibilityJSON)return o();if(this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0])return o();return this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!I.includes(this.options.compatibilityJSON)}}let B=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=h(e,t,n);return!a&&i&&r(n)&&void 0===(a=O(e,n,o))&&(a=O(t,n,o)),a},V=e=>e.replace(/\$/g,"$$$$");class U{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=R.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!e.interpolation&&(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?m(o):i||"{{",this.suffix=a?m(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?m(d):f||m("$t("),this.nestingSuffix=p?m(p):h||m(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let a,s,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let r=B(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),i=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(B(t,u,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:i})};this.resetRegExp();let d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>V(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?V(this.escape(e)):V(e)}].forEach(t=>{for(l=0;a=t.regex.exec(e);){let n=a[1].trim();if(void 0===(s=c(n))){if("function"==typeof d){let t=d(e,a,o);s=r(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),s=""}else!r(s)&&!this.useRawValueToEscape&&(s=i(s));let u=t.safeValue(s);if(e=e.replace(a[0],u),f?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let n,o,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),o=`{${r[1]}`;e=r[0];let i=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let u=[];(a=(a={...s}).replace&&!r(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),u=e,c=!0}if((o=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&!r(o))return o;!r(o)&&(o=i(o)),!o&&(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),o=""),c&&(o=u.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:n[1].trim()}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}let H=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);"currency"===t&&0>o.indexOf(":")?!n.currency&&(n.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?!n.range&&(n.range=o.trim()):o.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();!n[i]&&(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),!isNaN(o)&&(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}},z=e=>{let t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});let a=r+JSON.stringify(i),s=t[a];return!s&&(s=e(E(r),o),t[a]=s),s(n)}};class K{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=R.create("formatter"),this.options=e,this.formats={number:z((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:z((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:z((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:z((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:z((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=z(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&0>o[0].indexOf(")")&&o.find(e=>e.indexOf(")")>-1)){let e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=H(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}let q=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class X extends P{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=R.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),!r&&(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{f(n.loaded,[o],i),q(n,e),t&&n.errors.push(t),0===n.pendingCount&&!n.done&&(Object.keys(n.loaded).forEach(e=>{!a[e]&&(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();r(e)&&(e=this.languageUtils.toResolveHierarchy(e)),r(t)&&(t=[t]);let i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return!i.pending.length&&o(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,n,r,s):l(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}let J=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),r(e[1])&&(t.defaultValue=e[1]),r(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Y=e=>(r(e.ns)&&(e.ns=[e.ns]),r(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),r(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),G=()=>{},Z=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class Q extends P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Y(e),this.services={},this.logger=R,this.modules={external:[]},Z(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(r(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let i=J();this.options={...i,...this.options,...Y(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?R.init(a(this.modules.logger),this.options):R.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=K);let n=new M(this.options);this.store=new k(this.options.resources,this.options);let r=this.services;r.logger=R,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new W(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(r.formatter=a(t),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new U(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new X(a(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(r.languageDetector=a(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=a(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new N(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,!n&&(n=G),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=o(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,!this.options.isClone&&this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,n=t,o=r(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!!t&&"cimode"!==t)this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=o();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),!e&&(e=this.languages),!t&&(t=this.options.ns),!n&&(n=G),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&j.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!!e&&!!this.languages){if(!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let i=o();this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,r)=>{r?(a(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},l=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=r(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(!this.language&&a(n),!this.translator.language&&this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{s(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),i}getFixedT(e,t,n){var o=this;let i=function(e,t){let r,a;if("object"!=typeof t){for(var s=arguments.length,l=Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];r=o.options.overloadTranslationOptionHandler([e,t].concat(l))}else r={...t};r.lng=r.lng||i.lng,r.lngs=r.lngs||i.lngs,r.ns=r.ns||i.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||n||i.keyPrefix);let c=o.options.keySeparator||".";return a=r.keyPrefix&&Array.isArray(e)?e.map(e=>`${r.keyPrefix}${c}${e}`):r.keyPrefix?`${r.keyPrefix}${c}${e}`:e,o.t(a,r)};return r(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))||!1}loadNamespaces(e,t){let n=o();return this.options.ns?(r(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=o();r(e)&&(e=[e]);let i=this.options.preload||[],a=e.filter(e=>0>i.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=i.concat(a),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){return(!e&&(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new M(J())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Q(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new Q(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new k(this.store.data,r),o.services.resourceStore=o.store),o.translator=new N(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let ee=Q.createInstance();ee.createInstance=Q.createInstance,ee.createInstance,ee.dir,ee.init,ee.loadResources,ee.reloadResources,ee.use,ee.changeLanguage,ee.getFixedT,ee.t,ee.exists,ee.setDefaultNamespace,ee.hasLoadedNamespace,ee.loadNamespaces,ee.loadLanguages},59382:function(e,t,n){"use strict";let r;n.d(t,{cC:()=>W,Db:()=>_,$G:()=>H});var o=n("2784"),i=n("64896"),a=n.n(i),s=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(a()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(s),i=null;null!==(i=o.exec(e));)if(i[0].trim()){if(i[1]){var l=i[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1))}return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,d=Object.create(null);let f={parse:function(e,t){t||(t={}),t.components||(t.components=d);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(u,function(s,u){if(a){if(s!=="</"+n.name+">")return;a=!1}var d,f="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=u+s.length,g=e.charAt(h);if(p){var m=l(s);return i<0?r.push(m):(d=o[i]).children.push(m),r}if(f&&(i++,"tag"===(n=l(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!g||"<"===g||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&r.push(n),(d=o[i-1])&&d.children.push(n),o[i]=n),(!f||n.voidElement)&&(i>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(n=-1==--i?r:o[i]),!a&&"<"!==g&&g)){d=-1===i?r:o[i].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);c.test(v)&&(v=" "),(y>-1&&i+d.length>=0||" "!==v)&&d.push({type:"text",content:v})}}),r}},p=(...e)=>{console?.warn&&(w(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},h={},g=(...e)=>{(!w(e[0])||!h[e[0]])&&(w(e[0])&&(h[e[0]]=new Date),p(...e))},m=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},y=(e,t,n)=>{e.loadNamespaces(t,m(e,n))},v=(e,t,n,r)=>{if(w(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return y(e,n,r);n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,m(e,r))},b=(e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(g("i18n.languages were undefined or empty",t.languages),!0),w=e=>"string"==typeof e,x=e=>"object"==typeof e&&null!==e,O=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,E={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},S=e=>E[e],C={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(O,S)},R=(e={})=>{C={...C,...e}},P=()=>C,k=e=>{r=e},j=()=>r,T=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},N=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?M(t):t},L=e=>Array.isArray(e)&&e.every(o.isValidElement),M=e=>Array.isArray(e)?e:[e],A=(e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n},D=(e,t)=>{if(!e)return"";let n="",r=M(e),i=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return r.forEach((e,r)=>{if(w(e))n+=`${e}`;else if((0,o.isValidElement)(e)){let{props:o,type:a}=e,s=Object.keys(o).length,l=i.indexOf(a)>-1,u=o.children;if(u||!l||s){if(!u&&(!l||s)||o.i18nIsDynamicList)n+=`<${r}></${r}>`;else if(l&&1===s&&w(u))n+=`<${a}>${u}</${a}>`;else{let e=D(u,t);n+=`<${r}>${e}</${r}>`}}else n+=`<${a}/>`}else if(null===e)p("Trans: the passed in value is invalid - seems you passed in a null child.");else if(x(e)){let{format:t,...r}=e,o=Object.keys(r);if(1===o.length){let e=t?`${o[0]}, ${t}`:o[0];n+=`{{${e}}}`}else p("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else p("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),n},I=(e,t,n,r,i,a)=>{if(""===t)return[];let s=r.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(s.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!a)return[t];let u={},c=e=>{M(e).forEach(e=>{!w(e)&&(T(e)?c(N(e)):x(e)&&!(0,o.isValidElement)(e)&&Object.assign(u,e))})};c(e);let d=f.parse(`<0>${t}</0>`),p={...u,...i},h=(e,t,n)=>{let r=N(e),o=m(r,t.children,n);return L(r)&&0===o.length||e.props?.i18nIsDynamicList?r:o},g=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,o.cloneElement)(e,{key:r},i?void 0:t))):n.push(...o.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,o.createElement)(e.type,{...n,key:r,ref:e.ref},i?null:t)}))},m=(t,i,u)=>{let c=M(t);return M(i).reduce((t,i,d)=>{let f=i.children?.[0]?.content&&n.services.interpolator.interpolate(i.children[0].content,p,n.language);if("tag"===i.type){let a=c[parseInt(i.name,10)];1===u.length&&!a&&(a=u[0][i.name]),!a&&(a={});let y=0!==Object.keys(i.attrs).length?A({props:i.attrs},a):a,v=(0,o.isValidElement)(y),b=v&&T(i,!0)&&!i.voidElement,O=l&&x(y)&&y.dummy&&!v,E=x(e)&&Object.hasOwnProperty.call(e,i.name);if(w(y)){let e=n.services.interpolator.interpolate(y,p,n.language);t.push(e)}else if(T(y)||b){let e=h(y,i,u);g(y,e,t,d)}else if(O)g(y,m(c,i.children,u),t,d);else if(Number.isNaN(parseFloat(i.name))){if(E){let e=h(y,i,u);g(y,e,t,d,i.voidElement)}else if(r.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1){if(i.voidElement)t.push((0,o.createElement)(i.name,{key:`${i.name}-${d}`}));else{let e=m(c,i.children,u);t.push((0,o.createElement)(i.name,{key:`${i.name}-${d}`},e))}}else if(i.voidElement)t.push(`<${i.name} />`);else{let e=m(c,i.children,u);t.push(`<${i.name}>${e}</${i.name}>`)}}else if(x(y)&&!v){let e=i.children[0]?f:null;e&&t.push(e)}else g(y,f,t,d,1!==i.children.length||!f)}else if("text"===i.type){let e=r.transWrapTextNodes,s=a?r.unescape(n.services.interpolator.interpolate(i.content,p,n.language)):n.services.interpolator.interpolate(i.content,p,n.language);e?t.push((0,o.createElement)(e,{key:`${i.name}-${d}`},s)):t.push(s)}return t},[])};return N(m([{dummy:!0,children:e||[]}],d,M(e||[]))[0])},_={type:"3rdParty",init(e){R(e.options.react),k(e)}},$=(0,o.createContext)();class F{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{!this.usedNamespaces[e]&&(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function W({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:s,defaults:l,components:u,ns:c,i18n:d,t:f,shouldUnescape:p,...h}){let{i18n:m,defaultNS:y}=(0,o.useContext)($)||{},v=d||m||j(),b=f||v?.t.bind(v);return function({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:s,defaults:l,components:u,ns:c,i18n:d,t:f,shouldUnescape:p,...h}){let m=d||j();if(!m)return g("You will need to pass in an i18next instance by using i18nextReactModule"),e;let y=f||m.t.bind(m)||(e=>e),v={...P(),...m.options?.react},b=c||y.ns||m.options?.defaultNS;b=w(b)?[b]:b||["translation"];let x=D(e,v),O=l||x||v.transEmptyNodeValue||r,{hashTransKey:E}=v,S=r||(E?E(x||O):x||O);m.options?.interpolation?.defaultVariables&&(s=s&&Object.keys(s).length>0?{...s,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables});let C=!s&&(void 0===t||m.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}}:a.interpolation,R={...a,context:i||a.context,count:t,...s,...C,defaultValue:O,ns:b},k=S?y(S,R):O;u&&Object.keys(u).forEach(e=>{!u[e].key&&(u[e]=(0,o.cloneElement)(u[e],{key:e}));let t=u[e];!("function"==typeof t.type||!t.props||!t.props.children||0>k.indexOf(`${e}/>`)&&0>k.indexOf(`${e} />`))&&(u[e]=(0,o.createElement)(function(){return(0,o.createElement)(o.Fragment,null,t)}))});let T=I(u||e,k,m,v,R,p),N=n??v.defaultTransParent;return N?(0,o.createElement)(N,h,T):T}({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a,values:s,defaults:l,components:u,ns:c||b?.ns||y||v?.options?.defaultNS,i18n:v,t:f,shouldUnescape:p,...h})}let B=(e,t)=>{let n=(0,o.useRef)();return(0,o.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current},V=(e,t,n,r)=>e.getFixedT(t,n,r),U=(e,t,n,r)=>(0,o.useCallback)(V(e,t,n,r),[e,t,n,r]),H=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,o.useContext)($)||{},a=n||r||j();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new F),!a){g("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>w(t)?t:x(t)&&w(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&g("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let s={...P(),...a.options.react,...t},{useSuspense:l,keyPrefix:u}=s,c=e||i||a.options?.defaultNS;c=w(c)?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces?.(c);let d=(a.isInitialized||a.initializedStoreOnce)&&c.every(e=>b(e,a,s)),f=U(a,t.lng||null,"fallback"===s.nsMode?c:c[0],u),p=()=>f,h=()=>V(a,t.lng||null,"fallback"===s.nsMode?c:c[0],u),[m,O]=(0,o.useState)(p),E=c.join();t.lng&&(E=`${t.lng}${E}`);let S=B(E),C=(0,o.useRef)(!0);(0,o.useEffect)(()=>{let{bindI18n:e,bindI18nStore:n}=s;C.current=!0,!d&&!l&&(t.lng?v(a,t.lng,c,()=>{C.current&&O(h)}):y(a,c,()=>{C.current&&O(h)})),d&&S&&S!==E&&C.current&&O(h);let r=()=>{C.current&&O(h)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{C.current=!1,a&&e?.split(" ").forEach(e=>a.off(e,r)),n&&a&&n.split(" ").forEach(e=>a.store.off(e,r))}},[a,E]),(0,o.useEffect)(()=>{C.current&&d&&O(p)},[a,u,d]);let R=[m,a,d];if(R.t=m,R.i18n=a,R.ready=d,d||!d&&!l)return R;throw new Promise(e=>{t.lng?v(a,t.lng,c,()=>e()):y(a,c,()=>e())})}},44965:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r="Invariant failed";function o(e,t){var n;if(!e)throw Error(r)}},9210:function(e,t,n){"use strict";n.d(t,{Ue:()=>f});let r=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},o=e=>e?r(e):r;var i=n("2784"),a=n("41110");let{useDebugValue:s}=i,{useSyncExternalStoreWithSelector:l}=a,u=!1,c=e=>e,d=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?o(e):e,n=(e,n)=>(function(e,t=c,n){n&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let r=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r})(t,e,n);return Object.assign(n,t),n},f=e=>e?d(e):d},85330:function(e,t,n){"use strict";n.d(t,{tJ:function(){return a}});let r=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>r(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},o=(e,t)=>(n,o,i)=>{let a,s,l={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,d=new Set;try{a=l.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...e)},o,i);let f=r(l.serialize),p=()=>{let e;let t=f({state:l.partialize({...o()}),version:l.version}).then(e=>a.setItem(l.name,e)).catch(t=>{e=t});if(e)throw e;return t},h=i.setState;i.setState=(e,t)=>{h(e,t),p()};let g=e((...e)=>{n(...e),p()},o,i),m=()=>{var e;if(!a)return;u=!1,c.forEach(e=>e(o()));let t=(null==(e=l.onRehydrateStorage)?void 0:e.call(l,o()))||void 0;return r(a.getItem.bind(a))(l.name).then(e=>{if(e)return l.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===l.version)return e.state;if(l.migrate)return l.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(s=l.merge(e,null!=(t=o())?t:g),!0),p()}).then(()=>{null==t||t(s,void 0),u=!0,d.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{l={...l,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),s||g},i=(e,t)=>(n,o,i)=>{let a,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=n.getItem(e))?t:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,u=new Set,c=new Set,d=s.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},o,i);let f=()=>{let e=s.partialize({...o()});return d.setItem(s.name,{state:e,version:s.version})},p=i.setState;i.setState=(e,t)=>{p(e,t),f()};let h=e((...e)=>{n(...e),f()},o,i);i.getInitialState=()=>h;let g=()=>{var e,t;if(!d)return;l=!1,u.forEach(e=>{var t;return e(null!=(t=o())?t:h)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=o())?e:h))||void 0;return r(d.getItem.bind(d))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];if(s.migrate)return[!0,s.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[r,i]=e;if(n(a=s.merge(i,null!=(t=o())?t:h),!0),r)return f()}).then(()=>{null==i||i(a,void 0),a=o(),l=!0,c.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>l,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},!s.skipHydration&&g(),a||h},a=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),o(e,t)):i(e,t)}}]);