@tolgee/web 5.15.0 → 5.16.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.
@@ -1,4 +1,4 @@
1
- function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function t(e){return Boolean(e&&"function"==typeof e.then)}function n(e,n){return t(e)?Promise.resolve(e).then(n):n(e)}function r(e){const t=(Array.isArray(e)?e:[e]).map((e=>`'${e}'`)),n=t.slice(-2).join(" or ");return`Tolgee: You need to specify ${[...t.slice(0,-2),n].join(", ")} option`}function o(e){return"string"==typeof e?[e]:Array.isArray(e)?e:void 0}function a(e){return o(e)||[]}function i(e,t){return"object"!=typeof(n=t)||Array.isArray(n)||null===n?a(t):a(null==t?void 0:t[e]);var n}function l(e){return Array.from(new Set(e))}function s(e){return e?e.replace(/\/+$/,""):e}const u=(e,t)=>fetch(e,t),c=(e=u)=>(t,n)=>e(t,Object.assign(Object.assign({},n),{headers:Object.assign({"X-Tolgee-SDK-Type":"JS","X-Tolgee-SDK-Version":"5.15.0"},null==n?void 0:n.headers)}));function d(e){let t=[];return Object.freeze({listen(e){const n=t=>{e(t)};return t.push(n),{unsubscribe(){t=t.filter((e=>n!==e))}}},emit(n){e()&&t.forEach((e=>e({value:n})))}})}function p(e,t,n){const r=new Set,o=new Set;let i=[];function l(){if(0===i.length)return;const e=i;i=[],r.forEach((e=>{e({value:void 0})}));let n=new Set;e.forEach((e=>{void 0===e?n=void 0:void 0!==n&&e.forEach((e=>n.add(e)))}));!function(e){const n=new Set(t());o.forEach((t=>{(void 0===e||-1!==(null==e?void 0:e.findIndex((e=>n.has(e)||t.namespaces.has(e)))))&&t.fn({value:void 0})}))}(n?Array.from(n.keys()):void 0)}return Object.freeze({emit(t,n){e()&&(i.push(t),n?setTimeout(l,0):l())},listen(e){r.add(e);return{unsubscribe:()=>{r.delete(e)}}},listenSome(e){const t={fn:t=>{e(t)},namespaces:new Set};o.add(t);const r={unsubscribe:()=>{o.delete(t)},subscribeNs:e=>(a(e).forEach((e=>t.namespaces.add(e))),void 0===e&&t.namespaces.add(n()),r)};return r}})}const f=e=>{const t=new Map;return Object.entries(e).forEach((([e,n])=>{null!=n&&("object"!=typeof n?t.set(e,n):f(n).forEach(((n,r)=>{t.set(e+"."+r,n)})))})),t},h=e=>{const[t,...n]=e.split(":");return{language:t,namespace:n.join(":")||""}},m=({language:e,namespace:t})=>t?`${e}:${t}`:e;function g(e,t,n,r,o,i,s){const u=new Map,c=new Map;let d={},p=0;function g(t,n,r){const o=m(t);c.set(o,{data:f(n),version:r}),e.emit(t)}function v(e){let n;if(!n){const t=d[m(e)];"function"==typeof t&&(n=t())}return n||(n=t(e)),n}const y=Object.freeze({addStaticData(e){e&&(d=Object.assign(Object.assign({},d),e),Object.entries(e).forEach((([e,t])=>{if("function"!=typeof t){const n=h(e),r=c.get(e);r&&0!==r.version||g(n,t,0)}})))},invalidate(){u.clear(),p+=1},addRecord(e,t){g(e,t,p)},exists(e,t=!1){const n=c.get(m(e));return n&&t?n.version===p:Boolean(n)},getRecord(e){var t;return null===(t=c.get(m(r(e))))||void 0===t?void 0:t.data},getTranslation(e,t){var n;return null===(n=c.get(m(e)))||void 0===n?void 0:n.data.get(t)},getTranslationNs(e,t,n){var r;for(const o of e)for(const e of t){const t=null===(r=c.get(m({language:e,namespace:o})))||void 0===r?void 0:r.data.get(n);if(null!=t)return[o]}return l(e)},getTranslationFallback(e,t,n){var r;for(const o of e)for(const e of t){const t=null===(r=c.get(m({language:e,namespace:o})))||void 0===r?void 0:r.data.get(n);if(null!=t)return t}},changeTranslation(t,n,r){var o;const a=null===(o=c.get(m(t)))||void 0===o?void 0:o.data;null==a||a.set(n,r),e.emit(Object.assign(Object.assign({},t),{key:n}))},isFetching(e){if(o())return!0;if(void 0===e)return u.size>0;const t=a(e);return Boolean(Array.from(u.keys()).find((e=>t.includes(h(e).namespace))))},isLoading(e,t){const n=a(t);return Boolean(o()||Array.from(u.keys()).find((t=>{const r=h(t);return(!n.length||n.includes(r.namespace))&&!y.exists({namespace:r.namespace,language:e})})))},async loadRecords(e,t){const o=e.map((e=>{const o=r(e),a=m(o),i=u.get(a);if(i)return{new:!1,promise:i,keyObject:o,cacheKey:a};const l=function(e,t){var r;let o;return t&&(o=null===(r=n(e))||void 0===r?void 0:r.catch((()=>(console.warn("Tolgee: Failed to fetch data from dev backend"),v(e))))),o||(o=v(e)),o}(o,t)||Promise.resolve(void 0);return u.set(a,l),{new:!0,promise:l,keyObject:o,cacheKey:a}}));i.notify(),s.notify();const a=await Promise.all(o.map((e=>e.promise)));return o.forEach(((e,t)=>{const n=u.get(e.cacheKey)!==e.promise;if(e.new&&!n){u.delete(e.cacheKey);const n=a[t];n?y.addRecord(e.keyObject,n):y.getRecord(e.keyObject)||y.addRecord(e.keyObject,{})}})),i.notify(),s.notify(),o.map((e=>y.getRecord(e.keyObject)))},getAllRecords:()=>Array.from(c.entries()).map((([e,t])=>Object.assign(Object.assign({},h(e)),{data:t.data})))});return y}function v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}const y="invalid",b={defaultNs:"",observerOptions:{tagAttributes:{textarea:["placeholder"],input:["value","placeholder"],img:["alt"],"*":["aria-label","title"]},restrictedElements:["script","style"],highlightKeys:["Alt"],highlightColor:"rgb(255, 0, 0)",highlightWidth:5,inputPrefix:"%-%tolgee:",inputSuffix:"%-%",passToParent:["option","optgroup"],fullKeyEncode:!1},observerType:"invisible",onFormatError:y,apiUrl:"https://app.tolgee.io",fetch:c(),onTranslationMissing:({key:e})=>e},x=(...e)=>{let t={};return e.forEach((e=>{t=Object.assign(Object.assign(Object.assign({},t),e),{observerOptions:Object.assign(Object.assign({},t.observerOptions),null==e?void 0:e.observerOptions)})})),t};function w(e,t){const n=x(b,null==t?void 0:t.initialOptions,e);return n.apiUrl=s(n.apiUrl),(null==e?void 0:e.fetch)&&(n.fetch=c(e.fetch)),{initialOptions:n,activeNamespaces:(null==t?void 0:t.activeNamespaces)||new Map,language:null==t?void 0:t.language,pendingLanguage:null==t?void 0:t.language,isInitialLoading:!1,isRunning:!1}}function k(e,r,o,a,i,l,s,u){const c={ui:void 0},d={formatters:[],finalFormatter:void 0,observer:void 0,devBackend:void 0,backends:[],ui:void 0,languageDetector:void 0,languageStorage:void 0},p=async({keysAndDefaults:e,event:t})=>{var n;const r=e.map((({key:e,ns:t,defaultValue:n})=>({key:e,defaultValue:n,fallbackNamespaces:a(t),namespace:i({key:e,ns:t})[0],translation:l({key:e,ns:t})})));null===(n=d.ui)||void 0===n||n.handleElementClick(r,t)},f=(e,t)=>{var n;return(null===(n=d.observer)||void 0===n?void 0:n.findPositions(e,t))||[]};function h(e){const t=l({key:e.key,ns:e.ns});return R.formatTranslation(Object.assign(Object.assign({},e),{translation:t,formatEnabled:!0}))}function m(){return{fetch:r().fetch}}function g(e){d.observer=null==e?void 0:e()}function b(){return Boolean(d.observer)}function x(e){e&&d.formatters.push(e)}function w(e){d.finalFormatter=e}function k(e){c.ui=e}function S(){return Boolean(c.ui)}function E(e){d.languageStorage=e}function C(e){d.languageDetector=e}function O(e){e&&d.backends.push(e)}function P(e){d.devBackend=e}const R=Object.freeze({addPlugin:function(e,t){t(e,Object.freeze({setFinalFormatter:w,addFormatter:x,setObserver:g,hasObserver:b,setUi:k,hasUi:S,setDevBackend:P,addBackend:O,setLanguageDetector:C,setLanguageStorage:E}))},run(){var e,t;const{apiKey:n,apiUrl:o,projectId:a,observerOptions:i}=r();d.ui=null===(e=c.ui)||void 0===e?void 0:e.call(c,{apiKey:n,apiUrl:o,projectId:a,highlight:R.highlight,changeTranslation:s,findPositions:f,onPermanentChange:u}),null===(t=d.observer)||void 0===t||t.run({mouseHighlight:!0,options:i,translate:h,onClick:p})},stop(){var e;d.ui=void 0,null===(e=d.observer)||void 0===e||e.stop()},getLanguageStorage:()=>d.languageStorage,getInitialLanguage(){var e;const t=o();return n(null===(e=d.languageStorage)||void 0===e?void 0:e.getLanguage(m()),(e=>t&&!t.includes(e)||!e?function(){if(!d.languageDetector)return;const e=o();return d.languageDetector.getLanguage(Object.assign({availableLanguages:e},m()))}():e))},setStoredLanguage(e){var t;null===(t=d.languageStorage)||void 0===t||t.setLanguage(e,m())},getDevBackend:()=>d.devBackend,getBackendRecord:({language:e,namespace:n})=>{for(const r of d.backends){const o=r.getRecord(Object.assign({language:e,namespace:n},m()));if(t(o))return null==o?void 0:o.catch((e=>(console.error(e),{})));if(void 0!==o)return o}},getBackendDevRecord:({language:e,namespace:t})=>{var n;const{apiKey:o,apiUrl:a,projectId:i}=r();return null===(n=d.devBackend)||void 0===n?void 0:n.getRecord(Object.assign({apiKey:o,apiUrl:a,projectId:i,language:e,namespace:t},m()))},getLanguageDetector:()=>d.languageDetector,retranslate(){var e;null===(e=d.observer)||void 0===e||e.retranslate()},highlight:(e,t)=>{var n,r;return(null===(r=null===(n=d.observer)||void 0===n?void 0:n.highlight)||void 0===r?void 0:r.call(n,e,t))||{unhighlight(){}}},unwrap(e){var t;return d.observer?null===(t=d.observer)||void 0===t?void 0:t.unwrap(e):{text:e,keys:[]}},wrap(e){var t;return d.observer?null===(t=d.observer)||void 0===t?void 0:t.wrap(e):e.translation},hasDevBackend:()=>Boolean(R.getDevBackend()),formatTranslation(t){var n,{formatEnabled:o}=t,a=v(t,["formatEnabled"]);const{key:i,translation:l,defaultValue:s,noWrap:u,params:c,ns:p,orEmpty:f}=a,h=null!=l?l:s;let m="";null==l&&(m=r().onTranslationMissing(a));let g=null!=h?h:f?"":m;const b=e(),x=o||!(null===(n=d.observer)||void 0===n?void 0:n.outputNotFormattable),w=e=>d.observer&&!u?d.observer.wrap({key:i,translation:e,defaultValue:s,params:c,ns:p}):e;g=w(g);try{if(h&&b&&x)for(const e of d.formatters)g=e.format({translation:g,language:b,params:c});d.finalFormatter&&h&&b&&x&&(g=d.finalFormatter.format({translation:g,language:b,params:c}))}catch(e){console.error(e);const t=("string"==typeof(k=e)?k:"string"==typeof(null==k?void 0:k.message)?k.message:void 0)||y,n=r().onFormatError,o=typeof n;g="string"===o?n:"function"===o?n(t,a):y,g=w(g)}var k;return g}});return R}const S=(e,t,n)=>{let r=e;return Object.freeze({init(e){r=e},notify(){const e=t();r!==e&&n(e),r=e}})};const E=(e,...t)=>{let n,r={};return"object"==typeof e?r=e:(r.key=e,"string"==typeof t[0]?(r.defaultValue=t[0],n=t[1]):"object"==typeof t[0]&&(n=t[0])),n&&(r=Object.assign(Object.assign({},function(e){var{ns:t,noWrap:n,orEmpty:r,params:o,language:a}=e,i=v(e,["ns","noWrap","orEmpty","params","language"]);const l={ns:t,noWrap:n,orEmpty:r,language:a};return Object.assign(Object.assign({},l),{params:Object.assign({},i)})}(n)),r)),r};function C({options:e}){const o=function(e,t){let n=!0;function r(){return n}const o=Object.freeze({onPendingLanguageChange:d(r),onLanguageChange:d(r),onLoadingChange:d(r),onFetchingChange:d(r),onInitialLoaded:d(r),onRunningChange:d(r),onCacheChange:d(r),onUpdate:p(r,e,t),onPermanentChange:d(r),setEmitterActive(e){n=e},on:(e,t)=>{switch(e){case"pendingLanguage":return o.onPendingLanguageChange.listen(t);case"language":return o.onLanguageChange.listen(t);case"loading":return o.onLoadingChange.listen(t);case"fetching":return o.onFetchingChange.listen(t);case"initialLoad":return o.onInitialLoaded.listen(t);case"running":return o.onRunningChange.listen(t);case"cache":return o.onCacheChange.listen(t);case"update":return o.onUpdate.listen(t);case"permanentChange":return o.onPermanentChange.listen(t)}}});return o.onInitialLoaded.listen((()=>o.onUpdate.emit())),o.onLanguageChange.listen((()=>o.onUpdate.emit())),o.onCacheChange.listen((({value:e})=>o.onUpdate.emit([e.namespace],!0))),o}(b,x),u=S(!1,(()=>v.isFetching()),o.onFetchingChange.emit),c=S(!1,(()=>j.isLoading()),o.onLoadingChange.emit),f=function(e,t,n){let r,o=w();const u=Object.freeze({init(e){o=w(e,o)},isRunning:()=>o.isRunning,setRunning(e){o.isRunning!==e&&(o.isRunning=e,n.emit(e))},isInitialLoading:()=>o.isInitialLoading,setInitialLoading(e){o.isInitialLoading=e},getLanguage:()=>o.language||o.initialOptions.language,setLanguage(t){o.language!==t&&(o.language=t,e.emit(t))},getPendingLanguage:()=>o.pendingLanguage||u.getLanguage(),setPendingLanguage(e){o.pendingLanguage!==e&&(o.pendingLanguage=e,t.emit(e))},getInitialOptions:()=>Object.assign(Object.assign({},o.initialOptions),r),addActiveNs(e){a(e).forEach((e=>{const t=o.activeNamespaces.get(e);void 0!==t?o.activeNamespaces.set(e,t+1):o.activeNamespaces.set(e,1)}))},removeActiveNs(e){a(e).forEach((e=>{const t=o.activeNamespaces.get(e);void 0!==t&&t>1?o.activeNamespaces.set(e,t-1):o.activeNamespaces.delete(e)}))},getRequiredNamespaces:()=>l([...o.initialOptions.ns||[o.initialOptions.defaultNs],...a(o.initialOptions.fallbackNs),...o.activeNamespaces.keys()]),getFallbackLangs(e){const t=e||u.getLanguage();return t?l([t,...i(t,o.initialOptions.fallbackLanguage)]):[]},getFallbackNs:()=>a(o.initialOptions.fallbackNs),getDefaultNs:e=>void 0===e?o.initialOptions.defaultNs:e,getAvailableLanguages(){if(o.initialOptions.availableLanguages)return o.initialOptions.availableLanguages;if(o.initialOptions.staticData){const e=Object.keys(o.initialOptions.staticData).map((e=>h(e).language));return Array.from(new Set(e))}},withDefaultNs:e=>({namespace:void 0===e.namespace?u.getInitialOptions().defaultNs:e.namespace,language:e.language}),overrideCredentials(e){r=e?Object.assign(Object.assign({},e),{apiUrl:s(e.apiUrl)}):void 0}});return u}(o.onLanguageChange,o.onPendingLanguageChange,o.onRunningChange),m=k(f.getLanguage,f.getInitialOptions,f.getAvailableLanguages,C,M,I,P,(function(e){o.onPermanentChange.emit({key:e.key,namespace:e.namespace})})),v=g(o.onCacheChange,m.getBackendRecord,m.getBackendDevRecord,f.withDefaultNs,f.isInitialLoading,u,c);let y;function b(){return f.getFallbackNs()}function x(e){return f.getDefaultNs(e)}function C(e){return[...a(x(e)),...b()]}function O(e){return[...a(null!=e?e:x()),...f.getRequiredNamespaces()]}function P(e,t,n){const r=f.withDefaultNs(e),o=v.getTranslation(r,t);return v.changeTranslation(r,t,n),{revert(){v.changeTranslation(r,t,o)}}}function R(e){f.init(e),v.addStaticData(f.getInitialOptions().staticData)}function T(e,t){const r=function(e,t){const n=f.getFallbackLangs(e),r=O(t),o=[];return n.forEach((e=>{r.forEach((t=>{v.exists({language:e,namespace:t},!0)||o.push({language:e,namespace:t})}))})),o}(e,t);if(r.length)return n(j.loadRecords(r),(()=>{}))}function M({key:e,ns:t}){const n=f.getFallbackLangs(),r=C(null!=t?t:void 0);return v.getTranslationNs(r,n,e)}function I({key:e,ns:t,language:n}){const r=C(null!=t?t:void 0),o=f.getFallbackLangs(n);return v.getTranslationFallback(r,o,e)}function $(){const e=n(function(){if(f.getLanguage())return;return n(m.getInitialLanguage(),(e=>{const t=e||f.getInitialOptions().defaultLanguage;t&&f.setLanguage(t)}))}(),(()=>T()));if(t(e))return f.setInitialLoading(!0),u.notify(),c.notify(),Promise.resolve(e).then((()=>{f.setInitialLoading(!1),u.notify(),c.notify(),o.onInitialLoaded.emit()}));o.onInitialLoaded.emit()}e&&R(e),o.onUpdate.listen((()=>{f.isRunning()&&m.retranslate()}));const j=Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o),f),m),v),{init:R,getTranslation:I,changeTranslation:P,getTranslationNs:M,getDefaultAndFallbackNs:C,async changeLanguage(e){f.getPendingLanguage()===e&&f.getLanguage()===e||(f.setPendingLanguage(e),f.isRunning()&&await T(e),e===f.getPendingLanguage()&&(f.setLanguage(e),m.setStoredLanguage(e)))},async addActiveNs(e,t){t||f.addActiveNs(e),f.isRunning()&&await T(void 0,e)},loadRecords:e=>v.loadRecords(e,j.isDev()),loadRecord:async e=>(await j.loadRecords([e]))[0],isLoading:e=>v.isLoading(f.getLanguage(),e),isLoaded(e){const t=f.getLanguage();if(!t)return!1;const n=f.getFallbackLangs(t),r=O(e),o=[];return n.forEach((e=>{r.forEach((t=>{v.exists({language:e,namespace:t})||o.push({language:e,namespace:t})}))})),0===o.length},t:(...e)=>{const t=E(...e),n=I(t);return m.formatTranslation(Object.assign(Object.assign({},t),{translation:n}))},isDev:()=>Boolean(f.getInitialOptions().apiKey&&f.getInitialOptions().apiUrl),run:()=>(function(){if((m.getLanguageDetector()||m.getLanguageStorage())&&!f.getAvailableLanguages())throw new Error(r("availableLanguages"));if(!f.getLanguage()&&!f.getInitialOptions().defaultLanguage)throw new Error(r(["defaultLanguage","language"]))}(),f.isRunning()||(f.setRunning(!0),m.run(),y=$()),Promise.resolve(y)),stop(){f.isRunning()&&(m.stop(),f.setRunning(!1))}}));return j}const O=()=>{const e={plugins:[],options:{}},t=Object.freeze({use:n=>(e.plugins.push(n),t),updateDefaults:n=>(e.options=x(e.options,n),t),init(t){const n=function(e){const t=C({options:e});function n(e){const n=t.isRunning();n&&t.stop(),e(),t.isDev()&&t.invalidate(),n&&t.run()}t.isDev()&&t.invalidate();const r=Object.freeze({on:t.on,onNsUpdate:t.onUpdate.listenSome,setEmitterActive:t.setEmitterActive,getLanguage:t.getLanguage,getPendingLanguage:t.getPendingLanguage,changeLanguage:t.changeLanguage,changeTranslation:t.changeTranslation,addActiveNs:t.addActiveNs,removeActiveNs:t.removeActiveNs,loadRecords:t.loadRecords,loadRecord:t.loadRecord,addStaticData:t.addStaticData,getRecord:t.getRecord,getAllRecords:t.getAllRecords,isLoaded:t.isLoaded,isInitialLoading:t.isInitialLoading,isLoading:t.isLoading,isFetching:t.isFetching,isRunning:t.isRunning,run:t.run,stop:t.stop,t:t.t,highlight:t.highlight,getInitialOptions:t.getInitialOptions,isDev:t.isDev,wrap:t.wrap,unwrap:t.unwrap,overrideCredentials(e){n((()=>t.overrideCredentials(e)))},addPlugin(e){e&&n((()=>t.addPlugin(r,e)))},updateOptions(e){e&&n((()=>t.init(e)))}});return r}(x(e.options,t));return e.plugins.forEach(n.addPlugin),n}});return t},P=0,R=1,T=2;class M extends Error{constructor(e,t,n){let r;r=e===P?"Empty parameter":e===R?"Unexpected character":"Unexpected end",super(`Tolgee parser: ${r} at ${t} in "${n}"`),this.code=e,this.index=t}}function I(e){return/\s/.test(e)}const $=0,j=1,L=2,N=3,A=4,z=new Set([L,j,$]),_="'",F=new Set(["{","}",_]),D=e=>/[0-9a-zA-Z_]/.test(e);function W(e,t){const[n,r]=function(e){let t=$,n="",r="",o="";const a=[],i=[];let l=0;function s(t){throw new M(t,l,e)}const u=()=>{a.push(n),n=""},c=()=>{""===r&&s(P),i.push(r),r=""};for(l=0;l<e.length;l++)switch(o=e[l],t){case $:o===_?(n+=o,t=j):"{"===o?(u(),t=N):(n+=o,t=$);break;case j:F.has(o)?(n=n.slice(0,-1)+o,t=L):(n+=o,t=$);break;case L:o===_?t=$:(n+=o,t=L);break;case N:"}"===o?(c(),t=$):I(o)?""!==r&&(c(),t=A):(D(o)||s(R),r+=o,t=N);break;case A:"}"==o?t=$:I(o)?t=A:s(R)}return z.has(t)||s(T),u(),[a,i]}(e),o=[n[0]];for(let a=1;a<n.length;a++){const i=null==t?void 0:t[r[a-1]];if(void 0===i)throw new Error(`Missing parameter "${r[a-1]}" in "${e}"`);o.push(String(i)),o.push(n[a])}return o.join("")}const B=()=>(e,t)=>(t.setFinalFormatter({format:({translation:e,params:t})=>W(e,t)}),e),U="__tolgee_dev_tools",V=2147483e3,H="__tolgee_preferredLanguages",q=5,K="data-tolgee-key-only",Q="data-tolgee-restricted",G="_tolgee",X="_tolgee-highlighter";function Y(){var e,t;return void 0===(null===(t=null===(e=globalThis.window)||void 0===e?void 0:e.document)||void 0===t?void 0:t.createElement)}function J(e){if(Y())throw new Error(`${e}: Can't run on the server`)}function Z(e,t){return{oldTextContent:e,keys:t}}const ee={position:"fixed",boxSizing:"content-box",zIndex:String(Number.MAX_SAFE_INTEGER),contain:"layout",display:"block",borderStyle:"solid",borderRadius:"4px"};function te({highlightColor:e,highlightWidth:t}){return Object.freeze({initHighlighter(n,r){!function(n,r){r.highlight=()=>{if(!n.isConnected)return;let o=r.highlightEl;o||(o=document.createElement("div"),o.classList.add(X),Object.entries(ee).forEach((([e,t])=>{o.style[e]=t})),o.style.borderColor=e,r.highlightEl=o,document.body.appendChild(o));const a=n.getBoundingClientRect();o.style.borderWidth=t+"px",o.style.top=a.top-t+"px",o.style.left=a.left-t+"px",o.style.width=a.width+"px",o.style.height=a.height+"px"}}(n,r),function(e,t){t.unhighlight=()=>{var e;null===(e=t.highlightEl)||void 0===e||e.remove(),t.highlightEl=void 0}}(0,r)}})}function ne(e,t){var n;const r=function(e){switch(e.nodeType){case Node.ATTRIBUTE_NODE:return e.ownerElement||void 0;case Node.TEXT_NODE:return e.parentElement||void 0;case Node.DOCUMENT_NODE:case Node.ELEMENT_NODE:return e;default:return}}(t),o=[];if(!r)return o;const a=null===document||void 0===document?void 0:document.evaluate(e,r,void 0,XPathResult.ANY_TYPE);let i;for(;i=null===(n=null==a?void 0:a.iterateNext)||void 0===n?void 0:n.call(a);)o.push(i);return o}function re(e){return e.textContent}function oe(e,t){e.textContent=t}function ae(e,t){if(e.contains(t))return!0;if(t instanceof Attr){const n=t.ownerElement&&Object.values(t.ownerElement.attributes).indexOf(t)>-1;if(e.contains(t.ownerElement)&&n)return!0}return!1}function ie(e,t){var n;const r=void 0===e.key||void 0===t.key||t.key===e.key,o=void 0===e.ns||void 0===t.ns||-1!==(null===(n=e.ns)||void 0===n?void 0:n.findIndex((e=>{var n;return null===(n=t.ns)||void 0===n?void 0:n.includes(e)})));return r&&o}const le={capture:!0},se={capture:!0,passive:!0},ue=new Map([["Control","ctrlKey"],["Alt","altKey"],["Meta","metaKey"],["Shift","shiftKey"]]);function ce({highlightKeys:e,elementStore:t,onClick:n,options:r}){var o,a;const i=new Set;let l,s,u=[];const c=(null===(o=r.targetElement)||void 0===o?void 0:o.getRootNode())||document,d=(null===(a=r.targetElement)||void 0===a?void 0:a.ownerDocument)||document;function p(){var e;const n=t.get(l);n&&(n.preventClean=!1,null===(e=n.unhighlight)||void 0===e||e.call(n),l=void 0)}function f(){const e=s;let n;if(e&&E()){n=function(e){for(const n of e){const e=S(n,(e=>t.get(e)));if(void 0!==e)return e||void 0}}(c.elementsFromPoint(e.x,e.y)||[])}!function(e){var n;if(l!==e){p();const r=t.get(e);r&&(r.preventClean=!0,null===(n=r.highlight)||void 0===n||n.call(r),l=e)}}(n)}function h(e){s=e,f()}function m(e){for(const[t,n]of ue.entries())i.has(t)&&!e[n]?i.delete(t):!i.has(t)&&e[n]&&i.add(t)}function g(e){var t;m(e),E()&&(t=e.target,!Boolean(S(t,(e=>e.id===U))))&&(e.stopPropagation(),e.preventDefault())}function v(e){m(e),h({x:e.clientX,y:e.clientY})}function y(e){m(e),f()}function b(e){m(e),f()}function x(){var e;const n=t.get(l);null===(e=null==n?void 0:n.highlight)||void 0===e||e.call(n)}function w(e){g(e),m(e),h({x:e.clientX,y:e.clientY}),E()&&l&&(n(e,l),p())}function k(e,t,n){d.addEventListener(e,t,n),u.push([e,t,n])}function S(e,t){return e.id===U?null:t(e)?e:(null==e?void 0:e.parentElement)?S(e.parentElement,t):void 0}function E(){for(const t of e)if(!i.has(t))return!1;return!0}return Object.freeze({stop(){!function(){for(const e of u)d.removeEventListener(...e);u=[]}()},run(){k("keydown",y,le),k("keyup",b,le),k("mousemove",v,se),k("scroll",x,se),k("click",w,le),k("mouseenter",g,le),k("mouseover",g,le),k("mouseout",g,le),k("mouseleave",g,le),k("mousedown",g,le),k("mouseup",g,le)}})}function de(e,t,n){const r=te({highlightColor:e.highlightColor,highlightWidth:e.highlightWidth}),a=ce({highlightKeys:e.highlightKeys,elementStore:t,onClick(e,r){const o=t.get(r);n({event:e,keysAndDefaults:s(o)})},options:e});function i(e){e.nodes=new Map(function*(e){for(const[t,n]of e.nodes.entries())ae(l(),t)&&(yield[t,n])}(e))}function l(){return e.targetElement||document.body}function s(e){return function(e){return Array.from(e.nodes.values()).reduce(((e,t)=>[...e,...t.keys.map((e=>({key:e.key,defaultValue:e.defaultValue,ns:e.ns})))]),[])}(e)}return Object.freeze({register(n,o,a){if(function(t){return-1!==e.restrictedElements.indexOf(t.tagName.toLowerCase())||null!==t.closest(`[${Q}]`)}(n))return;const i=n;let l=t.get(i);l||(l=function(e){return{element:e,nodes:new Map}}(i),t.set(i,l),i.setAttribute(G,"true")),l.nodes.set(o,a),r.initHighlighter(i,l)},forEachElement:t.forEachElement,refreshAll(){t.forEachElement(((e,n)=>{n.preventClean||(i(n),0===n.nodes.size&&function(e,n){var r;n.highlightEl&&(null===(r=n.unhighlight)||void 0===r||r.call(n)),e.removeAttribute(G),t.remove(e)}(e,n))}))},findAll(e,n){const r=[];return t.forEachElement(((t,a)=>{for(const t of a.nodes.values()){if(t.keys.find((t=>ie({key:e,ns:o(n)},{key:t.key,ns:o(t.ns)})))){r.push(a);break}}})),r},run(e){e&&a.run()},stop(){a.stop(),t.forEachElement(((e,t)=>{var n;t.highlightEl&&(null===(n=t.unhighlight)||void 0===n||n.call(t))}))}})}function pe(){let e,t=!1;const n=function(){const e=new Map;return Object.freeze({set(t,n){e.set(t,n)},get:t=>t&&e.get(t),remove:t=>e.delete(t),forEachElement(t){e.forEach(((e,n)=>t(n,e)))}})}();function r({mouseHighlight:e,options:r,wrapper:o,onClick:a}){if(Y())return{stop(){t=!1},wrapper:o};const i=function(e){const t=Object.freeze({getSuitableParent(n){const r=function(e){return e.parentElement?e.parentElement:e.ownerElement&&e.ownerElement||void 0}(n);if(void 0===r)throw console.error(n),new Error("No suitable parent found for node above.");if(!e.passToParent)return r;if(Array.isArray(e.passToParent)){const t=e=>r.tagName.toLowerCase()===e.toLowerCase();if(-1===e.passToParent.findIndex(t))return r}return"function"!=typeof e.passToParent||e.passToParent(r)?t.getSuitableParent(r):r}});return t}(r),l=function(e,t){const n=Object.freeze({handleAttributes(n){let r=[];for(const[o,a]of Object.entries(e.tagAttributes))for(const e of a){const a=ne(t.getAttributeXPath({tag:o,attribute:e}),n);r=[...r,...a]}return r},handleChildList(e){let t=[];return t=t.concat(n.handleAttributes(e)),t=t.concat(n.handleText(e)),t},handleText:e=>ne(t.getTextXPath(),e)});return n}(r,o),s=de(r,n,a);function u(e){for(const t of e){const e=re(t),n=e?o.unwrap(e):null;if(n){const{text:r,keys:o}=n;oe(t,r);const a=Z(e,o),l=i.getSuitableParent(t);s.register(l,t,a)}}}function c(e){ne(`./descendant-or-self::*[@${K}]`,e).forEach((e=>{const t=e.getAttributeNode(K),n=i.getSuitableParent(t);s.register(n,t,{oldTextContent:"",keys:[{key:re(t)}],keyAttributeOnly:!0})}))}const d=new MutationObserver((e=>{if(t){for(const t of e){let e=[];switch(t.type){case"characterData":e=l.handleText(t.target);break;case"childList":c(t.target),e=l.handleChildList(t.target);break;case"attributes":c(t.target),e=l.handleAttributes(t.target)}u(e)}s.refreshAll()}})),p=r.targetElement||document.body;return t=!0,s.run(e),c(p),u(l.handleChildList(p)),d.observe(p,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),{stop(){t=!1,s.stop(),d.disconnect()},elementRegistry:s,wrapper:o}}const a=Object.freeze({run(t){e=r(t)},stop(){null==e||e.stop()},forEachElement(t){var n,r;null===(r=null===(n=null==e?void 0:e.elementRegistry)||void 0===n?void 0:n.forEachElement)||void 0===r||r.call(n,t)},highlight(t,n){var r;const o=(null===(r=null==e?void 0:e.elementRegistry)||void 0===r?void 0:r.findAll(t,n))||[];return o.forEach((e=>{var t;return null===(t=e.highlight)||void 0===t?void 0:t.call(e)})),{unhighlight(){o.forEach((e=>{var t;return null===(t=e.unhighlight)||void 0===t?void 0:t.call(e)}))}}},findPositions(t,n){var r;const a=(null===(r=null==e?void 0:e.elementRegistry)||void 0===r?void 0:r.findAll(t,n))||[],i=[];return a.sort(((e,t)=>e.element.compareDocumentPosition(t.element)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),a.forEach((e=>{const r=e.element.getBoundingClientRect();e.nodes.forEach((e=>{e.keys.forEach((e=>{ie({key:t,ns:o(n)},{key:e.key,ns:o(e.ns)})&&i.push({position:{x:r.x,y:r.y,width:r.width,height:r.height},keyName:e.key,keyNamespace:e.ns||""})}))}))})),i},unwrap:t=>e?e.wrapper.unwrap(t):{text:t,keys:[]},wrap:t=>e?e.wrapper.wrap(t):t.translation||""});return a}const fe=["‌","‍"],he=RegExp(`([${fe.join("")}]{9})+`,"gu");function me(e){const t=function(e){return Array.from((new TextEncoder).encode(e))}(e).map(Number),n=t.map((e=>function(e){const t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0")).join("");return Array.from(n).map((e=>fe[Number(e)])).join("")}function ge(e){const t=Array.from(e).map((e=>fe.indexOf(e))).map(String).join("").match(/(.{9})/g),n=Uint8Array.from((null==t?void 0:t.map((e=>parseInt(e.slice(0,8),2))))||[]);return r=n,(new TextDecoder).decode(new Uint8Array(r));var r}function ve({fullKeyEncode:e}){const t=function(){const e=[];return Object.freeze({valueToNumber(t){let n=e.indexOf(t);return-1===n&&(n=e.length,e.push(t)),n},numberToValue:t=>e[t]})}();function n(e){const t={k:e.key,n:e.ns||void 0,d:e.defaultValue};return JSON.stringify(t)}return Object.freeze({unwrap(e){const n=[],r=function(e){var t;const n=null===(t=e.match(he))||void 0===t?void 0:t.filter((e=>e.length>8));return(null==n?void 0:n.map(ge))||[]}(e);r.forEach((e=>{const r=function(e){if(e.length<=4){const[n]=function(e){const t=[];for(const n of e)t.push(n.codePointAt(0));return t}(e);return t.numberToValue(n)}return e}(e),o=function(e){try{return JSON.parse(e||"{}")}catch(e){return void console.error(e)}}(r);if(o){const{k:e,d:t,n:r}=o;n.push({key:e,defaultValue:t,ns:r})}}));const o=function(e){return e.replace(he,"")}(e);return{text:o,keys:n}},wrap({key:r,defaultValue:o,translation:a,ns:i}){let l;if(e){l=me(n({key:r,ns:i}))}else{const e=n({key:r,ns:i,defaultValue:o}),a=t.valueToNumber(e);l=me(String.fromCodePoint(a))}const s=a||"";return"string"==typeof s?s+l:s},getTextXPath:()=>`./descendant-or-self::text()[contains(., '${fe[0]}${fe[0]}') or contains(., '${fe[1]}${fe[0]}')]`,getAttributeXPath:({tag:e,attribute:t})=>`descendant-or-self::${e}/@${t}[contains(., '${fe[0]}${fe[0]}') or contains(., '${fe[1]}${fe[0]}')]`})}function ye(e,t){let n=0;for(;e>-1&&"\\"===t[e-1];)n++,e--;return n%2==1}function be({inputPrefix:e,inputSuffix:t,translate:n}){function r(e){const{key:t,params:r,defaultValue:o,ns:a}=function(e){let t=!1,n="",r="",o="KEY";const a={key:"",ns:void 0,params:{},defaultValue:void 0},i=e=>{a.ns=e};for(const l of e)"\\"!==l||t?t?(t=!1,n+=l):"KEY"!==o||","!==l?"KEY"!==o||"|"!==l?"NAMESPACE"!==o||","!==l?"KEY"!==o||":"!==l?"DEFAULT_VALUE"!==o||":"!==l?"PARAM_NAME"!==o||":"!==l?"PARAM_VALUE"!==o||","!==l?n+=l:(o="PARAM_NAME",a.params[r]=n,n=""):(o="PARAM_VALUE",r=n,n=""):(o="PARAM_NAME",a.defaultValue=n,n=""):(o="PARAM_NAME",a.key=n,n=""):(o="DEFAULT_VALUE",i(n),n=""):(o="NAMESPACE",a.key=n,n=""):(o="DEFAULT_VALUE",a.key=n,n=""):t=!0;return"KEY"===o&&(a.key=n),"DEFAULT_VALUE"===o&&(a.defaultValue=n),"PARAM_VALUE"===o&&(a.params[r]=n),"NAMESPACE"===o&&i(n),a}(e);return{translated:n({key:t,params:r,defaultValue:o,ns:a,noWrap:!0}),key:t,params:r,defaultValue:o,ns:a}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e){return"string"==typeof e?e.replace(/[,:|\\]/gs,"\\$&"):"number"==typeof e||"bigint"==typeof e?e.toString():(console.warn(`Parameters of type "${typeof e}" are not supported in "text" wrapper mode.`),e)}return Object.freeze({wrap({key:n,params:r,defaultValue:o,ns:i}){let l=Object.entries(r||{}).map((([e,t])=>`${a(e)}:${a(t)}`)).join(",");l=l.length?`:${l}`:"";const s=void 0!==o?`,${a(o)}`:"",u="string"==typeof i?[i]:i,c=(null==u?void 0:u.length)?`|${u.map((e=>a(e))).join("|")}`:"";return`${e}${a(n)}${c}${s}${l}${t}`},unwrap(n){const a=new RegExp(`(\\\\?)(${o(e)}(.*?)${o(t)})`,"gs"),i=[];let l,s=!1,u=0,c="";for(;null!==(l=a.exec(n));){let e=l[1];const[t,o,a,d]=l,{index:p,input:f}=l;if(c+=f.substr(u,p-u),u=p+t.length,"\\"===e){if(!ye(p,n)){c+=a;continue}e=""}const h=r(d);i.push({key:h.key,params:h.params,defaultValue:h.defaultValue,ns:h.ns}),s=!0,c+=e+h.translated}return c+=n.substring(u),s?{text:c,keys:i}:{text:n,keys:[]}},getTextXPath:()=>`./descendant-or-self::text()[contains(., '${e}') and contains(., '${t}')]`,getAttributeXPath:({tag:n,attribute:r})=>`descendant-or-self::${n}/@${r}[contains(., '${e}') and contains(., '${t}')]`})}const xe=()=>(e,t)=>("text"===e.getInitialOptions().observerType?t.setObserver((()=>{const e=pe();return Object.freeze(Object.assign(Object.assign({},e),{run(t){const n=be({inputPrefix:t.options.inputPrefix,inputSuffix:t.options.inputSuffix,translate:t.translate});e.run(Object.assign(Object.assign({},t),{wrapper:n}))},retranslate(){e.forEachElement(((t,n)=>{for(const[t,r]of n.nodes.entries()){if(r.keyAttributeOnly)return;const n=e.unwrap(r.oldTextContent);n&&oe(t,n.text)}}))},outputNotFormattable:!0}))})):t.setObserver((()=>{const e=pe();return Object.freeze(Object.assign(Object.assign({},e),{run(t){const n=ve({fullKeyEncode:t.options.fullKeyEncode});e.run(Object.assign(Object.assign({},t),{wrapper:n}))},retranslate(){},outputNotFormattable:!1}))})),e),we="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function ke(e){const t=we.indexOf(e);if(-1===t)throw new Error("Invalid character found: "+e);return t}function Se(e){const t=(e=e.toUpperCase()).length;let n=0,r=0,o=0;const a=new Uint8Array(5*t/8|0);for(let i=0;i<t;i++)r=r<<5|ke(e[i]),n+=5,n>=8&&(a[o++]=r>>>n-8&255,n-=8);return function(e){const t=new Uint8Array(e),n=t.length;let r="",o=Math.pow(2,16)-1;for(let e=0;e<n;e+=o)e+o>n&&(o=n-e),r+=String.fromCharCode.apply(null,t.subarray(e,e+o));return r}(a.buffer)}function Ee(e){if(e)try{const[t,n]=e.split("_");if("tgpak"===t){const[e]=Se(n).split("_");return Number(e)}}catch(e){console.warn("Tolgee: Api key can't be parsed")}}function Ce(e){if(!e)return;const[t]=e.split("_");return"tgpak"===t?"tgpak":"tgpat"===t?"tgpat":"legacy"}const Oe=()=>(e,t)=>(t.setDevBackend({getRecord({apiUrl:e,apiKey:t,language:n,namespace:r,projectId:o,fetch:a}){var i;const l=null!==(i=Ee(t))&&void 0!==i?i:o;let s=void 0!==l?`${e}/v2/projects/${l}/translations/${n}`:`${e}/v2/projects/translations/${n}`;if(r&&(s+=`?ns=${r}`),"tgpat"===Ce(t)&&void 0===o)throw new Error("You need to specify 'projectId' when using PAT key");return a(s,{headers:{"X-API-Key":t||"","Content-Type":"application/json"}}).then((e=>{if(e.ok)return e.json().then((e=>e[n]));throw new Error(e.statusText)}))}}),e);function Pe({message:e,recievingMessage:t,data:n,attempts:r=1}){let o=!1;const a=()=>new Promise(((r,o)=>{const a=function(e,t){const n=n=>{var r,o;e.includes(null===(r=n.data)||void 0===r?void 0:r.type)&&t(null===(o=n.data)||void 0===o?void 0:o.data)};return window.addEventListener("message",n,!1),{unsubscribe(){window.removeEventListener("message",n)}}}(t,(function(e){clearTimeout(i),l(),r(e)}));window.postMessage({type:e,data:n},window.origin);const i=setTimeout((function(){l(),o()}),300);function l(){a.unsubscribe()}}));return{cancel(){o=!0},promise:(async()=>{for(let e=0;e<r;e++){if(o)return new Promise((()=>{}));try{return await a()}catch(e){continue}}if(!o)throw`Didn't recieve ${t.join(" or ")} in time.`;return new Promise((()=>{}))})()}}const Re="tolgee-in-context-tools.umd.min.js",Te="@tolgee/in-context-tools",Me="InContextTools",Ie="https://cdn.jsdelivr.net/npm";let $e=null;function je(e){var t;return $e||($e=(t=`${Ie}/@tolgee/web@${e}/dist/${Re}`,new Promise(((e,n)=>{const r=document.createElement("script");r.src=t,r.addEventListener("load",(()=>e())),r.addEventListener("error",(e=>n(e.error))),document.body.appendChild(r)}))).then((()=>window[Te][Me]))),$e}const Le="__tolgee_apiKey",Ne="__tolgee_apiUrl";function Ae(){const e=sessionStorage.getItem(Le)||void 0,t=sessionStorage.getItem(Ne)||void 0;if(e&&t)return{apiKey:e,apiUrl:t}}function ze(){sessionStorage.removeItem(Le),sessionStorage.removeItem(Ne)}let _e=()=>e=>e;(()=>{if("undefined"==typeof window)return!1;try{return"undefined"!=typeof sessionStorage&&sessionStorage}catch(e){return console.error("sessionStorage not available",e),!1}})()&&(_e=()=>e=>{const t=function(){let e;return{update:async function(t){null==e||e();const{cancel:n,promise:r}=Pe({message:"TOLGEE_READY",recievingMessage:["TOLGEE_PLUGIN_READY","TOLGEE_PLUGIN_UPDATED"],data:t,attempts:4});return e=n,r}}}();e.on("running",(({value:n})=>{var r;n&&(r=()=>{t.update({uiPresent:!0,uiVersion:void 0,mode:e.isDev()?"development":"production",config:{apiUrl:e.getInitialOptions().apiUrl||"",apiKey:e.getInitialOptions().apiKey||""}}).catch(ze)},"loading"!==document.readyState?Promise.resolve().then((()=>{r()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",r))}));return Ae()&&(async()=>{const e=await je("5.15.0");return t=>{const n=Ae();return t.addPlugin(e({credentials:n})),t}})().then((t=>{e.addPlugin(t)})).catch((e=>{console.error("Tolgee: Failed to load in-context tools"),console.error(e)})),e});const Fe="__tolgee_currentLanguage";const De=()=>(e,t)=>(t.setLanguageStorage({getLanguage:()=>(J("LanguageStorage"),localStorage.getItem(Fe)||void 0),setLanguage(e){J("LanguageStorage"),localStorage.setItem(Fe,e)}}),e);const We=()=>(e,t)=>(t.setLanguageDetector({getLanguage({availableLanguages:e}){J("LanguageDetector");const t=window.navigator.language,n=e.find((e=>e===t));if(n)return n;const r=e=>e.replace(/^(.+?)(-.*)?$/,"$1"),o=r(window.navigator.language);return e.find((e=>r(e)===o))||void 0}}),e);function Be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ue(e){return e.endsWith("/")?e.slice(0,-1):e}const Ve={prefix:"/i18n",getPath:({namespace:e,language:t,prefix:n})=>e?`${Ue(n)}/${e}/${t}.json`:`${Ue(n)}/${t}.json`,getData:function(e){return e.json()},headers:{Accept:"application/json"}};const He=e=>(t,n)=>(n.addBackend(function(e){const t=Object.assign(Object.assign(Object.assign({},Ve),e),{headers:Object.assign(Object.assign({},Ve.headers),null==e?void 0:e.headers)}),{prefix:n,getPath:r,getData:o,headers:a}=t,i=Be(t,["prefix","getPath","getData","headers"]);return{getRecord:({namespace:e,language:t,fetch:l})=>l(r({namespace:e,language:t,prefix:n}),Object.assign({headers:a},i)).then((e=>{if(!e.ok)throw new Error(`${e.url} ${e.status}`);return o(e)}))}}(e)),t);function qe(){return O().use(_e())}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qe(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Ge,Xe={exports:{}},Ye={};function Je(){if(Ge)return Ye;Ge=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;y.constructor=v,f(y,m.prototype),y.isPureReactComponent=!0;var b=Array.isArray,x=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var o,a={},i=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(i=""+n.key),n)x.call(n,o)&&!k.hasOwnProperty(o)&&(a[o]=n[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:e,type:t,key:i,ref:l,props:a,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var C=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(n,r,o,a,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=n),n=""===a?"."+O(s,0):a,b(i)?(o="",null!=n&&(o=n.replace(C,"$&/")+"/"),P(i,r,o,"",(function(e){return e}))):null!=i&&(E(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+n)),r.push(i)),1;if(s=0,a=""===a?".":a+":",b(n))for(var u=0;u<n.length;u++){var c=a+O(l=n[u],u);s+=P(l,r,o,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(l=n.next()).done;)s+=P(l=l.value,r,o,c=a+O(l,u++),i);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function R(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},I={transition:null},$={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:I,ReactCurrentOwner:w};return Ye.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ye.Component=m,Ye.Fragment=n,Ye.Profiler=o,Ye.PureComponent=v,Ye.StrictMode=r,Ye.Suspense=s,Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,Ye.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=f({},t.props),a=t.key,i=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,l=w.current),void 0!==n.key&&(a=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)x.call(n,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:e,type:t.type,key:a,ref:i,props:o,_owner:l}},Ye.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},Ye.createElement=S,Ye.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(e){return{$$typeof:l,render:e}},Ye.isValidElement=E,Ye.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},Ye.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},Ye.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},Ye.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Ye.useCallback=function(e,t){return M.current.useCallback(e,t)},Ye.useContext=function(e){return M.current.useContext(e)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(e){return M.current.useDeferredValue(e)},Ye.useEffect=function(e,t){return M.current.useEffect(e,t)},Ye.useId=function(){return M.current.useId()},Ye.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},Ye.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},Ye.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},Ye.useMemo=function(e,t){return M.current.useMemo(e,t)},Ye.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},Ye.useRef=function(e){return M.current.useRef(e)},Ye.useState=function(e){return M.current.useState(e)},Ye.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},Ye.useTransition=function(){return M.current.useTransition()},Ye.version="18.2.0",Ye}Xe.exports=Je();var Ze,et,tt,nt=Ke(Xe.exports),rt=e({__proto__:null,default:nt},[Xe.exports]),ot={exports:{}},at={},it={exports:{}},lt={};function st(){if(et)return at;et=1;var e=Xe.exports,t=it.exports;function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function p(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new p(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=f.hasOwnProperty(t)?f[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!s.call(d,e)||!s.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),I=Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var j,L=Object.assign;function N(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var A=!1;function z(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function _(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function D(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function G(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Y(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Y(e,t,n){"number"===t&&H(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function ne(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function se(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ce=["Webkit","ms","Moz","O"];function de(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=de(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){ce.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var fe=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function he(e,t){if(t){if(fe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function me(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,be=null,xe=null;function we(e){if(e=xo(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=ko(t),ye(e.stateNode,e.type,t))}}function ke(e){be?xe?xe.push(e):xe=[e]:be=e}function Se(){if(be){var e=be,t=xe;if(xe=be=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ee(e,t){return e(t)}function Ce(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Ee(e,t,n)}finally{Oe=!1,(null!==be||null!==xe)&&(Ce(),Se())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var o=ko(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Te=!1;if(l)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(e){Te=!1}function Ie(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var $e=!1,je=null,Le=!1,Ne=null,Ae={onError:function(e){$e=!0,je=e}};function ze(e,t,n,r,o,a,i,l,s){$e=!1,je=null,Ie.apply(Ae,arguments)}function _e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function De(e){if(_e(e)!==e)throw Error(n(188))}function We(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=_e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return De(a),e;if(i===o)return De(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Be(e):null}function Be(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Be(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,He=t.unstable_shouldYield,qe=t.unstable_requestPaint,Ke=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ot(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,Ct,Ot=!1,Pt=[],Rt=null,Tt=null,Mt=null,It=new Map,$t=new Map,jt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$t.delete(t.pointerId)}}function At(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=bo(e.target);if(null!==t){var n=_e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Ft(e,t,n){_t(e)&&n.delete(t)}function Dt(){Ot=!1,null!==Rt&&_t(Rt)&&(Rt=null),null!==Tt&&_t(Tt)&&(Tt=null),null!==Mt&&_t(Mt)&&(Mt=null),It.forEach(Ft),$t.forEach(Ft)}function Wt(e,n){e.blockedOn===n&&(e.blockedOn=null,Ot||(Ot=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Dt)))}function Bt(e){function t(t){return Wt(t,e)}if(0<Pt.length){Wt(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Wt(Rt,e),null!==Tt&&Wt(Tt,e),null!==Mt&&Wt(Mt,e),It.forEach(t),$t.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)zt(n),null===n.blockedOn&&jt.shift()}var Ut=v.ReactCurrentBatchConfig,Vt=!0;function Ht(e,t,n,r){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Ut.transition=a}}function qt(e,t,n,r){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Ut.transition=a}}function Kt(e,t,n,r){if(Vt){var o=Gt(e,t,n,r);if(null===o)Vr(e,t,r,Qt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Rt=At(Rt,e,t,n,r,o),!0;case"dragenter":return Tt=At(Tt,e,t,n,r,o),!0;case"mouseover":return Mt=At(Mt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return It.set(a,At(It.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,$t.set(a,At($t.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Gt(e,t,n,r))&&Vr(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Qt=null;function Gt(e,t,n,r){if(Qt=null,null!==(e=bo(e=ve(r))))if(null===(t=_e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ge:return 1;case Ye:return 4;case Je:case Ze:return 16;case tt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=L({},un,{view:0,detail:0}),pn=on(dn),fn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(fn),mn=on(L({},fn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var On=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(On),Rn=on(L({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Mn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=on(In),jn=[9,13,27,32],Ln=l&&"CompositionEvent"in window,Nn=null;l&&"documentMode"in document&&(Nn=document.documentMode);var An=l&&"TextEvent"in window&&!Nn,zn=l&&(!Ln||Nn&&8<Nn&&11>=Nn),_n=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Hn(e,t,n,r){ke(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Qn(e){_r(e,0)}function Gn(e){if(V(wo(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(l){var Jn;if(l){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Yn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];Hn(t,Kn,e,ve(e)),Pe(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function ar(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==H(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function Cr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}l&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Or=Cr("animationend"),Pr=Cr("animationiteration"),Rr=Cr("animationstart"),Tr=Cr("transitionend"),Mr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $r(e,t){Mr.set(e,t),a(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Lr=Ir[jr];$r(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}$r(Or,"onAnimationEnd"),$r(Pr,"onAnimationIteration"),$r(Rr,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(Tr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function zr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,l,s,u){if(ze.apply(this,arguments),$e){if(!$e)throw Error(n(198));var c=je;$e=!1,je=null,Le||(Le=!0,Ne=c)}}(o,t,void 0,e),e.currentTarget=null}function _r(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;zr(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;zr(o,l,u),a=s}}}if(Le)throw e=Ne,Le=!1,Ne=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Wr]){e[Wr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||Dr(t,!1,e),Dr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wr]||(t[Wr]=!0,Dr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=bo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=a,o=ve(n),i=[];e:{var l=Mr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tn;break;case Or:case Pr:case Rr:s=vn;break;case Tr:s=Mn;break;case"scroll":s=pn;break;case"wheel":s=$n;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rn}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Re(h,p))&&c.push(Hr(h,m,f)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ge||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=_e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:wo(s),f=null==u?l:wo(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,bo(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=Kr(f))h++;for(f=0,m=p;m;m=Kr(m))f++;for(;0<h-f;)c=Kr(c),h--;for(;0<f-h;)p=Kr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Kr(c),p=Kr(p)}c=null}else c=null;null!==s&&Qr(i,l,s,c,!1),null!==u&&null!==d&&Qr(i,d,u,c,!0)}if("select"===(s=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Xn;else if(Vn(l))if(Yn)g=ir;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Hn(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Y(l,"number",l.value)),v=r?wo(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Jt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=qr(r,b)).length&&(b=new xn(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=Wn(n))&&(b.data=y))),(y=An?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Fn=!0,_n);case"textInput":return(e=t.data)===_n&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Ln&&Dn(e,t)?(e=en(),Zt=Jt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}_r(i,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Hr(e,a,o)),null!=(a=Re(e,t))&&r.push(Hr(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Re(n,a))&&i.unshift(Hr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Hr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Jr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,vo="__reactListeners$"+po,yo="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[fo])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ko(e){return e[ho]||null}var So=[],Eo=-1;function Co(e){return{current:e}}function Oo(e){0>Eo||(e.current=So[Eo],So[Eo]=null,Eo--)}function Po(e,t){Eo++,So[Eo]=e.current,e.current=t}var Ro={},To=Co(Ro),Mo=Co(!1),Io=Ro;function $o(e,t){var n=e.type.contextTypes;if(!n)return Ro;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function jo(e){return null!=(e=e.childContextTypes)}function Lo(){Oo(Mo),Oo(To)}function No(e,t,r){if(To.current!==Ro)throw Error(n(168));Po(To,t),Po(Mo,r)}function Ao(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,D(e)||"Unknown",a));return L({},r,o)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ro,Io=To.current,Po(To,e),Po(Mo,Mo.current),!0}function _o(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Ao(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,Oo(Mo),Oo(To),Po(To,e)):Oo(Mo),Po(Mo,r)}var Fo=null,Do=!1,Wo=!1;function Bo(e){null===Fo?Fo=[e]:Fo.push(e)}function Uo(){if(!Wo&&null!==Fo){Wo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Do=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ue(Ge,Uo),t}finally{bt=t,Wo=!1}}return null}var Vo=[],Ho=0,qo=null,Ko=0,Qo=[],Go=0,Xo=null,Yo=1,Jo="";function Zo(e,t){Vo[Ho++]=Ko,Vo[Ho++]=qo,qo=e,Ko=t}function ea(e,t,n){Qo[Go++]=Yo,Qo[Go++]=Jo,Qo[Go++]=Xo,Xo=e;var r=Yo;e=Jo;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var a=32-ot(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Yo=1<<32-ot(t)+o|n<<o|r,Jo=a+e}else Yo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Vo[--Ho],Vo[Ho]=null,Ko=Vo[--Ho],Vo[Ho]=null;for(;e===Xo;)Xo=Qo[--Go],Qo[Go]=null,Jo=Qo[--Go],Qo[Go]=null,Yo=Qo[--Go],Qo[Go]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=$u(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Yo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=$u(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var r=t;if(!sa(e,t)){if(ua(e))throw Error(n(418));t=uo(r.nextSibling);var o=ra;t&&sa(e,t)?la(o,r):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(n(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw fa(),Error(n(418));for(;t;)la(e,t),t=uo(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=v.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Co(null),ba=null,xa=null,wa=null;function ka(){wa=xa=ba=null}function Sa(e){var t=ya.current;Oo(ya),e._currentValue=t}function Ea(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xl=!0),e.firstContext=null)}function Oa(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(n(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var Pa=null;function Ra(e){null===Pa?Pa=[e]:Pa.push(e)}function Ta(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ra(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ma(e,r)}function Ma(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ia=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function La(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ts)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ma(e,n)}return null===(o=r.interleaved)?(t.next=t,Ra(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ma(e,n)}function Aa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _a(e,t,n,r){var o=e.updateQueue;Ia=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,c=u=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=L({},d,p);break e;case 2:Ia=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);zs|=i,e.lanes=i,e.memoizedState=d}}function Fa(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var Da=(new e.Component).refs;function Wa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ba={isMounted:function(e){return!!(e=e._reactInternals)&&_e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=La(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Na(e,a,o))&&(ru(t,e,o,r),Aa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=La(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Na(e,a,o))&&(ru(t,e,o,r),Aa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=La(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Na(e,o,r))&&(ru(t,e,r,n),Aa(t,e,r))}};function Ua(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function Va(e,t,n){var r=!1,o=Ro,a=t.contextType;return"object"==typeof a&&null!==a?a=Oa(a):(o=jo(t)?Io:To.current,a=(r=null!=(r=t.contextTypes))?$o(e,o):Ro),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ba,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ba.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Da,$a(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oa(a):(a=jo(t)?Io:To.current,o.context=$o(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Wa(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ba.enqueueReplaceState(o,o.state,null),_a(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Da&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ga(e){return(0,e._init)(e._payload)}function Xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Lu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=_u(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&Ga(o)===t.type)?((r=a(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Au(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=_u(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case b:return(t=Fu(t,e.mode,n)).return=e,t;case T:return p(e,(0,t._init)(t._payload),n)}if(J(t)||$(t))return(t=Au(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case T:return f(e,t,(o=n._init)(n._payload),r)}if(J(n)||$(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return h(e,t,n,(0,r._init)(r._payload),o)}if(J(r)||$(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}function m(n,a,l,s){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(n,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return r(n,d),aa&&Zo(n,m),u;if(null===d){for(;m<l.length;m++)null!==(d=p(n,l[m],s))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return aa&&Zo(n,m),u}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),aa&&Zo(n,m),u}function g(a,l,s,u){var c=$(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,m=l,g=l=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(a,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(a,m),aa&&Zo(a,g),c;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=p(a,y.value,u))&&(l=i(y,l,g),null===d?c=y:d.sibling=y,d=y);return aa&&Zo(a,g),c}for(m=o(a,m);!y.done;g++,y=s.next())null!==(y=h(m,a,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),aa&&Zo(a,g),c}return function e(n,o,i,s){if("object"==typeof i&&null!==i&&i.type===x&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case y:e:{for(var u=i.key,c=o;null!==c;){if(c.key===u){if((u=i.type)===x){if(7===c.tag){r(n,c.sibling),(o=a(c,i.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===T&&Ga(u)===c.type){r(n,c.sibling),(o=a(c,i.props)).ref=Ka(n,c,i),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}i.type===x?((o=Au(i.props.children,n.mode,s,i.key)).return=n,n=o):((s=Nu(i.type,i.key,i.props,null,n.mode,s)).ref=Ka(n,o,i),s.return=n,n=s)}return l(n);case b:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){r(n,o.sibling),(o=a(o,i.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Fu(i,n.mode,s)).return=n,n=o}return l(n);case T:return e(n,o,(c=i._init)(i._payload),s)}if(J(i))return m(n,o,i,s);if($(i))return g(n,o,i,s);Qa(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(r(n,o.sibling),(o=a(o,i)).return=n,n=o):(r(n,o),(o=_u(i,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Ya=Xa(!0),Ja=Xa(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(n(174));return e}function oi(e,t){switch(Po(ni,t),Po(ti,e),Po(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ei),Po(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ae(t,e.type);t!==n&&(Po(ti,e),Po(ei,n))}function li(e){ti.current===e&&(Oo(ei),Oo(ti))}var si=Co(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function di(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var pi=v.ReactCurrentDispatcher,fi=v.ReactCurrentBatchConfig,hi=0,mi=null,gi=null,vi=null,yi=!1,bi=!1,xi=0,wi=0;function ki(){throw Error(n(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Ei(e,t,r,o,a,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ll:sl,e=r(o,a),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(n(301));i+=1,vi=gi=null,t.updateQueue=null,pi.current=ul,e=r(o,a)}while(bi)}if(pi.current=il,t=null!==gi&&null!==gi.next,hi=0,vi=gi=mi=null,yi=!1,t)throw Error(n(300));return e}function Ci(){var e=0!==xi;return xi=0,e}function Oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?mi.memoizedState=vi=e:vi=vi.next=e,vi}function Pi(){if(null===gi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===vi?mi.memoizedState:vi.next;if(null!==t)vi=t,gi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===vi?mi.memoizedState=vi=e:vi=vi.next=e}return vi}function Ri(e,t){return"function"==typeof t?t(e):t}function Ti(e){var t=Pi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=gi,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((hi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=p,l=o):u=u.next=p,mi.lanes|=d,zs|=d}c=c.next}while(null!==c&&c!==i);null===u?l=o:u.next=s,lr(o,t.memoizedState)||(xl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,mi.lanes|=i,zs|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Mi(e){var t=Pi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);lr(i,t.memoizedState)||(xl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Ii(){}function $i(e,t){var r=mi,o=Pi(),a=t(),i=!lr(o.memoizedState,a);if(i&&(o.memoizedState=a,xl=!0),o=o.queue,Vi(Ni.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(r.flags|=2048,Fi(9,Li.bind(null,r,o,a,t),void 0,null),null===Ms)throw Error(n(349));0!=(30&hi)||ji(r,t,a)}return a}function ji(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Li(e,t,n,r){t.value=n,t.getSnapshot=r,Ai(t)&&zi(e)}function Ni(e,t,n){return n((function(){Ai(t)&&zi(e)}))}function Ai(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function zi(e){var t=Ma(e,1);null!==t&&ru(t,e,1,-1)}function _i(e){var t=Oi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,mi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Di(){return Pi().memoizedState}function Wi(e,t,n,r){var o=Oi();mi.flags|=e,o.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function Bi(e,t,n,r){var o=Pi();r=void 0===r?null:r;var a=void 0;if(null!==gi){var i=gi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=Fi(t,n,a,r))}mi.flags|=e,o.memoizedState=Fi(1|t,n,a,r)}function Ui(e,t){return Wi(8390656,8,e,t)}function Vi(e,t){return Bi(2048,8,e,t)}function Hi(e,t){return Bi(4,2,e,t)}function qi(e,t){return Bi(4,4,e,t)}function Ki(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4,4,Ki.bind(null,t,e),n)}function Gi(){}function Xi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,xl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),mi.lanes|=n,zs|=n,e.baseState=!0),t)}function Zi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{bt=n,fi.transition=r}}function el(){return Pi().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=Ta(e,t,n,r))){ru(n,e,r,tu()),al(n,t,r)}}function nl(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ra(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ta(e,t,o,r))&&(ru(n,e,r,o=tu()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function ol(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var il={readContext:Oa,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ll={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Wi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wi(4,2,e,t)},useMemo:function(e,t){var n=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oi().memoizedState=e},useState:_i,useDebugValue:Gi,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=_i(!1),t=e[0];return e=Zi.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=mi,a=Oi();if(aa){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ms)throw Error(n(349));0!=(30&hi)||ji(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Ui(Ni.bind(null,o,i,e),[e]),o.flags|=2048,Fi(9,Li.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Oi(),t=Ms.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Yo&~(1<<32-ot(Yo)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Oa,useCallback:Xi,useContext:Oa,useEffect:Vi,useImperativeHandle:Qi,useInsertionEffect:Hi,useLayoutEffect:qi,useMemo:Yi,useReducer:Ti,useRef:Di,useState:function(){return Ti(Ri)},useDebugValue:Gi,useDeferredValue:function(e){return Ji(Pi(),gi.memoizedState,e)},useTransition:function(){return[Ti(Ri)[0],Pi().memoizedState]},useMutableSource:Ii,useSyncExternalStore:$i,useId:el,unstable_isNewReconciler:!1},ul={readContext:Oa,useCallback:Xi,useContext:Oa,useEffect:Vi,useImperativeHandle:Qi,useInsertionEffect:Hi,useLayoutEffect:qi,useMemo:Yi,useReducer:Mi,useRef:Di,useState:function(){return Mi(Ri)},useDebugValue:Gi,useDeferredValue:function(e){var t=Pi();return null===gi?t.memoizedState=e:Ji(t,gi.memoizedState,e)},useTransition:function(){return[Mi(Ri)[0],Pi().memoizedState]},useMutableSource:Ii,useSyncExternalStore:$i,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=_(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=La(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,qs=r),pl(0,t)},n}function ml(e,t,n){(n=La(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){pl(0,t),"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ou.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=La(-1,1)).tag=2,Na(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=v.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?Ja(t,null,n,r):Ya(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Ei(e,t,n,r,a,o),n=Ci(),null===e||xl?(aa&&n&&ta(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||ju(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Lu(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);0!=(131072&e.flags)&&(xl=!0)}}return Pl(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,js),js|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,js),js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Po(Ls,js),js|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,js),js|=r;return wl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pl(e,t,n,r,o){var a=jo(n)?Io:To.current;return a=$o(t,a),Ca(t,o),n=Ei(e,t,n,r,a,o),r=Ci(),null===e||xl?(aa&&r&&ta(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Rl(e,t,n,r,o){if(jo(n)){var a=!0;zo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Vl(e,t),Va(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=Oa(u):u=$o(t,u=jo(n)?Io:To.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&Ha(t,i,r,u),Ia=!1;var p=t.memoizedState;i.state=p,_a(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Mo.current||Ia?("function"==typeof c&&(Wa(t,n,c,r),s=t.memoizedState),(l=Ia||Ua(t,n,l,r,p,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ja(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:va(t.type,l),i.props=u,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Oa(s):s=$o(t,s=jo(n)?Io:To.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&Ha(t,i,r,s),Ia=!1,p=t.memoizedState,i.state=p,_a(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Mo.current||Ia?("function"==typeof f&&(Wa(t,n,f,r),h=t.memoizedState),(u=Ia||Ua(t,n,u,r,p,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tl(e,t,n,r,a,o)}function Tl(e,t,n,r,o,a){Ol(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&_o(t,n,!1),Hl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&_o(t,n,!0),t.child}function Ml(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),oi(e,t.containerInfo)}function Il(e,t,n,r,o){return ha(),ma(o),t.flags|=256,wl(e,t,n,r),t.child}var $l,jl,Ll,Nl,Al={dehydrated:null,treeContext:null,retryLane:0};function zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function _l(e,t,r){var o,a=t.pendingProps,i=si.current,l=!1,s=0!=(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&0!=(2&i)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Po(si,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=zu(s,a,0,null),e=Au(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=zl(r),t.memoizedState=Al,e):Fl(t,s));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,l){if(r)return 256&t.flags?(t.flags&=-257,Dl(e,t,l,o=dl(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=zu({mode:"visible",children:o.children},a,0,null),(i=Au(i,a,l,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,0!=(1&t.mode)&&Ya(t,e.child,null,l),t.child.memoizedState=zl(l),t.memoizedState=Al,i);if(0==(1&t.mode))return Dl(e,t,l,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var s=o.dgst;return o=s,Dl(e,t,l,o=dl(i=Error(n(419)),o,void 0))}if(s=0!=(l&e.childLanes),xl||s){if(null!==(o=Ms)){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(o.suspendedLanes|l))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Ma(e,a),ru(o,e,a,-1))}return gu(),Dl(e,t,l,o=dl(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,oa=uo(a.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Go++]=Yo,Qo[Go++]=Jo,Qo[Go++]=Xo,Yo=e.id,Jo=e.overflow,Xo=t),t=Fl(t,o.children),t.flags|=4096,t)}(e,t,s,a,o,i,r);if(l){l=a.fallback,s=t.mode,o=(i=e.child).sibling;var u={mode:"hidden",children:a.children};return 0==(1&s)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Lu(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==o?l=Lu(o,l):(l=Au(l,s,r,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?zl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=Al,a}return e=(l=e.child).sibling,a=Lu(l,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Fl(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){return null!==r&&ma(r),Ya(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Wl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ea(e.return,t,n)}function Bl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Ul(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),0!=(2&(r=si.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wl(e,n,t);else if(19===e.tag)Wl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(si,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,a);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Lu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Lu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function ql(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,r){var a=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return jo(t.type)&&Lo(),Kl(t),null;case 3:return a=t.stateNode,ai(),Oo(Mo),Oo(To),di(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(lu(ia),ia=null))),jl(e,t),Kl(t),null;case 5:li(t);var i=ri(ni.current);if(r=t.type,null!==e&&null!=t.stateNode)Ll(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Kl(t),null}if(e=ri(ei.current),pa(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[fo]=t,a[ho]=l,e=0!=(1&t.mode),r){case"dialog":Fr("cancel",a),Fr("close",a);break;case"iframe":case"object":case"embed":Fr("load",a);break;case"video":case"audio":for(i=0;i<Nr.length;i++)Fr(Nr[i],a);break;case"source":Fr("error",a);break;case"img":case"image":case"link":Fr("error",a),Fr("load",a);break;case"details":Fr("toggle",a);break;case"input":K(a,l),Fr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},Fr("invalid",a);break;case"textarea":te(a,l),Fr("invalid",a)}for(var s in he(r,l),i=null,l)if(l.hasOwnProperty(s)){var u=l[s];"children"===s?"string"==typeof u?a.textContent!==u&&(!0!==l.suppressHydrationWarning&&Jr(a.textContent,u,e),i=["children",u]):"number"==typeof u&&a.textContent!==""+u&&(!0!==l.suppressHydrationWarning&&Jr(a.textContent,u,e),i=["children",""+u]):o.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",a)}switch(r){case"input":U(a),X(a,l,!0);break;case"textarea":U(a),re(a);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(a.onclick=Zr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=s.createElement(r,{is:a.is}):(e=s.createElement(r),"select"===r&&(s=e,a.multiple?s.multiple=!0:a.size&&(s.size=a.size))):e=s.createElementNS(e,r),e[fo]=t,e[ho]=a,$l(e,t,!1,!1),t.stateNode=e;e:{switch(s=me(r,a),r){case"dialog":Fr("cancel",e),Fr("close",e),i=a;break;case"iframe":case"object":case"embed":Fr("load",e),i=a;break;case"video":case"audio":for(i=0;i<Nr.length;i++)Fr(Nr[i],e);i=a;break;case"source":Fr("error",e),i=a;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=a;break;case"details":Fr("toggle",e),i=a;break;case"input":K(e,a),i=q(e,a),Fr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=L({},a,{value:void 0}),Fr("invalid",e);break;case"textarea":te(e,a),i=ee(e,a),Fr("invalid",e)}for(l in he(r,i),u=i)if(u.hasOwnProperty(l)){var c=u[l];"style"===l?pe(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&se(e,c):"number"==typeof c&&se(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=c&&"onScroll"===l&&Fr("scroll",e):null!=c&&g(e,l,c,s))}switch(r){case"input":U(e),X(e,a,!1);break;case"textarea":U(e),re(e);break;case"option":null!=a.value&&e.setAttribute("value",""+W(a.value));break;case"select":e.multiple=!!a.multiple,null!=(l=a.value)?Z(e,!!a.multiple,l,!1):null!=a.defaultValue&&Z(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=ri(ni.current),ri(ei.current),pa(t)){if(a=t.stateNode,r=t.memoizedProps,a[fo]=t,(l=a.nodeValue!==r)&&null!==(e=ra))switch(e.tag){case 3:Jr(a.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(a.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[fo]=t,t.stateNode=a}return Kl(t),null;case 13:if(Oo(si),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))fa(),ha(),t.flags|=98560,l=!1;else if(l=pa(t),null!==a&&null!==a.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[fo]=t}else ha(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==ia&&(lu(ia),ia=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&si.current)?0===Ns&&(Ns=3):gu())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return ai(),jl(e,t),null===e&&Br(t.stateNode.containerInfo),Kl(t),null;case 10:return Sa(t.type._context),Kl(t),null;case 19:if(Oo(si),null===(l=t.memoizedState))return Kl(t),null;if(a=0!=(128&t.flags),null===(s=l.rendering))if(a)ql(l,!1);else{if(0!==Ns||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ui(e))){for(t.flags|=128,ql(l,!1),null!==(a=s.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Po(si,1&si.current|2),t.child}e=e.sibling}null!==l.tail&&Ke()>Us&&(t.flags|=128,a=!0,ql(l,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=ui(s))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ql(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!aa)return Kl(t),null}else 2*Ke()-l.renderingStartTime>Us&&1073741824!==r&&(t.flags|=128,a=!0,ql(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ke(),t.sibling=null,r=si.current,Po(si,a?1&r|2:1&r),t):(Kl(t),null);case 22:case 23:return pu(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&0!=(1&t.mode)?0!=(1073741824&js)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Gl(e,t){switch(na(t),t.tag){case 1:return jo(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(Mo),Oo(To),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Oo(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(si),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}$l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},jl=function(){},Ll=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var i,l=null;switch(n){case"input":a=q(e,a),r=q(e,r),l=[];break;case"select":a=L({},a,{value:void 0}),r=L({},r,{value:void 0}),l=[];break;case"textarea":a=ee(e,a),r=ee(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in he(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var s=a[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(l=l||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(l=l||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),l||s===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Yl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ts(t,n,a)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,ps=!1;function fs(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch(e){}switch(n.tag){case 5:Yl||es(n,t);case 6:var r=ds,o=ps;ds=null,fs(e,t,n),ps=o,null!==(ds=r)&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(ds,n.stateNode));break;case 4:r=ds,o=ps,ds=n.stateNode.containerInfo,ps=!0,fs(e,t,n),ds=r,ps=o;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ts(n,t,i),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Yl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,fs(e,t,n),Yl=r):fs(e,t,n);break;default:fs(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,ps=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,ps=!0;break e}s=s.return}if(null===ds)throw Error(n(160));hs(i,l,a),ds=null,ps=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(e){Cu(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),ys(e),4&o){try{rs(3,e,e.return),os(3,e)}catch(t){Cu(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:gs(t,e),ys(e),512&o&&null!==r&&es(r,r.return);break;case 5:if(gs(t,e),ys(e),512&o&&null!==r&&es(r,r.return),32&e.flags){var a=e.stateNode;try{se(a,"")}catch(t){Cu(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&Q(a,i),me(s,l);var c=me(s,i);for(l=0;l<u.length;l+=2){var d=u[l],p=u[l+1];"style"===d?pe(a,p):"dangerouslySetInnerHTML"===d?le(a,p):"children"===d?se(a,p):g(a,d,p,c)}switch(s){case"input":G(a,i);break;case"textarea":ne(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?Z(a,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?Z(a,!!i.multiple,i.defaultValue,!0):Z(a,!!i.multiple,i.multiple?[]:"",!1))}a[ho]=i}catch(t){Cu(e,e.return,t)}}break;case 6:if(gs(t,e),ys(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){Cu(e,e.return,t)}}break;case 3:if(gs(t,e),ys(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:gs(t,e),ys(e);break;case 13:gs(t,e),ys(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Bs=Ke())),4&o&&ms(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Yl=(c=Yl)||d,gs(t,e),Yl=c):gs(t,e),ys(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(p=Zl=d;null!==Zl;){switch(h=(f=Zl).child,f.tag){case 0:case 11:case 14:case 15:rs(4,f,f.return);break;case 1:es(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(o,r,e)}}break;case 5:es(f,f.return);break;case 22:if(null!==f.memoizedState){ks(p);continue}}null!==h?(h.return=f,Zl=h):ks(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=de("display",l))}catch(t){Cu(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gs(t,e),ys(e),4&o&&ms(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ls(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(se(a,""),o.flags&=-33),cs(e,ss(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;us(e,ss(e),i);break;default:throw Error(n(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,xs(e)}function xs(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Xl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Yl;l=Xl;var u=Yl;if(Xl=i,(Yl=s)&&!u)for(Zl=o;null!==Zl;)s=(i=Zl).child,22===i.tag&&null!==i.memoizedState?Ss(o):null!==s?(s.return=i,Zl=s):Ss(o);for(;null!==a;)Zl=a,xs(a),a=a.sibling;Zl=o,Xl=l,Yl=u}ws(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zl=a):ws(e)}}function ws(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Yl||os(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Yl)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:va(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fa(t,i,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Fa(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Yl||512&t.flags&&as(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zl=r;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Ss(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cu(t,o,e)}}var a=t.return;try{as(t)}catch(e){Cu(t,a,e)}break;case 5:var i=t.return;try{as(t)}catch(e){Cu(t,i,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Es,Cs=Math.ceil,Os=v.ReactCurrentDispatcher,Ps=v.ReactCurrentOwner,Rs=v.ReactCurrentBatchConfig,Ts=0,Ms=null,Is=null,$s=0,js=0,Ls=Co(0),Ns=0,As=null,zs=0,_s=0,Fs=0,Ds=null,Ws=null,Bs=0,Us=1/0,Vs=null,Hs=!1,qs=null,Ks=null,Qs=!1,Gs=null,Xs=0,Ys=0,Js=null,Zs=-1,eu=0;function tu(){return 0!=(6&Ts)?Ke():-1!==Zs?Zs:Zs=Ke()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Ts)&&0!==$s?$s&-$s:null!==ga.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ru(e,t,r,o){if(50<Ys)throw Ys=0,Js=null,Error(n(185));vt(e,r,o),0!=(2&Ts)&&e===Ms||(e===Ms&&(0==(2&Ts)&&(_s|=r),4===Ns&&su(e,$s)),ou(e,o),1===r&&0===Ts&&0==(1&t.mode)&&(Us=Ke()+500,Do&&Uo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-ot(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Ms?$s:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Do=!0,Bo(e)}(uu.bind(null,e)):Bo(uu.bind(null,e)),io((function(){0==(6&Ts)&&Uo()})),n=null;else{switch(xt(r)){case 1:n=Ge;break;case 4:n=Ye;break;case 16:default:n=Je;break;case 536870912:n=tt}n=Mu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Zs=-1,eu=0,0!=(6&Ts))throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var o=pt(e,e===Ms?$s:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=vu(e,o);else{t=o;var a=Ts;Ts|=2;var i=mu();for(Ms===e&&$s===t||(Vs=null,Us=Ke()+500,fu(e,t));;)try{bu();break}catch(t){hu(e,t)}ka(),Os.current=i,Ts=a,null!==Is?t=0:(Ms=null,$s=0,t=Ns)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(o=a,t=iu(e,a))),1===t)throw r=As,fu(e,0),su(e,o),ou(e,Ke()),r;if(6===t)su(e,o);else{if(a=e.current.alternate,0==(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=vu(e,o))&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t))throw r=As,fu(e,0),su(e,o),ou(e,Ke()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:ku(e,Ws,Vs);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Bs+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&o)!==o){tu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ro(ku.bind(null,e,Ws,Vs),t);break}ku(e,Ws,Vs);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var l=31-ot(o);i=1<<l,(l=t[l])>a&&(a=l),o&=~i}if(o=a,10<(o=(120>(o=Ke()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cs(o/1960))-o)){e.timeoutHandle=ro(ku.bind(null,e,Ws,Vs),o);break}ku(e,Ws,Vs);break;default:throw Error(n(329))}}}return ou(e,Ke()),e.callbackNode===r?au.bind(null,e):null}function iu(e,t){var n=Ds;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ws,Ws=n,null!==t&&lu(t)),e}function lu(e){null===Ws?Ws=e:Ws.push.apply(Ws,e)}function su(e,t){for(t&=~Fs,t&=~_s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Ts))throw Error(n(327));Su();var t=pt(e,0);if(0==(1&t))return ou(e,Ke()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=As,fu(e,0),su(e,t),ou(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Ws,Vs),ou(e,Ke()),null}function cu(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Us=Ke()+500,Do&&Uo())}}function du(e){null!==Gs&&0===Gs.tag&&0==(6&Ts)&&Su();var t=Ts;Ts|=1;var n=Rs.transition,r=bt;try{if(Rs.transition=null,bt=1,e)return e()}finally{bt=r,Rs.transition=n,0==(6&(Ts=t))&&Uo()}}function pu(){js=Ls.current,Oo(Ls)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:ai(),Oo(Mo),Oo(To),di();break;case 5:li(r);break;case 4:ai();break;case 13:case 19:Oo(si);break;case 10:Sa(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Ms=e,Is=e=Lu(e.current,null),$s=js=t,Ns=0,As=null,Fs=_s=zs=0,Ws=Ds=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Pa=null}return e}function hu(e,t){for(;;){var r=Is;try{if(ka(),pi.current=il,yi){for(var o=mi.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}yi=!1}if(hi=0,vi=gi=mi=null,bi=!1,xi=0,Ps.current=null,null===r||null===r.return){Ns=1,As=t,Is=null;break}e:{var i=e,l=r.return,s=r,u=t;if(t=$s,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,yl(h,l,s,0,t),1&h.mode&&gl(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){gl(i,c,t),gu();break e}u=Error(n(426))}else if(aa&&1&s.mode){var v=vl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),yl(v,l,s,0,t),ma(cl(u,s));break e}}i=u=cl(u,s),4!==Ns&&(Ns=2),null===Ds?Ds=[i]:Ds.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,za(i,hl(0,u,t));break e;case 1:s=u;var y=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ks||!Ks.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,za(i,ml(i,s,t));break e}}i=i.return}while(null!==i)}wu(r)}catch(e){t=e,Is===r&&null!==r&&(Is=r=r.return);continue}break}}function mu(){var e=Os.current;return Os.current=il,null===e?il:e}function gu(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===Ms||0==(268435455&zs)&&0==(268435455&_s)||su(Ms,$s)}function vu(e,t){var r=Ts;Ts|=2;var o=mu();for(Ms===e&&$s===t||(Vs=null,fu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(ka(),Ts=r,Os.current=o,null!==Is)throw Error(n(261));return Ms=null,$s=0,Ns}function yu(){for(;null!==Is;)xu(Is)}function bu(){for(;null!==Is&&!He();)xu(Is)}function xu(e){var t=Es(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?wu(e):Is=t,Ps.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,js)))return void(Is=n)}else{if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ns=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ns&&(Ns=5)}function ku(e,t,r){var o=bt,a=Rs.transition;try{Rs.transition=null,bt=1,function(e,t,r,o){do{Su()}while(null!==Gs);if(0!=(6&Ts))throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ot(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ms&&(Is=Ms=null,$s=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Qs||(Qs=!0,Mu(Je,(function(){return Su(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Rs.transition,Rs.transition=null;var l=bt;bt=1;var s=Ts;Ts|=4,Ps.current=null,function(e,t){if(eo=Vt,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var l=0,s=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==a&&3!==p.nodeType||(s=l+a),p!==i||0!==o&&3!==p.nodeType||(u=l+o),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++c===a&&(s=l),f===i&&++d===o&&(u=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Vt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:va(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=ns,ns=!1}(e,r),vs(r,e),hr(to),Vt=!!eo,to=eo=null,e.current=r,bs(r),qe(),Ts=s,bt=l,Rs.transition=i}else e.current=r;if(Qs&&(Qs=!1,Gs=e,Xs=a),i=e.pendingLanes,0===i&&(Ks=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ke()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Hs)throw Hs=!1,e=qs,qs=null,e;0!=(1&Xs)&&0!==e.tag&&Su(),i=e.pendingLanes,0!=(1&i)?e===Js?Ys++:(Ys=0,Js=e):Ys=0,Uo()}(e,t,r,o)}finally{Rs.transition=a,bt=o}return null}function Su(){if(null!==Gs){var e=xt(Xs),t=Rs.transition,r=bt;try{if(Rs.transition=null,bt=16>e?16:e,null===Gs)var o=!1;else{if(e=Gs,Gs=null,Xs=0,0!=(6&Ts))throw Error(n(331));var a=Ts;for(Ts|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zl=p;else for(;null!==Zl;){var f=(d=Zl).sibling,h=d.return;if(is(d),d===c){Zl=null;break}if(null!==f){f.return=h,Zl=f;break}Zl=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(i=Zl).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zl=y;break e}Zl=i.return}}var b=e.current;for(Zl=b;null!==Zl;){var x=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Zl=x;else e:for(l=b;null!==Zl;){if(0!=(2048&(s=Zl).flags))try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Cu(s,s.return,e)}if(s===l){Zl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Zl=w;break e}Zl=s.return}}if(Ts=a,Uo(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch(e){}o=!0}return o}finally{bt=r,Rs.transition=t}}return!1}function Eu(e,t,n){e=Na(e,t=hl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ou(e,t))}function Cu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=Na(t,e=ml(t,e=cl(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&($s&n)===n&&(4===Ns||3===Ns&&(130023424&$s)===$s&&500>Ke()-Bs?fu(e,0):Fs|=n),ou(e,t)}function Pu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ma(e,t))&&(vt(e,t,n),ou(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Tu(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Pu(e,r)}function Mu(e,t){return Ue(e,t)}function Iu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $u(e,t,n,r){return new Iu(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lu(e,t){var n=e.alternate;return null===n?((n=$u(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,r,o,a,i){var l=2;if(o=e,"function"==typeof e)ju(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Au(r.children,a,i,t);case w:l=8,a|=8;break;case k:return(e=$u(12,r,t,2|a)).elementType=k,e.lanes=i,e;case O:return(e=$u(13,r,t,a)).elementType=O,e.lanes=i,e;case P:return(e=$u(19,r,t,a)).elementType=P,e.lanes=i,e;case M:return zu(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:l=10;break e;case E:l=9;break e;case C:l=11;break e;case R:l=14;break e;case T:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=$u(l,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Au(e,t,n,r){return(e=$u(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=$u(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function _u(e,t,n){return(e=$u(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=$u(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Du(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,r,o,a,i,l,s){return e=new Du(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=$u(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(a),e}function Bu(e){if(!e)return Ro;e:{if(_e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(jo(r))return Ao(e,r,t)}return t}function Uu(e,t,n,r,o,a,i,l,s){return(e=Wu(n,r,!0,e,0,a,0,l,s)).context=Bu(null),n=e.current,(a=La(r=tu(),o=nu(n))).callback=null!=t?t:null,Na(n,a,o),e.current.lanes=o,vt(e,o,r),ou(e,r),e}function Vu(e,t,n,r){var o=t.current,a=tu(),i=nu(o);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=La(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Na(o,t,i))&&(ru(e,o,i,a),Aa(e,o,i)),i}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ku(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mo.current)xl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return xl=!1,function(e,t,n){switch(t.tag){case 3:Ml(t),ha();break;case 5:ii(t);break;case 1:jo(t.type)&&zo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(si,1&si.current),t.flags|=128,null):0!=(n&t.child.childLanes)?_l(e,t,n):(Po(si,1&si.current),null!==(e=Hl(e,t,n))?e.sibling:null);Po(si,1&si.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ul(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(si,si.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return Hl(e,t,n)}(e,t,r);xl=0!=(131072&e.flags)}else xl=!1,aa&&0!=(1048576&t.flags)&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Vl(e,t),e=t.pendingProps;var a=$o(t,To.current);Ca(t,r),a=Ei(null,t,o,e,a,r);var i=Ci();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(o)?(i=!0,zo(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,$a(t),a.updater=Ba,t.stateNode=a,a._reactInternals=t,qa(t,o,e,r),t=Tl(null,t,o,!0,i,r)):(t.tag=0,aa&&i&&ta(t),wl(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===C)return 11;if(e===R)return 14}return 2}(o),e=va(o,e),a){case 0:t=Pl(null,t,o,e,r);break e;case 1:t=Rl(null,t,o,e,r);break e;case 11:t=kl(null,t,o,e,r);break e;case 14:t=Sl(null,t,o,va(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Pl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 1:return o=t.type,a=t.pendingProps,Rl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 3:e:{if(Ml(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,ja(e,t),_a(t,o,null,r);var l=t.memoizedState;if(o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Il(e,t,o,r,a=cl(Error(n(423)),t));break e}if(o!==a){t=Il(e,t,o,r,a=cl(Error(n(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,r=Ja(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ha(),o===a){t=Hl(e,t,r);break e}wl(e,t,o,r)}t=t.child}return t;case 5:return ii(t),null===e&&ca(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,no(o,a)?l=null:null!==i&&no(o,i)&&(t.flags|=32),Ol(e,t),wl(e,t,l,r),t.child;case 6:return null===e&&ca(t),null;case 13:return _l(e,t,r);case 4:return oi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ya(t,null,o,r):wl(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,kl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 7:return wl(e,t,t.pendingProps,r),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,Po(ya,o._currentValue),o._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===a.children&&!Mo.current){t=Hl(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===o){if(1===i.tag){(u=La(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),Ea(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Ea(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,Ca(t,r),o=o(a=Oa(a)),t.flags|=1,wl(e,t,o,r),t.child;case 14:return a=va(o=t.type,t.pendingProps),Sl(e,t,o,a=va(o.type,a),r);case 15:return El(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:va(o,a),Vl(e,t),t.tag=1,jo(o)?(e=!0,zo(t)):e=!1,Ca(t,r),Va(t,o,a),qa(t,o,a,r),Tl(null,t,o,!0,e,r);case 19:return Ul(e,t,r);case 22:return Cl(e,t,r)}throw Error(n(156,t.tag))};var Qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Hu(i);l.call(e)}}Vu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hu(i);a.call(e)}}var i=Uu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=i,e[mo]=i.current,Br(8===e.nodeType?e.parentNode:e),du(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hu(s);l.call(e)}}var s=Wu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),du((function(){Vu(t,s,n,r)})),s}(n,t,e,o,r);return Hu(i)}Xu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vu(e,t,null,null)},Xu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Vu(null,e,null,null)})),t[mo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&zt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Ke()),0==(6&Ts)&&(Us=Ke()+500,Uo()))}break;case 13:du((function(){var t=Ma(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Ku(e,1)}},kt=function(e){if(13===e.tag){var t=Ma(e,134217728);if(null!==t)ru(t,e,134217728,tu());Ku(e,134217728)}},St=function(e){if(13===e.tag){var t=nu(e),n=Ma(e,t);if(null!==n)ru(n,e,t,tu());Ku(e,t)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ye=function(e,t,r){switch(t){case"input":if(G(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=ko(o);if(!a)throw Error(n(90));V(o),G(o,a)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},Ee=cu,Ce=du;var tc={usingClientEntryPoint:!1,Events:[xo,wo,ko,ke,Se,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{nt=oc.inject(rc),rt=oc}catch(e){}}return at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,at.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},at.createRoot=function(e,t){if(!Yu(e))throw Error(n(299));var r=!1,o="",a=Qu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Wu(e,1,!1,null,0,r,0,o,a),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Gu(t)},at.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=We(t))?null:e.stateNode},at.flushSync=function(e){return du(e)},at.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!0,r)},at.hydrateRoot=function(e,t,r){if(!Yu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",l=Qu;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,a,0,i,l),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Xu(t)},at.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!1,r)},at.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},at.unstable_batchedUpdates=cu,at.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,o)},at.version="18.2.0-next-9e3b772b8-20220608",at}it.exports=(Ze||(Ze=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<a&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,$(w);else{var t=n(u);null!==t&&j(x,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,v(C),C=-1),f=!0;var a=p;try{for(b(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!R());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&j(x,g.startTime-o),c=!1}return c}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,C=-1,O=5,P=-1;function R(){return!(e.unstable_now()-P<O)}function T(){if(null!==E){var t=e.unstable_now();P=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof y)k=function(){y(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,I=M.port2;M.port1.onmessage=T,k=function(){I.postMessage(null)}}else k=function(){g(T,0)};function $(e){E=e,S||(S=!0,k())}function j(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,$(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(u,r),null===n(s)&&r===n(u)&&(m?(v(C),C=-1):m=!0,j(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,$(w))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(lt)),lt),tt=ot,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),tt.exports=st();var ut=Ke(ot.exports);function ct(){let e=document.getElementById(U);return(null==e?void 0:e.isConnected)||(e=document.createElement("div"),e.id=U,e.style.height="0px",e.style.overflow="hidden",document.body.appendChild(e)),e.shadowRoot||e.attachShadow({mode:"open"}),e.shadowRoot}class dt extends Xe.exports.PureComponent{constructor(){super(...arguments),this._popup=null}get document(){return this.props.document||document}get devTools(){return ct()}componentDidMount(){this._popup=this.document.createElement("div"),this.devTools.appendChild(this._popup),this._render()}componentDidUpdate(){this._render()}componentWillUnmount(){this._popup&&(ot.exports.unmountComponentAtNode(this._popup),this.devTools.removeChild(this._popup))}_render(){ot.exports.render(Xe.exports.createElement(Xe.exports.Fragment,null,this.props.children),this._popup)}render(){return null}}const pt=e=>new Promise((t=>setTimeout(t,e))),ft=Symbol(),ht=Symbol(),mt="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?Xe.exports.useEffect:Xe.exports.useLayoutEffect,gt=it.exports.unstable_runWithPriority?e=>it.exports.unstable_runWithPriority(it.exports.unstable_NormalPriority,e):e=>e();const vt=(e,t,n)=>{var r;if(!(null==t?void 0:t.length))return!0;const o=null===(r=null==n?void 0:n.find((t=>t.tag===e)))||void 0===r?void 0:r.id;return void 0===o||t.includes(o)};function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}function bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yt(e,t)}var xt=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function wt(){return wt=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},wt.apply(this,arguments)}var kt="undefined"==typeof window;function St(){}function Et(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ct(e){return Array.isArray(e)?e:[e]}function Ot(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pt(e,t,n){return _t(e)?"function"==typeof t?wt({},n,{queryKey:e,queryFn:t}):wt({},t,{queryKey:e}):e}function Rt(e,t,n){return _t(e)?[wt({},t,{queryKey:e}),n]:[e||{},t]}function Tt(e,t){var n=e.active,r=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,l=e.queryKey,s=e.stale;if(_t(l))if(r){if(t.queryHash!==It(l,t.options))return!1}else if(!jt(t.queryKey,l))return!1;var u=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,a);if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c)return!1;if("inactive"===u&&c)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(i&&!i(t)))}function Mt(e,t){var n=e.exact,r=e.fetching,o=e.predicate,a=e.mutationKey;if(_t(a)){if(!t.options.mutationKey)return!1;if(n){if($t(t.options.mutationKey)!==$t(a))return!1}else if(!jt(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function It(e,t){return((null==t?void 0:t.queryKeyHashFn)||$t)(e)}function $t(e){var t,n=Ct(e);return t=n,JSON.stringify(t,(function(e,t){return At(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function jt(e,t){return Lt(Ct(e),Ct(t))}function Lt(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!Lt(e[n],t[n])})))}function Nt(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||At(e)&&At(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{},l=0,s=0;s<a;s++){var u=n?s:o[s];i[u]=Nt(e[u],t[u]),i[u]===e[u]&&l++}return r===a&&l===r?e:i}return t}function At(e){if(!zt(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!zt(n)&&!!n.hasOwnProperty("isPrototypeOf")}function zt(e){return"[object Object]"===Object.prototype.toString.call(e)}function _t(e){return"string"==typeof e||Array.isArray(e)}function Ft(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function Dt(){if("function"==typeof AbortController)return new AbortController}var Wt=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!kt&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}bt(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(xt)),Bt=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!kt&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}bt(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(xt));function Ut(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Vt(e){return"function"==typeof(null==e?void 0:e.cancel)}var Ht=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function qt(e){return e instanceof Ht}var Kt=function(e){var t,n,r,o,a=this,i=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){i=!0},this.continueRetry=function(){i=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){r=e,o=t}));var l=function(t){a.isResolved||(a.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},s=function(t){a.isResolved||(a.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),o(t))};!function r(){if(!a.isResolved){var o;try{o=e.fn()}catch(e){o=Promise.reject(e)}t=function(e){if(!a.isResolved&&(s(new Ht(e)),null==a.abort||a.abort(),Vt(o)))try{o.cancel()}catch(e){}},a.isTransportCancelable=Vt(o),Promise.resolve(o).then(l).catch((function(t){var o,l;if(!a.isResolved){var u,c=null!=(o=e.retry)?o:3,d=null!=(l=e.retryDelay)?l:Ut,p="function"==typeof d?d(a.failureCount,t):d,f=!0===c||"number"==typeof c&&a.failureCount<c||"function"==typeof c&&c(a.failureCount,t);if(!i&&f)a.failureCount++,null==e.onFail||e.onFail(a.failureCount,t),(u=p,new Promise((function(e){setTimeout(e,u)}))).then((function(){if(!Wt.isFocused()||!Bt.isOnline())return new Promise((function(t){n=t,a.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,a.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){i?s(t):r()}));else s(t)}}))}}()},Qt=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Ft((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Ft((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}()),Gt=console;function Xt(){return Gt}var Yt=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=wt({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),Et(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=Nt(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(St).catch(St):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Ot(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var s=Ct(this.queryKey),u=Dt(),c={queryKey:s,pageParam:void 0,meta:this.meta};Object.defineProperty(c,"signal",{enumerable:!0,get:function(){if(u)return a.abortSignalConsumed=!0,u.signal}});var d,p,f={fetchOptions:t,options:this.options,queryKey:s,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(c)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(d=this.options.behavior)||d.onFetch(f));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=f.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(p=f.fetchOptions)?void 0:p.meta});return this.retryer=new Kt({fn:f.fetchFn,abort:null==u||null==(o=u.abort)?void 0:o.bind(u),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){qt(e)&&e.silent||a.dispatch({type:"error",error:e}),qt(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),Xt().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),Qt.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return wt({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return wt({},e,{isPaused:!0});case"continue":return wt({},e,{isPaused:!1});case"fetch":return wt({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return wt({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return qt(o)&&o.revert&&this.revertState?wt({},this.revertState):wt({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return wt({},e,{isInvalidated:!0});case"setState":return wt({},e,t.state);default:return e}},e}(),Jt=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}bt(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:It(o,t),i=this.get(a);return i||(i=new Yt({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(i)),i},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;Qt.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=Rt(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return Tt(n,e)}))},n.findAll=function(e,t){var n=Rt(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return Tt(n,e)})):this.queries},n.notify=function(e){var t=this;Qt.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;Qt.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;Qt.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(xt),Zt=function(){function e(e){this.options=wt({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||en(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(St).catch(St)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),Xt().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new Kt({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return wt({},e,{failureCount:e.failureCount+1});case"pause":return wt({},e,{isPaused:!0});case"continue":return wt({},e,{isPaused:!1});case"loading":return wt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return wt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return wt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return wt({},e,t.state);default:return e}}(this.state,e),Qt.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function en(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}var tn=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}bt(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new Zt({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;Qt.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return Mt(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return Mt(e,t)}))},n.notify=function(e){var t=this;Qt.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return Qt.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(St)}))}),Promise.resolve())}))},t}(xt);function nn(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var rn=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new Jt,this.mutationCache=e.mutationCache||new tn,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=Wt.subscribe((function(){Wt.isFocused()&&Bt.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=Bt.subscribe((function(){Wt.isFocused()&&Bt.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=Rt(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(wt({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=Pt(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return Qt.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,r.setQueryData(o,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=Rt(e,t)[0],r=this.queryCache;Qt.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var r=this,o=Rt(e,t,n),a=o[0],i=o[1],l=this.queryCache,s=wt({},a,{active:!0});return Qt.batch((function(){return l.findAll(a).forEach((function(e){e.reset()})),r.refetchQueries(s,i)}))},t.cancelQueries=function(e,t,n){var r=this,o=Rt(e,t,n),a=o[0],i=o[1],l=void 0===i?{}:i;void 0===l.revert&&(l.revert=!0);var s=Qt.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(l)}))}));return Promise.all(s).then(St).catch(St)},t.invalidateQueries=function(e,t,n){var r,o,a,i=this,l=Rt(e,t,n),s=l[0],u=l[1],c=wt({},s,{active:null==(r=null!=(o=s.refetchActive)?o:s.active)||r,inactive:null!=(a=s.refetchInactive)&&a});return Qt.batch((function(){return i.queryCache.findAll(s).forEach((function(e){e.invalidate()})),i.refetchQueries(c,u)}))},t.refetchQueries=function(e,t,n){var r=this,o=Rt(e,t,n),a=o[0],i=o[1],l=Qt.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.fetch(void 0,wt({},i,{meta:{refetchPage:null==a?void 0:a.refetchPage}}))}))})),s=Promise.all(l).then(St);return(null==i?void 0:i.throwOnError)||(s=s.catch(St)),s},t.fetchQuery=function(e,t,n){var r=Pt(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(St).catch(St)},t.fetchInfiniteQuery=function(e,t,n){var r=Pt(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,i,l,s,u,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],g=(null==(i=e.state.data)?void 0:i.pageParams)||[],v=Dt(),y=null==v?void 0:v.signal,b=g,x=!1,w=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(e,t,n,r){return b=r?[t].concat(b):[].concat(b,[t]),r?[n].concat(e):[].concat(e,[n])},S=function(t,n,r,o){if(x)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:y,pageParam:r,meta:e.meta},i=w(a),l=Promise.resolve(i).then((function(e){return k(t,r,e,o)}));return Vt(i)&&(l.cancel=i.cancel),l};if(m.length)if(f){var E=void 0!==p,C=E?p:nn(e.options,m);l=S(m,E,C)}else if(h){var O=void 0!==p,P=O?p:(s=e.options,u=m,null==s.getPreviousPageParam?void 0:s.getPreviousPageParam(u[0],u));l=S(m,O,P,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam,n=!c||!m[0]||c(m[0],0,m);l=n?S([],t,g[0]):Promise.resolve(k([],g[0],m[0]));for(var r=function(n){l=l.then((function(r){if(!c||!m[n]||c(m[n],n,m)){var o=t?g[n]:nn(e.options,r);return S(r,t,o)}return Promise.resolve(k(r,g[n],m[n]))}))},o=1;o<m.length;o++)r(o)}();else l=S([]);var R=l.then((function(e){return{pages:e,pageParams:b}}));return R.cancel=function(){x=!0,null==v||v.abort(),Vt(l)&&l.cancel()},R}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(St).catch(St)},t.cancelMutations=function(){var e=this,t=Qt.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(St).catch(St)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return $t(e)===$t(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return jt(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return $t(e)===$t(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return jt(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=wt({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=It(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:wt({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),on=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}bt(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),an(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return ln(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return ln(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&sn(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(wt({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(St)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!kt&&!this.currentResult.isStale&&Et(this.options.staleTime)){var t=Ot(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!kt&&!1!==this.options.enabled&&Et(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||Wt.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,s=e!==r,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,d=e.state,p=d.dataUpdatedAt,f=d.error,h=d.errorUpdatedAt,m=d.isFetching,g=d.status,v=!1,y=!1;if(t.optimisticResults){var b=this.hasListeners(),x=!b&&an(e,t),w=b&&sn(e,r,t,o);(x||w)&&(m=!0,p||(g="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==c?void 0:c.isSuccess)&&"error"!==g)n=c.data,p=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==d.data)if(a&&d.data===(null==i?void 0:i.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=Nt(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(e){Xt().error(e),this.selectError=e}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===g||"idle"===g)){var k;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))k=a.data;else if(k="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==k)try{k=t.select(k),!1!==t.structuralSharing&&(k=Nt(null==a?void 0:a.data,k)),this.selectError=null}catch(e){Xt().error(e),this.selectError=e}void 0!==k&&(g="success",n=k,y=!0)}return this.selectError&&(f=this.selectError,n=this.selectResult,h=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:n,dataUpdatedAt:p,error:f,errorUpdatedAt:h,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==g,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:y,isPreviousData:v,isRefetchError:"error"===g&&0!==d.dataUpdatedAt,isStale:un(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var a="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,i=e[r]!==t[r],l=null==a?void 0:a.some((function(e){return e===n})),s=null==o?void 0:o.some((function(e){return e===n}));return i&&!s&&(!a||l)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(wt({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||qt(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;Qt.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(xt);function an(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&ln(e,t,t.refetchOnMount)}function ln(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&un(e,t)}return!1}function sn(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&un(e,n)}function un(e,t){return e.isStaleByTime(t.staleTime)}var cn=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}bt(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,wt({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},t=wt({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;Qt.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(xt),dn=nt.createContext(void 0),pn=nt.createContext(!1);function fn(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=dn),window.ReactQueryClientContext):dn}var hn=function(){var e=nt.useContext(fn(nt.useContext(pn)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},mn=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;nt.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=fn(r);return nt.createElement(pn.Provider,{value:r},nt.createElement(a.Provider,{value:t},o))};var gn,vn=nt.createContext((gn=!1,{clearReset:function(){gn=!1},reset:function(){gn=!0},isReset:function(){return gn}})),yn=function(){return nt.useContext(vn)};function bn(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function xn(e,t,n){var r=nt.useRef(!1),o=nt.useState(0)[1],a=function(e,t,n){return _t(e)?"function"==typeof t?wt({},n,{mutationKey:e,mutationFn:t}):wt({},t,{mutationKey:e}):"function"==typeof e?wt({},t,{mutationFn:e}):wt({},e)}(e,t,n),i=hn(),l=nt.useRef();l.current?l.current.setOptions(a):l.current=new cn(i,a);var s=l.current.getCurrentResult();nt.useEffect((function(){r.current=!0;var e=l.current.subscribe(Qt.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return function(){r.current=!1,e()}}),[]);var u=nt.useCallback((function(e,t){l.current.mutate(e,t).catch(St)}),[]);if(s.error&&bn(void 0,l.current.options.useErrorBoundary,[s.error]))throw s.error;return wt({},s,{mutate:u,mutateAsync:s.mutate})}function wn(e,t,n){return function(e,t){var n=nt.useRef(!1),r=nt.useState(0)[1],o=hn(),a=yn(),i=o.defaultQueryObserverOptions(e);i.optimisticResults=!0,i.onError&&(i.onError=Qt.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Qt.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Qt.batchCalls(i.onSettled)),i.suspense&&("number"!=typeof i.staleTime&&(i.staleTime=1e3),0===i.cacheTime&&(i.cacheTime=1)),(i.suspense||i.useErrorBoundary)&&(a.isReset()||(i.retryOnMount=!1));var l=nt.useState((function(){return new t(o,i)}))[0],s=l.getOptimisticResult(i);if(nt.useEffect((function(){n.current=!0,a.clearReset();var e=l.subscribe(Qt.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return l.updateResult(),function(){n.current=!1,e()}}),[a,l]),nt.useEffect((function(){l.setOptions(i,{listeners:!1})}),[i,l]),i.suspense&&s.isLoading)throw l.fetchOptimistic(i).then((function(e){var t=e.data;null==i.onSuccess||i.onSuccess(t),null==i.onSettled||i.onSettled(t,null)})).catch((function(e){a.clearReset(),null==i.onError||i.onError(e),null==i.onSettled||i.onSettled(void 0,e)}));if(s.isError&&!a.isReset()&&!s.isFetching&&bn(i.suspense,i.useErrorBoundary,[s.error,l.getCurrentQuery()]))throw s.error;return"tracked"===i.notifyOnChangeProps&&(s=l.trackResult(s,i)),s}(Pt(e,t,n),on)}const kn=c();async function Sn(e){const t=await e.text();try{return JSON.parse(t)}catch(e){return t}}const En=e=>e?Object.entries(e).reduce(((e,[t,n])=>Array.isArray(n)||"object"!=typeof n?Object.assign(Object.assign({},e),{[t]:n}):Object.assign(Object.assign({},e),En(n))),{}):{};const Cn=e=>e.replace("/projects/","/projects/{projectId}/");async function On(e,t,n,r){var o,a;const i=(null==n?void 0:n.path)||{};let l=e;const s=Ee(r.apiKey)||r.projectId;void 0!==s&&(i.projectId=s,l=Cn(l)),i&&Object.entries(i).forEach((([e,t])=>{l=l.replace(`{${e}}`,t)}));const u=null===(o=null==n?void 0:n.content)||void 0===o?void 0:o["multipart/form-data"];let c;u&&(c=new FormData,Object.entries(u).forEach((([e,t])=>{if(Array.isArray(t)){let n;return"[object File]"===Object.prototype.toString.call(t)&&(n=t.name),void t.forEach((t=>null==c?void 0:c.append(e,t,n)))}null==c||c.append(e,t)})));const d=JSON.stringify(null===(a=null==n?void 0:n.content)||void 0===a?void 0:a["application/json"]),p=null==n?void 0:n.query;let f="";const h=En(p),m=(g=h,Object.keys(g).filter((e=>!!g[e])).map((e=>Array.isArray(g[e])?g[e].map((t=>encodeURIComponent(e)+"="+encodeURIComponent(t))).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(g[e]))).join("&"));var g;return m&&(f="?"+m),async function(e,t,n){if(void 0===t.apiUrl)throw"Api url not specified";if(void 0===t.apiKey)throw"Api key not specified";return(n=n||{}).headers=n.headers||{},n.headers=Object.assign(Object.assign({},n.headers),{"X-API-Key":t.apiKey}),kn(t.apiUrl+e,n).then((async e=>{if(!e.ok){const t=await Sn(e),n=`${e.status}: ${(null==t?void 0:t.message)||"Error status code from server"}`;throw new Error(n)}const t=await Sn(e);return"object"==typeof t&&null!==t&&(t._internal={version:e.headers.get("X-Tolgee-Version")}),t})).catch((e=>{throw e.message||"Failed to fetch"}))}(l+f,r,{method:t,body:c||d,headers:d?{"Content-Type":"application/json"}:void 0})}const Pn=new rn({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}}),Rn=nt.createContext({}),Tn=({children:e,apiUrl:t,apiKey:n,projectId:r})=>nt.createElement(Rn.Provider,{value:{apiUrl:t,apiKey:n,projectId:r}},nt.createElement(mn,{client:Pn},e)),Mn=e=>{const{url:t,method:n,options:r}=e,o=Be(e,["url","method","options"]),a=Xe.exports.useContext(Rn);return wn([t,null==o?void 0:o.path,null==o?void 0:o.query],(()=>On(t,n,o,a)),r)},In=e=>{const t=hn(),{url:n,method:r,options:o,invalidatePrefix:a}=e,i=Xe.exports.useContext(Rn),l=xn((e=>On(n,r,e,i)),o),s=e=>Object.assign(Object.assign({},e),{onSuccess:(...n)=>{var r;void 0!==a&&$n(t,a),null===(r=null==e?void 0:e.onSuccess)||void 0===r||r.call(e,...n)}}),u=Xe.exports.useCallback(((e,t)=>l.mutate(e,s(t))),[l.mutate]),c=Xe.exports.useCallback(((e,t)=>l.mutateAsync(e,s(t))),[l.mutateAsync]);return Object.assign(Object.assign({},l),{mutate:u,mutateAsync:c})},$n=(e,t)=>e.invalidateQueries((e=>({predicate:t=>{var n;return null===(n=t.queryKey[0])||void 0===n?void 0:n.startsWith(e)}}))(t));function jn(){try{return JSON.parse(localStorage.getItem(H)||"")}catch(e){return[]}}function Ln(e){localStorage.setItem(H,JSON.stringify(e))}const Nn=(e,t,n,r)=>{const o=n.map((([n,o])=>r({language:n,namespace:t},e,o)));return{revert:()=>o.forEach((e=>e.revert()))}};function An({position:e}){return{x:e.x,y:e.y,width:e.width,height:e.height}}function zn(e){return new Promise((t=>{const n=document.createElement("img");n.src=e,n.onload=function(){const e=n.width,r=n.height;t({width:e,height:r})}}))}function _n(e,t,n){return Boolean(null==t?void 0:t.includes(e))||n}const Fn=e=>{const[t,n]=Xe.exports.useState(void 0),[r,o]=Xe.exports.useState(!1),[a,i]=Xe.exports.useState([]),[l,s]=Xe.exports.useState(null);Xe.exports.useEffect((()=>{(async function(){try{return await Pe({message:"TOLGEE_PING",recievingMessage:["TOLGEE_PONG"],attempts:2}).promise,!0}catch(e){return!1}})().then((e=>n(e)))}),[]);const u=In({url:"/v2/image-upload/{ids}",method:"delete"}),c=In({url:"/v2/image-upload",method:"post"}),d=(e,t,n)=>c.mutateAsync({content:{"multipart/form-data":{image:e}}},{onSuccess(e){i((r=>[...r,Object.assign(Object.assign(Object.assign({},e),t),{keyReferences:n.map((e=>Object.assign(Object.assign({},e),{keyId:-1}))),justUploaded:!0})]))}});return{error:u.error||c.error,screenshotsUploading:c.isLoading,takingScreenshot:r,screenshots:a,setScreenshots:i,screenshotDetail:l,setScreenshotDetail:s,handleUploadImages:async function(e){await Promise.all(e.map((async e=>{const t=URL.createObjectURL(e),n=await zn(t);await d(e,n,[])})))},handleTakeScreenshot:async function(t,n,r){o(!0);const{revert:a}=Nn(t,n,Object.entries(r),e.changeTranslation);let i;await pt(400);try{i=await Pe({message:"TOLGEE_TAKE_SCREENSHOT",recievingMessage:["TOLGEE_SCREENSHOT_TAKEN"]}).promise}catch(e){return void console.error(e)}finally{a(),o(!1)}const l=e.findPositions(t,n),s={width:window.innerWidth,height:window.innerHeight},u=await zn(i),c=await fetch(i).then((e=>e.blob())),p=function(e,t,n){const r=t.width/e.width,o=t.height/e.height;return n.map((e=>{var{position:t}=e,n=Be(e,["position"]);return Object.assign(Object.assign({},n),{position:{x:t.x*r,y:t.y*o,width:t.width*r,height:t.height*o}})}))}(s,u,l);d(c,u,p)},handleRemoveScreenshot:function(e){const t=a.find((t=>t.id===e));(null==t?void 0:t.justUploaded)&&u.mutate({path:{ids:[t.id]}}),i(a.filter((t=>t.id!==e)))},deleteImages:function(e){u.mutate({path:{ids:e}})},canTakeScreenshots:t}},Dn=(e,t)=>e.localeCompare(t,"en",{numeric:!0,sensitivity:"base"})<=0,Wn=(e,t)=>{const n=e.findIndex((e=>e.keyName===t.keyName&&(e.keyNamespace||void 0)===(t.keyNamespace||void 0)))||0;let r=n-50,o=n+50;return r<0&&(o+=0-r,r=0),o>e.length&&(r-=o-e.length,o=e.length),r<0&&(r=0),e.slice(r,o)},Bn="v3.20.0",[Un,Vn,Hn]=(e=>{const t=function(e){const t=Xe.exports.createContext({[ft]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});var n;return t[ht]=t.Provider,t.Provider=(n=t.Provider,({value:e,children:t})=>{const r=Xe.exports.useRef(e),o=Xe.exports.useRef(0),[a,i]=Xe.exports.useState(null);a&&(a(e),i(null));const l=Xe.exports.useRef();if(!l.current){const e=new Set,t=(t,n)=>{ot.exports.unstable_batchedUpdates((()=>{o.current+=1;const r={n:o.current};null!=n&&n.suspense&&(r.n*=-1,r.p=new Promise((e=>{i((()=>t=>{r.v=t,delete r.p,e(t)}))}))),e.forEach((e=>e(r))),t()}))};l.current={[ft]:{v:r,n:o,l:e,u:t}}}return mt((()=>{r.current=e,o.current+=1,gt((()=>{l.current[ft].l.forEach((t=>{t({n:o.current,v:e})}))}))}),[e]),Xe.exports.createElement(n,{value:l.current},t)}),delete t.Consumer,t}(null),n=nt.createContext(null);return[r=>{var{children:o}=r,a=Be(r,["children"]);const[i,l]=e(a),s=Xe.exports.useRef(l);s.current=l;const u=Xe.exports.useMemo((()=>{const e={};return Object.keys(s.current).map((t=>{e[t]=(...e)=>{var n,r;return null===(r=(n=s.current)[t])||void 0===r?void 0:r.call(n,...e)}})),e}),[s]);return nt.createElement(t.Provider,{value:i},nt.createElement(n.Provider,{value:u},o))},()=>nt.useContext(n),function(e){return function(e,t){const n=Xe.exports.useContext(e)[ft],{v:{current:r},n:{current:o},l:a}=n,i=t(r),[l,s]=Xe.exports.useReducer(((e,n)=>{if(!n)return[r,i];if("p"in n)throw n.p;if(n.n===o)return Object.is(e[1],i)?e:[r,i];try{if("v"in n){if(Object.is(e[0],n.v))return e;const r=t(n.v);return Object.is(e[1],r)?e:[n.v,r]}}catch(e){}return[...e]}),[r,i]);return Object.is(l[1],i)||s(),mt((()=>(a.add(s),()=>{a.delete(s)})),[a]),l[1]}(t,e)}]})((e=>{var t,n,r,o,a,i,l,s,u,c,d,p,f;const[h,m]=Xe.exports.useState(!1),[g,v]=Xe.exports.useState({}),[y,b]=Xe.exports.useState(!1),[x,w]=Xe.exports.useState(!1),[k,S]=Xe.exports.useState(e.namespace),[E,C]=Xe.exports.useState([]),O="tgpat"===Ce(e.uiProps.apiKey),P=Fn(e.uiProps),{screenshots:R,setScreenshots:T,screenshotDetail:M,setScreenshotDetail:I,screenshotsUploading:$,takingScreenshot:j,handleRemoveScreenshot:L,handleUploadImages:N,deleteImages:A,canTakeScreenshots:z,error:_}=P,F=Be(P,["screenshots","setScreenshots","screenshotDetail","setScreenshotDetail","screenshotsUploading","takingScreenshot","handleRemoveScreenshot","handleUploadImages","deleteImages","canTakeScreenshots","error"]),D=Mn({url:"/v2/api-keys/current",method:"get",options:{enabled:!O}}),W=Mn({url:"/v2/projects/languages",method:"get",options:{onSuccess(e){var t,n;const r=function(e){let t=jn().filter((t=>e.includes(t)));return 0===t.length&&(t=e),t.slice(0,q)}((null===(n=null===(t=e._embedded)||void 0===t?void 0:t.languages)||void 0===n?void 0:n.map((e=>e.tag)))||[]);H(r),Ln(r)}}}),B=In({url:"/v2/projects/keys/create",method:"post"}),U=Xe.exports.useMemo((()=>{var e,t;return(e=>{const t=null==e?void 0:e.find((e=>e.base));return t?[t,...(e||[]).filter((e=>e!==t))]:e})(null===(t=null===(e=W.data)||void 0===e?void 0:e._embedded)||void 0===t?void 0:t.languages)}),[W.data]),[V,H]=Xe.exports.useState(jn()),K=Mn({url:"/v2/projects/translations",method:"get",query:{filterKeyName:[e.keyName],filterNamespace:[k],languages:V},options:{keepPreviousData:!0,onSuccess(e){var t,n,r,o;const a={},i=null===(n=null===(t=e._embedded)||void 0===t?void 0:t.keys)||void 0===n?void 0:n[0];Object.entries((null==i?void 0:i.translations)||{}).forEach((([e,t])=>{a[e]=t.text||""})),v(a),C((null===(r=null==i?void 0:i.keyTags)||void 0===r?void 0:r.map((e=>e.name)))||[]),T((null===(o=null==i?void 0:i.screenshots)||void 0===o?void 0:o.map((e=>Object.assign(Object.assign({},e),{filename:e.filename,justUploaded:!1}))))||[])}}}),Q=In({url:"/v2/projects/keys/{id}/complex-update",method:"put"}),G=In({url:"/v2/projects/big-meta",method:"post"}),X=null===(r=null===(n=null===(t=K.data)||void 0===t?void 0:t._embedded)||void 0===n?void 0:n.keys)||void 0===r?void 0:r[0],Y=void 0!==(null===(o=D.data)||void 0===o?void 0:o.projectId)?`${e.uiProps.apiUrl}/projects/${null===(a=D.data)||void 0===a?void 0:a.projectId}/translations/single?key=${e.keyName}${void 0!==k?`&ns=${k}`:""}`:void 0,[J,Z]=Xe.exports.useState(void 0),[ee,te]=Xe.exports.useState(!1),ne=null===(i=D.data)||void 0===i?void 0:i.permittedLanguageIds;function re(){if(M)I(null);else{e.onClose(),te(!1);const t=oe();t.length&&A(t.map((e=>e.id))),T([])}}Xe.exports.useEffect((()=>{const e=e=>{"Escape"===e.key&&re()};if(!ee)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[ee]);const oe=()=>R.filter((e=>e.justUploaded)),ae=()=>{var e;return(null===(e=null==X?void 0:X.screenshots)||void 0===e?void 0:e.map((e=>e.id)).filter((e=>!R.find((t=>t.id===e)))))||[]};Xe.exports.useEffect((()=>{var t;if(e.defaultValue&&U&&V&&g){const n=U.find((e=>e.base));if(n&&V.includes(n.tag)&&!x){const r=void 0!==(null===(t=null==X?void 0:X.translations)||void 0===t?void 0:t[n.tag]);g[n.tag]||r||v(Object.assign(Object.assign({},g),{[n.tag]:e.defaultValue}))}}}),[U,g,V,e.defaultValue]);const ie=null==U?void 0:U.find((({base:e})=>e)),le=W.isFetching||K.isLoading&&!K.data||D.isFetching,se=W.error||K.error||D.error||B.error||Q.error||G.error||_,ue=null===(l=D.data)||void 0===l?void 0:l.scopes,ce=_n("screenshots.upload",ue,O)||_n("screenshots.delete",ue,O)||((null===(c=null===(u=null===(s=K.data)||void 0===s?void 0:s._embedded)||void 0===u?void 0:u.keys)||void 0===c?void 0:c.length)?_n("translations.edit",ue,O):_n("keys.edit",ue,O)),de=!O&&(le||!ce),pe=!de&&_n("keys.edit",ue,O),fe=Boolean(null===(f=null===(p=null===(d=K.data)||void 0===d?void 0:d._embedded)||void 0===p?void 0:p.keys)||void 0===f?void 0:f.length),he={input:e.keyName,open:e.open,fallbackNamespaces:e.fallbackNamespaces,selectedNs:k,loading:le,saving:y,success:h,error:se,availableLanguages:U,selectedLanguages:(me=V,ge=null==ie?void 0:ie.tag,ge&&me.includes(ge)?[ge,...me.filter((e=>e!==ge))]:me),formDisabled:de,keyData:X,translationsForm:g,container:J,useBrowserWindow:ee,canTakeScreenshots:z,takingScreenshot:j,screenshotsUploading:$,screenshots:R,screenshotDetail:M,linkToPlatform:Y,keyExists:fe,scopes:ue,permittedLanguageIds:ne,tags:E,canEditTags:pe,isPat:O};var me,ge;const ve={onInputChange:function(e,t){m(!1),w(!0),v(Object.assign(Object.assign({},g),{[e]:t}))},handleUploadImages:N,handleTakeScreenshot:function(){F.handleTakeScreenshot(e.keyName,k,g)},handleRemoveScreenshot:L,onSave:async function(){var t;b(!0);try{const n={};Object.entries(g).forEach((([e,t])=>{vt(e,ne,U)&&(n[e]=t)}));const r=await(void 0===X?B.mutateAsync({content:{"application/json":{name:e.keyName,namespace:k||void 0,translations:n,screenshots:R.map((e=>{var t;return{uploadedImageId:e.id,positions:null===(t=e.keyReferences)||void 0===t?void 0:t.map(An)}})),tags:E}}}):Q.mutateAsync({content:{"application/json":{name:e.keyName,namespace:k||void 0,translations:n,screenshotIdsToDelete:ae(),screenshotsToAdd:oe().map((e=>{var t;return{uploadedImageId:e.id,positions:null===(t=e.keyReferences)||void 0===t?void 0:t.map(An)}})),tags:E}},path:{id:X.keyId}})),o=null===(t=r._internal)||void 0===t?void 0:t.version;if(o&&("??"===o||Dn(Bn,o))){const t=Wn(e.uiProps.findPositions(),{keyName:e.keyName,keyNamespace:k});await G.mutateAsync({content:{"application/json":{relatedKeysInOrder:t.map((e=>({keyName:e.keyName,namespace:e.keyNamespace||void 0})))}}})}Nn(e.keyName,k,Object.entries(n),e.uiProps.changeTranslation),e.uiProps.onPermanentChange({key:e.keyName,namespace:k}),K.refetch(),b(!1),m(!0),ee?(await pt(2e3),m(!1)):(await pt(400),e.onClose())}catch(e){console.error(e)}finally{b(!1),m(!1)}},onClose:re,onSelectedLanguagesChange:function(e){e.length&&(H(e),Ln(e))},setContainer:Z,setUseBrowserWindow:te,setScreenshotDetail:I,setSelectedNs:S,setTags:C};return[he,ve]}));function qn(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Kn(){return Kn=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},Kn.apply(this,arguments)}var Qn,Gn,Xn,Yn,Jn={exports:{}};function Zn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Zn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function er(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Zn(e))&&(r&&(r+=" "),r+=t);return r}function tr(){return tr=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},tr.apply(this,arguments)}function nr(e){return"string"==typeof e}function rr(e,t={},n){return nr(e)?t:tr({},t,{ownerState:tr({},t.ownerState,n)})}function or(e,t){return"function"==typeof e?e(t):e}function ar(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ir(e,t){return()=>null}function lr(){return lr=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},lr.apply(this,arguments)}function sr(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function ur(e,t,n={clone:!0}){const r=n.clone?lr({},e):e;return sr(e)&&sr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(sr(t[o])&&o in e&&sr(e[o])?r[o]=ur(e[o],t[o],n):r[o]=t[o])})),r}Jn.exports=function(){if(Yn)return Xn;Yn=1;var e=Gn?Qn:(Gn=1,Qn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Xn=function(){function r(t,n,r,o,a,i){if(i!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}()();const cr=(Jn.exports.element,()=>null);cr.isRequired=(Jn.exports.element.isRequired,()=>null);var dr=cr,pr=(Jn.exports.elementType,()=>null);function fr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var hr,mr={exports:{}},gr={};mr.exports=function(){if(hr)return gr;hr=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case f:case p:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),gr.ContextConsumer=l,gr.ContextProvider=i,gr.Element=t,gr.ForwardRef=u,gr.Fragment=r,gr.Lazy=f,gr.Memo=p,gr.Portal=n,gr.Profiler=a,gr.StrictMode=o,gr.Suspense=c,gr.SuspenseList=d,gr.isAsyncMode=function(){return!1},gr.isConcurrentMode=function(){return!1},gr.isContextConsumer=function(e){return m(e)===l},gr.isContextProvider=function(e){return m(e)===i},gr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},gr.isForwardRef=function(e){return m(e)===u},gr.isFragment=function(e){return m(e)===r},gr.isLazy=function(e){return m(e)===f},gr.isMemo=function(e){return m(e)===p},gr.isPortal=function(e){return m(e)===n},gr.isProfiler=function(e){return m(e)===a},gr.isStrictMode=function(e){return m(e)===o},gr.isSuspense=function(e){return m(e)===c},gr.isSuspenseList=function(e){return m(e)===d},gr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},gr.typeOf=m,gr}();const vr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yr(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(vr);return t&&t[1]||""}(e)||t}function br(e,t,n){const r=yr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var xr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var wr=Jn.exports.oneOfType([Jn.exports.func,Jn.exports.object]);function kr(e){if("string"!=typeof e)throw new Error(fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sr(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Er(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Cr(e,t){return()=>null}function Or(e,t){return Xe.exports.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Pr(e){return e&&e.ownerDocument||document}function Rr(e){return Pr(e).defaultView||window}function Tr(e,t){return()=>null}function Mr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ir="undefined"!=typeof window?Xe.exports.useLayoutEffect:Xe.exports.useEffect;let $r=0;const jr=rt.useId;function Lr(e){if(void 0!==jr){const t=jr();return null!=e?e:t}return function(e){const[t,n]=Xe.exports.useState(e),r=e||t;return Xe.exports.useEffect((()=>{null==t&&($r+=1,n(`mui-${$r}`))}),[t]),r}(e)}function Nr(e,t,n,r,o){return null}function Ar({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Xe.exports.useRef(void 0!==e),[a,i]=Xe.exports.useState(t);return[o?e:a,Xe.exports.useCallback((e=>{o||i(e)}),[])]}function zr(e){const t=Xe.exports.useRef(e);return Ir((()=>{t.current=e})),Xe.exports.useCallback(((...e)=>(0,t.current)(...e)),[])}function _r(e,t){return Xe.exports.useMemo((()=>null==e&&null==t?null:n=>{Mr(e,n),Mr(t,n)}),[e,t])}let Fr,Dr=!0,Wr=!1;const Br={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ur(e){e.metaKey||e.altKey||e.ctrlKey||(Dr=!0)}function Vr(){Dr=!1}function Hr(){"hidden"===this.visibilityState&&Wr&&(Dr=!0)}function qr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Dr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Br[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Kr(){const e=Xe.exports.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ur,!0),t.addEventListener("mousedown",Vr,!0),t.addEventListener("pointerdown",Vr,!0),t.addEventListener("touchstart",Vr,!0),t.addEventListener("visibilitychange",Hr,!0))}),[]),t=Xe.exports.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Wr=!0,window.clearTimeout(Fr),Fr=window.setTimeout((()=>{Wr=!1}),100),t.current=!1,!0)},ref:e}}function Qr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Gr;function Xr(){if(Gr)return Gr;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Gr="reverse",e.scrollLeft>0?Gr="default":(e.scrollLeft=1,0===e.scrollLeft&&(Gr="negative")),document.body.removeChild(e),Gr}var Yr=e=>{const t=Xe.exports.useRef({});return Xe.exports.useEffect((()=>{t.current=e})),t.current};var Jr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Zr(){return null}Zr.isRequired=Zr;var eo=Zr;function to(e,t){const n=lr({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}function no(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}const ro=e=>e;var oo=(()=>{let e=ro;return{configure(t){e=t},generate:t=>e(t),reset(){e=ro}}})();const ao={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function io(e,t,n="Mui"){const r=ao[t];return r?`${n}-${r}`:`${oo.generate(e)}-${t}`}function lo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=io(e,t,n)})),r}var so=Object.freeze({__proto__:null,chainPropTypes:ir,deepmerge:ur,isPlainObject:sr,elementAcceptingRef:dr,elementTypeAcceptingRef:pr,exactProp:function(e){return e},formatMuiErrorMessage:fr,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case mr.exports.ForwardRef:return br(e,e.render,"ForwardRef");case mr.exports.Memo:return br(e,e.type,"memo");default:return}}},HTMLElementType:function(e,t,n,r,o){return null},ponyfillGlobal:xr,refType:wr,unstable_capitalize:kr,unstable_createChainedFunction:Sr,unstable_debounce:Er,unstable_deprecatedPropType:Cr,unstable_isMuiElement:Or,unstable_ownerDocument:Pr,unstable_ownerWindow:Rr,unstable_requirePropFactory:Tr,unstable_setRef:Mr,unstable_useEnhancedEffect:Ir,unstable_useId:Lr,unstable_unsupportedProp:Nr,unstable_useControlled:Ar,unstable_useEventCallback:zr,unstable_useForkRef:_r,unstable_useIsFocusVisible:Kr,unstable_getScrollbarSize:Qr,unstable_detectScrollType:Xr,unstable_getNormalizedScrollLeft:function(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Xr()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}},usePreviousProps:Yr,visuallyHidden:Jr,integerPropType:eo,internal_resolveProps:to,unstable_composeClasses:no,unstable_generateUtilityClass:io,unstable_generateUtilityClasses:lo,unstable_ClassNameGenerator:oo});function uo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function co(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=er(null==o?void 0:o.className,null==r?void 0:r.className,a,null==n?void 0:n.className),t=tr({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=tr({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(tr({},o,r)),l=uo(r),s=uo(o),u=t(i),c=er(null==u?void 0:u.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=tr({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=tr({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const po=["elementType","externalSlotProps","ownerState"];function fo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=ar(e,po),i=or(r,o),{props:l,internalRef:s}=co(tr({},a,{externalSlotProps:i}));return rr(n,tr({},l,{ref:_r(s,_r(null==i?void 0:i.ref,null==(t=e.additionalProps)?void 0:t.ref))}),o)}function ho(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function mo(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const go=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=ho(u));const c=u?e.filter((e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=ho(r)),"start"===o?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}(),vo=5;function yo(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:r=!1,blurOnSelect:o=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:i=!1,componentName:l="useAutocomplete",defaultValue:s=(e.multiple?[]:null),disableClearable:u=!1,disableCloseOnSelect:c=!1,disabled:d,disabledItemsFocusable:p=!1,disableListWrap:f=!1,filterOptions:h=go,filterSelectedOptions:m=!1,freeSolo:g=!1,getOptionDisabled:v,getOptionLabel:y=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:b,handleHomeEndKeys:x=!e.freeSolo,id:w,includeInputInList:k=!1,inputValue:S,isOptionEqualToValue:E=((e,t)=>e===t),multiple:C=!1,onChange:O,onClose:P,onHighlightChange:R,onInputChange:T,onOpen:M,open:I,openOnFocus:$=!1,options:j,readOnly:L=!1,selectOnFocus:N=!e.freeSolo,value:A}=e,z=Lr(w);let _=y;_=e=>{const t=y(e);return"string"!=typeof t?String(t):t};const F=Xe.exports.useRef(!1),D=Xe.exports.useRef(!0),W=Xe.exports.useRef(null),B=Xe.exports.useRef(null),[U,V]=Xe.exports.useState(null),[H,q]=Xe.exports.useState(-1),K=n?0:-1,Q=Xe.exports.useRef(K),[G,X]=Ar({controlled:A,default:s,name:l}),[Y,J]=Ar({controlled:S,default:"",name:l,state:"inputValue"}),[Z,ee]=Xe.exports.useState(!1),te=Xe.exports.useCallback(((e,t)=>{if(!(C?G.length<t.length:null!==t)&&!a)return;let n;if(C)n="";else if(null==t)n="";else{const e=_(t);n="string"==typeof e?e:""}Y!==n&&(J(n),T&&T(e,n,"reset"))}),[_,Y,C,T,J,a,G]),ne=Xe.exports.useRef();Xe.exports.useEffect((()=>{const e=G!==ne.current;ne.current=G,Z&&!e||g&&!e||te(null,G)}),[G,te,Z,ne,g]);const[re,oe]=Ar({controlled:I,default:!1,name:l,state:"open"}),[ae,ie]=Xe.exports.useState(!0),le=!C&&null!=G&&Y===_(G),se=re&&!L,ue=se?h(j.filter((e=>!m||!(C?G:[G]).some((t=>null!==t&&E(e,t))))),{inputValue:le&&ae?"":Y,getOptionLabel:_}):[],ce=re&&ue.length>0&&!L,de=zr((e=>{-1===e?W.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));Xe.exports.useEffect((()=>{C&&H>G.length-1&&(q(-1),de(-1))}),[G,C,H,de]);const pe=zr((({event:e,index:t,reason:n="auto"})=>{if(Q.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),R&&R(e,-1===t?null:ue[t],n),!B.current)return;const r=B.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));const o=B.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=B.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add("Mui-focused"),"keyboard"===n&&a.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==n)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(b?1.3:0)<o.scrollTop&&(o.scrollTop=e.offsetTop-e.offsetHeight*(b?1.3:0))}})),fe=zr((({event:e,diff:n,direction:r="next",reason:o="auto"})=>{if(!se)return;const a=function(e,t){if(!B.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ue.length||"previous"===t&&-1===n)return-1;const e=B.current.querySelector(`[data-option-index="${n}"]`),r=!p&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=ue.length-1;if("reset"===n)return K;if("start"===n)return 0;if("end"===n)return e;const t=Q.current+n;return t<0?-1===t&&k?-1:f&&-1!==Q.current||Math.abs(n)>1?0:e:t>e?t===e+1&&k?-1:f||Math.abs(n)>1?e:0:t})(),r);if(pe({index:a,reason:o,event:e}),t&&"reset"!==n)if(-1===a)W.current.value=Y;else{const e=_(ue[a]);W.current.value=e;0===e.toLowerCase().indexOf(Y.toLowerCase())&&Y.length>0&&W.current.setSelectionRange(Y.length,e.length)}})),he=Xe.exports.useCallback((()=>{if(!se)return;const e=C?G[0]:G;if(0!==ue.length&&null!=e){if(B.current)if(null==e)Q.current>=ue.length-1?pe({index:ue.length-1}):pe({index:Q.current});else{const t=ue[Q.current];if(C&&t&&-1!==mo(G,(e=>E(t,e))))return;const n=mo(ue,(t=>E(t,e)));-1===n?fe({diff:"reset"}):pe({index:n})}}else fe({diff:"reset"})}),[ue.length,!C&&G,m,fe,pe,se,Y,C]),me=zr((e=>{Mr(B,e),e&&he()}));Xe.exports.useEffect((()=>{he()}),[he]);const ge=e=>{re||(oe(!0),ie(!0),M&&M(e))},ve=(e,t)=>{re&&(oe(!1),P&&P(e,t))},ye=(e,t,n,r)=>{if(C){if(G.length===t.length&&G.every(((e,n)=>e===t[n])))return}else if(G===t)return;O&&O(e,t,n,r),X(t)},be=Xe.exports.useRef(!1),xe=(e,t,n="selectOption",r="options")=>{let a=n,i=t;if(C){i=Array.isArray(G)?G.slice():[];const e=mo(i,(e=>E(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),a="removeOption")}te(e,i),ye(e,i,a,{option:t}),c||e&&(e.ctrlKey||e.metaKey)||ve(e,a),(!0===o||"touch"===o&&be.current||"mouse"===o&&!be.current)&&W.current.blur()};const we=(e,t)=>{if(!C)return;""===Y&&ve(e,"toggleInput");let n=H;-1===H?""===Y&&"previous"===t&&(n=G.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===G.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===G.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),q(n),de(n)},ke=e=>{F.current=!0,J(""),T&&T(e,"","clear"),ye(e,C?[]:null,"clear")},Se=e=>n=>{if(e.onKeyDown&&e.onKeyDown(n),!n.defaultMuiPrevented&&(-1!==H&&-1===["ArrowLeft","ArrowRight"].indexOf(n.key)&&(q(-1),de(-1)),229!==n.which))switch(n.key){case"Home":se&&x&&(n.preventDefault(),fe({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":se&&x&&(n.preventDefault(),fe({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),fe({diff:-vo,direction:"previous",reason:"keyboard",event:n}),ge(n);break;case"PageDown":n.preventDefault(),fe({diff:vo,direction:"next",reason:"keyboard",event:n}),ge(n);break;case"ArrowDown":n.preventDefault(),fe({diff:1,direction:"next",reason:"keyboard",event:n}),ge(n);break;case"ArrowUp":n.preventDefault(),fe({diff:-1,direction:"previous",reason:"keyboard",event:n}),ge(n);break;case"ArrowLeft":we(n,"previous");break;case"ArrowRight":we(n,"next");break;case"Enter":if(-1!==Q.current&&se){const e=ue[Q.current],r=!!v&&v(e);if(n.preventDefault(),r)return;xe(n,e,"selectOption"),t&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else g&&""!==Y&&!1===le&&(C&&n.preventDefault(),xe(n,Y,"createOption","freeSolo"));break;case"Escape":se?(n.preventDefault(),n.stopPropagation(),ve(n,"escape")):i&&(""!==Y||C&&G.length>0)&&(n.preventDefault(),n.stopPropagation(),ke(n));break;case"Backspace":if(C&&!L&&""===Y&&G.length>0){const e=-1===H?G.length-1:H,t=G.slice();t.splice(e,1),ye(n,t,"removeOption",{option:G[e]})}}},Ee=e=>{ee(!0),$&&!F.current&&ge(e)},Ce=e=>{null!==B.current&&B.current.parentElement.contains(document.activeElement)?W.current.focus():(ee(!1),D.current=!0,F.current=!1,r&&-1!==Q.current&&se?xe(e,ue[Q.current],"blur"):r&&g&&""!==Y?xe(e,Y,"blur","freeSolo"):a&&te(e,G),ve(e,"blur"))},Oe=e=>{const t=e.target.value;Y!==t&&(J(t),ie(!1),T&&T(e,t,"input")),""===t?u||C||ye(e,null,"clear"):ge(e)},Pe=e=>{pe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Re=()=>{be.current=!0},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));xe(e,ue[t],"selectOption"),be.current=!1},Me=e=>t=>{const n=G.slice();n.splice(e,1),ye(t,n,"removeOption",{option:G[e]})},Ie=e=>{re?ve(e,"toggleInput"):ge(e)},$e=e=>{e.target.getAttribute("id")!==z&&e.preventDefault()},je=()=>{W.current.focus(),N&&D.current&&W.current.selectionEnd-W.current.selectionStart==0&&W.current.select(),D.current=!1},Le=e=>{""!==Y&&re||Ie(e)};let Ne=g&&Y.length>0;Ne=Ne||(C?G.length>0:null!==G);let Ae=ue;return b&&(Ae=ue.reduce(((e,t,n)=>{const r=b(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),d&&Z&&Ce(),{getRootProps:(e={})=>tr({"aria-owns":ce?`${z}-listbox`:null},e,{onKeyDown:Se(e),onMouseDown:$e,onClick:je}),getInputLabelProps:()=>({id:`${z}-label`,htmlFor:z}),getInputProps:()=>({id:z,value:Y,onBlur:Ce,onFocus:Ee,onChange:Oe,onMouseDown:Le,"aria-activedescendant":se?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ce?`${z}-listbox`:void 0,"aria-expanded":ce,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:ke}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ie}),getTagProps:({index:e})=>tr({key:e,"data-tag-index":e,tabIndex:-1},!L&&{onDelete:Me(e)}),getListboxProps:()=>({role:"listbox",id:`${z}-listbox`,"aria-labelledby":`${z}-label`,ref:me,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(C?G:[G]).some((e=>null!=e&&E(t,e))),r=!!v&&v(t);return{key:_(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseOver:Pe,onClick:Te,onTouchStart:Re,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:z,inputValue:Y,value:G,dirty:Ne,popupOpen:se,focused:Z||-1!==H,anchorEl:U,setAnchorEl:V,focusedTag:H,groupedOptions:Ae}}var bo,xo={exports:{}},wo={};xo.exports=function(){if(bo)return wo;bo=1;var e=Xe.exports,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var l,s={},u=null,c=null;for(l in void 0!==i&&(u=""+i),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,l)&&!a.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:o.current}}return wo.Fragment=n,wo.jsx=i,wo.jsxs=i,wo}();const ko=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function So(e){const t=[],n=[];return Array.from(e.querySelectorAll(ko)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Eo(){return!0}function Co(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=So,isEnabled:i=Eo,open:l}=e,s=Xe.exports.useRef(),u=Xe.exports.useRef(null),c=Xe.exports.useRef(null),d=Xe.exports.useRef(null),p=Xe.exports.useRef(null),f=Xe.exports.useRef(!1),h=Xe.exports.useRef(null),m=_r(t.ref,h),g=Xe.exports.useRef(null);Xe.exports.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Xe.exports.useEffect((()=>{if(!l||!h.current)return;const e=Pr(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Xe.exports.useEffect((()=>{if(!l||!h.current)return;const e=Pr(h.current),t=t=>{const{current:n}=h;if(null!==n)if(e.hasFocus()&&!r&&i()&&!s.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=a(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];e?n.focus():t.focus()}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return xo.exports.jsxs(Xe.exports.Fragment,{children:[xo.exports.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Xe.exports.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),xo.exports.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var Oo="top",Po="bottom",Ro="right",To="left",Mo="auto",Io=[Oo,Po,Ro,To],$o="start",jo="end",Lo="clippingParents",No="viewport",Ao="popper",zo="reference",_o=Io.reduce((function(e,t){return e.concat([t+"-"+$o,t+"-"+jo])}),[]),Fo=[].concat(Io,[Mo]).reduce((function(e,t){return e.concat([t,t+"-"+$o,t+"-"+jo])}),[]),Do=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function Bo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uo(e){return e instanceof Bo(e).Element||e instanceof Element}function Vo(e){return e instanceof Bo(e).HTMLElement||e instanceof HTMLElement}function Ho(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Bo(e).ShadowRoot||e instanceof ShadowRoot)}var qo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Vo(o)&&Wo(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Vo(r)&&Wo(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ko(e){return e.split("-")[0]}var Qo=Math.max,Go=Math.min,Xo=Math.round;function Yo(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Jo(){return!/^((?!chrome|android).)*safari/i.test(Yo())}function Zo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Vo(e)&&(o=e.offsetWidth>0&&Xo(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Xo(r.height)/e.offsetHeight||1);var i=(Uo(e)?Bo(e):window).visualViewport,l=!Jo()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,d=r.height/a;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function ea(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ta(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ho(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function na(e){return Bo(e).getComputedStyle(e)}function ra(e){return["table","td","th"].indexOf(Wo(e))>=0}function oa(e){return((Uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function aa(e){return"html"===Wo(e)?e:e.assignedSlot||e.parentNode||(Ho(e)?e.host:null)||oa(e)}function ia(e){return Vo(e)&&"fixed"!==na(e).position?e.offsetParent:null}function la(e){for(var t=Bo(e),n=ia(e);n&&ra(n)&&"static"===na(n).position;)n=ia(n);return n&&("html"===Wo(n)||"body"===Wo(n)&&"static"===na(n).position)?t:n||function(e){var t=/firefox/i.test(Yo());if(/Trident/i.test(Yo())&&Vo(e)&&"fixed"===na(e).position)return null;var n=aa(e);for(Ho(n)&&(n=n.host);Vo(n)&&["html","body"].indexOf(Wo(n))<0;){var r=na(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function sa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Qo(e,Go(t,n))}function ca(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function da(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var pa=function(e,t){return ca("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:da(e,Io))};var fa={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ko(n.placement),s=sa(l),u=[To,Ro].indexOf(l)>=0?"height":"width";if(a&&i){var c=pa(o.padding,n),d=ea(a),p="y"===s?Oo:To,f="y"===s?Po:Ro,h=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],m=i[s]-n.rects.reference[s],g=la(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[p],x=v-d[u]-c[f],w=v/2-d[u]/2+y,k=ua(b,w,x),S=s;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ta(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ha(e){return e.split("-")[1]}var ma={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ga(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=To,x=Oo,w=window;if(u){var k=la(n),S="clientHeight",E="clientWidth";if(k===Bo(n)&&"static"!==na(k=oa(n)).position&&"absolute"===l&&(S="scrollHeight",E="scrollWidth"),o===Oo||(o===To||o===Ro)&&a===jo)x=Po,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-r.height,m*=s?1:-1;if(o===To||(o===Oo||o===Po)&&a===jo)b=Ro,f-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,f*=s?1:-1}var C,O=Object.assign({position:l},u&&ma),P=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Xo(t*r)/r||0,y:Xo(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=P.x,m=P.y,s?Object.assign({},O,((C={})[x]=y?"0":"",C[b]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[x]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var va={passive:!0};var ya={left:"right",right:"left",bottom:"top",top:"bottom"};function ba(e){return e.replace(/left|right|bottom|top/g,(function(e){return ya[e]}))}var xa={start:"end",end:"start"};function wa(e){return e.replace(/start|end/g,(function(e){return xa[e]}))}function ka(e){var t=Bo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sa(e){return Zo(oa(e)).left+ka(e).scrollLeft}function Ea(e){var t=na(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ca(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:Vo(e)&&Ea(e)?e:Ca(aa(e))}function Oa(e,t){var n;void 0===t&&(t=[]);var r=Ca(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Bo(r),i=o?[a].concat(a.visualViewport||[],Ea(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Oa(aa(i)))}function Pa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ra(e,t,n){return t===No?Pa(function(e,t){var n=Bo(e),r=oa(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=Jo();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Sa(e),y:s}}(e,n)):Uo(t)?function(e,t){var n=Zo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Pa(function(e){var t,n=oa(e),r=ka(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Qo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Sa(e),s=-r.scrollTop;return"rtl"===na(o||n).direction&&(l+=Qo(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(oa(e)))}function Ta(e,t,n,r){var o="clippingParents"===t?function(e){var t=Oa(aa(e)),n=["absolute","fixed"].indexOf(na(e).position)>=0&&Vo(e)?la(e):e;return Uo(n)?t.filter((function(e){return Uo(e)&&ta(e,n)&&"body"!==Wo(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Ra(e,n,r);return t.top=Qo(o.top,t.top),t.right=Go(o.right,t.right),t.bottom=Go(o.bottom,t.bottom),t.left=Qo(o.left,t.left),t}),Ra(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ma(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Ko(o):null,i=o?ha(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Oo:t={x:l,y:n.y-r.height};break;case Po:t={x:l,y:n.y+n.height};break;case Ro:t={x:n.x+n.width,y:s};break;case To:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?sa(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case $o:t[u]=t[u]-(n[c]/2-r[c]/2);break;case jo:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Ia(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?Lo:l,u=n.rootBoundary,c=void 0===u?No:u,d=n.elementContext,p=void 0===d?Ao:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=ca("number"!=typeof g?g:da(g,Io)),y=p===Ao?zo:Ao,b=e.rects.popper,x=e.elements[h?y:p],w=Ta(Uo(x)?x:x.contextElement||oa(e.elements.popper),s,c,i),k=Zo(e.elements.reference),S=Ma({reference:k,element:b,strategy:"absolute",placement:o}),E=Pa(Object.assign({},b,S)),C=p===Ao?E:k,O={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},P=e.modifiersData.offset;if(p===Ao&&P){var R=P[o];Object.keys(O).forEach((function(e){var t=[Ro,Po].indexOf(e)>=0?1:-1,n=[Oo,Po].indexOf(e)>=0?"y":"x";O[e]+=R[n]*t}))}return O}function $a(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Fo:s,c=ha(r),d=c?l?_o:_o.filter((function(e){return ha(e)===c})):Io,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Ia(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Ko(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ja={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Ko(g),y=s||(v===g||!h?[ba(g)]:function(e){if(Ko(e)===Mo)return[];var t=ba(e);return[wa(e),t,wa(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Ko(n)===Mo?$a(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,E=b[0],C=0;C<b.length;C++){var O=b[C],P=Ko(O),R=ha(O)===$o,T=[Oo,Po].indexOf(P)>=0,M=T?"width":"height",I=Ia(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),$=T?R?Ro:To:R?Po:Oo;x[M]>w[M]&&($=ba($));var j=ba($),L=[];if(a&&L.push(I[P]<=0),l&&L.push(I[$]<=0,I[j]<=0),L.every((function(e){return e}))){E=O,S=!1;break}k.set(O,L)}if(S)for(var N=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},A=h?3:1;A>0;A--){if("break"===N(A))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Na(e){return[Oo,Ro,Po,To].some((function(t){return e[t]>=0}))}var Aa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Fo.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ko(e),o=[To,Oo].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[To,Ro].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var za={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Ia(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=Ko(t.placement),y=ha(t.placement),b=!y,x=sa(v),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(a){var T,M="y"===x?Oo:To,I="y"===x?Po:Ro,$="y"===x?"height":"width",j=k[x],L=j+g[M],N=j-g[I],A=f?-E[$]/2:0,z=y===$o?S[$]:E[$],_=y===$o?-E[$]:-S[$],F=t.elements.arrow,D=f&&F?ea(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[M],U=W[I],V=ua(0,S[$],D[$]),H=b?S[$]/2-A-V-B-O.mainAxis:z-V-B-O.mainAxis,q=b?-S[$]/2+A+V+U+O.mainAxis:_+V+U+O.mainAxis,K=t.elements.arrow&&la(t.elements.arrow),Q=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,G=null!=(T=null==P?void 0:P[x])?T:0,X=j+q-G,Y=ua(f?Go(L,j+H-G-Q):L,j,f?Qo(N,X):N);k[x]=Y,R[x]=Y-j}if(l){var J,Z="x"===x?Oo:To,ee="x"===x?Po:Ro,te=k[w],ne="y"===w?"height":"width",re=te+g[Z],oe=te-g[ee],ae=-1!==[Oo,To].indexOf(v),ie=null!=(J=null==P?void 0:P[w])?J:0,le=ae?re:te-S[ne]-E[ne]-ie+O.altAxis,se=ae?te+S[ne]+E[ne]-ie-O.altAxis:oe,ue=f&&ae?function(e,t,n){var r=ua(e,t,n);return r>n?n:r}(le,te,se):ua(f?le:re,te,f?se:oe);k[w]=ue,R[w]=ue-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function _a(e,t,n){void 0===n&&(n=!1);var r,o,a=Vo(t),i=Vo(t)&&function(e){var t=e.getBoundingClientRect(),n=Xo(t.width)/e.offsetWidth||1,r=Xo(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=oa(t),s=Zo(e,i,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==Wo(t)||Ea(l))&&(u=(r=t)!==Bo(r)&&Vo(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ka(r)),Vo(t)?((c=Zo(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Sa(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function Fa(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Da={placement:"bottom",modifiers:[],strategy:"absolute"};function Wa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ba(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Da:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Da,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Uo(e)?Oa(e):e.contextElement?Oa(e.contextElement):[],popper:Oa(t)};var i,u,p=function(e){var t=Fa(e);return Do.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),u=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:c,options:r}),i=function(){};s.push(a||i)}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(Wa(t,n)){l.rects={reference:_a(t,la(n),"fixed"===l.options.strategy),popper:ea(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),u=!0}};if(!Wa(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Ua=Ba({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=Bo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,va)})),l&&s.addEventListener("resize",n.update,va),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,va)})),l&&s.removeEventListener("resize",n.update,va)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ma({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,u={placement:Ko(t.placement),variation:ha(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ga(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ga(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},qo,Aa,ja,za,fa,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ia(t,{elementContext:"reference"}),l=Ia(t,{altBoundary:!0}),s=La(i,r),u=La(l,o,a),c=Na(s),d=Na(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});var Va=Xe.exports.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=Xe.exports.useState(null),l=_r(Xe.exports.isValidElement(n)?n.ref:null,t);return Ir((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ir((()=>{if(a&&!o)return Mr(t,a),()=>{Mr(t,null)}}),[t,a,o]),o?Xe.exports.isValidElement(n)?Xe.exports.cloneElement(n,{ref:l}):n:xo.exports.jsx(Xe.exports.Fragment,{children:a?ot.exports.createPortal(n,a):a})}));function Ha(e){return io("MuiPopperUnstyled",e)}lo("MuiPopperUnstyled",["root"]);const qa=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Ka=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Qa(e){return"function"==typeof e?e():e}const Ga={},Xa=Xe.exports.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,component:a,components:i={},componentsProps:l={},direction:s,disablePortal:u,modifiers:c,open:d,ownerState:p,placement:f,popperOptions:h,popperRef:m,TransitionProps:g}=e,v=ar(e,qa),y=Xe.exports.useRef(null),b=_r(y,t),x=Xe.exports.useRef(null),w=_r(x,m),k=Xe.exports.useRef(w);Ir((()=>{k.current=w}),[w]),Xe.exports.useImperativeHandle(m,(()=>x.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,s),[E,C]=Xe.exports.useState(S);Xe.exports.useEffect((()=>{x.current&&x.current.forceUpdate()})),Ir((()=>{if(!r||!d)return;Qa(r);let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=c&&(e=e.concat(c)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=Ua(Qa(r),y.current,tr({placement:S},h,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}),[r,u,c,d,h,S]);const O={placement:E};null!==g&&(O.TransitionProps=g);const P=no({root:["root"]},Ha,{}),R=null!=(n=null!=a?a:i.Root)?n:"div",T=fo({elementType:R,externalSlotProps:l.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:b},ownerState:tr({},e,p),className:P.root});return xo.exports.jsx(R,tr({},T,{children:"function"==typeof o?o(O):o}))})),Ya=Xe.exports.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=Ga,popperRef:p,style:f,transition:h=!1}=e,m=ar(e,Ka),[g,v]=Xe.exports.useState(!0);if(!l&&!u&&(!h||g))return null;const y=o||(n?Pr(Qa(n)).body:void 0);return xo.exports.jsx(Va,{disablePortal:i,container:y,children:xo.exports.jsx(Xa,tr({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!g:u,placement:c,popperOptions:d,popperRef:p},m,{style:tr({position:"fixed",top:0,left:0,display:u||!l||h&&!g?null:"none"},f),TransitionProps:h?{in:u,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:null,children:r}))})}));var Ja=Ya;function Za(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ei(e){return parseInt(Rr(e).getComputedStyle(e).paddingRight,10)||0}function ti(e,t,n,r=[],o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Za(e,o)}))}function ni(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ri(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Pr(e);return t.body===e?Rr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Qr(Pr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ei(r)+e}px`;const t=Pr(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ei(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Pr(r).body;else{const t=r.parentElement,n=Rr(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function oi(e){return io("MuiModal",e)}lo("MuiModal",["root","hidden"]);const ai=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];const ii=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Za(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ti(t,e.mount,e.modalRef,r,!0);const o=ni(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ni(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ri(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ni(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Za(e.modalRef,t),ti(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Za(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var li=Xe.exports.forwardRef((function(e,t){var n;const{children:r,classes:o,closeAfterTransition:a=!1,component:i="div",components:l={},componentsProps:s={},container:u,disableAutoFocus:c=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:f=!1,disableRestoreFocus:h=!1,disableScrollLock:m=!1,hideBackdrop:g=!1,keepMounted:v=!1,manager:y=ii,onBackdropClick:b,onClose:x,onKeyDown:w,open:k,onTransitionEnter:S,onTransitionExited:E}=e,C=ar(e,ai),[O,P]=Xe.exports.useState(!0),R=Xe.exports.useRef({}),T=Xe.exports.useRef(null),M=Xe.exports.useRef(null),I=_r(M,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),j=null==(n=e["aria-hidden"])||n,L=()=>(R.current.modalRef=M.current,R.current.mountNode=T.current,R.current),N=()=>{y.mount(L(),{disableScrollLock:m}),M.current.scrollTop=0},A=zr((()=>{const e=function(e){return"function"==typeof e?e():e}(u)||Pr(T.current).body;y.add(L(),e),M.current&&N()})),z=Xe.exports.useCallback((()=>y.isTopModal(L())),[y]),_=zr((e=>{T.current=e,e&&(k&&z()?N():Za(M.current,j))})),F=Xe.exports.useCallback((()=>{y.remove(L(),j)}),[y,j]);Xe.exports.useEffect((()=>()=>{F()}),[F]),Xe.exports.useEffect((()=>{k?A():$&&a||F()}),[k,F,$,a,A]);const D=tr({},e,{classes:o,closeAfterTransition:a,disableAutoFocus:c,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:f,disableRestoreFocus:h,disableScrollLock:m,exited:O,hideBackdrop:g,keepMounted:v}),W=(e=>{const{open:t,exited:n,classes:r}=e;return no({root:["root",!t&&n&&"hidden"]},oi,r)})(D),B=()=>{P(!1),S&&S()},U=()=>{P(!0),E&&E(),a&&F()},V={};void 0===r.props.tabIndex&&(V.tabIndex="-1"),$&&(V.onEnter=Sr(B,r.props.onEnter),V.onExited=Sr(U,r.props.onExited));const H=l.Root||i,q=fo({elementType:H,externalSlotProps:s.root,externalForwardedProps:C,additionalProps:{ref:I,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&z()&&(p||(e.stopPropagation(),x&&x(e,"escapeKeyDown")))}},className:W.root,ownerState:D}),K=l.Backdrop,Q=fo({elementType:K,externalSlotProps:s.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),x&&x(e,"backdropClick"))},open:k},ownerState:D});return v||k||$&&!O?xo.exports.jsx(Va,{ref:_,container:u,disablePortal:f,children:xo.exports.jsxs(H,tr({},q,{children:[!g&&K?xo.exports.jsx(K,tr({},Q)):null,xo.exports.jsx(Co,{disableEnforceFocus:d,disableAutoFocus:c,disableRestoreFocus:h,isEnabled:z,open:k,children:Xe.exports.cloneElement(r,V)})]}))}):null}));const si=["onChange","maxRows","minRows","style","value"];function ui(e,t){return parseInt(e[t],10)||0}const ci={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function di(e){return null==e||0===Object.keys(e).length}const pi=Xe.exports.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=ar(e,si),{current:s}=Xe.exports.useRef(null!=i),u=Xe.exports.useRef(null),c=_r(t,u),d=Xe.exports.useRef(null),p=Xe.exports.useRef(0),[f,h]=Xe.exports.useState({}),m=Xe.exports.useCallback((()=>{const t=u.current,n=Rr(t).getComputedStyle(t);if("0px"===n.width)return{};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n["box-sizing"],l=ui(n,"padding-bottom")+ui(n,"padding-top"),s=ui(n,"border-bottom-width")+ui(n,"border-top-width"),c=a.scrollHeight;a.value="x";const p=a.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Xe.exports.useCallback((()=>{const e=m();di(e)||h((t=>g(t,e)))}),[m]);Xe.exports.useEffect((()=>{const e=Er((()=>{p.current=0,u.current&&(()=>{const e=m();di(e)||ot.exports.flushSync((()=>{h((t=>g(t,e)))}))})()})),t=Rr(u.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(u.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),Ir((()=>{v()})),Xe.exports.useEffect((()=>{p.current=0}),[i]);return xo.exports.jsxs(Xe.exports.Fragment,{children:[xo.exports.jsx("textarea",tr({value:i,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:tr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},a)},l)),xo.exports.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:tr({},ci,a,{padding:0})})]})}));var fi=pi;function hi(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var mi=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gi=hi((function(e){return mi.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function vi(){return vi=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},vi.apply(this,arguments)}var yi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),bi={exports:{}};!function(e){var t="-ms-",n="-moz-",r="-webkit-",o="comm",a="rule",i="decl",l="@page",s="@media",u="@import",c="@charset",d="@viewport",p="@supports",f="@document",h="@namespace",m="@keyframes",g="@font-face",v="@counter-style",y="@font-feature-values",b=Math.abs,x=String.fromCharCode,w=Object.assign;function k(e,t){return(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3)}function S(e){return e.trim()}function E(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function O(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function R(e,t,n){return e.slice(t,n)}function T(e){return e.length}function M(e){return e.length}function I(e,t){return t.push(e),e}function $(e,t){return e.map(t).join("")}function j(t,n,r,o,a,i,l){return{value:t,root:n,parent:r,type:o,props:a,children:i,line:e.line,column:e.column,length:l,return:""}}function L(e,t){return w(j("",null,null,"",null,null,0),e,{length:-e.length},t)}function N(){return e.character}function A(){return e.character=e.position>0?P(e.characters,--e.position):0,e.column--,10===e.character&&(e.column=1,e.line--),e.character}function z(){return e.character=e.position<e.length?P(e.characters,e.position++):0,e.column++,10===e.character&&(e.column=1,e.line++),e.character}function _(){return P(e.characters,e.position)}function F(){return e.position}function D(t,n){return R(e.characters,t,n)}function W(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B(t){return e.line=e.column=1,e.length=T(e.characters=t),e.position=0,[]}function U(t){return e.characters="",t}function V(t){return S(D(e.position-1,G(91===t?t+2:40===t?t+1:t)))}function H(e){return U(K(B(e)))}function q(t){for(;(e.character=_())&&e.character<33;)z();return W(t)>2||W(e.character)>3?"":" "}function K(t){for(;z();)switch(W(e.character)){case 0:I(Y(e.position-1),t);break;case 2:I(V(e.character),t);break;default:I(x(e.character),t)}return t}function Q(t,n){for(;--n&&z()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return D(t,F()+(n<6&&32==_()&&32==z()))}function G(t){for(;z();)switch(e.character){case t:return e.position;case 34:case 39:34!==t&&39!==t&&G(e.character);break;case 40:41===t&&G(t);break;case 92:z()}return e.position}function X(t,n){for(;z()&&t+e.character!==57&&(t+e.character!==84||47!==_()););return"/*"+D(n,e.position-1)+"*"+x(47===t?t:z())}function Y(t){for(;!W(_());)z();return D(t,e.position)}function J(e){return U(Z("",null,null,null,[""],e=B(e),0,[0],e))}function Z(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,k=a,S=r,E=b;g;)switch(h=y,y=z()){case 40:if(108!=h&&58==E.charCodeAt(d-1)){-1!=O(E+=C(V(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=V(y);break;case 9:case 10:case 13:case 32:E+=q(h);break;case 92:E+=Q(F()-1,7);continue;case 47:switch(_()){case 42:case 47:I(te(X(z(),F()),t,n),s);break;default:E+="/"}break;case 123*m:l[u++]=T(E)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:f>0&&T(E)-d&&I(f>32?ne(E+";",r,n,d-1):ne(C(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(I(S=ee(E,t,n,u,c,o,l,b,w=[],k=[],d),a),123===y)if(0===c)Z(E,t,S,S,w,a,d,l,k);else switch(p){case 100:case 109:case 115:Z(e,S,S,r&&I(ee(e,S,S,0,0,o,l,b,o,w=[],d),k),o,k,d,l,r?w:k);break;default:Z(E,S,S,S,[""],k,0,l,k)}}u=c=f=0,m=v=1,b=E="",d=i;break;case 58:d=1+T(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==A())continue;switch(E+=x(y),y*m){case 38:v=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(T(E)-1)*v,v=1;break;case 64:45===_()&&(E+=V(z())),p=_(),c=d=T(b=E+=Y(F())),y++;break;case 45:45===h&&2==T(E)&&(m=0)}}return a}function ee(e,t,n,r,o,i,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=M(f),m=0,g=0,v=0;m<r;++m)for(var y=0,x=R(e,p+1,p=b(g=l[m])),w=e;y<h;++y)(w=S(g>0?f[y]+" "+x:C(x,/&\f/g,f[y])))&&(u[v++]=w);return j(e,t,n,0===o?a:s,u,c,d)}function te(e,t,n){return j(e,t,n,o,x(N()),R(e,2,-2),0)}function ne(e,t,n,r){return j(e,t,n,i,R(e,0,r),R(e,r+1,-1),r)}function re(e,o){switch(k(e,o)){case 5103:return r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r+e+n+e+t+e+e;case 6828:case 4268:return r+e+t+e+e;case 6165:return r+e+t+"flex-"+e+e;case 5187:return r+e+C(e,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+e;case 5443:return r+e+t+"flex-item-"+C(e,/flex-|-self/,"")+e;case 4675:return r+e+t+"flex-line-pack"+C(e,/align-content|flex-|-self/,"")+e;case 5548:return r+e+t+C(e,"shrink","negative")+e;case 5292:return r+e+t+C(e,"basis","preferred-size")+e;case 6060:return r+"box-"+C(e,"-grow","")+r+e+t+C(e,"grow","positive")+e;case 4554:return r+C(e,/([^-])(transform)/g,"$1"+r+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+e+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(T(e)-1-o>6)switch(P(e,o+1)){case 109:if(45!==P(e,o+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(108==P(e,o+3)?"$3":"$2-$3"))+e;case 115:return~O(e,"stretch")?re(C(e,"stretch","fill-available"),o)+e:e}break;case 4949:if(115!==P(e,o+1))break;case 6444:switch(P(e,T(e)-3-(~O(e,"!important")&&10))){case 107:return C(e,":",":"+r)+e;case 101:return C(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r+(45===P(e,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+e}break;case 5936:switch(P(e,o+11)){case 114:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return r+e+t+e+e}return e}function oe(e,t){for(var n="",r=M(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ae(e,t,n,r){switch(e.type){case u:case i:return e.return=e.return||e.value;case o:return"";case m:return e.return=e.value+"{"+oe(e.children,r)+"}";case a:e.value=e.props.join(",")}return T(n=oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ie(e){var t=M(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function le(e){return function(t){t.root||(t=t.return)&&e(t)}}function se(e,o,l,s){if(e.length>-1&&!e.return)switch(e.type){case i:e.return=re(e.value,e.length);break;case m:return oe([L(e,{value:C(e.value,"@","@"+r)})],s);case a:if(e.length)return $(e.props,(function(o){switch(E(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([L(e,{props:[C(o,/:(read-\w+)/,":"+n+"$1")]})],s);case"::placeholder":return oe([L(e,{props:[C(o,/:(plac\w+)/,":"+r+"input-$1")]}),L(e,{props:[C(o,/:(plac\w+)/,":"+n+"$1")]}),L(e,{props:[C(o,/:(plac\w+)/,t+"input-$1")]})],s)}return""}))}}function ue(e){e.type===a&&(e.props=e.props.map((function(t){return $(H(t),(function(t,n,r){switch(P(t,0)){case 12:return R(t,1,T(t));case 0:case 40:case 43:case 62:case 126:return t;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+R(r[n],n=1,-1));case 32:return 1===n?"":t;default:switch(n){case 0:return e=t,M(r)>1?"":t;case n=M(r)-1:case 2:return 2===n?t+e+e:t+e;default:return t}}}))})))}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="",e.CHARSET=c,e.COMMENT=o,e.COUNTER_STYLE=v,e.DECLARATION=i,e.DOCUMENT=f,e.FONT_FACE=g,e.FONT_FEATURE_VALUES=y,e.IMPORT=u,e.KEYFRAMES=m,e.MEDIA=s,e.MOZ=n,e.MS=t,e.NAMESPACE=h,e.PAGE=l,e.RULESET=a,e.SUPPORTS=p,e.VIEWPORT=d,e.WEBKIT=r,e.abs=b,e.alloc=B,e.append=I,e.assign=w,e.caret=F,e.char=N,e.charat=P,e.combine=$,e.comment=te,e.commenter=X,e.compile=J,e.copy=L,e.dealloc=U,e.declaration=ne,e.delimit=V,e.delimiter=G,e.escaping=Q,e.from=x,e.hash=k,e.identifier=Y,e.indexof=O,e.match=E,e.middleware=ie,e.namespace=ue,e.next=z,e.node=j,e.parse=Z,e.peek=_,e.prefix=re,e.prefixer=se,e.prev=A,e.replace=C,e.ruleset=ee,e.rulesheet=le,e.serialize=oe,e.sizeof=M,e.slice=D,e.stringify=ae,e.strlen=T,e.substr=R,e.token=W,e.tokenize=H,e.tokenizer=K,e.trim=S,e.whitespace=q,Object.defineProperty(e,"__esModule",{value:!0})}(bi.exports);var xi=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},wi=function(e,t,n){for(var r=0,o=0;r=o,o=bi.exports.peek(),38===r&&12===o&&(t[n]=1),!bi.exports.token(o);)bi.exports.next();return bi.exports.slice(e,bi.exports.position)},ki=function(e,t){return bi.exports.dealloc(function(e,t){var n=-1,r=44;do{switch(bi.exports.token(r)){case 0:38===r&&12===bi.exports.peek()&&(t[n]=1),e[n]+=wi(bi.exports.position-1,t,n);break;case 2:e[n]+=bi.exports.delimit(r);break;case 4:if(44===r){e[++n]=58===bi.exports.peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bi.exports.from(r)}}while(r=bi.exports.next());return e}(bi.exports.alloc(e),t))},Si=new WeakMap,Ei=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Si.get(n))&&!r){Si.set(e,!0);for(var o=[],a=ki(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},Ci=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Oi="undefined"!=typeof document,Pi=Oi?void 0:xi((function(){return hi((function(){var e={};return function(t){return e[t]}}))})),Ri=[bi.exports.prefixer],Ti=function(e){var t=e.key;if(Oi&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Ri,i={},l=[];Oi&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[Ei,Ci];if(Oi){var u,c=[bi.exports.stringify,bi.exports.rulesheet((function(e){u.insert(e)}))],d=bi.exports.middleware(s.concat(a,c));o=function(e,t,n,r){u=n,function(e){bi.exports.serialize(bi.exports.compile(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[bi.exports.stringify],f=bi.exports.middleware(s.concat(a,p)),h=Pi(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return bi.exports.serialize(bi.exports.compile(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new yi({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g},Mi="undefined"!=typeof document;var Ii=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Mi&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},$i=function(e,t,n){Ii(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);Mi||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Mi&&0!==o.length)return o}};var ji={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Li=/[A-Z]|^ms/g,Ni=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ai=function(e){return 45===e.charCodeAt(1)},zi=function(e){return null!=e&&"boolean"!=typeof e},_i=hi((function(e){return Ai(e)?e:e.replace(Li,"-$&").toLowerCase()})),Fi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ni,(function(e,t,n){return Wi={name:t,styles:n,next:Wi},t}))}return 1===ji[e]||Ai(e)||"number"!=typeof t||0===t?t:t+"px"};function Di(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Wi={name:n.name,styles:n.styles,next:Wi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Wi={name:r.name,styles:r.styles,next:Wi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Di(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":zi(i)&&(r+=_i(a)+":"+Fi(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Di(e,t,i);switch(a){case"animation":case"animationName":r+=_i(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)zi(i[s])&&(r+=_i(a)+":"+Fi(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Wi,a=n(e);return Wi=o,Di(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Wi,Bi,Ui=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Vi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Wi=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Di(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Di(n,t,e[i]),r&&(o+=a[i]);Ui.lastIndex=0;for(var l,s="";null!==(l=Ui.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Wi}},Hi={exports:{}},qi={};Hi.exports=function(){if(Bi)return qi;Bi=1,Object.defineProperty(qi,"__esModule",{value:!0});var e=Xe.exports;function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var n=t(e),r="undefined"!=typeof document,o=function(e){return e()},a=!!n.useInsertionEffect&&n.useInsertionEffect,i=r&&a||o,l=a||e.useLayoutEffect;return qi.useInsertionEffectAlwaysWithSyncFallback=i,qi.useInsertionEffectWithLayoutFallback=l,qi}();var Ki="undefined"!=typeof document,Qi=Xe.exports.createContext("undefined"!=typeof HTMLElement?Ti({key:"css"}):null),Gi=Qi.Provider,Xi=function(e){return Xe.exports.forwardRef((function(t,n){var r=Xe.exports.useContext(Qi);return e(t,r,n)}))};Ki||(Xi=function(e){return function(t){var n=Xe.exports.useContext(Qi);return null===n?(n=Ti({key:"css"}),Xe.exports.createElement(Qi.Provider,{value:n},e(t,n))):e(t,n)}});var Yi=Xe.exports.createContext({}),Ji=Xi((function(e,t){var n=e.styles,r=Vi([n],void 0,Xe.exports.useContext(Yi));if(!Ki){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,u=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:Xe.exports.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=Xe.exports.useRef();return Hi.exports.useInsertionEffectWithLayoutFallback((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),c.current=[n,o],function(){n.flush()}}),[t]),Hi.exports.useInsertionEffectWithLayoutFallback((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&$i(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vi(t)}var el,tl=function(){var e=Zi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},nl={exports:{}},rl={};nl.exports=function(){if(el)return rl;el=1,Object.defineProperty(rl,"__esModule",{value:!0});var e=Xe.exports;function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var n=t(e),r="undefined"!=typeof document,o=function(e){return e()},a=!!n.useInsertionEffect&&n.useInsertionEffect,i=r&&a||o,l=a||e.useLayoutEffect;return rl.useInsertionEffectAlwaysWithSyncFallback=i,rl.useInsertionEffectWithLayoutFallback=l,rl}();var ol=gi,al=function(e){return"theme"!==e},il=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ol:al},ll=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},sl="undefined"!=typeof document,ul=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ii(t,n,r);var o=nl.exports.useInsertionEffectAlwaysWithSyncFallback((function(){return $i(t,n,r)}));if(!sl&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return Xe.exports.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},cl=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=ll(t,n,a),s=l||il(i),u=!s("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],c[0][f])}var h=Xi((function(e,t,n){var r,a,c,p,f=u&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=Xe.exports.useContext(Yi)}"string"==typeof e.className?(r=t.registered,a=m,c=e.className,p="",c.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var y=Vi(d.concat(m),t.registered,g);h+=t.key+"-"+y.name,void 0!==o&&(h+=" "+o);var b=u&&void 0===l?il(f):s,x={};for(var w in e)u&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=h,x.ref=n,Xe.exports.createElement(Xe.exports.Fragment,null,Xe.exports.createElement(ul,{cache:t,serialized:y,isStringTag:"string"==typeof f}),Xe.exports.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,vi({},n,r,{shouldForwardProp:ll(h,r,!0)})).apply(void 0,d)},h}},dl=cl.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){dl[e]=dl(e)}));var pl=dl;const fl=Ti({key:"css",prepend:!0});function hl(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return xo.exports.jsx(Ji,{styles:r})}
1
+ function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function t(e){return Boolean(e&&"function"==typeof e.then)}function n(e,n){return t(e)?Promise.resolve(e).then(n):n(e)}function r(e){const t=(Array.isArray(e)?e:[e]).map((e=>`'${e}'`)),n=t.slice(-2).join(" or ");return`Tolgee: You need to specify ${[...t.slice(0,-2),n].join(", ")} option`}function o(e){return"string"==typeof e?[e]:Array.isArray(e)?e:void 0}function a(e){return o(e)||[]}function i(e,t){return"object"!=typeof(n=t)||Array.isArray(n)||null===n?a(t):a(null==t?void 0:t[e]);var n}function l(e){return Array.from(new Set(e))}function s(e){return e?e.replace(/\/+$/,""):e}const u=(e,t)=>fetch(e,t),c=(e=u)=>(t,n)=>e(t,Object.assign(Object.assign({},n),{headers:Object.assign({"X-Tolgee-SDK-Type":"JS","X-Tolgee-SDK-Version":"5.16.0"},null==n?void 0:n.headers)}));function d(e){let t=[];return Object.freeze({listen(e){const n=t=>{e(t)};return t.push(n),{unsubscribe(){t=t.filter((e=>n!==e))}}},emit(n){e()&&t.forEach((e=>e({value:n})))}})}function p(e,t,n){const r=new Set,o=new Set;let i=[];function l(){if(0===i.length)return;const e=i;i=[],r.forEach((e=>{e({value:void 0})}));let n=new Set;e.forEach((e=>{void 0===e?n=void 0:void 0!==n&&e.forEach((e=>n.add(e)))}));!function(e){const n=new Set(t());o.forEach((t=>{(void 0===e||-1!==(null==e?void 0:e.findIndex((e=>n.has(e)||t.namespaces.has(e)))))&&t.fn({value:void 0})}))}(n?Array.from(n.keys()):void 0)}return Object.freeze({emit(t,n){e()&&(i.push(t),n?setTimeout(l,0):l())},listen(e){r.add(e);return{unsubscribe:()=>{r.delete(e)}}},listenSome(e){const t={fn:t=>{e(t)},namespaces:new Set};o.add(t);const r={unsubscribe:()=>{o.delete(t)},subscribeNs:e=>(a(e).forEach((e=>t.namespaces.add(e))),void 0===e&&t.namespaces.add(n()),r)};return r}})}const f=e=>{const t=new Map;return Object.entries(e).forEach((([e,n])=>{null!=n&&("object"!=typeof n?t.set(e,n):f(n).forEach(((n,r)=>{t.set(e+"."+r,n)})))})),t},h=e=>{const[t,...n]=e.split(":");return{language:t,namespace:n.join(":")||""}},m=({language:e,namespace:t})=>t?`${e}:${t}`:e;function g(e,t,n,r,o,i,s){const u=new Map,c=new Map;let d={},p=0;function g(t,n,r){const o=m(t);c.set(o,{data:f(n),version:r}),e.emit(t)}function v(e){let n;if(!n){const t=d[m(e)];"function"==typeof t&&(n=t())}return n||(n=t(e)),n}const y=Object.freeze({addStaticData(e){e&&(d=Object.assign(Object.assign({},d),e),Object.entries(e).forEach((([e,t])=>{if("function"!=typeof t){const n=h(e),r=c.get(e);r&&0!==r.version||g(n,t,0)}})))},invalidate(){u.clear(),p+=1},addRecord(e,t){g(e,t,p)},exists(e,t=!1){const n=c.get(m(e));return n&&t?n.version===p:Boolean(n)},getRecord(e){var t;return null===(t=c.get(m(r(e))))||void 0===t?void 0:t.data},getTranslation(e,t){var n;return null===(n=c.get(m(e)))||void 0===n?void 0:n.data.get(t)},getTranslationNs(e,t,n){var r;for(const o of e)for(const e of t){const t=null===(r=c.get(m({language:e,namespace:o})))||void 0===r?void 0:r.data.get(n);if(null!=t)return[o]}return l(e)},getTranslationFallback(e,t,n){var r;for(const o of e)for(const e of t){const t=null===(r=c.get(m({language:e,namespace:o})))||void 0===r?void 0:r.data.get(n);if(null!=t)return t}},changeTranslation(t,n,r){var o;const a=null===(o=c.get(m(t)))||void 0===o?void 0:o.data;null==a||a.set(n,r),e.emit(Object.assign(Object.assign({},t),{key:n}))},isFetching(e){if(o())return!0;if(void 0===e)return u.size>0;const t=a(e);return Boolean(Array.from(u.keys()).find((e=>t.includes(h(e).namespace))))},isLoading(e,t){const n=a(t);return Boolean(o()||Array.from(u.keys()).find((t=>{const r=h(t);return(!n.length||n.includes(r.namespace))&&!y.exists({namespace:r.namespace,language:e})})))},async loadRecords(e,t){const o=e.map((e=>{const o=r(e),a=m(o),i=u.get(a);if(i)return{new:!1,promise:i,keyObject:o,cacheKey:a};const l=function(e,t){var r;let o;return t&&(o=null===(r=n(e))||void 0===r?void 0:r.catch((()=>(console.warn("Tolgee: Failed to fetch data from dev backend"),v(e))))),o||(o=v(e)),o}(o,t)||Promise.resolve(void 0);return u.set(a,l),{new:!0,promise:l,keyObject:o,cacheKey:a}}));i.notify(),s.notify();const a=await Promise.all(o.map((e=>e.promise)));return o.forEach(((e,t)=>{const n=u.get(e.cacheKey)!==e.promise;if(e.new&&!n){u.delete(e.cacheKey);const n=a[t];n?y.addRecord(e.keyObject,n):y.getRecord(e.keyObject)||y.addRecord(e.keyObject,{})}})),i.notify(),s.notify(),o.map((e=>y.getRecord(e.keyObject)))},getAllRecords:()=>Array.from(c.entries()).map((([e,t])=>Object.assign(Object.assign({},h(e)),{data:t.data})))});return y}function v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}const y="invalid",b={defaultNs:"",observerOptions:{tagAttributes:{textarea:["placeholder"],input:["value","placeholder"],img:["alt"],"*":["aria-label","title"]},restrictedElements:["script","style"],highlightKeys:["Alt"],highlightColor:"rgb(255, 0, 0)",highlightWidth:5,inputPrefix:"%-%tolgee:",inputSuffix:"%-%",passToParent:["option","optgroup"],fullKeyEncode:!1},observerType:"invisible",onFormatError:y,apiUrl:"https://app.tolgee.io",fetch:c(),onTranslationMissing:({key:e})=>e},x=(...e)=>{let t={};return e.forEach((e=>{t=Object.assign(Object.assign(Object.assign({},t),e),{observerOptions:Object.assign(Object.assign({},t.observerOptions),null==e?void 0:e.observerOptions)})})),t};function w(e,t){const n=x(b,null==t?void 0:t.initialOptions,e);return n.apiUrl=s(n.apiUrl),(null==e?void 0:e.fetch)&&(n.fetch=c(e.fetch)),{initialOptions:n,activeNamespaces:(null==t?void 0:t.activeNamespaces)||new Map,language:null==t?void 0:t.language,pendingLanguage:null==t?void 0:t.language,isInitialLoading:!1,isRunning:!1}}function k(e,r,o,a,i,l,s,u){const c={ui:void 0},d={formatters:[],finalFormatter:void 0,observer:void 0,devBackend:void 0,backends:[],ui:void 0,languageDetector:void 0,languageStorage:void 0},p=async({keysAndDefaults:e,event:t})=>{var n;const r=e.map((({key:e,ns:t,defaultValue:n})=>({key:e,defaultValue:n,fallbackNamespaces:a(t),namespace:i({key:e,ns:t})[0],translation:l({key:e,ns:t})})));null===(n=d.ui)||void 0===n||n.handleElementClick(r,t)},f=(e,t)=>{var n;return(null===(n=d.observer)||void 0===n?void 0:n.findPositions(e,t))||[]};function h(e){const t=l({key:e.key,ns:e.ns});return R.formatTranslation(Object.assign(Object.assign({},e),{translation:t,formatEnabled:!0}))}function m(){return{fetch:r().fetch}}function g(e){d.observer=null==e?void 0:e()}function b(){return Boolean(d.observer)}function x(e){e&&d.formatters.push(e)}function w(e){d.finalFormatter=e}function k(e){c.ui=e}function S(){return Boolean(c.ui)}function E(e){d.languageStorage=e}function C(e){d.languageDetector=e}function O(e){e&&d.backends.push(e)}function P(e){d.devBackend=e}const R=Object.freeze({addPlugin:function(e,t){t(e,Object.freeze({setFinalFormatter:w,addFormatter:x,setObserver:g,hasObserver:b,setUi:k,hasUi:S,setDevBackend:P,addBackend:O,setLanguageDetector:C,setLanguageStorage:E}))},run(){var e,t;const{apiKey:n,apiUrl:o,projectId:a,observerOptions:i}=r();d.ui=null===(e=c.ui)||void 0===e?void 0:e.call(c,{apiKey:n,apiUrl:o,projectId:a,highlight:R.highlight,changeTranslation:s,findPositions:f,onPermanentChange:u}),null===(t=d.observer)||void 0===t||t.run({mouseHighlight:!0,options:i,translate:h,onClick:p})},stop(){var e;d.ui=void 0,null===(e=d.observer)||void 0===e||e.stop()},getLanguageStorage:()=>d.languageStorage,getInitialLanguage(){var e;const t=o();return n(null===(e=d.languageStorage)||void 0===e?void 0:e.getLanguage(m()),(e=>t&&!t.includes(e)||!e?function(){if(!d.languageDetector)return;const e=o();return d.languageDetector.getLanguage(Object.assign({availableLanguages:e},m()))}():e))},setStoredLanguage(e){var t;null===(t=d.languageStorage)||void 0===t||t.setLanguage(e,m())},getDevBackend:()=>d.devBackend,getBackendRecord:({language:e,namespace:n})=>{for(const r of d.backends){const o=r.getRecord(Object.assign({language:e,namespace:n},m()));if(t(o))return null==o?void 0:o.catch((e=>(console.error(e),{})));if(void 0!==o)return o}},getBackendDevRecord:({language:e,namespace:t})=>{var n;const{apiKey:o,apiUrl:a,projectId:i}=r();return null===(n=d.devBackend)||void 0===n?void 0:n.getRecord(Object.assign({apiKey:o,apiUrl:a,projectId:i,language:e,namespace:t},m()))},getLanguageDetector:()=>d.languageDetector,retranslate(){var e;null===(e=d.observer)||void 0===e||e.retranslate()},highlight:(e,t)=>{var n,r;return(null===(r=null===(n=d.observer)||void 0===n?void 0:n.highlight)||void 0===r?void 0:r.call(n,e,t))||{unhighlight(){}}},unwrap(e){var t;return d.observer?null===(t=d.observer)||void 0===t?void 0:t.unwrap(e):{text:e,keys:[]}},wrap(e){var t;return d.observer?null===(t=d.observer)||void 0===t?void 0:t.wrap(e):e.translation},hasDevBackend:()=>Boolean(R.getDevBackend()),formatTranslation(t){var n,{formatEnabled:o}=t,a=v(t,["formatEnabled"]);const{key:i,translation:l,defaultValue:s,noWrap:u,params:c,ns:p,orEmpty:f}=a,h=null!=l?l:s;let m="";null==l&&(m=r().onTranslationMissing(a));let g=null!=h?h:f?"":m;const b=e(),x=o||!(null===(n=d.observer)||void 0===n?void 0:n.outputNotFormattable),w=e=>d.observer&&!u?d.observer.wrap({key:i,translation:e,defaultValue:s,params:c,ns:p}):e;g=w(g);try{if(h&&b&&x)for(const e of d.formatters)g=e.format({translation:g,language:b,params:c});d.finalFormatter&&h&&b&&x&&(g=d.finalFormatter.format({translation:g,language:b,params:c}))}catch(e){console.error(e);const t=("string"==typeof(k=e)?k:"string"==typeof(null==k?void 0:k.message)?k.message:void 0)||y,n=r().onFormatError,o=typeof n;g="string"===o?n:"function"===o?n(t,a):y,g=w(g)}var k;return g}});return R}const S=(e,t,n)=>{let r=e;return Object.freeze({init(e){r=e},notify(){const e=t();r!==e&&n(e),r=e}})};const E=(e,...t)=>{let n,r={};return"object"==typeof e?r=e:(r.key=e,"string"==typeof t[0]?(r.defaultValue=t[0],n=t[1]):"object"==typeof t[0]&&(n=t[0])),n&&(r=Object.assign(Object.assign({},function(e){var{ns:t,noWrap:n,orEmpty:r,params:o,language:a}=e,i=v(e,["ns","noWrap","orEmpty","params","language"]);const l={ns:t,noWrap:n,orEmpty:r,language:a};return Object.assign(Object.assign({},l),{params:Object.assign({},i)})}(n)),r)),r};function C({options:e}){const o=function(e,t){let n=!0;function r(){return n}const o=Object.freeze({onPendingLanguageChange:d(r),onLanguageChange:d(r),onLoadingChange:d(r),onFetchingChange:d(r),onInitialLoaded:d(r),onRunningChange:d(r),onCacheChange:d(r),onUpdate:p(r,e,t),onPermanentChange:d(r),setEmitterActive(e){n=e},on:(e,t)=>{switch(e){case"pendingLanguage":return o.onPendingLanguageChange.listen(t);case"language":return o.onLanguageChange.listen(t);case"loading":return o.onLoadingChange.listen(t);case"fetching":return o.onFetchingChange.listen(t);case"initialLoad":return o.onInitialLoaded.listen(t);case"running":return o.onRunningChange.listen(t);case"cache":return o.onCacheChange.listen(t);case"update":return o.onUpdate.listen(t);case"permanentChange":return o.onPermanentChange.listen(t)}}});return o.onInitialLoaded.listen((()=>o.onUpdate.emit())),o.onLanguageChange.listen((()=>o.onUpdate.emit())),o.onCacheChange.listen((({value:e})=>o.onUpdate.emit([e.namespace],!0))),o}(b,x),u=S(!1,(()=>v.isFetching()),o.onFetchingChange.emit),c=S(!1,(()=>j.isLoading()),o.onLoadingChange.emit),f=function(e,t,n){let r,o=w();const u=Object.freeze({init(e){o=w(e,o)},isRunning:()=>o.isRunning,setRunning(e){o.isRunning!==e&&(o.isRunning=e,n.emit(e))},isInitialLoading:()=>o.isInitialLoading,setInitialLoading(e){o.isInitialLoading=e},getLanguage:()=>o.language||o.initialOptions.language,setLanguage(t){o.language!==t&&(o.language=t,e.emit(t))},getPendingLanguage:()=>o.pendingLanguage||u.getLanguage(),setPendingLanguage(e){o.pendingLanguage!==e&&(o.pendingLanguage=e,t.emit(e))},getInitialOptions:()=>Object.assign(Object.assign({},o.initialOptions),r),addActiveNs(e){a(e).forEach((e=>{const t=o.activeNamespaces.get(e);void 0!==t?o.activeNamespaces.set(e,t+1):o.activeNamespaces.set(e,1)}))},removeActiveNs(e){a(e).forEach((e=>{const t=o.activeNamespaces.get(e);void 0!==t&&t>1?o.activeNamespaces.set(e,t-1):o.activeNamespaces.delete(e)}))},getRequiredNamespaces:()=>l([...o.initialOptions.ns||[o.initialOptions.defaultNs],...a(o.initialOptions.fallbackNs),...o.activeNamespaces.keys()]),getFallbackLangs(e){const t=e||u.getLanguage();return t?l([t,...i(t,o.initialOptions.fallbackLanguage)]):[]},getFallbackNs:()=>a(o.initialOptions.fallbackNs),getDefaultNs:e=>void 0===e?o.initialOptions.defaultNs:e,getAvailableLanguages(){if(o.initialOptions.availableLanguages)return o.initialOptions.availableLanguages;if(o.initialOptions.staticData){const e=Object.keys(o.initialOptions.staticData).map((e=>h(e).language));return Array.from(new Set(e))}},withDefaultNs:e=>({namespace:void 0===e.namespace?u.getInitialOptions().defaultNs:e.namespace,language:e.language}),overrideCredentials(e){r=e?Object.assign(Object.assign({},e),{apiUrl:s(e.apiUrl)}):void 0}});return u}(o.onLanguageChange,o.onPendingLanguageChange,o.onRunningChange),m=k(f.getLanguage,f.getInitialOptions,f.getAvailableLanguages,C,M,I,P,(function(e){o.onPermanentChange.emit({key:e.key,namespace:e.namespace})})),v=g(o.onCacheChange,m.getBackendRecord,m.getBackendDevRecord,f.withDefaultNs,f.isInitialLoading,u,c);let y;function b(){return f.getFallbackNs()}function x(e){return f.getDefaultNs(e)}function C(e){return[...a(x(e)),...b()]}function O(e){return[...a(null!=e?e:x()),...f.getRequiredNamespaces()]}function P(e,t,n){const r=f.withDefaultNs(e),o=v.getTranslation(r,t);return v.changeTranslation(r,t,n),{revert(){v.changeTranslation(r,t,o)}}}function R(e){f.init(e),v.addStaticData(f.getInitialOptions().staticData)}function T(e,t){const r=function(e,t){const n=f.getFallbackLangs(e),r=O(t),o=[];return n.forEach((e=>{r.forEach((t=>{v.exists({language:e,namespace:t},!0)||o.push({language:e,namespace:t})}))})),o}(e,t);if(r.length)return n(j.loadRecords(r),(()=>{}))}function M({key:e,ns:t}){const n=f.getFallbackLangs(),r=C(null!=t?t:void 0);return v.getTranslationNs(r,n,e)}function I({key:e,ns:t,language:n}){const r=C(null!=t?t:void 0),o=f.getFallbackLangs(n);return v.getTranslationFallback(r,o,e)}function $(){const e=n(function(){if(f.getLanguage())return;return n(m.getInitialLanguage(),(e=>{const t=e||f.getInitialOptions().defaultLanguage;t&&f.setLanguage(t)}))}(),(()=>T()));if(t(e))return f.setInitialLoading(!0),u.notify(),c.notify(),Promise.resolve(e).then((()=>{f.setInitialLoading(!1),u.notify(),c.notify(),o.onInitialLoaded.emit()}));o.onInitialLoaded.emit()}e&&R(e),o.onUpdate.listen((()=>{f.isRunning()&&m.retranslate()}));const j=Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o),f),m),v),{init:R,getTranslation:I,changeTranslation:P,getTranslationNs:M,getDefaultAndFallbackNs:C,async changeLanguage(e){f.getPendingLanguage()===e&&f.getLanguage()===e||(f.setPendingLanguage(e),f.isRunning()&&await T(e),e===f.getPendingLanguage()&&(f.setLanguage(e),m.setStoredLanguage(e)))},async addActiveNs(e,t){t||f.addActiveNs(e),f.isRunning()&&await T(void 0,e)},loadRecords:e=>v.loadRecords(e,j.isDev()),loadRecord:async e=>(await j.loadRecords([e]))[0],isLoading:e=>v.isLoading(f.getLanguage(),e),isLoaded(e){const t=f.getLanguage();if(!t)return!1;const n=f.getFallbackLangs(t),r=O(e),o=[];return n.forEach((e=>{r.forEach((t=>{v.exists({language:e,namespace:t})||o.push({language:e,namespace:t})}))})),0===o.length},t:(...e)=>{const t=E(...e),n=I(t);return m.formatTranslation(Object.assign(Object.assign({},t),{translation:n}))},isDev:()=>Boolean(f.getInitialOptions().apiKey&&f.getInitialOptions().apiUrl),run:()=>(function(){if((m.getLanguageDetector()||m.getLanguageStorage())&&!f.getAvailableLanguages())throw new Error(r("availableLanguages"));if(!f.getLanguage()&&!f.getInitialOptions().defaultLanguage)throw new Error(r(["defaultLanguage","language"]))}(),f.isRunning()||(f.setRunning(!0),m.run(),y=$()),Promise.resolve(y)),stop(){f.isRunning()&&(m.stop(),f.setRunning(!1))}}));return j}const O=()=>{const e={plugins:[],options:{}},t=Object.freeze({use:n=>(e.plugins.push(n),t),updateDefaults:n=>(e.options=x(e.options,n),t),init(t){const n=function(e){const t=C({options:e});function n(e){const n=t.isRunning();n&&t.stop(),e(),t.isDev()&&t.invalidate(),n&&t.run()}t.isDev()&&t.invalidate();const r=Object.freeze({on:t.on,onNsUpdate:t.onUpdate.listenSome,setEmitterActive:t.setEmitterActive,getLanguage:t.getLanguage,getPendingLanguage:t.getPendingLanguage,changeLanguage:t.changeLanguage,changeTranslation:t.changeTranslation,addActiveNs:t.addActiveNs,removeActiveNs:t.removeActiveNs,loadRecords:t.loadRecords,loadRecord:t.loadRecord,addStaticData:t.addStaticData,getRecord:t.getRecord,getAllRecords:t.getAllRecords,isLoaded:t.isLoaded,isInitialLoading:t.isInitialLoading,isLoading:t.isLoading,isFetching:t.isFetching,isRunning:t.isRunning,run:t.run,stop:t.stop,t:t.t,highlight:t.highlight,getInitialOptions:t.getInitialOptions,isDev:t.isDev,wrap:t.wrap,unwrap:t.unwrap,overrideCredentials(e){n((()=>t.overrideCredentials(e)))},addPlugin(e){e&&n((()=>t.addPlugin(r,e)))},updateOptions(e){e&&n((()=>t.init(e)))}});return r}(x(e.options,t));return e.plugins.forEach(n.addPlugin),n}});return t},P=0,R=1,T=2;class M extends Error{constructor(e,t,n){let r;r=e===P?"Empty parameter":e===R?"Unexpected character":"Unexpected end",super(`Tolgee parser: ${r} at ${t} in "${n}"`),this.code=e,this.index=t}}function I(e){return/\s/.test(e)}const $=0,j=1,L=2,N=3,A=4,z=new Set([L,j,$]),_="'",F=new Set(["{","}",_]),D=e=>/[0-9a-zA-Z_]/.test(e);function W(e,t){const[n,r]=function(e){let t=$,n="",r="",o="";const a=[],i=[];let l=0;function s(t){throw new M(t,l,e)}const u=()=>{a.push(n),n=""},c=()=>{""===r&&s(P),i.push(r),r=""};for(l=0;l<e.length;l++)switch(o=e[l],t){case $:o===_?(n+=o,t=j):"{"===o?(u(),t=N):(n+=o,t=$);break;case j:F.has(o)?(n=n.slice(0,-1)+o,t=L):(n+=o,t=$);break;case L:o===_?t=$:(n+=o,t=L);break;case N:"}"===o?(c(),t=$):I(o)?""!==r&&(c(),t=A):(D(o)||s(R),r+=o,t=N);break;case A:"}"==o?t=$:I(o)?t=A:s(R)}return z.has(t)||s(T),u(),[a,i]}(e),o=[n[0]];for(let a=1;a<n.length;a++){const i=null==t?void 0:t[r[a-1]];if(void 0===i)throw new Error(`Missing parameter "${r[a-1]}" in "${e}"`);o.push(String(i)),o.push(n[a])}return o.join("")}const B=()=>(e,t)=>(t.setFinalFormatter({format:({translation:e,params:t})=>W(e,t)}),e),U="__tolgee_dev_tools",V=2147483e3,H="__tolgee_preferredLanguages",q=5,K="data-tolgee-key-only",Q="data-tolgee-restricted",G="_tolgee",X="_tolgee-highlighter";function Y(){var e,t;return void 0===(null===(t=null===(e=globalThis.window)||void 0===e?void 0:e.document)||void 0===t?void 0:t.createElement)}function J(e){if(Y())throw new Error(`${e}: Can't run on the server`)}function Z(e,t){return{oldTextContent:e,keys:t}}const ee={position:"fixed",boxSizing:"content-box",zIndex:String(Number.MAX_SAFE_INTEGER),contain:"layout",display:"block",borderStyle:"solid",borderRadius:"4px"};function te({highlightColor:e,highlightWidth:t}){return Object.freeze({initHighlighter(n,r){!function(n,r){r.highlight=()=>{if(!n.isConnected)return;let o=r.highlightEl;o||(o=document.createElement("div"),o.classList.add(X),Object.entries(ee).forEach((([e,t])=>{o.style[e]=t})),o.style.borderColor=e,r.highlightEl=o,document.body.appendChild(o));const a=n.getBoundingClientRect();o.style.borderWidth=t+"px",o.style.top=a.top-t+"px",o.style.left=a.left-t+"px",o.style.width=a.width+"px",o.style.height=a.height+"px"}}(n,r),function(e,t){t.unhighlight=()=>{var e;null===(e=t.highlightEl)||void 0===e||e.remove(),t.highlightEl=void 0}}(0,r)}})}function ne(e,t){var n;const r=function(e){switch(e.nodeType){case Node.ATTRIBUTE_NODE:return e.ownerElement||void 0;case Node.TEXT_NODE:return e.parentElement||void 0;case Node.DOCUMENT_NODE:case Node.ELEMENT_NODE:return e;default:return}}(t),o=[];if(!r)return o;const a=null===document||void 0===document?void 0:document.evaluate(e,r,void 0,XPathResult.ANY_TYPE);let i;for(;i=null===(n=null==a?void 0:a.iterateNext)||void 0===n?void 0:n.call(a);)o.push(i);return o}function re(e){return e.textContent}function oe(e,t){e.textContent=t}function ae(e,t){if(e.contains(t))return!0;if(t instanceof Attr){const n=t.ownerElement&&Object.values(t.ownerElement.attributes).indexOf(t)>-1;if(e.contains(t.ownerElement)&&n)return!0}return!1}function ie(e,t){var n;const r=void 0===e.key||void 0===t.key||t.key===e.key,o=void 0===e.ns||void 0===t.ns||-1!==(null===(n=e.ns)||void 0===n?void 0:n.findIndex((e=>{var n;return null===(n=t.ns)||void 0===n?void 0:n.includes(e)})));return r&&o}const le={capture:!0},se={capture:!0,passive:!0},ue=new Map([["Control","ctrlKey"],["Alt","altKey"],["Meta","metaKey"],["Shift","shiftKey"]]);function ce({highlightKeys:e,elementStore:t,onClick:n,options:r}){var o,a;const i=new Set;let l,s,u=[];const c=(null===(o=r.targetElement)||void 0===o?void 0:o.getRootNode())||document,d=(null===(a=r.targetElement)||void 0===a?void 0:a.ownerDocument)||document;function p(){var e;const n=t.get(l);n&&(n.preventClean=!1,null===(e=n.unhighlight)||void 0===e||e.call(n),l=void 0)}function f(){const e=s;let n;if(e&&E()){n=function(e){for(const n of e){const e=S(n,(e=>t.get(e)));if(void 0!==e)return e||void 0}}(c.elementsFromPoint(e.x,e.y)||[])}!function(e){var n;if(l!==e){p();const r=t.get(e);r&&(r.preventClean=!0,null===(n=r.highlight)||void 0===n||n.call(r),l=e)}}(n)}function h(e){s=e,f()}function m(e){for(const[t,n]of ue.entries())i.has(t)&&!e[n]?i.delete(t):!i.has(t)&&e[n]&&i.add(t)}function g(e){var t;m(e),E()&&(t=e.target,!Boolean(S(t,(e=>e.id===U))))&&(e.stopPropagation(),e.preventDefault())}function v(e){m(e),h({x:e.clientX,y:e.clientY})}function y(e){m(e),f()}function b(e){m(e),f()}function x(){var e;const n=t.get(l);null===(e=null==n?void 0:n.highlight)||void 0===e||e.call(n)}function w(e){g(e),m(e),h({x:e.clientX,y:e.clientY}),E()&&l&&(n(e,l),p())}function k(e,t,n){d.addEventListener(e,t,n),u.push([e,t,n])}function S(e,t){return e.id===U?null:t(e)?e:(null==e?void 0:e.parentElement)?S(e.parentElement,t):void 0}function E(){for(const t of e)if(!i.has(t))return!1;return!0}return Object.freeze({stop(){!function(){for(const e of u)d.removeEventListener(...e);u=[]}()},run(){k("keydown",y,le),k("keyup",b,le),k("mousemove",v,se),k("scroll",x,se),k("click",w,le),k("mouseenter",g,le),k("mouseover",g,le),k("mouseout",g,le),k("mouseleave",g,le),k("mousedown",g,le),k("mouseup",g,le)}})}function de(e,t,n){const r=te({highlightColor:e.highlightColor,highlightWidth:e.highlightWidth}),a=ce({highlightKeys:e.highlightKeys,elementStore:t,onClick(e,r){const o=t.get(r);n({event:e,keysAndDefaults:s(o)})},options:e});function i(e){e.nodes=new Map(function*(e){for(const[t,n]of e.nodes.entries())ae(l(),t)&&(yield[t,n])}(e))}function l(){return e.targetElement||document.body}function s(e){return function(e){return Array.from(e.nodes.values()).reduce(((e,t)=>[...e,...t.keys.map((e=>({key:e.key,defaultValue:e.defaultValue,ns:e.ns})))]),[])}(e)}return Object.freeze({register(n,o,a){if(function(t){return-1!==e.restrictedElements.indexOf(t.tagName.toLowerCase())||null!==t.closest(`[${Q}]`)}(n))return;const i=n;let l=t.get(i);l||(l=function(e){return{element:e,nodes:new Map}}(i),t.set(i,l),i.setAttribute(G,"true")),l.nodes.set(o,a),r.initHighlighter(i,l)},forEachElement:t.forEachElement,refreshAll(){t.forEachElement(((e,n)=>{n.preventClean||(i(n),0===n.nodes.size&&function(e,n){var r;n.highlightEl&&(null===(r=n.unhighlight)||void 0===r||r.call(n)),e.removeAttribute(G),t.remove(e)}(e,n))}))},findAll(e,n){const r=[];return t.forEachElement(((t,a)=>{for(const t of a.nodes.values()){if(t.keys.find((t=>ie({key:e,ns:o(n)},{key:t.key,ns:o(t.ns)})))){r.push(a);break}}})),r},run(e){e&&a.run()},stop(){a.stop(),t.forEachElement(((e,t)=>{var n;t.highlightEl&&(null===(n=t.unhighlight)||void 0===n||n.call(t))}))}})}function pe(){let e,t=!1;const n=function(){const e=new Map;return Object.freeze({set(t,n){e.set(t,n)},get:t=>t&&e.get(t),remove:t=>e.delete(t),forEachElement(t){e.forEach(((e,n)=>t(n,e)))}})}();function r({mouseHighlight:e,options:r,wrapper:o,onClick:a}){if(Y())return{stop(){t=!1},wrapper:o};const i=function(e){const t=Object.freeze({getSuitableParent(n){const r=function(e){return e.parentElement?e.parentElement:e.ownerElement&&e.ownerElement||void 0}(n);if(void 0===r)throw console.error(n),new Error("No suitable parent found for node above.");if(!e.passToParent)return r;if(Array.isArray(e.passToParent)){const t=e=>r.tagName.toLowerCase()===e.toLowerCase();if(-1===e.passToParent.findIndex(t))return r}return"function"!=typeof e.passToParent||e.passToParent(r)?t.getSuitableParent(r):r}});return t}(r),l=function(e,t){const n=Object.freeze({handleAttributes(n){let r=[];for(const[o,a]of Object.entries(e.tagAttributes))for(const e of a){const a=ne(t.getAttributeXPath({tag:o,attribute:e}),n);r=[...r,...a]}return r},handleChildList(e){let t=[];return t=t.concat(n.handleAttributes(e)),t=t.concat(n.handleText(e)),t},handleText:e=>ne(t.getTextXPath(),e)});return n}(r,o),s=de(r,n,a);function u(e){for(const t of e){const e=re(t),n=e?o.unwrap(e):null;if(n){const{text:r,keys:o}=n;oe(t,r);const a=Z(e,o),l=i.getSuitableParent(t);s.register(l,t,a)}}}function c(e){ne(`./descendant-or-self::*[@${K}]`,e).forEach((e=>{const t=e.getAttributeNode(K),n=i.getSuitableParent(t);s.register(n,t,{oldTextContent:"",keys:[{key:re(t)}],keyAttributeOnly:!0})}))}const d=new MutationObserver((e=>{if(t){for(const t of e){let e=[];switch(t.type){case"characterData":e=l.handleText(t.target);break;case"childList":c(t.target),e=l.handleChildList(t.target);break;case"attributes":c(t.target),e=l.handleAttributes(t.target)}u(e)}s.refreshAll()}})),p=r.targetElement||document.body;return t=!0,s.run(e),c(p),u(l.handleChildList(p)),d.observe(p,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),{stop(){t=!1,s.stop(),d.disconnect()},elementRegistry:s,wrapper:o}}const a=Object.freeze({run(t){e=r(t)},stop(){null==e||e.stop()},forEachElement(t){var n,r;null===(r=null===(n=null==e?void 0:e.elementRegistry)||void 0===n?void 0:n.forEachElement)||void 0===r||r.call(n,t)},highlight(t,n){var r;const o=(null===(r=null==e?void 0:e.elementRegistry)||void 0===r?void 0:r.findAll(t,n))||[];return o.forEach((e=>{var t;return null===(t=e.highlight)||void 0===t?void 0:t.call(e)})),{unhighlight(){o.forEach((e=>{var t;return null===(t=e.unhighlight)||void 0===t?void 0:t.call(e)}))}}},findPositions(t,n){var r;const a=(null===(r=null==e?void 0:e.elementRegistry)||void 0===r?void 0:r.findAll(t,n))||[],i=[];return a.sort(((e,t)=>e.element.compareDocumentPosition(t.element)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),a.forEach((e=>{const r=e.element.getBoundingClientRect();e.nodes.forEach((e=>{e.keys.forEach((e=>{ie({key:t,ns:o(n)},{key:e.key,ns:o(e.ns)})&&i.push({position:{x:r.x,y:r.y,width:r.width,height:r.height},keyName:e.key,keyNamespace:e.ns||""})}))}))})),i},unwrap:t=>e?e.wrapper.unwrap(t):{text:t,keys:[]},wrap:t=>e?e.wrapper.wrap(t):t.translation||""});return a}const fe=["‌","‍"],he=RegExp(`([${fe.join("")}]{9})+`,"gu");function me(e){const t=function(e){return Array.from((new TextEncoder).encode(e))}(e).map(Number),n=t.map((e=>function(e){const t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0")).join("");return Array.from(n).map((e=>fe[Number(e)])).join("")}function ge(e){const t=Array.from(e).map((e=>fe.indexOf(e))).map(String).join("").match(/(.{9})/g),n=Uint8Array.from((null==t?void 0:t.map((e=>parseInt(e.slice(0,8),2))))||[]);return r=n,(new TextDecoder).decode(new Uint8Array(r));var r}function ve({fullKeyEncode:e}){const t=function(){const e=[];return Object.freeze({valueToNumber(t){let n=e.indexOf(t);return-1===n&&(n=e.length,e.push(t)),n},numberToValue:t=>e[t]})}();function n(e){const t={k:e.key,n:e.ns||void 0,d:e.defaultValue};return JSON.stringify(t)}return Object.freeze({unwrap(e){const n=[],r=function(e){var t;const n=null===(t=e.match(he))||void 0===t?void 0:t.filter((e=>e.length>8));return(null==n?void 0:n.map(ge))||[]}(e);r.forEach((e=>{const r=function(e){if(e.length<=4){const[n]=function(e){const t=[];for(const n of e)t.push(n.codePointAt(0));return t}(e);return t.numberToValue(n)}return e}(e),o=function(e){try{return JSON.parse(e||"{}")}catch(e){return void console.error(e)}}(r);if(o){const{k:e,d:t,n:r}=o;n.push({key:e,defaultValue:t,ns:r})}}));const o=function(e){return e.replace(he,"")}(e);return{text:o,keys:n}},wrap({key:r,defaultValue:o,translation:a,ns:i}){let l;if(e){l=me(n({key:r,ns:i}))}else{const e=n({key:r,ns:i,defaultValue:o}),a=t.valueToNumber(e);l=me(String.fromCodePoint(a))}const s=a||"";return"string"==typeof s?s+l:s},getTextXPath:()=>`./descendant-or-self::text()[contains(., '${fe[0]}${fe[0]}') or contains(., '${fe[1]}${fe[0]}')]`,getAttributeXPath:({tag:e,attribute:t})=>`descendant-or-self::${e}/@${t}[contains(., '${fe[0]}${fe[0]}') or contains(., '${fe[1]}${fe[0]}')]`})}function ye(e,t){let n=0;for(;e>-1&&"\\"===t[e-1];)n++,e--;return n%2==1}function be({inputPrefix:e,inputSuffix:t,translate:n}){function r(e){const{key:t,params:r,defaultValue:o,ns:a}=function(e){let t=!1,n="",r="",o="KEY";const a={key:"",ns:void 0,params:{},defaultValue:void 0},i=e=>{a.ns=e};for(const l of e)"\\"!==l||t?t?(t=!1,n+=l):"KEY"!==o||","!==l?"KEY"!==o||"|"!==l?"NAMESPACE"!==o||","!==l?"KEY"!==o||":"!==l?"DEFAULT_VALUE"!==o||":"!==l?"PARAM_NAME"!==o||":"!==l?"PARAM_VALUE"!==o||","!==l?n+=l:(o="PARAM_NAME",a.params[r]=n,n=""):(o="PARAM_VALUE",r=n,n=""):(o="PARAM_NAME",a.defaultValue=n,n=""):(o="PARAM_NAME",a.key=n,n=""):(o="DEFAULT_VALUE",i(n),n=""):(o="NAMESPACE",a.key=n,n=""):(o="DEFAULT_VALUE",a.key=n,n=""):t=!0;return"KEY"===o&&(a.key=n),"DEFAULT_VALUE"===o&&(a.defaultValue=n),"PARAM_VALUE"===o&&(a.params[r]=n),"NAMESPACE"===o&&i(n),a}(e);return{translated:n({key:t,params:r,defaultValue:o,ns:a,noWrap:!0}),key:t,params:r,defaultValue:o,ns:a}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e){return"string"==typeof e?e.replace(/[,:|\\]/gs,"\\$&"):"number"==typeof e||"bigint"==typeof e?e.toString():(console.warn(`Parameters of type "${typeof e}" are not supported in "text" wrapper mode.`),e)}return Object.freeze({wrap({key:n,params:r,defaultValue:o,ns:i}){let l=Object.entries(r||{}).map((([e,t])=>`${a(e)}:${a(t)}`)).join(",");l=l.length?`:${l}`:"";const s=void 0!==o?`,${a(o)}`:"",u="string"==typeof i?[i]:i,c=(null==u?void 0:u.length)?`|${u.map((e=>a(e))).join("|")}`:"";return`${e}${a(n)}${c}${s}${l}${t}`},unwrap(n){const a=new RegExp(`(\\\\?)(${o(e)}(.*?)${o(t)})`,"gs"),i=[];let l,s=!1,u=0,c="";for(;null!==(l=a.exec(n));){let e=l[1];const[t,o,a,d]=l,{index:p,input:f}=l;if(c+=f.substr(u,p-u),u=p+t.length,"\\"===e){if(!ye(p,n)){c+=a;continue}e=""}const h=r(d);i.push({key:h.key,params:h.params,defaultValue:h.defaultValue,ns:h.ns}),s=!0,c+=e+h.translated}return c+=n.substring(u),s?{text:c,keys:i}:{text:n,keys:[]}},getTextXPath:()=>`./descendant-or-self::text()[contains(., '${e}') and contains(., '${t}')]`,getAttributeXPath:({tag:n,attribute:r})=>`descendant-or-self::${n}/@${r}[contains(., '${e}') and contains(., '${t}')]`})}const xe=()=>(e,t)=>("text"===e.getInitialOptions().observerType?t.setObserver((()=>{const e=pe();return Object.freeze(Object.assign(Object.assign({},e),{run(t){const n=be({inputPrefix:t.options.inputPrefix,inputSuffix:t.options.inputSuffix,translate:t.translate});e.run(Object.assign(Object.assign({},t),{wrapper:n}))},retranslate(){e.forEachElement(((t,n)=>{for(const[t,r]of n.nodes.entries()){if(r.keyAttributeOnly)return;const n=e.unwrap(r.oldTextContent);n&&oe(t,n.text)}}))},outputNotFormattable:!0}))})):t.setObserver((()=>{const e=pe();return Object.freeze(Object.assign(Object.assign({},e),{run(t){const n=ve({fullKeyEncode:t.options.fullKeyEncode});e.run(Object.assign(Object.assign({},t),{wrapper:n}))},retranslate(){},outputNotFormattable:!1}))})),e),we="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function ke(e){const t=we.indexOf(e);if(-1===t)throw new Error("Invalid character found: "+e);return t}function Se(e){const t=(e=e.toUpperCase()).length;let n=0,r=0,o=0;const a=new Uint8Array(5*t/8|0);for(let i=0;i<t;i++)r=r<<5|ke(e[i]),n+=5,n>=8&&(a[o++]=r>>>n-8&255,n-=8);return function(e){const t=new Uint8Array(e),n=t.length;let r="",o=Math.pow(2,16)-1;for(let e=0;e<n;e+=o)e+o>n&&(o=n-e),r+=String.fromCharCode.apply(null,t.subarray(e,e+o));return r}(a.buffer)}function Ee(e){if(e)try{const[t,n]=e.split("_");if("tgpak"===t){const[e]=Se(n).split("_");return Number(e)}}catch(e){console.warn("Tolgee: Api key can't be parsed")}}function Ce(e){if(!e)return;const[t]=e.split("_");return"tgpak"===t?"tgpak":"tgpat"===t?"tgpat":"legacy"}const Oe=()=>(e,t)=>(t.setDevBackend({getRecord({apiUrl:e,apiKey:t,language:n,namespace:r,projectId:o,fetch:a}){var i;const l=null!==(i=Ee(t))&&void 0!==i?i:o;let s=void 0!==l?`${e}/v2/projects/${l}/translations/${n}`:`${e}/v2/projects/translations/${n}`;if(r&&(s+=`?ns=${r}`),"tgpat"===Ce(t)&&void 0===o)throw new Error("You need to specify 'projectId' when using PAT key");return a(s,{headers:{"X-API-Key":t||"","Content-Type":"application/json"}}).then((e=>{if(e.ok)return e.json().then((e=>e[n]));throw new Error(e.statusText)}))}}),e);function Pe({message:e,recievingMessage:t,data:n,attempts:r=1}){let o=!1;const a=()=>new Promise(((r,o)=>{const a=function(e,t){const n=n=>{var r,o;e.includes(null===(r=n.data)||void 0===r?void 0:r.type)&&t(null===(o=n.data)||void 0===o?void 0:o.data)};return window.addEventListener("message",n,!1),{unsubscribe(){window.removeEventListener("message",n)}}}(t,(function(e){clearTimeout(i),l(),r(e)}));window.postMessage({type:e,data:n},window.origin);const i=setTimeout((function(){l(),o()}),300);function l(){a.unsubscribe()}}));return{cancel(){o=!0},promise:(async()=>{for(let e=0;e<r;e++){if(o)return new Promise((()=>{}));try{return await a()}catch(e){continue}}if(!o)throw`Didn't recieve ${t.join(" or ")} in time.`;return new Promise((()=>{}))})()}}const Re="tolgee-in-context-tools.umd.min.js",Te="@tolgee/in-context-tools",Me="InContextTools",Ie="https://cdn.jsdelivr.net/npm";let $e=null;function je(e){var t;return $e||($e=(t=`${Ie}/@tolgee/web@${e}/dist/${Re}`,new Promise(((e,n)=>{const r=document.createElement("script");r.src=t,r.addEventListener("load",(()=>e())),r.addEventListener("error",(e=>n(e.error))),document.body.appendChild(r)}))).then((()=>window[Te][Me]))),$e}const Le="__tolgee_apiKey",Ne="__tolgee_apiUrl";function Ae(){const e=sessionStorage.getItem(Le)||void 0,t=sessionStorage.getItem(Ne)||void 0;if(e&&t)return{apiKey:e,apiUrl:t}}function ze(){sessionStorage.removeItem(Le),sessionStorage.removeItem(Ne)}let _e=()=>e=>e;(()=>{if("undefined"==typeof window)return!1;try{return"undefined"!=typeof sessionStorage&&sessionStorage}catch(e){return console.error("sessionStorage not available",e),!1}})()&&(_e=()=>e=>{const t=function(){let e;return{update:async function(t){null==e||e();const{cancel:n,promise:r}=Pe({message:"TOLGEE_READY",recievingMessage:["TOLGEE_PLUGIN_READY","TOLGEE_PLUGIN_UPDATED"],data:t,attempts:4});return e=n,r}}}();e.on("running",(({value:n})=>{var r;n&&(r=()=>{t.update({uiPresent:!0,uiVersion:void 0,mode:e.isDev()?"development":"production",config:{apiUrl:e.getInitialOptions().apiUrl||"",apiKey:e.getInitialOptions().apiKey||""}}).catch(ze)},"loading"!==document.readyState?Promise.resolve().then((()=>{r()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",r))}));return Ae()&&(async()=>{const e=await je("5.16.0");return t=>{const n=Ae();return t.addPlugin(e({credentials:n})),t}})().then((t=>{e.addPlugin(t)})).catch((e=>{console.error("Tolgee: Failed to load in-context tools"),console.error(e)})),e});const Fe="__tolgee_currentLanguage";const De=()=>(e,t)=>(t.setLanguageStorage({getLanguage:()=>(J("LanguageStorage"),localStorage.getItem(Fe)||void 0),setLanguage(e){J("LanguageStorage"),localStorage.setItem(Fe,e)}}),e);const We=()=>(e,t)=>(t.setLanguageDetector({getLanguage({availableLanguages:e}){J("LanguageDetector");const t=window.navigator.language,n=e.find((e=>e===t));if(n)return n;const r=e=>e.replace(/^(.+?)(-.*)?$/,"$1"),o=r(window.navigator.language);return e.find((e=>r(e)===o))||void 0}}),e);function Be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ue(e){return e.endsWith("/")?e.slice(0,-1):e}const Ve={prefix:"/i18n",getPath:({namespace:e,language:t,prefix:n})=>e?`${Ue(n)}/${e}/${t}.json`:`${Ue(n)}/${t}.json`,getData:function(e){return e.json()},headers:{Accept:"application/json"}};const He=e=>(t,n)=>(n.addBackend(function(e){const t=Object.assign(Object.assign(Object.assign({},Ve),e),{headers:Object.assign(Object.assign({},Ve.headers),null==e?void 0:e.headers)}),{prefix:n,getPath:r,getData:o,headers:a}=t,i=Be(t,["prefix","getPath","getData","headers"]);return{getRecord:({namespace:e,language:t,fetch:l})=>l(r({namespace:e,language:t,prefix:n}),Object.assign({headers:a},i)).then((e=>{if(!e.ok)throw new Error(`${e.url} ${e.status}`);return o(e)}))}}(e)),t);function qe(){return O().use(_e())}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qe(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Ge,Xe={exports:{}},Ye={};function Je(){if(Ge)return Ye;Ge=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;y.constructor=v,f(y,m.prototype),y.isPureReactComponent=!0;var b=Array.isArray,x=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var o,a={},i=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(i=""+n.key),n)x.call(n,o)&&!k.hasOwnProperty(o)&&(a[o]=n[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:e,type:t,key:i,ref:l,props:a,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var C=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(n,r,o,a,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=n),n=""===a?"."+O(s,0):a,b(i)?(o="",null!=n&&(o=n.replace(C,"$&/")+"/"),P(i,r,o,"",(function(e){return e}))):null!=i&&(E(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+n)),r.push(i)),1;if(s=0,a=""===a?".":a+":",b(n))for(var u=0;u<n.length;u++){var c=a+O(l=n[u],u);s+=P(l,r,o,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(l=n.next()).done;)s+=P(l=l.value,r,o,c=a+O(l,u++),i);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function R(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},I={transition:null},$={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:I,ReactCurrentOwner:w};return Ye.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ye.Component=m,Ye.Fragment=n,Ye.Profiler=o,Ye.PureComponent=v,Ye.StrictMode=r,Ye.Suspense=s,Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,Ye.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=f({},t.props),a=t.key,i=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,l=w.current),void 0!==n.key&&(a=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)x.call(n,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:e,type:t.type,key:a,ref:i,props:o,_owner:l}},Ye.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},Ye.createElement=S,Ye.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(e){return{$$typeof:l,render:e}},Ye.isValidElement=E,Ye.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},Ye.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},Ye.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},Ye.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Ye.useCallback=function(e,t){return M.current.useCallback(e,t)},Ye.useContext=function(e){return M.current.useContext(e)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(e){return M.current.useDeferredValue(e)},Ye.useEffect=function(e,t){return M.current.useEffect(e,t)},Ye.useId=function(){return M.current.useId()},Ye.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},Ye.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},Ye.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},Ye.useMemo=function(e,t){return M.current.useMemo(e,t)},Ye.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},Ye.useRef=function(e){return M.current.useRef(e)},Ye.useState=function(e){return M.current.useState(e)},Ye.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},Ye.useTransition=function(){return M.current.useTransition()},Ye.version="18.2.0",Ye}Xe.exports=Je();var Ze,et,tt,nt=Ke(Xe.exports),rt=e({__proto__:null,default:nt},[Xe.exports]),ot={exports:{}},at={},it={exports:{}},lt={};function st(){if(et)return at;et=1;var e=Xe.exports,t=it.exports;function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function p(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new p(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=f.hasOwnProperty(t)?f[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!s.call(d,e)||!s.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),I=Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var j,L=Object.assign;function N(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var A=!1;function z(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function _(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function D(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function G(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Y(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Y(e,t,n){"number"===t&&H(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function ne(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ie,le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ie=ie||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ie.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function se(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ue={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ce=["Webkit","ms","Moz","O"];function de(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=de(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){ce.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var fe=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function he(e,t){if(t){if(fe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function me(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,be=null,xe=null;function we(e){if(e=xo(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=ko(t),ye(e.stateNode,e.type,t))}}function ke(e){be?xe?xe.push(e):xe=[e]:be=e}function Se(){if(be){var e=be,t=xe;if(xe=be=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ee(e,t){return e(t)}function Ce(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Ee(e,t,n)}finally{Oe=!1,(null!==be||null!==xe)&&(Ce(),Se())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var o=ko(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Te=!1;if(l)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(e){Te=!1}function Ie(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var $e=!1,je=null,Le=!1,Ne=null,Ae={onError:function(e){$e=!0,je=e}};function ze(e,t,n,r,o,a,i,l,s){$e=!1,je=null,Ie.apply(Ae,arguments)}function _e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function De(e){if(_e(e)!==e)throw Error(n(188))}function We(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=_e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return De(a),e;if(i===o)return De(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Be(e):null}function Be(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Be(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,He=t.unstable_shouldYield,qe=t.unstable_requestPaint,Ke=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ot(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,Ct,Ot=!1,Pt=[],Rt=null,Tt=null,Mt=null,It=new Map,$t=new Map,jt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$t.delete(t.pointerId)}}function At(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=bo(e.target);if(null!==t){var n=_e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Ft(e,t,n){_t(e)&&n.delete(t)}function Dt(){Ot=!1,null!==Rt&&_t(Rt)&&(Rt=null),null!==Tt&&_t(Tt)&&(Tt=null),null!==Mt&&_t(Mt)&&(Mt=null),It.forEach(Ft),$t.forEach(Ft)}function Wt(e,n){e.blockedOn===n&&(e.blockedOn=null,Ot||(Ot=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Dt)))}function Bt(e){function t(t){return Wt(t,e)}if(0<Pt.length){Wt(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Wt(Rt,e),null!==Tt&&Wt(Tt,e),null!==Mt&&Wt(Mt,e),It.forEach(t),$t.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)zt(n),null===n.blockedOn&&jt.shift()}var Ut=v.ReactCurrentBatchConfig,Vt=!0;function Ht(e,t,n,r){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Ut.transition=a}}function qt(e,t,n,r){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Ut.transition=a}}function Kt(e,t,n,r){if(Vt){var o=Gt(e,t,n,r);if(null===o)Vr(e,t,r,Qt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Rt=At(Rt,e,t,n,r,o),!0;case"dragenter":return Tt=At(Tt,e,t,n,r,o),!0;case"mouseover":return Mt=At(Mt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return It.set(a,At(It.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,$t.set(a,At($t.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Gt(e,t,n,r))&&Vr(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Qt=null;function Gt(e,t,n,r){if(Qt=null,null!==(e=bo(e=ve(r))))if(null===(t=_e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Ge:return 1;case Ye:return 4;case Je:case Ze:return 16;case tt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=L({},un,{view:0,detail:0}),pn=on(dn),fn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(fn),mn=on(L({},fn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var On=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(On),Rn=on(L({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Mn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=on(In),jn=[9,13,27,32],Ln=l&&"CompositionEvent"in window,Nn=null;l&&"documentMode"in document&&(Nn=document.documentMode);var An=l&&"TextEvent"in window&&!Nn,zn=l&&(!Ln||Nn&&8<Nn&&11>=Nn),_n=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Hn(e,t,n,r){ke(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Qn(e){_r(e,0)}function Gn(e){if(V(wo(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(l){var Jn;if(l){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Yn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];Hn(t,Kn,e,ve(e)),Pe(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function ar(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==H(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function Cr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}l&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Or=Cr("animationend"),Pr=Cr("animationiteration"),Rr=Cr("animationstart"),Tr=Cr("transitionend"),Mr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $r(e,t){Mr.set(e,t),a(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Lr=Ir[jr];$r(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}$r(Or,"onAnimationEnd"),$r(Pr,"onAnimationIteration"),$r(Rr,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(Tr,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function zr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,l,s,u){if(ze.apply(this,arguments),$e){if(!$e)throw Error(n(198));var c=je;$e=!1,je=null,Le||(Le=!0,Ne=c)}}(o,t,void 0,e),e.currentTarget=null}function _r(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;zr(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;zr(o,l,u),a=s}}}if(Le)throw e=Ne,Le=!1,Ne=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Wr]){e[Wr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||Dr(t,!1,e),Dr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wr]||(t[Wr]=!0,Dr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=bo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=a,o=ve(n),i=[];e:{var l=Mr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tn;break;case Or:case Pr:case Rr:s=vn;break;case Tr:s=Mn;break;case"scroll":s=pn;break;case"wheel":s=$n;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rn}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Re(h,p))&&c.push(Hr(h,m,f)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ge||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=_e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:wo(s),f=null==u?l:wo(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,bo(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=Kr(f))h++;for(f=0,m=p;m;m=Kr(m))f++;for(;0<h-f;)c=Kr(c),h--;for(;0<f-h;)p=Kr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Kr(c),p=Kr(p)}c=null}else c=null;null!==s&&Qr(i,l,s,c,!1),null!==u&&null!==d&&Qr(i,d,u,c,!0)}if("select"===(s=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Xn;else if(Vn(l))if(Yn)g=ir;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Hn(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&Y(l,"number",l.value)),v=r?wo(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Jt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=qr(r,b)).length&&(b=new xn(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=Wn(n))&&(b.data=y))),(y=An?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Fn=!0,_n);case"textInput":return(e=t.data)===_n&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Ln&&Dn(e,t)?(e=en(),Zt=Jt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}_r(i,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Hr(e,a,o)),null!=(a=Re(e,t))&&r.push(Hr(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Re(n,a))&&i.unshift(Hr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Hr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Jr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,vo="__reactListeners$"+po,yo="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[fo])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ko(e){return e[ho]||null}var So=[],Eo=-1;function Co(e){return{current:e}}function Oo(e){0>Eo||(e.current=So[Eo],So[Eo]=null,Eo--)}function Po(e,t){Eo++,So[Eo]=e.current,e.current=t}var Ro={},To=Co(Ro),Mo=Co(!1),Io=Ro;function $o(e,t){var n=e.type.contextTypes;if(!n)return Ro;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function jo(e){return null!=(e=e.childContextTypes)}function Lo(){Oo(Mo),Oo(To)}function No(e,t,r){if(To.current!==Ro)throw Error(n(168));Po(To,t),Po(Mo,r)}function Ao(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,D(e)||"Unknown",a));return L({},r,o)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ro,Io=To.current,Po(To,e),Po(Mo,Mo.current),!0}function _o(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Ao(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,Oo(Mo),Oo(To),Po(To,e)):Oo(Mo),Po(Mo,r)}var Fo=null,Do=!1,Wo=!1;function Bo(e){null===Fo?Fo=[e]:Fo.push(e)}function Uo(){if(!Wo&&null!==Fo){Wo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Do=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ue(Ge,Uo),t}finally{bt=t,Wo=!1}}return null}var Vo=[],Ho=0,qo=null,Ko=0,Qo=[],Go=0,Xo=null,Yo=1,Jo="";function Zo(e,t){Vo[Ho++]=Ko,Vo[Ho++]=qo,qo=e,Ko=t}function ea(e,t,n){Qo[Go++]=Yo,Qo[Go++]=Jo,Qo[Go++]=Xo,Xo=e;var r=Yo;e=Jo;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var a=32-ot(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Yo=1<<32-ot(t)+o|n<<o|r,Jo=a+e}else Yo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Vo[--Ho],Vo[Ho]=null,Ko=Vo[--Ho],Vo[Ho]=null;for(;e===Xo;)Xo=Qo[--Go],Qo[Go]=null,Jo=Qo[--Go],Qo[Go]=null,Yo=Qo[--Go],Qo[Go]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=$u(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Yo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=$u(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var r=t;if(!sa(e,t)){if(ua(e))throw Error(n(418));t=uo(r.nextSibling);var o=ra;t&&sa(e,t)?la(o,r):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(n(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw fa(),Error(n(418));for(;t;)la(e,t),t=uo(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=v.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Co(null),ba=null,xa=null,wa=null;function ka(){wa=xa=ba=null}function Sa(e){var t=ya.current;Oo(ya),e._currentValue=t}function Ea(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xl=!0),e.firstContext=null)}function Oa(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(n(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var Pa=null;function Ra(e){null===Pa?Pa=[e]:Pa.push(e)}function Ta(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ra(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ma(e,r)}function Ma(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ia=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function La(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ts)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ma(e,n)}return null===(o=r.interleaved)?(t.next=t,Ra(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ma(e,n)}function Aa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _a(e,t,n,r){var o=e.updateQueue;Ia=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,c=u=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=L({},d,p);break e;case 2:Ia=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);zs|=i,e.lanes=i,e.memoizedState=d}}function Fa(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var Da=(new e.Component).refs;function Wa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ba={isMounted:function(e){return!!(e=e._reactInternals)&&_e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=La(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Na(e,a,o))&&(ru(t,e,o,r),Aa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=La(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Na(e,a,o))&&(ru(t,e,o,r),Aa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=La(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Na(e,o,r))&&(ru(t,e,r,n),Aa(t,e,r))}};function Ua(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function Va(e,t,n){var r=!1,o=Ro,a=t.contextType;return"object"==typeof a&&null!==a?a=Oa(a):(o=jo(t)?Io:To.current,a=(r=null!=(r=t.contextTypes))?$o(e,o):Ro),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ba,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ba.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Da,$a(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oa(a):(a=jo(t)?Io:To.current,o.context=$o(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Wa(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ba.enqueueReplaceState(o,o.state,null),_a(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Da&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ga(e){return(0,e._init)(e._payload)}function Xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Lu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=_u(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&Ga(o)===t.type)?((r=a(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Au(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=_u(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case b:return(t=Fu(t,e.mode,n)).return=e,t;case T:return p(e,(0,t._init)(t._payload),n)}if(J(t)||$(t))return(t=Au(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case T:return f(e,t,(o=n._init)(n._payload),r)}if(J(n)||$(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return h(e,t,n,(0,r._init)(r._payload),o)}if(J(r)||$(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}function m(n,a,l,s){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(n,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return r(n,d),aa&&Zo(n,m),u;if(null===d){for(;m<l.length;m++)null!==(d=p(n,l[m],s))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return aa&&Zo(n,m),u}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),aa&&Zo(n,m),u}function g(a,l,s,u){var c=$(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,m=l,g=l=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(a,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(a,m),aa&&Zo(a,g),c;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=p(a,y.value,u))&&(l=i(y,l,g),null===d?c=y:d.sibling=y,d=y);return aa&&Zo(a,g),c}for(m=o(a,m);!y.done;g++,y=s.next())null!==(y=h(m,a,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),aa&&Zo(a,g),c}return function e(n,o,i,s){if("object"==typeof i&&null!==i&&i.type===x&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case y:e:{for(var u=i.key,c=o;null!==c;){if(c.key===u){if((u=i.type)===x){if(7===c.tag){r(n,c.sibling),(o=a(c,i.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===T&&Ga(u)===c.type){r(n,c.sibling),(o=a(c,i.props)).ref=Ka(n,c,i),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}i.type===x?((o=Au(i.props.children,n.mode,s,i.key)).return=n,n=o):((s=Nu(i.type,i.key,i.props,null,n.mode,s)).ref=Ka(n,o,i),s.return=n,n=s)}return l(n);case b:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){r(n,o.sibling),(o=a(o,i.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Fu(i,n.mode,s)).return=n,n=o}return l(n);case T:return e(n,o,(c=i._init)(i._payload),s)}if(J(i))return m(n,o,i,s);if($(i))return g(n,o,i,s);Qa(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(r(n,o.sibling),(o=a(o,i)).return=n,n=o):(r(n,o),(o=_u(i,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Ya=Xa(!0),Ja=Xa(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(n(174));return e}function oi(e,t){switch(Po(ni,t),Po(ti,e),Po(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ei),Po(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ae(t,e.type);t!==n&&(Po(ti,e),Po(ei,n))}function li(e){ti.current===e&&(Oo(ei),Oo(ti))}var si=Co(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function di(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var pi=v.ReactCurrentDispatcher,fi=v.ReactCurrentBatchConfig,hi=0,mi=null,gi=null,vi=null,yi=!1,bi=!1,xi=0,wi=0;function ki(){throw Error(n(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Ei(e,t,r,o,a,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ll:sl,e=r(o,a),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(n(301));i+=1,vi=gi=null,t.updateQueue=null,pi.current=ul,e=r(o,a)}while(bi)}if(pi.current=il,t=null!==gi&&null!==gi.next,hi=0,vi=gi=mi=null,yi=!1,t)throw Error(n(300));return e}function Ci(){var e=0!==xi;return xi=0,e}function Oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?mi.memoizedState=vi=e:vi=vi.next=e,vi}function Pi(){if(null===gi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===vi?mi.memoizedState:vi.next;if(null!==t)vi=t,gi=e;else{if(null===e)throw Error(n(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===vi?mi.memoizedState=vi=e:vi=vi.next=e}return vi}function Ri(e,t){return"function"==typeof t?t(e):t}function Ti(e){var t=Pi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=gi,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((hi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=p,l=o):u=u.next=p,mi.lanes|=d,zs|=d}c=c.next}while(null!==c&&c!==i);null===u?l=o:u.next=s,lr(o,t.memoizedState)||(xl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,mi.lanes|=i,zs|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Mi(e){var t=Pi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);lr(i,t.memoizedState)||(xl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Ii(){}function $i(e,t){var r=mi,o=Pi(),a=t(),i=!lr(o.memoizedState,a);if(i&&(o.memoizedState=a,xl=!0),o=o.queue,Vi(Ni.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(r.flags|=2048,Fi(9,Li.bind(null,r,o,a,t),void 0,null),null===Ms)throw Error(n(349));0!=(30&hi)||ji(r,t,a)}return a}function ji(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Li(e,t,n,r){t.value=n,t.getSnapshot=r,Ai(t)&&zi(e)}function Ni(e,t,n){return n((function(){Ai(t)&&zi(e)}))}function Ai(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function zi(e){var t=Ma(e,1);null!==t&&ru(t,e,1,-1)}function _i(e){var t=Oi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,mi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Di(){return Pi().memoizedState}function Wi(e,t,n,r){var o=Oi();mi.flags|=e,o.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function Bi(e,t,n,r){var o=Pi();r=void 0===r?null:r;var a=void 0;if(null!==gi){var i=gi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=Fi(t,n,a,r))}mi.flags|=e,o.memoizedState=Fi(1|t,n,a,r)}function Ui(e,t){return Wi(8390656,8,e,t)}function Vi(e,t){return Bi(2048,8,e,t)}function Hi(e,t){return Bi(4,2,e,t)}function qi(e,t){return Bi(4,4,e,t)}function Ki(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4,4,Ki.bind(null,t,e),n)}function Gi(){}function Xi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,xl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),mi.lanes|=n,zs|=n,e.baseState=!0),t)}function Zi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{bt=n,fi.transition=r}}function el(){return Pi().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=Ta(e,t,n,r))){ru(n,e,r,tu()),al(n,t,r)}}function nl(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ra(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ta(e,t,o,r))&&(ru(n,e,r,o=tu()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function ol(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var il={readContext:Oa,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ll={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Wi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wi(4,2,e,t)},useMemo:function(e,t){var n=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oi().memoizedState=e},useState:_i,useDebugValue:Gi,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=_i(!1),t=e[0];return e=Zi.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=mi,a=Oi();if(aa){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ms)throw Error(n(349));0!=(30&hi)||ji(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Ui(Ni.bind(null,o,i,e),[e]),o.flags|=2048,Fi(9,Li.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Oi(),t=Ms.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Yo&~(1<<32-ot(Yo)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Oa,useCallback:Xi,useContext:Oa,useEffect:Vi,useImperativeHandle:Qi,useInsertionEffect:Hi,useLayoutEffect:qi,useMemo:Yi,useReducer:Ti,useRef:Di,useState:function(){return Ti(Ri)},useDebugValue:Gi,useDeferredValue:function(e){return Ji(Pi(),gi.memoizedState,e)},useTransition:function(){return[Ti(Ri)[0],Pi().memoizedState]},useMutableSource:Ii,useSyncExternalStore:$i,useId:el,unstable_isNewReconciler:!1},ul={readContext:Oa,useCallback:Xi,useContext:Oa,useEffect:Vi,useImperativeHandle:Qi,useInsertionEffect:Hi,useLayoutEffect:qi,useMemo:Yi,useReducer:Mi,useRef:Di,useState:function(){return Mi(Ri)},useDebugValue:Gi,useDeferredValue:function(e){var t=Pi();return null===gi?t.memoizedState=e:Ji(t,gi.memoizedState,e)},useTransition:function(){return[Mi(Ri)[0],Pi().memoizedState]},useMutableSource:Ii,useSyncExternalStore:$i,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=_(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=La(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,qs=r),pl(0,t)},n}function ml(e,t,n){(n=La(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){pl(0,t),"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ou.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=La(-1,1)).tag=2,Na(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=v.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?Ja(t,null,n,r):Ya(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Ei(e,t,n,r,a,o),n=Ci(),null===e||xl?(aa&&n&&ta(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||ju(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Lu(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);0!=(131072&e.flags)&&(xl=!0)}}return Pl(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,js),js|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,js),js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Po(Ls,js),js|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,js),js|=r;return wl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pl(e,t,n,r,o){var a=jo(n)?Io:To.current;return a=$o(t,a),Ca(t,o),n=Ei(e,t,n,r,a,o),r=Ci(),null===e||xl?(aa&&r&&ta(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Rl(e,t,n,r,o){if(jo(n)){var a=!0;zo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Vl(e,t),Va(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=Oa(u):u=$o(t,u=jo(n)?Io:To.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&Ha(t,i,r,u),Ia=!1;var p=t.memoizedState;i.state=p,_a(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Mo.current||Ia?("function"==typeof c&&(Wa(t,n,c,r),s=t.memoizedState),(l=Ia||Ua(t,n,l,r,p,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ja(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:va(t.type,l),i.props=u,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Oa(s):s=$o(t,s=jo(n)?Io:To.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&Ha(t,i,r,s),Ia=!1,p=t.memoizedState,i.state=p,_a(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Mo.current||Ia?("function"==typeof f&&(Wa(t,n,f,r),h=t.memoizedState),(u=Ia||Ua(t,n,u,r,p,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tl(e,t,n,r,a,o)}function Tl(e,t,n,r,o,a){Ol(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&_o(t,n,!1),Hl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&_o(t,n,!0),t.child}function Ml(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),oi(e,t.containerInfo)}function Il(e,t,n,r,o){return ha(),ma(o),t.flags|=256,wl(e,t,n,r),t.child}var $l,jl,Ll,Nl,Al={dehydrated:null,treeContext:null,retryLane:0};function zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function _l(e,t,r){var o,a=t.pendingProps,i=si.current,l=!1,s=0!=(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&0!=(2&i)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Po(si,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=zu(s,a,0,null),e=Au(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=zl(r),t.memoizedState=Al,e):Fl(t,s));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,l){if(r)return 256&t.flags?(t.flags&=-257,Dl(e,t,l,o=dl(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=zu({mode:"visible",children:o.children},a,0,null),(i=Au(i,a,l,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,0!=(1&t.mode)&&Ya(t,e.child,null,l),t.child.memoizedState=zl(l),t.memoizedState=Al,i);if(0==(1&t.mode))return Dl(e,t,l,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var s=o.dgst;return o=s,Dl(e,t,l,o=dl(i=Error(n(419)),o,void 0))}if(s=0!=(l&e.childLanes),xl||s){if(null!==(o=Ms)){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(o.suspendedLanes|l))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Ma(e,a),ru(o,e,a,-1))}return gu(),Dl(e,t,l,o=dl(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,oa=uo(a.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Go++]=Yo,Qo[Go++]=Jo,Qo[Go++]=Xo,Yo=e.id,Jo=e.overflow,Xo=t),t=Fl(t,o.children),t.flags|=4096,t)}(e,t,s,a,o,i,r);if(l){l=a.fallback,s=t.mode,o=(i=e.child).sibling;var u={mode:"hidden",children:a.children};return 0==(1&s)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Lu(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==o?l=Lu(o,l):(l=Au(l,s,r,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?zl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=Al,a}return e=(l=e.child).sibling,a=Lu(l,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Fl(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){return null!==r&&ma(r),Ya(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Wl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ea(e.return,t,n)}function Bl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Ul(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),0!=(2&(r=si.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wl(e,n,t);else if(19===e.tag)Wl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(si,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,a);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Lu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Lu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function ql(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,r){var a=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return jo(t.type)&&Lo(),Kl(t),null;case 3:return a=t.stateNode,ai(),Oo(Mo),Oo(To),di(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(lu(ia),ia=null))),jl(e,t),Kl(t),null;case 5:li(t);var i=ri(ni.current);if(r=t.type,null!==e&&null!=t.stateNode)Ll(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Kl(t),null}if(e=ri(ei.current),pa(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[fo]=t,a[ho]=l,e=0!=(1&t.mode),r){case"dialog":Fr("cancel",a),Fr("close",a);break;case"iframe":case"object":case"embed":Fr("load",a);break;case"video":case"audio":for(i=0;i<Nr.length;i++)Fr(Nr[i],a);break;case"source":Fr("error",a);break;case"img":case"image":case"link":Fr("error",a),Fr("load",a);break;case"details":Fr("toggle",a);break;case"input":K(a,l),Fr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},Fr("invalid",a);break;case"textarea":te(a,l),Fr("invalid",a)}for(var s in he(r,l),i=null,l)if(l.hasOwnProperty(s)){var u=l[s];"children"===s?"string"==typeof u?a.textContent!==u&&(!0!==l.suppressHydrationWarning&&Jr(a.textContent,u,e),i=["children",u]):"number"==typeof u&&a.textContent!==""+u&&(!0!==l.suppressHydrationWarning&&Jr(a.textContent,u,e),i=["children",""+u]):o.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",a)}switch(r){case"input":U(a),X(a,l,!0);break;case"textarea":U(a),re(a);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(a.onclick=Zr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=s.createElement(r,{is:a.is}):(e=s.createElement(r),"select"===r&&(s=e,a.multiple?s.multiple=!0:a.size&&(s.size=a.size))):e=s.createElementNS(e,r),e[fo]=t,e[ho]=a,$l(e,t,!1,!1),t.stateNode=e;e:{switch(s=me(r,a),r){case"dialog":Fr("cancel",e),Fr("close",e),i=a;break;case"iframe":case"object":case"embed":Fr("load",e),i=a;break;case"video":case"audio":for(i=0;i<Nr.length;i++)Fr(Nr[i],e);i=a;break;case"source":Fr("error",e),i=a;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=a;break;case"details":Fr("toggle",e),i=a;break;case"input":K(e,a),i=q(e,a),Fr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=L({},a,{value:void 0}),Fr("invalid",e);break;case"textarea":te(e,a),i=ee(e,a),Fr("invalid",e)}for(l in he(r,i),u=i)if(u.hasOwnProperty(l)){var c=u[l];"style"===l?pe(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&se(e,c):"number"==typeof c&&se(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=c&&"onScroll"===l&&Fr("scroll",e):null!=c&&g(e,l,c,s))}switch(r){case"input":U(e),X(e,a,!1);break;case"textarea":U(e),re(e);break;case"option":null!=a.value&&e.setAttribute("value",""+W(a.value));break;case"select":e.multiple=!!a.multiple,null!=(l=a.value)?Z(e,!!a.multiple,l,!1):null!=a.defaultValue&&Z(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=ri(ni.current),ri(ei.current),pa(t)){if(a=t.stateNode,r=t.memoizedProps,a[fo]=t,(l=a.nodeValue!==r)&&null!==(e=ra))switch(e.tag){case 3:Jr(a.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(a.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[fo]=t,t.stateNode=a}return Kl(t),null;case 13:if(Oo(si),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))fa(),ha(),t.flags|=98560,l=!1;else if(l=pa(t),null!==a&&null!==a.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[fo]=t}else ha(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==ia&&(lu(ia),ia=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&si.current)?0===Ns&&(Ns=3):gu())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return ai(),jl(e,t),null===e&&Br(t.stateNode.containerInfo),Kl(t),null;case 10:return Sa(t.type._context),Kl(t),null;case 19:if(Oo(si),null===(l=t.memoizedState))return Kl(t),null;if(a=0!=(128&t.flags),null===(s=l.rendering))if(a)ql(l,!1);else{if(0!==Ns||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ui(e))){for(t.flags|=128,ql(l,!1),null!==(a=s.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Po(si,1&si.current|2),t.child}e=e.sibling}null!==l.tail&&Ke()>Us&&(t.flags|=128,a=!0,ql(l,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=ui(s))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ql(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!aa)return Kl(t),null}else 2*Ke()-l.renderingStartTime>Us&&1073741824!==r&&(t.flags|=128,a=!0,ql(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ke(),t.sibling=null,r=si.current,Po(si,a?1&r|2:1&r),t):(Kl(t),null);case 22:case 23:return pu(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&0!=(1&t.mode)?0!=(1073741824&js)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Gl(e,t){switch(na(t),t.tag){case 1:return jo(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(Mo),Oo(To),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Oo(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(si),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}$l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},jl=function(){},Ll=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var i,l=null;switch(n){case"input":a=q(e,a),r=q(e,r),l=[];break;case"select":a=L({},a,{value:void 0}),r=L({},r,{value:void 0}),l=[];break;case"textarea":a=ee(e,a),r=ee(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in he(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var s=a[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(l||(l=[]),l.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(l=l||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(l=l||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),l||s===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Yl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ts(t,n,a)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,ps=!1;function fs(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch(e){}switch(n.tag){case 5:Yl||es(n,t);case 6:var r=ds,o=ps;ds=null,fs(e,t,n),ps=o,null!==(ds=r)&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(ds,n.stateNode));break;case 4:r=ds,o=ps,ds=n.stateNode.containerInfo,ps=!0,fs(e,t,n),ds=r,ps=o;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ts(n,t,i),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Yl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,fs(e,t,n),Yl=r):fs(e,t,n);break;default:fs(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,ps=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,ps=!0;break e}s=s.return}if(null===ds)throw Error(n(160));hs(i,l,a),ds=null,ps=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(e){Cu(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),ys(e),4&o){try{rs(3,e,e.return),os(3,e)}catch(t){Cu(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:gs(t,e),ys(e),512&o&&null!==r&&es(r,r.return);break;case 5:if(gs(t,e),ys(e),512&o&&null!==r&&es(r,r.return),32&e.flags){var a=e.stateNode;try{se(a,"")}catch(t){Cu(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&Q(a,i),me(s,l);var c=me(s,i);for(l=0;l<u.length;l+=2){var d=u[l],p=u[l+1];"style"===d?pe(a,p):"dangerouslySetInnerHTML"===d?le(a,p):"children"===d?se(a,p):g(a,d,p,c)}switch(s){case"input":G(a,i);break;case"textarea":ne(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?Z(a,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?Z(a,!!i.multiple,i.defaultValue,!0):Z(a,!!i.multiple,i.multiple?[]:"",!1))}a[ho]=i}catch(t){Cu(e,e.return,t)}}break;case 6:if(gs(t,e),ys(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){Cu(e,e.return,t)}}break;case 3:if(gs(t,e),ys(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:gs(t,e),ys(e);break;case 13:gs(t,e),ys(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Bs=Ke())),4&o&&ms(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Yl=(c=Yl)||d,gs(t,e),Yl=c):gs(t,e),ys(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(p=Zl=d;null!==Zl;){switch(h=(f=Zl).child,f.tag){case 0:case 11:case 14:case 15:rs(4,f,f.return);break;case 1:es(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(o,r,e)}}break;case 5:es(f,f.return);break;case 22:if(null!==f.memoizedState){ks(p);continue}}null!==h?(h.return=f,Zl=h):ks(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=de("display",l))}catch(t){Cu(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gs(t,e),ys(e),4&o&&ms(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ls(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(se(a,""),o.flags&=-33),cs(e,ss(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;us(e,ss(e),i);break;default:throw Error(n(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,xs(e)}function xs(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Xl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Yl;l=Xl;var u=Yl;if(Xl=i,(Yl=s)&&!u)for(Zl=o;null!==Zl;)s=(i=Zl).child,22===i.tag&&null!==i.memoizedState?Ss(o):null!==s?(s.return=i,Zl=s):Ss(o);for(;null!==a;)Zl=a,xs(a),a=a.sibling;Zl=o,Xl=l,Yl=u}ws(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zl=a):ws(e)}}function ws(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Yl||os(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Yl)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:va(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fa(t,i,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Fa(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Yl||512&t.flags&&as(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zl=r;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Ss(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cu(t,o,e)}}var a=t.return;try{as(t)}catch(e){Cu(t,a,e)}break;case 5:var i=t.return;try{as(t)}catch(e){Cu(t,i,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Es,Cs=Math.ceil,Os=v.ReactCurrentDispatcher,Ps=v.ReactCurrentOwner,Rs=v.ReactCurrentBatchConfig,Ts=0,Ms=null,Is=null,$s=0,js=0,Ls=Co(0),Ns=0,As=null,zs=0,_s=0,Fs=0,Ds=null,Ws=null,Bs=0,Us=1/0,Vs=null,Hs=!1,qs=null,Ks=null,Qs=!1,Gs=null,Xs=0,Ys=0,Js=null,Zs=-1,eu=0;function tu(){return 0!=(6&Ts)?Ke():-1!==Zs?Zs:Zs=Ke()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Ts)&&0!==$s?$s&-$s:null!==ga.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ru(e,t,r,o){if(50<Ys)throw Ys=0,Js=null,Error(n(185));vt(e,r,o),0!=(2&Ts)&&e===Ms||(e===Ms&&(0==(2&Ts)&&(_s|=r),4===Ns&&su(e,$s)),ou(e,o),1===r&&0===Ts&&0==(1&t.mode)&&(Us=Ke()+500,Do&&Uo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-ot(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Ms?$s:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Do=!0,Bo(e)}(uu.bind(null,e)):Bo(uu.bind(null,e)),io((function(){0==(6&Ts)&&Uo()})),n=null;else{switch(xt(r)){case 1:n=Ge;break;case 4:n=Ye;break;case 16:default:n=Je;break;case 536870912:n=tt}n=Mu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Zs=-1,eu=0,0!=(6&Ts))throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var o=pt(e,e===Ms?$s:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=vu(e,o);else{t=o;var a=Ts;Ts|=2;var i=mu();for(Ms===e&&$s===t||(Vs=null,Us=Ke()+500,fu(e,t));;)try{bu();break}catch(t){hu(e,t)}ka(),Os.current=i,Ts=a,null!==Is?t=0:(Ms=null,$s=0,t=Ns)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(o=a,t=iu(e,a))),1===t)throw r=As,fu(e,0),su(e,o),ou(e,Ke()),r;if(6===t)su(e,o);else{if(a=e.current.alternate,0==(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=vu(e,o))&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t))throw r=As,fu(e,0),su(e,o),ou(e,Ke()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:ku(e,Ws,Vs);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Bs+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&o)!==o){tu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ro(ku.bind(null,e,Ws,Vs),t);break}ku(e,Ws,Vs);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var l=31-ot(o);i=1<<l,(l=t[l])>a&&(a=l),o&=~i}if(o=a,10<(o=(120>(o=Ke()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cs(o/1960))-o)){e.timeoutHandle=ro(ku.bind(null,e,Ws,Vs),o);break}ku(e,Ws,Vs);break;default:throw Error(n(329))}}}return ou(e,Ke()),e.callbackNode===r?au.bind(null,e):null}function iu(e,t){var n=Ds;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ws,Ws=n,null!==t&&lu(t)),e}function lu(e){null===Ws?Ws=e:Ws.push.apply(Ws,e)}function su(e,t){for(t&=~Fs,t&=~_s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Ts))throw Error(n(327));Su();var t=pt(e,0);if(0==(1&t))return ou(e,Ke()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=As,fu(e,0),su(e,t),ou(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Ws,Vs),ou(e,Ke()),null}function cu(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Us=Ke()+500,Do&&Uo())}}function du(e){null!==Gs&&0===Gs.tag&&0==(6&Ts)&&Su();var t=Ts;Ts|=1;var n=Rs.transition,r=bt;try{if(Rs.transition=null,bt=1,e)return e()}finally{bt=r,Rs.transition=n,0==(6&(Ts=t))&&Uo()}}function pu(){js=Ls.current,Oo(Ls)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:ai(),Oo(Mo),Oo(To),di();break;case 5:li(r);break;case 4:ai();break;case 13:case 19:Oo(si);break;case 10:Sa(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Ms=e,Is=e=Lu(e.current,null),$s=js=t,Ns=0,As=null,Fs=_s=zs=0,Ws=Ds=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Pa=null}return e}function hu(e,t){for(;;){var r=Is;try{if(ka(),pi.current=il,yi){for(var o=mi.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}yi=!1}if(hi=0,vi=gi=mi=null,bi=!1,xi=0,Ps.current=null,null===r||null===r.return){Ns=1,As=t,Is=null;break}e:{var i=e,l=r.return,s=r,u=t;if(t=$s,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,yl(h,l,s,0,t),1&h.mode&&gl(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){gl(i,c,t),gu();break e}u=Error(n(426))}else if(aa&&1&s.mode){var v=vl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),yl(v,l,s,0,t),ma(cl(u,s));break e}}i=u=cl(u,s),4!==Ns&&(Ns=2),null===Ds?Ds=[i]:Ds.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,za(i,hl(0,u,t));break e;case 1:s=u;var y=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ks||!Ks.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,za(i,ml(i,s,t));break e}}i=i.return}while(null!==i)}wu(r)}catch(e){t=e,Is===r&&null!==r&&(Is=r=r.return);continue}break}}function mu(){var e=Os.current;return Os.current=il,null===e?il:e}function gu(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===Ms||0==(268435455&zs)&&0==(268435455&_s)||su(Ms,$s)}function vu(e,t){var r=Ts;Ts|=2;var o=mu();for(Ms===e&&$s===t||(Vs=null,fu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(ka(),Ts=r,Os.current=o,null!==Is)throw Error(n(261));return Ms=null,$s=0,Ns}function yu(){for(;null!==Is;)xu(Is)}function bu(){for(;null!==Is&&!He();)xu(Is)}function xu(e){var t=Es(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?wu(e):Is=t,Ps.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,js)))return void(Is=n)}else{if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return Ns=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ns&&(Ns=5)}function ku(e,t,r){var o=bt,a=Rs.transition;try{Rs.transition=null,bt=1,function(e,t,r,o){do{Su()}while(null!==Gs);if(0!=(6&Ts))throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ot(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ms&&(Is=Ms=null,$s=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Qs||(Qs=!0,Mu(Je,(function(){return Su(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Rs.transition,Rs.transition=null;var l=bt;bt=1;var s=Ts;Ts|=4,Ps.current=null,function(e,t){if(eo=Vt,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var l=0,s=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==a&&3!==p.nodeType||(s=l+a),p!==i||0!==o&&3!==p.nodeType||(u=l+o),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++c===a&&(s=l),f===i&&++d===o&&(u=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Vt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:va(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}m=ns,ns=!1}(e,r),vs(r,e),hr(to),Vt=!!eo,to=eo=null,e.current=r,bs(r),qe(),Ts=s,bt=l,Rs.transition=i}else e.current=r;if(Qs&&(Qs=!1,Gs=e,Xs=a),i=e.pendingLanes,0===i&&(Ks=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ke()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Hs)throw Hs=!1,e=qs,qs=null,e;0!=(1&Xs)&&0!==e.tag&&Su(),i=e.pendingLanes,0!=(1&i)?e===Js?Ys++:(Ys=0,Js=e):Ys=0,Uo()}(e,t,r,o)}finally{Rs.transition=a,bt=o}return null}function Su(){if(null!==Gs){var e=xt(Xs),t=Rs.transition,r=bt;try{if(Rs.transition=null,bt=16>e?16:e,null===Gs)var o=!1;else{if(e=Gs,Gs=null,Xs=0,0!=(6&Ts))throw Error(n(331));var a=Ts;for(Ts|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zl=p;else for(;null!==Zl;){var f=(d=Zl).sibling,h=d.return;if(is(d),d===c){Zl=null;break}if(null!==f){f.return=h,Zl=f;break}Zl=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(i=Zl).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zl=y;break e}Zl=i.return}}var b=e.current;for(Zl=b;null!==Zl;){var x=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Zl=x;else e:for(l=b;null!==Zl;){if(0!=(2048&(s=Zl).flags))try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Cu(s,s.return,e)}if(s===l){Zl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Zl=w;break e}Zl=s.return}}if(Ts=a,Uo(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch(e){}o=!0}return o}finally{bt=r,Rs.transition=t}}return!1}function Eu(e,t,n){e=Na(e,t=hl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ou(e,t))}function Cu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=Na(t,e=ml(t,e=cl(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&($s&n)===n&&(4===Ns||3===Ns&&(130023424&$s)===$s&&500>Ke()-Bs?fu(e,0):Fs|=n),ou(e,t)}function Pu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ma(e,t))&&(vt(e,t,n),ou(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Tu(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Pu(e,r)}function Mu(e,t){return Ue(e,t)}function Iu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $u(e,t,n,r){return new Iu(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lu(e,t){var n=e.alternate;return null===n?((n=$u(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,r,o,a,i){var l=2;if(o=e,"function"==typeof e)ju(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Au(r.children,a,i,t);case w:l=8,a|=8;break;case k:return(e=$u(12,r,t,2|a)).elementType=k,e.lanes=i,e;case O:return(e=$u(13,r,t,a)).elementType=O,e.lanes=i,e;case P:return(e=$u(19,r,t,a)).elementType=P,e.lanes=i,e;case M:return zu(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:l=10;break e;case E:l=9;break e;case C:l=11;break e;case R:l=14;break e;case T:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=$u(l,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Au(e,t,n,r){return(e=$u(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=$u(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function _u(e,t,n){return(e=$u(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=$u(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Du(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,r,o,a,i,l,s){return e=new Du(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=$u(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(a),e}function Bu(e){if(!e)return Ro;e:{if(_e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(jo(r))return Ao(e,r,t)}return t}function Uu(e,t,n,r,o,a,i,l,s){return(e=Wu(n,r,!0,e,0,a,0,l,s)).context=Bu(null),n=e.current,(a=La(r=tu(),o=nu(n))).callback=null!=t?t:null,Na(n,a,o),e.current.lanes=o,vt(e,o,r),ou(e,r),e}function Vu(e,t,n,r){var o=t.current,a=tu(),i=nu(o);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=La(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Na(o,t,i))&&(ru(e,o,i,a),Aa(e,o,i)),i}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ku(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mo.current)xl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return xl=!1,function(e,t,n){switch(t.tag){case 3:Ml(t),ha();break;case 5:ii(t);break;case 1:jo(t.type)&&zo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(si,1&si.current),t.flags|=128,null):0!=(n&t.child.childLanes)?_l(e,t,n):(Po(si,1&si.current),null!==(e=Hl(e,t,n))?e.sibling:null);Po(si,1&si.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ul(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(si,si.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return Hl(e,t,n)}(e,t,r);xl=0!=(131072&e.flags)}else xl=!1,aa&&0!=(1048576&t.flags)&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Vl(e,t),e=t.pendingProps;var a=$o(t,To.current);Ca(t,r),a=Ei(null,t,o,e,a,r);var i=Ci();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(o)?(i=!0,zo(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,$a(t),a.updater=Ba,t.stateNode=a,a._reactInternals=t,qa(t,o,e,r),t=Tl(null,t,o,!0,i,r)):(t.tag=0,aa&&i&&ta(t),wl(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===C)return 11;if(e===R)return 14}return 2}(o),e=va(o,e),a){case 0:t=Pl(null,t,o,e,r);break e;case 1:t=Rl(null,t,o,e,r);break e;case 11:t=kl(null,t,o,e,r);break e;case 14:t=Sl(null,t,o,va(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Pl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 1:return o=t.type,a=t.pendingProps,Rl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 3:e:{if(Ml(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,ja(e,t),_a(t,o,null,r);var l=t.memoizedState;if(o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Il(e,t,o,r,a=cl(Error(n(423)),t));break e}if(o!==a){t=Il(e,t,o,r,a=cl(Error(n(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,r=Ja(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ha(),o===a){t=Hl(e,t,r);break e}wl(e,t,o,r)}t=t.child}return t;case 5:return ii(t),null===e&&ca(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,no(o,a)?l=null:null!==i&&no(o,i)&&(t.flags|=32),Ol(e,t),wl(e,t,l,r),t.child;case 6:return null===e&&ca(t),null;case 13:return _l(e,t,r);case 4:return oi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ya(t,null,o,r):wl(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,kl(e,t,o,a=t.elementType===o?a:va(o,a),r);case 7:return wl(e,t,t.pendingProps,r),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,Po(ya,o._currentValue),o._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===a.children&&!Mo.current){t=Hl(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===o){if(1===i.tag){(u=La(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),Ea(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Ea(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,Ca(t,r),o=o(a=Oa(a)),t.flags|=1,wl(e,t,o,r),t.child;case 14:return a=va(o=t.type,t.pendingProps),Sl(e,t,o,a=va(o.type,a),r);case 15:return El(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:va(o,a),Vl(e,t),t.tag=1,jo(o)?(e=!0,zo(t)):e=!1,Ca(t,r),Va(t,o,a),qa(t,o,a,r),Tl(null,t,o,!0,e,r);case 19:return Ul(e,t,r);case 22:return Cl(e,t,r)}throw Error(n(156,t.tag))};var Qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Hu(i);l.call(e)}}Vu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hu(i);a.call(e)}}var i=Uu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=i,e[mo]=i.current,Br(8===e.nodeType?e.parentNode:e),du(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hu(s);l.call(e)}}var s=Wu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),du((function(){Vu(t,s,n,r)})),s}(n,t,e,o,r);return Hu(i)}Xu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vu(e,t,null,null)},Xu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Vu(null,e,null,null)})),t[mo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&zt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Ke()),0==(6&Ts)&&(Us=Ke()+500,Uo()))}break;case 13:du((function(){var t=Ma(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Ku(e,1)}},kt=function(e){if(13===e.tag){var t=Ma(e,134217728);if(null!==t)ru(t,e,134217728,tu());Ku(e,134217728)}},St=function(e){if(13===e.tag){var t=nu(e),n=Ma(e,t);if(null!==n)ru(n,e,t,tu());Ku(e,t)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ye=function(e,t,r){switch(t){case"input":if(G(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=ko(o);if(!a)throw Error(n(90));V(o),G(o,a)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},Ee=cu,Ce=du;var tc={usingClientEntryPoint:!1,Events:[xo,wo,ko,ke,Se,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{nt=oc.inject(rc),rt=oc}catch(e){}}return at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,at.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},at.createRoot=function(e,t){if(!Yu(e))throw Error(n(299));var r=!1,o="",a=Qu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Wu(e,1,!1,null,0,r,0,o,a),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Gu(t)},at.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=We(t))?null:e.stateNode},at.flushSync=function(e){return du(e)},at.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!0,r)},at.hydrateRoot=function(e,t,r){if(!Yu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",l=Qu;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,a,0,i,l),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Xu(t)},at.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!1,r)},at.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},at.unstable_batchedUpdates=cu,at.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,o)},at.version="18.2.0-next-9e3b772b8-20220608",at}it.exports=(Ze||(Ze=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<a&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,$(w);else{var t=n(u);null!==t&&j(x,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,v(C),C=-1),f=!0;var a=p;try{for(b(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!R());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&j(x,g.startTime-o),c=!1}return c}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,C=-1,O=5,P=-1;function R(){return!(e.unstable_now()-P<O)}function T(){if(null!==E){var t=e.unstable_now();P=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof y)k=function(){y(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,I=M.port2;M.port1.onmessage=T,k=function(){I.postMessage(null)}}else k=function(){g(T,0)};function $(e){E=e,S||(S=!0,k())}function j(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,$(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(u,r),null===n(s)&&r===n(u)&&(m?(v(C),C=-1):m=!0,j(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,$(w))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(lt)),lt),tt=ot,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),tt.exports=st();var ut=Ke(ot.exports);function ct(){let e=document.getElementById(U);return(null==e?void 0:e.isConnected)||(e=document.createElement("div"),e.id=U,e.style.height="0px",e.style.overflow="hidden",document.body.appendChild(e)),e.shadowRoot||e.attachShadow({mode:"open"}),e.shadowRoot}class dt extends Xe.exports.PureComponent{constructor(){super(...arguments),this._popup=null}get document(){return this.props.document||document}get devTools(){return ct()}componentDidMount(){this._popup=this.document.createElement("div"),this.devTools.appendChild(this._popup),this._render()}componentDidUpdate(){this._render()}componentWillUnmount(){this._popup&&(ot.exports.unmountComponentAtNode(this._popup),this.devTools.removeChild(this._popup))}_render(){ot.exports.render(Xe.exports.createElement(Xe.exports.Fragment,null,this.props.children),this._popup)}render(){return null}}const pt=e=>new Promise((t=>setTimeout(t,e))),ft=Symbol(),ht=Symbol(),mt="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?Xe.exports.useEffect:Xe.exports.useLayoutEffect,gt=it.exports.unstable_runWithPriority?e=>it.exports.unstable_runWithPriority(it.exports.unstable_NormalPriority,e):e=>e();const vt=(e,t,n)=>{var r;if(!(null==t?void 0:t.length))return!0;const o=null===(r=null==n?void 0:n.find((t=>t.tag===e)))||void 0===r?void 0:r.id;return void 0===o||t.includes(o)};function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}function bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yt(e,t)}var xt=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function wt(){return wt=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},wt.apply(this,arguments)}var kt="undefined"==typeof window;function St(){}function Et(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ct(e){return Array.isArray(e)?e:[e]}function Ot(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pt(e,t,n){return _t(e)?"function"==typeof t?wt({},n,{queryKey:e,queryFn:t}):wt({},t,{queryKey:e}):e}function Rt(e,t,n){return _t(e)?[wt({},t,{queryKey:e}),n]:[e||{},t]}function Tt(e,t){var n=e.active,r=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,l=e.queryKey,s=e.stale;if(_t(l))if(r){if(t.queryHash!==It(l,t.options))return!1}else if(!jt(t.queryKey,l))return!1;var u=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,a);if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c)return!1;if("inactive"===u&&c)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(i&&!i(t)))}function Mt(e,t){var n=e.exact,r=e.fetching,o=e.predicate,a=e.mutationKey;if(_t(a)){if(!t.options.mutationKey)return!1;if(n){if($t(t.options.mutationKey)!==$t(a))return!1}else if(!jt(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function It(e,t){return((null==t?void 0:t.queryKeyHashFn)||$t)(e)}function $t(e){var t,n=Ct(e);return t=n,JSON.stringify(t,(function(e,t){return At(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function jt(e,t){return Lt(Ct(e),Ct(t))}function Lt(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!Lt(e[n],t[n])})))}function Nt(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||At(e)&&At(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{},l=0,s=0;s<a;s++){var u=n?s:o[s];i[u]=Nt(e[u],t[u]),i[u]===e[u]&&l++}return r===a&&l===r?e:i}return t}function At(e){if(!zt(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!zt(n)&&!!n.hasOwnProperty("isPrototypeOf")}function zt(e){return"[object Object]"===Object.prototype.toString.call(e)}function _t(e){return"string"==typeof e||Array.isArray(e)}function Ft(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function Dt(){if("function"==typeof AbortController)return new AbortController}var Wt=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!kt&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}bt(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(xt)),Bt=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!kt&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}bt(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(xt));function Ut(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Vt(e){return"function"==typeof(null==e?void 0:e.cancel)}var Ht=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function qt(e){return e instanceof Ht}var Kt=function(e){var t,n,r,o,a=this,i=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){i=!0},this.continueRetry=function(){i=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){r=e,o=t}));var l=function(t){a.isResolved||(a.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},s=function(t){a.isResolved||(a.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),o(t))};!function r(){if(!a.isResolved){var o;try{o=e.fn()}catch(e){o=Promise.reject(e)}t=function(e){if(!a.isResolved&&(s(new Ht(e)),null==a.abort||a.abort(),Vt(o)))try{o.cancel()}catch(e){}},a.isTransportCancelable=Vt(o),Promise.resolve(o).then(l).catch((function(t){var o,l;if(!a.isResolved){var u,c=null!=(o=e.retry)?o:3,d=null!=(l=e.retryDelay)?l:Ut,p="function"==typeof d?d(a.failureCount,t):d,f=!0===c||"number"==typeof c&&a.failureCount<c||"function"==typeof c&&c(a.failureCount,t);if(!i&&f)a.failureCount++,null==e.onFail||e.onFail(a.failureCount,t),(u=p,new Promise((function(e){setTimeout(e,u)}))).then((function(){if(!Wt.isFocused()||!Bt.isOnline())return new Promise((function(t){n=t,a.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,a.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){i?s(t):r()}));else s(t)}}))}}()},Qt=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Ft((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Ft((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}()),Gt=console;function Xt(){return Gt}var Yt=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=wt({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),Et(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=Nt(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(St).catch(St):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Ot(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var s=Ct(this.queryKey),u=Dt(),c={queryKey:s,pageParam:void 0,meta:this.meta};Object.defineProperty(c,"signal",{enumerable:!0,get:function(){if(u)return a.abortSignalConsumed=!0,u.signal}});var d,p,f={fetchOptions:t,options:this.options,queryKey:s,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(c)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(d=this.options.behavior)||d.onFetch(f));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=f.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(p=f.fetchOptions)?void 0:p.meta});return this.retryer=new Kt({fn:f.fetchFn,abort:null==u||null==(o=u.abort)?void 0:o.bind(u),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){qt(e)&&e.silent||a.dispatch({type:"error",error:e}),qt(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),Xt().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),Qt.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return wt({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return wt({},e,{isPaused:!0});case"continue":return wt({},e,{isPaused:!1});case"fetch":return wt({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return wt({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return qt(o)&&o.revert&&this.revertState?wt({},this.revertState):wt({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return wt({},e,{isInvalidated:!0});case"setState":return wt({},e,t.state);default:return e}},e}(),Jt=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}bt(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:It(o,t),i=this.get(a);return i||(i=new Yt({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(i)),i},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;Qt.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=Rt(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return Tt(n,e)}))},n.findAll=function(e,t){var n=Rt(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return Tt(n,e)})):this.queries},n.notify=function(e){var t=this;Qt.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;Qt.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;Qt.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(xt),Zt=function(){function e(e){this.options=wt({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||en(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(St).catch(St)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),Xt().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new Kt({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return wt({},e,{failureCount:e.failureCount+1});case"pause":return wt({},e,{isPaused:!0});case"continue":return wt({},e,{isPaused:!1});case"loading":return wt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return wt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return wt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return wt({},e,t.state);default:return e}}(this.state,e),Qt.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function en(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}var tn=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}bt(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new Zt({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;Qt.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return Mt(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return Mt(e,t)}))},n.notify=function(e){var t=this;Qt.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return Qt.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(St)}))}),Promise.resolve())}))},t}(xt);function nn(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var rn=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new Jt,this.mutationCache=e.mutationCache||new tn,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=Wt.subscribe((function(){Wt.isFocused()&&Bt.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=Bt.subscribe((function(){Wt.isFocused()&&Bt.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=Rt(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(wt({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=Pt(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return Qt.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,r.setQueryData(o,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=Rt(e,t)[0],r=this.queryCache;Qt.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var r=this,o=Rt(e,t,n),a=o[0],i=o[1],l=this.queryCache,s=wt({},a,{active:!0});return Qt.batch((function(){return l.findAll(a).forEach((function(e){e.reset()})),r.refetchQueries(s,i)}))},t.cancelQueries=function(e,t,n){var r=this,o=Rt(e,t,n),a=o[0],i=o[1],l=void 0===i?{}:i;void 0===l.revert&&(l.revert=!0);var s=Qt.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(l)}))}));return Promise.all(s).then(St).catch(St)},t.invalidateQueries=function(e,t,n){var r,o,a,i=this,l=Rt(e,t,n),s=l[0],u=l[1],c=wt({},s,{active:null==(r=null!=(o=s.refetchActive)?o:s.active)||r,inactive:null!=(a=s.refetchInactive)&&a});return Qt.batch((function(){return i.queryCache.findAll(s).forEach((function(e){e.invalidate()})),i.refetchQueries(c,u)}))},t.refetchQueries=function(e,t,n){var r=this,o=Rt(e,t,n),a=o[0],i=o[1],l=Qt.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.fetch(void 0,wt({},i,{meta:{refetchPage:null==a?void 0:a.refetchPage}}))}))})),s=Promise.all(l).then(St);return(null==i?void 0:i.throwOnError)||(s=s.catch(St)),s},t.fetchQuery=function(e,t,n){var r=Pt(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(St).catch(St)},t.fetchInfiniteQuery=function(e,t,n){var r=Pt(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,i,l,s,u,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],g=(null==(i=e.state.data)?void 0:i.pageParams)||[],v=Dt(),y=null==v?void 0:v.signal,b=g,x=!1,w=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(e,t,n,r){return b=r?[t].concat(b):[].concat(b,[t]),r?[n].concat(e):[].concat(e,[n])},S=function(t,n,r,o){if(x)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:y,pageParam:r,meta:e.meta},i=w(a),l=Promise.resolve(i).then((function(e){return k(t,r,e,o)}));return Vt(i)&&(l.cancel=i.cancel),l};if(m.length)if(f){var E=void 0!==p,C=E?p:nn(e.options,m);l=S(m,E,C)}else if(h){var O=void 0!==p,P=O?p:(s=e.options,u=m,null==s.getPreviousPageParam?void 0:s.getPreviousPageParam(u[0],u));l=S(m,O,P,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam,n=!c||!m[0]||c(m[0],0,m);l=n?S([],t,g[0]):Promise.resolve(k([],g[0],m[0]));for(var r=function(n){l=l.then((function(r){if(!c||!m[n]||c(m[n],n,m)){var o=t?g[n]:nn(e.options,r);return S(r,t,o)}return Promise.resolve(k(r,g[n],m[n]))}))},o=1;o<m.length;o++)r(o)}();else l=S([]);var R=l.then((function(e){return{pages:e,pageParams:b}}));return R.cancel=function(){x=!0,null==v||v.abort(),Vt(l)&&l.cancel()},R}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(St).catch(St)},t.cancelMutations=function(){var e=this,t=Qt.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(St).catch(St)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return $t(e)===$t(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return jt(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return $t(e)===$t(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return jt(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=wt({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=It(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:wt({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),on=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}bt(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),an(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return ln(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return ln(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&sn(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(wt({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(St)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!kt&&!this.currentResult.isStale&&Et(this.options.staleTime)){var t=Ot(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!kt&&!1!==this.options.enabled&&Et(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||Wt.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,s=e!==r,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,d=e.state,p=d.dataUpdatedAt,f=d.error,h=d.errorUpdatedAt,m=d.isFetching,g=d.status,v=!1,y=!1;if(t.optimisticResults){var b=this.hasListeners(),x=!b&&an(e,t),w=b&&sn(e,r,t,o);(x||w)&&(m=!0,p||(g="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==c?void 0:c.isSuccess)&&"error"!==g)n=c.data,p=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==d.data)if(a&&d.data===(null==i?void 0:i.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=Nt(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(e){Xt().error(e),this.selectError=e}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===g||"idle"===g)){var k;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))k=a.data;else if(k="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==k)try{k=t.select(k),!1!==t.structuralSharing&&(k=Nt(null==a?void 0:a.data,k)),this.selectError=null}catch(e){Xt().error(e),this.selectError=e}void 0!==k&&(g="success",n=k,y=!0)}return this.selectError&&(f=this.selectError,n=this.selectResult,h=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:n,dataUpdatedAt:p,error:f,errorUpdatedAt:h,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==g,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:y,isPreviousData:v,isRefetchError:"error"===g&&0!==d.dataUpdatedAt,isStale:un(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var a="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,i=e[r]!==t[r],l=null==a?void 0:a.some((function(e){return e===n})),s=null==o?void 0:o.some((function(e){return e===n}));return i&&!s&&(!a||l)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(wt({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||qt(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;Qt.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(xt);function an(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&ln(e,t,t.refetchOnMount)}function ln(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&un(e,t)}return!1}function sn(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&un(e,n)}function un(e,t){return e.isStaleByTime(t.staleTime)}var cn=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}bt(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,wt({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},t=wt({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;Qt.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(xt),dn=nt.createContext(void 0),pn=nt.createContext(!1);function fn(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=dn),window.ReactQueryClientContext):dn}var hn=function(){var e=nt.useContext(fn(nt.useContext(pn)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},mn=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;nt.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=fn(r);return nt.createElement(pn.Provider,{value:r},nt.createElement(a.Provider,{value:t},o))};var gn,vn=nt.createContext((gn=!1,{clearReset:function(){gn=!1},reset:function(){gn=!0},isReset:function(){return gn}})),yn=function(){return nt.useContext(vn)};function bn(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function xn(e,t,n){var r=nt.useRef(!1),o=nt.useState(0)[1],a=function(e,t,n){return _t(e)?"function"==typeof t?wt({},n,{mutationKey:e,mutationFn:t}):wt({},t,{mutationKey:e}):"function"==typeof e?wt({},t,{mutationFn:e}):wt({},e)}(e,t,n),i=hn(),l=nt.useRef();l.current?l.current.setOptions(a):l.current=new cn(i,a);var s=l.current.getCurrentResult();nt.useEffect((function(){r.current=!0;var e=l.current.subscribe(Qt.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return function(){r.current=!1,e()}}),[]);var u=nt.useCallback((function(e,t){l.current.mutate(e,t).catch(St)}),[]);if(s.error&&bn(void 0,l.current.options.useErrorBoundary,[s.error]))throw s.error;return wt({},s,{mutate:u,mutateAsync:s.mutate})}function wn(e,t,n){return function(e,t){var n=nt.useRef(!1),r=nt.useState(0)[1],o=hn(),a=yn(),i=o.defaultQueryObserverOptions(e);i.optimisticResults=!0,i.onError&&(i.onError=Qt.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Qt.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Qt.batchCalls(i.onSettled)),i.suspense&&("number"!=typeof i.staleTime&&(i.staleTime=1e3),0===i.cacheTime&&(i.cacheTime=1)),(i.suspense||i.useErrorBoundary)&&(a.isReset()||(i.retryOnMount=!1));var l=nt.useState((function(){return new t(o,i)}))[0],s=l.getOptimisticResult(i);if(nt.useEffect((function(){n.current=!0,a.clearReset();var e=l.subscribe(Qt.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return l.updateResult(),function(){n.current=!1,e()}}),[a,l]),nt.useEffect((function(){l.setOptions(i,{listeners:!1})}),[i,l]),i.suspense&&s.isLoading)throw l.fetchOptimistic(i).then((function(e){var t=e.data;null==i.onSuccess||i.onSuccess(t),null==i.onSettled||i.onSettled(t,null)})).catch((function(e){a.clearReset(),null==i.onError||i.onError(e),null==i.onSettled||i.onSettled(void 0,e)}));if(s.isError&&!a.isReset()&&!s.isFetching&&bn(i.suspense,i.useErrorBoundary,[s.error,l.getCurrentQuery()]))throw s.error;return"tracked"===i.notifyOnChangeProps&&(s=l.trackResult(s,i)),s}(Pt(e,t,n),on)}const kn=c();async function Sn(e){const t=await e.text();try{return JSON.parse(t)}catch(e){return t}}const En=e=>e?Object.entries(e).reduce(((e,[t,n])=>Array.isArray(n)||"object"!=typeof n?Object.assign(Object.assign({},e),{[t]:n}):Object.assign(Object.assign({},e),En(n))),{}):{};const Cn=e=>e.replace("/projects/","/projects/{projectId}/");async function On(e,t,n,r){var o,a;const i=(null==n?void 0:n.path)||{};let l=e;const s=Ee(r.apiKey)||r.projectId;void 0!==s&&(i.projectId=s,l=Cn(l)),i&&Object.entries(i).forEach((([e,t])=>{l=l.replace(`{${e}}`,t)}));const u=null===(o=null==n?void 0:n.content)||void 0===o?void 0:o["multipart/form-data"];let c;u&&(c=new FormData,Object.entries(u).forEach((([e,t])=>{if(Array.isArray(t)){let n;return"[object File]"===Object.prototype.toString.call(t)&&(n=t.name),void t.forEach((t=>null==c?void 0:c.append(e,t,n)))}null==c||c.append(e,t)})));const d=JSON.stringify(null===(a=null==n?void 0:n.content)||void 0===a?void 0:a["application/json"]),p=null==n?void 0:n.query;let f="";const h=En(p),m=(g=h,Object.keys(g).filter((e=>!!g[e])).map((e=>Array.isArray(g[e])?g[e].map((t=>encodeURIComponent(e)+"="+encodeURIComponent(t))).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(g[e]))).join("&"));var g;return m&&(f="?"+m),async function(e,t,n){if(void 0===t.apiUrl)throw"Api url not specified";if(void 0===t.apiKey)throw"Api key not specified";return(n=n||{}).headers=n.headers||{},n.headers=Object.assign(Object.assign({},n.headers),{"X-API-Key":t.apiKey}),kn(t.apiUrl+e,n).then((async e=>{if(!e.ok){const t=await Sn(e),n=`${e.status}: ${(null==t?void 0:t.message)||"Error status code from server"}`;throw new Error(n)}const t=await Sn(e);return"object"==typeof t&&null!==t&&(t._internal={version:e.headers.get("X-Tolgee-Version")}),t})).catch((e=>{throw e.message||"Failed to fetch"}))}(l+f,r,{method:t,body:c||d,headers:d?{"Content-Type":"application/json"}:void 0})}const Pn=new rn({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}}),Rn=nt.createContext({}),Tn=({children:e,apiUrl:t,apiKey:n,projectId:r})=>nt.createElement(Rn.Provider,{value:{apiUrl:t,apiKey:n,projectId:r}},nt.createElement(mn,{client:Pn},e)),Mn=e=>{const{url:t,method:n,options:r}=e,o=Be(e,["url","method","options"]),a=Xe.exports.useContext(Rn);return wn([t,null==o?void 0:o.path,null==o?void 0:o.query],(()=>On(t,n,o,a)),r)},In=e=>{const t=hn(),{url:n,method:r,options:o,invalidatePrefix:a}=e,i=Xe.exports.useContext(Rn),l=xn((e=>On(n,r,e,i)),o),s=e=>Object.assign(Object.assign({},e),{onSuccess:(...n)=>{var r;void 0!==a&&$n(t,a),null===(r=null==e?void 0:e.onSuccess)||void 0===r||r.call(e,...n)}}),u=Xe.exports.useCallback(((e,t)=>l.mutate(e,s(t))),[l.mutate]),c=Xe.exports.useCallback(((e,t)=>l.mutateAsync(e,s(t))),[l.mutateAsync]);return Object.assign(Object.assign({},l),{mutate:u,mutateAsync:c})},$n=(e,t)=>e.invalidateQueries((e=>({predicate:t=>{var n;return null===(n=t.queryKey[0])||void 0===n?void 0:n.startsWith(e)}}))(t));function jn(){try{return JSON.parse(localStorage.getItem(H)||"")}catch(e){return[]}}function Ln(e){localStorage.setItem(H,JSON.stringify(e))}const Nn=(e,t,n,r)=>{const o=n.map((([n,o])=>r({language:n,namespace:t},e,o)));return{revert:()=>o.forEach((e=>e.revert()))}};function An({position:e}){return{x:e.x,y:e.y,width:e.width,height:e.height}}function zn(e){return new Promise((t=>{const n=document.createElement("img");n.src=e,n.onload=function(){const e=n.width,r=n.height;t({width:e,height:r})}}))}function _n(e,t,n){return Boolean(null==t?void 0:t.includes(e))||n}const Fn=e=>{const[t,n]=Xe.exports.useState(void 0),[r,o]=Xe.exports.useState(!1),[a,i]=Xe.exports.useState([]),[l,s]=Xe.exports.useState(null);Xe.exports.useEffect((()=>{(async function(){try{return await Pe({message:"TOLGEE_PING",recievingMessage:["TOLGEE_PONG"],attempts:2}).promise,!0}catch(e){return!1}})().then((e=>n(e)))}),[]);const u=In({url:"/v2/image-upload/{ids}",method:"delete"}),c=In({url:"/v2/image-upload",method:"post"}),d=(e,t,n)=>c.mutateAsync({content:{"multipart/form-data":{image:e}}},{onSuccess(e){i((r=>[...r,Object.assign(Object.assign(Object.assign({},e),t),{keyReferences:n.map((e=>Object.assign(Object.assign({},e),{keyId:-1}))),justUploaded:!0})]))}});return{error:u.error||c.error,screenshotsUploading:c.isLoading,takingScreenshot:r,screenshots:a,setScreenshots:i,screenshotDetail:l,setScreenshotDetail:s,handleUploadImages:async function(e){await Promise.all(e.map((async e=>{const t=URL.createObjectURL(e),n=await zn(t);await d(e,n,[])})))},handleTakeScreenshot:async function(t,n,r){o(!0);const{revert:a}=Nn(t,n,Object.entries(r),e.changeTranslation);let i;await pt(400);try{i=await Pe({message:"TOLGEE_TAKE_SCREENSHOT",recievingMessage:["TOLGEE_SCREENSHOT_TAKEN"]}).promise}catch(e){return void console.error(e)}finally{a(),o(!1)}const l=e.findPositions(t,n),s={width:window.innerWidth,height:window.innerHeight},u=await zn(i),c=await fetch(i).then((e=>e.blob())),p=function(e,t,n){const r=t.width/e.width,o=t.height/e.height;return n.map((e=>{var{position:t}=e,n=Be(e,["position"]);return Object.assign(Object.assign({},n),{position:{x:t.x*r,y:t.y*o,width:t.width*r,height:t.height*o}})}))}(s,u,l);d(c,u,p)},handleRemoveScreenshot:function(e){const t=a.find((t=>t.id===e));(null==t?void 0:t.justUploaded)&&u.mutate({path:{ids:[t.id]}}),i(a.filter((t=>t.id!==e)))},deleteImages:function(e){u.mutate({path:{ids:e}})},canTakeScreenshots:t}},Dn=(e,t)=>e.localeCompare(t,"en",{numeric:!0,sensitivity:"base"})<=0,Wn=(e,t)=>{const n=e.findIndex((e=>e.keyName===t.keyName&&(e.keyNamespace||void 0)===(t.keyNamespace||void 0)))||0;let r=n-50,o=n+50;return r<0&&(o+=0-r,r=0),o>e.length&&(r-=o-e.length,o=e.length),r<0&&(r=0),e.slice(r,o)},Bn="v3.20.0",[Un,Vn,Hn]=(e=>{const t=function(e){const t=Xe.exports.createContext({[ft]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});var n;return t[ht]=t.Provider,t.Provider=(n=t.Provider,({value:e,children:t})=>{const r=Xe.exports.useRef(e),o=Xe.exports.useRef(0),[a,i]=Xe.exports.useState(null);a&&(a(e),i(null));const l=Xe.exports.useRef();if(!l.current){const e=new Set,t=(t,n)=>{ot.exports.unstable_batchedUpdates((()=>{o.current+=1;const r={n:o.current};null!=n&&n.suspense&&(r.n*=-1,r.p=new Promise((e=>{i((()=>t=>{r.v=t,delete r.p,e(t)}))}))),e.forEach((e=>e(r))),t()}))};l.current={[ft]:{v:r,n:o,l:e,u:t}}}return mt((()=>{r.current=e,o.current+=1,gt((()=>{l.current[ft].l.forEach((t=>{t({n:o.current,v:e})}))}))}),[e]),Xe.exports.createElement(n,{value:l.current},t)}),delete t.Consumer,t}(null),n=nt.createContext(null);return[r=>{var{children:o}=r,a=Be(r,["children"]);const[i,l]=e(a),s=Xe.exports.useRef(l);s.current=l;const u=Xe.exports.useMemo((()=>{const e={};return Object.keys(s.current).map((t=>{e[t]=(...e)=>{var n,r;return null===(r=(n=s.current)[t])||void 0===r?void 0:r.call(n,...e)}})),e}),[s]);return nt.createElement(t.Provider,{value:i},nt.createElement(n.Provider,{value:u},o))},()=>nt.useContext(n),function(e){return function(e,t){const n=Xe.exports.useContext(e)[ft],{v:{current:r},n:{current:o},l:a}=n,i=t(r),[l,s]=Xe.exports.useReducer(((e,n)=>{if(!n)return[r,i];if("p"in n)throw n.p;if(n.n===o)return Object.is(e[1],i)?e:[r,i];try{if("v"in n){if(Object.is(e[0],n.v))return e;const r=t(n.v);return Object.is(e[1],r)?e:[n.v,r]}}catch(e){}return[...e]}),[r,i]);return Object.is(l[1],i)||s(),mt((()=>(a.add(s),()=>{a.delete(s)})),[a]),l[1]}(t,e)}]})((e=>{var t,n,r,o,a,i,l,s,u,c,d,p,f;const[h,m]=Xe.exports.useState(!1),[g,v]=Xe.exports.useState({}),[y,b]=Xe.exports.useState(!1),[x,w]=Xe.exports.useState(!1),[k,S]=Xe.exports.useState(e.namespace),[E,C]=Xe.exports.useState([]),O="tgpat"===Ce(e.uiProps.apiKey),P=Fn(e.uiProps),{screenshots:R,setScreenshots:T,screenshotDetail:M,setScreenshotDetail:I,screenshotsUploading:$,takingScreenshot:j,handleRemoveScreenshot:L,handleUploadImages:N,deleteImages:A,canTakeScreenshots:z,error:_}=P,F=Be(P,["screenshots","setScreenshots","screenshotDetail","setScreenshotDetail","screenshotsUploading","takingScreenshot","handleRemoveScreenshot","handleUploadImages","deleteImages","canTakeScreenshots","error"]),D=Mn({url:"/v2/api-keys/current",method:"get",options:{enabled:!O}}),W=Mn({url:"/v2/projects/languages",method:"get",options:{onSuccess(e){var t,n;const r=function(e){let t=jn().filter((t=>e.includes(t)));return 0===t.length&&(t=e),t.slice(0,q)}((null===(n=null===(t=e._embedded)||void 0===t?void 0:t.languages)||void 0===n?void 0:n.map((e=>e.tag)))||[]);H(r),Ln(r)}}}),B=In({url:"/v2/projects/keys/create",method:"post"}),U=Xe.exports.useMemo((()=>{var e,t;return(e=>{const t=null==e?void 0:e.find((e=>e.base));return t?[t,...(e||[]).filter((e=>e!==t))]:e})(null===(t=null===(e=W.data)||void 0===e?void 0:e._embedded)||void 0===t?void 0:t.languages)}),[W.data]),[V,H]=Xe.exports.useState(jn()),K=Mn({url:"/v2/projects/translations",method:"get",query:{filterKeyName:[e.keyName],filterNamespace:[k],languages:V},options:{keepPreviousData:!0,onSuccess(e){var t,n,r,o;const a={},i=null===(n=null===(t=e._embedded)||void 0===t?void 0:t.keys)||void 0===n?void 0:n[0];Object.entries((null==i?void 0:i.translations)||{}).forEach((([e,t])=>{a[e]=t.text||""})),v(a),C((null===(r=null==i?void 0:i.keyTags)||void 0===r?void 0:r.map((e=>e.name)))||[]),T((null===(o=null==i?void 0:i.screenshots)||void 0===o?void 0:o.map((e=>Object.assign(Object.assign({},e),{filename:e.filename,justUploaded:!1}))))||[])}}}),Q=In({url:"/v2/projects/keys/{id}/complex-update",method:"put"}),G=In({url:"/v2/projects/big-meta",method:"post"}),X=null===(r=null===(n=null===(t=K.data)||void 0===t?void 0:t._embedded)||void 0===n?void 0:n.keys)||void 0===r?void 0:r[0],Y=void 0!==(null===(o=D.data)||void 0===o?void 0:o.projectId)?`${e.uiProps.apiUrl}/projects/${null===(a=D.data)||void 0===a?void 0:a.projectId}/translations/single?key=${e.keyName}${void 0!==k?`&ns=${k}`:""}`:void 0,[J,Z]=Xe.exports.useState(void 0),[ee,te]=Xe.exports.useState(!1),ne=null===(i=D.data)||void 0===i?void 0:i.permittedLanguageIds;function re(){if(M)I(null);else{e.onClose(),te(!1);const t=oe();t.length&&A(t.map((e=>e.id))),T([])}}Xe.exports.useEffect((()=>{const e=e=>{"Escape"===e.key&&re()};if(!ee)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[ee]);const oe=()=>R.filter((e=>e.justUploaded)),ae=()=>{var e;return(null===(e=null==X?void 0:X.screenshots)||void 0===e?void 0:e.map((e=>e.id)).filter((e=>!R.find((t=>t.id===e)))))||[]};Xe.exports.useEffect((()=>{var t;if(e.defaultValue&&U&&V&&g){const n=U.find((e=>e.base));if(n&&V.includes(n.tag)&&!x){const r=void 0!==(null===(t=null==X?void 0:X.translations)||void 0===t?void 0:t[n.tag]);g[n.tag]||r||v(Object.assign(Object.assign({},g),{[n.tag]:e.defaultValue}))}}}),[U,g,V,e.defaultValue]);const ie=null==U?void 0:U.find((({base:e})=>e)),le=W.isFetching||K.isLoading&&!K.data||D.isFetching,se=W.error||K.error||D.error||B.error||Q.error||G.error||_,ue=null===(l=D.data)||void 0===l?void 0:l.scopes,ce=_n("screenshots.upload",ue,O)||_n("screenshots.delete",ue,O)||((null===(c=null===(u=null===(s=K.data)||void 0===s?void 0:s._embedded)||void 0===u?void 0:u.keys)||void 0===c?void 0:c.length)?_n("translations.edit",ue,O):_n("keys.edit",ue,O)),de=!O&&(le||!ce),pe=!de&&_n("keys.edit",ue,O),fe=Boolean(null===(f=null===(p=null===(d=K.data)||void 0===d?void 0:d._embedded)||void 0===p?void 0:p.keys)||void 0===f?void 0:f.length),he={input:e.keyName,open:e.open,fallbackNamespaces:e.fallbackNamespaces,selectedNs:k,loading:le,saving:y,success:h,error:se,availableLanguages:U,selectedLanguages:(me=V,ge=null==ie?void 0:ie.tag,ge&&me.includes(ge)?[ge,...me.filter((e=>e!==ge))]:me),formDisabled:de,keyData:X,translationsForm:g,container:J,useBrowserWindow:ee,canTakeScreenshots:z,takingScreenshot:j,screenshotsUploading:$,screenshots:R,screenshotDetail:M,linkToPlatform:Y,keyExists:fe,scopes:ue,permittedLanguageIds:ne,tags:E,canEditTags:pe,isPat:O};var me,ge;const ve={onInputChange:function(e,t){m(!1),w(!0),v(Object.assign(Object.assign({},g),{[e]:t}))},handleUploadImages:N,handleTakeScreenshot:function(){F.handleTakeScreenshot(e.keyName,k,g)},handleRemoveScreenshot:L,onSave:async function(){var t;b(!0);try{const n={};Object.entries(g).forEach((([e,t])=>{vt(e,ne,U)&&(n[e]=t)}));const r=await(void 0===X?B.mutateAsync({content:{"application/json":{name:e.keyName,namespace:k||void 0,translations:n,screenshots:R.map((e=>{var t;return{uploadedImageId:e.id,positions:null===(t=e.keyReferences)||void 0===t?void 0:t.map(An)}})),tags:E}}}):Q.mutateAsync({content:{"application/json":{name:e.keyName,namespace:k||void 0,translations:n,screenshotIdsToDelete:ae(),screenshotsToAdd:oe().map((e=>{var t;return{uploadedImageId:e.id,positions:null===(t=e.keyReferences)||void 0===t?void 0:t.map(An)}})),tags:E}},path:{id:X.keyId}})),o=null===(t=r._internal)||void 0===t?void 0:t.version;if(o&&("??"===o||Dn(Bn,o))){const t=Wn(e.uiProps.findPositions(),{keyName:e.keyName,keyNamespace:k});await G.mutateAsync({content:{"application/json":{relatedKeysInOrder:t.map((e=>({keyName:e.keyName,namespace:e.keyNamespace||void 0})))}}})}Nn(e.keyName,k,Object.entries(n),e.uiProps.changeTranslation),e.uiProps.onPermanentChange({key:e.keyName,namespace:k}),K.refetch(),b(!1),m(!0),ee?(await pt(2e3),m(!1)):(await pt(400),e.onClose())}catch(e){console.error(e)}finally{b(!1),m(!1)}},onClose:re,onSelectedLanguagesChange:function(e){e.length&&(H(e),Ln(e))},setContainer:Z,setUseBrowserWindow:te,setScreenshotDetail:I,setSelectedNs:S,setTags:C};return[he,ve]}));function qn(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Kn(){return Kn=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},Kn.apply(this,arguments)}var Qn,Gn,Xn,Yn,Jn={exports:{}};function Zn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Zn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function er(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Zn(e))&&(r&&(r+=" "),r+=t);return r}function tr(){return tr=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},tr.apply(this,arguments)}function nr(e){return"string"==typeof e}function rr(e,t={},n){return nr(e)?t:tr({},t,{ownerState:tr({},t.ownerState,n)})}function or(e,t){return"function"==typeof e?e(t):e}function ar(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ir(e,t){return()=>null}function lr(){return lr=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},lr.apply(this,arguments)}function sr(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function ur(e,t,n={clone:!0}){const r=n.clone?lr({},e):e;return sr(e)&&sr(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(sr(t[o])&&o in e&&sr(e[o])?r[o]=ur(e[o],t[o],n):r[o]=t[o])})),r}Jn.exports=function(){if(Yn)return Xn;Yn=1;var e=Gn?Qn:(Gn=1,Qn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Xn=function(){function r(t,n,r,o,a,i){if(i!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}()();const cr=(Jn.exports.element,()=>null);cr.isRequired=(Jn.exports.element.isRequired,()=>null);var dr=cr,pr=(Jn.exports.elementType,()=>null);function fr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var hr,mr={exports:{}},gr={};mr.exports=function(){if(hr)return gr;hr=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case f:case p:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),gr.ContextConsumer=l,gr.ContextProvider=i,gr.Element=t,gr.ForwardRef=u,gr.Fragment=r,gr.Lazy=f,gr.Memo=p,gr.Portal=n,gr.Profiler=a,gr.StrictMode=o,gr.Suspense=c,gr.SuspenseList=d,gr.isAsyncMode=function(){return!1},gr.isConcurrentMode=function(){return!1},gr.isContextConsumer=function(e){return m(e)===l},gr.isContextProvider=function(e){return m(e)===i},gr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},gr.isForwardRef=function(e){return m(e)===u},gr.isFragment=function(e){return m(e)===r},gr.isLazy=function(e){return m(e)===f},gr.isMemo=function(e){return m(e)===p},gr.isPortal=function(e){return m(e)===n},gr.isProfiler=function(e){return m(e)===a},gr.isStrictMode=function(e){return m(e)===o},gr.isSuspense=function(e){return m(e)===c},gr.isSuspenseList=function(e){return m(e)===d},gr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},gr.typeOf=m,gr}();const vr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yr(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(vr);return t&&t[1]||""}(e)||t}function br(e,t,n){const r=yr(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var xr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var wr=Jn.exports.oneOfType([Jn.exports.func,Jn.exports.object]);function kr(e){if("string"!=typeof e)throw new Error(fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sr(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Er(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Cr(e,t){return()=>null}function Or(e,t){return Xe.exports.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function Pr(e){return e&&e.ownerDocument||document}function Rr(e){return Pr(e).defaultView||window}function Tr(e,t){return()=>null}function Mr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ir="undefined"!=typeof window?Xe.exports.useLayoutEffect:Xe.exports.useEffect;let $r=0;const jr=rt.useId;function Lr(e){if(void 0!==jr){const t=jr();return null!=e?e:t}return function(e){const[t,n]=Xe.exports.useState(e),r=e||t;return Xe.exports.useEffect((()=>{null==t&&($r+=1,n(`mui-${$r}`))}),[t]),r}(e)}function Nr(e,t,n,r,o){return null}function Ar({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Xe.exports.useRef(void 0!==e),[a,i]=Xe.exports.useState(t);return[o?e:a,Xe.exports.useCallback((e=>{o||i(e)}),[])]}function zr(e){const t=Xe.exports.useRef(e);return Ir((()=>{t.current=e})),Xe.exports.useCallback(((...e)=>(0,t.current)(...e)),[])}function _r(e,t){return Xe.exports.useMemo((()=>null==e&&null==t?null:n=>{Mr(e,n),Mr(t,n)}),[e,t])}let Fr,Dr=!0,Wr=!1;const Br={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ur(e){e.metaKey||e.altKey||e.ctrlKey||(Dr=!0)}function Vr(){Dr=!1}function Hr(){"hidden"===this.visibilityState&&Wr&&(Dr=!0)}function qr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Dr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Br[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Kr(){const e=Xe.exports.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ur,!0),t.addEventListener("mousedown",Vr,!0),t.addEventListener("pointerdown",Vr,!0),t.addEventListener("touchstart",Vr,!0),t.addEventListener("visibilitychange",Hr,!0))}),[]),t=Xe.exports.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Wr=!0,window.clearTimeout(Fr),Fr=window.setTimeout((()=>{Wr=!1}),100),t.current=!1,!0)},ref:e}}function Qr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Gr;function Xr(){if(Gr)return Gr;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Gr="reverse",e.scrollLeft>0?Gr="default":(e.scrollLeft=1,0===e.scrollLeft&&(Gr="negative")),document.body.removeChild(e),Gr}var Yr=e=>{const t=Xe.exports.useRef({});return Xe.exports.useEffect((()=>{t.current=e})),t.current};var Jr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Zr(){return null}Zr.isRequired=Zr;var eo=Zr;function to(e,t){const n=lr({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}function no(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}const ro=e=>e;var oo=(()=>{let e=ro;return{configure(t){e=t},generate:t=>e(t),reset(){e=ro}}})();const ao={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function io(e,t,n="Mui"){const r=ao[t];return r?`${n}-${r}`:`${oo.generate(e)}-${t}`}function lo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=io(e,t,n)})),r}var so=Object.freeze({__proto__:null,chainPropTypes:ir,deepmerge:ur,isPlainObject:sr,elementAcceptingRef:dr,elementTypeAcceptingRef:pr,exactProp:function(e){return e},formatMuiErrorMessage:fr,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case mr.exports.ForwardRef:return br(e,e.render,"ForwardRef");case mr.exports.Memo:return br(e,e.type,"memo");default:return}}},HTMLElementType:function(e,t,n,r,o){return null},ponyfillGlobal:xr,refType:wr,unstable_capitalize:kr,unstable_createChainedFunction:Sr,unstable_debounce:Er,unstable_deprecatedPropType:Cr,unstable_isMuiElement:Or,unstable_ownerDocument:Pr,unstable_ownerWindow:Rr,unstable_requirePropFactory:Tr,unstable_setRef:Mr,unstable_useEnhancedEffect:Ir,unstable_useId:Lr,unstable_unsupportedProp:Nr,unstable_useControlled:Ar,unstable_useEventCallback:zr,unstable_useForkRef:_r,unstable_useIsFocusVisible:Kr,unstable_getScrollbarSize:Qr,unstable_detectScrollType:Xr,unstable_getNormalizedScrollLeft:function(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Xr()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}},usePreviousProps:Yr,visuallyHidden:Jr,integerPropType:eo,internal_resolveProps:to,unstable_composeClasses:no,unstable_generateUtilityClass:io,unstable_generateUtilityClasses:lo,unstable_ClassNameGenerator:oo});function uo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function co(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=er(null==o?void 0:o.className,null==r?void 0:r.className,a,null==n?void 0:n.className),t=tr({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=tr({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(tr({},o,r)),l=uo(r),s=uo(o),u=t(i),c=er(null==u?void 0:u.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=tr({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=tr({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const po=["elementType","externalSlotProps","ownerState"];function fo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=ar(e,po),i=or(r,o),{props:l,internalRef:s}=co(tr({},a,{externalSlotProps:i}));return rr(n,tr({},l,{ref:_r(s,_r(null==i?void 0:i.ref,null==(t=e.additionalProps)?void 0:t.ref))}),o)}function ho(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function mo(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const go=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=ho(u));const c=u?e.filter((e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=ho(r)),"start"===o?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"==typeof r?c.slice(0,r):c}}(),vo=5;function yo(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:r=!1,blurOnSelect:o=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:i=!1,componentName:l="useAutocomplete",defaultValue:s=(e.multiple?[]:null),disableClearable:u=!1,disableCloseOnSelect:c=!1,disabled:d,disabledItemsFocusable:p=!1,disableListWrap:f=!1,filterOptions:h=go,filterSelectedOptions:m=!1,freeSolo:g=!1,getOptionDisabled:v,getOptionLabel:y=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:b,handleHomeEndKeys:x=!e.freeSolo,id:w,includeInputInList:k=!1,inputValue:S,isOptionEqualToValue:E=((e,t)=>e===t),multiple:C=!1,onChange:O,onClose:P,onHighlightChange:R,onInputChange:T,onOpen:M,open:I,openOnFocus:$=!1,options:j,readOnly:L=!1,selectOnFocus:N=!e.freeSolo,value:A}=e,z=Lr(w);let _=y;_=e=>{const t=y(e);return"string"!=typeof t?String(t):t};const F=Xe.exports.useRef(!1),D=Xe.exports.useRef(!0),W=Xe.exports.useRef(null),B=Xe.exports.useRef(null),[U,V]=Xe.exports.useState(null),[H,q]=Xe.exports.useState(-1),K=n?0:-1,Q=Xe.exports.useRef(K),[G,X]=Ar({controlled:A,default:s,name:l}),[Y,J]=Ar({controlled:S,default:"",name:l,state:"inputValue"}),[Z,ee]=Xe.exports.useState(!1),te=Xe.exports.useCallback(((e,t)=>{if(!(C?G.length<t.length:null!==t)&&!a)return;let n;if(C)n="";else if(null==t)n="";else{const e=_(t);n="string"==typeof e?e:""}Y!==n&&(J(n),T&&T(e,n,"reset"))}),[_,Y,C,T,J,a,G]),ne=Xe.exports.useRef();Xe.exports.useEffect((()=>{const e=G!==ne.current;ne.current=G,Z&&!e||g&&!e||te(null,G)}),[G,te,Z,ne,g]);const[re,oe]=Ar({controlled:I,default:!1,name:l,state:"open"}),[ae,ie]=Xe.exports.useState(!0),le=!C&&null!=G&&Y===_(G),se=re&&!L,ue=se?h(j.filter((e=>!m||!(C?G:[G]).some((t=>null!==t&&E(e,t))))),{inputValue:le&&ae?"":Y,getOptionLabel:_}):[],ce=re&&ue.length>0&&!L,de=zr((e=>{-1===e?W.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));Xe.exports.useEffect((()=>{C&&H>G.length-1&&(q(-1),de(-1))}),[G,C,H,de]);const pe=zr((({event:e,index:t,reason:n="auto"})=>{if(Q.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),R&&R(e,-1===t?null:ue[t],n),!B.current)return;const r=B.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));const o=B.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=B.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add("Mui-focused"),"keyboard"===n&&a.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==n)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(b?1.3:0)<o.scrollTop&&(o.scrollTop=e.offsetTop-e.offsetHeight*(b?1.3:0))}})),fe=zr((({event:e,diff:n,direction:r="next",reason:o="auto"})=>{if(!se)return;const a=function(e,t){if(!B.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ue.length||"previous"===t&&-1===n)return-1;const e=B.current.querySelector(`[data-option-index="${n}"]`),r=!p&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=ue.length-1;if("reset"===n)return K;if("start"===n)return 0;if("end"===n)return e;const t=Q.current+n;return t<0?-1===t&&k?-1:f&&-1!==Q.current||Math.abs(n)>1?0:e:t>e?t===e+1&&k?-1:f||Math.abs(n)>1?e:0:t})(),r);if(pe({index:a,reason:o,event:e}),t&&"reset"!==n)if(-1===a)W.current.value=Y;else{const e=_(ue[a]);W.current.value=e;0===e.toLowerCase().indexOf(Y.toLowerCase())&&Y.length>0&&W.current.setSelectionRange(Y.length,e.length)}})),he=Xe.exports.useCallback((()=>{if(!se)return;const e=C?G[0]:G;if(0!==ue.length&&null!=e){if(B.current)if(null==e)Q.current>=ue.length-1?pe({index:ue.length-1}):pe({index:Q.current});else{const t=ue[Q.current];if(C&&t&&-1!==mo(G,(e=>E(t,e))))return;const n=mo(ue,(t=>E(t,e)));-1===n?fe({diff:"reset"}):pe({index:n})}}else fe({diff:"reset"})}),[ue.length,!C&&G,m,fe,pe,se,Y,C]),me=zr((e=>{Mr(B,e),e&&he()}));Xe.exports.useEffect((()=>{he()}),[he]);const ge=e=>{re||(oe(!0),ie(!0),M&&M(e))},ve=(e,t)=>{re&&(oe(!1),P&&P(e,t))},ye=(e,t,n,r)=>{if(C){if(G.length===t.length&&G.every(((e,n)=>e===t[n])))return}else if(G===t)return;O&&O(e,t,n,r),X(t)},be=Xe.exports.useRef(!1),xe=(e,t,n="selectOption",r="options")=>{let a=n,i=t;if(C){i=Array.isArray(G)?G.slice():[];const e=mo(i,(e=>E(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),a="removeOption")}te(e,i),ye(e,i,a,{option:t}),c||e&&(e.ctrlKey||e.metaKey)||ve(e,a),(!0===o||"touch"===o&&be.current||"mouse"===o&&!be.current)&&W.current.blur()};const we=(e,t)=>{if(!C)return;""===Y&&ve(e,"toggleInput");let n=H;-1===H?""===Y&&"previous"===t&&(n=G.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===G.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===G.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),q(n),de(n)},ke=e=>{F.current=!0,J(""),T&&T(e,"","clear"),ye(e,C?[]:null,"clear")},Se=e=>n=>{if(e.onKeyDown&&e.onKeyDown(n),!n.defaultMuiPrevented&&(-1!==H&&-1===["ArrowLeft","ArrowRight"].indexOf(n.key)&&(q(-1),de(-1)),229!==n.which))switch(n.key){case"Home":se&&x&&(n.preventDefault(),fe({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":se&&x&&(n.preventDefault(),fe({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),fe({diff:-vo,direction:"previous",reason:"keyboard",event:n}),ge(n);break;case"PageDown":n.preventDefault(),fe({diff:vo,direction:"next",reason:"keyboard",event:n}),ge(n);break;case"ArrowDown":n.preventDefault(),fe({diff:1,direction:"next",reason:"keyboard",event:n}),ge(n);break;case"ArrowUp":n.preventDefault(),fe({diff:-1,direction:"previous",reason:"keyboard",event:n}),ge(n);break;case"ArrowLeft":we(n,"previous");break;case"ArrowRight":we(n,"next");break;case"Enter":if(-1!==Q.current&&se){const e=ue[Q.current],r=!!v&&v(e);if(n.preventDefault(),r)return;xe(n,e,"selectOption"),t&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else g&&""!==Y&&!1===le&&(C&&n.preventDefault(),xe(n,Y,"createOption","freeSolo"));break;case"Escape":se?(n.preventDefault(),n.stopPropagation(),ve(n,"escape")):i&&(""!==Y||C&&G.length>0)&&(n.preventDefault(),n.stopPropagation(),ke(n));break;case"Backspace":if(C&&!L&&""===Y&&G.length>0){const e=-1===H?G.length-1:H,t=G.slice();t.splice(e,1),ye(n,t,"removeOption",{option:G[e]})}}},Ee=e=>{ee(!0),$&&!F.current&&ge(e)},Ce=e=>{null!==B.current&&B.current.parentElement.contains(document.activeElement)?W.current.focus():(ee(!1),D.current=!0,F.current=!1,r&&-1!==Q.current&&se?xe(e,ue[Q.current],"blur"):r&&g&&""!==Y?xe(e,Y,"blur","freeSolo"):a&&te(e,G),ve(e,"blur"))},Oe=e=>{const t=e.target.value;Y!==t&&(J(t),ie(!1),T&&T(e,t,"input")),""===t?u||C||ye(e,null,"clear"):ge(e)},Pe=e=>{pe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Re=()=>{be.current=!0},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));xe(e,ue[t],"selectOption"),be.current=!1},Me=e=>t=>{const n=G.slice();n.splice(e,1),ye(t,n,"removeOption",{option:G[e]})},Ie=e=>{re?ve(e,"toggleInput"):ge(e)},$e=e=>{e.target.getAttribute("id")!==z&&e.preventDefault()},je=()=>{W.current.focus(),N&&D.current&&W.current.selectionEnd-W.current.selectionStart==0&&W.current.select(),D.current=!1},Le=e=>{""!==Y&&re||Ie(e)};let Ne=g&&Y.length>0;Ne=Ne||(C?G.length>0:null!==G);let Ae=ue;return b&&(Ae=ue.reduce(((e,t,n)=>{const r=b(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),d&&Z&&Ce(),{getRootProps:(e={})=>tr({"aria-owns":ce?`${z}-listbox`:null},e,{onKeyDown:Se(e),onMouseDown:$e,onClick:je}),getInputLabelProps:()=>({id:`${z}-label`,htmlFor:z}),getInputProps:()=>({id:z,value:Y,onBlur:Ce,onFocus:Ee,onChange:Oe,onMouseDown:Le,"aria-activedescendant":se?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ce?`${z}-listbox`:void 0,"aria-expanded":ce,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:ke}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ie}),getTagProps:({index:e})=>tr({key:e,"data-tag-index":e,tabIndex:-1},!L&&{onDelete:Me(e)}),getListboxProps:()=>({role:"listbox",id:`${z}-listbox`,"aria-labelledby":`${z}-label`,ref:me,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(C?G:[G]).some((e=>null!=e&&E(t,e))),r=!!v&&v(t);return{key:_(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseOver:Pe,onClick:Te,onTouchStart:Re,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:z,inputValue:Y,value:G,dirty:Ne,popupOpen:se,focused:Z||-1!==H,anchorEl:U,setAnchorEl:V,focusedTag:H,groupedOptions:Ae}}var bo,xo={exports:{}},wo={};xo.exports=function(){if(bo)return wo;bo=1;var e=Xe.exports,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var l,s={},u=null,c=null;for(l in void 0!==i&&(u=""+i),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,l)&&!a.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:o.current}}return wo.Fragment=n,wo.jsx=i,wo.jsxs=i,wo}();const ko=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function So(e){const t=[],n=[];return Array.from(e.querySelectorAll(ko)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Eo(){return!0}function Co(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=So,isEnabled:i=Eo,open:l}=e,s=Xe.exports.useRef(),u=Xe.exports.useRef(null),c=Xe.exports.useRef(null),d=Xe.exports.useRef(null),p=Xe.exports.useRef(null),f=Xe.exports.useRef(!1),h=Xe.exports.useRef(null),m=_r(t.ref,h),g=Xe.exports.useRef(null);Xe.exports.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Xe.exports.useEffect((()=>{if(!l||!h.current)return;const e=Pr(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Xe.exports.useEffect((()=>{if(!l||!h.current)return;const e=Pr(h.current),t=t=>{const{current:n}=h;if(null!==n)if(e.hasFocus()&&!r&&i()&&!s.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=a(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];e?n.focus():t.focus()}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return xo.exports.jsxs(Xe.exports.Fragment,{children:[xo.exports.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Xe.exports.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),xo.exports.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var Oo="top",Po="bottom",Ro="right",To="left",Mo="auto",Io=[Oo,Po,Ro,To],$o="start",jo="end",Lo="clippingParents",No="viewport",Ao="popper",zo="reference",_o=Io.reduce((function(e,t){return e.concat([t+"-"+$o,t+"-"+jo])}),[]),Fo=[].concat(Io,[Mo]).reduce((function(e,t){return e.concat([t,t+"-"+$o,t+"-"+jo])}),[]),Do=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function Bo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uo(e){return e instanceof Bo(e).Element||e instanceof Element}function Vo(e){return e instanceof Bo(e).HTMLElement||e instanceof HTMLElement}function Ho(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Bo(e).ShadowRoot||e instanceof ShadowRoot)}var qo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Vo(o)&&Wo(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Vo(r)&&Wo(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ko(e){return e.split("-")[0]}var Qo=Math.max,Go=Math.min,Xo=Math.round;function Yo(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Jo(){return!/^((?!chrome|android).)*safari/i.test(Yo())}function Zo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Vo(e)&&(o=e.offsetWidth>0&&Xo(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Xo(r.height)/e.offsetHeight||1);var i=(Uo(e)?Bo(e):window).visualViewport,l=!Jo()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,d=r.height/a;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function ea(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ta(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ho(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function na(e){return Bo(e).getComputedStyle(e)}function ra(e){return["table","td","th"].indexOf(Wo(e))>=0}function oa(e){return((Uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function aa(e){return"html"===Wo(e)?e:e.assignedSlot||e.parentNode||(Ho(e)?e.host:null)||oa(e)}function ia(e){return Vo(e)&&"fixed"!==na(e).position?e.offsetParent:null}function la(e){for(var t=Bo(e),n=ia(e);n&&ra(n)&&"static"===na(n).position;)n=ia(n);return n&&("html"===Wo(n)||"body"===Wo(n)&&"static"===na(n).position)?t:n||function(e){var t=/firefox/i.test(Yo());if(/Trident/i.test(Yo())&&Vo(e)&&"fixed"===na(e).position)return null;var n=aa(e);for(Ho(n)&&(n=n.host);Vo(n)&&["html","body"].indexOf(Wo(n))<0;){var r=na(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function sa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Qo(e,Go(t,n))}function ca(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function da(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var pa=function(e,t){return ca("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:da(e,Io))};var fa={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ko(n.placement),s=sa(l),u=[To,Ro].indexOf(l)>=0?"height":"width";if(a&&i){var c=pa(o.padding,n),d=ea(a),p="y"===s?Oo:To,f="y"===s?Po:Ro,h=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],m=i[s]-n.rects.reference[s],g=la(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[p],x=v-d[u]-c[f],w=v/2-d[u]/2+y,k=ua(b,w,x),S=s;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ta(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ha(e){return e.split("-")[1]}var ma={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ga(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=To,x=Oo,w=window;if(u){var k=la(n),S="clientHeight",E="clientWidth";if(k===Bo(n)&&"static"!==na(k=oa(n)).position&&"absolute"===l&&(S="scrollHeight",E="scrollWidth"),o===Oo||(o===To||o===Ro)&&a===jo)x=Po,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-r.height,m*=s?1:-1;if(o===To||(o===Oo||o===Po)&&a===jo)b=Ro,f-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,f*=s?1:-1}var C,O=Object.assign({position:l},u&&ma),P=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Xo(t*r)/r||0,y:Xo(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=P.x,m=P.y,s?Object.assign({},O,((C={})[x]=y?"0":"",C[b]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[x]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var va={passive:!0};var ya={left:"right",right:"left",bottom:"top",top:"bottom"};function ba(e){return e.replace(/left|right|bottom|top/g,(function(e){return ya[e]}))}var xa={start:"end",end:"start"};function wa(e){return e.replace(/start|end/g,(function(e){return xa[e]}))}function ka(e){var t=Bo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sa(e){return Zo(oa(e)).left+ka(e).scrollLeft}function Ea(e){var t=na(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ca(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:Vo(e)&&Ea(e)?e:Ca(aa(e))}function Oa(e,t){var n;void 0===t&&(t=[]);var r=Ca(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Bo(r),i=o?[a].concat(a.visualViewport||[],Ea(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Oa(aa(i)))}function Pa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ra(e,t,n){return t===No?Pa(function(e,t){var n=Bo(e),r=oa(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=Jo();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Sa(e),y:s}}(e,n)):Uo(t)?function(e,t){var n=Zo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Pa(function(e){var t,n=oa(e),r=ka(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Qo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Sa(e),s=-r.scrollTop;return"rtl"===na(o||n).direction&&(l+=Qo(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(oa(e)))}function Ta(e,t,n,r){var o="clippingParents"===t?function(e){var t=Oa(aa(e)),n=["absolute","fixed"].indexOf(na(e).position)>=0&&Vo(e)?la(e):e;return Uo(n)?t.filter((function(e){return Uo(e)&&ta(e,n)&&"body"!==Wo(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Ra(e,n,r);return t.top=Qo(o.top,t.top),t.right=Go(o.right,t.right),t.bottom=Go(o.bottom,t.bottom),t.left=Qo(o.left,t.left),t}),Ra(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ma(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Ko(o):null,i=o?ha(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Oo:t={x:l,y:n.y-r.height};break;case Po:t={x:l,y:n.y+n.height};break;case Ro:t={x:n.x+n.width,y:s};break;case To:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?sa(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case $o:t[u]=t[u]-(n[c]/2-r[c]/2);break;case jo:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Ia(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?Lo:l,u=n.rootBoundary,c=void 0===u?No:u,d=n.elementContext,p=void 0===d?Ao:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=ca("number"!=typeof g?g:da(g,Io)),y=p===Ao?zo:Ao,b=e.rects.popper,x=e.elements[h?y:p],w=Ta(Uo(x)?x:x.contextElement||oa(e.elements.popper),s,c,i),k=Zo(e.elements.reference),S=Ma({reference:k,element:b,strategy:"absolute",placement:o}),E=Pa(Object.assign({},b,S)),C=p===Ao?E:k,O={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},P=e.modifiersData.offset;if(p===Ao&&P){var R=P[o];Object.keys(O).forEach((function(e){var t=[Ro,Po].indexOf(e)>=0?1:-1,n=[Oo,Po].indexOf(e)>=0?"y":"x";O[e]+=R[n]*t}))}return O}function $a(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Fo:s,c=ha(r),d=c?l?_o:_o.filter((function(e){return ha(e)===c})):Io,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Ia(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Ko(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ja={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Ko(g),y=s||(v===g||!h?[ba(g)]:function(e){if(Ko(e)===Mo)return[];var t=ba(e);return[wa(e),t,wa(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Ko(n)===Mo?$a(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,E=b[0],C=0;C<b.length;C++){var O=b[C],P=Ko(O),R=ha(O)===$o,T=[Oo,Po].indexOf(P)>=0,M=T?"width":"height",I=Ia(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),$=T?R?Ro:To:R?Po:Oo;x[M]>w[M]&&($=ba($));var j=ba($),L=[];if(a&&L.push(I[P]<=0),l&&L.push(I[$]<=0,I[j]<=0),L.every((function(e){return e}))){E=O,S=!1;break}k.set(O,L)}if(S)for(var N=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},A=h?3:1;A>0;A--){if("break"===N(A))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Na(e){return[Oo,Ro,Po,To].some((function(t){return e[t]>=0}))}var Aa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Fo.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ko(e),o=[To,Oo].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[To,Ro].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var za={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Ia(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=Ko(t.placement),y=ha(t.placement),b=!y,x=sa(v),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(a){var T,M="y"===x?Oo:To,I="y"===x?Po:Ro,$="y"===x?"height":"width",j=k[x],L=j+g[M],N=j-g[I],A=f?-E[$]/2:0,z=y===$o?S[$]:E[$],_=y===$o?-E[$]:-S[$],F=t.elements.arrow,D=f&&F?ea(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[M],U=W[I],V=ua(0,S[$],D[$]),H=b?S[$]/2-A-V-B-O.mainAxis:z-V-B-O.mainAxis,q=b?-S[$]/2+A+V+U+O.mainAxis:_+V+U+O.mainAxis,K=t.elements.arrow&&la(t.elements.arrow),Q=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,G=null!=(T=null==P?void 0:P[x])?T:0,X=j+q-G,Y=ua(f?Go(L,j+H-G-Q):L,j,f?Qo(N,X):N);k[x]=Y,R[x]=Y-j}if(l){var J,Z="x"===x?Oo:To,ee="x"===x?Po:Ro,te=k[w],ne="y"===w?"height":"width",re=te+g[Z],oe=te-g[ee],ae=-1!==[Oo,To].indexOf(v),ie=null!=(J=null==P?void 0:P[w])?J:0,le=ae?re:te-S[ne]-E[ne]-ie+O.altAxis,se=ae?te+S[ne]+E[ne]-ie-O.altAxis:oe,ue=f&&ae?function(e,t,n){var r=ua(e,t,n);return r>n?n:r}(le,te,se):ua(f?le:re,te,f?se:oe);k[w]=ue,R[w]=ue-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function _a(e,t,n){void 0===n&&(n=!1);var r,o,a=Vo(t),i=Vo(t)&&function(e){var t=e.getBoundingClientRect(),n=Xo(t.width)/e.offsetWidth||1,r=Xo(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=oa(t),s=Zo(e,i,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==Wo(t)||Ea(l))&&(u=(r=t)!==Bo(r)&&Vo(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ka(r)),Vo(t)?((c=Zo(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Sa(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function Fa(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Da={placement:"bottom",modifiers:[],strategy:"absolute"};function Wa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ba(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Da:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Da,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Uo(e)?Oa(e):e.contextElement?Oa(e.contextElement):[],popper:Oa(t)};var i,u,p=function(e){var t=Fa(e);return Do.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),u=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:c,options:r}),i=function(){};s.push(a||i)}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(Wa(t,n)){l.rects={reference:_a(t,la(n),"fixed"===l.options.strategy),popper:ea(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),u=!0}};if(!Wa(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Ua=Ba({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=Bo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,va)})),l&&s.addEventListener("resize",n.update,va),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,va)})),l&&s.removeEventListener("resize",n.update,va)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ma({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,u={placement:Ko(t.placement),variation:ha(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ga(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ga(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},qo,Aa,ja,za,fa,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ia(t,{elementContext:"reference"}),l=Ia(t,{altBoundary:!0}),s=La(i,r),u=La(l,o,a),c=Na(s),d=Na(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});var Va=Xe.exports.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=Xe.exports.useState(null),l=_r(Xe.exports.isValidElement(n)?n.ref:null,t);return Ir((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ir((()=>{if(a&&!o)return Mr(t,a),()=>{Mr(t,null)}}),[t,a,o]),o?Xe.exports.isValidElement(n)?Xe.exports.cloneElement(n,{ref:l}):n:xo.exports.jsx(Xe.exports.Fragment,{children:a?ot.exports.createPortal(n,a):a})}));function Ha(e){return io("MuiPopperUnstyled",e)}lo("MuiPopperUnstyled",["root"]);const qa=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Ka=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Qa(e){return"function"==typeof e?e():e}const Ga={},Xa=Xe.exports.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,component:a,components:i={},componentsProps:l={},direction:s,disablePortal:u,modifiers:c,open:d,ownerState:p,placement:f,popperOptions:h,popperRef:m,TransitionProps:g}=e,v=ar(e,qa),y=Xe.exports.useRef(null),b=_r(y,t),x=Xe.exports.useRef(null),w=_r(x,m),k=Xe.exports.useRef(w);Ir((()=>{k.current=w}),[w]),Xe.exports.useImperativeHandle(m,(()=>x.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,s),[E,C]=Xe.exports.useState(S);Xe.exports.useEffect((()=>{x.current&&x.current.forceUpdate()})),Ir((()=>{if(!r||!d)return;Qa(r);let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=c&&(e=e.concat(c)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=Ua(Qa(r),y.current,tr({placement:S},h,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}),[r,u,c,d,h,S]);const O={placement:E};null!==g&&(O.TransitionProps=g);const P=no({root:["root"]},Ha,{}),R=null!=(n=null!=a?a:i.Root)?n:"div",T=fo({elementType:R,externalSlotProps:l.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:b},ownerState:tr({},e,p),className:P.root});return xo.exports.jsx(R,tr({},T,{children:"function"==typeof o?o(O):o}))})),Ya=Xe.exports.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=Ga,popperRef:p,style:f,transition:h=!1}=e,m=ar(e,Ka),[g,v]=Xe.exports.useState(!0);if(!l&&!u&&(!h||g))return null;const y=o||(n?Pr(Qa(n)).body:void 0);return xo.exports.jsx(Va,{disablePortal:i,container:y,children:xo.exports.jsx(Xa,tr({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!g:u,placement:c,popperOptions:d,popperRef:p},m,{style:tr({position:"fixed",top:0,left:0,display:u||!l||h&&!g?null:"none"},f),TransitionProps:h?{in:u,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:null,children:r}))})}));var Ja=Ya;function Za(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ei(e){return parseInt(Rr(e).getComputedStyle(e).paddingRight,10)||0}function ti(e,t,n,r=[],o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Za(e,o)}))}function ni(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ri(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Pr(e);return t.body===e?Rr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Qr(Pr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ei(r)+e}px`;const t=Pr(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ei(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Pr(r).body;else{const t=r.parentElement,n=Rr(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function oi(e){return io("MuiModal",e)}lo("MuiModal",["root","hidden"]);const ai=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];const ii=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Za(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ti(t,e.mount,e.modalRef,r,!0);const o=ni(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ni(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ri(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ni(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Za(e.modalRef,t),ti(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Za(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var li=Xe.exports.forwardRef((function(e,t){var n;const{children:r,classes:o,closeAfterTransition:a=!1,component:i="div",components:l={},componentsProps:s={},container:u,disableAutoFocus:c=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:f=!1,disableRestoreFocus:h=!1,disableScrollLock:m=!1,hideBackdrop:g=!1,keepMounted:v=!1,manager:y=ii,onBackdropClick:b,onClose:x,onKeyDown:w,open:k,onTransitionEnter:S,onTransitionExited:E}=e,C=ar(e,ai),[O,P]=Xe.exports.useState(!0),R=Xe.exports.useRef({}),T=Xe.exports.useRef(null),M=Xe.exports.useRef(null),I=_r(M,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),j=null==(n=e["aria-hidden"])||n,L=()=>(R.current.modalRef=M.current,R.current.mountNode=T.current,R.current),N=()=>{y.mount(L(),{disableScrollLock:m}),M.current.scrollTop=0},A=zr((()=>{const e=function(e){return"function"==typeof e?e():e}(u)||Pr(T.current).body;y.add(L(),e),M.current&&N()})),z=Xe.exports.useCallback((()=>y.isTopModal(L())),[y]),_=zr((e=>{T.current=e,e&&(k&&z()?N():Za(M.current,j))})),F=Xe.exports.useCallback((()=>{y.remove(L(),j)}),[y,j]);Xe.exports.useEffect((()=>()=>{F()}),[F]),Xe.exports.useEffect((()=>{k?A():$&&a||F()}),[k,F,$,a,A]);const D=tr({},e,{classes:o,closeAfterTransition:a,disableAutoFocus:c,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:f,disableRestoreFocus:h,disableScrollLock:m,exited:O,hideBackdrop:g,keepMounted:v}),W=(e=>{const{open:t,exited:n,classes:r}=e;return no({root:["root",!t&&n&&"hidden"]},oi,r)})(D),B=()=>{P(!1),S&&S()},U=()=>{P(!0),E&&E(),a&&F()},V={};void 0===r.props.tabIndex&&(V.tabIndex="-1"),$&&(V.onEnter=Sr(B,r.props.onEnter),V.onExited=Sr(U,r.props.onExited));const H=l.Root||i,q=fo({elementType:H,externalSlotProps:s.root,externalForwardedProps:C,additionalProps:{ref:I,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&z()&&(p||(e.stopPropagation(),x&&x(e,"escapeKeyDown")))}},className:W.root,ownerState:D}),K=l.Backdrop,Q=fo({elementType:K,externalSlotProps:s.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),x&&x(e,"backdropClick"))},open:k},ownerState:D});return v||k||$&&!O?xo.exports.jsx(Va,{ref:_,container:u,disablePortal:f,children:xo.exports.jsxs(H,tr({},q,{children:[!g&&K?xo.exports.jsx(K,tr({},Q)):null,xo.exports.jsx(Co,{disableEnforceFocus:d,disableAutoFocus:c,disableRestoreFocus:h,isEnabled:z,open:k,children:Xe.exports.cloneElement(r,V)})]}))}):null}));const si=["onChange","maxRows","minRows","style","value"];function ui(e,t){return parseInt(e[t],10)||0}const ci={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function di(e){return null==e||0===Object.keys(e).length}const pi=Xe.exports.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=ar(e,si),{current:s}=Xe.exports.useRef(null!=i),u=Xe.exports.useRef(null),c=_r(t,u),d=Xe.exports.useRef(null),p=Xe.exports.useRef(0),[f,h]=Xe.exports.useState({}),m=Xe.exports.useCallback((()=>{const t=u.current,n=Rr(t).getComputedStyle(t);if("0px"===n.width)return{};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n["box-sizing"],l=ui(n,"padding-bottom")+ui(n,"padding-top"),s=ui(n,"border-bottom-width")+ui(n,"border-top-width"),c=a.scrollHeight;a.value="x";const p=a.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Xe.exports.useCallback((()=>{const e=m();di(e)||h((t=>g(t,e)))}),[m]);Xe.exports.useEffect((()=>{const e=Er((()=>{p.current=0,u.current&&(()=>{const e=m();di(e)||ot.exports.flushSync((()=>{h((t=>g(t,e)))}))})()})),t=Rr(u.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(u.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),Ir((()=>{v()})),Xe.exports.useEffect((()=>{p.current=0}),[i]);return xo.exports.jsxs(Xe.exports.Fragment,{children:[xo.exports.jsx("textarea",tr({value:i,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:tr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},a)},l)),xo.exports.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:tr({},ci,a,{padding:0})})]})}));var fi=pi;function hi(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var mi=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gi=hi((function(e){return mi.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function vi(){return vi=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},vi.apply(this,arguments)}var yi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),bi={exports:{}};!function(e){var t="-ms-",n="-moz-",r="-webkit-",o="comm",a="rule",i="decl",l="@page",s="@media",u="@import",c="@charset",d="@viewport",p="@supports",f="@document",h="@namespace",m="@keyframes",g="@font-face",v="@counter-style",y="@font-feature-values",b=Math.abs,x=String.fromCharCode,w=Object.assign;function k(e,t){return(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3)}function S(e){return e.trim()}function E(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function O(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function R(e,t,n){return e.slice(t,n)}function T(e){return e.length}function M(e){return e.length}function I(e,t){return t.push(e),e}function $(e,t){return e.map(t).join("")}function j(t,n,r,o,a,i,l){return{value:t,root:n,parent:r,type:o,props:a,children:i,line:e.line,column:e.column,length:l,return:""}}function L(e,t){return w(j("",null,null,"",null,null,0),e,{length:-e.length},t)}function N(){return e.character}function A(){return e.character=e.position>0?P(e.characters,--e.position):0,e.column--,10===e.character&&(e.column=1,e.line--),e.character}function z(){return e.character=e.position<e.length?P(e.characters,e.position++):0,e.column++,10===e.character&&(e.column=1,e.line++),e.character}function _(){return P(e.characters,e.position)}function F(){return e.position}function D(t,n){return R(e.characters,t,n)}function W(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B(t){return e.line=e.column=1,e.length=T(e.characters=t),e.position=0,[]}function U(t){return e.characters="",t}function V(t){return S(D(e.position-1,G(91===t?t+2:40===t?t+1:t)))}function H(e){return U(K(B(e)))}function q(t){for(;(e.character=_())&&e.character<33;)z();return W(t)>2||W(e.character)>3?"":" "}function K(t){for(;z();)switch(W(e.character)){case 0:I(Y(e.position-1),t);break;case 2:I(V(e.character),t);break;default:I(x(e.character),t)}return t}function Q(t,n){for(;--n&&z()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return D(t,F()+(n<6&&32==_()&&32==z()))}function G(t){for(;z();)switch(e.character){case t:return e.position;case 34:case 39:34!==t&&39!==t&&G(e.character);break;case 40:41===t&&G(t);break;case 92:z()}return e.position}function X(t,n){for(;z()&&t+e.character!==57&&(t+e.character!==84||47!==_()););return"/*"+D(n,e.position-1)+"*"+x(47===t?t:z())}function Y(t){for(;!W(_());)z();return D(t,e.position)}function J(e){return U(Z("",null,null,null,[""],e=B(e),0,[0],e))}function Z(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,k=a,S=r,E=b;g;)switch(h=y,y=z()){case 40:if(108!=h&&58==E.charCodeAt(d-1)){-1!=O(E+=C(V(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=V(y);break;case 9:case 10:case 13:case 32:E+=q(h);break;case 92:E+=Q(F()-1,7);continue;case 47:switch(_()){case 42:case 47:I(te(X(z(),F()),t,n),s);break;default:E+="/"}break;case 123*m:l[u++]=T(E)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:f>0&&T(E)-d&&I(f>32?ne(E+";",r,n,d-1):ne(C(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(I(S=ee(E,t,n,u,c,o,l,b,w=[],k=[],d),a),123===y)if(0===c)Z(E,t,S,S,w,a,d,l,k);else switch(p){case 100:case 109:case 115:Z(e,S,S,r&&I(ee(e,S,S,0,0,o,l,b,o,w=[],d),k),o,k,d,l,r?w:k);break;default:Z(E,S,S,S,[""],k,0,l,k)}}u=c=f=0,m=v=1,b=E="",d=i;break;case 58:d=1+T(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==A())continue;switch(E+=x(y),y*m){case 38:v=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(T(E)-1)*v,v=1;break;case 64:45===_()&&(E+=V(z())),p=_(),c=d=T(b=E+=Y(F())),y++;break;case 45:45===h&&2==T(E)&&(m=0)}}return a}function ee(e,t,n,r,o,i,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=M(f),m=0,g=0,v=0;m<r;++m)for(var y=0,x=R(e,p+1,p=b(g=l[m])),w=e;y<h;++y)(w=S(g>0?f[y]+" "+x:C(x,/&\f/g,f[y])))&&(u[v++]=w);return j(e,t,n,0===o?a:s,u,c,d)}function te(e,t,n){return j(e,t,n,o,x(N()),R(e,2,-2),0)}function ne(e,t,n,r){return j(e,t,n,i,R(e,0,r),R(e,r+1,-1),r)}function re(e,o){switch(k(e,o)){case 5103:return r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r+e+n+e+t+e+e;case 6828:case 4268:return r+e+t+e+e;case 6165:return r+e+t+"flex-"+e+e;case 5187:return r+e+C(e,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+e;case 5443:return r+e+t+"flex-item-"+C(e,/flex-|-self/,"")+e;case 4675:return r+e+t+"flex-line-pack"+C(e,/align-content|flex-|-self/,"")+e;case 5548:return r+e+t+C(e,"shrink","negative")+e;case 5292:return r+e+t+C(e,"basis","preferred-size")+e;case 6060:return r+"box-"+C(e,"-grow","")+r+e+t+C(e,"grow","positive")+e;case 4554:return r+C(e,/([^-])(transform)/g,"$1"+r+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+e+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(T(e)-1-o>6)switch(P(e,o+1)){case 109:if(45!==P(e,o+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(108==P(e,o+3)?"$3":"$2-$3"))+e;case 115:return~O(e,"stretch")?re(C(e,"stretch","fill-available"),o)+e:e}break;case 4949:if(115!==P(e,o+1))break;case 6444:switch(P(e,T(e)-3-(~O(e,"!important")&&10))){case 107:return C(e,":",":"+r)+e;case 101:return C(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r+(45===P(e,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+e}break;case 5936:switch(P(e,o+11)){case 114:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return r+e+t+e+e}return e}function oe(e,t){for(var n="",r=M(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ae(e,t,n,r){switch(e.type){case u:case i:return e.return=e.return||e.value;case o:return"";case m:return e.return=e.value+"{"+oe(e.children,r)+"}";case a:e.value=e.props.join(",")}return T(n=oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ie(e){var t=M(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function le(e){return function(t){t.root||(t=t.return)&&e(t)}}function se(e,o,l,s){if(e.length>-1&&!e.return)switch(e.type){case i:e.return=re(e.value,e.length);break;case m:return oe([L(e,{value:C(e.value,"@","@"+r)})],s);case a:if(e.length)return $(e.props,(function(o){switch(E(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([L(e,{props:[C(o,/:(read-\w+)/,":"+n+"$1")]})],s);case"::placeholder":return oe([L(e,{props:[C(o,/:(plac\w+)/,":"+r+"input-$1")]}),L(e,{props:[C(o,/:(plac\w+)/,":"+n+"$1")]}),L(e,{props:[C(o,/:(plac\w+)/,t+"input-$1")]})],s)}return""}))}}function ue(e){e.type===a&&(e.props=e.props.map((function(t){return $(H(t),(function(t,n,r){switch(P(t,0)){case 12:return R(t,1,T(t));case 0:case 40:case 43:case 62:case 126:return t;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+R(r[n],n=1,-1));case 32:return 1===n?"":t;default:switch(n){case 0:return e=t,M(r)>1?"":t;case n=M(r)-1:case 2:return 2===n?t+e+e:t+e;default:return t}}}))})))}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="",e.CHARSET=c,e.COMMENT=o,e.COUNTER_STYLE=v,e.DECLARATION=i,e.DOCUMENT=f,e.FONT_FACE=g,e.FONT_FEATURE_VALUES=y,e.IMPORT=u,e.KEYFRAMES=m,e.MEDIA=s,e.MOZ=n,e.MS=t,e.NAMESPACE=h,e.PAGE=l,e.RULESET=a,e.SUPPORTS=p,e.VIEWPORT=d,e.WEBKIT=r,e.abs=b,e.alloc=B,e.append=I,e.assign=w,e.caret=F,e.char=N,e.charat=P,e.combine=$,e.comment=te,e.commenter=X,e.compile=J,e.copy=L,e.dealloc=U,e.declaration=ne,e.delimit=V,e.delimiter=G,e.escaping=Q,e.from=x,e.hash=k,e.identifier=Y,e.indexof=O,e.match=E,e.middleware=ie,e.namespace=ue,e.next=z,e.node=j,e.parse=Z,e.peek=_,e.prefix=re,e.prefixer=se,e.prev=A,e.replace=C,e.ruleset=ee,e.rulesheet=le,e.serialize=oe,e.sizeof=M,e.slice=D,e.stringify=ae,e.strlen=T,e.substr=R,e.token=W,e.tokenize=H,e.tokenizer=K,e.trim=S,e.whitespace=q,Object.defineProperty(e,"__esModule",{value:!0})}(bi.exports);var xi=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},wi=function(e,t,n){for(var r=0,o=0;r=o,o=bi.exports.peek(),38===r&&12===o&&(t[n]=1),!bi.exports.token(o);)bi.exports.next();return bi.exports.slice(e,bi.exports.position)},ki=function(e,t){return bi.exports.dealloc(function(e,t){var n=-1,r=44;do{switch(bi.exports.token(r)){case 0:38===r&&12===bi.exports.peek()&&(t[n]=1),e[n]+=wi(bi.exports.position-1,t,n);break;case 2:e[n]+=bi.exports.delimit(r);break;case 4:if(44===r){e[++n]=58===bi.exports.peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bi.exports.from(r)}}while(r=bi.exports.next());return e}(bi.exports.alloc(e),t))},Si=new WeakMap,Ei=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Si.get(n))&&!r){Si.set(e,!0);for(var o=[],a=ki(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},Ci=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Oi="undefined"!=typeof document,Pi=Oi?void 0:xi((function(){return hi((function(){var e={};return function(t){return e[t]}}))})),Ri=[bi.exports.prefixer],Ti=function(e){var t=e.key;if(Oi&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Ri,i={},l=[];Oi&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s=[Ei,Ci];if(Oi){var u,c=[bi.exports.stringify,bi.exports.rulesheet((function(e){u.insert(e)}))],d=bi.exports.middleware(s.concat(a,c));o=function(e,t,n,r){u=n,function(e){bi.exports.serialize(bi.exports.compile(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[bi.exports.stringify],f=bi.exports.middleware(s.concat(a,p)),h=Pi(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return bi.exports.serialize(bi.exports.compile(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new yi({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g},Mi="undefined"!=typeof document;var Ii=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Mi&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},$i=function(e,t,n){Ii(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);Mi||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Mi&&0!==o.length)return o}};var ji={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Li=/[A-Z]|^ms/g,Ni=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ai=function(e){return 45===e.charCodeAt(1)},zi=function(e){return null!=e&&"boolean"!=typeof e},_i=hi((function(e){return Ai(e)?e:e.replace(Li,"-$&").toLowerCase()})),Fi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ni,(function(e,t,n){return Wi={name:t,styles:n,next:Wi},t}))}return 1===ji[e]||Ai(e)||"number"!=typeof t||0===t?t:t+"px"};function Di(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Wi={name:n.name,styles:n.styles,next:Wi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Wi={name:r.name,styles:r.styles,next:Wi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Di(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":zi(i)&&(r+=_i(a)+":"+Fi(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Di(e,t,i);switch(a){case"animation":case"animationName":r+=_i(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)zi(i[s])&&(r+=_i(a)+":"+Fi(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Wi,a=n(e);return Wi=o,Di(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Wi,Bi,Ui=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Vi=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Wi=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Di(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Di(n,t,e[i]),r&&(o+=a[i]);Ui.lastIndex=0;for(var l,s="";null!==(l=Ui.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Wi}},Hi={exports:{}},qi={};Hi.exports=function(){if(Bi)return qi;Bi=1,Object.defineProperty(qi,"__esModule",{value:!0});var e=Xe.exports;function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var n=t(e),r="undefined"!=typeof document,o=function(e){return e()},a=!!n.useInsertionEffect&&n.useInsertionEffect,i=r&&a||o,l=a||e.useLayoutEffect;return qi.useInsertionEffectAlwaysWithSyncFallback=i,qi.useInsertionEffectWithLayoutFallback=l,qi}();var Ki="undefined"!=typeof document,Qi=Xe.exports.createContext("undefined"!=typeof HTMLElement?Ti({key:"css"}):null),Gi=Qi.Provider,Xi=function(e){return Xe.exports.forwardRef((function(t,n){var r=Xe.exports.useContext(Qi);return e(t,r,n)}))};Ki||(Xi=function(e){return function(t){var n=Xe.exports.useContext(Qi);return null===n?(n=Ti({key:"css"}),Xe.exports.createElement(Qi.Provider,{value:n},e(t,n))):e(t,n)}});var Yi=Xe.exports.createContext({}),Ji=Xi((function(e,t){var n=e.styles,r=Vi([n],void 0,Xe.exports.useContext(Yi));if(!Ki){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,u=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:Xe.exports.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=Xe.exports.useRef();return Hi.exports.useInsertionEffectWithLayoutFallback((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),c.current=[n,o],function(){n.flush()}}),[t]),Hi.exports.useInsertionEffectWithLayoutFallback((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&$i(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vi(t)}var el,tl=function(){var e=Zi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},nl={exports:{}},rl={};nl.exports=function(){if(el)return rl;el=1,Object.defineProperty(rl,"__esModule",{value:!0});var e=Xe.exports;function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var n=t(e),r="undefined"!=typeof document,o=function(e){return e()},a=!!n.useInsertionEffect&&n.useInsertionEffect,i=r&&a||o,l=a||e.useLayoutEffect;return rl.useInsertionEffectAlwaysWithSyncFallback=i,rl.useInsertionEffectWithLayoutFallback=l,rl}();var ol=gi,al=function(e){return"theme"!==e},il=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ol:al},ll=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},sl="undefined"!=typeof document,ul=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ii(t,n,r);var o=nl.exports.useInsertionEffectAlwaysWithSyncFallback((function(){return $i(t,n,r)}));if(!sl&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return Xe.exports.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},cl=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=ll(t,n,a),s=l||il(i),u=!s("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],c[0][f])}var h=Xi((function(e,t,n){var r,a,c,p,f=u&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=Xe.exports.useContext(Yi)}"string"==typeof e.className?(r=t.registered,a=m,c=e.className,p="",c.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var y=Vi(d.concat(m),t.registered,g);h+=t.key+"-"+y.name,void 0!==o&&(h+=" "+o);var b=u&&void 0===l?il(f):s,x={};for(var w in e)u&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=h,x.ref=n,Xe.exports.createElement(Xe.exports.Fragment,null,Xe.exports.createElement(ul,{cache:t,serialized:y,isStringTag:"string"==typeof f}),Xe.exports.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,vi({},n,r,{shouldForwardProp:ll(h,r,!0)})).apply(void 0,d)},h}},dl=cl.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){dl[e]=dl(e)}));var pl=dl;const fl=Ti({key:"css",prepend:!0});function hl(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return xo.exports.jsx(Ji,{styles:r})}
2
2
  /** @license MUI v5.10.8
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the