tocco-devcon 3.14.53 → 3.14.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ 3.14.54
2
+ - Prevent backspace on selected values in multi select remote fields
3
+
1
4
  3.14.53
2
5
  - harmonize todos styling
3
6
 
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@
43
43
  * LICENSE.md file in the root directory of this source tree.
44
44
  *
45
45
  * @license MIT
46
- */function s(e={}){return m((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:f(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function f({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,u=f();function f(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=f(),t=null==e?null:e-u;u=e,l&&l({action:s,location:v.location,delta:t})}function m(e){return g(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(c,h),l=e,()=>{o.removeEventListener(c,h),l=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=p(v.location,e,t);n&&n(r,e),u=f()+1;let c=d(r,u),h=v.createHref(r);try{i.pushState(c,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}a&&l&&l({action:s,location:v.location,delta:1})},replace:function(e,t){s="REPLACE";let r=p(v.location,e,t);n&&n(r,e),u=f();let o=d(r,u),c=v.createHref(r);i.replaceState(o,"",c),a&&l&&l({action:s,location:v.location,delta:0})},go:e=>i.go(e)};return v}function g(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),l(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:f(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var v=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,o),e)for(let[t,n]of e)this.set(t,n)}get(e){if(i(this,r).has(e))return i(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){i(this,r).set(e,t)}};r=new WeakMap;var y=new Set(["lazy","caseSensitive","path","id","index","children"]);var b=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function w(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:c};return r[c]=n,n}{let n={...e,...t(e),id:c,children:void 0};return r[c]=n,e.children&&(n.children=w(e.children,t,i,r,o)),n}}))}function x(e,t,n="/"){return k(e,t,n,!1)}function k(e,t,n,r){let o=F(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let a=O(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=L(o);i=R(a[e],t,r)}return i}function S(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function O(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let c=U([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),O(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:M(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=E(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var P=/^:[\w-]+$/,_=3,A=2,j=1,C=10,T=-2,D=e=>"*"===e;function M(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=T),t&&(r+=A),n.filter((e=>!D(e))).reduce(((e,t)=>e+(P.test(t)?_:""===t?j:C)),r)}function R(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:U([a,u.pathname]),pathnameBase:V(U([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return i}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e,t=!1,n=!0){u("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B(e){let t=z(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function W(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},l(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?h(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:Y(r),hash:q(o)}}(o,a),u=c&&"/"!==c&&c.endsWith("/"),d=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!d||(s.pathname+="/"),s}var U=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var $=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function G(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var K=["POST","PUT","PATCH","DELETE"],Q=new Set(K),X=["GET",...K],J=new Set(X),Z=new Set([301,302,303,307,308]),ee=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=e=>oe.test(e),ie=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions",se=Symbol("ResetLoaderData");function le(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;l(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,a,i=e.hydrationRouteProperties||[],c=e.mapRouteProperties||ie,s={},d=w(e.routes,c,void 0,s),f=e.basename||"/",h=e.dataStrategy||xe,m={unstable_middleware:!1,...e.future},y=null,b=new Set,O=null,E=null,P=null,_=null!=e.hydrationData,A=x(d,e.history.location,f),j=!1,C=null;if(null!=A||e.patchRoutesOnNavigation){if(A&&!e.hydrationData){rt(A,d,e.history.location.pathname).active&&(A=null)}if(A)if(A.some((e=>e.route.lazy)))o=!1;else if(A.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=A.findIndex((e=>void 0!==n[e.route.id]));o=A.slice(0,e+1).every((e=>!fe(e.route,t,n)))}else o=A.every((e=>!fe(e.route,t,n)))}else o=!0;else{o=!1,A=[];let t=rt(null,d,e.history.location.pathname);t.active&&t.matches&&(j=!0,A=t.matches)}}else{let t=Be(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ze(d);o=!0,A=n,C={[r.id]:t}}let T,D,M={historyAction:e.history.action,location:e.history.location,matches:A,initialized:o,navigation:te,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},R="POP",N=!1,I=!1,L=new Map,H=null,z=!1,B=!1,W=new Set,U=new Map,V=0,Y=-1,q=new Map,$=new Set,K=new Map,Q=new Map,X=new Set,J=new Map,Z=null;function oe(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=s[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),M={...M,...e};let n=[],r=[];M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?n.push(t):r.push(t))})),X.forEach((e=>{M.fetchers.has(e)||U.has(e)||n.push(e)})),[...b].forEach((e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Oe(e))),r.forEach((e=>M.fetchers.delete(e)))}function se(t,n,{flushSync:o}={}){let a,i=null!=M.actionData&&null!=M.navigation.formMethod&&Qe(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?M.actionData:null;let c=n.loaderData?Le(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,s=M.blockers;s.size>0&&(s=new Map(s),s.forEach(((e,t)=>s.set(t,re))));let l,u=!z&&Xe(t,n.matches||M.matches),p=!0===N||null!=M.navigation.formMethod&&Qe(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(d=r,r=void 0),z||"POP"===R||("PUSH"===R?e.history.push(t,t.state):"REPLACE"===R&&e.history.replace(t,t.state)),"POP"===R){let e=L.get(M.location.pathname);e&&e.has(t.pathname)?l={currentLocation:M.location,nextLocation:t}:L.has(t.pathname)&&(l={currentLocation:t,nextLocation:M.location})}else if(I){let e=L.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),L.set(M.location.pathname,e)),l={currentLocation:M.location,nextLocation:t}}oe({...n,actionData:a,loaderData:c,historyAction:R,location:t,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:u,preventScrollReset:p,blockers:s},{viewTransitionOpts:l,flushSync:!0===o}),R="POP",N=!1,I=!1,z=!1,B=!1,Z?.resolve(),Z=null}async function le(t,n,o){T&&T.abort(),T=null,R=t,z=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(O&&P){let n=Ke(e,t);O[n]=P()}}(M.location,M.matches),N=!0===(o&&o.preventScrollReset),I=!0===(o&&o.enableViewTransition);let a=r||d,l=o&&o.overrideNavigation,u=o?.initialHydration&&M.matches&&M.matches.length>0&&!j?M.matches:x(a,n,f),p=!0===(o&&o.flushSync);if(u&&M.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(o&&o.submission&&Qe(o.submission.formMethod)))return void se(n,{matches:u},{flushSync:p});let h=rt(u,a,n.pathname);if(h.active&&h.matches&&(u=h.matches),!u){let{error:e,notFoundMatches:t,route:r}=Ge(n.pathname);return void se(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}T=new AbortController;let m,g=De(e.history,n,T.signal,o&&o.submission),y=e.unstable_getContext?await e.unstable_getContext():new v;if(o&&o.pendingError)m=[He(u).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Qe(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,l,u={}){be();let d,p=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(oe({navigation:p},{flushSync:!0===u.flushSync}),a){let n=await ot(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=He(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=Ge(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let h=Je(r,t);if(h.route.action||h.route.lazy){let t=_e(c,s,e,r,h,l?[]:i,o),n=await ve(e,t,o,null);if(d=n[h.route.id],!d)for(let e of r)if(n[e.route.id]){d=n[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else d={type:"error",error:Be(405,{method:e.method,pathname:t.pathname,routeId:h.route.id})};if(qe(d)){let t;if(u&&null!=u.replace)t=u.replace;else{t=Te(d.response.headers.get("Location"),new URL(e.url),f)===M.location.pathname+M.location.search}return await ge(e,d,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ye(d)){let e=He(r,h.route.id);return!0!==(u&&u.replace)&&(R="PUSH"),{matches:r,pendingActionResult:[e.route.id,d,h.route.id]}}return{matches:r,pendingActionResult:[h.route.id,d]}}(g,n,o.submission,u,y,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ye(r)&&G(r.error)&&404===r.error.status)return T=null,void se(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}u=t.matches||u,m=t.pendingActionResult,l=et(n,o.submission),p=!1,h.active=!1,g=De(e.history,g.url,g.signal)}let{shortCircuited:b,matches:w,loaderData:k,errors:S}=await async function(t,n,o,a,l,u,p,h,m,g,v,y){let b=u||et(n,p),w=p||h||Ze(b),x=!z&&!g;if(l){if(x){let e=he(y);oe({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await ot(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=He(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ge(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=r||d,{dsMatches:S,revalidatingFetchers:O}=pe(t,a,c,s,e.history,M,o,w,n,g?[]:i,!0===g,B,W,X,K,$,k,f,null!=e.patchRoutesOnNavigation,y);if(Y=++V,!e.dataStrategy&&!S.some((e=>e.shouldLoad))&&!S.some((e=>e.route.unstable_middleware))&&0===O.length){let e=Me();return se(n,{matches:o,loaderData:{},errors:y&&Ye(y[1])?{[y[0]]:y[1].error}:null,...Fe(y),...e?{fetchers:new Map(M.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(x){let e={};if(!l){e.navigation=b;let t=he(y);void 0!==t&&(e.actionData=t)}O.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),n=tt(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)})),new Map(M.fetchers)}(O)),oe(e,{flushSync:v})}O.forEach((e=>{Ee(e.key),e.controller&&U.set(e.key,e.controller)}));let E=()=>O.forEach((e=>Ee(e.key)));T&&T.signal.addEventListener("abort",E);let{loaderResults:P,fetcherResults:_}=await ye(S,O,t,a);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",E);O.forEach((e=>U.delete(e.key)));let A=We(P);if(A)return await ge(t,A.result,!0,{replace:m}),{shortCircuited:!0};if(A=We(_),A)return $.add(A.key),await ge(t,A.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:j,errors:C}=Ie(M,o,P,y,O,_);g&&M.errors&&(C={...M.errors,...C});let D=Me(),R=Re(Y),N=D||R||O.length>0;return{matches:o,loaderData:j,errors:C,...N?{fetchers:new Map(M.fetchers)}:{}}}(g,n,u,y,h.active,l,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m);b||(T=null,se(n,{matches:w||u,...Fe(m),loaderData:k,errors:S}))}function he(e){return e&&!Ye(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function ge(e,r,o,{submission:a,fetcherSubmission:i,preventScrollReset:c,replace:s}={}){r.response.headers.has("X-Remix-Revalidate")&&(B=!0);let u=r.response.headers.get("Location");l(u,"Expected a Location header on the redirect Response"),u=Te(u,new URL(e.url),f);let d=p(M.location,u,{_isRedirect:!0});if(n){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(ae(u)){const n=g(u,!0);e=n.origin!==t.location.origin||null==F(n.pathname,f)}if(e)return void(s?t.location.replace(u):t.location.assign(u))}T=null;let h=!0===s||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:m,formAction:v,formEncType:y}=M.navigation;!a&&!i&&m&&v&&y&&(a=Ze(M.navigation));let b=a||i;if(ee.has(r.response.status)&&b&&Qe(b.formMethod))await le(h,d,{submission:{...b,formAction:u},preventScrollReset:c||N,enableViewTransition:o?I:void 0});else{let e=et(d,a);await le(h,d,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:c||N,enableViewTransition:o?I:void 0})}}async function ve(e,t,n,r){let o,a={};try{o=await Ae(h,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;for(let[n,r]of Object.entries(o))if(Ve(r)){let o=r.result;a[n]={type:"redirect",response:Ce(o,e,n,t,f)}}else a[n]=await je(r);return a}async function ye(e,t,n,r){let o=ve(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ve(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:Be(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function be(){B=!0,K.forEach(((e,t)=>{U.has(t)&&W.add(t),Ee(t)}))}function we(e,t,n={}){M.fetchers.set(e,t),oe({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function ke(e,t,n,r={}){let o=He(M.matches,t);Oe(e),oe({errors:{[o.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Se(e){return Q.set(e,(Q.get(e)||0)+1),X.has(e)&&X.delete(e),M.fetchers.get(e)||ne}function Oe(e){let t=M.fetchers.get(e);!U.has(e)||t&&"loading"===t.state&&q.has(e)||Ee(e),K.delete(e),q.delete(e),$.delete(e),X.delete(e),W.delete(e),M.fetchers.delete(e)}function Ee(e){let t=U.get(e);t&&(t.abort(),U.delete(e))}function Pe(e){for(let t of e){let e=nt(Se(t).data);M.fetchers.set(t,e)}}function Me(){let e=[],t=!1;for(let n of $){let r=M.fetchers.get(n);l(r,`Expected fetcher: ${n}`),"loading"===r.state&&($.delete(n),e.push(n),t=!0)}return Pe(e),t}function Re(e){let t=[];for(let[n,r]of q)if(r<e){let e=M.fetchers.get(n);l(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ee(n),q.delete(n),t.push(n))}return Pe(t),t.length>0}function Ne(e){M.blockers.delete(e),J.delete(e)}function Ue(e,t){let n=M.blockers.get(e)||re;l("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),oe({blockers:r})}function $e({currentLocation:e,nextLocation:t,historyAction:n}){if(0===J.size)return;J.size>1&&u(!1,"A router only supports one blocker at a time");let r=Array.from(J.entries()),[o,a]=r[r.length-1],i=M.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ge(e){let t=Be(404,{pathname:e}),n=r||d,{matches:o,route:a}=ze(n);return{notFoundMatches:o,route:a,error:t}}function Ke(e,t){if(E){return E(e,t.map((e=>S(e,M.loaderData))))||e.key}return e.key}function Xe(e,t){if(O){let n=Ke(e,t),r=O[n];if("number"==typeof r)return r}return null}function rt(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:k(n,r,f,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:k(n,r,f,!0)}}}return{active:!1,matches:null}}async function ot(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let i=t;for(;;){let t=null==r,l=r||d,u=s;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:i,fetcherKey:a,patch:(e,t)=>{o.aborted||me(e,t,l,u,c,!1)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{t&&!o.aborted&&(d=[...d])}if(o.aborted)return{type:"aborted"};let p=x(l,n,f);if(p)return{type:"success",matches:p};let h=k(l,n,f,!0);if(!h||i.length===h.length&&i.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};i=h}}return a={get basename(){return f},get future(){return m},get state(){return M},get routes(){return d},get window(){return t},initialize:function(){if(y=e.history.listen((({action:t,location:n,delta:r})=>{if(D)return D(),void(D=void 0);u(0===J.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=$e({currentLocation:M.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{D=e}));return e.history.go(-1*r),void Ue(o,{state:"blocked",location:n,proceed(){Ue(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(M.blockers);e.set(o,re),oe({blockers:e})}})}return le(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ce);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,L);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(n))}catch(e){u(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,L);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return M.initialized||le("POP",M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,P=t,E=n||null,!_&&M.navigation===te){_=!0;let e=Xe(M.location,M.matches);null!=e&&oe({restoreScrollPosition:e})}return()=>{O=null,P=null,E=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ue(M.location,M.matches,f,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=de(!1,o,r),s=M.location,l=p(M.location,a,r&&r.state);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,d="PUSH";!0===u?d="REPLACE":!1===u||null!=i&&Qe(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(d="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=$e({currentLocation:s,nextLocation:l,historyAction:d});g?Ue(g,{state:"blocked",location:l,proceed(){Ue(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(M.blockers);e.set(g,re),oe({blockers:e})}}):await le(d,l,{submission:i,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Ee(t);let u=!0===(a&&a.flushSync),p=r||d,h=ue(M.location,M.matches,f,o,n,a?.relative),m=x(p,h,f),g=rt(m,p,h);if(g.active&&g.matches&&(m=g.matches),!m)return void ke(t,n,Be(404,{pathname:h}),{flushSync:u});let{path:y,submission:b,error:w}=de(!0,h,a);if(w)return void ke(t,n,w,{flushSync:u});let k=e.unstable_getContext?await e.unstable_getContext():new v,S=!0===(a&&a.preventScrollReset);b&&Qe(b.formMethod)?await async function(t,n,o,a,u,p,h,m,g){be(),K.delete(t);let v=M.fetchers.get(t);we(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,v),{flushSync:h});let y=new AbortController,b=De(e.history,o,y.signal,g);if(p){let e=await ot(a,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ke(t,n,e.error,{flushSync:h});if(!e.matches)return void ke(t,n,Be(404,{pathname:o}),{flushSync:h});a=e.matches}let w=Je(a,o);if(!w.route.action&&!w.route.lazy){let e=Be(405,{method:g.formMethod,pathname:o,routeId:n});return void ke(t,n,e,{flushSync:h})}U.set(t,y);let k=V,S=_e(c,s,b,a,w,i,u),O=await ve(b,S,u,t),E=O[w.route.id];if(b.signal.aborted)return void(U.get(t)===y&&U.delete(t));if(X.has(t)){if(qe(E)||Ye(E))return void we(t,nt(void 0))}else{if(qe(E))return U.delete(t),Y>k?void we(t,nt(void 0)):($.add(t),we(t,tt(g)),ge(b,E,!1,{fetcherSubmission:g,preventScrollReset:m}));if(Ye(E))return void ke(t,n,E.error)}let P=M.navigation.location||M.location,_=De(e.history,P,y.signal),A=r||d,j="idle"!==M.navigation.state?x(A,M.navigation.location,f):M.matches;l(j,"Didn't find any matches after fetcher action");let C=++V;q.set(t,C);let D=tt(g,E.data);M.fetchers.set(t,D);let{dsMatches:N,revalidatingFetchers:I}=pe(_,u,c,s,e.history,M,j,g,P,i,!1,B,W,X,K,$,A,f,null!=e.patchRoutesOnNavigation,[w.route.id,E]);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=M.fetchers.get(t),r=tt(void 0,n?n.data:void 0);M.fetchers.set(t,r),Ee(t),e.controller&&U.set(t,e.controller)})),oe({fetchers:new Map(M.fetchers)});let L=()=>I.forEach((e=>Ee(e.key)));y.signal.addEventListener("abort",L);let{loaderResults:F,fetcherResults:H}=await ye(N,I,_,u);if(y.signal.aborted)return;if(y.signal.removeEventListener("abort",L),q.delete(t),U.delete(t),I.forEach((e=>U.delete(e.key))),M.fetchers.has(t)){let e=nt(E.data);M.fetchers.set(t,e)}let z=We(F);if(z)return ge(_,z.result,!1,{preventScrollReset:m});if(z=We(H),z)return $.add(z.key),ge(_,z.result,!1,{preventScrollReset:m});let{loaderData:G,errors:Q}=Ie(M,j,F,void 0,I,H);Re(C),"loading"===M.navigation.state&&C>Y?(l(R,"Expected pending action"),T&&T.abort(),se(M.navigation.location,{matches:j,loaderData:G,errors:Q,fetchers:new Map(M.fetchers)})):(oe({errors:Q,loaderData:Le(M.loaderData,G,j,Q),fetchers:new Map(M.fetchers)}),B=!1)}(t,n,y,m,k,g.active,u,S,b):(K.set(t,{routeId:n,path:y}),await async function(t,n,r,o,a,l,u,d,p){let f=M.fetchers.get(t);we(t,tt(p,f?f.data:void 0),{flushSync:u});let h=new AbortController,m=De(e.history,r,h.signal);if(l){let e=await ot(o,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ke(t,n,e.error,{flushSync:u});if(!e.matches)return void ke(t,n,Be(404,{pathname:r}),{flushSync:u});o=e.matches}let g=Je(o,r);U.set(t,h);let v=V,y=_e(c,s,m,o,g,i,a),b=await ve(m,y,a,t),w=b[g.route.id];U.get(t)===h&&U.delete(t);if(m.signal.aborted)return;if(X.has(t))return void we(t,nt(void 0));if(qe(w))return Y>v?void we(t,nt(void 0)):($.add(t),void await ge(m,w,!1,{preventScrollReset:d}));if(Ye(w))return void ke(t,n,w.error);we(t,nt(w.data))}(t,n,y,m,k,g.active,u,S,b))},revalidate:function(){Z||(Z=function(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),be(),oe({revalidation:"loading"});let e=Z.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(le(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(le(R||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===I}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Se,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),X.add(e)):Q.set(e,t),oe({fetchers:new Map(M.fetchers)})},dispose:function(){y&&y(),H&&H(),b.clear(),T&&T.abort(),M.fetchers.forEach(((e,t)=>Oe(t))),M.blockers.forEach(((e,t)=>Ne(t)))},getBlocker:function(e,t){let n=M.blockers.get(e)||re;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ne,patchRoutes:function(e,t,n=!1){let o=null==r;me(e,t,r||d,s,c,n),o&&(d=[...d],oe({}))},_internalFetchControllers:U,_internalSetRoutes:function(e){s={},r=w(e,c,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){oe(e)}},a}function ue(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=W(r||".",B(i),F(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=Xe(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:U([e,t])}({basename:n,pathname:s.pathname})),f(s)}function de(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!Ke(n.formMethod))return{path:t,error:Be(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Be(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=Ue(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Qe(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Qe(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Me(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Me(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Re(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Re(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Qe(s.formMethod))return{path:t,submission:s};let u=h(t);return e&&u.search&&Xe(u.search)&&r.append("index",""),u.search=`?${r}`,{path:f(u),submission:s}}function pe(e,t,n,r,o,a,i,c,s,l,u,d,p,f,h,m,g,v,y,b){let w,k=b?Ye(b[1])?b[1].error:b[1].data:void 0,S=o.createURL(a.location),O=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];w=i.findIndex((t=>t.route.id===e))}else if(b&&Ye(b[1])){let e=b[0];w=i.findIndex((t=>t.route.id===e))-1}let E=b?b[1].statusCode:void 0,P=E&&E>=400,_={currentUrl:S,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...c,actionResult:k,actionStatus:E},A=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=w&&i>w?s=!1:c.lazy?s=!0:null==c.loader?s=!1:u?s=fe(c,a.loaderData,a.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(a.loaderData,a.matches[i],o)&&(s=!0),null!==s)return Pe(n,r,e,o,l,t,s);let p=!P&&(d||S.pathname+S.search===O.pathname+O.search||S.search!==O.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o)),f={..._,defaultShouldRevalidate:p},h=he(o,f);return Pe(n,r,e,o,l,t,h,f)})),j=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=x(g,e.path,v);if(!b){if(y&&h)return;return void j.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let w=Je(b,e.path),k=new AbortController,S=De(o,e.path,k.signal),O=null;if(p.has(c))p.delete(c),O=_e(n,r,S,b,w,l,t);else if(h)d&&(O=_e(n,r,S,b,w,l,t));else{let e={..._,defaultShouldRevalidate:!P&&d};he(w,e)&&(O=_e(n,r,S,b,w,l,t,e))}O&&j.push({key:c,routeId:e.routeId,path:e.path,matches:O,match:w,request:S,controller:k})})),{dsMatches:A,revalidatingFetchers:j}}function fe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function he(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function me(e,t,n,r,o,a){let i;if(e){let t=r[e];l(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>ge(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=w(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=w([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>ge(e,t))))))}var ve=new WeakMap,ye=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(l(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=ve.get(o);i||(i={},ve.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return y.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)u(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)u(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},be=new WeakMap;async function we(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function xe(e){if(!e.matches.some((e=>e.route.unstable_middleware)))return we(e);let t=!1;return Se(e,(()=>(t=!0,we(e))),((n,r)=>ke(n,r,e.matches,t)))}function ke(e,t,n,r){if(r)return{[t]:{type:"error",result:e}};{let r=He(n,n.find((e=>e.route.id===t||e.route.loader))?.route.id||t).route.id;return{[r]:{type:"error",result:e}}}}async function Se(e,t,n){let{matches:r,request:o,params:a,context:i}=e,c=r.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),s={};return await Oe({request:o,params:a,context:i},c,t,n,s),s}async function Oe(e,t,n,r,o={},a=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let c=t[a];if(!c){let e=await n();return void Object.assign(o,e)}let[s,l]=c,u=!1,d=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0;try{let i=await Oe(e,t,n,r,o,a+1);Object.assign(o,i)}catch(e){let t=await r(e,s);Object.assign(o,t)}};try{let t=await l({request:e.request,params:e.params,context:e.context},d);void 0!==t&&console.warn("client middlewares are not intended to return values, the value will be ignored",t),u||await d()}catch(e){let t=await r(e,s);Object.assign(o,t)}}function Ee(e,t,n,r,o){let a=ye({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(l(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=be.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{l("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,b.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?u(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?u(!c,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return be.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=ye({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let d=s.length>0?Promise.all(s).then((()=>{})):void 0;return d?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:d,lazyHandlerPromise:i}}(r.route,Qe(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Pe(e,t,n,r,o,a,i,c=null){let s=!1,l=Ee(e,t,n,r,o);return{...r,_lazyPromises:l,shouldLoad:i,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:e=>(s=!0,c?he(r,"boolean"==typeof e?{...c,defaultShouldRevalidate:e}:c):i),resolve:e=>s||i||e&&!Qe(n.method)&&(r.route.lazy||r.route.loader)?async function({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,c,s=Qe(e.method),l=s?"action":"loader",u=n=>{let r,i=new Promise(((e,t)=>r=t));c=()=>r(),e.signal.addEventListener("abort",c);let s=r=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${t.route.id}]`)):n({request:e,params:t.params,context:a},...void 0!==r?[r]:[]),u=(async()=>{try{return{type:"data",result:await(o?o((e=>s(e))):s())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,i])};try{let o=s?t.route.action:t.route.loader;if(n||r)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),n,r]);if(void 0!==e)throw e;i=t}else{await n;let o=s?t.route.action:t.route.loader;if(!o){if("action"===l){let n=new URL(e.url),r=n.pathname+n.search;throw Be(405,{method:e.method,pathname:r,routeId:t.route.id})}return{type:"data",result:void 0}}[i]=await Promise.all([u(o),r])}else{if(!o){let t=new URL(e.url);throw Be(404,{pathname:t.pathname+t.search})}i=await u(o)}}catch(e){return{type:"error",result:e}}finally{c&&e.signal.removeEventListener("abort",c)}return i}({request:n,match:r,lazyHandlerPromise:l?.handler,lazyRoutePromise:l?.route,handlerOverride:e,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}function _e(e,t,n,r,o,a,i,c=null){return r.map((r=>r.route.id!==o.route.id?{...r,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:Ee(e,t,n,r,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Pe(e,t,n,r,a,i,!0,c)))}async function Ae(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,params:n[0].params,context:o,matches:n},c=a?()=>{throw new Error("You cannot call `unstable_runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=i,o=!1;return Se(t,(()=>(o=!0,e({...t,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}))),((e,t)=>ke(e,t,n,o)))},s=await e({...i,fetcherKey:r,unstable_runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function je(e){let{result:t,type:n}=e;if(Ge(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new $(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?$e(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new $(t.init?.status||500,void 0,t.data),statusCode:G(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:G(t)?t.status:void 0}:$e(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ce(e,t,n,r,o){let a=e.headers.get("Location");if(l(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ae(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ue(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Te(e,t,n){if(ae(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=F(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function De(e,t,n,r){let o=e.createURL(Ue(t)).toString(),a={signal:n};if(r&&Qe(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Me(r.formData):a.body=r.formData}return new Request(o,a)}function Me(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Re(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ne(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,u={},d=n&&Ye(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(l(!qe(f),"Cannot handle redirect results in processLoaderData"),Ye(f)){let t=f.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},o)c[p]=t;else{let n=He(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[p]=se),s||(s=!0,a=G(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else i[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(u[p]=f.headers)})),void 0!==d&&n&&(c={[n[0]]:d},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:u}}function Ie(e,t,n,r,o,a){let{loaderData:i,errors:c}=Ne(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(l(i,"Did not find corresponding fetcher result"),Ye(i)){let t=He(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(qe(i))l(!1,"Unhandled fetcher revalidation redirect");else{let t=nt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Le(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==se)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Fe(e){return e?Ye(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function He(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function ze(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Be(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new $(e||500,i,new Error(c),!0)}function We(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(qe(r))return{key:n,result:r}}}function Ue(e){return f({..."string"==typeof e?h(e):e,hash:""})}function Ve(e){return Ge(e.result)&&Z.has(e.result.status)}function Ye(e){return"error"===e.type}function qe(e){return"redirect"===(e&&e.type)}function $e(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ge(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ke(e){return J.has(e.toUpperCase())}function Qe(e){return Q.has(e.toUpperCase())}function Xe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Je(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Xe(n||""))return e[e.length-1];let r=z(e);return r[r.length-1]}function Ze(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function et(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var rt=o.createContext(null);rt.displayName="DataRouter";var ot=o.createContext(null);ot.displayName="DataRouterState";var at=o.createContext(!1);var it=o.createContext({isTransitioning:!1});it.displayName="ViewTransition";var ct=o.createContext(new Map);ct.displayName="Fetchers";var st=o.createContext(null);st.displayName="Await";var lt=o.createContext(null);lt.displayName="Navigation";var ut=o.createContext(null);ut.displayName="Location";var dt=o.createContext({outlet:null,matches:[],isDataRoute:!1});dt.displayName="Route";var pt=o.createContext(null);pt.displayName="RouteError";var ft=!0;function ht(){return null!=o.useContext(ut)}function mt(){return l(ht(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(ut).location}var gt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vt(e){o.useContext(lt).static||o.useLayoutEffect(e)}function yt(){let{isDataRoute:e}=o.useContext(dt);return e?function(){let{router:e}=_t("useNavigate"),t=jt("useNavigate"),n=o.useRef(!1);return vt((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{u(n.current,gt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){l(ht(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(rt),{basename:t,navigator:n}=o.useContext(lt),{matches:r}=o.useContext(dt),{pathname:a}=mt(),i=JSON.stringify(B(r)),c=o.useRef(!1);return vt((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(u(c.current,gt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=W(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:U([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function bt(e,{relative:t}={}){let{matches:n}=o.useContext(dt),{pathname:r}=mt(),a=JSON.stringify(B(n));return o.useMemo((()=>W(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function wt(e,t,n,r){l(ht(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=o.useContext(lt),{matches:i}=o.useContext(dt),c=i[i.length-1],s=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",f=c&&c.route;if(ft){let e=f&&f.path||"";Dt(d,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let m,g=mt();if(t){let e="string"==typeof t?h(t):t;l("/"===p||e.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=g;let v=m.pathname||"/",y=v;if("/"!==p){let e=p.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=x(e,{pathname:y});ft&&(u(f||null!=b,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),u(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let w=Et(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:U([p,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:U([p,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&w?o.createElement(ut.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},w):w}function xt(){let e=Ct(),t=G(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return ft&&(console.error("Error handled by React Router default ErrorBoundary:",e),c=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,c)}var kt=o.createElement(xt,null),St=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(dt.Provider,{value:this.props.routeContext},o.createElement(pt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ot({routeContext:e,match:t,children:n}){let r=o.useContext(rt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(dt.Provider,{value:e},n)}function Et(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,i=n?.errors;if(null!=i){let e=a.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,a=s>=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight(((e,r,l)=>{let u,d=!1,p=null,f=null;n&&(u=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||kt,c&&(s<0&&0===l?(Dt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===l&&(d=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?p:d?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(Ot,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(St,{location:n.location,revalidation:n.revalidation,component:p,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function Pt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _t(e){let t=o.useContext(rt);return l(t,Pt(e)),t}function At(e){let t=o.useContext(ot);return l(t,Pt(e)),t}function jt(e){let t=function(e){let t=o.useContext(dt);return l(t,Pt(e)),t}(e),n=t.matches[t.matches.length-1];return l(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ct(){let e=o.useContext(pt),t=At("useRouteError"),n=jt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Tt={};function Dt(e,t,n){t||Tt[e]||(Tt[e]=!0,u(!1,n))}var Mt={};function Rt(e,t){e||Mt[t]||(Mt[t]=!0,console.warn(t))}function Nt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(ft&&e.element&&u(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(ft&&e.hydrateFallbackElement&&u(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(ft&&e.errorElement&&u(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var It=["HydrateFallback","hydrateFallbackElement"];var Lt=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function Ft({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[a,i]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[l,u]=o.useState(),[d,p]=o.useState(),[f,h]=o.useState(),m=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:a,flushSync:c,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&m.current.set(t,e.data)})),a.forEach((e=>m.current.delete(e))),Rt(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let g=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Rt(null==f||g,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),f&&g){if(t&&c){t((()=>{d&&(l&&l.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{u(void 0),p(void 0),i(void 0),s({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(l&&l.resolve(),d.skipTransition(),h({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(i(n),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,l]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&u(new Lt)}),[c]),o.useEffect((()=>{if(l&&a&&e.window){let t=a,n=l.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{u(void 0),p(void 0),i(void 0),s({isTransitioning:!1})})),p(c)}}),[a,l,e.window]),o.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,d,n.location,a]),o.useEffect((()=>{!c.isTransitioning&&f&&(i(f.state),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),h(void 0))}),[c.isTransitioning,f]);let v=o.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",b=o.useMemo((()=>({router:e,navigator:v,static:!1,basename:y})),[e,v,y]);return o.createElement(o.Fragment,null,o.createElement(rt.Provider,{value:b},o.createElement(ot.Provider,{value:n},o.createElement(ct.Provider,{value:m.current},o.createElement(it.Provider,{value:c},o.createElement(Wt,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Ht,{routes:e.routes,future:e.future,state:n})))))),null)}var Ht=o.memo((function({routes:e,future:t,state:n}){return wt(e,void 0,n,t)}));function zt({to:e,replace:t,state:n,relative:r}){l(ht(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(lt);u(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=o.useContext(dt),{pathname:c}=mt(),s=yt(),d=W(e,B(i),c,"path"===r),p=JSON.stringify(d);return o.useEffect((()=>{s(JSON.parse(p),{replace:t,state:n,relative:r})}),[s,p,r,t,n]),null}function Bt(e){l(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Wt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){l(!ht(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=o.useMemo((()=>({basename:c,navigator:a,static:i,future:{}})),[c,a,i]);"string"==typeof n&&(n=h(n));let{pathname:d="/",search:p="",hash:f="",state:m=null,key:g="default"}=n,v=o.useMemo((()=>{let e=F(d,c);return null==e?null:{location:{pathname:e,search:p,hash:f,state:m,key:g},navigationType:r}}),[c,d,p,f,m,g,r]);return u(null!=v,`<Router basename="${c}"> is not able to match the URL "${d}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(lt.Provider,{value:s},o.createElement(ut.Provider,{children:t,value:v}))}function Ut({children:e,location:t}){return wt(Vt(e),t)}o.Component;function Vt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Vt(e.props.children,a));l(e.type===Bt,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),l(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Vt(e.props.children,a)),n.push(i)})),n}var Yt="get",qt="application/x-www-form-urlencoded";function $t(e){return null!=e&&"string"==typeof e.tagName}var Gt=null;var Kt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qt(e){return null==e||Kt.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qt}"`),null)}function Xt(e,t){let n,r,o,a,i;if(function(e){return $t(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?F(i,t):null,n=e.getAttribute("method")||Yt,o=Qt(e.getAttribute("enctype"))||qt,a=new FormData(e)}else if(function(e){return $t(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return $t(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Yt,o=Qt(e.getAttribute("formenctype"))||Qt(i.getAttribute("enctype"))||qt,a=new FormData(i,e),!function(){if(null===Gt)try{new FormData(document.createElement("form"),0),Gt=!1}catch(e){Gt=!0}return Gt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if($t(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yt,r=null,o=qt,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function Jt(e){return{__html:e}}function Zt(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function en(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===F(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function tn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function nn(e){return null!=e&&"string"==typeof e.page}function rn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function on(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function an(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function cn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!nn(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function sn(e,t){return"lazy"===e.mode&&!0===t}function ln(){let e=o.useContext(rt);return Zt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function un(){let e=o.useContext(ot);return Zt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dn=o.createContext(void 0);function pn(){let e=o.useContext(dn);return Zt(e,"You must render this element inside a <HydratedRouter> element"),e}function fn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function hn(e,t,n){if(n&&!yn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}dn.displayName="FrameworkContext";function mn({page:e,...t}){let{router:n}=ln(),r=o.useMemo((()=>x(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(vn,{page:e,matches:r,...t}):null}function gn(e){let{manifest:t,routeModules:n}=pn(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return cn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await tn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(rn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}function vn({page:e,matches:t,...n}){let r=mt(),{manifest:a,routeModules:i}=pn(),{basename:c}=ln(),{loaderData:s,matches:l}=un(),u=o.useMemo((()=>on(e,t,l,a,r,"data")),[e,t,l,a,r]),d=o.useMemo((()=>on(e,t,l,a,r,"assets")),[e,t,l,a,r]),p=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in s&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let l=en(e,c,"data");return o&&n.size>0&&l.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[l.pathname+l.search]}),[c,s,r,a,u,t,e,i]),f=o.useMemo((()=>an(d,a)),[d,a]),h=gn(d);return o.createElement(o.Fragment,null,p.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),f.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}var yn=!1;function bn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:a,routeDiscovery:i,ssr:c}=pn(),{router:s,static:l,staticContext:u}=ln(),{matches:d}=un(),p=o.useContext(at),f=sn(i,c);a&&(a.didRenderScripts=!0);let h=hn(d,null,r);o.useEffect((()=>{0}),[]);let m=o.useMemo((()=>{if(p)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Zt(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=x(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Jt(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Jt(a),type:"module",async:!0}))}),[]),g=yn||p?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(an(h,t,{includeHydrateFallback:!0}))),v="object"==typeof t.sri?t.sri:{};return Rt(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),yn||p?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,f?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],suppressHydrationWarning:!0}))),m)}function wn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;function xn({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(G(e))return o.createElement(kn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),ft?r:null);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(kn,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function kn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=pn();return a.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(bn,null):null)))}var Sn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Sn&&(window.__reactRouterVersion="7.8.0")}catch(e){}function On(e,t){return le({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({window:t?.window}),hydrationData:t?.hydrationData||En(),routes:e,mapRouteProperties:Nt,hydrationRouteProperties:It,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function En(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Pn(e.errors)}),e}function Pn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new $(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var _n=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,An=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:c,target:s,to:d,preventScrollReset:p,viewTransition:h,...m},g){let v,{basename:y}=o.useContext(lt),b="string"==typeof d&&_n.test(d),w=!1;if("string"==typeof d&&b&&(v=d,Sn))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=F(t.pathname,y);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:w=!0}catch(e){u(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){l(ht(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(lt),{hash:a,pathname:i,search:c}=bt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:U([n,i])),r.createHref({pathname:s,search:c,hash:a})}(d,{relative:r}),[k,S,O]=function(e,t){let n=o.useContext(dn),[r,a]=o.useState(!1),[i,c]=o.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},m=()=>{a(!1),c(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:fn(s,h),onBlur:fn(l,m),onMouseEnter:fn(u,h),onMouseLeave:fn(d,m),onTouchStart:fn(p,h)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:c}={}){let s=yt(),l=mt(),u=bt(e,{relative:i});return o.useCallback((o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==n?n:f(l)===f(u);s(e,{replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:c})}}),[l,s,u,n,r,t,e,a,i,c])}(d,{replace:i,state:c,target:s,preventScrollReset:p,relative:r,viewTransition:h});let P=o.createElement("a",{...m,...O,href:v||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:wn(g,S),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?o.createElement(o.Fragment,null,P,o.createElement(mn,{page:x})):P}));An.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:c,children:s,...u},d){let p=bt(i,{relative:u.relative}),f=mt(),h=o.useContext(ot),{navigator:m,basename:g}=o.useContext(lt),v=null!=h&&function(e,{relative:t}={}){let n=o.useContext(it);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tn("useViewTransitionState"),a=bt(e,{relative:t});if(!n.isTransitioning)return!1;let i=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(a.pathname,c)||null!=N(a.pathname,i)}(p)&&!0===c,y=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=F(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,S=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),O=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:S,isPending:O,isTransitioning:v},P=S?e:void 0;k="function"==typeof n?n(E):[n,S?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof a?a(E):a;return o.createElement(An,{...u,"aria-current":P,className:k,ref:d,style:_,to:i,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var jn=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:c=Yt,action:s,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...m},g)=>{let v=Rn(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(lt),r=o.useContext(dt);l(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...bt(e||".",{relative:t})},c=mt();if(null==e){i.search=c.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:U([n,i.pathname]));return f(i)}(s,{relative:d}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&_n.test(s);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:i,relative:d,preventScrollReset:p,viewTransition:h})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function Cn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tn(e){let t=o.useContext(rt);return l(t,Cn(e)),t}jn.displayName="Form";var Dn=0,Mn=()=>`__${String(++Dn)}__`;function Rn(){let{router:e}=Tn("useSubmit"),{basename:t}=o.useContext(lt),n=jt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:c,formData:s,body:l}=Xt(r,t);if(!1===o.navigate){let t=o.fetcherKey||Mn();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const o={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return r(e,"download",!0)},addParameterToURL:r}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},32370:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(80658),o=n(29407);function a(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},32724:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>k,E9:()=>O,Fr:()=>P,HA:()=>p,Jg:()=>S,Ki:()=>E,QQ:()=>x,TA:()=>y,UT:()=>w,Ur:()=>c,V8:()=>l,VI:()=>g,Wt:()=>h,XS:()=>f,Zq:()=>i,es:()=>m,gh:()=>d,iY:()=>b,qJ:()=>a,tE:()=>s,tW:()=>u,uN:()=>v,uf:()=>o,vg:()=>r});var r="modelvalidation/START_VALIDATION",o="modelvalidation/RECEIVE_MESSAGE",a="modelvalidation/SET_TOTAL",i="modelvalidation/SET_CURRENT",c="modelvalidation/ADD_CHECK_EVENT",s="modelvalidation/SET_RESULT",l="modelvalidation/SET_SELECTED",u="modelvalidation/GENERATE_SQL",d="modelvalidation/SET_SQL",p="modelvalidation/EXECUTE_SQL",f="modelvalidation/GENERATE_CHANGELOG",h="modelvalidation/SET_CHANGELOG",m=function(){return{type:r}},g=function(e){var t=e.data;return{type:o,payload:{message:t}}},v=function(e){return{type:s,payload:{result:e}}},y=function(e){return{type:a,payload:{total:e}}},b=function(e,t,n){return{type:i,payload:{total:e,currentIndex:t,currentName:n}}},w=function(e,t,n){return{type:c,payload:{id:e,type:t,label:n}}},x=function(e,t){return{type:l,payload:{ids:e,selected:t}}},k=function(){return{type:u}},S=function(e){return{type:d,payload:{sql:e}}},O=function(e){return{type:p,payload:{close:e}}},E=function(){return{type:f}},P=function(e){return{type:h,payload:{changelog:e}}}},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},32865:e=>{e.exports=function(e){return e}},33090:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,s:()=>r});var r=function(){return"\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"},o=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"}},33150:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(4883),i=n.n(a),c=n(64116),s=n(69556),l=n(77271),u=n(1897),d=n(76242),p=n(74848);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m=i().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.title,i=e.icon,f=e.pending,m=e.look,g=void 0===m?l.A.look.FLAT:m,v=e.iconPosition,y=void 0===v?l.A.position.PREPEND:v,b=e.type,w=void 0===b?"button":b,x=e.iconOnly,k=e.children,S=e.labelVisibility,O=(0,u.j)().labelVisibility;return(0,p.jsxs)(d.Ay,h(h(h({ref:t},n),e),{},{ink:r||l.A.ink.BASE,"data-cy":e["data-cy"],title:a||o,labelVisibility:S||O,type:w,children:[i&&!f&&(0,p.jsx)(c.A,{icon:i}),f&&(0,p.jsx)(s.A,{ink:r||l.A.ink.BASE,look:g,position:y,size:"1em"}),!x&&o?(0,p.jsx)(d.Bd,{children:o}):k||"​"]}))}))},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},33694:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},33829:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var o,a=new Uint8Array(16);function i(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}for(var c=[],s=0;s<256;++s)c.push((s+256).toString(16).slice(1));function l(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();var o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return l(o)}},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},35412:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},35529:(e,t,n)=>{var r=n(39344),o=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},36193:(e,t,n)=>{e.exports=n(42381)()},36462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},36800:(e,t,n)=>{var r=n(75288),o=n(64894),a=n(30361),i=n(23805);e.exports=function(e,t,n){if(!i(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&a(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},36944:(e,t,n)=>{var r=n(73893)("round");e.exports=r},37167:(e,t,n)=>{var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,c=i?o(i):r;e.exports=c},37217:(e,t,n)=>{var r=n(80079),o=n(51420),a=n(90938),i=n(63605),c=n(29817),s=n(80945);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=c,l.prototype.set=s,e.exports=l},37241:(e,t,n)=>{var r=n(70695),o=n(72903),a=n(64894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},38221:(e,t,n)=>{var r=n(23805),o=n(10124),a=n(99374),i=Math.max,c=Math.min;e.exports=function(e,t,n){var s,l,u,d,p,f,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=l;return s=l=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||g&&e-h>=u}function w(){var e=o();if(b(e))return x(e);p=setTimeout(w,function(e){var n=t-(e-f);return g?c(n,u-(e-h)):n}(e))}function x(e){return p=void 0,v&&s?y(e):(s=l=void 0,d)}function k(){var e=o(),n=b(e);if(s=arguments,l=this,f=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(w,t),m?y(e):d}(f);if(g)return clearTimeout(p),p=setTimeout(w,t),y(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?i(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=f=l=p=void 0},k.flush=function(){return void 0===p?d:x(o())},k}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,c=Object(n);(t?i--:++i<a)&&!1!==o(c[i],i,c););return n}}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),a=n(86009),i=a&&a.isSet,c=i?o(i):r;e.exports=c},38798:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Kq:()=>u,ob:()=>d});var r=n(40622),o=n(4146),a=n.n(o),i=n(4883),c=n(24184);var s="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),l=s.Consumer,u=s.Provider,d=s;function p(e,t){var n,o=t||{},s=o.intlPropName,u=void 0===s?"intl":s,d=o.forwardRef,p=void 0!==d&&d,f=o.enforceContext,h=void 0===f||f,m=function(t){return i.createElement(l,null,(function(n){var o;h&&(0,c.HM)(n);var a=((o={})[u]=n,o);return i.createElement(e,(0,r.Cl)({},t,a,{ref:p?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,p?a()(i.forwardRef((function(e,t){return i.createElement(m,(0,r.Cl)({},e,{forwardedRef:t}))})),e):a()(m,e)}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),a=n(32865);e.exports=function(e){return a(o(e,void 0,r),e+"")}},38859:(e,t,n)=>{var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},39344:(e,t,n)=>{var r=n(23805),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},39892:(e,t,n)=>{var r=n(83712);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},40337:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(29407);function o(e,t){return(0,r.a)(e,t?.in).getHours()}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40443:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>b,J8:()=>m,PG:()=>y,jx:()=>g,oX:()=>h});var r,o,a,i,c,s,l=n(72189),u=n.n(l),d=n(51510),p=n(85431),f=n(57488),h=(0,d.AH)(r||(r=u()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),m=d.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(o||(o=u()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),h),g=(0,d.AH)(a||(a=u()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n /* Hide password reveal/clear buttons in MS browsers (Edge, IE) */\n &[type='password']::-ms-reveal,\n &[type='password']::-ms-clear {\n display: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; /* Safari fix */\n opacity: 1; /* iOS fix */\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n /* allow pointer event only on touch devices */\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,p.A)({color:f.t7.color("text")})}),f.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),v=(0,d.AH)(i||(i=u()(["\n display: flex;\n align-items: center;\n"]))),y=d.Ay.div.withConfig({displayName:"StyledEditableControl"})(c||(c=u()(["\n &&& {\n ","\n }\n"])),v),b=d.Ay.span.withConfig({displayName:"StyledEditableValue"})(s||(s=u()(["\n width: 100%;\n\n && {\n [type='url'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n [type='tel'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: text;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),f.t7.color("signal.danger"))},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,Tt:()=>i,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(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}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},40860:(e,t,n)=>{var r=n(40882),o=n(80909),a=n(15389),i=n(85558),c=n(56449);e.exports=function(e,t,n){var s=c(e)?r:i,l=arguments.length<3;return s(e,a(t,4),n,l,o)}},40882:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41224:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(56375),o=n(74848);const a=function(e){return e.breakWords?(0,o.jsx)(r.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,o.jsx)("br",{},t)]:e})))}):(0,o.jsx)(r.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,c=i,s=!a;if(null==e)return!c;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<c;){var u=(l=n[i])[0],d=e[u],p=l[1];if(s&&l[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(a)var h=a(d,p,u,e,t,f);if(!(void 0===h?o(p,d,3,a,f):h))return!1}}return!0}},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),a=n(15389),i=n(56449);e.exports=function(e,t){return function(n,c){var s=i(n)?r:o,l=t?t():{};return s(n,e,a(c,2),l)}}},42194:(e,t,n)=>{var r=n(15389),o=n(6048),a=n(71086);e.exports=function(e,t){return a(e,o(r(t)))}},42381:(e,t,n)=>{"use strict";var r=n(49374);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},42444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(4883)),o=i(n(87695)),a=i(n(81438));function i(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return function(){var t,n=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}var f,h,m,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,o,i=u(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,a=e.sectionKeyPrefix,i=n(t);return i?r.default.createElement("div",o("".concat(a,"title"),"sectionTitle"),i):null}}])&&l(t.prototype,n),o&&l(t,o),c}(r.Component);t.default=g,f=g,h="propTypes",m={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},h in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m},42656:(e,t,n)=>{"use strict";n.d(t,{A:()=>Qd});var r,o,a,i=n(26396),c=n.n(i),s=n(90179),l=n.n(s),u=n(62193),d=n.n(u),p=n(80015),f=n(62243),h=n.n(f),m=n(48268),g=n(44905),v=n(69556),y=n(56375),b=n(40443),w=n(85735),x=n.n(w),k=function(e){return-1*Math.abs(e)},S=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===x()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},O=n(72189),E=n.n(O),P=n(58156),_=n.n(P),A=n(51510),j=n(26166),C=n(57488),T=A.Ay.div.withConfig({displayName:"StyledLocationEdit"})(r||(r=E()(["\n && {\n ","\n position: relative;\n\n & > div {\n &:nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n &:nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__container {\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),b.oX,j.A.space(-2),j.A.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?_()(n,"colors.textDisabled"):_()(n,"colors.text")}),b.PG,b.jx,C.t7.color("paper"),C.t7.color("signal.info"),C.t7.color("secondaryLight"),C.t7.color("backgroundItemHover")),D=(0,A.Ay)(T).withConfig({displayName:"StyledAddressEdit"})(o||(o=E()(["\n && {\n & > div:nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n"]))),M=n(74848);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const I=function(e){var t,n=e.onChange,r=e.options,o=e.value,i=e.id,s=e.immutable,l=e.name,u=function(e){return function(t){return t[e]}},d=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},p=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=d(e),c=n?"- ".concat(n):"",s=null!=r&&r.display?"/ ".concat(r.display):"";return(0,M.jsxs)(y.Ay.Span,{children:[i,", ",o," ",a," ",c," ",s]})},f=function(e){var t,o=e.suggestion;!0===o.validationRequired?null===(t=r.validateLocation)||void 0===t||t.call(r,o,n):n(o)},w=function(e){var t,n=e.value,o=r.locationValues.country,a={street:n};null===(t=r.fetchSuggestions)||void 0===t||t.call(r,a,o)},x={id:i,value:o&&o.street?d(o):"",onChange:(t="street",function(e){var r=e.newValue;n(N(N({},o),{},c()({},t,r)))}),disabled:s,name:"address-line1",autocomplete:"street-address"};return(0,M.jsx)(m.A,{children:function(e){var t,n,o,i,c=e.getRef;return(0,M.jsxs)(D,{immutable:s,name:l,ref:c,children:[(0,M.jsx)(h(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:w,getSuggestionValue:u("street"),renderSuggestion:p,onSuggestionsClearRequested:function(){},inputProps:x,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return Boolean(e&&!s)}}),(0,M.jsxs)(b.PG,{children:[r.isLoading&&(a||(a=(0,M.jsx)(v.A,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,i=t.postcode,Boolean(n&&(o||i))&&(0,M.jsx)(g.A,{href:S(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var L=n(69843),F=n.n(L),H=n(21259),z=n.n(H),B=n(22056),W=n.n(B),U=n(7350),V=n.n(U),Y=n(4883),q=n.t(Y,2),$=n.n(Y),G=n(47029),K=n(2482),Q=n(35412),X=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var J=n(65166);function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=n(65710);function re(e,t){if(t&&("object"===(0,ne.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}var ae=n(77987);var ie=n(25134);function ce(e){return function(e){if(Array.isArray(e))return(0,ae.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,ie.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var se=n(60355),le=n(3834),ue=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function de(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||ue(r)&&ue(o)))return!1;var r,o;return!0}for(var pe={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},fe=function(e){return(0,le.Y)("span",(0,J.A)({css:pe},e))},he={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&l){var d=c?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},me=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,l=e.isAppleDevice,u=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,f=c.isMulti,h=c.isOptionDisabled,m=c.isSearchable,g=c.menuIsOpen,v=c.options,y=c.screenReaderStatus,b=c.tabSelectsValue,w=c.isLoading,x=c["aria-label"],k=c["aria-live"],S=(0,Y.useMemo)((function(){return(0,G.A)((0,G.A)({},he),u||{})}),[u]),O=(0,Y.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,l=a||r||(e=s,Array.isArray(e)?null:e),u=l?d(l):"",p=o||c||void 0,f=p?p.map(d):[],m=(0,G.A)({isDisabled:l&&h(l,i),label:u,labels:f},t);n=S.onChange(m)}return n}),[t,S,h,i,d]),E=(0,Y.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var c={focused:t,label:d(t),isDisabled:h(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:l};e=S.onFocus(c)}return e}),[n,r,d,h,S,o,i,l]),P=(0,Y.useMemo)((function(){var e="";if(g&&v.length&&!w&&S.onFilter){var t=y({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,S,v,y,w]),_="initial-input-focus"===(null==t?void 0:t.action),A=(0,Y.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,i),isMulti:f,isSearchable:m,tabSelectsValue:b,isInitialFocus:_})}return e}),[x,n,r,f,h,m,g,S,i,b,_]),j=(0,le.Y)(Y.Fragment,null,(0,le.Y)("span",{id:"aria-selection"},O),(0,le.Y)("span",{id:"aria-focused"},E),(0,le.Y)("span",{id:"aria-results"},P),(0,le.Y)("span",{id:"aria-guidance"},A));return(0,le.Y)(Y.Fragment,null,(0,le.Y)(fe,{id:s},_&&j),(0,le.Y)(fe,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&j))},ge=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ve=new RegExp("["+ge.map((function(e){return e.letters})).join("")+"]","g"),ye={},be=0;be<ge.length;be++)for(var we=ge[be],xe=0;xe<we.letters.length;xe++)ye[we.letters[xe]]=we.base;var ke=function(e){return e.replace(ve,(function(e){return ye[e]}))},Se=function(e,t){void 0===t&&(t=de);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(ke),Oe=function(e){return e.replace(/^\s+|\s+$/g,"")},Ee=function(e){return"".concat(e.label," ").concat(e.value)},Pe=["innerRef"];function _e(e){var t=e.innerRef,n=(0,Q.A)(e,Pe),r=(0,se.r)(n,"onExited","in","enter","exit","appear");return(0,le.Y)("input",(0,J.A)({ref:t},r,{css:(0,le.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ae=["boxSizing","height","overflow","paddingRight","position"],je={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ce(e){e.cancelable&&e.preventDefault()}function Te(e){e.stopPropagation()}function De(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Me(){return"ontouchstart"in window||navigator.maxTouchPoints}var Re=!("undefined"==typeof window||!window.document||!window.document.createElement),Ne=0,Ie={capture:!1,passive:!1};var Le=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Fe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function He(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,Y.useRef)(!1),c=(0,Y.useRef)(!1),s=(0,Y.useRef)(0),l=(0,Y.useRef)(null),u=(0,Y.useCallback)((function(e,t){if(null!==l.current){var s=l.current,u=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=l.current,h=t>0,m=d-p-u,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=d,g=!0,i.current=!0):!h&&-t>u&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),d=(0,Y.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,Y.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,Y.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),h=(0,Y.useCallback)((function(e){if(e){var t=!!se.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),m=(0,Y.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,Y.useEffect)((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,Y.useRef)({}),a=(0,Y.useRef)(null),i=(0,Y.useCallback)((function(e){if(Re){var t=document.body,n=t&&t.style;if(r&&Ae.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ne<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(je).forEach((function(e){var t=je[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Me()&&(t.addEventListener("touchmove",Ce,Ie),e&&(e.addEventListener("touchstart",De,Ie),e.addEventListener("touchmove",Te,Ie))),Ne+=1}}),[r]),c=(0,Y.useCallback)((function(e){if(Re){var t=document.body,n=t&&t.style;Ne=Math.max(Ne-1,0),r&&Ne<1&&Ae.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Me()&&(t.removeEventListener("touchmove",Ce,Ie),e&&(e.removeEventListener("touchstart",De,Ie),e.removeEventListener("touchmove",Te,Ie)))}}),[r]);return(0,Y.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return(0,le.Y)(Y.Fragment,null,n&&(0,le.Y)("div",{onClick:Le,css:Fe}),t((function(e){o(e),a(e)})))}var ze={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Be=function(e){var t=e.name,n=e.onFocus;return(0,le.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ze,value:"",onChange:function(){}})};function We(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ue(){return We(/^Mac/i)}function Ve(){return We(/^iPhone/i)||We(/^iPad/i)||Ue()&&navigator.maxTouchPoints>1}var Ye={clearIndicator:se.a,container:se.b,control:se.d,dropdownIndicator:se.e,group:se.g,groupHeading:se.f,indicatorsContainer:se.i,indicatorSeparator:se.h,input:se.j,loadingIndicator:se.l,loadingMessage:se.k,menu:se.m,menuList:se.n,menuPortal:se.o,multiValue:se.p,multiValueLabel:se.q,multiValueRemove:se.t,noOptionsMessage:se.u,option:se.v,placeholder:se.w,singleValue:se.x,valueContainer:se.y};var qe,$e={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ge={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,se.z)(),captureMenuScroll:!(0,se.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,G.A)({ignoreCase:!0,ignoreAccents:!0,stringify:Ee,trim:!0,matchFrom:"any"},qe),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?Oe(t):t,l=i?Oe(a(e)):a(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=Se(s),l=ke(l)),"start"===c?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,se.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ke(e,t,n,r){return{type:"option",data:t,isDisabled:rt(e,t,n),isSelected:ot(e,t,n),label:tt(e,t),value:nt(e,t),index:r}}function Qe(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ke(e,n,t,r)})).filter((function(t){return Ze(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Ke(e,n,t,r);return Ze(e,a)?a:void 0})).filter(se.K)}function Xe(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ce(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Je(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ce(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Ze(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!it(e)||!a)&&at(e,{label:i,value:c,data:o},r)}var et=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},tt=function(e,t){return e.getOptionLabel(t)},nt=function(e,t){return e.getOptionValue(t)};function rt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ot(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=nt(e,t);return n.some((function(t){return nt(e,t)===r}))}function at(e,t,n){return!e.filterOption||e.filterOption(t,n)}var it=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ct=1,st=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(a,e);var t,n,r,o=oe(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var l=t.getOptionValue(e);t.setValue((0,se.B)(i.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,se.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,se.B)([].concat(ce(i),[e])),"select-option",e):t.setValue((0,se.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=(0,se.D)(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,se.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=(0,se.D)(e,o,o[0]||null);r&&t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return et(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Je(Qe(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return se.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return tt(t.props,e)},t.getOptionValue=function(e){return nt(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Ye[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,se.F)(t.props)},t.buildCategorizedOptions=function(){return Qe(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Xe(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,G.A)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,se.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return it(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ct),t.state.selectValue=(0,se.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=et(n,r[i])}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,se.I)(this.menuListRef,this.focusedOptionRef),(Ue()||Ve())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,se.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($e):(0,G.A)((0,G.A)({},$e),this.props.theme):$e}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,l=c.isRtl,u=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return rt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ot(this.props,e,t)}},{key:"filterOption",value:function(e,t){return at(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,l=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),m=(0,G.A)((0,G.A)((0,G.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Y.createElement(l,(0,J.A)({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):Y.createElement(_e,(0,J.A)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:se.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,f=l.inputValue,h=l.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!u)return f?null:Y.createElement(c,(0,J.A)({},s,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Y.createElement(n,(0,J.A)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:d,key:l,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var b=g[0];return Y.createElement(i,(0,J.A)({},s,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(e,(0,J.A)({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?Y.createElement(e,(0,J.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return Y.createElement(n,(0,J.A)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(e,(0,J.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,E=p.noOptionsMessage,P=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!b)return null;var A,j=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=d===o,f=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:i};return Y.createElement(l,(0,J.A)({},u,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return Y.createElement(n,(0,J.A)({},u,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(m){var C=g({inputValue:h});if(null===C)return null;A=Y.createElement(c,u,C)}else{var T=E({inputValue:h});if(null===T)return null;A=Y.createElement(s,u,T)}var D={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:O},M=Y.createElement(se.M,(0,J.A)({},u,D),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return Y.createElement(o,(0,J.A)({},u,D,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),Y.createElement(He,{captureEnabled:f,onTopArrive:P,onBottomArrive:_,lockEnabled:S},(function(t){return Y.createElement(a,(0,J.A)({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:c,focusedOption:d}),A)})))}));return k||"fixed"===x?Y.createElement(i,(0,J.A)({},u,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return Y.createElement(Be,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return Y.createElement("input",{name:a,type:"hidden",value:s})}var l=c.length>0?c.map((function(t,n){return Y.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):Y.createElement("input",{name:a,type:"hidden",value:""});return Y.createElement("div",null,l)}var u=c[0]?this.getOptionValue(c[0]):"";return Y.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return Y.createElement(me,(0,J.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Y.createElement(r,(0,J.A)({},d,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),Y.createElement(t,(0,J.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:l}),Y.createElement(o,(0,J.A)({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(n,(0,J.A)({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=(0,se.H)(u),m={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Xe(Qe(e,t))}(e,h):[],v=d?Je(Qe(e,h),"".concat(s,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:et(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=a,k=i&&c;return i&&!k&&(x={value:(0,se.D)(f,h,h[0]||null),options:h,action:"initial-input-focus"},k=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),(0,G.A)((0,G.A)((0,G.A)({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:k})}}],n&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Y.Component);st.defaultProps=Ge;n(22900);var lt=n(81845),ut=n.n(lt),dt=(n(27003),(0,Y.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=(0,Q.A)(e,X),m=(0,Y.useState)(void 0!==c?c:n),g=(0,K.A)(m,2),v=g[0],y=g[1],b=(0,Y.useState)(void 0!==s?s:o),w=(0,K.A)(b,2),x=w[0],k=w[1],S=(0,Y.useState)(void 0!==f?f:i),O=(0,K.A)(S,2),E=O[0],P=O[1],_=(0,Y.useCallback)((function(e,t){"function"==typeof l&&l(e,t),P(e)}),[l]),A=(0,Y.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),y(void 0!==n?n:e)}),[u]),j=(0,Y.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),C=(0,Y.useCallback)((function(){"function"==typeof d&&d(),k(!1)}),[d]),T=void 0!==c?c:v,D=void 0!==s?s:x,M=void 0!==f?f:E;return(0,G.A)((0,G.A)({},h),{},{inputValue:T,menuIsOpen:D,onChange:_,onInputChange:A,onMenuClose:C,onMenuOpen:j,value:M})}(e);return Y.createElement(st,(0,J.A)({ref:t},n))}))),pt=dt;const ft={isSafari:function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},isPrimaryTouchDevice:n(81570).i};var ht=n(38798),mt=n(89387);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yt=(0,ht.Ay)((function(e){var t;return(0,M.jsx)("span",vt(vt({},e.innerProps),{},{children:(0,M.jsx)(mt.A,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var bt=n(1671);function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kt=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,M.jsx)(se.c.DropdownIndicator,xt(xt({},e),{},{children:(0,M.jsx)(bt.Jd,{children:(0,M.jsx)(mt.A,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var St,Ot,Et;function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},jt=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ct=function(e,t){return function(n){n.stopPropagation(),e(t)}},Tt=function(e){e.stopPropagation()};const Dt=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,l=t.value,u=t.isMulti,d=t.inputValue,p=u&&(c||i);return(0,M.jsx)(bt.qV,{isTopAligned:p,children:(0,M.jsxs)(se.c.IndicatorsContainer,_t(_t({},e),{},{children:[e.children,n&&!a&&(0,M.jsx)("span",{onTouchEnd:Tt,onMouseDown:jt(n,l),children:St||(St=(0,M.jsx)(mt.A,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,M.jsx)("span",{onTouchEnd:Tt,onMouseDown:At(r,d,l),children:Ot||(Ot=(0,M.jsx)(mt.A,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!a&&(0,M.jsx)("span",{onTouchEnd:Tt,onMouseDown:Ct(o,l),children:Et||(Et=(0,M.jsx)(mt.A,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Mt;const Rt=function(){return Mt||(Mt=(0,M.jsx)("span",{children:(0,M.jsx)(v.A,{size:"1.8rem"})}))};var Nt=n(44518);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ft=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,M.jsx)(bt.Ec,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,M.jsx)("div",{ref:e})},renderElement:function(o){return(0,M.jsx)("div",{ref:o,className:Nt.e,children:(0,M.jsx)(bt.jl,Lt(Lt({},l()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bt=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,M.jsxs)(se.c.MenuList,zt(zt({},e),{},{className:"MenuList",children:[n,r&&(0,M.jsx)(bt.iX,{children:o})]}))};var Wt=n(66779);const Ut=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=_()(a,t.key,null),l=(0,M.jsx)("span",{style:n.css,children:r}),u=c?(0,M.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,M.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,M.jsx)(p.A,{content:s?(0,M.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,M.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:l})})})}):l;return(0,M.jsx)(bt.fp,{children:u})};var Vt=n(85015),Yt=n.n(Vt),qt=n(42194),$t=n.n(qt),Gt=n(5556),Kt=n.n(Gt),Qt=n(23076);function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=["linkComp"],en=function(e,t){var n=Qt.A.difference(e,t),r=$t()(l()(n,Zt),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},tn=(0,Y.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Yt()(n)?(0,M.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,M.jsx)(t,{entityKey:n,children:r})}):r}),en);tn.propTypes={children:Kt().node,entityKey:Kt().any,linkComp:Kt().func};const nn=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=_()(a,t.key,null);return(0,M.jsx)(se.c.SingleValue,Jt(Jt({},e),{},{children:(0,M.jsx)(bt.EM,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,M.jsx)(p.A,{content:s?(0,M.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,M.jsx)(tn,{linkComp:c,entityKey:t.key,children:o})})})}))};function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var on=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const an=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,M.jsx)(se.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var l=Y.Children.map(r,(function(e){return on(e)?e:null})),u=Y.Children.map(r,(function(e){return on(e)?null:e})),d=s&&n;return(0,M.jsxs)(M.Fragment,{children:[!d&&(0,M.jsx)(M.Fragment,{children:l}),(0,M.jsx)(bt.NL,{children:u})]})};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ln=(0,A.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,l=e.noResultsText,u=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,x=e.openRemoteCreate,k=(0,Y.useRef)(null),S=(0,Y.useRef)(null),O=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},P=(0,Y.useState)(O()),_=W()(P,2),A=_[0],j=_[1],C=(0,Y.useState)(E()),T=W()(C,2),D=T[0],R=T[1],N=(0,Y.useState)(!1),I=W()(N,2),L=I[0],F=I[1],H=function(e){t&&t(e)},B=(0,Y.useCallback)(m||function(){},[]),U=(0,Y.useCallback)(V()(B,800,{trailing:!0}),[]),q=Boolean(f),$=Boolean(p),G=Boolean(w),K=Boolean(m)||!ft.isPrimaryTouchDevice();return(0,M.jsx)(bt.NR,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){j(O()),R(E())}),0)},children:(0,M.jsx)(bt.wO,{ref:S,children:(0,M.jsx)(pt,sn(sn({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:A,wrapperHeight:D,components:{ClearIndicator:yt,LoadingIndicator:Rt,DropdownIndicator:kt,IndicatorsContainer:Dt,IndicatorSeparator:null,Menu:Ft,MenuList:Bt,MultiValueLabel:Ut,SingleValue:nn,ValueContainer:an},noOptionsMessage:function(e){return l||("function"==typeof u?(0,M.jsx)(u,sn({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:K},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),H(e)},onInputChange:function(e,t){var n=t.action;m&&e&&U(e,y),""===e&&"input-change"===n&&H(y)},options:z()(h||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){H(y),F(!0)},onMenuClose:function(){F(!1)},styles:(0,bt.YC)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:$,openDocsTreeSearch:p,hasAdvancedSearch:q,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:G,createPermission:w,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const un=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,M.jsx)(ln,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:F()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var dn,pn=A.Ay.div.withConfig({displayName:"StyledBoolEdit"})(dn||(dn=E()(["\n margin: 5px 0;\n"])));const fn=function(e){var t=e.onChange,n=e.value,r=void 0!==n&&n,o=e.name,a=e.id,i=e.immutable;return(0,M.jsx)(pn,{children:(0,M.jsx)("input",{type:"checkbox",checked:r,name:o,onChange:function(e){t&&t(e.target.checked)},id:a,disabled:i})})};var hn,mn,gn=n(59182),vn=n(85431),yn=A.Ay.div.withConfig({displayName:"StyledOption"})(hn||(hn=E()(["\n display: flex;\n align-items: baseline;\n gap: ",";\n margin-block: ",";\n\n input {\n margin: 0;\n }\n"])),j.A.space(-1.5),j.A.space(-1)),bn=A.Ay.span.withConfig({displayName:"StyledLabel"})(mn||(mn=E()(["\n ","\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n"])),(0,vn.A)(),j.A.space(-1));function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn={single:"radio",multiple:"checkbox"},Sn={single:{checked:!1},multiple:{}},On=function(e,t){return t?(0,M.jsx)(gn.A,{value:e}):e},En=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,c=e.hideCheckbox,s=e.selectionType,l=e.renderHtmlInOptions,u=e.handleChange;return(0,M.jsxs)(yn,{children:[!c&&(0,M.jsx)("input",{name:t,type:kn[s||"single"],checked:a||!1,onChange:u,id:n,disabled:i,"data-cy":"choice-answer-option-".concat(n)}),(0,M.jsx)(bn,{children:o||On(r||"",l||!1)})]})};const Pn=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return xn(xn({},t),t.id===e.target.id?{checked:e.target.checked}:Sn[r.selectionType||"single"])}));t({options:o})}};return(0,M.jsx)(M.Fragment,{children:n.options.map((function(e){return(0,M.jsx)(En,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};var _n=n(50075);function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cn=(0,Y.lazy)((function(){return Promise.all([n.e(6528),n.e(3722)]).then(n.bind(n,65066))}));const Tn=function(e){return(0,M.jsx)(Y.Suspense,{fallback:(t=e.value,(0,M.jsx)("div",{children:(0,M.jsx)("p",{children:t})})),children:(0,M.jsx)(Cn,jn({},e))});var t};var Dn,Mn=A.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Dn||(Dn=E()(["\n margin-top: ",";\n"])),j.A.space(-1.5));const Rn=(0,A.SL)(_n.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,M.jsx)(Mn,{children:(0,M.jsx)(Tn,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Nn=n(6442),In=n(81792),Ln=n(39892),Fn=n.n(Ln),Hn=n(85072),zn=n.n(Hn),Bn=n(97825),Wn=n.n(Bn),Un=n(77659),Vn=n.n(Un),Yn=n(55056),qn=n.n(Yn),$n=n(10540),Gn=n.n($n),Kn=n(41113),Qn=n.n(Kn),Xn=n(2063),Jn={};Jn.styleTagTransform=Qn(),Jn.setAttributes=qn(),Jn.insert=Vn().bind(null,"head"),Jn.domAPI=Wn(),Jn.insertStyleElement=Gn();zn()(Xn.A,Jn);Xn.A&&Xn.A.locals&&Xn.A.locals;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)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function er(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zn(e))&&(r&&(r+=" "),r+=t);return r}var tr=n(61501),nr=n(43329),rr=n(29407);function or(e,t){const n=()=>(0,nr.w)(t?.in,NaN),r=t?.additionalDigits??2,o=function(e){const t={},n=e.split(ar.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ar.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ar.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=ar.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(o.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,r);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(ir);if(!n)return new Date(NaN);const r=!!n[4],o=lr(n[1]),a=lr(n[2])-1,i=lr(n[3]),c=lr(n[4]),s=lr(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dr[t]||(pr(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(pr(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return n();const i=+a;let c,s=0;if(o.time&&(s=function(e){const t=e.match(cr);if(!t)return NaN;const n=ur(t[1]),r=ur(t[2]),o=ur(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*tr.s0+r*tr.Cg+1e3*o}(o.time),isNaN(s)))return n();if(!o.timezone){const e=new Date(i+s),n=(0,rr.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return c=function(e){if("Z"===e)return 0;const t=e.match(sr);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*tr.s0+o*tr.Cg)}(o.timezone),isNaN(c)?n():(0,rr.a)(i+s+c,t?.in)}const ar={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ir=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,sr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lr(e){return e?parseInt(e):1}function ur(e){return e&&parseFloat(e.replace(",","."))||0}const dr=[31,null,31,30,31,30,31,31,30,31,30,31];function pr(e){return e%400==0||e%4==0&&e%100!=0}var fr=n(58646),hr=n(32370);function mr(e,t){return+(0,rr.a)(e)<+(0,rr.a)(t)}var gr=n(85577),vr=n(14533),yr=n(74279),br=n(81007),wr=n(72794),xr=n(6463),kr=n(80337);function Sr(e,t){const n=(0,rr.a)(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}var Or=n(70228);function Er(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function Pr(e,t){const n=(0,rr.a)(e,t?.in);return n.setHours(23,59,59,999),n}var _r=n(92516);function Ar(e,t){const n=(0,_r.q)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,rr.a)(e,t?.in),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function jr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}var Cr=n(5305);function Tr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Dr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Mr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return+Er(r)==+Er(o)}function Rr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return+(0,xr.o)(r)==+(0,xr.o)(o)}function Nr(e,t){return+(0,rr.a)(e)==+(0,rr.a)(t)}function Ir(e,t,n){const r=+(0,rr.a)(e,n?.in),[o,a]=[+(0,rr.a)(t.start,n?.in),+(0,rr.a)(t.end,n?.in)].sort(((e,t)=>e-t));return r>=o&&r<=a}function Lr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=(0,nr.w)(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Fr(e,t,n){const r=(0,rr.a)(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=(0,nr.w)(n?.in||e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const c=Lr(i);return r.setMonth(t,Math.min(a,c)),r}function Hr(e,t,n){const r=(0,rr.a)(e,n?.in),o=t-(Math.trunc(r.getMonth()/3)+1);return Fr(r,r.getMonth()+3*o)}function zr(e,t){return(0,rr.a)(e,t?.in).getFullYear()}function Br(e,t){return(0,rr.a)(e,t?.in).getMonth()}function Wr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ur(e,t){const n=(0,rr.a)(e,t?.in);return Math.trunc(n.getMonth()/3)+1}var Vr=n(2831),Yr=n(40337),qr=n(4155);function $r(e){return(0,rr.a)(e).getSeconds()}function Gr(e,t,n){const r=(0,rr.a)(e,n?.in);if(isNaN(t))return(0,nr.w)(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=(0,nr.w)(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);return o>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Kr(e,t,n){return Gr(e,-t,n)}function Qr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function Xr(e,t,n){return Gr(e,3*t,n)}function Jr(e,t,n){return Xr(e,-t,n)}function Zr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return 4*(r.getFullYear()-o.getFullYear())+(Ur(r)-Ur(o))}function eo(e,t,n){return Gr(e,12*t,n)}function to(e,t,n){return eo(e,-t,n)}function no(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return r.getFullYear()-o.getFullYear()}function ro(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}function oo(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}var ao=n(80658);function io(e,t,n){return(0,nr.w)(n?.in||e,+(0,rr.a)(e)+t)}function co(e,t,n){return io(e,t*tr.s0,n)}function so(e,t,n){const r=(0,rr.a)(e,n?.in);return r.setTime(r.getTime()+t*tr.Cg),r}function lo(e,t,n){return io(e,1e3*t,n)}function uo(e,t){return+(0,rr.a)(e)>+(0,rr.a)(t)}function po(e,t){return(0,rr.a)(e,t?.in).getDay()}function fo(e,t){return(0,rr.a)(e,t?.in).getDate()}var ho=n(16172);function mo(e,t,n){return(0,ho.f)(e,7*t,n)}function go(e){return+(0,rr.a)(e)}function vo(e,t,n){const r=(0,rr.a)(e,n?.in);return isNaN(+r)?(0,nr.w)(n?.in||e,NaN):(r.setFullYear(t),r)}function yo(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t),a=bo(r,o),i=Math.abs((0,Vr.m)(r,o));r.setDate(r.getDate()-a*i);const c=a*(i-Number(bo(r,o)===-a));return 0===c?0:c}function bo(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function wo(e,t,n){return mo(e,-t,n)}function xo(e,t,n){return(0,ho.f)(e,-t,n)}function ko(){return"undefined"!=typeof window}function So(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Oo(e){return!!ko()&&(e instanceof Element||e instanceof So(e).Element)}function Eo(e){return So(e).getComputedStyle(e)}const Po=Math.min,_o=Math.max,Ao=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),jo={start:"end",end:"start"};function Co(e,t){return"function"==typeof e?e(t):e}function To(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function Mo(e){return"y"===e?"height":"width"}function Ro(e){return["top","bottom"].includes(To(e))?"y":"x"}function No(e){return"x"===Ro(e)?"y":"x"}function Io(e){return e.replace(/start|end/g,(e=>jo[e]))}function Lo(e){return e.replace(/left|right|bottom|top/g,(e=>Ao[e]))}function Fo(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ho(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zo(e,t,n){let{reference:r,floating:o}=e;const a=Ro(t),i=No(t),c=Mo(i),s=To(t),l="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Do(t)){case"start":f[i]-=p*(n&&l?-1:1);break;case"end":f[i]+=p*(n&&l?-1:1)}return f}async function Bo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:c,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Co(t,e),h=Fo(f),m=c[p?"floating"===d?"reference":"floating":d],g=Ho(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:s})),v="floating"===d?{...i.floating,x:r,y:o}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=Ho(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const Wo=Math.min,Uo=Math.max,Vo=Math.round,Yo=Math.floor,qo=e=>({x:e,y:e});function $o(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function Go(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ko(e){var t;return null==(t=(Qo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qo(e){return e instanceof Node||e instanceof Go(e).Node}function Xo(e){return e instanceof Element||e instanceof Go(e).Element}function Jo(e){return e instanceof HTMLElement||e instanceof Go(e).HTMLElement}function Zo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Go(e).ShadowRoot)}function ea(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ia(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ta(e){return["table","td","th"].includes($o(e))}function na(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ra(e){const t=oa(),n=Xo(e)?ia(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function oa(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function aa(e){return["html","body","#document"].includes($o(e))}function ia(e){return Go(e).getComputedStyle(e)}function ca(e){return Xo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sa(e){if("html"===$o(e))return e;const t=e.assignedSlot||e.parentNode||Zo(e)&&e.host||Ko(e);return Zo(t)?t.host:t}function la(e){const t=sa(e);return aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jo(t)&&ea(t)?t:la(t)}function ua(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=la(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Go(o);return a?t.concat(i,i.visualViewport||[],ea(o)?o:[],i.frameElement&&n?ua(i.frameElement):[]):t.concat(o,ua(o,[],n))}function da(e){const t=ia(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Vo(n)!==a||Vo(r)!==i;return c&&(n=a,r=i),{width:n,height:r,$:c}}function pa(e){return Xo(e)?e:e.contextElement}function fa(e){const t=pa(e);if(!Jo(t))return qo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=da(t);let i=(a?Vo(n.width):n.width)/r,c=(a?Vo(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),c&&Number.isFinite(c)||(c=1),{x:i,y:c}}const ha=qo(0);function ma(e){const t=Go(e);return oa()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ha}function ga(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=pa(e);let i=qo(1);t&&(r?Xo(r)&&(i=fa(r)):i=fa(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Go(e))&&t}(a,n,r)?ma(a):qo(0);let s=(o.left+c.x)/i.x,l=(o.top+c.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Go(a),t=r&&Xo(r)?Go(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=fa(o),t=o.getBoundingClientRect(),r=ia(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,u*=e.x,d*=e.y,s+=a,l+=i,n=Go(o),o=n.frameElement}}return Ho({width:u,height:d,x:s,y:l})}function va(e){return ga(Ko(e)).left+ca(e).scrollLeft}function ya(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Go(e),r=Ko(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,c=0,s=0;if(o){a=o.width,i=o.height;const e=oa();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:c,y:s}}(e,n);else if("document"===t)r=function(e){const t=Ko(e),n=ca(e),r=e.ownerDocument.body,o=Uo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Uo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+va(e);const c=-n.scrollTop;return"rtl"===ia(r).direction&&(i+=Uo(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:c}}(Ko(e));else if(Xo(t))r=function(e,t){const n=ga(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Jo(e)?fa(e):qo(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ma(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ho(r)}function ba(e,t){const n=sa(e);return!(n===t||!Xo(n)||aa(n))&&("fixed"===ia(n).position||ba(n,t))}function wa(e,t,n){const r=Jo(t),o=Ko(t),a="fixed"===n,i=ga(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const s=qo(0);if(r||!r&&!a)if(("body"!==$o(t)||ea(o))&&(c=ca(t)),r){const e=ga(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=va(o));return{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function xa(e){return"static"===ia(e).position}function ka(e,t){return Jo(e)&&"fixed"!==ia(e).position?t?t(e):e.offsetParent:null}function Sa(e,t){const n=Go(e);if(na(e))return n;if(!Jo(e)){let t=sa(e);for(;t&&!aa(t);){if(Xo(t)&&!xa(t))return t;t=sa(t)}return n}let r=ka(e,t);for(;r&&ta(r)&&xa(r);)r=ka(r,t);return r&&aa(r)&&xa(r)&&!ra(r)?n:r||function(e){let t=sa(e);for(;Jo(t)&&!aa(t);){if(ra(t))return t;if(na(t))return null;t=sa(t)}return null}(e)||n}const Oa={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Ko(r),c=!!t&&na(t.floating);if(r===i||c&&a)return n;let s={scrollLeft:0,scrollTop:0},l=qo(1);const u=qo(0),d=Jo(r);if((d||!d&&!a)&&(("body"!==$o(r)||ea(i))&&(s=ca(r)),Jo(r))){const e=ga(r);l=fa(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+u.x,y:n.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:Ko,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?na(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ua(e,[],!1).filter((e=>Xo(e)&&"body"!==$o(e))),o=null;const a="fixed"===ia(e).position;let i=a?sa(e):e;for(;Xo(i)&&!aa(i);){const t=ia(i),n=ra(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ea(i)&&!n&&ba(e,i))?r=r.filter((e=>e!==i)):o=t,i=sa(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],c=a.reduce(((e,n)=>{const r=ya(t,n,o);return e.top=Uo(r.top,e.top),e.right=Wo(r.right,e.right),e.bottom=Wo(r.bottom,e.bottom),e.left=Uo(r.left,e.left),e}),ya(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Sa,getElementRects:async function(e){const t=this.getOffsetParent||Sa,n=this.getDimensions,r=await n(e.floating);return{reference:wa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=da(e);return{width:t,height:n}},getScale:fa,isElement:Xo,isRTL:function(e){return"rtl"===ia(e).direction}};function Ea(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=pa(e),u=o||a?[...l?ua(l):[],...ua(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=l&&c?function(e,t){let n,r=null;const o=Ko(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),a();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const f={rootMargin:-Yo(u)+"px "+-Yo(o.clientWidth-(l+d))+"px "+-Yo(o.clientHeight-(u+p))+"px "+-Yo(l)+"px",threshold:Uo(0,Wo(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(l,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!s&&h.observe(l),h.observe(t));let m=s?ga(e):null;return s&&function t(){const r=ga(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}const Pa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=To(n),c=Do(n),s="y"===Ro(n),l=["left","top"].includes(i)?-1:1,u=a&&s?-1:1,d=Co(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof h&&(f="end"===c?-1*h:h),s?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return i===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},_a=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:c,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Co(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=To(o),y=To(c)===c,b=await(null==s.isRTL?void 0:s.isRTL(l.floating)),w=p||(y||!m?[Lo(c)]:function(e){const t=Lo(e);return[Io(e),t,Io(t)]}(c));p||"none"===h||w.push(...function(e,t,n,r){const o=Do(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(To(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(Io)))),a}(c,m,h,b));const x=[c,...w],k=await Bo(t,g),S=[];let O=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&S.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Do(e),o=No(e),a=Mo(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Lo(i)),[i,Lo(i)]}(o,i,b);S.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,P;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var _;const e=null==(_=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Aa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:c,middlewareData:s}=t,{element:l,padding:u=0}=Co(e,t)||{};if(null==l)return{};const d=Fo(u),p={x:n,y:r},f=No(o),h=Mo(f),m=await i.getDimensions(l),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[f]-p[f]-a.floating[h],x=p[f]-a.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=k?k[b]:0;S&&await(null==i.isElement?void 0:i.isElement(k))||(S=c.floating[b]||a.floating[h]);const O=w/2-x/2,E=S/2-m[h]/2-1,P=Po(d[v],E),_=Po(d[y],E),A=P,j=S-m[h]-_,C=S/2-m[h]/2+O,T=_o(A,Po(C,j));const D=!s.arrow&&null!=Do(o)&&C!==T&&a.reference[h]/2-(C<A?P:_)-m[h]/2<0,M=D?C<A?C-A:C-j:0;return{[f]:p[f]+M,data:{[f]:T,centerOffset:C-T-M,...D&&{alignmentOffset:M}},reset:D}}}),ja=(e,t,n)=>{const r=new Map,o={platform:Oa,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,c=a.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zo(l,r,s),p=r,f={},h=0;for(let n=0;n<c.length;n++){const{name:a,fn:m}=c[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:l,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[a]:{...f[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=zo(l,p,s))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})};var Ca="undefined"!=typeof document?Y.useLayoutEffect:Y.useEffect;function Ta(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ta(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ta(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Da(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ma(e,t){const n=Da(e);return Math.round(t*n)/n}function Ra(e){const t=Y.useRef(e);return Ca((()=>{t.current=e})),t}const Na=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Aa({element:n.current,padding:r}).fn(t):{}:n?Aa({element:n,padding:r}).fn(t):{};var o}}),Ia=(e,t)=>({...Pa(e),options:[e,t]}),La=(e,t)=>({..._a(e),options:[e,t]}),Fa=(e,t)=>({...Na(e),options:[e,t]});const Ha={...q},za=Ha.useInsertionEffect||(e=>e());function Ba(e){const t=Y.useRef((()=>{0}));return za((()=>{t.current=e})),Y.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Wa="ArrowUp",Ua="ArrowDown",Va="ArrowLeft",Ya="ArrowRight";var qa="undefined"!=typeof document?Y.useLayoutEffect:Y.useEffect;const $a=[Va,Ya],Ga=[Wa,Ua];let Ka=!1,Qa=0;const Xa=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qa++;const Ja=Ha.useId||function(){const[e,t]=Y.useState((()=>Ka?Xa():void 0));return qa((()=>{null==e&&t(Xa())}),[]),Y.useEffect((()=>{Ka=!0}),[]),e};const Za=Y.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:c=7,tipRadius:s=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...h}={},...m}=e;const g=Ja(),[v,y]=Y.useState(!1);if(qa((()=>{if(!r)return;"rtl"===Eo(r).direction&&y(!0)}),[r]),!r)return null;const[b,w]=n.split("-"),x="top"===b||"bottom"===b;let k=u;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(k=null);const S=2*l,O=S/2,E=i/2*(s/-8+1),P=c/2*s/4,_=!!p,A=k&&"end"===w?"bottom":"top";let j=k&&"end"===w?"right":"left";k&&v&&(j="end"===w?"left":"right");const C=null!=(null==o?void 0:o.x)?k||o.x:"",T=null!=(null==o?void 0:o.y)?k||o.y:"",D=p||"M0,0 H"+i+" L"+(i-E)+","+(c-P)+" Q"+i/2+","+c+" "+E+","+(c-P)+" Z",R={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[b];return(0,M.jsxs)("svg",{...m,"aria-hidden":!0,ref:t,width:_?i:i+S,height:i,viewBox:"0 0 "+i+" "+(c>i?c:i),style:{position:"absolute",pointerEvents:"none",[j]:C,[A]:T,[b]:x||_?"100%":"calc(100% - "+S/2+"px)",transform:[R,f].filter((e=>!!e)).join(" "),...h},children:[S>0&&(0,M.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(p?0:1),d:D}),(0,M.jsx)("path",{stroke:S&&!p?m.fill:"none",d:D}),(0,M.jsx)("clipPath",{id:g,children:(0,M.jsx)("rect",{x:-O,y:O*(_?-1:1),width:i+S,height:i})})]})}));function ei(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const ti=Y.createContext(null),ni=Y.createContext(null),ri=()=>{var e;return(null==(e=Y.useContext(ti))?void 0:e.id)||null},oi=()=>Y.useContext(ni);function ai(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ja(),a=Y.useRef({}),[i]=Y.useState((()=>ei())),c=null!=ri(),[s,l]=Y.useState(r.reference),u=Ba(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),d=Y.useMemo((()=>({setPositionReference:l})),[]),p=Y.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);return Y.useMemo((()=>({dataRef:a,open:t,onOpenChange:u,elements:p,events:i,floatingId:o,refs:d})),[t,u,p,i,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=Y.useState(null),[c,s]=Y.useState(null),l=(null==o?void 0:o.domReference)||a,u=Y.useRef(null),d=oi();qa((()=>{l&&(u.current=l)}),[l]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:s,open:l}=e,[u,d]=Y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=Y.useState(r);Ta(p,r)||f(r);const[h,m]=Y.useState(null),[g,v]=Y.useState(null),y=Y.useCallback((e=>{e!==k.current&&(k.current=e,m(e))}),[]),b=Y.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=a||h,x=i||g,k=Y.useRef(null),S=Y.useRef(null),O=Y.useRef(u),E=null!=s,P=Ra(s),_=Ra(o),A=Ra(l),j=Y.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),ja(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};C.current&&!Ta(O.current,t)&&(O.current=t,lt.flushSync((()=>{d(t)})))}))}),[p,t,n,_,A]);Ca((()=>{!1===l&&O.current.isPositioned&&(O.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const C=Y.useRef(!1);Ca((()=>(C.current=!0,()=>{C.current=!1})),[]),Ca((()=>{if(w&&(k.current=w),x&&(S.current=x),w&&x){if(P.current)return P.current(w,x,j);j()}}),[w,x,j,P,E]);const T=Y.useMemo((()=>({reference:k,floating:S,setReference:y,setFloating:b})),[y,b]),D=Y.useMemo((()=>({reference:w,floating:x})),[w,x]),M=Y.useMemo((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Ma(D.floating,u.x),r=Ma(D.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Da(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,D.floating,u.x,u.y]);return Y.useMemo((()=>({...u,update:j,refs:T,elements:D,floatingStyles:M})),[u,j,T,D,M])}({...e,elements:{...o,...c&&{reference:c}}}),f=Y.useCallback((e=>{const t=Oo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),p.refs.setReference(t)}),[p.refs]),h=Y.useCallback((e=>{(Oo(e)||null===e)&&(u.current=e,i(e)),(Oo(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Oo(e))&&p.refs.setReference(e)}),[p.refs]),m=Y.useMemo((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u})),[p.refs,h,f]),g=Y.useMemo((()=>({...p.elements,domReference:l})),[p.elements,l]),v=Y.useMemo((()=>({...p,...r,refs:m,elements:g,nodeId:t})),[p,m,g,t,r]);return qa((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Y.useMemo((()=>({...p,context:v,refs:m,elements:g})),[p,m,g,v])}
46
+ */function s(e={}){return m((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:f(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function f({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,u=f();function f(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=f(),t=null==e?null:e-u;u=e,l&&l({action:s,location:v.location,delta:t})}function m(e){return g(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let v={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(c,h),l=e,()=>{o.removeEventListener(c,h),l=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=p(v.location,e,t);n&&n(r,e),u=f()+1;let c=d(r,u),h=v.createHref(r);try{i.pushState(c,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}a&&l&&l({action:s,location:v.location,delta:1})},replace:function(e,t){s="REPLACE";let r=p(v.location,e,t);n&&n(r,e),u=f();let o=d(r,u),c=v.createHref(r);i.replaceState(o,"",c),a&&l&&l({action:s,location:v.location,delta:0})},go:e=>i.go(e)};return v}function g(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),l(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:f(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var v=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,o),e)for(let[t,n]of e)this.set(t,n)}get(e){if(i(this,r).has(e))return i(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){i(this,r).set(e,t)}};r=new WeakMap;var y=new Set(["lazy","caseSensitive","path","id","index","children"]);var b=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function w(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:c};return r[c]=n,n}{let n={...e,...t(e),id:c,children:void 0};return r[c]=n,e.children&&(n.children=w(e.children,t,i,r,o)),n}}))}function x(e,t,n="/"){return k(e,t,n,!1)}function k(e,t,n,r){let o=F(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let a=O(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=L(o);i=R(a[e],t,r)}return i}function S(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function O(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let c=U([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),O(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:M(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=E(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var P=/^:[\w-]+$/,_=3,A=2,j=1,C=10,T=-2,D=e=>"*"===e;function M(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=T),t&&(r+=A),n.filter((e=>!D(e))).reduce(((e,t)=>e+(P.test(t)?_:""===t?j:C)),r)}function R(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=N({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:U([a,u.pathname]),pathnameBase:V(U([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return i}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e,t=!1,n=!0){u("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B(e){let t=z(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function W(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},l(!o.pathname||!o.pathname.includes("?"),H("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),H("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),H("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?h(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:Y(r),hash:q(o)}}(o,a),u=c&&"/"!==c&&c.endsWith("/"),d=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!d||(s.pathname+="/"),s}var U=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var $=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function G(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var K=["POST","PUT","PATCH","DELETE"],Q=new Set(K),X=["GET",...K],J=new Set(X),Z=new Set([301,302,303,307,308]),ee=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=e=>oe.test(e),ie=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions",se=Symbol("ResetLoaderData");function le(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;l(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,a,i=e.hydrationRouteProperties||[],c=e.mapRouteProperties||ie,s={},d=w(e.routes,c,void 0,s),f=e.basename||"/",h=e.dataStrategy||xe,m={unstable_middleware:!1,...e.future},y=null,b=new Set,O=null,E=null,P=null,_=null!=e.hydrationData,A=x(d,e.history.location,f),j=!1,C=null;if(null!=A||e.patchRoutesOnNavigation){if(A&&!e.hydrationData){rt(A,d,e.history.location.pathname).active&&(A=null)}if(A)if(A.some((e=>e.route.lazy)))o=!1;else if(A.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=A.findIndex((e=>void 0!==n[e.route.id]));o=A.slice(0,e+1).every((e=>!fe(e.route,t,n)))}else o=A.every((e=>!fe(e.route,t,n)))}else o=!0;else{o=!1,A=[];let t=rt(null,d,e.history.location.pathname);t.active&&t.matches&&(j=!0,A=t.matches)}}else{let t=Be(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ze(d);o=!0,A=n,C={[r.id]:t}}let T,D,M={historyAction:e.history.action,location:e.history.location,matches:A,initialized:o,navigation:te,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},R="POP",N=!1,I=!1,L=new Map,H=null,z=!1,B=!1,W=new Set,U=new Map,V=0,Y=-1,q=new Map,$=new Set,K=new Map,Q=new Map,X=new Set,J=new Map,Z=null;function oe(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=s[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),M={...M,...e};let n=[],r=[];M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?n.push(t):r.push(t))})),X.forEach((e=>{M.fetchers.has(e)||U.has(e)||n.push(e)})),[...b].forEach((e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Oe(e))),r.forEach((e=>M.fetchers.delete(e)))}function se(t,n,{flushSync:o}={}){let a,i=null!=M.actionData&&null!=M.navigation.formMethod&&Qe(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?M.actionData:null;let c=n.loaderData?Le(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,s=M.blockers;s.size>0&&(s=new Map(s),s.forEach(((e,t)=>s.set(t,re))));let l,u=!z&&Xe(t,n.matches||M.matches),p=!0===N||null!=M.navigation.formMethod&&Qe(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(d=r,r=void 0),z||"POP"===R||("PUSH"===R?e.history.push(t,t.state):"REPLACE"===R&&e.history.replace(t,t.state)),"POP"===R){let e=L.get(M.location.pathname);e&&e.has(t.pathname)?l={currentLocation:M.location,nextLocation:t}:L.has(t.pathname)&&(l={currentLocation:t,nextLocation:M.location})}else if(I){let e=L.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),L.set(M.location.pathname,e)),l={currentLocation:M.location,nextLocation:t}}oe({...n,actionData:a,loaderData:c,historyAction:R,location:t,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:u,preventScrollReset:p,blockers:s},{viewTransitionOpts:l,flushSync:!0===o}),R="POP",N=!1,I=!1,z=!1,B=!1,Z?.resolve(),Z=null}async function le(t,n,o){T&&T.abort(),T=null,R=t,z=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(O&&P){let n=Ke(e,t);O[n]=P()}}(M.location,M.matches),N=!0===(o&&o.preventScrollReset),I=!0===(o&&o.enableViewTransition);let a=r||d,l=o&&o.overrideNavigation,u=o?.initialHydration&&M.matches&&M.matches.length>0&&!j?M.matches:x(a,n,f),p=!0===(o&&o.flushSync);if(u&&M.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(o&&o.submission&&Qe(o.submission.formMethod)))return void se(n,{matches:u},{flushSync:p});let h=rt(u,a,n.pathname);if(h.active&&h.matches&&(u=h.matches),!u){let{error:e,notFoundMatches:t,route:r}=Ge(n.pathname);return void se(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}T=new AbortController;let m,g=De(e.history,n,T.signal,o&&o.submission),y=e.unstable_getContext?await e.unstable_getContext():new v;if(o&&o.pendingError)m=[He(u).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Qe(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,l,u={}){be();let d,p=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(oe({navigation:p},{flushSync:!0===u.flushSync}),a){let n=await ot(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=He(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=Ge(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let h=Je(r,t);if(h.route.action||h.route.lazy){let t=_e(c,s,e,r,h,l?[]:i,o),n=await ve(e,t,o,null);if(d=n[h.route.id],!d)for(let e of r)if(n[e.route.id]){d=n[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else d={type:"error",error:Be(405,{method:e.method,pathname:t.pathname,routeId:h.route.id})};if(qe(d)){let t;if(u&&null!=u.replace)t=u.replace;else{t=Te(d.response.headers.get("Location"),new URL(e.url),f)===M.location.pathname+M.location.search}return await ge(e,d,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ye(d)){let e=He(r,h.route.id);return!0!==(u&&u.replace)&&(R="PUSH"),{matches:r,pendingActionResult:[e.route.id,d,h.route.id]}}return{matches:r,pendingActionResult:[h.route.id,d]}}(g,n,o.submission,u,y,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ye(r)&&G(r.error)&&404===r.error.status)return T=null,void se(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}u=t.matches||u,m=t.pendingActionResult,l=et(n,o.submission),p=!1,h.active=!1,g=De(e.history,g.url,g.signal)}let{shortCircuited:b,matches:w,loaderData:k,errors:S}=await async function(t,n,o,a,l,u,p,h,m,g,v,y){let b=u||et(n,p),w=p||h||Ze(b),x=!z&&!g;if(l){if(x){let e=he(y);oe({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await ot(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=He(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ge(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=r||d,{dsMatches:S,revalidatingFetchers:O}=pe(t,a,c,s,e.history,M,o,w,n,g?[]:i,!0===g,B,W,X,K,$,k,f,null!=e.patchRoutesOnNavigation,y);if(Y=++V,!e.dataStrategy&&!S.some((e=>e.shouldLoad))&&!S.some((e=>e.route.unstable_middleware))&&0===O.length){let e=Me();return se(n,{matches:o,loaderData:{},errors:y&&Ye(y[1])?{[y[0]]:y[1].error}:null,...Fe(y),...e?{fetchers:new Map(M.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(x){let e={};if(!l){e.navigation=b;let t=he(y);void 0!==t&&(e.actionData=t)}O.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),n=tt(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)})),new Map(M.fetchers)}(O)),oe(e,{flushSync:v})}O.forEach((e=>{Ee(e.key),e.controller&&U.set(e.key,e.controller)}));let E=()=>O.forEach((e=>Ee(e.key)));T&&T.signal.addEventListener("abort",E);let{loaderResults:P,fetcherResults:_}=await ye(S,O,t,a);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",E);O.forEach((e=>U.delete(e.key)));let A=We(P);if(A)return await ge(t,A.result,!0,{replace:m}),{shortCircuited:!0};if(A=We(_),A)return $.add(A.key),await ge(t,A.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:j,errors:C}=Ie(M,o,P,y,O,_);g&&M.errors&&(C={...M.errors,...C});let D=Me(),R=Re(Y),N=D||R||O.length>0;return{matches:o,loaderData:j,errors:C,...N?{fetchers:new Map(M.fetchers)}:{}}}(g,n,u,y,h.active,l,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m);b||(T=null,se(n,{matches:w||u,...Fe(m),loaderData:k,errors:S}))}function he(e){return e&&!Ye(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function ge(e,r,o,{submission:a,fetcherSubmission:i,preventScrollReset:c,replace:s}={}){r.response.headers.has("X-Remix-Revalidate")&&(B=!0);let u=r.response.headers.get("Location");l(u,"Expected a Location header on the redirect Response"),u=Te(u,new URL(e.url),f);let d=p(M.location,u,{_isRedirect:!0});if(n){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(ae(u)){const n=g(u,!0);e=n.origin!==t.location.origin||null==F(n.pathname,f)}if(e)return void(s?t.location.replace(u):t.location.assign(u))}T=null;let h=!0===s||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:m,formAction:v,formEncType:y}=M.navigation;!a&&!i&&m&&v&&y&&(a=Ze(M.navigation));let b=a||i;if(ee.has(r.response.status)&&b&&Qe(b.formMethod))await le(h,d,{submission:{...b,formAction:u},preventScrollReset:c||N,enableViewTransition:o?I:void 0});else{let e=et(d,a);await le(h,d,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:c||N,enableViewTransition:o?I:void 0})}}async function ve(e,t,n,r){let o,a={};try{o=await Ae(h,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;for(let[n,r]of Object.entries(o))if(Ve(r)){let o=r.result;a[n]={type:"redirect",response:Ce(o,e,n,t,f)}}else a[n]=await je(r);return a}async function ye(e,t,n,r){let o=ve(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ve(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:Be(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function be(){B=!0,K.forEach(((e,t)=>{U.has(t)&&W.add(t),Ee(t)}))}function we(e,t,n={}){M.fetchers.set(e,t),oe({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function ke(e,t,n,r={}){let o=He(M.matches,t);Oe(e),oe({errors:{[o.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Se(e){return Q.set(e,(Q.get(e)||0)+1),X.has(e)&&X.delete(e),M.fetchers.get(e)||ne}function Oe(e){let t=M.fetchers.get(e);!U.has(e)||t&&"loading"===t.state&&q.has(e)||Ee(e),K.delete(e),q.delete(e),$.delete(e),X.delete(e),W.delete(e),M.fetchers.delete(e)}function Ee(e){let t=U.get(e);t&&(t.abort(),U.delete(e))}function Pe(e){for(let t of e){let e=nt(Se(t).data);M.fetchers.set(t,e)}}function Me(){let e=[],t=!1;for(let n of $){let r=M.fetchers.get(n);l(r,`Expected fetcher: ${n}`),"loading"===r.state&&($.delete(n),e.push(n),t=!0)}return Pe(e),t}function Re(e){let t=[];for(let[n,r]of q)if(r<e){let e=M.fetchers.get(n);l(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ee(n),q.delete(n),t.push(n))}return Pe(t),t.length>0}function Ne(e){M.blockers.delete(e),J.delete(e)}function Ue(e,t){let n=M.blockers.get(e)||re;l("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),oe({blockers:r})}function $e({currentLocation:e,nextLocation:t,historyAction:n}){if(0===J.size)return;J.size>1&&u(!1,"A router only supports one blocker at a time");let r=Array.from(J.entries()),[o,a]=r[r.length-1],i=M.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ge(e){let t=Be(404,{pathname:e}),n=r||d,{matches:o,route:a}=ze(n);return{notFoundMatches:o,route:a,error:t}}function Ke(e,t){if(E){return E(e,t.map((e=>S(e,M.loaderData))))||e.key}return e.key}function Xe(e,t){if(O){let n=Ke(e,t),r=O[n];if("number"==typeof r)return r}return null}function rt(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:k(n,r,f,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:k(n,r,f,!0)}}}return{active:!1,matches:null}}async function ot(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let i=t;for(;;){let t=null==r,l=r||d,u=s;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:i,fetcherKey:a,patch:(e,t)=>{o.aborted||me(e,t,l,u,c,!1)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{t&&!o.aborted&&(d=[...d])}if(o.aborted)return{type:"aborted"};let p=x(l,n,f);if(p)return{type:"success",matches:p};let h=k(l,n,f,!0);if(!h||i.length===h.length&&i.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};i=h}}return a={get basename(){return f},get future(){return m},get state(){return M},get routes(){return d},get window(){return t},initialize:function(){if(y=e.history.listen((({action:t,location:n,delta:r})=>{if(D)return D(),void(D=void 0);u(0===J.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=$e({currentLocation:M.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{D=e}));return e.history.go(-1*r),void Ue(o,{state:"blocked",location:n,proceed(){Ue(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(M.blockers);e.set(o,re),oe({blockers:e})}})}return le(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ce);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,L);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(n))}catch(e){u(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,L);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return M.initialized||le("POP",M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,P=t,E=n||null,!_&&M.navigation===te){_=!0;let e=Xe(M.location,M.matches);null!=e&&oe({restoreScrollPosition:e})}return()=>{O=null,P=null,E=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ue(M.location,M.matches,f,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=de(!1,o,r),s=M.location,l=p(M.location,a,r&&r.state);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,d="PUSH";!0===u?d="REPLACE":!1===u||null!=i&&Qe(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(d="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=$e({currentLocation:s,nextLocation:l,historyAction:d});g?Ue(g,{state:"blocked",location:l,proceed(){Ue(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(M.blockers);e.set(g,re),oe({blockers:e})}}):await le(d,l,{submission:i,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Ee(t);let u=!0===(a&&a.flushSync),p=r||d,h=ue(M.location,M.matches,f,o,n,a?.relative),m=x(p,h,f),g=rt(m,p,h);if(g.active&&g.matches&&(m=g.matches),!m)return void ke(t,n,Be(404,{pathname:h}),{flushSync:u});let{path:y,submission:b,error:w}=de(!0,h,a);if(w)return void ke(t,n,w,{flushSync:u});let k=e.unstable_getContext?await e.unstable_getContext():new v,S=!0===(a&&a.preventScrollReset);b&&Qe(b.formMethod)?await async function(t,n,o,a,u,p,h,m,g){be(),K.delete(t);let v=M.fetchers.get(t);we(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,v),{flushSync:h});let y=new AbortController,b=De(e.history,o,y.signal,g);if(p){let e=await ot(a,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ke(t,n,e.error,{flushSync:h});if(!e.matches)return void ke(t,n,Be(404,{pathname:o}),{flushSync:h});a=e.matches}let w=Je(a,o);if(!w.route.action&&!w.route.lazy){let e=Be(405,{method:g.formMethod,pathname:o,routeId:n});return void ke(t,n,e,{flushSync:h})}U.set(t,y);let k=V,S=_e(c,s,b,a,w,i,u),O=await ve(b,S,u,t),E=O[w.route.id];if(b.signal.aborted)return void(U.get(t)===y&&U.delete(t));if(X.has(t)){if(qe(E)||Ye(E))return void we(t,nt(void 0))}else{if(qe(E))return U.delete(t),Y>k?void we(t,nt(void 0)):($.add(t),we(t,tt(g)),ge(b,E,!1,{fetcherSubmission:g,preventScrollReset:m}));if(Ye(E))return void ke(t,n,E.error)}let P=M.navigation.location||M.location,_=De(e.history,P,y.signal),A=r||d,j="idle"!==M.navigation.state?x(A,M.navigation.location,f):M.matches;l(j,"Didn't find any matches after fetcher action");let C=++V;q.set(t,C);let D=tt(g,E.data);M.fetchers.set(t,D);let{dsMatches:N,revalidatingFetchers:I}=pe(_,u,c,s,e.history,M,j,g,P,i,!1,B,W,X,K,$,A,f,null!=e.patchRoutesOnNavigation,[w.route.id,E]);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=M.fetchers.get(t),r=tt(void 0,n?n.data:void 0);M.fetchers.set(t,r),Ee(t),e.controller&&U.set(t,e.controller)})),oe({fetchers:new Map(M.fetchers)});let L=()=>I.forEach((e=>Ee(e.key)));y.signal.addEventListener("abort",L);let{loaderResults:F,fetcherResults:H}=await ye(N,I,_,u);if(y.signal.aborted)return;if(y.signal.removeEventListener("abort",L),q.delete(t),U.delete(t),I.forEach((e=>U.delete(e.key))),M.fetchers.has(t)){let e=nt(E.data);M.fetchers.set(t,e)}let z=We(F);if(z)return ge(_,z.result,!1,{preventScrollReset:m});if(z=We(H),z)return $.add(z.key),ge(_,z.result,!1,{preventScrollReset:m});let{loaderData:G,errors:Q}=Ie(M,j,F,void 0,I,H);Re(C),"loading"===M.navigation.state&&C>Y?(l(R,"Expected pending action"),T&&T.abort(),se(M.navigation.location,{matches:j,loaderData:G,errors:Q,fetchers:new Map(M.fetchers)})):(oe({errors:Q,loaderData:Le(M.loaderData,G,j,Q),fetchers:new Map(M.fetchers)}),B=!1)}(t,n,y,m,k,g.active,u,S,b):(K.set(t,{routeId:n,path:y}),await async function(t,n,r,o,a,l,u,d,p){let f=M.fetchers.get(t);we(t,tt(p,f?f.data:void 0),{flushSync:u});let h=new AbortController,m=De(e.history,r,h.signal);if(l){let e=await ot(o,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void ke(t,n,e.error,{flushSync:u});if(!e.matches)return void ke(t,n,Be(404,{pathname:r}),{flushSync:u});o=e.matches}let g=Je(o,r);U.set(t,h);let v=V,y=_e(c,s,m,o,g,i,a),b=await ve(m,y,a,t),w=b[g.route.id];U.get(t)===h&&U.delete(t);if(m.signal.aborted)return;if(X.has(t))return void we(t,nt(void 0));if(qe(w))return Y>v?void we(t,nt(void 0)):($.add(t),void await ge(m,w,!1,{preventScrollReset:d}));if(Ye(w))return void ke(t,n,w.error);we(t,nt(w.data))}(t,n,y,m,k,g.active,u,S,b))},revalidate:function(){Z||(Z=function(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),be(),oe({revalidation:"loading"});let e=Z.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(le(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(le(R||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===I}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Se,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),X.add(e)):Q.set(e,t),oe({fetchers:new Map(M.fetchers)})},dispose:function(){y&&y(),H&&H(),b.clear(),T&&T.abort(),M.fetchers.forEach(((e,t)=>Oe(t))),M.blockers.forEach(((e,t)=>Ne(t)))},getBlocker:function(e,t){let n=M.blockers.get(e)||re;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ne,patchRoutes:function(e,t,n=!1){let o=null==r;me(e,t,r||d,s,c,n),o&&(d=[...d],oe({}))},_internalFetchControllers:U,_internalSetRoutes:function(e){s={},r=w(e,c,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){oe(e)}},a}function ue(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=W(r||".",B(i),F(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=Xe(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:U([e,t])}({basename:n,pathname:s.pathname})),f(s)}function de(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!Ke(n.formMethod))return{path:t,error:Be(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Be(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=Ue(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Qe(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Qe(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Me(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Me(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Re(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Re(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Qe(s.formMethod))return{path:t,submission:s};let u=h(t);return e&&u.search&&Xe(u.search)&&r.append("index",""),u.search=`?${r}`,{path:f(u),submission:s}}function pe(e,t,n,r,o,a,i,c,s,l,u,d,p,f,h,m,g,v,y,b){let w,k=b?Ye(b[1])?b[1].error:b[1].data:void 0,S=o.createURL(a.location),O=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];w=i.findIndex((t=>t.route.id===e))}else if(b&&Ye(b[1])){let e=b[0];w=i.findIndex((t=>t.route.id===e))-1}let E=b?b[1].statusCode:void 0,P=E&&E>=400,_={currentUrl:S,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...c,actionResult:k,actionStatus:E},A=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=w&&i>w?s=!1:c.lazy?s=!0:null==c.loader?s=!1:u?s=fe(c,a.loaderData,a.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(a.loaderData,a.matches[i],o)&&(s=!0),null!==s)return Pe(n,r,e,o,l,t,s);let p=!P&&(d||S.pathname+S.search===O.pathname+O.search||S.search!==O.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o)),f={..._,defaultShouldRevalidate:p},h=he(o,f);return Pe(n,r,e,o,l,t,h,f)})),j=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=x(g,e.path,v);if(!b){if(y&&h)return;return void j.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let w=Je(b,e.path),k=new AbortController,S=De(o,e.path,k.signal),O=null;if(p.has(c))p.delete(c),O=_e(n,r,S,b,w,l,t);else if(h)d&&(O=_e(n,r,S,b,w,l,t));else{let e={..._,defaultShouldRevalidate:!P&&d};he(w,e)&&(O=_e(n,r,S,b,w,l,t,e))}O&&j.push({key:c,routeId:e.routeId,path:e.path,matches:O,match:w,request:S,controller:k})})),{dsMatches:A,revalidatingFetchers:j}}function fe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function he(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function me(e,t,n,r,o,a){let i;if(e){let t=r[e];l(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>ge(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=w(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=w([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>ge(e,t))))))}var ve=new WeakMap,ye=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(l(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=ve.get(o);i||(i={},ve.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return y.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)u(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)u(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},be=new WeakMap;async function we(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function xe(e){if(!e.matches.some((e=>e.route.unstable_middleware)))return we(e);let t=!1;return Se(e,(()=>(t=!0,we(e))),((n,r)=>ke(n,r,e.matches,t)))}function ke(e,t,n,r){if(r)return{[t]:{type:"error",result:e}};{let r=He(n,n.find((e=>e.route.id===t||e.route.loader))?.route.id||t).route.id;return{[r]:{type:"error",result:e}}}}async function Se(e,t,n){let{matches:r,request:o,params:a,context:i}=e,c=r.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),s={};return await Oe({request:o,params:a,context:i},c,t,n,s),s}async function Oe(e,t,n,r,o={},a=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let c=t[a];if(!c){let e=await n();return void Object.assign(o,e)}let[s,l]=c,u=!1,d=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0;try{let i=await Oe(e,t,n,r,o,a+1);Object.assign(o,i)}catch(e){let t=await r(e,s);Object.assign(o,t)}};try{let t=await l({request:e.request,params:e.params,context:e.context},d);void 0!==t&&console.warn("client middlewares are not intended to return values, the value will be ignored",t),u||await d()}catch(e){let t=await r(e,s);Object.assign(o,t)}}function Ee(e,t,n,r,o){let a=ye({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(l(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=be.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{l("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,b.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?u(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?u(!c,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return be.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=ye({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let d=s.length>0?Promise.all(s).then((()=>{})):void 0;return d?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:d,lazyHandlerPromise:i}}(r.route,Qe(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Pe(e,t,n,r,o,a,i,c=null){let s=!1,l=Ee(e,t,n,r,o);return{...r,_lazyPromises:l,shouldLoad:i,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:e=>(s=!0,c?he(r,"boolean"==typeof e?{...c,defaultShouldRevalidate:e}:c):i),resolve:e=>s||i||e&&!Qe(n.method)&&(r.route.lazy||r.route.loader)?async function({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,c,s=Qe(e.method),l=s?"action":"loader",u=n=>{let r,i=new Promise(((e,t)=>r=t));c=()=>r(),e.signal.addEventListener("abort",c);let s=r=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${t.route.id}]`)):n({request:e,params:t.params,context:a},...void 0!==r?[r]:[]),u=(async()=>{try{return{type:"data",result:await(o?o((e=>s(e))):s())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,i])};try{let o=s?t.route.action:t.route.loader;if(n||r)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),n,r]);if(void 0!==e)throw e;i=t}else{await n;let o=s?t.route.action:t.route.loader;if(!o){if("action"===l){let n=new URL(e.url),r=n.pathname+n.search;throw Be(405,{method:e.method,pathname:r,routeId:t.route.id})}return{type:"data",result:void 0}}[i]=await Promise.all([u(o),r])}else{if(!o){let t=new URL(e.url);throw Be(404,{pathname:t.pathname+t.search})}i=await u(o)}}catch(e){return{type:"error",result:e}}finally{c&&e.signal.removeEventListener("abort",c)}return i}({request:n,match:r,lazyHandlerPromise:l?.handler,lazyRoutePromise:l?.route,handlerOverride:e,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}function _e(e,t,n,r,o,a,i,c=null){return r.map((r=>r.route.id!==o.route.id?{...r,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:Ee(e,t,n,r,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Pe(e,t,n,r,a,i,!0,c)))}async function Ae(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,params:n[0].params,context:o,matches:n},c=a?()=>{throw new Error("You cannot call `unstable_runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=i,o=!1;return Se(t,(()=>(o=!0,e({...t,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}))),((e,t)=>ke(e,t,n,o)))},s=await e({...i,fetcherKey:r,unstable_runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function je(e){let{result:t,type:n}=e;if(Ge(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new $(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?$e(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new $(t.init?.status||500,void 0,t.data),statusCode:G(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:G(t)?t.status:void 0}:$e(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ce(e,t,n,r,o){let a=e.headers.get("Location");if(l(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ae(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ue(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Te(e,t,n){if(ae(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=F(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function De(e,t,n,r){let o=e.createURL(Ue(t)).toString(),a={signal:n};if(r&&Qe(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Me(r.formData):a.body=r.formData}return new Request(o,a)}function Me(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Re(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ne(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,u={},d=n&&Ye(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(l(!qe(f),"Cannot handle redirect results in processLoaderData"),Ye(f)){let t=f.error;if(void 0!==d&&(t=d,d=void 0),c=c||{},o)c[p]=t;else{let n=He(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[p]=se),s||(s=!0,a=G(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else i[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(u[p]=f.headers)})),void 0!==d&&n&&(c={[n[0]]:d},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:u}}function Ie(e,t,n,r,o,a){let{loaderData:i,errors:c}=Ne(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(l(i,"Did not find corresponding fetcher result"),Ye(i)){let t=He(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(qe(i))l(!1,"Unhandled fetcher revalidation redirect");else{let t=nt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Le(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==se)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Fe(e){return e?Ye(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function He(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function ze(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Be(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new $(e||500,i,new Error(c),!0)}function We(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(qe(r))return{key:n,result:r}}}function Ue(e){return f({..."string"==typeof e?h(e):e,hash:""})}function Ve(e){return Ge(e.result)&&Z.has(e.result.status)}function Ye(e){return"error"===e.type}function qe(e){return"redirect"===(e&&e.type)}function $e(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ge(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ke(e){return J.has(e.toUpperCase())}function Qe(e){return Q.has(e.toUpperCase())}function Xe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Je(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Xe(n||""))return e[e.length-1];let r=z(e);return r[r.length-1]}function Ze(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function et(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var rt=o.createContext(null);rt.displayName="DataRouter";var ot=o.createContext(null);ot.displayName="DataRouterState";var at=o.createContext(!1);var it=o.createContext({isTransitioning:!1});it.displayName="ViewTransition";var ct=o.createContext(new Map);ct.displayName="Fetchers";var st=o.createContext(null);st.displayName="Await";var lt=o.createContext(null);lt.displayName="Navigation";var ut=o.createContext(null);ut.displayName="Location";var dt=o.createContext({outlet:null,matches:[],isDataRoute:!1});dt.displayName="Route";var pt=o.createContext(null);pt.displayName="RouteError";var ft=!0;function ht(){return null!=o.useContext(ut)}function mt(){return l(ht(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(ut).location}var gt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vt(e){o.useContext(lt).static||o.useLayoutEffect(e)}function yt(){let{isDataRoute:e}=o.useContext(dt);return e?function(){let{router:e}=_t("useNavigate"),t=jt("useNavigate"),n=o.useRef(!1);return vt((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{u(n.current,gt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){l(ht(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(rt),{basename:t,navigator:n}=o.useContext(lt),{matches:r}=o.useContext(dt),{pathname:a}=mt(),i=JSON.stringify(B(r)),c=o.useRef(!1);return vt((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(u(c.current,gt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=W(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:U([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function bt(e,{relative:t}={}){let{matches:n}=o.useContext(dt),{pathname:r}=mt(),a=JSON.stringify(B(n));return o.useMemo((()=>W(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function wt(e,t,n,r){l(ht(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=o.useContext(lt),{matches:i}=o.useContext(dt),c=i[i.length-1],s=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",f=c&&c.route;if(ft){let e=f&&f.path||"";Dt(d,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let m,g=mt();if(t){let e="string"==typeof t?h(t):t;l("/"===p||e.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),m=e}else m=g;let v=m.pathname||"/",y=v;if("/"!==p){let e=p.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=x(e,{pathname:y});ft&&(u(f||null!=b,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),u(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let w=Et(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:U([p,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:U([p,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&w?o.createElement(ut.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},w):w}function xt(){let e=Ct(),t=G(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return ft&&(console.error("Error handled by React Router default ErrorBoundary:",e),c=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,c)}var kt=o.createElement(xt,null),St=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(dt.Provider,{value:this.props.routeContext},o.createElement(pt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ot({routeContext:e,match:t,children:n}){let r=o.useContext(rt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(dt.Provider,{value:e},n)}function Et(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,i=n?.errors;if(null!=i){let e=a.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,a=s>=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight(((e,r,l)=>{let u,d=!1,p=null,f=null;n&&(u=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||kt,c&&(s<0&&0===l?(Dt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===l&&(d=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?p:d?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(Ot,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(St,{location:n.location,revalidation:n.revalidation,component:p,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function Pt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _t(e){let t=o.useContext(rt);return l(t,Pt(e)),t}function At(e){let t=o.useContext(ot);return l(t,Pt(e)),t}function jt(e){let t=function(e){let t=o.useContext(dt);return l(t,Pt(e)),t}(e),n=t.matches[t.matches.length-1];return l(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ct(){let e=o.useContext(pt),t=At("useRouteError"),n=jt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Tt={};function Dt(e,t,n){t||Tt[e]||(Tt[e]=!0,u(!1,n))}var Mt={};function Rt(e,t){e||Mt[t]||(Mt[t]=!0,console.warn(t))}function Nt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(ft&&e.element&&u(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(ft&&e.hydrateFallbackElement&&u(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(ft&&e.errorElement&&u(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var It=["HydrateFallback","hydrateFallbackElement"];var Lt=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function Ft({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[a,i]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[l,u]=o.useState(),[d,p]=o.useState(),[f,h]=o.useState(),m=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:a,flushSync:c,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&m.current.set(t,e.data)})),a.forEach((e=>m.current.delete(e))),Rt(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let g=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Rt(null==f||g,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),f&&g){if(t&&c){t((()=>{d&&(l&&l.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{u(void 0),p(void 0),i(void 0),s({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(l&&l.resolve(),d.skipTransition(),h({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(i(n),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,l]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&u(new Lt)}),[c]),o.useEffect((()=>{if(l&&a&&e.window){let t=a,n=l.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{u(void 0),p(void 0),i(void 0),s({isTransitioning:!1})})),p(c)}}),[a,l,e.window]),o.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,d,n.location,a]),o.useEffect((()=>{!c.isTransitioning&&f&&(i(f.state),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),h(void 0))}),[c.isTransitioning,f]);let v=o.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",b=o.useMemo((()=>({router:e,navigator:v,static:!1,basename:y})),[e,v,y]);return o.createElement(o.Fragment,null,o.createElement(rt.Provider,{value:b},o.createElement(ot.Provider,{value:n},o.createElement(ct.Provider,{value:m.current},o.createElement(it.Provider,{value:c},o.createElement(Wt,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Ht,{routes:e.routes,future:e.future,state:n})))))),null)}var Ht=o.memo((function({routes:e,future:t,state:n}){return wt(e,void 0,n,t)}));function zt({to:e,replace:t,state:n,relative:r}){l(ht(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(lt);u(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=o.useContext(dt),{pathname:c}=mt(),s=yt(),d=W(e,B(i),c,"path"===r),p=JSON.stringify(d);return o.useEffect((()=>{s(JSON.parse(p),{replace:t,state:n,relative:r})}),[s,p,r,t,n]),null}function Bt(e){l(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Wt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){l(!ht(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=o.useMemo((()=>({basename:c,navigator:a,static:i,future:{}})),[c,a,i]);"string"==typeof n&&(n=h(n));let{pathname:d="/",search:p="",hash:f="",state:m=null,key:g="default"}=n,v=o.useMemo((()=>{let e=F(d,c);return null==e?null:{location:{pathname:e,search:p,hash:f,state:m,key:g},navigationType:r}}),[c,d,p,f,m,g,r]);return u(null!=v,`<Router basename="${c}"> is not able to match the URL "${d}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(lt.Provider,{value:s},o.createElement(ut.Provider,{children:t,value:v}))}function Ut({children:e,location:t}){return wt(Vt(e),t)}o.Component;function Vt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Vt(e.props.children,a));l(e.type===Bt,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),l(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Vt(e.props.children,a)),n.push(i)})),n}var Yt="get",qt="application/x-www-form-urlencoded";function $t(e){return null!=e&&"string"==typeof e.tagName}var Gt=null;var Kt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qt(e){return null==e||Kt.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qt}"`),null)}function Xt(e,t){let n,r,o,a,i;if(function(e){return $t(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?F(i,t):null,n=e.getAttribute("method")||Yt,o=Qt(e.getAttribute("enctype"))||qt,a=new FormData(e)}else if(function(e){return $t(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return $t(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Yt,o=Qt(e.getAttribute("formenctype"))||Qt(i.getAttribute("enctype"))||qt,a=new FormData(i,e),!function(){if(null===Gt)try{new FormData(document.createElement("form"),0),Gt=!1}catch(e){Gt=!0}return Gt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if($t(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yt,r=null,o=qt,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function Jt(e){return{__html:e}}function Zt(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function en(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===F(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function tn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function nn(e){return null!=e&&"string"==typeof e.page}function rn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function on(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function an(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function cn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!nn(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function sn(e,t){return"lazy"===e.mode&&!0===t}function ln(){let e=o.useContext(rt);return Zt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function un(){let e=o.useContext(ot);return Zt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dn=o.createContext(void 0);function pn(){let e=o.useContext(dn);return Zt(e,"You must render this element inside a <HydratedRouter> element"),e}function fn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function hn(e,t,n){if(n&&!yn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}dn.displayName="FrameworkContext";function mn({page:e,...t}){let{router:n}=ln(),r=o.useMemo((()=>x(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(vn,{page:e,matches:r,...t}):null}function gn(e){let{manifest:t,routeModules:n}=pn(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return cn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await tn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(rn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}function vn({page:e,matches:t,...n}){let r=mt(),{manifest:a,routeModules:i}=pn(),{basename:c}=ln(),{loaderData:s,matches:l}=un(),u=o.useMemo((()=>on(e,t,l,a,r,"data")),[e,t,l,a,r]),d=o.useMemo((()=>on(e,t,l,a,r,"assets")),[e,t,l,a,r]),p=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in s&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let l=en(e,c,"data");return o&&n.size>0&&l.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[l.pathname+l.search]}),[c,s,r,a,u,t,e,i]),f=o.useMemo((()=>an(d,a)),[d,a]),h=gn(d);return o.createElement(o.Fragment,null,p.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),f.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}var yn=!1;function bn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:a,routeDiscovery:i,ssr:c}=pn(),{router:s,static:l,staticContext:u}=ln(),{matches:d}=un(),p=o.useContext(at),f=sn(i,c);a&&(a.didRenderScripts=!0);let h=hn(d,null,r);o.useEffect((()=>{0}),[]);let m=o.useMemo((()=>{if(p)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Zt(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=x(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Jt(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Jt(a),type:"module",async:!0}))}),[]),g=yn||p?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(an(h,t,{includeHydrateFallback:!0}))),v="object"==typeof t.sri?t.sri:{};return Rt(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),yn||p?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,f?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],suppressHydrationWarning:!0}))),m)}function wn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;function xn({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(G(e))return o.createElement(kn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),ft?r:null);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(kn,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function kn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=pn();return a.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(bn,null):null)))}var Sn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Sn&&(window.__reactRouterVersion="7.8.0")}catch(e){}function On(e,t){return le({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({window:t?.window}),hydrationData:t?.hydrationData||En(),routes:e,mapRouteProperties:Nt,hydrationRouteProperties:It,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function En(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Pn(e.errors)}),e}function Pn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new $(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var _n=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,An=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:c,target:s,to:d,preventScrollReset:p,viewTransition:h,...m},g){let v,{basename:y}=o.useContext(lt),b="string"==typeof d&&_n.test(d),w=!1;if("string"==typeof d&&b&&(v=d,Sn))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=F(t.pathname,y);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:w=!0}catch(e){u(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){l(ht(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(lt),{hash:a,pathname:i,search:c}=bt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:U([n,i])),r.createHref({pathname:s,search:c,hash:a})}(d,{relative:r}),[k,S,O]=function(e,t){let n=o.useContext(dn),[r,a]=o.useState(!1),[i,c]=o.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},m=()=>{a(!1),c(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:fn(s,h),onBlur:fn(l,m),onMouseEnter:fn(u,h),onMouseLeave:fn(d,m),onTouchStart:fn(p,h)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:c}={}){let s=yt(),l=mt(),u=bt(e,{relative:i});return o.useCallback((o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==n?n:f(l)===f(u);s(e,{replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:c})}}),[l,s,u,n,r,t,e,a,i,c])}(d,{replace:i,state:c,target:s,preventScrollReset:p,relative:r,viewTransition:h});let P=o.createElement("a",{...m,...O,href:v||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:wn(g,S),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?o.createElement(o.Fragment,null,P,o.createElement(mn,{page:x})):P}));An.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:c,children:s,...u},d){let p=bt(i,{relative:u.relative}),f=mt(),h=o.useContext(ot),{navigator:m,basename:g}=o.useContext(lt),v=null!=h&&function(e,{relative:t}={}){let n=o.useContext(it);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tn("useViewTransitionState"),a=bt(e,{relative:t});if(!n.isTransitioning)return!1;let i=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=N(a.pathname,c)||null!=N(a.pathname,i)}(p)&&!0===c,y=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=F(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,S=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),O=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:S,isPending:O,isTransitioning:v},P=S?e:void 0;k="function"==typeof n?n(E):[n,S?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof a?a(E):a;return o.createElement(An,{...u,"aria-current":P,className:k,ref:d,style:_,to:i,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var jn=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:c=Yt,action:s,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...m},g)=>{let v=Rn(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(lt),r=o.useContext(dt);l(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...bt(e||".",{relative:t})},c=mt();if(null==e){i.search=c.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:U([n,i.pathname]));return f(i)}(s,{relative:d}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&_n.test(s);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:i,relative:d,preventScrollReset:p,viewTransition:h})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function Cn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tn(e){let t=o.useContext(rt);return l(t,Cn(e)),t}jn.displayName="Form";var Dn=0,Mn=()=>`__${String(++Dn)}__`;function Rn(){let{router:e}=Tn("useSubmit"),{basename:t}=o.useContext(lt),n=jt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:c,formData:s,body:l}=Xt(r,t);if(!1===o.navigate){let t=o.fetcherKey||Mn();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:l,formMethod:o.method||i,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const o={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return r(e,"download",!0)},addParameterToURL:r}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},32370:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(80658),o=n(29407);function a(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},32724:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>k,E9:()=>O,Fr:()=>P,HA:()=>p,Jg:()=>S,Ki:()=>E,QQ:()=>x,TA:()=>y,UT:()=>w,Ur:()=>c,V8:()=>l,VI:()=>g,Wt:()=>h,XS:()=>f,Zq:()=>i,es:()=>m,gh:()=>d,iY:()=>b,qJ:()=>a,tE:()=>s,tW:()=>u,uN:()=>v,uf:()=>o,vg:()=>r});var r="modelvalidation/START_VALIDATION",o="modelvalidation/RECEIVE_MESSAGE",a="modelvalidation/SET_TOTAL",i="modelvalidation/SET_CURRENT",c="modelvalidation/ADD_CHECK_EVENT",s="modelvalidation/SET_RESULT",l="modelvalidation/SET_SELECTED",u="modelvalidation/GENERATE_SQL",d="modelvalidation/SET_SQL",p="modelvalidation/EXECUTE_SQL",f="modelvalidation/GENERATE_CHANGELOG",h="modelvalidation/SET_CHANGELOG",m=function(){return{type:r}},g=function(e){var t=e.data;return{type:o,payload:{message:t}}},v=function(e){return{type:s,payload:{result:e}}},y=function(e){return{type:a,payload:{total:e}}},b=function(e,t,n){return{type:i,payload:{total:e,currentIndex:t,currentName:n}}},w=function(e,t,n){return{type:c,payload:{id:e,type:t,label:n}}},x=function(e,t){return{type:l,payload:{ids:e,selected:t}}},k=function(){return{type:u}},S=function(e){return{type:d,payload:{sql:e}}},O=function(e){return{type:p,payload:{close:e}}},E=function(){return{type:f}},P=function(e){return{type:h,payload:{changelog:e}}}},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},32865:e=>{e.exports=function(e){return e}},33090:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,s:()=>r});var r=function(){return"\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"},o=function(){return"\n hyphens: auto;\n overflow-wrap: break-word;\n white-space: normal;\n word-wrap: break-word;\n"}},33150:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(4883),i=n.n(a),c=n(64116),s=n(69556),l=n(77271),u=n(1897),d=n(76242),p=n(74848);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m=i().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,a=e.title,i=e.icon,f=e.pending,m=e.look,g=void 0===m?l.A.look.FLAT:m,v=e.iconPosition,y=void 0===v?l.A.position.PREPEND:v,b=e.type,w=void 0===b?"button":b,x=e.iconOnly,k=e.children,S=e.labelVisibility,O=(0,u.j)().labelVisibility;return(0,p.jsxs)(d.Ay,h(h(h({ref:t},n),e),{},{ink:r||l.A.ink.BASE,"data-cy":e["data-cy"],title:a||o,labelVisibility:S||O,type:w,children:[i&&!f&&(0,p.jsx)(c.A,{icon:i}),f&&(0,p.jsx)(s.A,{ink:r||l.A.ink.BASE,look:g,position:y,size:"1em"}),!x&&o?(0,p.jsx)(d.Bd,{children:o}):k||"​"]}))}))},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},33694:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},33829:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var o,a=new Uint8Array(16);function i(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}for(var c=[],s=0;s<256;++s)c.push((s+256).toString(16).slice(1));function l(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();var o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return l(o)}},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},35412:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},35529:(e,t,n)=>{var r=n(39344),o=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},36193:(e,t,n)=>{e.exports=n(42381)()},36462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},36800:(e,t,n)=>{var r=n(75288),o=n(64894),a=n(30361),i=n(23805);e.exports=function(e,t,n){if(!i(n))return!1;var c=typeof t;return!!("number"==c?o(n)&&a(t,n.length):"string"==c&&t in n)&&r(n[t],e)}},36944:(e,t,n)=>{var r=n(73893)("round");e.exports=r},37167:(e,t,n)=>{var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,c=i?o(i):r;e.exports=c},37217:(e,t,n)=>{var r=n(80079),o=n(51420),a=n(90938),i=n(63605),c=n(29817),s=n(80945);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=c,l.prototype.set=s,e.exports=l},37241:(e,t,n)=>{var r=n(70695),o=n(72903),a=n(64894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},38221:(e,t,n)=>{var r=n(23805),o=n(10124),a=n(99374),i=Math.max,c=Math.min;e.exports=function(e,t,n){var s,l,u,d,p,f,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=l;return s=l=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||g&&e-h>=u}function w(){var e=o();if(b(e))return x(e);p=setTimeout(w,function(e){var n=t-(e-f);return g?c(n,u-(e-h)):n}(e))}function x(e){return p=void 0,v&&s?y(e):(s=l=void 0,d)}function k(){var e=o(),n=b(e);if(s=arguments,l=this,f=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(w,t),m?y(e):d}(f);if(g)return clearTimeout(p),p=setTimeout(w,t),y(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?i(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=f=l=p=void 0},k.flush=function(){return void 0===p?d:x(o())},k}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,c=Object(n);(t?i--:++i<a)&&!1!==o(c[i],i,c););return n}}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),a=n(86009),i=a&&a.isSet,c=i?o(i):r;e.exports=c},38798:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Kq:()=>u,ob:()=>d});var r=n(40622),o=n(4146),a=n.n(o),i=n(4883),c=n(24184);var s="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),l=s.Consumer,u=s.Provider,d=s;function p(e,t){var n,o=t||{},s=o.intlPropName,u=void 0===s?"intl":s,d=o.forwardRef,p=void 0!==d&&d,f=o.enforceContext,h=void 0===f||f,m=function(t){return i.createElement(l,null,(function(n){var o;h&&(0,c.HM)(n);var a=((o={})[u]=n,o);return i.createElement(e,(0,r.Cl)({},t,a,{ref:p?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,p?a()(i.forwardRef((function(e,t){return i.createElement(m,(0,r.Cl)({},e,{forwardedRef:t}))})),e):a()(m,e)}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),a=n(32865);e.exports=function(e){return a(o(e,void 0,r),e+"")}},38859:(e,t,n)=>{var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},39344:(e,t,n)=>{var r=n(23805),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},39892:(e,t,n)=>{var r=n(83712);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},40337:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(29407);function o(e,t){return(0,r.a)(e,t?.in).getHours()}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40443:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>b,J8:()=>m,PG:()=>y,jx:()=>g,oX:()=>h});var r,o,a,i,c,s,l=n(72189),u=n.n(l),d=n(51510),p=n(85431),f=n(57488),h=(0,d.AH)(r||(r=u()(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),m=d.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(o||(o=u()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),h),g=(0,d.AH)(a||(a=u()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n /* Hide password reveal/clear buttons in MS browsers (Edge, IE) */\n &[type='password']::-ms-reveal,\n &[type='password']::-ms-clear {\n display: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; /* Safari fix */\n opacity: 1; /* iOS fix */\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n /* allow pointer event only on touch devices */\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,p.A)({color:f.t7.color("text")})}),f.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),v=(0,d.AH)(i||(i=u()(["\n display: flex;\n align-items: center;\n"]))),y=d.Ay.div.withConfig({displayName:"StyledEditableControl"})(c||(c=u()(["\n &&& {\n ","\n }\n"])),v),b=d.Ay.span.withConfig({displayName:"StyledEditableValue"})(s||(s=u()(["\n width: 100%;\n\n && {\n [type='url'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n [type='tel'] + .input-group-addon > a {\n color: inherit; /* reset bootstrap default */\n }\n\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: text;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),f.t7.color("signal.danger"))},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,Tt:()=>i,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(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}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},40860:(e,t,n)=>{var r=n(40882),o=n(80909),a=n(15389),i=n(85558),c=n(56449);e.exports=function(e,t,n){var s=c(e)?r:i,l=arguments.length<3;return s(e,a(t,4),n,l,o)}},40882:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41224:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(56375),o=n(74848);const a=function(e){return e.breakWords?(0,o.jsx)(r.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,o.jsx)("br",{},t)]:e})))}):(0,o.jsx)(r.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,c=i,s=!a;if(null==e)return!c;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<c;){var u=(l=n[i])[0],d=e[u],p=l[1];if(s&&l[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(a)var h=a(d,p,u,e,t,f);if(!(void 0===h?o(p,d,3,a,f):h))return!1}}return!0}},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),a=n(15389),i=n(56449);e.exports=function(e,t){return function(n,c){var s=i(n)?r:o,l=t?t():{};return s(n,e,a(c,2),l)}}},42194:(e,t,n)=>{var r=n(15389),o=n(6048),a=n(71086);e.exports=function(e,t){return a(e,o(r(t)))}},42381:(e,t,n)=>{"use strict";var r=n(49374);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},42444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(4883)),o=i(n(87695)),a=i(n(81438));function i(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return function(){var t,n=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}var f,h,m,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,o,i=u(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,a=e.sectionKeyPrefix,i=n(t);return i?r.default.createElement("div",o("".concat(a,"title"),"sectionTitle"),i):null}}])&&l(t.prototype,n),o&&l(t,o),c}(r.Component);t.default=g,f=g,h="propTypes",m={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},h in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m},42656:(e,t,n)=>{"use strict";n.d(t,{A:()=>Qd});var r,o,a,i=n(26396),c=n.n(i),s=n(90179),l=n.n(s),u=n(62193),d=n.n(u),p=n(80015),f=n(62243),h=n.n(f),m=n(48268),g=n(44905),v=n(69556),y=n(56375),b=n(40443),w=n(85735),x=n.n(w),k=function(e){return-1*Math.abs(e)},S=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===x()(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},O=n(72189),E=n.n(O),P=n(58156),_=n.n(P),A=n(51510),j=n(26166),C=n(57488),T=A.Ay.div.withConfig({displayName:"StyledLocationEdit"})(r||(r=E()(["\n && {\n ","\n position: relative;\n\n & > div {\n &:nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n &:nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__container {\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),b.oX,j.A.space(-2),j.A.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?_()(n,"colors.textDisabled"):_()(n,"colors.text")}),b.PG,b.jx,C.t7.color("paper"),C.t7.color("signal.info"),C.t7.color("secondaryLight"),C.t7.color("backgroundItemHover")),D=(0,A.Ay)(T).withConfig({displayName:"StyledAddressEdit"})(o||(o=E()(["\n && {\n & > div:nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n"]))),M=n(74848);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const I=function(e){var t,n=e.onChange,r=e.options,o=e.value,i=e.id,s=e.immutable,l=e.name,u=function(e){return function(t){return t[e]}},d=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},p=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,a=e.city;if(!t)return null;var i=d(e),c=n?"- ".concat(n):"",s=null!=r&&r.display?"/ ".concat(r.display):"";return(0,M.jsxs)(y.Ay.Span,{children:[i,", ",o," ",a," ",c," ",s]})},f=function(e){var t,o=e.suggestion;!0===o.validationRequired?null===(t=r.validateLocation)||void 0===t||t.call(r,o,n):n(o)},w=function(e){var t,n=e.value,o=r.locationValues.country,a={street:n};null===(t=r.fetchSuggestions)||void 0===t||t.call(r,a,o)},x={id:i,value:o&&o.street?d(o):"",onChange:(t="street",function(e){var r=e.newValue;n(N(N({},o),{},c()({},t,r)))}),disabled:s,name:"address-line1",autocomplete:"street-address"};return(0,M.jsx)(m.A,{children:function(e){var t,n,o,i,c=e.getRef;return(0,M.jsxs)(D,{immutable:s,name:l,ref:c,children:[(0,M.jsx)(h(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:w,getSuggestionValue:u("street"),renderSuggestion:p,onSuggestionsClearRequested:function(){},inputProps:x,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return Boolean(e&&!s)}}),(0,M.jsxs)(b.PG,{children:[r.isLoading&&(a||(a=(0,M.jsx)(v.A,{size:"1.8rem"}))),(t=r.locationValues,n=t.street,o=t.city,i=t.postcode,Boolean(n&&(o||i))&&(0,M.jsx)(g.A,{href:S(r.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var L=n(69843),F=n.n(L),H=n(21259),z=n.n(H),B=n(22056),W=n.n(B),U=n(7350),V=n.n(U),Y=n(4883),q=n.t(Y,2),$=n.n(Y),G=n(47029),K=n(2482),Q=n(35412),X=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var J=n(65166);function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}var ne=n(65710);function re(e,t){if(t&&("object"===(0,ne.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}var ae=n(77987);var ie=n(25134);function ce(e){return function(e){if(Array.isArray(e))return(0,ae.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,ie.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var se=n(60355),le=n(3834),ue=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function de(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||ue(r)&&ue(o)))return!1;var r,o;return!0}for(var pe={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},fe=function(e){return(0,le.Y)("span",(0,J.A)({css:pe},e))},he={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&l){var d=c?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},me=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,l=e.isAppleDevice,u=c.ariaLiveMessages,d=c.getOptionLabel,p=c.inputValue,f=c.isMulti,h=c.isOptionDisabled,m=c.isSearchable,g=c.menuIsOpen,v=c.options,y=c.screenReaderStatus,b=c.tabSelectsValue,w=c.isLoading,x=c["aria-label"],k=c["aria-live"],S=(0,Y.useMemo)((function(){return(0,G.A)((0,G.A)({},he),u||{})}),[u]),O=(0,Y.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,l=a||r||(e=s,Array.isArray(e)?null:e),u=l?d(l):"",p=o||c||void 0,f=p?p.map(d):[],m=(0,G.A)({isDisabled:l&&h(l,i),label:u,labels:f},t);n=S.onChange(m)}return n}),[t,S,h,i,d]),E=(0,Y.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&S.onFocus){var c={focused:t,label:d(t),isDisabled:h(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:l};e=S.onFocus(c)}return e}),[n,r,d,h,S,o,i,l]),P=(0,Y.useMemo)((function(){var e="";if(g&&v.length&&!w&&S.onFilter){var t=y({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,g,S,v,y,w]),_="initial-input-focus"===(null==t?void 0:t.action),A=(0,Y.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,i),isMulti:f,isSearchable:m,tabSelectsValue:b,isInitialFocus:_})}return e}),[x,n,r,f,h,m,g,S,i,b,_]),j=(0,le.Y)(Y.Fragment,null,(0,le.Y)("span",{id:"aria-selection"},O),(0,le.Y)("span",{id:"aria-focused"},E),(0,le.Y)("span",{id:"aria-results"},P),(0,le.Y)("span",{id:"aria-guidance"},A));return(0,le.Y)(Y.Fragment,null,(0,le.Y)(fe,{id:s},_&&j),(0,le.Y)(fe,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!_&&j))},ge=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ve=new RegExp("["+ge.map((function(e){return e.letters})).join("")+"]","g"),ye={},be=0;be<ge.length;be++)for(var we=ge[be],xe=0;xe<we.letters.length;xe++)ye[we.letters[xe]]=we.base;var ke=function(e){return e.replace(ve,(function(e){return ye[e]}))},Se=function(e,t){void 0===t&&(t=de);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(ke),Oe=function(e){return e.replace(/^\s+|\s+$/g,"")},Ee=function(e){return"".concat(e.label," ").concat(e.value)},Pe=["innerRef"];function _e(e){var t=e.innerRef,n=(0,Q.A)(e,Pe),r=(0,se.r)(n,"onExited","in","enter","exit","appear");return(0,le.Y)("input",(0,J.A)({ref:t},r,{css:(0,le.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ae=["boxSizing","height","overflow","paddingRight","position"],je={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ce(e){e.cancelable&&e.preventDefault()}function Te(e){e.stopPropagation()}function De(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Me(){return"ontouchstart"in window||navigator.maxTouchPoints}var Re=!("undefined"==typeof window||!window.document||!window.document.createElement),Ne=0,Ie={capture:!1,passive:!1};var Le=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Fe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function He(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,Y.useRef)(!1),c=(0,Y.useRef)(!1),s=(0,Y.useRef)(0),l=(0,Y.useRef)(null),u=(0,Y.useCallback)((function(e,t){if(null!==l.current){var s=l.current,u=s.scrollTop,d=s.scrollHeight,p=s.clientHeight,f=l.current,h=t>0,m=d-p-u,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=d,g=!0,i.current=!0):!h&&-t>u&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),d=(0,Y.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,Y.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,Y.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),h=(0,Y.useCallback)((function(e){if(e){var t=!!se.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),m=(0,Y.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,Y.useEffect)((function(){if(t){var e=l.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,Y.useRef)({}),a=(0,Y.useRef)(null),i=(0,Y.useCallback)((function(e){if(Re){var t=document.body,n=t&&t.style;if(r&&Ae.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ne<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(je).forEach((function(e){var t=je[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Me()&&(t.addEventListener("touchmove",Ce,Ie),e&&(e.addEventListener("touchstart",De,Ie),e.addEventListener("touchmove",Te,Ie))),Ne+=1}}),[r]),c=(0,Y.useCallback)((function(e){if(Re){var t=document.body,n=t&&t.style;Ne=Math.max(Ne-1,0),r&&Ne<1&&Ae.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Me()&&(t.removeEventListener("touchmove",Ce,Ie),e&&(e.removeEventListener("touchstart",De,Ie),e.removeEventListener("touchmove",Te,Ie)))}}),[r]);return(0,Y.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return(0,le.Y)(Y.Fragment,null,n&&(0,le.Y)("div",{onClick:Le,css:Fe}),t((function(e){o(e),a(e)})))}var ze={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Be=function(e){var t=e.name,n=e.onFocus;return(0,le.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ze,value:"",onChange:function(){}})};function We(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ue(){return We(/^Mac/i)}function Ve(){return We(/^iPhone/i)||We(/^iPad/i)||Ue()&&navigator.maxTouchPoints>1}var Ye={clearIndicator:se.a,container:se.b,control:se.d,dropdownIndicator:se.e,group:se.g,groupHeading:se.f,indicatorsContainer:se.i,indicatorSeparator:se.h,input:se.j,loadingIndicator:se.l,loadingMessage:se.k,menu:se.m,menuList:se.n,menuPortal:se.o,multiValue:se.p,multiValueLabel:se.q,multiValueRemove:se.t,noOptionsMessage:se.u,option:se.v,placeholder:se.w,singleValue:se.x,valueContainer:se.y};var qe,$e={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ge={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,se.z)(),captureMenuScroll:!(0,se.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,G.A)({ignoreCase:!0,ignoreAccents:!0,stringify:Ee,trim:!0,matchFrom:"any"},qe),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?Oe(t):t,l=i?Oe(a(e)):a(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=Se(s),l=ke(l)),"start"===c?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,se.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ke(e,t,n,r){return{type:"option",data:t,isDisabled:rt(e,t,n),isSelected:ot(e,t,n),label:tt(e,t),value:nt(e,t),index:r}}function Qe(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ke(e,n,t,r)})).filter((function(t){return Ze(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Ke(e,n,t,r);return Ze(e,a)?a:void 0})).filter(se.K)}function Xe(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ce(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Je(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ce(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Ze(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!it(e)||!a)&&at(e,{label:i,value:c,data:o},r)}var et=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},tt=function(e,t){return e.getOptionLabel(t)},nt=function(e,t){return e.getOptionValue(t)};function rt(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ot(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=nt(e,t);return n.some((function(t){return nt(e,t)===r}))}function at(e,t,n){return!e.filterOption||e.filterOption(t,n)}var it=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ct=1,st=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(a,e);var t,n,r,o=oe(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var l=t.getOptionValue(e);t.setValue((0,se.B)(i.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,se.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,se.B)([].concat(ce(i),[e])),"select-option",e):t.setValue((0,se.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=(0,se.D)(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,se.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=(0,se.D)(e,o,o[0]||null);r&&t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return et(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Je(Qe(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return se.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return tt(t.props,e)},t.getOptionValue=function(e){return nt(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Ye[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,se.F)(t.props)},t.buildCategorizedOptions=function(){return Qe(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Xe(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,G.A)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,se.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return it(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ct),t.state.selectValue=(0,se.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=et(n,r[i])}return t}return t=a,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,se.I)(this.menuListRef,this.focusedOptionRef),(Ue()||Ve())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,se.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($e):(0,G.A)((0,G.A)({},$e),this.props.theme):$e}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,l=c.isRtl,u=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return rt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ot(this.props,e,t)}},{key:"filterOption",value:function(e,t){return at(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,l=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),m=(0,G.A)((0,G.A)((0,G.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Y.createElement(l,(0,J.A)({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):Y.createElement(_e,(0,J.A)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:se.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,l=this.props,u=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,f=l.inputValue,h=l.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!u)return f?null:Y.createElement(c,(0,J.A)({},s,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Y.createElement(n,(0,J.A)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:d,key:l,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var b=g[0];return Y.createElement(i,(0,J.A)({},s,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(e,(0,J.A)({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?Y.createElement(e,(0,J.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return Y.createElement(n,(0,J.A)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(e,(0,J.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,E=p.noOptionsMessage,P=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!b)return null;var A,j=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=d===o,f=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:i};return Y.createElement(l,(0,J.A)({},u,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return Y.createElement(n,(0,J.A)({},u,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(m){var C=g({inputValue:h});if(null===C)return null;A=Y.createElement(c,u,C)}else{var T=E({inputValue:h});if(null===T)return null;A=Y.createElement(s,u,T)}var D={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:O},M=Y.createElement(se.M,(0,J.A)({},u,D),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return Y.createElement(o,(0,J.A)({},u,D,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),Y.createElement(He,{captureEnabled:f,onTopArrive:P,onBottomArrive:_,lockEnabled:S},(function(t){return Y.createElement(a,(0,J.A)({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:c,focusedOption:d}),A)})))}));return k||"fixed"===x?Y.createElement(i,(0,J.A)({},u,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return Y.createElement(Be,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return Y.createElement("input",{name:a,type:"hidden",value:s})}var l=c.length>0?c.map((function(t,n){return Y.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):Y.createElement("input",{name:a,type:"hidden",value:""});return Y.createElement("div",null,l)}var u=c[0]?this.getOptionValue(c[0]):"";return Y.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return Y.createElement(me,(0,J.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return Y.createElement(r,(0,J.A)({},d,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),Y.createElement(t,(0,J.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:l}),Y.createElement(o,(0,J.A)({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(n,(0,J.A)({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=(0,se.H)(u),m={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Xe(Qe(e,t))}(e,h):[],v=d?Je(Qe(e,h),"".concat(s,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:et(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=a,k=i&&c;return i&&!k&&(x={value:(0,se.D)(f,h,h[0]||null),options:h,action:"initial-input-focus"},k=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),(0,G.A)((0,G.A)((0,G.A)({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:k})}}],n&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Y.Component);st.defaultProps=Ge;n(22900);var lt=n(81845),ut=n.n(lt),dt=(n(27003),(0,Y.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,l=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=(0,Q.A)(e,X),m=(0,Y.useState)(void 0!==c?c:n),g=(0,K.A)(m,2),v=g[0],y=g[1],b=(0,Y.useState)(void 0!==s?s:o),w=(0,K.A)(b,2),x=w[0],k=w[1],S=(0,Y.useState)(void 0!==f?f:i),O=(0,K.A)(S,2),E=O[0],P=O[1],_=(0,Y.useCallback)((function(e,t){"function"==typeof l&&l(e,t),P(e)}),[l]),A=(0,Y.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),y(void 0!==n?n:e)}),[u]),j=(0,Y.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),C=(0,Y.useCallback)((function(){"function"==typeof d&&d(),k(!1)}),[d]),T=void 0!==c?c:v,D=void 0!==s?s:x,M=void 0!==f?f:E;return(0,G.A)((0,G.A)({},h),{},{inputValue:T,menuIsOpen:D,onChange:_,onInputChange:A,onMenuClose:C,onMenuOpen:j,value:M})}(e);return Y.createElement(st,(0,J.A)({ref:t},n))}))),pt=dt;const ft={isSafari:function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)},isPrimaryTouchDevice:n(81570).i};var ht=n(38798),mt=n(89387);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yt=(0,ht.Ay)((function(e){var t;return(0,M.jsx)("span",vt(vt({},e.innerProps),{},{children:(0,M.jsx)(mt.A,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var bt=n(1671);function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kt=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,M.jsx)(se.c.DropdownIndicator,xt(xt({},e),{},{children:(0,M.jsx)(bt.Jd,{children:(0,M.jsx)(mt.A,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var St,Ot,Et;function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},jt=function(e,t){return function(n){n.stopPropagation(),e(t)}},Ct=function(e,t){return function(n){n.stopPropagation(),e(t)}},Tt=function(e){e.stopPropagation()};const Dt=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,l=t.value,u=t.isMulti,d=t.inputValue,p=u&&(c||i);return(0,M.jsx)(bt.qV,{isTopAligned:p,children:(0,M.jsxs)(se.c.IndicatorsContainer,_t(_t({},e),{},{children:[e.children,n&&!a&&(0,M.jsx)("span",{onTouchEnd:Tt,onMouseDown:jt(n,l),children:St||(St=(0,M.jsx)(mt.A,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!a&&(0,M.jsx)("span",{onTouchEnd:Tt,onMouseDown:At(r,d,l),children:Ot||(Ot=(0,M.jsx)(mt.A,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),s&&!a&&(0,M.jsx)("span",{onTouchEnd:Tt,onMouseDown:Ct(o,l),children:Et||(Et=(0,M.jsx)(mt.A,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var Mt;const Rt=function(){return Mt||(Mt=(0,M.jsx)("span",{children:(0,M.jsx)(v.A,{size:"1.8rem"})}))};var Nt=n(44518);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ft=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,M.jsx)(bt.Ec,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,M.jsx)("div",{ref:e})},renderElement:function(o){return(0,M.jsx)("div",{ref:o,className:Nt.e,children:(0,M.jsx)(bt.jl,Lt(Lt({},l()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bt=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,M.jsxs)(se.c.MenuList,zt(zt({},e),{},{className:"MenuList",children:[n,r&&(0,M.jsx)(bt.iX,{children:o})]}))};var Wt=n(66779);const Ut=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=_()(a,t.key,null),l=(0,M.jsx)("span",{style:n.css,children:r}),u=c?(0,M.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,M.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,M.jsx)(p.A,{content:s?(0,M.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,M.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:l})})})}):l;return(0,M.jsx)(bt.fp,{children:u})};var Vt=n(85015),Yt=n.n(Vt),qt=n(42194),$t=n.n(qt),Gt=n(5556),Kt=n.n(Gt),Qt=n(23076);function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=["linkComp"],en=function(e,t){var n=Qt.A.difference(e,t),r=$t()(l()(n,Zt),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},tn=(0,Y.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Yt()(n)?(0,M.jsx)(bt.PD,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,M.jsx)(t,{entityKey:n,children:r})}):r}),en);tn.propTypes={children:Kt().node,entityKey:Kt().any,linkComp:Kt().func};const nn=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=_()(a,t.key,null);return(0,M.jsx)(se.c.SingleValue,Jt(Jt({},e),{},{children:(0,M.jsx)(bt.EM,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,M.jsx)(p.A,{content:s?(0,M.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt.A.sanitizeHtml(s)}}):null,children:(0,M.jsx)(tn,{linkComp:c,entityKey:t.key,children:o})})})}))};function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var on=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const an=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(a||i)))return(0,M.jsx)(se.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var l=Y.Children.map(r,(function(e){return on(e)?e:null})),u=Y.Children.map(r,(function(e){return on(e)?null:e})),d=s&&n;return(0,M.jsxs)(M.Fragment,{children:[!d&&(0,M.jsx)(M.Fragment,{children:l}),(0,M.jsx)(bt.NL,{children:u})]})};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ln=(0,A.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,l=e.noResultsText,u=e.noResultsComp,d=e.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,x=e.openRemoteCreate,k=(0,Y.useRef)(null),S=(0,Y.useRef)(null),O=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},E=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},P=(0,Y.useState)(O()),_=W()(P,2),A=_[0],j=_[1],C=(0,Y.useState)(E()),T=W()(C,2),D=T[0],R=T[1],N=(0,Y.useState)(!1),I=W()(N,2),L=I[0],F=I[1],H=(0,Y.useState)(""),B=W()(H,2),U=B[0],q=B[1],$=function(e){t&&t(e)},G=(0,Y.useCallback)(m||function(){},[]),K=(0,Y.useCallback)(V()(G,800,{trailing:!0}),[]),Q=Boolean(f),X=Boolean(p),J=Boolean(w),Z=Boolean(m)||!ft.isPrimaryTouchDevice();return(0,M.jsx)(bt.NR,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){j(O()),R(E())}),0)},children:(0,M.jsx)(bt.wO,{ref:S,children:(0,M.jsx)(pt,sn(sn({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:A,wrapperHeight:D,components:{ClearIndicator:yt,LoadingIndicator:Rt,DropdownIndicator:kt,IndicatorsContainer:Dt,IndicatorSeparator:null,Menu:Ft,MenuList:Bt,MultiValueLabel:Ut,SingleValue:nn,ValueContainer:an},noOptionsMessage:function(e){return l||("function"==typeof u?(0,M.jsx)(u,sn({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:Z},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:y||null,onChange:function(e){d(e),$(e)},onInputChange:function(e,t){var n=t.action;q(e),m&&e&&K(e,y),""===e&&"input-change"===n&&$(y)},options:z()(h||[]),onKeyDown:function(e){"Enter"===e.key&&L&&(e.stopPropagation(),k.current&&null===k.current.focusedOptionRef&&e.preventDefault()),"Backspace"!==e.key||!a||U&&0!==U.length||e.preventDefault()},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){$(y),F(!0)},onMenuClose:function(){F(!1)},styles:(0,bt.YC)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:X,openDocsTreeSearch:p,hasAdvancedSearch:Q,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:J,createPermission:w,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const un=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,M.jsx)(ln,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:F()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var dn,pn=A.Ay.div.withConfig({displayName:"StyledBoolEdit"})(dn||(dn=E()(["\n margin: 5px 0;\n"])));const fn=function(e){var t=e.onChange,n=e.value,r=void 0!==n&&n,o=e.name,a=e.id,i=e.immutable;return(0,M.jsx)(pn,{children:(0,M.jsx)("input",{type:"checkbox",checked:r,name:o,onChange:function(e){t&&t(e.target.checked)},id:a,disabled:i})})};var hn,mn,gn=n(59182),vn=n(85431),yn=A.Ay.div.withConfig({displayName:"StyledOption"})(hn||(hn=E()(["\n display: flex;\n align-items: baseline;\n gap: ",";\n margin-block: ",";\n\n input {\n margin: 0;\n }\n"])),j.A.space(-1.5),j.A.space(-1)),bn=A.Ay.span.withConfig({displayName:"StyledLabel"})(mn||(mn=E()(["\n ","\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n"])),(0,vn.A)(),j.A.space(-1));function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn={single:"radio",multiple:"checkbox"},Sn={single:{checked:!1},multiple:{}},On=function(e,t){return t?(0,M.jsx)(gn.A,{value:e}):e},En=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,a=e.checked,i=e.immutable,c=e.hideCheckbox,s=e.selectionType,l=e.renderHtmlInOptions,u=e.handleChange;return(0,M.jsxs)(yn,{children:[!c&&(0,M.jsx)("input",{name:t,type:kn[s||"single"],checked:a||!1,onChange:u,id:n,disabled:i,"data-cy":"choice-answer-option-".concat(n)}),(0,M.jsx)(bn,{children:o||On(r||"",l||!1)})]})};const Pn=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,a=e.immutable,i=function(e){if(t){var o=n.options.map((function(t){return xn(xn({},t),t.id===e.target.id?{checked:e.target.checked}:Sn[r.selectionType||"single"])}));t({options:o})}};return(0,M.jsx)(M.Fragment,{children:n.options.map((function(e){return(0,M.jsx)(En,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:a||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:i},e.id)}))})};var _n=n(50075);function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cn=(0,Y.lazy)((function(){return Promise.all([n.e(6528),n.e(3722)]).then(n.bind(n,65066))}));const Tn=function(e){return(0,M.jsx)(Y.Suspense,{fallback:(t=e.value,(0,M.jsx)("div",{children:(0,M.jsx)("p",{children:t})})),children:(0,M.jsx)(Cn,jn({},e))});var t};var Dn,Mn=A.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Dn||(Dn=E()(["\n margin-top: ",";\n"])),j.A.space(-1.5));const Rn=(0,A.SL)(_n.A.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,a=e.id,i=e.theme;return(0,M.jsx)(Mn,{children:(0,M.jsx)(Tn,{value:t,id:a,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:i.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Nn=n(6442),In=n(81792),Ln=n(39892),Fn=n.n(Ln),Hn=n(85072),zn=n.n(Hn),Bn=n(97825),Wn=n.n(Bn),Un=n(77659),Vn=n.n(Un),Yn=n(55056),qn=n.n(Yn),$n=n(10540),Gn=n.n($n),Kn=n(41113),Qn=n.n(Kn),Xn=n(2063),Jn={};Jn.styleTagTransform=Qn(),Jn.setAttributes=qn(),Jn.insert=Vn().bind(null,"head"),Jn.domAPI=Wn(),Jn.insertStyleElement=Gn();zn()(Xn.A,Jn);Xn.A&&Xn.A.locals&&Xn.A.locals;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)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function er(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zn(e))&&(r&&(r+=" "),r+=t);return r}var tr=n(61501),nr=n(43329),rr=n(29407);function or(e,t){const n=()=>(0,nr.w)(t?.in,NaN),r=t?.additionalDigits??2,o=function(e){const t={},n=e.split(ar.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ar.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ar.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=ar.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(o.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,r);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(ir);if(!n)return new Date(NaN);const r=!!n[4],o=lr(n[1]),a=lr(n[2])-1,i=lr(n[3]),c=lr(n[4]),s=lr(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dr[t]||(pr(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(pr(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return n();const i=+a;let c,s=0;if(o.time&&(s=function(e){const t=e.match(cr);if(!t)return NaN;const n=ur(t[1]),r=ur(t[2]),o=ur(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*tr.s0+r*tr.Cg+1e3*o}(o.time),isNaN(s)))return n();if(!o.timezone){const e=new Date(i+s),n=(0,rr.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return c=function(e){if("Z"===e)return 0;const t=e.match(sr);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*tr.s0+o*tr.Cg)}(o.timezone),isNaN(c)?n():(0,rr.a)(i+s+c,t?.in)}const ar={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ir=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,sr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lr(e){return e?parseInt(e):1}function ur(e){return e&&parseFloat(e.replace(",","."))||0}const dr=[31,null,31,30,31,30,31,31,30,31,30,31];function pr(e){return e%400==0||e%4==0&&e%100!=0}var fr=n(58646),hr=n(32370);function mr(e,t){return+(0,rr.a)(e)<+(0,rr.a)(t)}var gr=n(85577),vr=n(14533),yr=n(74279),br=n(81007),wr=n(72794),xr=n(6463),kr=n(80337);function Sr(e,t){const n=(0,rr.a)(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}var Or=n(70228);function Er(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function Pr(e,t){const n=(0,rr.a)(e,t?.in);return n.setHours(23,59,59,999),n}var _r=n(92516);function Ar(e,t){const n=(0,_r.q)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,rr.a)(e,t?.in),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function jr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}var Cr=n(5305);function Tr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Dr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Mr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return+Er(r)==+Er(o)}function Rr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return+(0,xr.o)(r)==+(0,xr.o)(o)}function Nr(e,t){return+(0,rr.a)(e)==+(0,rr.a)(t)}function Ir(e,t,n){const r=+(0,rr.a)(e,n?.in),[o,a]=[+(0,rr.a)(t.start,n?.in),+(0,rr.a)(t.end,n?.in)].sort(((e,t)=>e-t));return r>=o&&r<=a}function Lr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=(0,nr.w)(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Fr(e,t,n){const r=(0,rr.a)(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=(0,nr.w)(n?.in||e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const c=Lr(i);return r.setMonth(t,Math.min(a,c)),r}function Hr(e,t,n){const r=(0,rr.a)(e,n?.in),o=t-(Math.trunc(r.getMonth()/3)+1);return Fr(r,r.getMonth()+3*o)}function zr(e,t){return(0,rr.a)(e,t?.in).getFullYear()}function Br(e,t){return(0,rr.a)(e,t?.in).getMonth()}function Wr(e,t){const n=(0,rr.a)(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ur(e,t){const n=(0,rr.a)(e,t?.in);return Math.trunc(n.getMonth()/3)+1}var Vr=n(2831),Yr=n(40337),qr=n(4155);function $r(e){return(0,rr.a)(e).getSeconds()}function Gr(e,t,n){const r=(0,rr.a)(e,n?.in);if(isNaN(t))return(0,nr.w)(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=(0,nr.w)(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);return o>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Kr(e,t,n){return Gr(e,-t,n)}function Qr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function Xr(e,t,n){return Gr(e,3*t,n)}function Jr(e,t,n){return Xr(e,-t,n)}function Zr(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return 4*(r.getFullYear()-o.getFullYear())+(Ur(r)-Ur(o))}function eo(e,t,n){return Gr(e,12*t,n)}function to(e,t,n){return eo(e,-t,n)}function no(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t);return r.getFullYear()-o.getFullYear()}function ro(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}function oo(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=nr.w.bind(null,e));const t=(0,rr.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),(0,nr.w)(r,n||NaN)}var ao=n(80658);function io(e,t,n){return(0,nr.w)(n?.in||e,+(0,rr.a)(e)+t)}function co(e,t,n){return io(e,t*tr.s0,n)}function so(e,t,n){const r=(0,rr.a)(e,n?.in);return r.setTime(r.getTime()+t*tr.Cg),r}function lo(e,t,n){return io(e,1e3*t,n)}function uo(e,t){return+(0,rr.a)(e)>+(0,rr.a)(t)}function po(e,t){return(0,rr.a)(e,t?.in).getDay()}function fo(e,t){return(0,rr.a)(e,t?.in).getDate()}var ho=n(16172);function mo(e,t,n){return(0,ho.f)(e,7*t,n)}function go(e){return+(0,rr.a)(e)}function vo(e,t,n){const r=(0,rr.a)(e,n?.in);return isNaN(+r)?(0,nr.w)(n?.in||e,NaN):(r.setFullYear(t),r)}function yo(e,t,n){const[r,o]=(0,Cr.x)(n?.in,e,t),a=bo(r,o),i=Math.abs((0,Vr.m)(r,o));r.setDate(r.getDate()-a*i);const c=a*(i-Number(bo(r,o)===-a));return 0===c?0:c}function bo(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function wo(e,t,n){return mo(e,-t,n)}function xo(e,t,n){return(0,ho.f)(e,-t,n)}function ko(){return"undefined"!=typeof window}function So(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Oo(e){return!!ko()&&(e instanceof Element||e instanceof So(e).Element)}function Eo(e){return So(e).getComputedStyle(e)}const Po=Math.min,_o=Math.max,Ao=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),jo={start:"end",end:"start"};function Co(e,t){return"function"==typeof e?e(t):e}function To(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function Mo(e){return"y"===e?"height":"width"}function Ro(e){return["top","bottom"].includes(To(e))?"y":"x"}function No(e){return"x"===Ro(e)?"y":"x"}function Io(e){return e.replace(/start|end/g,(e=>jo[e]))}function Lo(e){return e.replace(/left|right|bottom|top/g,(e=>Ao[e]))}function Fo(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ho(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zo(e,t,n){let{reference:r,floating:o}=e;const a=Ro(t),i=No(t),c=Mo(i),s=To(t),l="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Do(t)){case"start":f[i]-=p*(n&&l?-1:1);break;case"end":f[i]+=p*(n&&l?-1:1)}return f}async function Bo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:c,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Co(t,e),h=Fo(f),m=c[p?"floating"===d?"reference":"floating":d],g=Ho(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:s})),v="floating"===d?{...i.floating,x:r,y:o}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=Ho(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const Wo=Math.min,Uo=Math.max,Vo=Math.round,Yo=Math.floor,qo=e=>({x:e,y:e});function $o(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function Go(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ko(e){var t;return null==(t=(Qo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qo(e){return e instanceof Node||e instanceof Go(e).Node}function Xo(e){return e instanceof Element||e instanceof Go(e).Element}function Jo(e){return e instanceof HTMLElement||e instanceof Go(e).HTMLElement}function Zo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Go(e).ShadowRoot)}function ea(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ia(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ta(e){return["table","td","th"].includes($o(e))}function na(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ra(e){const t=oa(),n=Xo(e)?ia(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function oa(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function aa(e){return["html","body","#document"].includes($o(e))}function ia(e){return Go(e).getComputedStyle(e)}function ca(e){return Xo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sa(e){if("html"===$o(e))return e;const t=e.assignedSlot||e.parentNode||Zo(e)&&e.host||Ko(e);return Zo(t)?t.host:t}function la(e){const t=sa(e);return aa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jo(t)&&ea(t)?t:la(t)}function ua(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=la(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Go(o);return a?t.concat(i,i.visualViewport||[],ea(o)?o:[],i.frameElement&&n?ua(i.frameElement):[]):t.concat(o,ua(o,[],n))}function da(e){const t=ia(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Vo(n)!==a||Vo(r)!==i;return c&&(n=a,r=i),{width:n,height:r,$:c}}function pa(e){return Xo(e)?e:e.contextElement}function fa(e){const t=pa(e);if(!Jo(t))return qo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=da(t);let i=(a?Vo(n.width):n.width)/r,c=(a?Vo(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),c&&Number.isFinite(c)||(c=1),{x:i,y:c}}const ha=qo(0);function ma(e){const t=Go(e);return oa()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ha}function ga(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=pa(e);let i=qo(1);t&&(r?Xo(r)&&(i=fa(r)):i=fa(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Go(e))&&t}(a,n,r)?ma(a):qo(0);let s=(o.left+c.x)/i.x,l=(o.top+c.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Go(a),t=r&&Xo(r)?Go(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=fa(o),t=o.getBoundingClientRect(),r=ia(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,l*=e.y,u*=e.x,d*=e.y,s+=a,l+=i,n=Go(o),o=n.frameElement}}return Ho({width:u,height:d,x:s,y:l})}function va(e){return ga(Ko(e)).left+ca(e).scrollLeft}function ya(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Go(e),r=Ko(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,c=0,s=0;if(o){a=o.width,i=o.height;const e=oa();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:c,y:s}}(e,n);else if("document"===t)r=function(e){const t=Ko(e),n=ca(e),r=e.ownerDocument.body,o=Uo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Uo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+va(e);const c=-n.scrollTop;return"rtl"===ia(r).direction&&(i+=Uo(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:c}}(Ko(e));else if(Xo(t))r=function(e,t){const n=ga(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Jo(e)?fa(e):qo(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ma(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ho(r)}function ba(e,t){const n=sa(e);return!(n===t||!Xo(n)||aa(n))&&("fixed"===ia(n).position||ba(n,t))}function wa(e,t,n){const r=Jo(t),o=Ko(t),a="fixed"===n,i=ga(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const s=qo(0);if(r||!r&&!a)if(("body"!==$o(t)||ea(o))&&(c=ca(t)),r){const e=ga(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=va(o));return{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function xa(e){return"static"===ia(e).position}function ka(e,t){return Jo(e)&&"fixed"!==ia(e).position?t?t(e):e.offsetParent:null}function Sa(e,t){const n=Go(e);if(na(e))return n;if(!Jo(e)){let t=sa(e);for(;t&&!aa(t);){if(Xo(t)&&!xa(t))return t;t=sa(t)}return n}let r=ka(e,t);for(;r&&ta(r)&&xa(r);)r=ka(r,t);return r&&aa(r)&&xa(r)&&!ra(r)?n:r||function(e){let t=sa(e);for(;Jo(t)&&!aa(t);){if(ra(t))return t;if(na(t))return null;t=sa(t)}return null}(e)||n}const Oa={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Ko(r),c=!!t&&na(t.floating);if(r===i||c&&a)return n;let s={scrollLeft:0,scrollTop:0},l=qo(1);const u=qo(0),d=Jo(r);if((d||!d&&!a)&&(("body"!==$o(r)||ea(i))&&(s=ca(r)),Jo(r))){const e=ga(r);l=fa(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+u.x,y:n.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:Ko,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?na(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ua(e,[],!1).filter((e=>Xo(e)&&"body"!==$o(e))),o=null;const a="fixed"===ia(e).position;let i=a?sa(e):e;for(;Xo(i)&&!aa(i);){const t=ia(i),n=ra(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ea(i)&&!n&&ba(e,i))?r=r.filter((e=>e!==i)):o=t,i=sa(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],c=a.reduce(((e,n)=>{const r=ya(t,n,o);return e.top=Uo(r.top,e.top),e.right=Wo(r.right,e.right),e.bottom=Wo(r.bottom,e.bottom),e.left=Uo(r.left,e.left),e}),ya(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Sa,getElementRects:async function(e){const t=this.getOffsetParent||Sa,n=this.getDimensions,r=await n(e.floating);return{reference:wa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=da(e);return{width:t,height:n}},getScale:fa,isElement:Xo,isRTL:function(e){return"rtl"===ia(e).direction}};function Ea(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,l=pa(e),u=o||a?[...l?ua(l):[],...ua(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=l&&c?function(e,t){let n,r=null;const o=Ko(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),a();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const f={rootMargin:-Yo(u)+"px "+-Yo(o.clientWidth-(l+d))+"px "+-Yo(o.clientHeight-(u+p))+"px "+-Yo(l)+"px",threshold:Uo(0,Wo(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(l,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!s&&h.observe(l),h.observe(t));let m=s?ga(e):null;return s&&function t(){const r=ga(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}const Pa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=To(n),c=Do(n),s="y"===Ro(n),l=["left","top"].includes(i)?-1:1,u=a&&s?-1:1,d=Co(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof h&&(f="end"===c?-1*h:h),s?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return i===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},_a=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:c,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Co(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=To(o),y=To(c)===c,b=await(null==s.isRTL?void 0:s.isRTL(l.floating)),w=p||(y||!m?[Lo(c)]:function(e){const t=Lo(e);return[Io(e),t,Io(t)]}(c));p||"none"===h||w.push(...function(e,t,n,r){const o=Do(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(To(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(Io)))),a}(c,m,h,b));const x=[c,...w],k=await Bo(t,g),S=[];let O=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&S.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Do(e),o=No(e),a=Mo(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Lo(i)),[i,Lo(i)]}(o,i,b);S.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,P;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var _;const e=null==(_=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Aa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:c,middlewareData:s}=t,{element:l,padding:u=0}=Co(e,t)||{};if(null==l)return{};const d=Fo(u),p={x:n,y:r},f=No(o),h=Mo(f),m=await i.getDimensions(l),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[f]-p[f]-a.floating[h],x=p[f]-a.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=k?k[b]:0;S&&await(null==i.isElement?void 0:i.isElement(k))||(S=c.floating[b]||a.floating[h]);const O=w/2-x/2,E=S/2-m[h]/2-1,P=Po(d[v],E),_=Po(d[y],E),A=P,j=S-m[h]-_,C=S/2-m[h]/2+O,T=_o(A,Po(C,j));const D=!s.arrow&&null!=Do(o)&&C!==T&&a.reference[h]/2-(C<A?P:_)-m[h]/2<0,M=D?C<A?C-A:C-j:0;return{[f]:p[f]+M,data:{[f]:T,centerOffset:C-T-M,...D&&{alignmentOffset:M}},reset:D}}}),ja=(e,t,n)=>{const r=new Map,o={platform:Oa,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,c=a.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zo(l,r,s),p=r,f={},h=0;for(let n=0;n<c.length;n++){const{name:a,fn:m}=c[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:l,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[a]:{...f[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=zo(l,p,s))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})};var Ca="undefined"!=typeof document?Y.useLayoutEffect:Y.useEffect;function Ta(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ta(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ta(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Da(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ma(e,t){const n=Da(e);return Math.round(t*n)/n}function Ra(e){const t=Y.useRef(e);return Ca((()=>{t.current=e})),t}const Na=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Aa({element:n.current,padding:r}).fn(t):{}:n?Aa({element:n,padding:r}).fn(t):{};var o}}),Ia=(e,t)=>({...Pa(e),options:[e,t]}),La=(e,t)=>({..._a(e),options:[e,t]}),Fa=(e,t)=>({...Na(e),options:[e,t]});const Ha={...q},za=Ha.useInsertionEffect||(e=>e());function Ba(e){const t=Y.useRef((()=>{0}));return za((()=>{t.current=e})),Y.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Wa="ArrowUp",Ua="ArrowDown",Va="ArrowLeft",Ya="ArrowRight";var qa="undefined"!=typeof document?Y.useLayoutEffect:Y.useEffect;const $a=[Va,Ya],Ga=[Wa,Ua];let Ka=!1,Qa=0;const Xa=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qa++;const Ja=Ha.useId||function(){const[e,t]=Y.useState((()=>Ka?Xa():void 0));return qa((()=>{null==e&&t(Xa())}),[]),Y.useEffect((()=>{Ka=!0}),[]),e};const Za=Y.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:c=7,tipRadius:s=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...h}={},...m}=e;const g=Ja(),[v,y]=Y.useState(!1);if(qa((()=>{if(!r)return;"rtl"===Eo(r).direction&&y(!0)}),[r]),!r)return null;const[b,w]=n.split("-"),x="top"===b||"bottom"===b;let k=u;(x&&null!=a&&a.x||!x&&null!=a&&a.y)&&(k=null);const S=2*l,O=S/2,E=i/2*(s/-8+1),P=c/2*s/4,_=!!p,A=k&&"end"===w?"bottom":"top";let j=k&&"end"===w?"right":"left";k&&v&&(j="end"===w?"left":"right");const C=null!=(null==o?void 0:o.x)?k||o.x:"",T=null!=(null==o?void 0:o.y)?k||o.y:"",D=p||"M0,0 H"+i+" L"+(i-E)+","+(c-P)+" Q"+i/2+","+c+" "+E+","+(c-P)+" Z",R={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[b];return(0,M.jsxs)("svg",{...m,"aria-hidden":!0,ref:t,width:_?i:i+S,height:i,viewBox:"0 0 "+i+" "+(c>i?c:i),style:{position:"absolute",pointerEvents:"none",[j]:C,[A]:T,[b]:x||_?"100%":"calc(100% - "+S/2+"px)",transform:[R,f].filter((e=>!!e)).join(" "),...h},children:[S>0&&(0,M.jsx)("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:S+(p?0:1),d:D}),(0,M.jsx)("path",{stroke:S&&!p?m.fill:"none",d:D}),(0,M.jsx)("clipPath",{id:g,children:(0,M.jsx)("rect",{x:-O,y:O*(_?-1:1),width:i+S,height:i})})]})}));function ei(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const ti=Y.createContext(null),ni=Y.createContext(null),ri=()=>{var e;return(null==(e=Y.useContext(ti))?void 0:e.id)||null},oi=()=>Y.useContext(ni);function ai(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ja(),a=Y.useRef({}),[i]=Y.useState((()=>ei())),c=null!=ri(),[s,l]=Y.useState(r.reference),u=Ba(((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),d=Y.useMemo((()=>({setPositionReference:l})),[]),p=Y.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);return Y.useMemo((()=>({dataRef:a,open:t,onOpenChange:u,elements:p,events:i,floatingId:o,refs:d})),[t,u,p,i,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=Y.useState(null),[c,s]=Y.useState(null),l=(null==o?void 0:o.domReference)||a,u=Y.useRef(null),d=oi();qa((()=>{l&&(u.current=l)}),[l]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:s,open:l}=e,[u,d]=Y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=Y.useState(r);Ta(p,r)||f(r);const[h,m]=Y.useState(null),[g,v]=Y.useState(null),y=Y.useCallback((e=>{e!==k.current&&(k.current=e,m(e))}),[]),b=Y.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=a||h,x=i||g,k=Y.useRef(null),S=Y.useRef(null),O=Y.useRef(u),E=null!=s,P=Ra(s),_=Ra(o),A=Ra(l),j=Y.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),ja(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};C.current&&!Ta(O.current,t)&&(O.current=t,lt.flushSync((()=>{d(t)})))}))}),[p,t,n,_,A]);Ca((()=>{!1===l&&O.current.isPositioned&&(O.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const C=Y.useRef(!1);Ca((()=>(C.current=!0,()=>{C.current=!1})),[]),Ca((()=>{if(w&&(k.current=w),x&&(S.current=x),w&&x){if(P.current)return P.current(w,x,j);j()}}),[w,x,j,P,E]);const T=Y.useMemo((()=>({reference:k,floating:S,setReference:y,setFloating:b})),[y,b]),D=Y.useMemo((()=>({reference:w,floating:x})),[w,x]),M=Y.useMemo((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Ma(D.floating,u.x),r=Ma(D.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Da(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,D.floating,u.x,u.y]);return Y.useMemo((()=>({...u,update:j,refs:T,elements:D,floatingStyles:M})),[u,j,T,D,M])}({...e,elements:{...o,...c&&{reference:c}}}),f=Y.useCallback((e=>{const t=Oo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),p.refs.setReference(t)}),[p.refs]),h=Y.useCallback((e=>{(Oo(e)||null===e)&&(u.current=e,i(e)),(Oo(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Oo(e))&&p.refs.setReference(e)}),[p.refs]),m=Y.useMemo((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u})),[p.refs,h,f]),g=Y.useMemo((()=>({...p.elements,domReference:l})),[p.elements,l]),v=Y.useMemo((()=>({...p,...r,refs:m,elements:g,nodeId:t})),[p,m,g,t,r]);return qa((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Y.useMemo((()=>({...p,context:v,refs:m,elements:g})),[p,m,g,v])}
47
47
  /*!
48
48
  react-datepicker v8.4.0
49
49
  https://github.com/Hacker0x01/react-datepicker
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-devcon",
3
- "version": "3.14.53",
3
+ "version": "3.14.54",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0+",
6
6
  "main": "dist/index.js",