tocco-devcon 3.14.7 → 3.14.8
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/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const{entries:r,setPrototypeOf:o,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescr
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,i=r.useRef,c=r.useEffect,s=r.useMemo,l=r.useDebugValue},85250:(e,t,n)=>{var r=n(37217),o=n(87805),a=n(86649),i=n(42824),c=n(23805),s=n(37241),l=n(14974);e.exports=function e(t,n,u,p,d){t!==n&&a(n,(function(a,s){if(d||(d=new r),c(a))i(t,n,s,u,e,p,d);else{var f=p?p(l(t,s),a,s+"",t,n,d):void 0;void 0===f&&(f=a),o(t,s,f)}}),s)}},85431:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r,o=n(72189),a=n.n(o),i=n(51510),c=n(47616),s=n(26166);const l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.AH)(r||(r=a()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||c.A.color("text"),e.fontFamily||c.A.fontFamily("regular"),e.fontSize||s.A.font(0),e.fontStyle||"normal",e.fontWeight||c.A.fontWeight("regular"),e.lineHeight||c.A.lineHeight("regular"))}},85463:e=>{e.exports=function(e){return e!=e}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),a=n(17400);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},85558:e=>{e.exports=function(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}},85577:(e,t,n)=>{"use strict";n.d(t,{GP:()=>M});var r=n(9946),o=n(92516),a=n(2831),i=n(70228),c=n(29407);function s(e,t){const n=(0,c.a)(e,t?.in);return(0,a.m)(n,(0,i.D)(n))+1}var l=n(72794),u=n(51898),p=n(65456),d=n(84485);function f(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const h={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return f(Math.trunc(r*Math.pow(10,n-3)),t.length)}},m="midnight",g="noon",v="morning",y="afternoon",b="evening",w="night",x={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){const o=(0,d.h)(e,r),a=o>0?o:1-o;if("YY"===t){return f(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,u.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,p.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){const r=(0,l.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){const r=s(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?g:0===r?m:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?b:r>=12?y:r>=4?v:w,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return O(r);case"XXXX":case"XX":return S(r);default:return S(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return O(r);case"xxxx":case"xx":return S(r);default:return S(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k(r,":");default:return"GMT"+S(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k(r,":");default:return"GMT"+S(r,":")}},t:function(e,t,n){return f(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function k(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+f(a,2)}function O(e,t){if(e%60==0){return(e>0?"-":"+")+f(Math.abs(e)/60,2)}return S(e,t)}function S(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+f(Math.trunc(r/60),2)+t+f(r%60,2)}var E=n(78668),j=n(3265),_=n(32370);const P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,D=/''/g,T=/[a-zA-Z]/;function M(e,t,n){const a=(0,o.q)(),i=n?.locale??a.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,c.a)(e,n?.in);if(!(0,_.f)(u))throw new RangeError("Invalid time value");let p=t.match(A).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,E.m[t])(e,i.formatLong)}return e})).join("").match(P).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:R(e)};if(x[t])return{isToken:!0,value:e};if(t.match(T))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(p=i.localize.preprocessor(u,p));const d={firstWeekContainsDate:s,weekStartsOn:l,locale:i};return p.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,j.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,j.ef)(o))&&(0,j.Ss)(o,t,String(e));return(0,x[o[0]])(u,o,i.localize,d)})).join("")}function R(e){const t=e.match(C);return t?t[1].replace(D,"'"):e}},85735:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,c=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=c},86151:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,a){for(var i=-1,c=n(t((r-e)/(o||1)),0),s=Array(c);c--;)s[a?c:++i]=e,e+=o;return s}},86375:(e,t,n)=>{var r=n(14528),o=n(28879),a=n(4664),i=n(63345),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=c},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!r()&&(e instanceof Element||e instanceof o(e).Element)}function i(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){return o(e).getComputedStyle(e)}n.d(t,{L9:()=>c,Ng:()=>i,vq:()=>a})},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},87068:(e,t,n)=>{var r=n(37217),o=n(25911),a=n(21986),i=n(50689),c=n(5861),s=n(56449),l=n(3656),u=n(37167),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=s(e),b=s(t),w=y?d:c(e),x=b?d:c(t),k=(w=w==p?f:w)==f,O=(x=x==p?f:x)==f,S=w==x;if(S&&l(e)){if(!l(t))return!1;y=!0,k=!1}if(S&&!k)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):a(e,t,w,n,m,g,v);if(!(1&n)){var E=k&&h.call(e,"__wrapped__"),j=O&&h.call(t,"__wrapped__");if(E||j){var _=E?e.value():e,P=j?t.value():t;return v||(v=new r),g(_,P,n,m,v)}}return!!S&&(v||(v=new r),i(e,t,n,m,g,v))}},87105:(e,t,n)=>{"use strict";n.d(t,{BV:()=>Ht,C5:()=>Nt,N_:()=>Sn,Ri:()=>ut,Ys:()=>wn,pg:()=>Rt,qh:()=>Lt,zy:()=>pt});var r,o=n(4883),a=(n(16069),e=>{throw TypeError(e)}),i=(e,t,n)=>(((e,t,n)=>{t.has(e)||a("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),c="popstate";function s(e={}){return m((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return d("",{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 p(e,t){return{usr:e.state,key:e.key,idx:t}}function d(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",u=null,h=m();function m(){return(i.state||{idx:null}).idx}function g(){s="POP";let e=m(),t=null==e?null:e-h;h=e,u&&u({action:s,location:y.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:f(e);return n=n.replace(/ $/,"%20"),l(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==h&&(h=0,i.replaceState({...i.state,idx:h},""));let y={get action(){return s},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),u=e,()=>{o.removeEventListener(c,g),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=d(y.location,e,t);n&&n(r,e),h=m()+1;let c=p(r,h),l=y.createHref(r);try{i.pushState(c,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}a&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let r=d(y.location,e,t);n&&n(r,e),h=m();let o=p(r,h),c=y.createHref(r);i.replaceState(o,"",c),a&&u&&u({action:s,location:y.location,delta:0})},go:e=>i.go(e)};return y}var g=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 v=new Set(["lazy","caseSensitive","path","id","index","children"]);var y=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function b(e,t,n=[],r={}){return e.map(((e,o)=>{let a=[...n,String(o)],i="string"==typeof e.id?e.id:a.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!r[i],`Found a route id collision on id "${i}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:i};return r[i]=n,n}{let n={...e,...t(e),id:i,children:void 0};return r[i]=n,e.children&&(n.children=b(e.children,t,a,r)),n}}))}function w(e,t,n="/"){return x(e,t,n,!1)}function x(e,t,n,r){let o=N(("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=I(o);i=M(a[e],t,r)}return i}function k(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data: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=W([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:T(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of S(e.path))o(e,t,n);else o(e,t)})),t}function S(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=S(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 E=/^:[\w-]+$/,j=3,_=2,P=1,A=10,C=-2,D=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=C),t&&(r+=_),n.filter((e=>!D(e))).reduce(((e,t)=>e+(E.test(t)?j:""===t?P:A)),r)}function M(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=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),p=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:W([a,u.pathname]),pathnameBase:U(W([a,u.pathnameBase])),route:p}),"/"!==u.pathnameBase&&(a=W([a,u.pathnameBase]))}return i}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(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?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,r]}(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){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 N(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 L(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 F(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function H(e){let t=F(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function B(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},l(!o.pathname||!o.pathname.includes("?"),L("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),L("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),L("#","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:z(r),hash:V(o)}}(o,a),u=c&&"/"!==c&&c.endsWith("/"),p=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!p||(s.pathname+="/"),s}var W=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Y=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 q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var $=["POST","PUT","PATCH","DELETE"],G=new Set($),K=["GET",...$],J=new Set(K),X=new Set([301,302,303,307,308]),Q=new Set([307,308]),Z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),oe="remix-router-transitions",ae=Symbol("ResetLoaderData");function ie(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.mapRouteProperties||re,c={},s=b(e.routes,i,void 0,c),p=e.basename||"/",f=e.dataStrategy||ke,h={unstable_middleware:!1,...e.future},m=null,v=new Set,y=null,O=null,S=null,E=null!=e.hydrationData,j=w(s,e.history.location,p),_=!1,P=null;if(null==j&&!e.patchRoutesOnNavigation){let t=Fe(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Le(s);j=n,P={[r.id]:t}}if(j&&!e.hydrationData){et(j,s,e.history.location.pathname).active&&(j=null)}if(j)if(j.some((e=>e.route.lazy)))o=!1;else if(j.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=j.findIndex((e=>void 0!==n[e.route.id]));o=j.slice(0,e+1).every((e=>!pe(e.route,t,n)))}else o=j.every((e=>!pe(e.route,t,n)))}else o=!0;else{o=!1,j=[];let t=et(null,s,e.history.location.pathname);t.active&&t.matches&&(_=!0,j=t.matches)}let A,C,D={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:Z,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||P,fetchers:new Map,blockers:new Map},T="POP",M=!1,R=!1,I=new Map,L=null,F=!1,H=!1,B=new Set,W=new Map,U=0,z=-1,V=new Map,Y=new Set,$=new Map,G=new Map,K=new Set,J=new Map,X=null;function ae(e,t={}){D={...D,...e};let n=[],r=[];D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{D.fetchers.has(e)||W.has(e)||n.push(e)})),[...v].forEach((e=>e(D,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>xe(e))),r.forEach((e=>D.fetchers.delete(e)))}function ie(t,n,{flushSync:o}={}){let a,i=null!=D.actionData&&null!=D.navigation.formMethod&&$e(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?D.actionData:null;let c=n.loaderData?Re(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,l=D.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,te))));let u,p=!0===M||null!=D.navigation.formMethod&&$e(D.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(s=r,r=void 0),F||"POP"===T||("PUSH"===T?e.history.push(t,t.state):"REPLACE"===T&&e.history.replace(t,t.state)),"POP"===T){let e=I.get(D.location.pathname);e&&e.has(t.pathname)?u={currentLocation:D.location,nextLocation:t}:I.has(t.pathname)&&(u={currentLocation:t,nextLocation:D.location})}else if(R){let e=I.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(D.location.pathname,e)),u={currentLocation:D.location,nextLocation:t}}ae({...n,actionData:a,loaderData:c,historyAction:T,location:t,initialized:!0,navigation:Z,revalidation:"idle",restoreScrollPosition:Ge(t,n.matches||D.matches),preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===o}),T="POP",M=!1,R=!1,F=!1,H=!1,X?.resolve(),X=null}async function le(t,n,o){A&&A.abort(),A=null,T=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(y&&S){let n=qe(e,t);y[n]=S()}}(D.location,D.matches),M=!0===(o&&o.preventScrollReset),R=!0===(o&&o.enableViewTransition);let a=r||s,i=o&&o.overrideNavigation,c=o?.initialHydration&&D.matches&&D.matches.length>0&&!_?D.matches:w(a,n,p),l=!0===(o&&o.flushSync);if(c&&D.initialized&&!H&&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}(D.location,n)&&!(o&&o.submission&&$e(o.submission.formMethod)))return void ie(n,{matches:c},{flushSync:l});let u=et(c,a,n.pathname);if(u.active&&u.matches&&(c=u.matches),!c){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return void ie(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}A=new AbortController;let d,f=Ae(e.history,n,A.signal,o&&o.submission),h=new g(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)d=[Ne(c).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&$e(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,i={}){ve();let c,s=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(ae({navigation:s},{flushSync:!0===i.flushSync}),a){let n=await tt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Ne(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}=Ye(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let l=Ke(r,t);if(l.route.action||l.route.lazy){let t=await me("action",e,[l],r,o,null);if(c=t[l.route.id],!c)for(let e of r)if(t[e.route.id]){c=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else c={type:"error",error:Fe(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(ze(c)){let t;if(i&&null!=i.replace)t=i.replace;else{t=Pe(c.response.headers.get("Location"),new URL(e.url),p)===D.location.pathname+D.location.search}return await fe(e,c,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ue(c)){let e=Ne(r,l.route.id);return!0!==(i&&i.replace)&&(T="PUSH"),{matches:r,pendingActionResult:[e.route.id,c]}}return{matches:r,pendingActionResult:[l.route.id,c]}}(f,n,o.submission,c,h,u.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ue(r)&&q(r.error)&&404===r.error.status)return A=null,void ie(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,d=t.pendingActionResult,i=Xe(n,o.submission),l=!1,u.active=!1,f=Ae(e.history,f.url,f.signal)}let{shortCircuited:m,matches:v,loaderData:b,errors:x}=await async function(t,n,o,a,i,c,l,u,d,f,h,m){let g=c||Xe(n,l),v=l||u||Je(g),y=!F&&!f;if(i){if(y){let e=de(m);ae({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:h})}let e=await tt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ne(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||s,[w,x]=ue(e.history,D,o,v,n,!0===f,H,B,K,$,Y,b,p,m);if(z=++U,0===w.length&&0===x.length){let e=Ce();return ie(n,{matches:o,loaderData:{},errors:m&&Ue(m[1])?{[m[0]]:m[1].error}:null,...Ie(m),...e?{fetchers:new Map(D.fetchers)}:{}},{flushSync:h}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=g;let t=de(m);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=D.fetchers.get(e.key),n=Qe(void 0,t?t.data:void 0);D.fetchers.set(e.key,n)})),new Map(D.fetchers)}(x)),ae(e,{flushSync:h})}x.forEach((e=>{Oe(e.key),e.controller&&W.set(e.key,e.controller)}));let k=()=>x.forEach((e=>Oe(e.key)));A&&A.signal.addEventListener("abort",k);let{loaderResults:O,fetcherResults:S}=await ge(o,w,x,t,a);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",k);x.forEach((e=>W.delete(e.key)));let E=He(O);if(E)return await fe(t,E.result,!0,{replace:d}),{shortCircuited:!0};if(E=He(S),E)return Y.add(E.key),await fe(t,E.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:j,errors:_}=Me(D,o,O,m,x,S);f&&D.errors&&(_={...D.errors,..._});let P=Ce(),C=De(z),T=P||C||x.length>0;return{matches:o,loaderData:j,errors:_,...T?{fetchers:new Map(D.fetchers)}:{}}}(f,n,c,h,u.active,i,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,d);m||(A=null,ie(n,{matches:v||c,...Ie(d),loaderData:b,errors:x}))}function de(e){return e&&!Ue(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function fe(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let f=o.response.headers.get("Location");l(f,"Expected a Location header on the redirect Response"),f=Pe(f,new URL(r.url),p);let h=d(D.location,f,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ne.test(f)){const r=e.history.createURL(f);n=r.origin!==t.location.origin||null==N(r.pathname,p)}if(n)return void(u?t.location.replace(f):t.location.assign(f))}A=null;let m=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=D.navigation;!i&&!c&&g&&v&&y&&(i=Je(D.navigation));let b=i||c;if(Q.has(o.response.status)&&b&&$e(b.formMethod))await le(m,h,{submission:{...b,formAction:f},preventScrollReset:s||M,enableViewTransition:a?R:void 0});else{let e=Xe(h,i);await le(m,h,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||M,enableViewTransition:a?R:void 0})}}async function me(e,t,n,r,o,a){let s,l={};try{s=await Ee(f,e,t,n,r,a,c,i,o)}catch(e){return n.forEach((t=>{l[t.route.id]={type:"error",error:e}})),l}for(let[e,n]of Object.entries(s))if(We(n)){let o=n.result;l[e]={type:"redirect",response:_e(o,t,e,r,p)}}else l[e]=await je(n);return l}async function ge(t,n,r,o,a){let i=me("loader",o,n,t,a,null),c=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",Ae(e.history,t.path,t.controller.signal),[t.match],t.matches,a,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Fe(404,{pathname:t.path})}})})));return{loaderResults:await i,fetcherResults:(await c).reduce(((e,t)=>Object.assign(e,t)),{})}}function ve(){H=!0,$.forEach(((e,t)=>{W.has(t)&&B.add(t),Oe(t)}))}function ye(e,t,n={}){D.fetchers.set(e,t),ae({fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function be(e,t,n,r={}){let o=Ne(D.matches,t);xe(e),ae({errors:{[o.route.id]:n},fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function we(e){return G.set(e,(G.get(e)||0)+1),K.has(e)&&K.delete(e),D.fetchers.get(e)||ee}function xe(e){let t=D.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&V.has(e)||Oe(e),$.delete(e),V.delete(e),Y.delete(e),K.delete(e),B.delete(e),D.fetchers.delete(e)}function Oe(e){let t=W.get(e);t&&(t.abort(),W.delete(e))}function Se(e){for(let t of e){let e=Ze(we(t).data);D.fetchers.set(t,e)}}function Ce(){let e=[],t=!1;for(let n of Y){let r=D.fetchers.get(n);l(r,`Expected fetcher: ${n}`),"loading"===r.state&&(Y.delete(n),e.push(n),t=!0)}return Se(e),t}function De(e){let t=[];for(let[n,r]of V)if(r<e){let e=D.fetchers.get(n);l(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Oe(n),V.delete(n),t.push(n))}return Se(t),t.length>0}function Te(e){D.blockers.delete(e),J.delete(e)}function Be(e,t){let n=D.blockers.get(e)||te;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(D.blockers);r.set(e,t),ae({blockers:r})}function Ve({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=D.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ye(e){let t=Fe(404,{pathname:e}),n=r||s,{matches:o,route:a}=Le(n);return{notFoundMatches:o,route:a,error:t}}function qe(e,t){if(O){return O(e,t.map((e=>k(e,D.loaderData))))||e.key}return e.key}function Ge(e,t){if(y){let n=qe(e,t),r=y[n];if("number"==typeof r)return r}return null}function et(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:x(n,r,p,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:x(n,r,p,!0)}}}return{active:!1,matches:null}}async function tt(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=null==r,u=r||s,d=c;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:l,fetcherKey:a,patch:(e,t)=>{o.aborted||he(e,t,u,d,i)}})}catch(e){return{type:"error",error:e,partialMatches:l}}finally{t&&!o.aborted&&(s=[...s])}if(o.aborted)return{type:"aborted"};let f=w(u,n,p);if(f)return{type:"success",matches:f};let h=x(u,n,p,!0);if(!h||l.length===h.length&&l.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};l=h}}return a={get basename(){return p},get future(){return h},get state(){return D},get routes(){return s},get window(){return t},initialize:function(){if(m=e.history.listen((({action:t,location:n,delta:r})=>{if(C)return C(),void(C=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=Ve({currentLocation:D.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{C=e}));return e.history.go(-1*r),void Be(o,{state:"blocked",location:n,proceed(){Be(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(D.blockers);e.set(o,te),ae({blockers:e})}})}return le(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(oe);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,I);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(oe,JSON.stringify(n))}catch(e){u(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,I);t.addEventListener("pagehide",e),L=()=>t.removeEventListener("pagehide",e)}return D.initialized||le("POP",D.location,{initialHydration:!0}),a},subscribe:function(e){return v.add(e),()=>v.delete(e)},enableScrollRestoration:function(e,t,n){if(y=e,S=t,O=n||null,!E&&D.navigation===Z){E=!0;let e=Ge(D.location,D.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{y=null,S=null,O=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ce(D.location,D.matches,p,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=se(!1,o,r),s=D.location,l=d(D.location,a,r&&r.state);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===u?f="REPLACE":!1===u||null!=i&&$e(i.formMethod)&&i.formAction===D.location.pathname+D.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=Ve({currentLocation:s,nextLocation:l,historyAction:f});g?Be(g,{state:"blocked",location:l,proceed(){Be(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(D.blockers);e.set(g,te),ae({blockers:e})}}):await le(f,l,{submission:i,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Oe(t);let i=!0===(a&&a.flushSync),c=r||s,u=ce(D.location,D.matches,p,o,n,a?.relative),d=w(c,u,p),f=et(d,c,u);if(f.active&&f.matches&&(d=f.matches),!d)return void be(t,n,Fe(404,{pathname:u}),{flushSync:i});let{path:h,submission:m,error:v}=se(!0,u,a);if(v)return void be(t,n,v,{flushSync:i});let y=Ke(d,h),b=new g(e.unstable_getContext?await e.unstable_getContext():void 0),x=!0===(a&&a.preventScrollReset);m&&$e(m.formMethod)?await async function(t,n,o,a,i,c,u,d,f,h){function m(e){if(!e.route.action&&!e.route.lazy){let e=Fe(405,{method:h.formMethod,pathname:o,routeId:n});return be(t,n,e,{flushSync:d}),!0}return!1}if(ve(),$.delete(t),!u&&m(a))return;let g=D.fetchers.get(t);ye(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}(h,g),{flushSync:d});let v=new AbortController,y=Ae(e.history,o,v.signal,h);if(u){let e=await tt(i,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:d});if(!e.matches)return void be(t,n,Fe(404,{pathname:o}),{flushSync:d});if(m(a=Ke(i=e.matches,o)))return}W.set(t,v);let b=U,x=await me("action",y,[a],i,c,t),k=x[a.route.id];if(y.signal.aborted)return void(W.get(t)===v&&W.delete(t));if(K.has(t)){if(ze(k)||Ue(k))return void ye(t,Ze(void 0))}else{if(ze(k))return W.delete(t),z>b?void ye(t,Ze(void 0)):(Y.add(t),ye(t,Qe(h)),fe(y,k,!1,{fetcherSubmission:h,preventScrollReset:f}));if(Ue(k))return void be(t,n,k.error)}let O=D.navigation.location||D.location,S=Ae(e.history,O,v.signal),E=r||s,j="idle"!==D.navigation.state?w(E,D.navigation.location,p):D.matches;l(j,"Didn't find any matches after fetcher action");let _=++U;V.set(t,_);let P=Qe(h,k.data);D.fetchers.set(t,P);let[C,M]=ue(e.history,D,j,h,O,!1,H,B,K,$,Y,E,p,[a.route.id,k]);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=D.fetchers.get(t),r=Qe(void 0,n?n.data:void 0);D.fetchers.set(t,r),Oe(t),e.controller&&W.set(t,e.controller)})),ae({fetchers:new Map(D.fetchers)});let R=()=>M.forEach((e=>Oe(e.key)));v.signal.addEventListener("abort",R);let{loaderResults:I,fetcherResults:N}=await ge(j,C,M,S,c);if(v.signal.aborted)return;v.signal.removeEventListener("abort",R),V.delete(t),W.delete(t),M.forEach((e=>W.delete(e.key)));let L=He(I);if(L)return fe(S,L.result,!1,{preventScrollReset:f});if(L=He(N),L)return Y.add(L.key),fe(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:q}=Me(D,j,I,void 0,M,N);if(D.fetchers.has(t)){let e=Ze(k.data);D.fetchers.set(t,e)}De(_),"loading"===D.navigation.state&&_>z?(l(T,"Expected pending action"),A&&A.abort(),ie(D.navigation.location,{matches:j,loaderData:F,errors:q,fetchers:new Map(D.fetchers)})):(ae({errors:q,loaderData:Re(D.loaderData,F,j,q),fetchers:new Map(D.fetchers)}),H=!1)}(t,n,h,y,d,b,f.active,i,x,m):($.set(t,{routeId:n,path:h}),await async function(t,n,r,o,a,i,c,s,l,u){let p=D.fetchers.get(t);ye(t,Qe(u,p?p.data:void 0),{flushSync:s});let d=new AbortController,f=Ae(e.history,r,d.signal);if(c){let e=await tt(a,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:s});if(!e.matches)return void be(t,n,Fe(404,{pathname:r}),{flushSync:s});o=Ke(a=e.matches,r)}W.set(t,d);let h=U,m=await me("loader",f,[o],a,i,t),g=m[o.route.id];W.get(t)===d&&W.delete(t);if(f.signal.aborted)return;if(K.has(t))return void ye(t,Ze(void 0));if(ze(g))return z>h?void ye(t,Ze(void 0)):(Y.add(t),void await fe(f,g,!1,{preventScrollReset:l}));if(Ue(g))return void be(t,n,g.error);ye(t,Ze(g.data))}(t,n,h,y,d,b,f.active,i,x,m))},revalidate:function(){X||(X=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}}()),ve(),ae({revalidation:"loading"});let e=X.promise;return"submitting"===D.navigation.state?e:"idle"===D.navigation.state?(le(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(le(T||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===R}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:we,deleteFetcher:function(e){let t=(G.get(e)||0)-1;t<=0?(G.delete(e),K.add(e)):G.set(e,t),ae({fetchers:new Map(D.fetchers)})},dispose:function(){m&&m(),L&&L(),v.clear(),A&&A.abort(),D.fetchers.forEach(((e,t)=>xe(t))),D.blockers.forEach(((e,t)=>Te(t)))},getBlocker:function(e,t){let n=D.blockers.get(e)||te;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Te,patchRoutes:function(e,t){let n=null==r;he(e,t,r||s,c,i),n&&(s=[...s],ae({}))},_internalFetchControllers:W,_internalSetRoutes:function(e){c={},r=b(e,i,void 0,c)}},a}function ce(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=B(r||".",H(i),N(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=Ge(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="/"===s.pathname?n:W([n,s.pathname])),f(s)}function se(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&&!qe(n.formMethod))return{path:t,error:Fe(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Fe(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=Be(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!$e(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(!$e(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=Ce(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ce(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=De(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=De(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($e(s.formMethod))return{path:t,submission:s};let u=h(t);return e&&u.search&&Ge(u.search)&&r.append("index",""),u.search=`?${r}`,{path:f(u),submission:s}}function le(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function ue(e,t,n,r,o,a,i,c,s,l,u,p,d,f){let h=f?Ue(f[1])?f[1].error:f[1].data:void 0,m=e.createURL(t.location),g=e.createURL(o),v=n;a&&t.errors?v=le(n,Object.keys(t.errors)[0],!0):f&&Ue(f[1])&&(v=le(n,f[0]));let y=f?f[1].statusCode:void 0,b=y&&y>=400,x=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return pe(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(t.loaderData,t.matches[n],e))return!0;let c=t.matches[n],s=e;return fe(e,{currentUrl:m,currentParams:c.params,nextUrl:g,nextParams:s.params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!b&&(i||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||de(c,s))})})),k=[];return l.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||s.has(o))return;let l=w(p,e.path,d);if(!l)return void k.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),v=Ke(l,e.path),x=!1;u.has(o)?x=!1:c.has(o)?(c.delete(o),x=!0):x=f&&"idle"!==f.state&&void 0===f.data?i:fe(v,{currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!b&&i}),x&&k.push({key:o,routeId:e.routeId,path:e.path,matches:l,match:v,controller:new AbortController})})),[x,k]}function pe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function de(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function he(e,t,n,r,o){let a;if(e){let t=r[e];l(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let i=b(t.filter((e=>!a.some((t=>me(e,t))))),o,[e||"_","patch",String(a?.length||"0")],r);a.push(...i)}function me(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=>me(e,t))))))}var ge=new WeakMap,ve=({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=ge.get(o);i||(i={},ge.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return v.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},ye=new WeakMap;function be(e){return void 0!==e}function we(e,t,n){let r=e.map((({route:e})=>{if("object"==typeof e.lazy&&e.lazy.unstable_middleware)return ve({key:"unstable_middleware",route:e,manifest:t,mapRouteProperties:n})})).filter(be);return r.length>0?Promise.all(r):void 0}async function xe(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 ke(e){return e.matches.some((e=>e.route.unstable_middleware))?Oe(e,!1,(()=>xe(e)),((e,t)=>({[t]:{type:"error",result:e}}))):xe(e)}async function Oe(e,t,n,r){let{matches:o,request:a,params:i,context:c}=e,s={handlerResult:void 0};try{let e=o.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),r=await Se({request:a,params:i,context:c},e,t,s,n);return t?r:s.handlerResult}catch(e){if(!s.middlewareError)throw e;let n=await r(s.middlewareError.error,s.middlewareError.routeId);return t||!s.handlerResult?n:Object.assign(s.handlerResult,n)}}async function Se(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)return r.handlerResult=await o(),r.handlerResult;let s,[l,u]=c,p=!1,d=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0;let i=await Se(e,t,n,r,o,a+1);if(n)return s=i,s};try{let t=await u({request:e.request,params:e.params,context:e.context},d);return p?void 0===t?s:t:d()}catch(e){throw r.middlewareError?r.middlewareError.error!==e&&(r.middlewareError={routeId:l,error:e}):r.middlewareError={routeId:l,error:e},e}}async function Ee(e,t,n,r,o,a,i,c,s){let p=we(o,i,c),d=o.map((e=>function(e,t,n,r){let o=n[e.id];if(l(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=ye.get(o);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=(a=e,y.has(a)),c=void 0!==o[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 "${o.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 a;Object.assign(o,n),Object.assign(o,{...r(o),lazy:void 0})})();return ye.set(o,n),{lazyRoutePromise:n,lazyHandlerPromise:n}}let a,i=Object.keys(e.lazy),c=[];for(let o of i){let i=ve({key:o,route:e,manifest:n,mapRouteProperties:r});i&&(c.push(i),o===t&&(a=i))}return{lazyRoutePromise:Promise.all(c).then((()=>{})),lazyHandlerPromise:a}}(e.route,t,i,c)));p&&await p;let f=o.map(((e,o)=>{let{lazyRoutePromise:a,lazyHandlerPromise:i}=d[o],c=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:c,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?async function({type:e,request:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:a,scopedContext:i}){let c,s,l=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),t.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:i},...void 0!==o?[o]:[]),u=(async()=>{try{return{type:"data",result:await(a?a((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,c])};try{let a=n.route[e];if(r||o)if(a){let e,[t]=await Promise.all([l(a).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Fe(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([l(a),o])}else{if(!a){let e=new URL(t.url);throw Fe(404,{pathname:e.pathname+e.search})}c=await l(a)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return c}({type:t,request:n,match:e,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:r,scopedContext:s}):Promise.resolve({type:"data",result:void 0}))}})),h=await e({matches:f,request:n,params:o[0].params,fetcherKey:a,context:s}),m=d.flatMap((e=>Object.values(e).filter(be)));try{await Promise.all(m)}catch(e){}return h}async function je(e){let{result:t,type:n}=e;if(Ye(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 Y(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?Ve(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 Y(t.init?.status||500,void 0,t.data),statusCode:q(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:q(t)?t.status:void 0}:Ve(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 _e(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"),!ne.test(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ce(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Pe(e,t,n){if(ne.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=N(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Ae(e,t,n,r){let o=e.createURL(Be(t)).toString(),a={signal:n};if(r&&$e(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=Ce(r.formData):a.body=r.formData}return new Request(o,a)}function Ce(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function De(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Te(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,u={},p=n&&Ue(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(l(!ze(f),"Cannot handle redirect results in processLoaderData"),Ue(f)){let t=f.error;if(void 0!==p&&(t=p,p=void 0),c=c||{},o)c[d]=t;else{let n=Ne(e,d);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[d]=ae),s||(s=!0,a=q(f.error)?f.error.status:500),f.headers&&(u[d]=f.headers)}else i[d]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(u[d]=f.headers)})),void 0!==p&&n&&(c={[n[0]]:p},i[n[0]]=void 0),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:u}}function Me(e,t,n,r,o,a){let{loaderData:i,errors:c}=Te(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,i=a[n];if(l(i,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Ue(i)){let t=Ne(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(ze(i))l(!1,"Unhandled fetcher revalidation redirect");else{let t=Ze(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Re(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ae)).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 Ie(e){return e?Ue(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ne(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 Le(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 Fe(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 Y(e||500,i,new Error(c),!0)}function He(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ze(r))return{key:n,result:r}}}function Be(e){return f({..."string"==typeof e?h(e):e,hash:""})}function We(e){return Ye(e.result)&&X.has(e.result.status)}function Ue(e){return"error"===e.type}function ze(e){return"redirect"===(e&&e.type)}function Ve(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ye(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function qe(e){return J.has(e.toUpperCase())}function $e(e){return G.has(e.toUpperCase())}function Ge(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ke(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Ge(n||""))return e[e.length-1];let r=F(e);return r[r.length-1]}function Je(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 Xe(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 Qe(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 Ze(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 et=o.createContext(null);et.displayName="DataRouter";var tt=o.createContext(null);tt.displayName="DataRouterState";var nt=o.createContext({isTransitioning:!1});nt.displayName="ViewTransition";var rt=o.createContext(new Map);rt.displayName="Fetchers";var ot=o.createContext(null);ot.displayName="Await";var at=o.createContext(null);at.displayName="Navigation";var it=o.createContext(null);it.displayName="Location";var ct=o.createContext({outlet:null,matches:[],isDataRoute:!1});ct.displayName="Route";var st=o.createContext(null);st.displayName="RouteError";var lt=!0;function ut(){return null!=o.useContext(it)}function pt(){return l(ut(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(it).location}var dt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ft(e){o.useContext(at).static||o.useLayoutEffect(e)}function ht(){let{isDataRoute:e}=o.useContext(ct);return e?function(){let{router:e}=Ot("useNavigate"),t=Et("useNavigate"),n=o.useRef(!1);return ft((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{u(n.current,dt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){l(ut(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(et),{basename:t,navigator:n}=o.useContext(at),{matches:r}=o.useContext(ct),{pathname:a}=pt(),i=JSON.stringify(H(r)),c=o.useRef(!1);return ft((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(u(c.current,dt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=B(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:W([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function mt(e,{relative:t}={}){let{matches:n}=o.useContext(ct),{pathname:r}=pt(),a=JSON.stringify(H(n));return o.useMemo((()=>B(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function gt(e,t,n,r){l(ut(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:i}=o.useContext(at),{matches:c}=o.useContext(ct),s=c[c.length-1],p=s?s.params:{},d=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;if(lt){let e=m&&m.path||"";Pt(d,!m||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 g,v=pt();if(t){let e="string"==typeof t?h(t):t;l("/"===f||e.pathname?.startsWith(f),`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 "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=v;let y=g.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=!i&&n&&n.matches&&n.matches.length>0?n.matches:w(e,{pathname:b});lt&&(u(m||null!=x,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),u(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.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 k=xt(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:W([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:W([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,r);return t&&k?o.createElement(it.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},k):k}function vt(){let e=jt(),t=q(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 lt&&(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 yt=o.createElement(vt,null),bt=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(ct.Provider,{value:this.props.routeContext},o.createElement(st.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function wt({routeContext:e,match:t,children:n}){let r=o.useContext(et);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ct.Provider,{value:e},n)}function xt(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,p=!1,d=null,f=null;n&&(u=i&&r.route.id?i[r.route.id]:void 0,d=r.route.errorElement||yt,c&&(s<0&&0===l?(Pt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,f=null):s===l&&(p=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?d:p?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(wt,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(bt,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ot(e){let t=o.useContext(et);return l(t,kt(e)),t}function St(e){let t=o.useContext(tt);return l(t,kt(e)),t}function Et(e){let t=function(e){let t=o.useContext(ct);return l(t,kt(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 jt(){let e=o.useContext(st),t=St("useRouteError"),n=Et("useRouteError");return void 0!==e?e:t.errors?.[n]}var _t={};function Pt(e,t,n){t||_t[e]||(_t[e]=!0,u(!1,n))}var At={};function Ct(e,t){e||At[t]||(At[t]=!0,console.warn(t))}var Dt=!0;function Tt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Dt&&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&&(Dt&&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&&(Dt&&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 Mt=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 Rt({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(),[p,d]=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))),Ct(!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(Ct(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((()=>{p&&(l&&l.resolve(),p.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),d(void 0),i(void 0),s({isTransitioning:!1})}))})),void t((()=>d(o)))}p?(l&&l.resolve(),p.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,p,l]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&u(new Mt)}),[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),d(void 0),i(void 0),s({isTransitioning:!1})})),d(c)}}),[a,l,e.window]),o.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,p,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(et.Provider,{value:b},o.createElement(tt.Provider,{value:n},o.createElement(rt.Provider,{value:m.current},o.createElement(nt.Provider,{value:c},o.createElement(Ft,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(It,{routes:e.routes,future:e.future,state:n})))))),null)}var It=o.memo((function({routes:e,future:t,state:n}){return gt(e,void 0,n,t)}));function Nt({to:e,replace:t,state:n,relative:r}){l(ut(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(at);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(ct),{pathname:c}=pt(),s=ht(),p=B(e,H(i),c,"path"===r),d=JSON.stringify(p);return o.useEffect((()=>{s(JSON.parse(d),{replace:t,state:n,relative:r})}),[s,d,r,t,n]),null}function Lt(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 Ft({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){l(!ut(),"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:p="/",search:d="",hash:f="",state:m=null,key:g="default"}=n,v=o.useMemo((()=>{let e=N(p,c);return null==e?null:{location:{pathname:e,search:d,hash:f,state:m,key:g},navigationType:r}}),[c,p,d,f,m,g,r]);return u(null!=v,`<Router basename="${c}"> is not able to match the URL "${p}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(at.Provider,{value:s},o.createElement(it.Provider,{children:t,value:v}))}function Ht({children:e,location:t}){return gt(Bt(e),t)}o.Component;function Bt(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,Bt(e.props.children,a));l(e.type===Lt,`[${"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=Bt(e.props.children,a)),n.push(i)})),n}var Wt="get",Ut="application/x-www-form-urlencoded";function zt(e){return null!=e&&"string"==typeof e.tagName}var Vt=null;var Yt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qt(e){return null==e||Yt.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ut}"`),null)}function $t(e,t){let n,r,o,a,i;if(function(e){return zt(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?N(i,t):null,n=e.getAttribute("method")||Wt,o=qt(e.getAttribute("enctype"))||Ut,a=new FormData(e)}else if(function(e){return zt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return zt(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?N(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Wt,o=qt(e.getAttribute("formenctype"))||qt(i.getAttribute("enctype"))||Ut,a=new FormData(i,e),!function(){if(null===Vt)try{new FormData(document.createElement("form"),0),Vt=!1}catch(e){Vt=!0}return Vt}()){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(zt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Wt,r=null,o=Ut,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function Gt(e,t){if(!1===e||null==e)throw new Error(t)}async function Kt(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 Jt(e){return null!=e&&"string"==typeof e.page}function Xt(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 Qt(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 Zt(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 en(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Jt(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 tn(e){return{__html:e}}Symbol("SingleFetchRedirect");function nn(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===N(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function rn({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://remix.run/guides/errors for more information."\n );\n '}});if(q(e))return o.createElement(on,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);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(on,{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 on({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=un();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(vn,null):null)))}function an(e){return!0===e}function cn(){let e=o.useContext(et);return Gt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sn(){let e=o.useContext(tt);return Gt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ln=o.createContext(void 0);function un(){let e=o.useContext(ln);return Gt(e,"You must render this element inside a <HydratedRouter> element"),e}function pn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function dn(e,t,n){if(n&&!gn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function fn({page:e,...t}){let{router:n}=cn(),r=o.useMemo((()=>w(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(mn,{page:e,matches:r,...t}):null}function hn(e){let{manifest:t,routeModules:n}=un(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return en((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Kt(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Xt).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 mn({page:e,matches:t,...n}){let r=pt(),{manifest:a,routeModules:i}=un(),{basename:c}=cn(),{loaderData:s,matches:l}=sn(),u=o.useMemo((()=>Qt(e,t,l,a,r,"data")),[e,t,l,a,r]),p=o.useMemo((()=>Qt(e,t,l,a,r,"assets")),[e,t,l,a,r]),d=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=nn(e,c);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((()=>Zt(p,a)),[p,a]),h=hn(p);return o.createElement(o.Fragment,null,d.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,...t}))))}ln.displayName="FrameworkContext";var gn=!1;function vn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:a,renderMeta:i}=un(),{router:c,static:s,staticContext:l}=cn(),{matches:u}=sn(),p=an(a);i&&(i.didRenderScripts=!0);let d=dn(u,null,r);o.useEffect((()=>{0}),[]);let f=o.useMemo((()=>{let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${d.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Gt(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 ${p?`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=w(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,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${d.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:tn(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:tn(a),type:"module",async:!0}))}),[]),h=gn?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(Zt(d,t,{includeHydrateFallback:!0}))),m="object"==typeof t.sri?t.sri:{};return gn?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:m})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:m[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:m[t.entry.module],suppressHydrationWarning:!0}),h.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:m[t],suppressHydrationWarning:!0}))),f)}function yn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var bn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{bn&&(window.__reactRouterVersion="7.5.0")}catch(e){}function wn(e,t){return ie({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({window:t?.window}),hydrationData:t?.hydrationData||xn(),routes:e,mapRouteProperties:Tt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function xn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:kn(e.errors)}),e}function kn(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 Y(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 On=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:c,target:s,to:p,preventScrollReset:d,viewTransition:h,...m},g){let v,{basename:y}=o.useContext(at),b="string"==typeof p&&On.test(p),w=!1;if("string"==typeof p&&b&&(v=p,bn))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),n=N(t.pathname,y);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:w=!0}catch(e){u(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){l(ut(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(at),{hash:a,pathname:i,search:c}=mt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:W([n,i])),r.createHref({pathname:s,search:c,hash:a})}(p,{relative:r}),[k,O,S]=function(e,t){let n=o.useContext(ln),[r,a]=o.useState(!1),[i,c]=o.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:p,onTouchStart:d}=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:pn(s,h),onBlur:pn(l,m),onMouseEnter:pn(u,h),onMouseLeave:pn(p,m),onTouchStart:pn(d,h)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:c}={}){let s=ht(),l=pt(),u=mt(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])}(p,{replace:i,state:c,target:s,preventScrollReset:d,relative:r,viewTransition:h});let j=o.createElement("a",{...m,...S,href:v||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:yn(g,O),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?o.createElement(o.Fragment,null,j,o.createElement(fn,{page:x})):j}));Sn.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},p){let d=mt(i,{relative:u.relative}),f=pt(),h=o.useContext(tt),{navigator:m,basename:g}=o.useContext(at),v=null!=h&&function(e,t={}){let n=o.useContext(nt);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_n("useViewTransitionState"),a=mt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=N(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=N(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(a.pathname,c)||null!=R(a.pathname,i)}(d)&&!0===c,y=m.encodeLocation?m.encodeLocation(d).pathname:d.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=N(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,O=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:O,isPending:S,isTransitioning:v},j=O?e:void 0;k="function"==typeof n?n(E):[n,O?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof a?a(E):a;return o.createElement(Sn,{...u,"aria-current":j,className:k,ref:p,style:_,to:i,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var En=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:c=Wt,action:s,onSubmit:u,relative:p,preventScrollReset:d,viewTransition:h,...m},g)=>{let v=Cn(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(at),r=o.useContext(ct);l(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...mt(e||".",{relative:t})},c=pt();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:W([n,i.pathname]));return f(i)}(s,{relative:p}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&On.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:p,preventScrollReset:d,viewTransition:h})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function jn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _n(e){let t=o.useContext(et);return l(t,jn(e)),t}En.displayName="Form";var Pn=0,An=()=>`__${String(++Pn)}__`;function Cn(){let{router:e}=_n("useSubmit"),{basename:t}=o.useContext(at),n=Et("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:c,formData:s,body:l}=$t(r,t);if(!1===o.navigate){let t=o.fetcherKey||An();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])}new TextEncoder},87296:(e,t,n)=>{var r,o=n(55481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},87424:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=l();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=s(n(87695)),a=s(n(59321)),i=s(n(13486)),c=n(36462);function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="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},u(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(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 h(e){return function(){var t,n=g(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=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return m(e)}(this,t)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){return!0},w="suggestions-revealed",x="input-focused",k="input-changed",O="escape-pressed",S=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&&v(e,t)}(l,e);var t,n,o,s=h(l);function l(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),y(m(t=s.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),y(m(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),y(m(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),y(m(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),y(m(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),y(m(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),y(m(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),y(m(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,a=r.onSuggestionSelected,i=r.onSuggestionsFetchRequested;a&&a(e,n);var c=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);o||c?i({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),y(m(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,a=t.getSuggestionIndices(t.findSuggestionElement(e.target)),i=a.sectionIndex,c=a.suggestionIndex,s=t.getSuggestion(i,c),l=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,l,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:l,suggestionIndex:c,sectionIndex:i,method:"click"});var u=t.props.shouldKeepSuggestionsOnSelect(s);r||u||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),y(m(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,a=n.onBlur,i=t.getHighlightedSuggestion(),c=r(o,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),a&&a(t.blurEvent,{highlightedSuggestion:i})})),y(m(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),y(m(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),y(m(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),y(m(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),y(m(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=l,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,a.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,a.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(o){var c=this.getHighlightedSuggestion();c!=t.highlightedSuggestion&&o({suggestion:c})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var a=o.valueBeforeUpDown;return null===t?a=null:null===a&&void 0!==n&&(a=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:a}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,a=n.getSectionSuggestions;return o?a(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,a=r.onChange;t!==o&&a(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,o=e.shouldRenderSuggestions,a=r.value;return n.length>0&&o(a,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,a=t.onSuggestionsFetchRequested,s=t.renderSuggestion,l=t.inputProps,u=t.multiSection,p=t.renderSectionTitle,f=t.id,h=t.getSectionSuggestions,m=t.theme,g=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,S=t.containerProps,E=this.state,j=E.isFocused,_=E.isCollapsed,P=E.highlightedSectionIndex,A=E.highlightedSuggestionIndex,C=E.valueBeforeUpDown,D=v?b:this.props.shouldRenderSuggestions,T=l.value,M=l.onFocus,R=l.onKeyDown,I=this.willRenderSuggestions(this.props,"render"),N=v||j&&!_&&I,L=N?n:[],F=d({},l,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=D(T,x);e.setState({isFocused:!0,isCollapsed:!n}),M&&M(t),n&&a({value:T,reason:x})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=D(n,k);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?a({value:n,reason:k}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(_)D(T,w)&&(a({value:T,reason:w}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var i,c=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex;i=null===s?null===C?T:C:e.getSuggestionValueByIndex(c,s),e.updateHighlightedSuggestion(c,s,T),e.maybeCallOnChange(t,i,40===o?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var l=e.getHighlightedSuggestion();if(N&&!v&&e.closeSuggestions(),null!=l){t.preventDefault();var u=g(l);e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:A,sectionIndex:P,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:N&&t.preventDefault();var p=N&&!v;null===C?p||(e.maybeCallOnChange(t,"","escape"),D("",O)?a({value:"",reason:O}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,C,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),H={query:this.getQuery()};return r.default.createElement(i.default,{multiSection:u,items:L,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:H,renderSectionTitle:p,getSectionItems:h,highlightedSectionIndex:P,highlightedItemIndex:A,containerProps:S,inputProps:F,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(m),id:f,ref:this.storeAutowhateverRef})}}],n&&f(t.prototype,n),o&&f(t,o),l}(r.Component);t.default=S,y(S,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:o.default.func,onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string,containerProps:o.default.object}),y(S,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1",containerProps:{}})},87683:(e,t,n)=>{"use strict";n.d(t,{F3:()=>f,GT:()=>d,J9:()=>s,JF:()=>l,MT:()=>u,V1:()=>c});var r=n(81293),o=n(54819),a=n(62587),i=n(89160);function c(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function d(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,i=Intl.DisplayNames,c=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:p(e.dateTime),strategy:o.W.variadic}),s=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:p(e.number),strategy:o.W.variadic}),l=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:p(e.pluralRules),strategy:o.W.variadic});return{getDateTimeFormat:c,getNumberFormat:s,getMessageFormat:(0,o.B)((function(e,t,n,o){return new a.S(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:s,getDateTimeFormat:c,getPluralRules:l}},o||{}))}),{cache:p(e.message),strategy:o.W.variadic}),getRelativeTimeFormat:(0,o.B)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e,!1)))}),{cache:p(e.relativeTime),strategy:o.W.variadic}),getPluralRules:l,getListFormat:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e,!1)))}),{cache:p(e.list),strategy:o.W.variadic}),getDisplayNames:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(i.bind.apply(i,(0,r.fX)([void 0],e,!1)))}),{cache:p(e.displayNames),strategy:o.W.variadic})}}function f(e,t,n,r){var o,a=e&&e[t];if(a&&(o=a[n]),o)return o;r(new i.OC("No ".concat(t," format named: ").concat(n)))}},87695:(e,t,n)=>{e.exports=n(915)()},87730:(e,t,n)=>{var r=n(29172),o=n(27301),a=n(86009),i=a&&a.isMap,c=i?o(i):r;e.exports=c},87805:(e,t,n)=>{var r=n(43360),o=n(75288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),a=n(80631),i=n(28586),c=n(30756),s=n(89578),l=n(77797);e.exports=function(e,t){return i(e)&&c(t)?s(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},88695:(e,t,n)=>{"use strict";n.d(t,{A:()=>lc});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),c=n(43786),s=n(63205),l=n(5556),u=n.n(l),p={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},d="OUTPUTJOB",f="ENTITIES",h=o()(o()(o()(o()(o()({},p.neutral,null),p.error,"times-circle"),p.warning,"exclamation-circle"),p.success,"check-circle"),p.info,"info-circle"),m=(u().shape({key:u().string.isRequired,message:u().string,read:u().bool,timestamp:u().string,originId:u().string,type:u().string,downloadStream:u().shape({readableStream:u().any.isRequired,filename:u().string.isRequired}),taskProgress:u().shape({taskExecutionKey:u().string.isRequired,status:u().string,message:u().string,percentage:u().number,done:u().number,total:u().number,supportsCancellation:u().bool,isRunning:u().bool})}),i().mark(S)),g=i().mark(E);function v(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={failed:"error",info:"info",warning:"warning",success:"success"},w="running_infinite",x="running_absolute",k="pending",O=function(e){return e.status&&(e.status===k||e.status===x||e.status===w)};function S(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=y(y({},e),{},{type:b[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?y(y({},e.taskProgress),{},{isRunning:O(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null}),n.next=3,(0,c.T1)(E,t.result);case 3:return t.result=n.sent,n.abrupt("return",t);case 5:case"end":return n.stop()}}),m)}function E(e){var t,n,r,o,a,l;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!e||e.type!==d){i.next=14;break}return t=null,i.prev=2,n=e.content[0].key,i.next=6,(0,c.T1)(s.A.fetchEntity,"Output_job",n,{paths:["document"]});case 6:r=i.sent,o=r.paths.document.value,a=o.fileName,l=o.binaryLink,t={name:a,link:l,description:e.content[0].display},i.next=13;break;case 11:i.prev=11,i.t0=i.catch(2);case 13:return i.abrupt("return",y(y({},e),{},{file:t}));case 14:return i.abrupt("return",e);case 15:case"end":return i.stop()}}),g,null,[[2,11]])}var j,_,P=n(71468),A="notification/MODAL",C="notification/REMOVE_MODAL",D=function(e,t,n,r){return{type:A,payload:{id:e,title:t,message:n,component:r,cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],cancelCallback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){},options:arguments.length>6&&void 0!==arguments[6]?arguments[6]:{}}}},T=function(e){return{type:C,payload:{id:e}}},M=n(81845),R=n.n(M),I=n(44518),N=n(72189),L=n.n(N),F=n(51510),H=F.Ay.div.withConfig({displayName:"StyledPageOverlay"})(j||(j=L()(["\n background-color: rgb(50 50 50 / 70%);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),B=F.Ay.div.withConfig({displayName:"StyledHolder"})(_||(_=L()(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n\n /* higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n lower than ext-js legacy actions */\n z-index: 9000;\n"]))),W=n(56375),U=n(23228),z=n(85015),V=n.n(z),Y=n(58065),q=n(64116),$=n(74848);const G=(0,F.SL)((function(e){return(0,$.jsx)(q.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));var K,J,X=n(6442),Q=n(40622),Z=n(4883);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(K||(K={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(J||(J={}));var ee=function(e){var t=(0,X.A)(),n=e.value,r=e.children,o=(0,Q.Tt)(e,["value","children"]);return r(t.formatNumberToParts(n,o))};ee.displayName="FormattedNumberParts";function te(e){var t=function(t){var n=(0,X.A)(),r=t.value,o=t.children,a=(0,Q.Tt)(t,["value","children"]),i="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(i,a):n.formatTimeToParts(i,a))};return t.displayName=J[e],t}function ne(e){var t=function(t){var n=(0,X.A)(),r=t.value,o=t.children,a=(0,Q.Tt)(t,["value","children"]),i=n[e](r,a);if("function"==typeof o)return o(i);var c=n.textComponent||Z.Fragment;return Z.createElement(c,null,i)};return t.displayName=K[e],t}ee.displayName="FormattedNumberParts";var re=ne("formatDate"),oe=(ne("formatTime"),ne("formatNumber"));ne("formatList"),ne("formatDisplayName"),te("formatDate"),te("formatTime");const ae=function(e){var t=(0,X.A)();return(0,$.jsx)(W.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,$.jsx)(re,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var ie,ce=n(85577),se=n(38798);const le=(0,se.Ay)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),ie||(ie=(0,$.jsx)(W.Ay.Span,{}));var o=(0,ce.GP)(r,"HH:mm");return(0,$.jsxs)(W.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,$.jsx)(re,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var ue,pe=n(84890),de=n(59182),fe=n(67940);function he(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ge=function(e){var t=e.options||{},n=(0,$.jsxs)($.Fragment,{children:[t.title&&(0,$.jsx)(W.Ay.H5,{children:t.title}),(0,$.jsx)(de.A,me({},e))]});return"text"===t.mode?n:(0,$.jsx)(pe.A,{content:n,isPlainHtml:!0,children:ue||(ue=(0,$.jsx)(fe.o,{children:(0,$.jsx)(q.A,{icon:"question-circle"})}))})};var ve=n(58156),ye=n.n(ve),be=n(31558),we=n(66779),xe=n(44905);const ke=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=ye()(r,t.resourceKey,null);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(pe.A,{content:a?(0,$.jsx)("div",{dangerouslySetInnerHTML:{__html:we.A.sanitizeHtml(a)}}):null,children:(0,$.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,$.jsx)(xe.A,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,$.jsx)(xe.A,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:be.A.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};var Oe=n(25107);const Se=function(e){return(0,$.jsx)(Oe.A,{id:e.id,onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};var Ee=n(81792);const je=function(e){var t=e.value,n=parseInt(t),r=Ee.A.formatDuration(n);return(0,$.jsx)(W.Ay.Time,{dateTime:r,title:r,children:r})};const _e=function(e){return(0,$.jsx)(xe.A,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};var Pe,Ae=n(57488),Ce=F.Ay.img.withConfig({displayName:"StyledImage"})(Pe||(Pe=L()(["\n max-width: 100%;\n max-height: 100%;\n width: 200px;\n border: 1px solid ",";\n border-radius: ",";\n"])),Ae.t7.color("border"),Ae.t7.radii("form"));const De=function(e){var t=e.value;return(0,$.jsx)(Ce,{src:t.binaryLink,srcSet:"".concat(t.thumbnailLink," 250w, ").concat(t.binaryLink," 400w"),sizes:"(max-width: 250px) 125px, 200px",alt:t.fileName,title:t.fileName})};const Te=function(e){return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Me(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=function(){return"; "};const Ne=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,c=a.linkProps,s=a.tooltips,l=a.loadTooltip,u=(null==t?void 0:t.length)>0?t.map((function(e){if(null!=i&&i.DetailLink){var t=ye()(s,e.key,null);return(0,$.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,$.jsx)(i.DetailLink,Re(Re({},c),{},{entityKey:e.key,children:(0,$.jsx)(pe.A,{content:t?(0,$.jsx)("div",{dangerouslySetInnerHTML:{__html:we.A.sanitizeHtml(t)}}):null,children:(0,$.jsx)("span",{onMouseOver:function(){return l&&!t&&l(e.key)},children:e.display})})}))},e.key)}return(0,$.jsx)(Z.Fragment,{children:e.display},e.key)})).reduce((function(e,t,n){return[e,(0,$.jsx)(Ie,{},"sep".concat(n)),t]})):null;return(0,$.jsx)(W.Ay.Span,{breakWords:r,useTitle:o,children:u})};const Le=function(e){return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,$.jsx)(oe,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const Fe=function(e){var t;return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,$.jsx)(oe,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function He(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=(0,Z.lazy)((function(){return Promise.all([n.e(211),n.e(672)]).then(n.bind(n,74302))}));const Ue=function(e){return(0,$.jsx)(Z.Suspense,{fallback:"",children:(0,$.jsx)(We,Be({},e))})};var ze=n(23076);function Ve(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qe=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},i=a.tooltips,c=a.loadTooltip,s=a.navigationStrategy,l=a.linkProps,u=ye()(i,t.key,null);t=ze.A.getOrFirst(t);var p=(0,$.jsx)(W.Ay.Span,{breakWords:r,useTitle:!u,id:o,children:t.display});return(null!=s&&s.DetailLink?(0,$.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,$.jsx)(s.DetailLink,Ye(Ye({},l),{},{entityKey:t.key,children:(0,$.jsx)(pe.A,{content:u?(0,$.jsx)("div",{dangerouslySetInnerHTML:{__html:we.A.sanitizeHtml(u)}}):null,children:(0,$.jsx)("span",{onMouseOver:function(){return c&&!u&&c(t.key)},id:o,children:p})})}))}):null)||p};const $e=function(e){return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};var Ge=n(41224),Ke=function(e,t){return parseInt(e.split(":")[t])||0};const Je=(0,se.Ay)((function(e){var t=e.value,n=(e.intl,Ke(t,0)),r=Ke(t,1),o=Ke(t,2),a=Ke(t,3),i=new Date(2e3,1,1,n,r,o,a),c=(0,ce.GP)(i,"HH:mm:ss.SSS"),s=(0,ce.GP)(i,"HH:mm");return(0,$.jsx)(W.Ay.Time,{dateTime:c,title:s,children:s})}));const Xe=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,$.jsx)(xe.A,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var Qe,Ze={boolean:G,date:ae,datetime:le,image:De,document:Se,"document-compact":ke,duration:je,email:_e,html:de.A,integer:Te,"multi-remote":Ne,"multi-select":Ne,number:Le,percent:Fe,phone:Ue,remote:qe,"single-select":qe,string:$e,text:Ge.A,time:Je,url:Xe,description:ge};const et=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,c=void 0===i||i,s=e.id;if(Ze[t]){var l=Ze[t];return(0,$.jsx)(l,{value:n,options:r,breakWords:a,useTitle:c,id:s})}return console.log("No FormattedValue mapper defined for component type",t,n),Qe||(Qe=(0,$.jsx)("div",{}))};var tt;const nt=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle,i=e.id;return null==n||""===n?tt||(tt=(0,$.jsx)("span",{})):(0,$.jsx)(et,{componentType:t,value:n,options:r,breakWords:o,useTitle:a,id:i})};const rt=function(e){var t,n=e.children;return V()(n)?(t=n)&&/<\/?[a-zA-Z0-9]*\/?>/.test(t)?(0,$.jsx)(nt,{type:"html",value:n}):function(e){return e&&e.startsWith("client.")}(n)?(0,$.jsx)(Y.A,{id:n}):(0,$.jsx)("span",{children:n}):n};var ot,at;const it={blockingDiplayStyles:(0,F.AH)(ot||(ot=L()(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),Ae.t7.color("signal.info"),Ae.t7.color("paper")),titleWrapperStyles:(0,F.AH)(at||(at=L()(["\n color: ",";\n"])),Ae.t7.color("paper"))};var ct,st;const lt={blockingDiplayStyles:(0,F.AH)(ct||(ct=L()(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),Ae.t7.color("paper"),Ae.t7.color("border"),Ae.t7.radii("toaster"),Ae.t7.color("text")),titleWrapperStyles:(0,F.AH)(st||(st=L()(["\n color: ",";\n"])),Ae.t7.color("signal.info"))};var ut,pt,dt=o()(o()({},U.A.EmbedType.admin,it),U.A.EmbedType.widget,lt),ft=n(26166),ht=F.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(ut||(ut=L()(["\n /* only latest modal should be above mask */\n z-index: ",";\n position: fixed;\n top: 10px;\n left: 50%;\n transform: translateX(-155px);\n width: 310px;\n padding: ",";\n ","\n"])),(function(e){return e.isLatest?1:-1}),ft.A.space(-.5),(function(e){return e.styles})),mt=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(pt||(pt=L()(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),ft.A.font(1.5),Ae.t7.fontWeight("regular"),(function(e){return e.styles}));const gt=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,a=U.A.embedStrategy({mapping:dt});return(0,$.jsxs)(ht,{styles:a.blockingDiplayStyles,isLatest:o,children:[n&&(0,$.jsx)(W.Ay.H1,{children:(0,$.jsx)(mt,{styles:a.titleWrapperStyles,children:(0,$.jsx)(rt,{children:n})})}),r&&(0,$.jsx)(W.Ay.Span,{children:(0,$.jsx)(rt,{children:r})})]})};const vt=function(e){var t=e.blocker,n=e.isLatest;return(0,$.jsx)(gt,{blocker:t,isLatest:n})};var yt=n(87105),bt=n(96424),wt=function(e){var t=e.onLocationChange,n=(0,yt.zy)(),r=bt.A.usePrevious(n.pathname);return(0,Z.useEffect)((function(){n.pathname!==r&&r&&t()}),[n.pathname,r,t]),null};wt.propTypes={onLocationChange:u().func};const xt=function(e){var t=e.onLocationChange,n=(0,yt.Ri)();return(0,$.jsx)($.Fragment,{children:n&&(0,$.jsx)(wt,{onLocationChange:t})})};var kt=n(48067),Ot=n(98671),St=n(8271),Et=n(22056),jt=n.n(Et);function _t(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 Pt(e){return function(t){var n=(0,Z.useState)(null),r=jt()(n,2),a=r[0],i=r[1],c=(0,Z.useRef)(!0);return(0,Z.useEffect)((function(){return e().then((function(e){return c.current?i((function(){return e})):null})),function(){c.current=!1}}),[]),null!==a?(0,$.jsx)(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)):null}}var At=n(73082);function Ct(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tt={};const Mt={loadRoute:function(e,t,n,r){return function(o){if(r&&Tt[r]){var a=Tt[r];return(0,$.jsx)(a,Dt({},o))}var i=Pt((function(){return new Promise((function(r){n().then((function(n){var o=n.default;o.reducers&&Ot.A.injectReducers(e,o.reducers),o.sagas&&o.sagas.forEach((function(t){St.A.injectSaga(e,t)})),o.inputDispatches&&o.inputDispatches.forEach((function(n){!function(e,t,n){var r=n.key,o=n.actionCreator,a=n.mandatory,i=void 0!==a&&a,c=n.defaultValue,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:At.A.logError;if(Object.prototype.hasOwnProperty.call(t,r)||c){var l=o(t[r]||c);e.dispatch(l)}else!0===i&&s("EntityBrowser: Mandatory field '".concat(r,"' not set in input"))}(e,t,n)})),r(o.container)}))}))}));return r&&(Tt[r]=i),(0,$.jsx)(i,Dt({},o))}},extractParamsFromPath:function(e,t){var n=(0,kt.YW)(e)(t);return(null==n?void 0:n.params)||null},InvokeOnLocationChange:xt,redirect:function(e){window.location.href=e}};var Rt,It,Nt,Lt,Ft,Ht=n(7647),Bt="250px",Wt=ft.A.space(.25),Ut=(0,F.AH)(Rt||(Rt=L()(["\n /* Base grid properties */\n grid-gap: ",";\n grid-template-columns: repeat(auto-fit, minmax(",", 1fr));\n\n /* Custom ratio override */\n ","\n\n /* Mobile layout */\n ","\n"])),Wt,Bt,(function(e){var t=e.ratio;return t&&(0,F.AH)(It||(It=L()(["\n grid-template-columns: ",";\n "])),function(e){return e?e.split(":").filter(Boolean).map((function(e){return"minmax(".concat(Bt,", ").concat(e,"fr)")})).join(" "):""}(t))}),(function(e){return e.containerWidth<600&&(0,F.AH)(Nt||(Nt=L()(["\n grid-template-columns: 100%;\n grid-gap: 0;\n "])))}));const zt=F.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(Lt||(Lt=L()(["\n /* Base layout styles */\n display: grid;\n padding-right: ",";\n\n /* Grid column configuration */\n ","\n\n /* Height adjustment */\n ","\n"])),ft.A.space(0),Ut,(function(e){return e.occupiesRemainingHeight&&(0,F.AH)(Ft||(Ft=L()(["\n flex: 1;\n "])))}));var Vt,Yt,qt,$t,Gt,Kt,Jt,Xt,Qt,Zt,en,tn,nn,rn,on=n(62764),an=n(1671),cn=ft.A.space(.5),sn={small:(0,F.AH)(Vt||(Vt=L()(["\n max-width: 350px;\n "]))),medium:(0,F.AH)(Yt||(Yt=L()(["\n max-width: 700px;\n "]))),large:(0,F.AH)(qt||(qt=L()(["\n max-width: 700px;\n\n @media (min-width: 875px) {\n max-width: 80%;\n }\n "])))},ln=F.Ay.div.withConfig({displayName:"StyledModalContent"})($t||($t=L()(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n "," {\n padding-right: 0;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgb(0 0 0 / 40%);\n max-height: 80%;\n min-width: 350px;\n margin: auto;\n\n ","\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),Ae.t7.color("paper"),Ae.t7.radii("modal"),cn,Ht.A,zt,(function(e){var t=e.size;return sn[t]})),un=F.Ay.button.withConfig({displayName:"StyledCloseButton"})(Gt||(Gt=L()(["\n background-color: transparent;\n border: none;\n cursor: pointer;\n font-size: 22px;\n opacity: 0.8;\n outline: none;\n position: relative;\n padding: 0;\n z-index: 1;\n margin-left: auto;\n align-self: flex-start;\n color: ",";\n\n &:hover {\n opacity: 1;\n }\n\n &:focus {\n outline: none;\n }\n"])),Ae.t7.color("text")),pn=F.Ay.div.withConfig({displayName:"StyledModalWrapper"})(Kt||(Kt=L()(["\n width: 100%;\n height: 100%;\n position: absolute;\n\n /* only latest modal should be above mask */\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),dn=F.Ay.div.withConfig({displayName:"StyledModalHeader"})(Jt||(Jt=L()(["\n grid-row-start: header;\n display: flex;\n"]))),fn=F.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(Xt||(Xt=L()(["\n padding-bottom: ",";\n"])),ft.A.space(.5)),hn=F.Ay.div.withConfig({displayName:"StyledModalBody"})(Qt||(Qt=L()(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),mn=F.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(Zt||(Zt=L()(["\n padding-bottom: ",";\n"])),ft.A.space(0)),gn=(0,F.Ay)(on.A).withConfig({displayName:"StyledModalButton"})(en||(en=L()(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),ft.A.space(0)),vn=F.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(tn||(tn=L()(["\n display: flex;\n justify-content: flex-end;\n"]))),yn=(0,F.DU)(nn||(nn=L()(["\n "," {\n && {\n z-index: 9999999; /* higher than StyledModalHolder */\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),an.Ec);const bn=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,a=n.title,i=n.id,c=n.component,s=n.options,l=e.onClose,u=e.onCancel,p=e.isLatest,d=(0,Z.useRef)(null),f=(s||{}).size,h=void 0===f?"medium":f,m=(0,Z.useCallback)((function(){l(i)}),[l,i]),g=(0,Z.useCallback)((function(){u(i)}),[u,i]);(0,Z.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&g()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[g,r]),(0,Z.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var v=(0,Z.useMemo)((function(){return t||(t=(0,$.jsx)(c,{close:m}))}),[c,m]);return(0,$.jsxs)($.Fragment,{children:[rn||(rn=(0,$.jsx)(yn,{})),(0,$.jsx)(Mt.InvokeOnLocationChange,{onLocationChange:m}),(0,$.jsx)(pn,{isLatest:p,children:(0,$.jsxs)(ln,{ref:d,"data-cy":"modal-content",size:h,children:[(0,$.jsxs)(dn,{children:[a&&(0,$.jsx)(fn,{children:(0,$.jsx)(W.Ay.H1,{children:(0,$.jsx)(rt,{children:a})})}),r&&(0,$.jsx)(un,{onClick:g,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,$.jsxs)(hn,{children:[o&&(0,$.jsx)(mn,{children:(0,$.jsx)(W.Ay.Span,{children:(0,$.jsx)(rt,{children:o})})}),v]})]})})]})};const wn=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,$.jsx)(bn,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};var xn={closeModal:T};const kn=(0,P.Ng)((function(){return{}}),xn)(wn),On="MODAL",Sn="BLOCKING_INFO";var En;const jn=function(e){var t=e.overlays;return t.length>0&&R().createPortal((0,$.jsxs)(B,{className:I.e,children:[t.map((function(e,n){return function(e,t,n){return e.type===On?(0,$.jsx)(kn,{idx:t,modal:e,isLatest:n},t):e.type===Sn?(0,$.jsx)(vt,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),En||(En=(0,$.jsx)(H,{}))]}),document.body)};var _n={closeModal:T};const Pn=(0,P.Ng)((function(e){return{overlays:e.notification.overlay.overlays}}),_n)(jn);var An,Cn,Dn,Tn,Mn,Rn,In,Nn,Ln="notification/SET_UNREAD_NOTIFICATION_KEYS",Fn="notification/UPDATE_UNREAD_NOTIFICATION",Hn="notification/LOAD_NOTIFICATIONS",Bn="notification/SET_NOTIFICATION",Wn="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",Un="notification/UPDATE_NOTIFICATION",zn="notification/IS_LOADING_MORE_NOTIFICATIONS",Vn="notification/MARK_AS_READ",Yn="notification/CANCEL_TASK",qn=function(e){return{type:Bn,payload:{notifications:e}}},$n=function(e){return{type:Un,payload:{notification:e}}},Gn=function(){return{type:zn,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},Kn=function(e){return{type:Vn,payload:{notificationKey:e}}},Jn=function(e){return{type:Yn,payload:{taskExecutionKey:e}}},Xn="notification/TOASTER",Qn="notification/REMOVE_TOASTER",Zn="notification/REMOVE_TOASTER_FROM_STORE",er=function(e){return{type:Xn,payload:{toaster:e}}},tr=function(e,t){return{type:Qn,payload:{key:e,manually:t}}},nr=function(e){return{type:Zn,payload:{key:e}}},rr=n(72637),or=n.n(rr),ar=n(16193),ir=n.n(ar),cr=n(62885),sr=n(28888),lr=n(85431),ur=(0,F.i7)(An||(An=L()(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),pr=F.Ay.div.withConfig({displayName:"StyledToaster"})(Cn||(Cn=L()(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgb(0 0 0 / 70%);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),ft.A.space(-.5),ft.A.space(0),ur),dr=(0,F.Ay)(cr.A).withConfig({displayName:"StyledCloseButton"})(Dn||(Dn=L()(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &&:hover {\n background: transparent;\n cursor: pointer;\n }\n ","\n"])),ft.A.font(3),Ae.t7.color("backgroundBody"),(function(e){return e.styles})),fr=F.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(Tn||(Tn=L()(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),ft.A.space(0),ft.A.space(0),sr.rd,(function(e){return e.styles})),hr=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Mn||(Mn=L()(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),ft.A.font(1.5),Ae.t7.fontWeight("regular")),mr=F.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Rn||(Rn=L()(["\n font-size: ",";\n"])),ft.A.font(7)),gr=F.Ay.div.withConfig({displayName:"StyledContentWrapper"})(In||(In=L()(["\n padding-top: ",";\n color: ",";\n"])),ft.A.space(-1),Ae.t7.color("textToaster")),vr=F.Ay.div.withConfig({displayName:"StyledToasterBox"})(Nn||(Nn=L()(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); /* subtract height of header plus some additional padding */\n min-width: 310px;\n max-width: 400px;\n top: 40px; /* height of Header to prevent coverage */\n right: 55px;\n\n /* lower than StyledModalHolder and very high value\n to prevent other elements blocking it when implemented as a widget */\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); /* subtract height of header */\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,lr.A)());const yr=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,a=e.styles,i=(0,Z.useCallback)((function(){n(t.key,!1)}),[t.key,n]),c=bt.A.useUserActive(i),s=jt()(c,3),l=s[0],u=s[1],p=s[2];(0,Z.useEffect)((function(){l(t.duration)}),[t.duration,l]);return(0,$.jsxs)(pr,{onMouseOver:function(){u()},onMouseLeave:function(){p()},type:t.type,styles:null==a?void 0:a.toasterStyles,"data-cy":"toaster-wrapper-".concat(t.key),children:[(0,$.jsx)(dr,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==a?void 0:a.closeButtonStyles}),(0,$.jsxs)(fr,{type:t.type,styles:null==a?void 0:a.iconTitleWrapperStyles,children:[t.icon&&(0,$.jsx)(mr,{children:(0,$.jsx)(q.A,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,$.jsx)(W.Ay.H1,{children:(0,$.jsx)(hr,{"data-cy":"toaster-title",children:(0,$.jsx)(rt,{children:t.title})})})]}),t.body&&(0,$.jsx)(gr,{"data-cy":"toaster-content",children:(0,$.jsx)(rt,{children:"function"==typeof t.body?(0,$.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var br,wr,xr={info:"info",success:"success",error:"danger",warning:"warning"},kr=function(){return(0,F.AH)(br||(br=L()(["\n background-color: "," !important;\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return xr[e]?t.colors.signal[xr[e]]:"#ccc"}(e.type,e.theme)}),Ae.t7.color("textToaster"))},Or=function(){return(0,F.AH)(wr||(wr=L()(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),Ae.t7.color("textToaster"))};function Sr(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}const Er=function(e){var t=ir()({},(or()(e),e));return(0,$.jsx)(yr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:kr,closeButtonStyles:Or}},t))};var jr,_r,Pr={info:"info",success:"success",error:"danger",warning:"warning"},Ar=function(){return(0,F.AH)(jr||(jr=L()(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),Ae.t7.color("paper"),Ae.t7.radii("statusLabel"),Ae.t7.color("border"),Ae.t7.color("text"))},Cr=function(){return(0,F.AH)(_r||(_r=L()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return Pr[e]?t.colors.signal[Pr[e]]:"#ccc"}(e.type,e.theme)}))};function Dr(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}const Tr=function(e){var t=ir()({},(or()(e),e));return(0,$.jsx)(yr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:Ar,iconTitleWrapperStyles:Cr}},t))};var Mr=o()(o()({},U.A.EmbedType.admin,Er),U.A.EmbedType.widget,Tr);const Rr=U.A.embedStrategyFactory({mapping:Mr});const Ir=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,a=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,$.jsx)(Rr,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,$.jsx)($.Fragment,{children:t&&R().createPortal((0,$.jsx)(vr,{className:I.e,children:a}),document.body)})};var Nr={removeToaster:tr,cancelTask:Jn};const Lr=(0,P.Ng)((function(e){return{toasters:e.notification.toaster.toasters}}),Nr)(Ir);var Fr;const Hr=function(e){var t=e.navigationStrategy;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Lr,{navigationStrategy:t}),Fr||(Fr=(0,$.jsx)(Pn,{}))]})};var Br="notification/BLOCKING_INFO",Wr="notification/REMOVE_BLOCKING_INFO",Ur=n(69556),zr=n(24184),Vr=3600;function Yr(e){var t=Math.abs(e);return t<60?"second":t<Vr?"minute":t<86400?"hour":"day"}function qr(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return Vr;default:return 86400}}var $r=["second","minute","hour"];function Gr(e){return void 0===e&&(e="second"),$r.indexOf(e)>-1}var Kr=function(e){var t=(0,X.A)(),n=t.formatRelativeTime,r=t.textComponent,o=e.children,a=n(e.value||0,e.unit,(0,Q.Tt)(e,["children","value","unit"]));return"function"==typeof o?o(a):r?Z.createElement(r,null,a):Z.createElement(Z.Fragment,null,a)},Jr=function(e){var t=e.value,n=void 0===t?0:t,r=e.unit,o=void 0===r?"second":r,a=e.updateIntervalInSeconds,i=(0,Q.Tt)(e,["value","unit","updateIntervalInSeconds"]);(0,zr.V1)(!a||!(!a||!Gr(o)),"Cannot schedule update with unit longer than hour");var c,s=Z.useState(),l=s[0],u=s[1],p=Z.useState(0),d=p[0],f=p[1],h=Z.useState(0),m=h[0],g=h[1];o===l&&n===d||(f(n||0),u(o),g(Gr(o)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*Vr}}(n,o):0)),Z.useEffect((function(){function e(){clearTimeout(c)}if(e(),!a||!Gr(o))return e;var t=m-a,n=Yr(t);if("day"===n)return e;var r=qr(n),i=t-t%r,s=i>=m?i-r:i,l=Math.abs(s-m);return m!==s&&(c=setTimeout((function(){return g(s)}),1e3*l)),e}),[m,a,o]);var v=n||0,y=o;if(Gr(o)&&"number"==typeof m&&a){var b=qr(y=Yr(m));v=Math.round(m/b)}return Z.createElement(Kr,(0,Q.Cl)({value:v,unit:y},i))};Jr.displayName="FormattedRelativeTime";const Xr=Jr;var Qr,Zr,eo,to,no,ro,oo,ao,io,co,so,lo,uo,po=F.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(Qr||(Qr=L()(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),ft.A.space(-1.5)),fo=F.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(Zr||(Zr=L()(["\n margin-right: ",";\n"])),ft.A.space(-1.5)),ho=F.Ay.div.withConfig({displayName:"StyledProgressOuter"})(eo||(eo=L()(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),Ae.t7.color("paper")),mo=F.Ay.div.withConfig({displayName:"StyledProgressInner"})(to||(to=L()(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),Ae.t7.color("paper"),(function(e){return e.percentage})),go=F.Ay.span.withConfig({displayName:"StyledMessage"})(no||(no=L()(["\n margin-right: ",";\n"])),ft.A.space(-2)),vo=F.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(ro||(ro=L()(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),ft.A.space(-2),ft.A.space(-2),ft.A.font(-1)),yo=F.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(oo||(oo=L()(["\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; /* nice2 reset */\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),Ae.t7.color("text"),Ae.t7.color("text")),bo=F.Ay.div.withConfig({displayName:"StyledDownloadStreamWrapper"})(ao||(ao=L()(["\n margin-top: ",";\n margin-bottom: ",";\n\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; /* nice2 reset */\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),ft.A.space(-2),ft.A.space(-2),Ae.t7.color("text"),Ae.t7.color("text")),wo=F.Ay.div.withConfig({displayName:"StyledFileDescription"})(io||(io=L()(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),ft.A.space(0)),xo=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(co||(co=L()(["\n padding-right: ",";\n"])),ft.A.space(-1.5)),ko=F.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(so||(so=L()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),Ae.t7.color("text"));const Oo=(0,se.Ay)((function(e){var t,n=e.notification,r=e.intl,o=n.downloadStream,a=o.readableStream,i=o.filename,c=(t="client.common.actions.downloadStream.download",r.formatMessage({id:t})),s=(0,Z.useRef)(null);return(0,Z.useEffect)((function(){return s.current=URL.createObjectURL(a),function(){URL.revokeObjectURL&&URL.revokeObjectURL(s.current)}}),[a]),(0,$.jsx)(bo,{children:(0,$.jsxs)("a",{href:s.current,target:"_blank",rel:"noreferrer",title:c,download:i,children:[lo||(lo=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"arrow-to-bottom"})})),uo||(uo=(0,$.jsx)(Y.A,{id:"client.common.actions.downloadStream.download"}))]})})}));const So=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,$.jsx)(go,{children:(0,$.jsx)(rt,{children:t})}):null};var Eo,jo=n(94394),_o=n.n(jo),Po=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,$.jsx)(pe.A,{content:(0,$.jsx)(W.Ay.P,{children:(0,$.jsx)(Y.A,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const Ao=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,$.jsx)($.Fragment,{children:Object.entries(_o()(r,(function(e){return e.model}))).map((function(e){var t=jt()(e,2),r=t[0],o=t[1];return(0,$.jsx)(vo,{children:n&&n.ListOrDetailLink&&(0,$.jsx)(Po,{hasTooManyEntities:o.length>100,children:(0,$.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[Eo||(Eo=(0,$.jsx)(q.A,{icon:"arrow-right"}))," ",(0,$.jsx)(Y.A,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var Co,Do,To,Mo,Ro,Io;const No=(0,se.Ay)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,a=t.content,i=function(e){return r.formatMessage({id:e})},c=i("client.common.notification.outputJobFileLink"),s=i("client.common.notification.outputJobFileDownload");return o?(0,$.jsxs)(yo,{children:[(0,$.jsx)(wo,{children:(0,$.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:c,children:o.description})}),(0,$.jsx)("div",{children:(0,$.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:c,children:[Co||(Co=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"eye"})})),Do||(Do=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobFileLink"}))]})}),be.A.downloadSupportedByBrowser()&&(0,$.jsxs)("a",{href:be.A.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:s,children:[To||(To=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"arrow-to-bottom"})})),Mo||(Mo=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,$.jsx)(vo,{children:n&&n.DetailLink&&(0,$.jsxs)(n.DetailLink,{entityName:a[0].model,entityKey:a[0].key,children:[Ro||(Ro=(0,$.jsx)(q.A,{icon:"arrow-right"}))," ",Io||(Io=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var Lo=o()(o()({},d,No),f,Ao);const Fo=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(Lo[r]){var o=Lo[r];return(0,$.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var Ho,Bo,Wo,Uo,zo;const Vo=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,a=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,i=t.type===p.info&&o.isRunning&&o.supportsCancellation;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(po,{children:[(0,$.jsx)(fo,{children:o.isRunning&&(Ho||(Ho=(0,$.jsx)(Ur.A,{})))}),(0,$.jsx)(So,{notification:t})]}),"running_absolute"===o.status&&(0,$.jsx)($.Fragment,{children:(0,$.jsx)(ho,{children:(0,$.jsx)(mo,{percentage:o.percentage})})}),(0,$.jsx)(vo,{children:a&&(0,$.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[Bo||(Bo=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"arrow-right"})})),Wo||(Wo=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobShowTask"}))]})}),i&&(0,$.jsxs)(ko,{onClick:function(){return n(o.taskExecutionKey)},children:[Uo||(Uo=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"times"})})),zo||(zo=(0,$.jsx)(Y.A,{id:"client.common.notification.cancelTask"}))]})]})};const Yo=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,a=t.taskProgress,i=t.downloadStream;return o?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(So,{notification:t}),(0,$.jsx)(Fo,{notification:t,navigationStrategy:r})]}):a?(0,$.jsx)(Vo,{notification:t,navigationStrategy:r,cancelTask:n}):i?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(So,{notification:t}),(0,$.jsx)(Oo,{notification:t,navigationStrategy:r})]}):(0,$.jsx)(So,{notification:t})},qo=Yo;var $o,Go,Ko,Jo,Xo,Qo,Zo,ea,ta={warning:Ae.t7.color("signal.warning"),error:Ae.t7.color("signal.danger"),success:Ae.t7.color("signal.success"),info:Ae.t7.color("signal.info")},na=F.Ay.article.withConfig({displayName:"StyledNotification"})($o||($o=L()(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),ft.A.space(0),ft.A.space(-1),(function(e){return!e.read&&(0,F.AH)(Go||(Go=L()(["\n background-color: ",";\n "])),Ae.t7.color("backgroundBody"))})),ra=F.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(Ko||(Ko=L()(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),ft.A.space(-1),(function(e){var t=e.notificationType;return ta[t]})),oa=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Jo||(Jo=L()(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),ft.A.space(-1.5),ft.A.font(5)),aa=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Xo||(Xo=L()(["\n * {\n font-weight: "," !important;\n }\n"])),Ae.t7.fontWeight("regular")),ia=F.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(Qo||(Qo=L()(["\n ","\n margin-bottom: ",";\n"])),(0,lr.A)({fontSize:ft.A.font(2.9),fontWeight:Ae.t7.fontWeight("bold"),color:Ae.t7.color("secondary")}),ft.A.space(-.5)),ca=F.Ay.div.withConfig({displayName:"StyledTimeStamp"})(Zo||(Zo=L()(["\n font-size: ",";\n"])),ft.A.font(-2)),sa=F.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(ea||(ea=L()(["\n max-height: calc(100dvh - 100px);\n overflow-y: auto;\n width: inherit;\n padding: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n /* within the notification center the progress bars need another color */\n "," {\n background-color: transparent;\n border: 0.5px solid ",";\n }\n\n "," {\n background-color: ",";\n }\n ","\n"])),ft.A.space(-.5),Ae.t7.color("paper"),Ae.t7.color("secondaryLight"),Ae.t7.radii("menu"),ho,Ae.t7.color("text"),mo,Ae.t7.color("textLighter"),(0,lr.A)());var la={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const ua=function(e){var t,n,r,o=e.notification,a=e.markAsRead,i=e.cancelTask,c=e.navigationStrategy,s=(0,Z.useRef)(null),l=Ee.A.selectUnit(new Date(o.timestamp)),u=(0,Z.useState)((function(){return o.read})),p=jt()(u,1)[0];return t=s,n=function(){o.read||a(o.key)},r=new IntersectionObserver((function(e){jt()(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,Z.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,$.jsxs)(na,{ref:s,read:p,"data-cy":"notification-item",children:[(0,$.jsxs)(ra,{notificationType:o.type,children:[(0,$.jsx)(oa,{children:(0,$.jsx)(q.A,{icon:la[o.type]})}),(0,$.jsx)(aa,{children:(0,$.jsx)(W.Ay.H5,{children:o.title})})]}),(0,$.jsx)(qo,{notification:o,navigationStrategy:c,cancelTask:i}),(0,$.jsx)(ca,{children:(0,$.jsx)(Xr,{value:l.diffValue,unit:l.unit})})]})};var pa,da,fa,ha;const ma=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,a=e.markAsRead,i=e.cancelTask,c=e.navigationStrategy,s=(0,Z.useRef)(null);(0,Z.useEffect)((function(){t()}),[t]);var l=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==d||e.result.file})).filter((function(e){return!e.taskProgress||"cancelled"!==e.taskProgress.status})).sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})).map((function(e){return(0,$.jsx)(ua,{markAsRead:a,cancelTask:i,notification:e,navigationStrategy:c},"notification-".concat(e.key))}));return(0,$.jsxs)(sa,{ref:s,onScroll:function(){var e=Object.keys(n).length;s.current.scrollTop+s.current.offsetHeight>=s.current.scrollHeight&&(!o&&r)&&t(e)},children:[pa||(pa=(0,$.jsx)(ia,{children:(0,$.jsx)(Y.A,{id:"client.admin.notification.title"})})),l,o&&(da||(da=(0,$.jsx)(Ur.A,{}))),l.length>0&&!r&&(fa||(fa=(0,$.jsx)(W.Ay.I,{children:(0,$.jsx)(Y.A,{id:"client.admin.notification.noMoreNotifications"})}))),0===l.length&&!o&&(ha||(ha=(0,$.jsx)(W.Ay.I,{children:(0,$.jsx)(Y.A,{id:"client.admin.notification.noNotification"})})))]})};var ga={loadNotifications:function(){return{type:Hn,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:Kn,cancelTask:Jn};const va=(0,P.Ng)((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),ga)(ma);var ya="notification/CONFIRM",ba="notification/YES_NO_QUESTION",wa="notification/INFO",xa="notification/CONNECT_SOCKET",ka="notification/CLOSE_SOCKET",Oa="notification/SOCKET_MESSAGE_RECEIVED",Sa="notification/ADD_IGNORE_TOASTER",Ea=function(e){return{type:Oa,payload:{data:e}}},ja=function(e){return{type:Sa,payload:{key:e}}};const _a={SYNC_ACTION:"sync-action"};var Pa=n(14644),Aa=n(6730),Ca=i().mark(Ta),Da=i().mark(Ma);function Ta(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.jP)(Br,Ma),(0,c.jP)(Wr,Ma)]);case 3:case"end":return t.stop()}}),Ca)}function Ma(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),Da)}var Ra=n(80299),Ia=n.n(Ra);function Na(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa=o()(o()(o()(o()(o()(o()({},Bn,(function(e,t){var n=t.payload.notifications;return La(La({},e),{},{notifications:La(La({},e.notifications),n),isLoadingMoreNotifications:!1})})),Wn,Ot.A.singleTransferReducer("moreNotificationsAvailable")),Un,(function(e,t){var n=t.payload.notification;return La(La({},e),{},{notifications:La(La({},e.notifications),{},o()({},n.key,n))})})),Ln,Ot.A.singleTransferReducer("unreadNotificationKeys")),Fn,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):Ia()(e.unreadNotificationKeys,[o]),La(La({},e),{},{unreadNotificationKeys:n})})),zn,Ot.A.singleTransferReducer("isLoadingMoreNotifications")),Ha={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function Ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ha,t=arguments.length>1?arguments[1]:void 0,n=Fa[t.type];return n?n(e,t):e}function Wa(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 Ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var za=i().mark(qa),Va=i().mark($a),Ya=10;function qa(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.T1)($a),(0,c.jP)(Hn,Ga),(0,c.jP)(Vn,Ka),(0,c.jP)(Yn,Ja)]);case 3:case"end":return t.stop()}}),za)}function $a(){var e,t,n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,(0,c.T1)(s.A.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,(0,c.yJ)({type:Ln,payload:{unreadNotificationKeys:n}});case 7:case"end":return r.stop()}}),Va)}function Ga(e){var t=e.payload.offset;return i().mark((function e(){var n,r,a,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yJ)(Gn());case 2:return n={_limit:Ya,_offset:t},e.next=5,(0,c.T1)(s.A.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return r=e.sent,e.next=8,(0,c.Q7)(r.body.data.map((function(e){return(0,c.T1)(S,e)})));case 8:if(a=e.sent,l=a.reduce((function(e,t){return Ua(Ua({},e),{},o()({},t.key,t))}),{}),!(Object.keys(l).length<Ya)){e.next=13;break}return e.next=13,(0,c.yJ)({type:Wn,payload:{moreNotificationsAvailable:!1}});case 13:return e.next=15,(0,c.yJ)(qn(l));case 15:case"end":return e.stop()}}),e)}))()}function Ka(e){var t=e.payload.notificationKey;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,(0,c.T1)(s.A.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function Ja(e){var t=e.payload.taskExecutionKey;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(s.A.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var Xa=n(33829),Qa=n(39892),Za=n.n(Qa),ei=n(77271),ti=["primary","callback","label"];function ni(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 ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const oi=function(e){var t=e.buttons;return(0,$.jsx)(vn,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,a=Za()(e,ti);return(0,Z.createElement)(gn,ri(ri({},n?{ink:ei.A.ink.PRIMARY}:{}),{},{key:t,onClick:r},a),o)}))})};function ai(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,a=e.onOk,i=e.onCancel,c=e.defaultAction,s=void 0===c?"submit":c,l=(0,Xa.A)();return D(l,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===s?a():"cancel"===s&&i(),t()):"Escape"===e.key&&(i(),t())};(0,Z.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var c=[{label:r,primary:"submit"===s,look:"submit"===s?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){a(),t()}},{label:o,primary:"cancel"===s,look:"cancel"===s?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){i(),t()}}];return(0,$.jsx)(oi,{buttons:c})}),!0,i)}function ii(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,a=e.onYes,i=e.onNo,c=e.onCancel,s=(0,Xa.A)();return D(s,t,n,(function(e){var t,n=e.close,c=function(){i(),n()};t=c,(0,Z.useEffect)((function(){var e=function(e){"Enter"===e.key&&"TEXTAREA"!==e.target.tagName&&(e.preventDefault(),e.stopPropagation(),t())};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[t]);var s=[{label:r,callback:function(){a(),n()}},{label:o,primary:!0,look:"raised",callback:c}];return(0,$.jsx)(oi,{buttons:s})}),!0,c)}function ci(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,a=(0,Xa.A)();return D(a,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,Z.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,$.jsx)(oi,{buttons:a})}),!1)}var si=i().mark(ui),li=i().mark(hi);function ui(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,c.Q7)([(0,c.jP)(ya,pi),(0,c.jP)(ba,di),(0,c.jP)(wa,fi)]);case 3:t.next=7;break;case 5:return t.next=7,(0,c.Q7)([(0,c.jP)(ya,hi),(0,c.jP)(ba,hi),(0,c.jP)(wa,hi)]);case 7:case"end":return t.stop()}}),si)}function pi(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(ai,t);case 2:return n=e.sent,e.next=5,(0,c.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function di(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(ii,t);case 2:return n=e.sent,e.next=5,(0,c.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function fi(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(ci,t);case 2:return n=e.sent,e.next=5,(0,c.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function hi(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),li)}var mi=i().mark(vi),gi=i().mark(yi);function vi(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.jP)(A,yi),(0,c.jP)(C,yi)]);case 3:case"end":return t.stop()}}),mi)}function yi(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),gi)}var bi=n(21259),wi=n.n(bi);function xi(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 ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oi={overlays:[]},Si=function(e){return function(t,n){var r=n.payload.id;return ki(ki({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},Ei=o()(o()(o()(o()({},A,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.message,i=n.component,c=n.cancelable,s=n.cancelCallback,l=n.options;return ki(ki({},e),{},{overlays:[].concat(wi()(e.overlays),[{id:r,title:o,message:a,component:i,cancelable:c,cancelCallback:s,options:l,type:On}])})})),C,Si(On)),Br,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.body;return ki(ki({},e),{},{overlays:[].concat(wi()(e.overlays),[{id:r,title:o,body:a,type:Sn}])})})),Wr,Si(Sn));function ji(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oi,t=arguments.length>1?arguments[1]:void 0,n=Ei[t.type];return n?n(e,t):e}function _i(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 Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai=o()({},Sa,(function(e,t){var n=t.payload.key;return Pi(Pi({},e),{},{ignoredToasters:wi()(new Set([].concat(wi()(e.ignoredToasters),[n])))})})),Ci={ignoredToasters:[]};function Di(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ci,t=arguments.length>1?arguments[1]:void 0,n=Ai[t.type];return n?n(e,t):e}var Ti=n(19383),Mi=n(61502);function Ri(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 Ii="socket-msg-",Ni=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(Ii).concat(e.key),type:e.type,time:new Date(e.timestamp),title:e.title,message:e.message,body:function(t){var n=t.navigationStrategy,r=t.cancelTask;return(0,$.jsx)(qo,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return U.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===d}(e)?{duration:-1}:{})},Li=i().mark(Ui),Fi=i().mark(zi),Hi=i().mark(Vi),Bi=function(e){return e.notification.socket},Wi=function(e){return e.notification.toaster.toasters};function Ui(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.jP)(Oa,Yi),(0,c.jP)(Qn,qi),(0,c.jP)(xa,zi),(0,c.jP)(ka,Vi)]);case 3:case"end":return t.stop()}}),Li)}function zi(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.T1)(Ti.A.getOriginId);case 2:return e=t.sent,t.next=5,(0,c.T1)(Mi.A.connectSocket,{name:"notification",messageReceivedAction:Ea,originId:e});case 5:case"end":return t.stop()}}),Fi)}function Vi(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(Mi.A.closeSocket,"notification");case 2:case"end":return e.stop()}}),Hi)}function Yi(e){var t=e.payload.data;return i().mark((function e(){var n,r,o,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(S,t);case 2:return n=e.sent,e.next=5,(0,c.Lt)(Bi);case 5:if(r=e.sent,o=r.ignoredToasters,a=!1,n.originId!==Ti.A.getOriginId()){e.next=16;break}return e.next=11,(0,c.T1)(Ni,n);case 11:if(s=e.sent,o.includes(s.key)||n.read){e.next=16;break}return e.next=15,(0,c.yJ)(er(s));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,(0,c.yJ)((i=n.key,l=n.read,{type:Fn,payload:{notificationKey:i,read:l}}));case 19:return e.next=21,(0,c.yJ)($n(n));case 21:case"end":return e.stop()}var i,l}),e)}))()}function qi(e){var t=e.payload,n=t.key,r=t.manually;return i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(Ii)){e.next=11;break}if(!r){e.next=4;break}return e.next=4,(0,c.yJ)(ja(n));case 4:return e.next=6,(0,c.Lt)(Wi);case 6:if("success"!==e.sent[n].type&&!r){e.next=11;break}return t=n.replace(Ii,""),e.next=11,(0,c.yJ)(Kn(t));case 11:case"end":return e.stop()}}),e)}))()}var $i=n(85735),Gi=n.n($i);function Ki(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 Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xi=function(e,t){return Number.isInteger(e)?e:function(e){return e===p.error||e===p.warning}(t)?-1:5e3};u().shape({type:u().oneOf(Object.values(p)).isRequired,title:u().oneOfType([u().string,u().func]),message:u().oneOfType([u().string,u().func]),body:u().oneOfType([u().string,u().func]),onClose:u().func,icons:u().string,duration:u().number,time:u().instanceOf(Date)});function Qi(e){var t=function(e,t){if("object"!=Gi()(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gi()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gi()(t)?t:t+""}function Zi(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 ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tc=o()(o()({},Xn,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(p).includes(e.type)?e.type:p.neutral;return Ji(Ji(Ji(Ji(Ji({type:t,key:e.key||(0,Xa.A)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||h[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:Xi(e.duration,t),time:e.time instanceof Date?e.time:new Date},e.source&&{source:e.source})}(t.payload.toaster),r=e.toasters[n.key];return!r||function(e){return e.source!==_a.SYNC_ACTION}(r)?ec(ec({},e),{},{toasters:ec(ec({},e.toasters),{},o()({},n.key,n))}):e})),Zn,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],Za()(r,[n].map(Qi)));return ec(ec({},e),{},{toasters:ec({},o)})})),nc={toasters:{}};function rc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nc,t=arguments.length>1?arguments[1]:void 0,n=tc[t.type];return n?n(e,t):e}var oc=i().mark(ic),ac=i().mark(cc);function ic(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,c.Q7)([(0,c.jP)(Qn,sc)]);case 3:t.next=7;break;case 5:return t.next=7,(0,c.Q7)([(0,c.jP)(Xn,cc),(0,c.jP)(Qn,cc)]);case 7:case"end":return t.stop()}}),oc)}function cc(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),ac)}function sc(e){var t=e.payload,n=t.key;t.manually;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yJ)(nr(n));case 2:case"end":return e.stop()}}),e)}))()}const lc={transformNotificationResult:E,addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&Ot.A.injectReducers(e,{notification:(0,Pa.HY)({socket:Di,toaster:rc,center:Ba,overlay:ji})}),e.sagaMiddleware.run(Ta,t),e.sagaMiddleware.run(ui,t),e.sagaMiddleware.run(vi,t),e.sagaMiddleware.run(Ui,t),e.sagaMiddleware.run(ic,t),t&&r&&e.sagaMiddleware.run(qa)},Notifications:Hr,NotificationCenter:va,confirm:function(e,t,n,r,o,a,i){return{type:ya,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:a,defaultAction:i}}},yesNoQuestion:function(e,t,n,r,o,a,i){return{type:ba,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:a,onCancel:i}}},info:function(e,t,n,r){return{type:wa,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:Br,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:Wr,payload:{id:e}}},modal:D,removeModal:T,toaster:er,removeToaster:tr,connectSocket:function(){return{type:xa}},closeSocket:function(){return{type:ka}},toasterSources:_a}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89160:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>u,OC:()=>i,hr:()=>s,pg:()=>l,sb:()=>p,uo:()=>c});var r,o=n(81293);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var a=function(e){function t(n,r,o){var a=this,i=o?o instanceof Error?o:new Error(String(o)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(i?"\n".concat(i.message,"\n").concat(i.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,o.C6)(t,e),t}(Error),i=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.C6)(t,e),t}(a),c=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.C6)(t,e),t}(a),s=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.C6)(t,e),t}(a),l=function(e){function t(t,n,o){var a=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return a.locale=n,a}return(0,o.C6)(t,e),t}(a),u=function(e){function t(t,n,r,o){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return a.descriptor=r,a.locale=n,a}return(0,o.C6)(t,e),t}(l),p=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.C6)(t,e),t}(a)},89578:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89935:e=>{e.exports=function(){return!1}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),a=n(19931),i=n(31769),c=n(21791),s=n(53138),l=n(38816),u=n(83349),p=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=i(t,e),l||(l=t.length>1),t})),c(e,u(e),n),l&&(n=o(n,7,s));for(var p=t.length;p--;)a(n,t[p]);return n}));e.exports=p},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},92207:(e,t,n)=>{e.exports=n(7452)},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(32370),o=n(58646);function a(e,t,n){return(0,r.f)((0,o.qg)(e,t,new Date,n))}},92960:(e,t,n)=>{"use strict";n.d(t,{ZE:()=>a,Im:()=>s,tv:()=>u,Tu:()=>v,eW:()=>c,oF:()=>l,N1:()=>g,N6:()=>f,jA:()=>h,Jp:()=>d,xm:()=>m,Qh:()=>p,qg:()=>ce});var r=function(){return r=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},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var o,a,i;function c(e){return e.type===a.literal}function s(e){return e.type===a.argument}function l(e){return e.type===a.number}function u(e){return e.type===a.date}function p(e){return e.type===a.time}function d(e){return e.type===a.select}function f(e){return e.type===a.plural}function h(e){return e.type===a.pound}function m(e){return e.type===a.tag}function g(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function v(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(o||(o={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(a||(a={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function w(e){var t={};return e.replace(b,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var x=function(){return x=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},x.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var k=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var O=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,j=/^(0+)$/;function _(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function P(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function A(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!j.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function C(e){var t=P(e);return t||{}}function D(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return x(x({},e),C(t))}),{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return x(x({},e),C(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(E,(function(e,n,r,o,a,i){if(n)t.minimumIntegerDigits=r.length;else{if(o&&a)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(j.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(O.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(O,(function(e,n,r,o,a,i){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=o.options[0];"w"===a?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),_(a)))}else if(S.test(o.stem))t=x(x({},t),_(o.stem));else{var i=P(o.stem);i&&(t=x(x({},t),i));var c=A(o.stem);c&&(t=x(x({},t),c))}}return t}var T,M={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function R(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(M[n||""]||M[r||""]||M["".concat(r,"-001")]||M["001"])[0]}var I=new RegExp("^".concat(y.source,"*")),N=new RegExp("".concat(y.source,"*$"));function L(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),H=!!String.fromCodePoint,B=!!Object.fromEntries,W=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,z=!!String.prototype.trimEnd,V=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Y=!0;try{Y="a"===(null===(T=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===T?void 0:T[0])}catch(e){Y=!1}var q,$=F?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=H?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;o>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=B?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],i=o[1];t[a]=i}return t},J=W?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},X=U?function(e){return e.trimStart()}:function(e){return e.replace(I,"")},Q=z?function(e){return e.trimEnd()}:function(e){return e.replace(N,"")};function Z(e,t){return new RegExp(e,t)}if(Y){var ee=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var n;return ee.lastIndex=t,null!==(n=ee.exec(e)[1])&&void 0!==n?n:""}}else q=function(e,t){for(var n=[];;){var r=J(e,t);if(void 0===r||oe(r)||ae(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((c=this.parseArgument(e,n)).err)return c;r.push(c.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(o.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ne(this.peek()||0)){if((c=this.parseTag(e,t)).err)return c;r.push(c.val)}else{var c;if((c=this.parseLiteral(e,t)).err)return c;r.push(c.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:a.pound,location:L(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.literal,value:"<".concat(r,"/>"),location:L(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var c=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ne(this.char()))return this.error(o.INVALID_TAG,L(s,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(o.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.tag,value:r,children:c,location:L(n,this.clonePosition())},err:null}:this.error(o.INVALID_TAG,L(s,this.clonePosition())))}return this.error(o.UNCLOSED_TAG,L(n,this.clonePosition()))}return this.error(o.INVALID_TAG,L(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var c=this.tryParseLeftAngleBracket();if(!c)break;r+=c}}}var s=L(n,this.clonePosition());return{val:{type:a.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ne(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.EMPTY_ARGUMENT,L(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.argument,value:r,location:L(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=q(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:L(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,c){var s,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(u){case"":return this.error(o.EXPECT_ARGUMENT_TYPE,L(l,p));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((k=this.parseSimpleArgStyleIfPossible()).err)return k;if(0===(v=Q(k.val)).length)return this.error(o.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));d={style:v,styleLocation:L(f,this.clonePosition())}}if((O=this.tryParseArgumentClose(c)).err)return O;var h=L(c,this.clonePosition());if(d&&$(null==d?void 0:d.style,"::",0)){var m=X(d.style.slice(2));if("number"===u)return(k=this.parseNumberSkeletonFromString(m,d.styleLocation)).err?k:{val:{type:a.number,value:n,location:h,style:k.val},err:null};if(0===m.length)return this.error(o.EXPECT_DATE_TIME_SKELETON,h);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),c=a<2?1:3+(a>>1),s=R(t);for("H"!=s&&"k"!=s||(c=0);c-- >0;)n+="a";for(;i-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(m,this.locale));var v={type:i.dateTime,pattern:g,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?w(g):{}};return{val:{type:"date"===u?a.date:a.time,value:n,location:h,style:v},err:null}}return{val:{type:"number"===u?a.number:"date"===u?a.date:a.time,value:n,location:h,style:null!==(s=null==d?void 0:d.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.EXPECT_SELECT_ARGUMENT_OPTIONS,L(y,r({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),x=0;if("select"!==u&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));var k;if(this.bumpSpace(),(k=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return k;this.bumpSpace(),b=this.parseIdentifierIfPossible(),x=k.val}var O,S=this.tryParsePluralOrSelectOptions(e,u,t,b);if(S.err)return S;if((O=this.tryParseArgumentClose(c)).err)return O;var E=L(c,this.clonePosition());return"select"===u?{val:{type:a.select,value:n,options:K(S.val),location:E},err:null}:{val:{type:a.plural,value:n,options:K(S.val),offset:x,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(o.INVALID_ARGUMENT_TYPE,L(l,p))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(k).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],i=o.slice(1),c=0,s=i;c<s.length;c++)if(0===s[c].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:i})}return t}(e)}catch(e){return this.error(o.INVALID_NUMBER_SKELETON,t)}return{val:{type:i.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?D(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var a,i=!1,c=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var p=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=L(p,this.clonePosition()),l=this.message.slice(p.offset,this.offset())}if(s.has(l))return this.error("select"===t?o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;c.push([l,{value:h.val,location:L(f,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(a=this.parseIdentifierIfPossible()).value,u=a.location}return 0===c.length?this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR:o.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(o.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:c,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(i>=48&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}var c=L(r,this.clonePosition());return o?V(a*=n)?{val:a,err:null}:this.error(t,c):this.error(e,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=J(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if($(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ne(e){return e>=97&&e<=122||e>=65&&e<=90}function re(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ae(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,d(e)||f(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value);else l(e)&&g(e.style)||(u(e)||p(e))&&v(e.style)?delete e.style.location:m(e)&&ie(e.children)}))}function ce(e,t){void 0===t&&(t={}),t=r({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new te(e,t).parse();if(n.err){var a=SyntaxError(o[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return(null==t?void 0:t.captureLocation)||ie(n.val),n.val}},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},93290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,c=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r,o=n(72189),a=n.n(o),i=n(51510).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=a()([""])))},93663:(e,t,n)=>{var r=n(41799),o=n(10776),a=n(89578);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundTableTiles:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",backgroundUploadArea:"#f2f2f2",backgroundUploadOverlay:"#0000ff1a",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#dee6ed"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{codeFoldGutterBackground:"#e6e6e6",codeFoldBackground:"#f2f2f2",gutterBackground:"#f2f2f2",diffViewerTitleBackground:"#fff",diffViewerTitleBorderColor:"#fff",emptyLineBackground:"#fcfcfc",addedBackground:"#cbffce",addedColor:"#24292e",removedBackground:"#ffbfbf",removedColor:"#24292e",wordAddedBackground:"#91d395",wordRemovedBackground:"#e77c7c",addedGutterBackground:"#91d395",removedGutterBackground:"#e77c7c"}},darkTheme:{name:"dark",colors:{paper:"#212330",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#6eafff",secondaryLight:"#82baff",secondaryLighter:"#9ECAFF",text:"#dfdfdf",textLight:"#bdbdbd",textLighter:"#818181",textDisabled:"#7a7a7a",textLabel:"#121212",textToaster:"#000",textPopover:"#fff",backgroundBody:"#2C2F41",backgroundBreadcrumbs:"#2C2F41",backgroundPopover:"#757575",backgroundItemHover:"#444",backgroundItemSelected:"#565656",backgroundItemLastOpened:"#636363",backgroundTableEvenRow:"#2f2f2f",backgroundTableTiles:"#2f2f2f",backgroundScrollbar:"#444",backgroundScrollbarHover:"#666",backgroundPanelHeaderFooter:"#444",backgroundTypographyCode:"#444",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#6e6e6e",backgroundUploadArea:"#2d2d2d",backgroundUploadOverlay:"#0000ff1a",hoverInteractiveIcon:"#fff",loadingSpinner:"#cccccc",breadcrumbsActive:"#82baff",border:"#666",borderTable:"#666",borderLight:"#444",borderSelect:"#4fade5",signal:{danger:"#d74444",dangerLight:"#f18888",info:"#4fade5",infoLight:"#9ce6ff",success:"#4DAC54",successLight:"#72c172",warning:"#ec8a00",warningLight:"#ffcc84",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"dracula",diffViewerDarkTheme:!0,diffViewer:{diffViewerBackground:"#212330",codeFoldGutterBackground:"#444",codeFoldBackground:"#2f2f2f",gutterBackground:"#2f2f2f",diffViewerTitleBackground:"#212330",diffViewerTitleBorderColor:"#212330",emptyLineBackground:"#2f2f2f",diffViewerColor:"#dfdfdf",addedBackground:"#217a28",addedColor:"#dfdfdf",removedBackground:"#b92e2e",removedColor:"#dfdfdf",wordAddedBackground:"#35913c",wordRemovedBackground:"#d74444",addedGutterBackground:"#35913c",removedGutterBackground:"#d74444"}}}},94394:(e,t,n)=>{var r=n(43360),o=n(42e3),a=Object.prototype.hasOwnProperty,i=o((function(e,t,n){a.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=i},95950:(e,t,n)=>{var r=n(70695),o=n(88984),a=n(64894);e.exports=function(e){return a(e)?r(e):o(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),a=n(76959);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},96372:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96374:(e,t,n)=>{var r=n(23490);e.exports=function(e){if(Array.isArray(e))return r(e)}},96424:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(4883),s=n.n(c);function l(e,t){var n=(0,c.useState)(e),r=i()(n,2),o=r[0],a=r[1];return(0,c.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}var u=n(74848);function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return s().forwardRef((function(r,a){var s=r.value,p=(0,c.useState)(s),f=i()(p,2),h=f[0],m=f[1],g=l(h,t),v=i()(g,2),y=v[0],b=v[1],w=(0,c.useRef)(s),x=r[n];return(0,c.useEffect)((function(){h!==s&&h===y&&(m(s),w.current=s,b(s))}),[s]),(0,c.useEffect)((function(){x&&w.current!==y&&(x(y),w.current=y)}),[y,x]),(0,u.jsx)(e,d(d(d({},r),{},{value:h},o()({},n,m)),{},{ref:a}))}))};var h=n(81570);const m={useAutofocus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,c.useEffect)((function(){if(!t.disabled&&e.current&&!(0,h.i)()){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)},useDebounce:l,Debouncer:f,useUserActive:function(e){var t=(0,c.useRef)(null),n=(0,c.useState)(null),r=i()(n,2),o=r[0],a=r[1],s=(0,c.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),l=(0,c.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,c.useEffect)((function(){return l(),window.addEventListener("mousemove",s,{once:!0}),window.addEventListener("touchstart",s,{once:!0}),function(){l()}}),[l,s]),[a,l,s]},usePrevious:function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,c.useRef)(!1);(0,c.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:function(){var e=(0,c.useState)(),t=i()(e,2),n=t[0],r=t[1],o=(0,c.useRef)(),a=(0,c.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),s=(0,c.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return a(e)})),o.current.observe(e))}),[a]);return(0,c.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[s,n]}}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),a=n(31769);e.exports=function(e,t,n){for(var i=-1,c=t.length,s={};++i<c;){var l=t[i],u=r(e,l);n(u,l)&&o(s,a(l,e),u)}return s}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},97932:(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"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();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=c(n(87695)),a=c(n(21572)),i=c(n(81438));function c(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return l="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},l(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(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 d(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 f(e){return function(){var t,n=m(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=m(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,t)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=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&&g(e,t)}(s,e);var t,n,o,c=f(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(h(e=c.call.apply(c,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return t=s,n=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,i=t.renderItem,c=t.renderItemData,s=t.sectionIndex,l=t.highlightedItemIndex,d=t.getItemId,f=t.theme,h=t.keyPrefix,m=null===s?h:"".concat(h,"section-").concat(s,"-"),g="function"==typeof o;return r.default.createElement("ul",u({role:"listbox"},f("".concat(m,"items-list"),"itemsList")),n.map((function(t,n){var h=0===n,y=n===l,b="".concat(m,"item-").concat(n),w=g?o({sectionIndex:s,itemIndex:n}):o,x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(s,n),"aria-selected":y},f(b,"item",h&&"itemFirst",y&&"itemHighlighted"),{},w);return y&&(x.ref=e.storeHighlightedItemReference),r.default.createElement(a.default,u({},x,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:i,renderItemData:c}))})))}}],n&&d(t.prototype,n),o&&d(t,o),s}(r.Component);t.default=y,v(y,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),v(y,"defaultProps",{sectionIndex:null})},98166:(e,t,n)=>{"use strict";n.d(t,{O5:()=>o,O9:()=>i,Yd:()=>r,lW:()=>a});var r=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},o=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},a=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},i=function(e){return null!=e}},98671:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(26396),o=n.n(r),a=n(63560),i=n.n(a);function c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n(66245),d=n.n(p),f=n(44383),h=n.n(f),m=n(14644);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n=v(v({},e.allReducers),t),r=(0,m.HY)(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n};function b(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 w(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const k={addToObjectReducer:function(e,t,n){return function(r,a){var c=a.payload,l=c[e],u=c[t],p=s({},r),d=s(s({},r[n]),{},o()({},l,u));return i()(p,n,d),p}},singleTransferReducer:function(e,t){return function(n,r){var a=r.payload[e],c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return i()(c,t?t+"."+e:e,a),c}},mappingTransferReducer:function(e,t){return function(n,r){var a=r.payload[e];return u(u({},n),{},o()({},t,a))}},injectReducers:function(e,t){var n=d()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=v(v({},e.allReducers),h()(t,n));y(e,r)}},hotReloadReducers:y,toggleReducer:function(e){return function(t){return x(x({},t),{},o()({},e,!t[e]))}}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(85735),i=n.n(a),c=n(81792),s=n(23228),l=n(19383);function u(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={method:"GET",credentials:"include"},f=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===i()(e))return new Headers(e)}return new Headers}(e.headers),n=e.body;return t.has("Content-Type")||("string"==typeof n?t.set("Content-Type","text/plain"):n instanceof FormData||t.set("Content-Type","application/json")),t.has("X-Origin-Id")||t.set("X-Origin-Id",l.A.getOriginId()),!t.has("X-Business-Unit")&&s.A.getBusinessUnit()&&t.set("X-Business-Unit",s.A.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",s.A.isInAdminEmbedded()?"client":"widget"),s.A.getRuleProvider()&&t.set("X-Rule-Provider-Id",s.A.getRuleProvider()),t.has("X-Timezone")||t.set("X-Timezone",c.A.getTimeZone()),t},h=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")?t:t.startsWith("nice2")?"".concat(e,"/").concat(t):"".concat(e,"/nice2/").concat(t)};const m={prepareHeaders:f,prepareUrl:h,executeRequest:function(e){var t=function(e){return p(p(p({},d),e),{},{headers:f(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=h(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},99374:e=>{e.exports=function(e){return e}},99815:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>x,Ay:()=>O});var r,o,a,i,c,s,l,u=n(72189),p=n.n(u),d=n(51510),f=n(26166),h=n(57488),m=n(77271),g=n(47616),v=n(85431),y=n(62124),b=n(15777),w=(0,d.AH)(i||(i=p()(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),g.A.radii("button"),f.A.space(-1.38),f.A.space(-2.1),f.A.space(0),(0,v.A)(),(function(e){return e.withoutBackground?(0,d.AH)(a||(a=p()(["\n background: transparent;\n"]))):(0,y.A)(e)}),(function(e){return n=(t=e).dense,o=t.theme,n?(0,d.AH)(r||(r=p()(["\n line-height: ",";\n padding: "," ",";\n "])),g.A.lineHeight("dense")({theme:o}),f.A.space(-3.5)({theme:o}),f.A.space(-1.5)({theme:o})):null;var t,n,o}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,d.AH)(o||(o=p()(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===m.A.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(x," {\n display: none;\n }\n ");return t&&n===b.r5.hidden?r:t&&n===b.r5.responsive&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),x=d.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(c||(c=p()([""]))),k=d.Ay.button.withConfig({displayName:"StyledButton"})(s||(s=p()(["\n ","\n"])),w);d.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(l||(l=p()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n z-index: 1;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),f.A.space(0),h.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),k);const O=k}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;"object"==typeof i&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"2d3af4e6d62590c0b606",211:"5ddbe4b27a98f2b1123a",222:"c60ae59d0c2dc11ef8ef",262:"e083d98b5c4bfa8ff6a0",264:"e42f33097d4c02f2de1e",310:"4cf0e39443c7abef6eff",389:"ec325b8aeb9c696940cc",672:"78ed568b85e32ed20610",722:"01f4d081f113aff0d978",910:"490f156fb70080ddc413",916:"4348a536cf2338cba551"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-devcon:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+n){i=p;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_devcon=this.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;return(()=>{"use strict";var e=s(26396),t=s.n(e),n=s(4883),r=s.n(n),o=s(87105),a=s(81845);
|
|
29
|
+
*/var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,i=r.useRef,c=r.useEffect,s=r.useMemo,l=r.useDebugValue},85250:(e,t,n)=>{var r=n(37217),o=n(87805),a=n(86649),i=n(42824),c=n(23805),s=n(37241),l=n(14974);e.exports=function e(t,n,u,p,d){t!==n&&a(n,(function(a,s){if(d||(d=new r),c(a))i(t,n,s,u,e,p,d);else{var f=p?p(l(t,s),a,s+"",t,n,d):void 0;void 0===f&&(f=a),o(t,s,f)}}),s)}},85431:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r,o=n(72189),a=n.n(o),i=n(51510),c=n(47616),s=n(26166);const l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.AH)(r||(r=a()(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n line-height: ",";\n"])),e.color||c.A.color("text"),e.fontFamily||c.A.fontFamily("regular"),e.fontSize||s.A.font(0),e.fontStyle||"normal",e.fontWeight||c.A.fontWeight("regular"),e.lineHeight||c.A.lineHeight("regular"))}},85463:e=>{e.exports=function(e){return e!=e}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),a=n(17400);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},85558:e=>{e.exports=function(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}},85577:(e,t,n)=>{"use strict";n.d(t,{GP:()=>M});var r=n(9946),o=n(92516),a=n(2831),i=n(70228),c=n(29407);function s(e,t){const n=(0,c.a)(e,t?.in);return(0,a.m)(n,(0,i.D)(n))+1}var l=n(72794),u=n(51898),p=n(65456),d=n(84485);function f(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const h={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return f(Math.trunc(r*Math.pow(10,n-3)),t.length)}},m="midnight",g="noon",v="morning",y="afternoon",b="evening",w="night",x={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){const o=(0,d.h)(e,r),a=o>0?o:1-o;if("YY"===t){return f(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):f(a,t.length)},R:function(e,t){return f((0,u.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,p.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){const r=(0,l.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){const r=s(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return f(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return f(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?g:0===r?m:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?b:r>=12?y:r>=4?v:w,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return O(r);case"XXXX":case"XX":return S(r);default:return S(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return O(r);case"xxxx":case"xx":return S(r);default:return S(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k(r,":");default:return"GMT"+S(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k(r,":");default:return"GMT"+S(r,":")}},t:function(e,t,n){return f(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function k(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+f(a,2)}function O(e,t){if(e%60==0){return(e>0?"-":"+")+f(Math.abs(e)/60,2)}return S(e,t)}function S(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+f(Math.trunc(r/60),2)+t+f(r%60,2)}var E=n(78668),j=n(3265),_=n(32370);const P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,D=/''/g,T=/[a-zA-Z]/;function M(e,t,n){const a=(0,o.q)(),i=n?.locale??a.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,c.a)(e,n?.in);if(!(0,_.f)(u))throw new RangeError("Invalid time value");let p=t.match(A).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,E.m[t])(e,i.formatLong)}return e})).join("").match(P).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:R(e)};if(x[t])return{isToken:!0,value:e};if(t.match(T))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(p=i.localize.preprocessor(u,p));const d={firstWeekContainsDate:s,weekStartsOn:l,locale:i};return p.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,j.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,j.ef)(o))&&(0,j.Ss)(o,t,String(e));return(0,x[o[0]])(u,o,i.localize,d)})).join("")}function R(e){const t=e.match(C);return t?t[1].replace(D,"'"):e}},85735:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,c=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=c},86151:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,a){for(var i=-1,c=n(t((r-e)/(o||1)),0),s=Array(c);c--;)s[a?c:++i]=e,e+=o;return s}},86375:(e,t,n)=>{var r=n(14528),o=n(28879),a=n(4664),i=n(63345),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=c},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!r()&&(e instanceof Element||e instanceof o(e).Element)}function i(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){return o(e).getComputedStyle(e)}n.d(t,{L9:()=>c,Ng:()=>i,vq:()=>a})},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},87068:(e,t,n)=>{var r=n(37217),o=n(25911),a=n(21986),i=n(50689),c=n(5861),s=n(56449),l=n(3656),u=n(37167),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=s(e),b=s(t),w=y?d:c(e),x=b?d:c(t),k=(w=w==p?f:w)==f,O=(x=x==p?f:x)==f,S=w==x;if(S&&l(e)){if(!l(t))return!1;y=!0,k=!1}if(S&&!k)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):a(e,t,w,n,m,g,v);if(!(1&n)){var E=k&&h.call(e,"__wrapped__"),j=O&&h.call(t,"__wrapped__");if(E||j){var _=E?e.value():e,P=j?t.value():t;return v||(v=new r),g(_,P,n,m,v)}}return!!S&&(v||(v=new r),i(e,t,n,m,g,v))}},87105:(e,t,n)=>{"use strict";n.d(t,{BV:()=>Ht,C5:()=>Nt,N_:()=>Sn,Ri:()=>ut,Ys:()=>wn,pg:()=>Rt,qh:()=>Lt,zy:()=>pt});var r,o=n(4883),a=(n(16069),e=>{throw TypeError(e)}),i=(e,t,n)=>(((e,t,n)=>{t.has(e)||a("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),c="popstate";function s(e={}){return m((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return d("",{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 p(e,t){return{usr:e.state,key:e.key,idx:t}}function d(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",u=null,h=m();function m(){return(i.state||{idx:null}).idx}function g(){s="POP";let e=m(),t=null==e?null:e-h;h=e,u&&u({action:s,location:y.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:f(e);return n=n.replace(/ $/,"%20"),l(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==h&&(h=0,i.replaceState({...i.state,idx:h},""));let y={get action(){return s},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),u=e,()=>{o.removeEventListener(c,g),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=d(y.location,e,t);n&&n(r,e),h=m()+1;let c=p(r,h),l=y.createHref(r);try{i.pushState(c,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}a&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let r=d(y.location,e,t);n&&n(r,e),h=m();let o=p(r,h),c=y.createHref(r);i.replaceState(o,"",c),a&&u&&u({action:s,location:y.location,delta:0})},go:e=>i.go(e)};return y}var g=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 v=new Set(["lazy","caseSensitive","path","id","index","children"]);var y=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function b(e,t,n=[],r={}){return e.map(((e,o)=>{let a=[...n,String(o)],i="string"==typeof e.id?e.id:a.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!r[i],`Found a route id collision on id "${i}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:i};return r[i]=n,n}{let n={...e,...t(e),id:i,children:void 0};return r[i]=n,e.children&&(n.children=b(e.children,t,a,r)),n}}))}function w(e,t,n="/"){return x(e,t,n,!1)}function x(e,t,n,r){let o=N(("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=I(o);i=M(a[e],t,r)}return i}function k(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data: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=W([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:T(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of S(e.path))o(e,t,n);else o(e,t)})),t}function S(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=S(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 E=/^:[\w-]+$/,j=3,_=2,P=1,A=10,C=-2,D=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(D)&&(r+=C),t&&(r+=_),n.filter((e=>!D(e))).reduce(((e,t)=>e+(E.test(t)?j:""===t?P:A)),r)}function M(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=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),p=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:W([a,u.pathname]),pathnameBase:U(W([a,u.pathnameBase])),route:p}),"/"!==u.pathnameBase&&(a=W([a,u.pathnameBase]))}return i}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(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?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,r]}(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){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 N(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 L(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 F(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function H(e){let t=F(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function B(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},l(!o.pathname||!o.pathname.includes("?"),L("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),L("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),L("#","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:z(r),hash:V(o)}}(o,a),u=c&&"/"!==c&&c.endsWith("/"),p=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!p||(s.pathname+="/"),s}var W=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Y=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 q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var $=["POST","PUT","PATCH","DELETE"],G=new Set($),K=["GET",...$],J=new Set(K),X=new Set([301,302,303,307,308]),Q=new Set([307,308]),Z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),oe="remix-router-transitions",ae=Symbol("ResetLoaderData");function ie(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.mapRouteProperties||re,c={},s=b(e.routes,i,void 0,c),p=e.basename||"/",f=e.dataStrategy||ke,h={unstable_middleware:!1,...e.future},m=null,v=new Set,y=null,O=null,S=null,E=null!=e.hydrationData,j=w(s,e.history.location,p),_=!1,P=null;if(null==j&&!e.patchRoutesOnNavigation){let t=Fe(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Le(s);j=n,P={[r.id]:t}}if(j&&!e.hydrationData){et(j,s,e.history.location.pathname).active&&(j=null)}if(j)if(j.some((e=>e.route.lazy)))o=!1;else if(j.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=j.findIndex((e=>void 0!==n[e.route.id]));o=j.slice(0,e+1).every((e=>!pe(e.route,t,n)))}else o=j.every((e=>!pe(e.route,t,n)))}else o=!0;else{o=!1,j=[];let t=et(null,s,e.history.location.pathname);t.active&&t.matches&&(_=!0,j=t.matches)}let A,C,D={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:Z,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||P,fetchers:new Map,blockers:new Map},T="POP",M=!1,R=!1,I=new Map,L=null,F=!1,H=!1,B=new Set,W=new Map,U=0,z=-1,V=new Map,Y=new Set,$=new Map,G=new Map,K=new Set,J=new Map,X=null;function ae(e,t={}){D={...D,...e};let n=[],r=[];D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{D.fetchers.has(e)||W.has(e)||n.push(e)})),[...v].forEach((e=>e(D,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>xe(e))),r.forEach((e=>D.fetchers.delete(e)))}function ie(t,n,{flushSync:o}={}){let a,i=null!=D.actionData&&null!=D.navigation.formMethod&&$e(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?D.actionData:null;let c=n.loaderData?Re(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,l=D.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,te))));let u,p=!0===M||null!=D.navigation.formMethod&&$e(D.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(s=r,r=void 0),F||"POP"===T||("PUSH"===T?e.history.push(t,t.state):"REPLACE"===T&&e.history.replace(t,t.state)),"POP"===T){let e=I.get(D.location.pathname);e&&e.has(t.pathname)?u={currentLocation:D.location,nextLocation:t}:I.has(t.pathname)&&(u={currentLocation:t,nextLocation:D.location})}else if(R){let e=I.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(D.location.pathname,e)),u={currentLocation:D.location,nextLocation:t}}ae({...n,actionData:a,loaderData:c,historyAction:T,location:t,initialized:!0,navigation:Z,revalidation:"idle",restoreScrollPosition:Ge(t,n.matches||D.matches),preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===o}),T="POP",M=!1,R=!1,F=!1,H=!1,X?.resolve(),X=null}async function le(t,n,o){A&&A.abort(),A=null,T=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(y&&S){let n=qe(e,t);y[n]=S()}}(D.location,D.matches),M=!0===(o&&o.preventScrollReset),R=!0===(o&&o.enableViewTransition);let a=r||s,i=o&&o.overrideNavigation,c=o?.initialHydration&&D.matches&&D.matches.length>0&&!_?D.matches:w(a,n,p),l=!0===(o&&o.flushSync);if(c&&D.initialized&&!H&&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}(D.location,n)&&!(o&&o.submission&&$e(o.submission.formMethod)))return void ie(n,{matches:c},{flushSync:l});let u=et(c,a,n.pathname);if(u.active&&u.matches&&(c=u.matches),!c){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return void ie(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}A=new AbortController;let d,f=Ae(e.history,n,A.signal,o&&o.submission),h=new g(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)d=[Ne(c).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&$e(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,i={}){ve();let c,s=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(ae({navigation:s},{flushSync:!0===i.flushSync}),a){let n=await tt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Ne(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}=Ye(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let l=Ke(r,t);if(l.route.action||l.route.lazy){let t=await me("action",e,[l],r,o,null);if(c=t[l.route.id],!c)for(let e of r)if(t[e.route.id]){c=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else c={type:"error",error:Fe(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(ze(c)){let t;if(i&&null!=i.replace)t=i.replace;else{t=Pe(c.response.headers.get("Location"),new URL(e.url),p)===D.location.pathname+D.location.search}return await fe(e,c,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ue(c)){let e=Ne(r,l.route.id);return!0!==(i&&i.replace)&&(T="PUSH"),{matches:r,pendingActionResult:[e.route.id,c]}}return{matches:r,pendingActionResult:[l.route.id,c]}}(f,n,o.submission,c,h,u.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ue(r)&&q(r.error)&&404===r.error.status)return A=null,void ie(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,d=t.pendingActionResult,i=Xe(n,o.submission),l=!1,u.active=!1,f=Ae(e.history,f.url,f.signal)}let{shortCircuited:m,matches:v,loaderData:b,errors:x}=await async function(t,n,o,a,i,c,l,u,d,f,h,m){let g=c||Xe(n,l),v=l||u||Je(g),y=!F&&!f;if(i){if(y){let e=de(m);ae({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:h})}let e=await tt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ne(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ye(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||s,[w,x]=ue(e.history,D,o,v,n,!0===f,H,B,K,$,Y,b,p,m);if(z=++U,0===w.length&&0===x.length){let e=Ce();return ie(n,{matches:o,loaderData:{},errors:m&&Ue(m[1])?{[m[0]]:m[1].error}:null,...Ie(m),...e?{fetchers:new Map(D.fetchers)}:{}},{flushSync:h}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=g;let t=de(m);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=D.fetchers.get(e.key),n=Qe(void 0,t?t.data:void 0);D.fetchers.set(e.key,n)})),new Map(D.fetchers)}(x)),ae(e,{flushSync:h})}x.forEach((e=>{Oe(e.key),e.controller&&W.set(e.key,e.controller)}));let k=()=>x.forEach((e=>Oe(e.key)));A&&A.signal.addEventListener("abort",k);let{loaderResults:O,fetcherResults:S}=await ge(o,w,x,t,a);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",k);x.forEach((e=>W.delete(e.key)));let E=He(O);if(E)return await fe(t,E.result,!0,{replace:d}),{shortCircuited:!0};if(E=He(S),E)return Y.add(E.key),await fe(t,E.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:j,errors:_}=Me(D,o,O,m,x,S);f&&D.errors&&(_={...D.errors,..._});let P=Ce(),C=De(z),T=P||C||x.length>0;return{matches:o,loaderData:j,errors:_,...T?{fetchers:new Map(D.fetchers)}:{}}}(f,n,c,h,u.active,i,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,d);m||(A=null,ie(n,{matches:v||c,...Ie(d),loaderData:b,errors:x}))}function de(e){return e&&!Ue(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function fe(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let f=o.response.headers.get("Location");l(f,"Expected a Location header on the redirect Response"),f=Pe(f,new URL(r.url),p);let h=d(D.location,f,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ne.test(f)){const r=e.history.createURL(f);n=r.origin!==t.location.origin||null==N(r.pathname,p)}if(n)return void(u?t.location.replace(f):t.location.assign(f))}A=null;let m=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=D.navigation;!i&&!c&&g&&v&&y&&(i=Je(D.navigation));let b=i||c;if(Q.has(o.response.status)&&b&&$e(b.formMethod))await le(m,h,{submission:{...b,formAction:f},preventScrollReset:s||M,enableViewTransition:a?R:void 0});else{let e=Xe(h,i);await le(m,h,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||M,enableViewTransition:a?R:void 0})}}async function me(e,t,n,r,o,a){let s,l={};try{s=await Ee(f,e,t,n,r,a,c,i,o)}catch(e){return n.forEach((t=>{l[t.route.id]={type:"error",error:e}})),l}for(let[e,n]of Object.entries(s))if(We(n)){let o=n.result;l[e]={type:"redirect",response:_e(o,t,e,r,p)}}else l[e]=await je(n);return l}async function ge(t,n,r,o,a){let i=me("loader",o,n,t,a,null),c=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",Ae(e.history,t.path,t.controller.signal),[t.match],t.matches,a,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Fe(404,{pathname:t.path})}})})));return{loaderResults:await i,fetcherResults:(await c).reduce(((e,t)=>Object.assign(e,t)),{})}}function ve(){H=!0,$.forEach(((e,t)=>{W.has(t)&&B.add(t),Oe(t)}))}function ye(e,t,n={}){D.fetchers.set(e,t),ae({fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function be(e,t,n,r={}){let o=Ne(D.matches,t);xe(e),ae({errors:{[o.route.id]:n},fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function we(e){return G.set(e,(G.get(e)||0)+1),K.has(e)&&K.delete(e),D.fetchers.get(e)||ee}function xe(e){let t=D.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&V.has(e)||Oe(e),$.delete(e),V.delete(e),Y.delete(e),K.delete(e),B.delete(e),D.fetchers.delete(e)}function Oe(e){let t=W.get(e);t&&(t.abort(),W.delete(e))}function Se(e){for(let t of e){let e=Ze(we(t).data);D.fetchers.set(t,e)}}function Ce(){let e=[],t=!1;for(let n of Y){let r=D.fetchers.get(n);l(r,`Expected fetcher: ${n}`),"loading"===r.state&&(Y.delete(n),e.push(n),t=!0)}return Se(e),t}function De(e){let t=[];for(let[n,r]of V)if(r<e){let e=D.fetchers.get(n);l(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Oe(n),V.delete(n),t.push(n))}return Se(t),t.length>0}function Te(e){D.blockers.delete(e),J.delete(e)}function Be(e,t){let n=D.blockers.get(e)||te;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(D.blockers);r.set(e,t),ae({blockers:r})}function Ve({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=D.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ye(e){let t=Fe(404,{pathname:e}),n=r||s,{matches:o,route:a}=Le(n);return{notFoundMatches:o,route:a,error:t}}function qe(e,t){if(O){return O(e,t.map((e=>k(e,D.loaderData))))||e.key}return e.key}function Ge(e,t){if(y){let n=qe(e,t),r=y[n];if("number"==typeof r)return r}return null}function et(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:x(n,r,p,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:x(n,r,p,!0)}}}return{active:!1,matches:null}}async function tt(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=null==r,u=r||s,d=c;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:l,fetcherKey:a,patch:(e,t)=>{o.aborted||he(e,t,u,d,i)}})}catch(e){return{type:"error",error:e,partialMatches:l}}finally{t&&!o.aborted&&(s=[...s])}if(o.aborted)return{type:"aborted"};let f=w(u,n,p);if(f)return{type:"success",matches:f};let h=x(u,n,p,!0);if(!h||l.length===h.length&&l.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};l=h}}return a={get basename(){return p},get future(){return h},get state(){return D},get routes(){return s},get window(){return t},initialize:function(){if(m=e.history.listen((({action:t,location:n,delta:r})=>{if(C)return C(),void(C=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=Ve({currentLocation:D.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{C=e}));return e.history.go(-1*r),void Be(o,{state:"blocked",location:n,proceed(){Be(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(D.blockers);e.set(o,te),ae({blockers:e})}})}return le(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(oe);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,I);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(oe,JSON.stringify(n))}catch(e){u(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,I);t.addEventListener("pagehide",e),L=()=>t.removeEventListener("pagehide",e)}return D.initialized||le("POP",D.location,{initialHydration:!0}),a},subscribe:function(e){return v.add(e),()=>v.delete(e)},enableScrollRestoration:function(e,t,n){if(y=e,S=t,O=n||null,!E&&D.navigation===Z){E=!0;let e=Ge(D.location,D.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{y=null,S=null,O=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ce(D.location,D.matches,p,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=se(!1,o,r),s=D.location,l=d(D.location,a,r&&r.state);l={...l,...e.history.encodeLocation(l)};let u=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===u?f="REPLACE":!1===u||null!=i&&$e(i.formMethod)&&i.formAction===D.location.pathname+D.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=Ve({currentLocation:s,nextLocation:l,historyAction:f});g?Be(g,{state:"blocked",location:l,proceed(){Be(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(D.blockers);e.set(g,te),ae({blockers:e})}}):await le(f,l,{submission:i,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Oe(t);let i=!0===(a&&a.flushSync),c=r||s,u=ce(D.location,D.matches,p,o,n,a?.relative),d=w(c,u,p),f=et(d,c,u);if(f.active&&f.matches&&(d=f.matches),!d)return void be(t,n,Fe(404,{pathname:u}),{flushSync:i});let{path:h,submission:m,error:v}=se(!0,u,a);if(v)return void be(t,n,v,{flushSync:i});let y=Ke(d,h),b=new g(e.unstable_getContext?await e.unstable_getContext():void 0),x=!0===(a&&a.preventScrollReset);m&&$e(m.formMethod)?await async function(t,n,o,a,i,c,u,d,f,h){function m(e){if(!e.route.action&&!e.route.lazy){let e=Fe(405,{method:h.formMethod,pathname:o,routeId:n});return be(t,n,e,{flushSync:d}),!0}return!1}if(ve(),$.delete(t),!u&&m(a))return;let g=D.fetchers.get(t);ye(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}(h,g),{flushSync:d});let v=new AbortController,y=Ae(e.history,o,v.signal,h);if(u){let e=await tt(i,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:d});if(!e.matches)return void be(t,n,Fe(404,{pathname:o}),{flushSync:d});if(m(a=Ke(i=e.matches,o)))return}W.set(t,v);let b=U,x=await me("action",y,[a],i,c,t),k=x[a.route.id];if(y.signal.aborted)return void(W.get(t)===v&&W.delete(t));if(K.has(t)){if(ze(k)||Ue(k))return void ye(t,Ze(void 0))}else{if(ze(k))return W.delete(t),z>b?void ye(t,Ze(void 0)):(Y.add(t),ye(t,Qe(h)),fe(y,k,!1,{fetcherSubmission:h,preventScrollReset:f}));if(Ue(k))return void be(t,n,k.error)}let O=D.navigation.location||D.location,S=Ae(e.history,O,v.signal),E=r||s,j="idle"!==D.navigation.state?w(E,D.navigation.location,p):D.matches;l(j,"Didn't find any matches after fetcher action");let _=++U;V.set(t,_);let P=Qe(h,k.data);D.fetchers.set(t,P);let[C,M]=ue(e.history,D,j,h,O,!1,H,B,K,$,Y,E,p,[a.route.id,k]);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=D.fetchers.get(t),r=Qe(void 0,n?n.data:void 0);D.fetchers.set(t,r),Oe(t),e.controller&&W.set(t,e.controller)})),ae({fetchers:new Map(D.fetchers)});let R=()=>M.forEach((e=>Oe(e.key)));v.signal.addEventListener("abort",R);let{loaderResults:I,fetcherResults:N}=await ge(j,C,M,S,c);if(v.signal.aborted)return;v.signal.removeEventListener("abort",R),V.delete(t),W.delete(t),M.forEach((e=>W.delete(e.key)));let L=He(I);if(L)return fe(S,L.result,!1,{preventScrollReset:f});if(L=He(N),L)return Y.add(L.key),fe(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:q}=Me(D,j,I,void 0,M,N);if(D.fetchers.has(t)){let e=Ze(k.data);D.fetchers.set(t,e)}De(_),"loading"===D.navigation.state&&_>z?(l(T,"Expected pending action"),A&&A.abort(),ie(D.navigation.location,{matches:j,loaderData:F,errors:q,fetchers:new Map(D.fetchers)})):(ae({errors:q,loaderData:Re(D.loaderData,F,j,q),fetchers:new Map(D.fetchers)}),H=!1)}(t,n,h,y,d,b,f.active,i,x,m):($.set(t,{routeId:n,path:h}),await async function(t,n,r,o,a,i,c,s,l,u){let p=D.fetchers.get(t);ye(t,Qe(u,p?p.data:void 0),{flushSync:s});let d=new AbortController,f=Ae(e.history,r,d.signal);if(c){let e=await tt(a,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void be(t,n,e.error,{flushSync:s});if(!e.matches)return void be(t,n,Fe(404,{pathname:r}),{flushSync:s});o=Ke(a=e.matches,r)}W.set(t,d);let h=U,m=await me("loader",f,[o],a,i,t),g=m[o.route.id];W.get(t)===d&&W.delete(t);if(f.signal.aborted)return;if(K.has(t))return void ye(t,Ze(void 0));if(ze(g))return z>h?void ye(t,Ze(void 0)):(Y.add(t),void await fe(f,g,!1,{preventScrollReset:l}));if(Ue(g))return void be(t,n,g.error);ye(t,Ze(g.data))}(t,n,h,y,d,b,f.active,i,x,m))},revalidate:function(){X||(X=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}}()),ve(),ae({revalidation:"loading"});let e=X.promise;return"submitting"===D.navigation.state?e:"idle"===D.navigation.state?(le(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(le(T||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===R}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:we,deleteFetcher:function(e){let t=(G.get(e)||0)-1;t<=0?(G.delete(e),K.add(e)):G.set(e,t),ae({fetchers:new Map(D.fetchers)})},dispose:function(){m&&m(),L&&L(),v.clear(),A&&A.abort(),D.fetchers.forEach(((e,t)=>xe(t))),D.blockers.forEach(((e,t)=>Te(t)))},getBlocker:function(e,t){let n=D.blockers.get(e)||te;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Te,patchRoutes:function(e,t){let n=null==r;he(e,t,r||s,c,i),n&&(s=[...s],ae({}))},_internalFetchControllers:W,_internalSetRoutes:function(e){c={},r=b(e,i,void 0,c)}},a}function ce(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=B(r||".",H(i),N(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=Ge(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="/"===s.pathname?n:W([n,s.pathname])),f(s)}function se(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&&!qe(n.formMethod))return{path:t,error:Fe(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Fe(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=Be(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!$e(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(!$e(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=Ce(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ce(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=De(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=De(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($e(s.formMethod))return{path:t,submission:s};let u=h(t);return e&&u.search&&Ge(u.search)&&r.append("index",""),u.search=`?${r}`,{path:f(u),submission:s}}function le(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function ue(e,t,n,r,o,a,i,c,s,l,u,p,d,f){let h=f?Ue(f[1])?f[1].error:f[1].data:void 0,m=e.createURL(t.location),g=e.createURL(o),v=n;a&&t.errors?v=le(n,Object.keys(t.errors)[0],!0):f&&Ue(f[1])&&(v=le(n,f[0]));let y=f?f[1].statusCode:void 0,b=y&&y>=400,x=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return pe(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(t.loaderData,t.matches[n],e))return!0;let c=t.matches[n],s=e;return fe(e,{currentUrl:m,currentParams:c.params,nextUrl:g,nextParams:s.params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!b&&(i||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||de(c,s))})})),k=[];return l.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||s.has(o))return;let l=w(p,e.path,d);if(!l)return void k.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),v=Ke(l,e.path),x=!1;u.has(o)?x=!1:c.has(o)?(c.delete(o),x=!0):x=f&&"idle"!==f.state&&void 0===f.data?i:fe(v,{currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!b&&i}),x&&k.push({key:o,routeId:e.routeId,path:e.path,matches:l,match:v,controller:new AbortController})})),[x,k]}function pe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function de(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function he(e,t,n,r,o){let a;if(e){let t=r[e];l(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let i=b(t.filter((e=>!a.some((t=>me(e,t))))),o,[e||"_","patch",String(a?.length||"0")],r);a.push(...i)}function me(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=>me(e,t))))))}var ge=new WeakMap,ve=({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=ge.get(o);i||(i={},ge.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return v.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},ye=new WeakMap;function be(e){return void 0!==e}function we(e,t,n){let r=e.map((({route:e})=>{if("object"==typeof e.lazy&&e.lazy.unstable_middleware)return ve({key:"unstable_middleware",route:e,manifest:t,mapRouteProperties:n})})).filter(be);return r.length>0?Promise.all(r):void 0}async function xe(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 ke(e){return e.matches.some((e=>e.route.unstable_middleware))?Oe(e,!1,(()=>xe(e)),((e,t)=>({[t]:{type:"error",result:e}}))):xe(e)}async function Oe(e,t,n,r){let{matches:o,request:a,params:i,context:c}=e,s={handlerResult:void 0};try{let e=o.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),r=await Se({request:a,params:i,context:c},e,t,s,n);return t?r:s.handlerResult}catch(e){if(!s.middlewareError)throw e;let n=await r(s.middlewareError.error,s.middlewareError.routeId);return t||!s.handlerResult?n:Object.assign(s.handlerResult,n)}}async function Se(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)return r.handlerResult=await o(),r.handlerResult;let s,[l,u]=c,p=!1,d=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0;let i=await Se(e,t,n,r,o,a+1);if(n)return s=i,s};try{let t=await u({request:e.request,params:e.params,context:e.context},d);return p?void 0===t?s:t:d()}catch(e){throw r.middlewareError?r.middlewareError.error!==e&&(r.middlewareError={routeId:l,error:e}):r.middlewareError={routeId:l,error:e},e}}async function Ee(e,t,n,r,o,a,i,c,s){let p=we(o,i,c),d=o.map((e=>function(e,t,n,r){let o=n[e.id];if(l(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=ye.get(o);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=(a=e,y.has(a)),c=void 0!==o[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 "${o.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 a;Object.assign(o,n),Object.assign(o,{...r(o),lazy:void 0})})();return ye.set(o,n),{lazyRoutePromise:n,lazyHandlerPromise:n}}let a,i=Object.keys(e.lazy),c=[];for(let o of i){let i=ve({key:o,route:e,manifest:n,mapRouteProperties:r});i&&(c.push(i),o===t&&(a=i))}return{lazyRoutePromise:Promise.all(c).then((()=>{})),lazyHandlerPromise:a}}(e.route,t,i,c)));p&&await p;let f=o.map(((e,o)=>{let{lazyRoutePromise:a,lazyHandlerPromise:i}=d[o],c=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:c,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?async function({type:e,request:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:a,scopedContext:i}){let c,s,l=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),t.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:i},...void 0!==o?[o]:[]),u=(async()=>{try{return{type:"data",result:await(a?a((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,c])};try{let a=n.route[e];if(r||o)if(a){let e,[t]=await Promise.all([l(a).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Fe(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([l(a),o])}else{if(!a){let e=new URL(t.url);throw Fe(404,{pathname:e.pathname+e.search})}c=await l(a)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return c}({type:t,request:n,match:e,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:r,scopedContext:s}):Promise.resolve({type:"data",result:void 0}))}})),h=await e({matches:f,request:n,params:o[0].params,fetcherKey:a,context:s}),m=d.flatMap((e=>Object.values(e).filter(be)));try{await Promise.all(m)}catch(e){}return h}async function je(e){let{result:t,type:n}=e;if(Ye(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 Y(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?Ve(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 Y(t.init?.status||500,void 0,t.data),statusCode:q(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:q(t)?t.status:void 0}:Ve(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 _e(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"),!ne.test(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ce(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Pe(e,t,n){if(ne.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=N(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Ae(e,t,n,r){let o=e.createURL(Be(t)).toString(),a={signal:n};if(r&&$e(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=Ce(r.formData):a.body=r.formData}return new Request(o,a)}function Ce(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function De(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Te(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,u={},p=n&&Ue(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(l(!ze(f),"Cannot handle redirect results in processLoaderData"),Ue(f)){let t=f.error;if(void 0!==p&&(t=p,p=void 0),c=c||{},o)c[d]=t;else{let n=Ne(e,d);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[d]=ae),s||(s=!0,a=q(f.error)?f.error.status:500),f.headers&&(u[d]=f.headers)}else i[d]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(u[d]=f.headers)})),void 0!==p&&n&&(c={[n[0]]:p},i[n[0]]=void 0),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:u}}function Me(e,t,n,r,o,a){let{loaderData:i,errors:c}=Te(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,i=a[n];if(l(i,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Ue(i)){let t=Ne(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(ze(i))l(!1,"Unhandled fetcher revalidation redirect");else{let t=Ze(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Re(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ae)).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 Ie(e){return e?Ue(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ne(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 Le(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 Fe(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 Y(e||500,i,new Error(c),!0)}function He(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ze(r))return{key:n,result:r}}}function Be(e){return f({..."string"==typeof e?h(e):e,hash:""})}function We(e){return Ye(e.result)&&X.has(e.result.status)}function Ue(e){return"error"===e.type}function ze(e){return"redirect"===(e&&e.type)}function Ve(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ye(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function qe(e){return J.has(e.toUpperCase())}function $e(e){return G.has(e.toUpperCase())}function Ge(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ke(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Ge(n||""))return e[e.length-1];let r=F(e);return r[r.length-1]}function Je(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 Xe(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 Qe(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 Ze(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 et=o.createContext(null);et.displayName="DataRouter";var tt=o.createContext(null);tt.displayName="DataRouterState";var nt=o.createContext({isTransitioning:!1});nt.displayName="ViewTransition";var rt=o.createContext(new Map);rt.displayName="Fetchers";var ot=o.createContext(null);ot.displayName="Await";var at=o.createContext(null);at.displayName="Navigation";var it=o.createContext(null);it.displayName="Location";var ct=o.createContext({outlet:null,matches:[],isDataRoute:!1});ct.displayName="Route";var st=o.createContext(null);st.displayName="RouteError";var lt=!0;function ut(){return null!=o.useContext(it)}function pt(){return l(ut(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(it).location}var dt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ft(e){o.useContext(at).static||o.useLayoutEffect(e)}function ht(){let{isDataRoute:e}=o.useContext(ct);return e?function(){let{router:e}=Ot("useNavigate"),t=Et("useNavigate"),n=o.useRef(!1);return ft((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{u(n.current,dt),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){l(ut(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(et),{basename:t,navigator:n}=o.useContext(at),{matches:r}=o.useContext(ct),{pathname:a}=pt(),i=JSON.stringify(H(r)),c=o.useRef(!1);return ft((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(u(c.current,dt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=B(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:W([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function mt(e,{relative:t}={}){let{matches:n}=o.useContext(ct),{pathname:r}=pt(),a=JSON.stringify(H(n));return o.useMemo((()=>B(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function gt(e,t,n,r){l(ut(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:i}=o.useContext(at),{matches:c}=o.useContext(ct),s=c[c.length-1],p=s?s.params:{},d=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;if(lt){let e=m&&m.path||"";Pt(d,!m||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 g,v=pt();if(t){let e="string"==typeof t?h(t):t;l("/"===f||e.pathname?.startsWith(f),`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 "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=v;let y=g.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=!i&&n&&n.matches&&n.matches.length>0?n.matches:w(e,{pathname:b});lt&&(u(m||null!=x,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),u(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.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 k=xt(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:W([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:W([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,r);return t&&k?o.createElement(it.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},k):k}function vt(){let e=jt(),t=q(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 lt&&(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 yt=o.createElement(vt,null),bt=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(ct.Provider,{value:this.props.routeContext},o.createElement(st.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function wt({routeContext:e,match:t,children:n}){let r=o.useContext(et);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ct.Provider,{value:e},n)}function xt(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,p=!1,d=null,f=null;n&&(u=i&&r.route.id?i[r.route.id]:void 0,d=r.route.errorElement||yt,c&&(s<0&&0===l?(Pt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,f=null):s===l&&(p=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),m=()=>{let t;return t=u?d:p?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(wt,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(bt,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ot(e){let t=o.useContext(et);return l(t,kt(e)),t}function St(e){let t=o.useContext(tt);return l(t,kt(e)),t}function Et(e){let t=function(e){let t=o.useContext(ct);return l(t,kt(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 jt(){let e=o.useContext(st),t=St("useRouteError"),n=Et("useRouteError");return void 0!==e?e:t.errors?.[n]}var _t={};function Pt(e,t,n){t||_t[e]||(_t[e]=!0,u(!1,n))}var At={};function Ct(e,t){e||At[t]||(At[t]=!0,console.warn(t))}var Dt=!0;function Tt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Dt&&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&&(Dt&&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&&(Dt&&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 Mt=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 Rt({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(),[p,d]=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))),Ct(!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(Ct(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((()=>{p&&(l&&l.resolve(),p.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),d(void 0),i(void 0),s({isTransitioning:!1})}))})),void t((()=>d(o)))}p?(l&&l.resolve(),p.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,p,l]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&u(new Mt)}),[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),d(void 0),i(void 0),s({isTransitioning:!1})})),d(c)}}),[a,l,e.window]),o.useEffect((()=>{l&&a&&n.location.key===a.location.key&&l.resolve()}),[l,p,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(et.Provider,{value:b},o.createElement(tt.Provider,{value:n},o.createElement(rt.Provider,{value:m.current},o.createElement(nt.Provider,{value:c},o.createElement(Ft,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(It,{routes:e.routes,future:e.future,state:n})))))),null)}var It=o.memo((function({routes:e,future:t,state:n}){return gt(e,void 0,n,t)}));function Nt({to:e,replace:t,state:n,relative:r}){l(ut(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(at);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(ct),{pathname:c}=pt(),s=ht(),p=B(e,H(i),c,"path"===r),d=JSON.stringify(p);return o.useEffect((()=>{s(JSON.parse(d),{replace:t,state:n,relative:r})}),[s,d,r,t,n]),null}function Lt(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 Ft({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){l(!ut(),"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:p="/",search:d="",hash:f="",state:m=null,key:g="default"}=n,v=o.useMemo((()=>{let e=N(p,c);return null==e?null:{location:{pathname:e,search:d,hash:f,state:m,key:g},navigationType:r}}),[c,p,d,f,m,g,r]);return u(null!=v,`<Router basename="${c}"> is not able to match the URL "${p}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(at.Provider,{value:s},o.createElement(it.Provider,{children:t,value:v}))}function Ht({children:e,location:t}){return gt(Bt(e),t)}o.Component;function Bt(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,Bt(e.props.children,a));l(e.type===Lt,`[${"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=Bt(e.props.children,a)),n.push(i)})),n}var Wt="get",Ut="application/x-www-form-urlencoded";function zt(e){return null!=e&&"string"==typeof e.tagName}var Vt=null;var Yt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qt(e){return null==e||Yt.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ut}"`),null)}function $t(e,t){let n,r,o,a,i;if(function(e){return zt(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?N(i,t):null,n=e.getAttribute("method")||Wt,o=qt(e.getAttribute("enctype"))||Ut,a=new FormData(e)}else if(function(e){return zt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return zt(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?N(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Wt,o=qt(e.getAttribute("formenctype"))||qt(i.getAttribute("enctype"))||Ut,a=new FormData(i,e),!function(){if(null===Vt)try{new FormData(document.createElement("form"),0),Vt=!1}catch(e){Vt=!0}return Vt}()){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(zt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Wt,r=null,o=Ut,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function Gt(e,t){if(!1===e||null==e)throw new Error(t)}async function Kt(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 Jt(e){return null!=e&&"string"==typeof e.page}function Xt(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 Qt(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 Zt(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 en(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Jt(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 tn(e){return{__html:e}}Symbol("SingleFetchRedirect");function nn(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===N(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function rn({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://remix.run/guides/errors for more information."\n );\n '}});if(q(e))return o.createElement(on,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);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(on,{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 on({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=un();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(vn,null):null)))}function an(e){return!0===e}function cn(){let e=o.useContext(et);return Gt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sn(){let e=o.useContext(tt);return Gt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ln=o.createContext(void 0);function un(){let e=o.useContext(ln);return Gt(e,"You must render this element inside a <HydratedRouter> element"),e}function pn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function dn(e,t,n){if(n&&!gn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function fn({page:e,...t}){let{router:n}=cn(),r=o.useMemo((()=>w(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(mn,{page:e,matches:r,...t}):null}function hn(e){let{manifest:t,routeModules:n}=un(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return en((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Kt(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Xt).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 mn({page:e,matches:t,...n}){let r=pt(),{manifest:a,routeModules:i}=un(),{basename:c}=cn(),{loaderData:s,matches:l}=sn(),u=o.useMemo((()=>Qt(e,t,l,a,r,"data")),[e,t,l,a,r]),p=o.useMemo((()=>Qt(e,t,l,a,r,"assets")),[e,t,l,a,r]),d=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=nn(e,c);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((()=>Zt(p,a)),[p,a]),h=hn(p);return o.createElement(o.Fragment,null,d.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,...t}))))}ln.displayName="FrameworkContext";var gn=!1;function vn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:a,renderMeta:i}=un(),{router:c,static:s,staticContext:l}=cn(),{matches:u}=sn(),p=an(a);i&&(i.didRenderScripts=!0);let d=dn(u,null,r);o.useEffect((()=>{0}),[]);let f=o.useMemo((()=>{let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",a=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${d.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Gt(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 ${p?`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=w(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,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${d.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:tn(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:tn(a),type:"module",async:!0}))}),[]),h=gn?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(Zt(d,t,{includeHydrateFallback:!0}))),m="object"==typeof t.sri?t.sri:{};return gn?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:m})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:m[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:m[t.entry.module],suppressHydrationWarning:!0}),h.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:m[t],suppressHydrationWarning:!0}))),f)}function yn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var bn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{bn&&(window.__reactRouterVersion="7.5.0")}catch(e){}function wn(e,t){return ie({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({window:t?.window}),hydrationData:t?.hydrationData||xn(),routes:e,mapRouteProperties:Tt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function xn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:kn(e.errors)}),e}function kn(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 Y(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 On=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:c,target:s,to:p,preventScrollReset:d,viewTransition:h,...m},g){let v,{basename:y}=o.useContext(at),b="string"==typeof p&&On.test(p),w=!1;if("string"==typeof p&&b&&(v=p,bn))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),n=N(t.pathname,y);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:w=!0}catch(e){u(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){l(ut(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(at),{hash:a,pathname:i,search:c}=mt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:W([n,i])),r.createHref({pathname:s,search:c,hash:a})}(p,{relative:r}),[k,O,S]=function(e,t){let n=o.useContext(ln),[r,a]=o.useState(!1),[i,c]=o.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:p,onTouchStart:d}=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:pn(s,h),onBlur:pn(l,m),onMouseEnter:pn(u,h),onMouseLeave:pn(p,m),onTouchStart:pn(d,h)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:c}={}){let s=ht(),l=pt(),u=mt(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])}(p,{replace:i,state:c,target:s,preventScrollReset:d,relative:r,viewTransition:h});let j=o.createElement("a",{...m,...S,href:v||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:yn(g,O),target:s,"data-discover":b||"render"!==t?void 0:"true"});return k&&!b?o.createElement(o.Fragment,null,j,o.createElement(fn,{page:x})):j}));Sn.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},p){let d=mt(i,{relative:u.relative}),f=pt(),h=o.useContext(tt),{navigator:m,basename:g}=o.useContext(at),v=null!=h&&function(e,t={}){let n=o.useContext(nt);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_n("useViewTransitionState"),a=mt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=N(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=N(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(a.pathname,c)||null!=R(a.pathname,i)}(d)&&!0===c,y=m.encodeLocation?m.encodeLocation(d).pathname:d.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=N(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,O=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:O,isPending:S,isTransitioning:v},j=O?e:void 0;k="function"==typeof n?n(E):[n,O?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof a?a(E):a;return o.createElement(Sn,{...u,"aria-current":j,className:k,ref:p,style:_,to:i,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var En=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:c=Wt,action:s,onSubmit:u,relative:p,preventScrollReset:d,viewTransition:h,...m},g)=>{let v=Cn(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(at),r=o.useContext(ct);l(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...mt(e||".",{relative:t})},c=pt();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:W([n,i.pathname]));return f(i)}(s,{relative:p}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&On.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:p,preventScrollReset:d,viewTransition:h})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function jn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _n(e){let t=o.useContext(et);return l(t,jn(e)),t}En.displayName="Form";var Pn=0,An=()=>`__${String(++Pn)}__`;function Cn(){let{router:e}=_n("useSubmit"),{basename:t}=o.useContext(at),n=Et("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:c,formData:s,body:l}=$t(r,t);if(!1===o.navigate){let t=o.fetcherKey||An();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])}new TextEncoder},87296:(e,t,n)=>{var r,o=n(55481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},87424:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=l();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=s(n(87695)),a=s(n(59321)),i=s(n(13486)),c=n(36462);function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="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},u(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(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 h(e){return function(){var t,n=g(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=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return m(e)}(this,t)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){return!0},w="suggestions-revealed",x="input-focused",k="input-changed",O="escape-pressed",S=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&&v(e,t)}(l,e);var t,n,o,s=h(l);function l(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),y(m(t=s.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),y(m(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),y(m(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),y(m(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),y(m(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),y(m(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),y(m(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),y(m(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,a=r.onSuggestionSelected,i=r.onSuggestionsFetchRequested;a&&a(e,n);var c=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);o||c?i({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),y(m(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,a=t.getSuggestionIndices(t.findSuggestionElement(e.target)),i=a.sectionIndex,c=a.suggestionIndex,s=t.getSuggestion(i,c),l=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,l,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:l,suggestionIndex:c,sectionIndex:i,method:"click"});var u=t.props.shouldKeepSuggestionsOnSelect(s);r||u||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),y(m(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,a=n.onBlur,i=t.getHighlightedSuggestion(),c=r(o,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),a&&a(t.blurEvent,{highlightedSuggestion:i})})),y(m(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),y(m(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),y(m(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),y(m(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),y(m(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=l,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,a.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,a.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(o){var c=this.getHighlightedSuggestion();c!=t.highlightedSuggestion&&o({suggestion:c})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var a=o.valueBeforeUpDown;return null===t?a=null:null===a&&void 0!==n&&(a=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:a}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,a=n.getSectionSuggestions;return o?a(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,a=r.onChange;t!==o&&a(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,o=e.shouldRenderSuggestions,a=r.value;return n.length>0&&o(a,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,a=t.onSuggestionsFetchRequested,s=t.renderSuggestion,l=t.inputProps,u=t.multiSection,p=t.renderSectionTitle,f=t.id,h=t.getSectionSuggestions,m=t.theme,g=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,S=t.containerProps,E=this.state,j=E.isFocused,_=E.isCollapsed,P=E.highlightedSectionIndex,A=E.highlightedSuggestionIndex,C=E.valueBeforeUpDown,D=v?b:this.props.shouldRenderSuggestions,T=l.value,M=l.onFocus,R=l.onKeyDown,I=this.willRenderSuggestions(this.props,"render"),N=v||j&&!_&&I,L=N?n:[],F=d({},l,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=D(T,x);e.setState({isFocused:!0,isCollapsed:!n}),M&&M(t),n&&a({value:T,reason:x})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=D(n,k);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?a({value:n,reason:k}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(_)D(T,w)&&(a({value:T,reason:w}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var i,c=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex;i=null===s?null===C?T:C:e.getSuggestionValueByIndex(c,s),e.updateHighlightedSuggestion(c,s,T),e.maybeCallOnChange(t,i,40===o?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var l=e.getHighlightedSuggestion();if(N&&!v&&e.closeSuggestions(),null!=l){t.preventDefault();var u=g(l);e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:A,sectionIndex:P,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:N&&t.preventDefault();var p=N&&!v;null===C?p||(e.maybeCallOnChange(t,"","escape"),D("",O)?a({value:"",reason:O}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,C,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),H={query:this.getQuery()};return r.default.createElement(i.default,{multiSection:u,items:L,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:H,renderSectionTitle:p,getSectionItems:h,highlightedSectionIndex:P,highlightedItemIndex:A,containerProps:S,inputProps:F,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(m),id:f,ref:this.storeAutowhateverRef})}}],n&&f(t.prototype,n),o&&f(t,o),l}(r.Component);t.default=S,y(S,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:o.default.func,onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string,containerProps:o.default.object}),y(S,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1",containerProps:{}})},87683:(e,t,n)=>{"use strict";n.d(t,{F3:()=>f,GT:()=>d,J9:()=>s,JF:()=>l,MT:()=>u,V1:()=>c});var r=n(81293),o=n(54819),a=n(62587),i=n(89160);function c(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function d(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,i=Intl.DisplayNames,c=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:p(e.dateTime),strategy:o.W.variadic}),s=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:p(e.number),strategy:o.W.variadic}),l=(0,o.B)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.fX)([void 0],t,!1)))}),{cache:p(e.pluralRules),strategy:o.W.variadic});return{getDateTimeFormat:c,getNumberFormat:s,getMessageFormat:(0,o.B)((function(e,t,n,o){return new a.S(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:s,getDateTimeFormat:c,getPluralRules:l}},o||{}))}),{cache:p(e.message),strategy:o.W.variadic}),getRelativeTimeFormat:(0,o.B)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e,!1)))}),{cache:p(e.relativeTime),strategy:o.W.variadic}),getPluralRules:l,getListFormat:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e,!1)))}),{cache:p(e.list),strategy:o.W.variadic}),getDisplayNames:(0,o.B)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(i.bind.apply(i,(0,r.fX)([void 0],e,!1)))}),{cache:p(e.displayNames),strategy:o.W.variadic})}}function f(e,t,n,r){var o,a=e&&e[t];if(a&&(o=a[n]),o)return o;r(new i.OC("No ".concat(t," format named: ").concat(n)))}},87695:(e,t,n)=>{e.exports=n(915)()},87730:(e,t,n)=>{var r=n(29172),o=n(27301),a=n(86009),i=a&&a.isMap,c=i?o(i):r;e.exports=c},87805:(e,t,n)=>{var r=n(43360),o=n(75288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),a=n(80631),i=n(28586),c=n(30756),s=n(89578),l=n(77797);e.exports=function(e,t){return i(e)&&c(t)?s(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},88695:(e,t,n)=>{"use strict";n.d(t,{A:()=>lc});var r=n(26396),o=n.n(r),a=n(92207),i=n.n(a),c=n(43786),s=n(63205),l=n(5556),u=n.n(l),p={neutral:"neutral",info:"info",warning:"warning",error:"error",success:"success"},d="OUTPUTJOB",f="ENTITIES",h=o()(o()(o()(o()(o()({},p.neutral,null),p.error,"times-circle"),p.warning,"exclamation-circle"),p.success,"check-circle"),p.info,"info-circle"),m=(u().shape({key:u().string.isRequired,message:u().string,read:u().bool,timestamp:u().string,originId:u().string,type:u().string,downloadStream:u().shape({readableStream:u().any.isRequired,filename:u().string.isRequired}),taskProgress:u().shape({taskExecutionKey:u().string.isRequired,status:u().string,message:u().string,percentage:u().number,done:u().number,total:u().number,supportsCancellation:u().bool,isRunning:u().bool})}),i().mark(S)),g=i().mark(E);function v(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={failed:"error",info:"info",warning:"warning",success:"success"},w="running_infinite",x="running_absolute",k="pending",O=function(e){return e.status&&(e.status===k||e.status===x||e.status===w)};function S(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=y(y({},e),{},{type:b[e.type]||"info",result:e.result?JSON.parse(e.result):null,taskProgress:e.taskProgress?y(y({},e.taskProgress),{},{isRunning:O(e.taskProgress),percentage:Math.round(100/e.taskProgress.total*e.taskProgress.done)}):null}),n.next=3,(0,c.T1)(E,t.result);case 3:return t.result=n.sent,n.abrupt("return",t);case 5:case"end":return n.stop()}}),m)}function E(e){var t,n,r,o,a,l;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!e||e.type!==d){i.next=14;break}return t=null,i.prev=2,n=e.content[0].key,i.next=6,(0,c.T1)(s.A.fetchEntity,"Output_job",n,{paths:["document"]});case 6:r=i.sent,o=r.paths.document.value,a=o.fileName,l=o.binaryLink,t={name:a,link:l,description:e.content[0].display},i.next=13;break;case 11:i.prev=11,i.t0=i.catch(2);case 13:return i.abrupt("return",y(y({},e),{},{file:t}));case 14:return i.abrupt("return",e);case 15:case"end":return i.stop()}}),g,null,[[2,11]])}var j,_,P=n(71468),A="notification/MODAL",C="notification/REMOVE_MODAL",D=function(e,t,n,r){return{type:A,payload:{id:e,title:t,message:n,component:r,cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],cancelCallback:arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){},options:arguments.length>6&&void 0!==arguments[6]?arguments[6]:{}}}},T=function(e){return{type:C,payload:{id:e}}},M=n(81845),R=n.n(M),I=n(44518),N=n(72189),L=n.n(N),F=n(51510),H=F.Ay.div.withConfig({displayName:"StyledPageOverlay"})(j||(j=L()(["\n background-color: rgb(50 50 50 / 70%);\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n"]))),B=F.Ay.div.withConfig({displayName:"StyledHolder"})(_||(_=L()(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n\n /* higher than StyledHeader and very high value to prevent other elements blocking it when implemented as a widget\n lower than ext-js legacy actions */\n z-index: 9000;\n"]))),W=n(56375),U=n(23228),z=n(85015),V=n.n(z),Y=n(58065),q=n(64116),$=n(74848);const G=(0,F.SL)((function(e){return(0,$.jsx)(q.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));var K,J,X=n(6442),Q=n(40622),Z=n(4883);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(K||(K={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(J||(J={}));var ee=function(e){var t=(0,X.A)(),n=e.value,r=e.children,o=(0,Q.Tt)(e,["value","children"]);return r(t.formatNumberToParts(n,o))};ee.displayName="FormattedNumberParts";function te(e){var t=function(t){var n=(0,X.A)(),r=t.value,o=t.children,a=(0,Q.Tt)(t,["value","children"]),i="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(i,a):n.formatTimeToParts(i,a))};return t.displayName=J[e],t}function ne(e){var t=function(t){var n=(0,X.A)(),r=t.value,o=t.children,a=(0,Q.Tt)(t,["value","children"]),i=n[e](r,a);if("function"==typeof o)return o(i);var c=n.textComponent||Z.Fragment;return Z.createElement(c,null,i)};return t.displayName=K[e],t}ee.displayName="FormattedNumberParts";var re=ne("formatDate"),oe=(ne("formatTime"),ne("formatNumber"));ne("formatList"),ne("formatDisplayName"),te("formatDate"),te("formatTime");const ae=function(e){var t=(0,X.A)();return(0,$.jsx)(W.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,$.jsx)(re,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var ie,ce=n(85577),se=n(38798);const le=(0,se.Ay)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),ie||(ie=(0,$.jsx)(W.Ay.Span,{}));var o=(0,ce.GP)(r,"HH:mm");return(0,$.jsxs)(W.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,$.jsx)(re,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var ue,pe=n(84890),de=n(59182),fe=n(67940);function he(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ge=function(e){var t=e.options||{},n=(0,$.jsxs)($.Fragment,{children:[t.title&&(0,$.jsx)(W.Ay.H5,{children:t.title}),(0,$.jsx)(de.A,me({},e))]});return"text"===t.mode?n:(0,$.jsx)(pe.A,{content:n,isPlainHtml:!0,children:ue||(ue=(0,$.jsx)(fe.o,{children:(0,$.jsx)(q.A,{icon:"question-circle"})}))})};var ve=n(58156),ye=n.n(ve),be=n(31558),we=n(66779),xe=n(44905);const ke=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,a=ye()(r,t.resourceKey,null);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(pe.A,{content:a?(0,$.jsx)("div",{dangerouslySetInnerHTML:{__html:we.A.sanitizeHtml(a)}}):null,children:(0,$.jsx)("span",{onMouseOver:function(){return o&&!a&&o(t.resourceKey)},children:(0,$.jsx)(xe.A,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,$.jsx)(xe.A,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:be.A.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};var Oe=n(25107);const Se=function(e){return(0,$.jsx)(Oe.A,{id:e.id,onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};var Ee=n(81792);const je=function(e){var t=e.value,n=parseInt(t),r=Ee.A.formatDuration(n);return(0,$.jsx)(W.Ay.Time,{dateTime:r,title:r,children:r})};const _e=function(e){return(0,$.jsx)(xe.A,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};var Pe,Ae=n(57488),Ce=F.Ay.img.withConfig({displayName:"StyledImage"})(Pe||(Pe=L()(["\n max-width: 100%;\n max-height: 100%;\n width: 200px;\n border: 1px solid ",";\n border-radius: ",";\n"])),Ae.t7.color("border"),Ae.t7.radii("form"));const De=function(e){var t=e.value;return(0,$.jsx)(Ce,{src:t.binaryLink,srcSet:"".concat(t.thumbnailLink," 250w, ").concat(t.binaryLink," 400w"),sizes:"(max-width: 250px) 125px, 200px",alt:t.fileName,title:t.fileName})};const Te=function(e){return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Me(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=function(){return"; "};const Ne=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,a=n||{},i=a.navigationStrategy,c=a.linkProps,s=a.tooltips,l=a.loadTooltip,u=(null==t?void 0:t.length)>0?t.map((function(e){if(null!=i&&i.DetailLink){var t=ye()(s,e.key,null);return(0,$.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,$.jsx)(i.DetailLink,Re(Re({},c),{},{entityKey:e.key,children:(0,$.jsx)(pe.A,{content:t?(0,$.jsx)("div",{dangerouslySetInnerHTML:{__html:we.A.sanitizeHtml(t)}}):null,children:(0,$.jsx)("span",{onMouseOver:function(){return l&&!t&&l(e.key)},children:e.display})})}))},e.key)}return(0,$.jsx)(Z.Fragment,{children:e.display},e.key)})).reduce((function(e,t,n){return[e,(0,$.jsx)(Ie,{},"sep".concat(n)),t]})):null;return(0,$.jsx)(W.Ay.Span,{breakWords:r,useTitle:o,children:u})};const Le=function(e){return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,$.jsx)(oe,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const Fe=function(e){var t;return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,$.jsx)(oe,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function He(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=(0,Z.lazy)((function(){return Promise.all([n.e(211),n.e(672)]).then(n.bind(n,74302))}));const Ue=function(e){return(0,$.jsx)(Z.Suspense,{fallback:"",children:(0,$.jsx)(We,Be({},e))})};var ze=n(23076);function Ve(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qe=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,a=n||{},i=a.tooltips,c=a.loadTooltip,s=a.navigationStrategy,l=a.linkProps,u=ye()(i,t.key,null);t=ze.A.getOrFirst(t);var p=(0,$.jsx)(W.Ay.Span,{breakWords:r,useTitle:!u,id:o,children:t.display});return(null!=s&&s.DetailLink?(0,$.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,$.jsx)(s.DetailLink,Ye(Ye({},l),{},{entityKey:t.key,children:(0,$.jsx)(pe.A,{content:u?(0,$.jsx)("div",{dangerouslySetInnerHTML:{__html:we.A.sanitizeHtml(u)}}):null,children:(0,$.jsx)("span",{onMouseOver:function(){return c&&!u&&c(t.key)},id:o,children:p})})}))}):null)||p};const $e=function(e){return(0,$.jsx)(W.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};var Ge=n(41224),Ke=function(e,t){return parseInt(e.split(":")[t])||0};const Je=(0,se.Ay)((function(e){var t=e.value,n=(e.intl,Ke(t,0)),r=Ke(t,1),o=Ke(t,2),a=Ke(t,3),i=new Date(2e3,1,1,n,r,o,a),c=(0,ce.GP)(i,"HH:mm:ss.SSS"),s=(0,ce.GP)(i,"HH:mm");return(0,$.jsx)(W.Ay.Time,{dateTime:c,title:s,children:s})}));const Xe=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,$.jsx)(xe.A,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var Qe,Ze={boolean:G,date:ae,datetime:le,image:De,document:Se,"document-compact":ke,duration:je,email:_e,html:de.A,integer:Te,"multi-remote":Ne,"multi-select":Ne,number:Le,percent:Fe,phone:Ue,remote:qe,"single-select":qe,string:$e,text:Ge.A,time:Je,url:Xe,description:ge};const et=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,a=void 0===o||o,i=e.useTitle,c=void 0===i||i,s=e.id;if(Ze[t]){var l=Ze[t];return(0,$.jsx)(l,{value:n,options:r,breakWords:a,useTitle:c,id:s})}return console.log("No FormattedValue mapper defined for component type",t,n),Qe||(Qe=(0,$.jsx)("div",{}))};var tt;const nt=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,a=e.useTitle,i=e.id;return null==n||""===n?tt||(tt=(0,$.jsx)("span",{})):(0,$.jsx)(et,{componentType:t,value:n,options:r,breakWords:o,useTitle:a,id:i})};const rt=function(e){var t,n=e.children;return V()(n)?(t=n)&&/<\/?[a-zA-Z0-9]*\/?>/.test(t)?(0,$.jsx)(nt,{type:"html",value:n}):function(e){return e&&e.startsWith("client.")}(n)?(0,$.jsx)(Y.A,{id:n}):(0,$.jsx)("span",{children:n}):n};var ot,at;const it={blockingDiplayStyles:(0,F.AH)(ot||(ot=L()(["\n background-color: ",";\n\n * {\n color: ",";\n }\n"])),Ae.t7.color("signal.info"),Ae.t7.color("paper")),titleWrapperStyles:(0,F.AH)(at||(at=L()(["\n color: ",";\n"])),Ae.t7.color("paper"))};var ct,st;const lt={blockingDiplayStyles:(0,F.AH)(ct||(ct=L()(["\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n * {\n color: ",";\n }\n"])),Ae.t7.color("paper"),Ae.t7.color("border"),Ae.t7.radii("toaster"),Ae.t7.color("text")),titleWrapperStyles:(0,F.AH)(st||(st=L()(["\n color: ",";\n"])),Ae.t7.color("signal.info"))};var ut,pt,dt=o()(o()({},U.A.EmbedType.admin,it),U.A.EmbedType.widget,lt),ft=n(26166),ht=F.Ay.div.withConfig({displayName:"StyledBlockingDisplay"})(ut||(ut=L()(["\n /* only latest modal should be above mask */\n z-index: ",";\n position: fixed;\n top: 10px;\n left: 50%;\n transform: translateX(-155px);\n width: 310px;\n padding: ",";\n ","\n"])),(function(e){return e.isLatest?1:-1}),ft.A.space(-.5),(function(e){return e.styles})),mt=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(pt||(pt=L()(["\n font-size: ",";\n font-weight: ",";\n ","\n"])),ft.A.font(1.5),Ae.t7.fontWeight("regular"),(function(e){return e.styles}));const gt=function(e){var t=e.blocker,n=t.title,r=t.body,o=e.isLatest,a=U.A.embedStrategy({mapping:dt});return(0,$.jsxs)(ht,{styles:a.blockingDiplayStyles,isLatest:o,children:[n&&(0,$.jsx)(W.Ay.H1,{children:(0,$.jsx)(mt,{styles:a.titleWrapperStyles,children:(0,$.jsx)(rt,{children:n})})}),r&&(0,$.jsx)(W.Ay.Span,{children:(0,$.jsx)(rt,{children:r})})]})};const vt=function(e){var t=e.blocker,n=e.isLatest;return(0,$.jsx)(gt,{blocker:t,isLatest:n})};var yt=n(87105),bt=n(96424),wt=function(e){var t=e.onLocationChange,n=(0,yt.zy)(),r=bt.A.usePrevious(n.pathname);return(0,Z.useEffect)((function(){n.pathname!==r&&r&&t()}),[n.pathname,r,t]),null};wt.propTypes={onLocationChange:u().func};const xt=function(e){var t=e.onLocationChange,n=(0,yt.Ri)();return(0,$.jsx)($.Fragment,{children:n&&(0,$.jsx)(wt,{onLocationChange:t})})};var kt=n(48067),Ot=n(98671),St=n(8271),Et=n(22056),jt=n.n(Et);function _t(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 Pt(e){return function(t){var n=(0,Z.useState)(null),r=jt()(n,2),a=r[0],i=r[1],c=(0,Z.useRef)(!0);return(0,Z.useEffect)((function(){return e().then((function(e){return c.current?i((function(){return e})):null})),function(){c.current=!1}}),[]),null!==a?(0,$.jsx)(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)):null}}var At=n(73082);function Ct(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tt={};const Mt={loadRoute:function(e,t,n,r){return function(o){if(r&&Tt[r]){var a=Tt[r];return(0,$.jsx)(a,Dt({},o))}var i=Pt((function(){return new Promise((function(r){n().then((function(n){var o=n.default;o.reducers&&Ot.A.injectReducers(e,o.reducers),o.sagas&&o.sagas.forEach((function(t){St.A.injectSaga(e,t)})),o.inputDispatches&&o.inputDispatches.forEach((function(n){!function(e,t,n){var r=n.key,o=n.actionCreator,a=n.mandatory,i=void 0!==a&&a,c=n.defaultValue,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:At.A.logError;if(Object.prototype.hasOwnProperty.call(t,r)||c){var l=o(t[r]||c);e.dispatch(l)}else!0===i&&s("EntityBrowser: Mandatory field '".concat(r,"' not set in input"))}(e,t,n)})),r(o.container)}))}))}));return r&&(Tt[r]=i),(0,$.jsx)(i,Dt({},o))}},extractParamsFromPath:function(e,t){var n=(0,kt.YW)(e)(t);return(null==n?void 0:n.params)||null},InvokeOnLocationChange:xt,redirect:function(e){window.location.href=e}};var Rt,It,Nt,Lt,Ft,Ht=n(7647),Bt="250px",Wt=ft.A.space(.25),Ut=(0,F.AH)(Rt||(Rt=L()(["\n /* Base grid properties */\n grid-gap: ",";\n grid-template-columns: repeat(auto-fit, minmax(",", 1fr));\n\n /* Custom ratio override */\n ","\n\n /* Mobile layout */\n ","\n"])),Wt,Bt,(function(e){var t=e.ratio;return t&&(0,F.AH)(It||(It=L()(["\n grid-template-columns: ",";\n "])),function(e){return e?e.split(":").filter(Boolean).map((function(e){return"minmax(".concat(Bt,", ").concat(e,"fr)")})).join(" "):""}(t))}),(function(e){return e.containerWidth<600&&(0,F.AH)(Nt||(Nt=L()(["\n grid-template-columns: 100%;\n grid-gap: 0;\n "])))}));const zt=F.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(Lt||(Lt=L()(["\n /* Base layout styles */\n display: grid;\n padding-right: ",";\n\n /* Grid column configuration */\n ","\n\n /* Height adjustment */\n ","\n"])),ft.A.space(0),Ut,(function(e){return e.occupiesRemainingHeight&&(0,F.AH)(Ft||(Ft=L()(["\n flex: 1;\n "])))}));var Vt,Yt,qt,$t,Gt,Kt,Jt,Xt,Qt,Zt,en,tn,nn,rn,on=n(62764),an=n(1671),cn=ft.A.space(.5),sn={small:(0,F.AH)(Vt||(Vt=L()(["\n max-width: 350px;\n "]))),medium:(0,F.AH)(Yt||(Yt=L()(["\n max-width: 700px;\n "]))),large:(0,F.AH)(qt||(qt=L()(["\n max-width: 700px;\n\n @media (min-width: 875px) {\n max-width: 80%;\n }\n "])))},ln=F.Ay.div.withConfig({displayName:"StyledModalContent"})($t||($t=L()(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n padding: ",";\n display: grid;\n grid-template-rows: [header] auto [body] 1fr;\n\n /* within the modal the load mask height must be set to auto to prevent cut off when sticky buttons are present */\n "," {\n height: auto;\n }\n\n "," {\n padding-right: 0;\n }\n\n @media (min-width: 501px) {\n top: 10dvh;\n box-shadow: 2px 2px 10px rgb(0 0 0 / 40%);\n max-height: 80%;\n min-width: 350px;\n margin: auto;\n\n ","\n }\n\n @media (max-width: 500px) {\n box-sizing: border-box;\n height: 100dvh;\n width: 100dvw;\n }\n"])),Ae.t7.color("paper"),Ae.t7.radii("modal"),cn,Ht.A,zt,(function(e){var t=e.size;return sn[t]})),un=F.Ay.button.withConfig({displayName:"StyledCloseButton"})(Gt||(Gt=L()(["\n background-color: transparent;\n border: none;\n cursor: pointer;\n font-size: 22px;\n opacity: 0.8;\n outline: none;\n position: relative;\n padding: 0;\n z-index: 1;\n margin-left: auto;\n align-self: flex-start;\n color: ",";\n\n &:hover {\n opacity: 1;\n }\n\n &:focus {\n outline: none;\n }\n"])),Ae.t7.color("text")),pn=F.Ay.div.withConfig({displayName:"StyledModalWrapper"})(Kt||(Kt=L()(["\n width: 100%;\n height: 100%;\n position: absolute;\n\n /* only latest modal should be above mask */\n z-index: ",";\n"])),(function(e){return e.isLatest?1:-1})),dn=F.Ay.div.withConfig({displayName:"StyledModalHeader"})(Jt||(Jt=L()(["\n grid-row-start: header;\n display: flex;\n"]))),fn=F.Ay.div.withConfig({displayName:"StyledTitleWrapper"})(Xt||(Xt=L()(["\n padding-bottom: ",";\n"])),ft.A.space(.5)),hn=F.Ay.div.withConfig({displayName:"StyledModalBody"})(Qt||(Qt=L()(["\n grid-row-start: body;\n overflow: hidden auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))),mn=F.Ay.div.withConfig({displayName:"StyledMessageWrapper"})(Zt||(Zt=L()(["\n padding-bottom: ",";\n"])),ft.A.space(0)),gn=(0,F.Ay)(on.A).withConfig({displayName:"StyledModalButton"})(en||(en=L()(["\n margin-top: ",";\n\n &:last-child {\n margin-right: 0;\n }\n"])),ft.A.space(0)),vn=F.Ay.div.withConfig({displayName:"StyledModalButtonWrapper"})(tn||(tn=L()(["\n display: flex;\n justify-content: flex-end;\n"]))),yn=(0,F.DU)(nn||(nn=L()(["\n "," {\n && {\n z-index: 9999999; /* higher than StyledModalHolder */\n }\n }\n\n html,\n body {\n /* prevent scroll of background when modal is open */\n overflow: hidden !important;\n\n /* fix scroll to top on WP when scroll-behaviour is set to smooth */\n scroll-behavior: auto !important;\n }\n"])),an.Ec);const bn=function(e){var t,n=e.modal,r=n.cancelable,o=n.message,a=n.title,i=n.id,c=n.component,s=n.options,l=e.onClose,u=e.onCancel,p=e.isLatest,d=(0,Z.useRef)(null),f=(s||{}).size,h=void 0===f?"medium":f,m=(0,Z.useCallback)((function(){l(i)}),[l,i]),g=(0,Z.useCallback)((function(){u(i)}),[u,i]);(0,Z.useEffect)((function(){var e=function(e){"Escape"===e.key&&r&&g()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[g,r]),(0,Z.useLayoutEffect)((function(){d.current&&setTimeout((function(){return window.scrollTo(0,0)}),10)}),[d]);var v=(0,Z.useMemo)((function(){return t||(t=(0,$.jsx)(c,{close:m}))}),[c,m]);return(0,$.jsxs)($.Fragment,{children:[rn||(rn=(0,$.jsx)(yn,{})),(0,$.jsx)(Mt.InvokeOnLocationChange,{onLocationChange:m}),(0,$.jsx)(pn,{isLatest:p,children:(0,$.jsxs)(ln,{ref:d,"data-cy":"modal-content",size:h,children:[(0,$.jsxs)(dn,{children:[a&&(0,$.jsx)(fn,{children:(0,$.jsx)(W.Ay.H1,{children:(0,$.jsx)(rt,{children:a})})}),r&&(0,$.jsx)(un,{onClick:g,type:"button","data-cy":"btn-modal-close",children:"✕"})]}),(0,$.jsxs)(hn,{children:[o&&(0,$.jsx)(mn,{children:(0,$.jsx)(W.Ay.Span,{children:(0,$.jsx)(rt,{children:o})})}),v]})]})})]})};const wn=function(e){var t=e.modal,n=e.isLatest,r=e.closeModal;return(0,$.jsx)(bn,{modal:t,onClose:r,onCancel:function(e){r(e),t.cancelable&&t.cancelCallback&&t.cancelCallback()},isLatest:n})};var xn={closeModal:T};const kn=(0,P.Ng)((function(){return{}}),xn)(wn),On="MODAL",Sn="BLOCKING_INFO";var En;const jn=function(e){var t=e.overlays;return t.length>0&&R().createPortal((0,$.jsxs)(B,{className:I.e,children:[t.map((function(e,n){return function(e,t,n){return e.type===On?(0,$.jsx)(kn,{idx:t,modal:e,isLatest:n},t):e.type===Sn?(0,$.jsx)(vt,{idx:t,blocker:e,isLatest:n},t):null}(e,n,n+1===t.length)})),En||(En=(0,$.jsx)(H,{}))]}),document.body)};var _n={closeModal:T};const Pn=(0,P.Ng)((function(e){return{overlays:e.notification.overlay.overlays}}),_n)(jn);var An,Cn,Dn,Tn,Mn,Rn,In,Nn,Ln="notification/SET_UNREAD_NOTIFICATION_KEYS",Fn="notification/UPDATE_UNREAD_NOTIFICATION",Hn="notification/LOAD_NOTIFICATIONS",Bn="notification/SET_NOTIFICATION",Wn="notification/SET_MORE_NOTIFICATIONS_AVAILABLE",Un="notification/UPDATE_NOTIFICATION",zn="notification/IS_LOADING_MORE_NOTIFICATIONS",Vn="notification/MARK_AS_READ",Yn="notification/CANCEL_TASK",qn=function(e){return{type:Bn,payload:{notifications:e}}},$n=function(e){return{type:Un,payload:{notification:e}}},Gn=function(){return{type:zn,payload:{isLoadingMoreNotifications:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}},Kn=function(e){return{type:Vn,payload:{notificationKey:e}}},Jn=function(e){return{type:Yn,payload:{taskExecutionKey:e}}},Xn="notification/TOASTER",Qn="notification/REMOVE_TOASTER",Zn="notification/REMOVE_TOASTER_FROM_STORE",er=function(e){return{type:Xn,payload:{toaster:e}}},tr=function(e,t){return{type:Qn,payload:{key:e,manually:t}}},nr=function(e){return{type:Zn,payload:{key:e}}},rr=n(72637),or=n.n(rr),ar=n(16193),ir=n.n(ar),cr=n(62885),sr=n(28888),lr=n(85431),ur=(0,F.i7)(An||(An=L()(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"]))),pr=F.Ay.div.withConfig({displayName:"StyledToaster"})(Cn||(Cn=L()(["\n ","\n margin-bottom: ",";\n padding: ",";\n box-shadow: 0 7px 12px -3px rgb(0 0 0 / 70%);\n animation-name: ",";\n animation-duration: 0.8s;\n pointer-events: auto;\n max-height: 90dvh;\n overflow-y: auto;\n\n @media only screen and (max-width: 500px) {\n width: 90%;\n margin-left: auto;\n margin-right: auto;\n }\n"])),(function(e){return e.styles}),ft.A.space(-.5),ft.A.space(0),ur),dr=(0,F.Ay)(cr.A).withConfig({displayName:"StyledCloseButton"})(Dn||(Dn=L()(["\n padding: 0;\n font-size: ",";\n color: ",";\n float: right;\n opacity: 0.9;\n\n &,\n &&:hover {\n background: transparent;\n cursor: pointer;\n }\n ","\n"])),ft.A.font(3),Ae.t7.color("backgroundBody"),(function(e){return e.styles})),fr=F.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(Tn||(Tn=L()(["\n display: flex;\n gap: ",";\n padding-right: ",";\n\n "," {\n margin-top: 0;\n }\n ","\n"])),ft.A.space(0),ft.A.space(0),sr.rd,(function(e){return e.styles})),hr=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Mn||(Mn=L()(["\n font-size: ",";\n font-weight: ",";\n position: relative;\n top: 1px;\n bottom: 2px;\n"])),ft.A.font(1.5),Ae.t7.fontWeight("regular")),mr=F.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Rn||(Rn=L()(["\n font-size: ",";\n"])),ft.A.font(7)),gr=F.Ay.div.withConfig({displayName:"StyledContentWrapper"})(In||(In=L()(["\n padding-top: ",";\n color: ",";\n"])),ft.A.space(-1),Ae.t7.color("textToaster")),vr=F.Ay.div.withConfig({displayName:"StyledToasterBox"})(Nn||(Nn=L()(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n pointer-events: none;\n ",";\n position: fixed;\n height: calc(100% - (40px + 55px)); /* subtract height of header plus some additional padding */\n min-width: 310px;\n max-width: 400px;\n top: 40px; /* height of Header to prevent coverage */\n right: 55px;\n\n /* lower than StyledModalHolder and very high value\n to prevent other elements blocking it when implemented as a widget */\n z-index: 99999;\n\n @media only screen and (max-width: 500px) {\n width: 100%;\n height: calc(100% - 50px); /* subtract height of header */\n right: 0;\n margin: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"])),(0,lr.A)());const yr=function(e){var t=e.toaster,n=e.closeToaster,r=e.cancelTask,o=e.navigationStrategy,a=e.styles,i=(0,Z.useCallback)((function(){n(t.key,!1)}),[t.key,n]),c=bt.A.useUserActive(i),s=jt()(c,3),l=s[0],u=s[1],p=s[2];(0,Z.useEffect)((function(){l(t.duration)}),[t.duration,l]);return(0,$.jsxs)(pr,{onMouseOver:function(){u()},onMouseLeave:function(){p()},type:t.type,styles:null==a?void 0:a.toasterStyles,"data-cy":"toaster-wrapper-".concat(t.key),children:[(0,$.jsx)(dr,{icon:"times",onClick:function(){n(t.key,!0)},styles:null==a?void 0:a.closeButtonStyles}),(0,$.jsxs)(fr,{type:t.type,styles:null==a?void 0:a.iconTitleWrapperStyles,children:[t.icon&&(0,$.jsx)(mr,{children:(0,$.jsx)(q.A,{icon:t.icon,hasFixedWidth:!1})}),t.title&&(0,$.jsx)(W.Ay.H1,{children:(0,$.jsx)(hr,{"data-cy":"toaster-title",children:(0,$.jsx)(rt,{children:t.title})})})]}),t.body&&(0,$.jsx)(gr,{"data-cy":"toaster-content",children:(0,$.jsx)(rt,{children:"function"==typeof t.body?(0,$.jsx)(t.body,{navigationStrategy:o,cancelTask:r}):t.body})})]},t.key)};var br,wr,xr={info:"info",success:"success",error:"danger",warning:"warning"},kr=function(){return(0,F.AH)(br||(br=L()(["\n background-color: "," !important;\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return xr[e]?t.colors.signal[xr[e]]:"#ccc"}(e.type,e.theme)}),Ae.t7.color("textToaster"))},Or=function(){return(0,F.AH)(wr||(wr=L()(["\n &:hover {\n opacity: 1;\n color: ",";\n }\n"])),Ae.t7.color("textToaster"))};function Sr(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}const Er=function(e){var t=ir()({},(or()(e),e));return(0,$.jsx)(yr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:kr,closeButtonStyles:Or}},t))};var jr,_r,Pr={info:"info",success:"success",error:"danger",warning:"warning"},Ar=function(){return(0,F.AH)(jr||(jr=L()(["\n background-color: "," !important;\n border-radius: ",";\n border: 1px solid ",";\n\n *,\n a:link // reset legacy styling\n {\n color: "," !important;\n }\n"])),Ae.t7.color("paper"),Ae.t7.radii("statusLabel"),Ae.t7.color("border"),Ae.t7.color("text"))},Cr=function(){return(0,F.AH)(_r||(_r=L()(["\n * {\n color: "," !important;\n }\n"])),(function(e){return function(e,t){return Pr[e]?t.colors.signal[Pr[e]]:"#ccc"}(e.type,e.theme)}))};function Dr(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}const Tr=function(e){var t=ir()({},(or()(e),e));return(0,$.jsx)(yr,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{toasterStyles:Ar,iconTitleWrapperStyles:Cr}},t))};var Mr=o()(o()({},U.A.EmbedType.admin,Er),U.A.EmbedType.widget,Tr);const Rr=U.A.embedStrategyFactory({mapping:Mr});const Ir=function(e){var t=e.toasters,n=e.removeToaster,r=e.cancelTask,o=e.navigationStrategy,a=Object.values(t).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)})).map((function(e){return(0,$.jsx)(Rr,{toaster:e,closeToaster:n,cancelTask:r,navigationStrategy:o},"toaster-".concat(e.key))}));return(0,$.jsx)($.Fragment,{children:t&&R().createPortal((0,$.jsx)(vr,{className:I.e,children:a}),document.body)})};var Nr={removeToaster:tr,cancelTask:Jn};const Lr=(0,P.Ng)((function(e){return{toasters:e.notification.toaster.toasters}}),Nr)(Ir);var Fr;const Hr=function(e){var t=e.navigationStrategy;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Lr,{navigationStrategy:t}),Fr||(Fr=(0,$.jsx)(Pn,{}))]})};var Br="notification/BLOCKING_INFO",Wr="notification/REMOVE_BLOCKING_INFO",Ur=n(69556),zr=n(24184),Vr=3600;function Yr(e){var t=Math.abs(e);return t<60?"second":t<Vr?"minute":t<86400?"hour":"day"}function qr(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return Vr;default:return 86400}}var $r=["second","minute","hour"];function Gr(e){return void 0===e&&(e="second"),$r.indexOf(e)>-1}var Kr=function(e){var t=(0,X.A)(),n=t.formatRelativeTime,r=t.textComponent,o=e.children,a=n(e.value||0,e.unit,(0,Q.Tt)(e,["children","value","unit"]));return"function"==typeof o?o(a):r?Z.createElement(r,null,a):Z.createElement(Z.Fragment,null,a)},Jr=function(e){var t=e.value,n=void 0===t?0:t,r=e.unit,o=void 0===r?"second":r,a=e.updateIntervalInSeconds,i=(0,Q.Tt)(e,["value","unit","updateIntervalInSeconds"]);(0,zr.V1)(!a||!(!a||!Gr(o)),"Cannot schedule update with unit longer than hour");var c,s=Z.useState(),l=s[0],u=s[1],p=Z.useState(0),d=p[0],f=p[1],h=Z.useState(0),m=h[0],g=h[1];o===l&&n===d||(f(n||0),u(o),g(Gr(o)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*Vr}}(n,o):0)),Z.useEffect((function(){function e(){clearTimeout(c)}if(e(),!a||!Gr(o))return e;var t=m-a,n=Yr(t);if("day"===n)return e;var r=qr(n),i=t-t%r,s=i>=m?i-r:i,l=Math.abs(s-m);return m!==s&&(c=setTimeout((function(){return g(s)}),1e3*l)),e}),[m,a,o]);var v=n||0,y=o;if(Gr(o)&&"number"==typeof m&&a){var b=qr(y=Yr(m));v=Math.round(m/b)}return Z.createElement(Kr,(0,Q.Cl)({value:v,unit:y},i))};Jr.displayName="FormattedRelativeTime";const Xr=Jr;var Qr,Zr,eo,to,no,ro,oo,ao,io,co,so,lo,uo,po=F.Ay.div.withConfig({displayName:"StyledTaskProgressWrapper"})(Qr||(Qr=L()(["\n margin-bottom: ",";\n\n a {\n padding-right: 1rem;\n }\n"])),ft.A.space(-1.5)),fo=F.Ay.span.withConfig({displayName:"StyledSpinnerWrapper"})(Zr||(Zr=L()(["\n margin-right: ",";\n"])),ft.A.space(-1.5)),ho=F.Ay.div.withConfig({displayName:"StyledProgressOuter"})(eo||(eo=L()(["\n border: 0.5px solid ",";\n width: 100%;\n height: 5px;\n"])),Ae.t7.color("paper")),mo=F.Ay.div.withConfig({displayName:"StyledProgressInner"})(to||(to=L()(["\n background-color: ",";\n width: ","%;\n height: 5px;\n"])),Ae.t7.color("paper"),(function(e){return e.percentage})),go=F.Ay.span.withConfig({displayName:"StyledMessage"})(no||(no=L()(["\n margin-right: ",";\n"])),ft.A.space(-2)),vo=F.Ay.div.withConfig({displayName:"StyledDetailLinkWrapper"})(ro||(ro=L()(["\n margin-top: ",";\n margin-bottom: ",";\n\n * {\n font-size: ",";\n text-decoration: none;\n }\n"])),ft.A.space(-2),ft.A.space(-2),ft.A.font(-1)),yo=F.Ay.div.withConfig({displayName:"StyledOutputJobWrapper"})(oo||(oo=L()(["\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; /* nice2 reset */\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),Ae.t7.color("text"),Ae.t7.color("text")),bo=F.Ay.div.withConfig({displayName:"StyledDownloadStreamWrapper"})(ao||(ao=L()(["\n margin-top: ",";\n margin-bottom: ",";\n\n a {\n color: ",";\n text-decoration: none;\n\n &:link {\n color: ","; /* nice2 reset */\n }\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),ft.A.space(-2),ft.A.space(-2),Ae.t7.color("text"),Ae.t7.color("text")),wo=F.Ay.div.withConfig({displayName:"StyledFileDescription"})(io||(io=L()(["\n margin-bottom: ",";\n\n && {\n a {\n text-decoration: underline;\n }\n }\n"])),ft.A.space(0)),xo=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(co||(co=L()(["\n padding-right: ",";\n"])),ft.A.space(-1.5)),ko=F.Ay.div.withConfig({displayName:"StyledCancelWrapper"})(so||(so=L()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n cursor: pointer;\n }\n"])),Ae.t7.color("text"));const Oo=(0,se.Ay)((function(e){var t,n=e.notification,r=e.intl,o=n.downloadStream,a=o.readableStream,i=o.filename,c=(t="client.common.actions.downloadStream.download",r.formatMessage({id:t})),s=(0,Z.useRef)(null);return(0,Z.useEffect)((function(){return s.current=URL.createObjectURL(a),function(){URL.revokeObjectURL&&URL.revokeObjectURL(s.current)}}),[a]),(0,$.jsx)(bo,{children:(0,$.jsxs)("a",{href:s.current,target:"_blank",rel:"noreferrer",title:c,download:i,children:[lo||(lo=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"arrow-to-bottom"})})),uo||(uo=(0,$.jsx)(Y.A,{id:"client.common.actions.downloadStream.download"}))]})})}));const So=function(e){var t=e.notification.message;return t&&0!==t.trim().length?(0,$.jsx)(go,{children:(0,$.jsx)(rt,{children:t})}):null};var Eo,jo=n(94394),_o=n.n(jo),Po=function(e){var t=e.hasTooManyEntities,n=e.children;return t?(0,$.jsx)(pe.A,{content:(0,$.jsx)(W.Ay.P,{children:(0,$.jsx)(Y.A,{id:"client.common.notification.tooManyRecords",values:{max:100}})}),placement:"top",children:n}):n};const Ao=function(e){var t=e.notification.result,n=e.navigationStrategy,r=t.content;return(0,$.jsx)($.Fragment,{children:Object.entries(_o()(r,(function(e){return e.model}))).map((function(e){var t=jt()(e,2),r=t[0],o=t[1];return(0,$.jsx)(vo,{children:n&&n.ListOrDetailLink&&(0,$.jsx)(Po,{hasTooManyEntities:o.length>100,children:(0,$.jsxs)(n.ListOrDetailLink,{entityName:r,entityKeys:o.map((function(e){return e.key})).slice(0,100),children:[Eo||(Eo=(0,$.jsx)(q.A,{icon:"arrow-right"}))," ",(0,$.jsx)(Y.A,{id:"client.common.notification.entitiesOpen",values:{modelName:o.at(0).modelName}})]})})},"entitylink-"+r)}))})};var Co,Do,To,Mo,Ro,Io;const No=(0,se.Ay)((function(e){var t=e.notification.result,n=e.navigationStrategy,r=e.intl,o=t.file,a=t.content,i=function(e){return r.formatMessage({id:e})},c=i("client.common.notification.outputJobFileLink"),s=i("client.common.notification.outputJobFileDownload");return o?(0,$.jsxs)(yo,{children:[(0,$.jsx)(wo,{children:(0,$.jsx)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:c,children:o.description})}),(0,$.jsx)("div",{children:(0,$.jsxs)("a",{href:o.link,target:"_blank",rel:"noreferrer",title:c,children:[Co||(Co=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"eye"})})),Do||(Do=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobFileLink"}))]})}),be.A.downloadSupportedByBrowser()&&(0,$.jsxs)("a",{href:be.A.addParameterToURL(o.link,"download",!0),target:"_blank",rel:"noreferrer",title:s,children:[To||(To=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"arrow-to-bottom"})})),Mo||(Mo=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobFileDownload"}))]}),(0,$.jsx)(vo,{children:n&&n.DetailLink&&(0,$.jsxs)(n.DetailLink,{entityName:a[0].model,entityKey:a[0].key,children:[Ro||(Ro=(0,$.jsx)(q.A,{icon:"arrow-right"}))," ",Io||(Io=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobOpen"}))]})})]}):null}));var Lo=o()(o()({},d,No),f,Ao);const Fo=function(e){var t=e.notification,n=e.navigationStrategy,r=t.result.type;if(Lo[r]){var o=Lo[r];return(0,$.jsx)(o,{notification:t,navigationStrategy:n})}return console.log("No Result mapper defined for type",r),null};var Ho,Bo,Wo,Uo,zo;const Vo=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.taskProgress,a=(null==r?void 0:r.DetailLink)&&"completed"!==o.status,i=t.type===p.info&&o.isRunning&&o.supportsCancellation;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(po,{children:[(0,$.jsx)(fo,{children:o.isRunning&&(Ho||(Ho=(0,$.jsx)(Ur.A,{})))}),(0,$.jsx)(So,{notification:t})]}),"running_absolute"===o.status&&(0,$.jsx)($.Fragment,{children:(0,$.jsx)(ho,{children:(0,$.jsx)(mo,{percentage:o.percentage})})}),(0,$.jsx)(vo,{children:a&&(0,$.jsxs)(r.DetailLink,{entityName:"Task_execution",entityKey:o.taskExecutionKey,children:[Bo||(Bo=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"arrow-right"})})),Wo||(Wo=(0,$.jsx)(Y.A,{id:"client.common.notification.outputJobShowTask"}))]})}),i&&(0,$.jsxs)(ko,{onClick:function(){return n(o.taskExecutionKey)},children:[Uo||(Uo=(0,$.jsx)(xo,{children:(0,$.jsx)(q.A,{icon:"times"})})),zo||(zo=(0,$.jsx)(Y.A,{id:"client.common.notification.cancelTask"}))]})]})};const Yo=function(e){var t=e.notification,n=e.cancelTask,r=e.navigationStrategy,o=t.result,a=t.taskProgress,i=t.downloadStream;return o?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(So,{notification:t}),(0,$.jsx)(Fo,{notification:t,navigationStrategy:r})]}):a?(0,$.jsx)(Vo,{notification:t,navigationStrategy:r,cancelTask:n}):i?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(So,{notification:t}),(0,$.jsx)(Oo,{notification:t,navigationStrategy:r})]}):(0,$.jsx)(So,{notification:t})},qo=Yo;var $o,Go,Ko,Jo,Xo,Qo,Zo,ea,ta={warning:Ae.t7.color("signal.warning"),error:Ae.t7.color("signal.danger"),success:Ae.t7.color("signal.success"),info:Ae.t7.color("signal.info")},na=F.Ay.article.withConfig({displayName:"StyledNotification"})($o||($o=L()(["\n margin-bottom: ",";\n padding: ",";\n ","\n"])),ft.A.space(0),ft.A.space(-1),(function(e){return!e.read&&(0,F.AH)(Go||(Go=L()(["\n background-color: ",";\n "])),Ae.t7.color("backgroundBody"))})),ra=F.Ay.header.withConfig({displayName:"StyledNotificationHeader"})(Ko||(Ko=L()(["\n display: flex;\n align-items: center;\n margin-bottom: ",";\n\n * {\n margin-top: 0 !important;\n color: "," !important;\n }\n"])),ft.A.space(-1),(function(e){var t=e.notificationType;return ta[t]})),oa=F.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Jo||(Jo=L()(["\n display: inline-block;\n margin-right: ",";\n font-size: ",";\n"])),ft.A.space(-1.5),ft.A.font(5)),aa=F.Ay.span.withConfig({displayName:"StyledTitleWrapper"})(Xo||(Xo=L()(["\n * {\n font-weight: "," !important;\n }\n"])),Ae.t7.fontWeight("regular")),ia=F.Ay.div.withConfig({displayName:"StyledNotificationTitleWrapper"})(Qo||(Qo=L()(["\n ","\n margin-bottom: ",";\n"])),(0,lr.A)({fontSize:ft.A.font(2.9),fontWeight:Ae.t7.fontWeight("bold"),color:Ae.t7.color("secondary")}),ft.A.space(-.5)),ca=F.Ay.div.withConfig({displayName:"StyledTimeStamp"})(Zo||(Zo=L()(["\n font-size: ",";\n"])),ft.A.font(-2)),sa=F.Ay.div.withConfig({displayName:"StyledNotificationCenter"})(ea||(ea=L()(["\n max-height: calc(100dvh - 100px);\n overflow-y: auto;\n width: inherit;\n padding: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n /* within the notification center the progress bars need another color */\n "," {\n background-color: transparent;\n border: 0.5px solid ",";\n }\n\n "," {\n background-color: ",";\n }\n ","\n"])),ft.A.space(-.5),Ae.t7.color("paper"),Ae.t7.color("secondaryLight"),Ae.t7.radii("menu"),ho,Ae.t7.color("text"),mo,Ae.t7.color("textLighter"),(0,lr.A)());var la={warning:"exclamation-circle",error:"times-circle",success:"check-circle",info:"info-circle"};const ua=function(e){var t,n,r,o=e.notification,a=e.markAsRead,i=e.cancelTask,c=e.navigationStrategy,s=(0,Z.useRef)(null),l=Ee.A.selectUnit(new Date(o.timestamp)),u=(0,Z.useState)((function(){return o.read})),p=jt()(u,1)[0];return t=s,n=function(){o.read||a(o.key)},r=new IntersectionObserver((function(e){jt()(e,1)[0].isIntersecting&&(n(),r.disconnect())})),(0,Z.useEffect)((function(){return r.observe(t.current),function(){r.disconnect()}}),[]),(0,$.jsxs)(na,{ref:s,read:p,"data-cy":"notification-item",children:[(0,$.jsxs)(ra,{notificationType:o.type,children:[(0,$.jsx)(oa,{children:(0,$.jsx)(q.A,{icon:la[o.type]})}),(0,$.jsx)(aa,{children:(0,$.jsx)(W.Ay.H5,{children:o.title})})]}),(0,$.jsx)(qo,{notification:o,navigationStrategy:c,cancelTask:i}),(0,$.jsx)(ca,{children:(0,$.jsx)(Xr,{value:l.diffValue,unit:l.unit})})]})};var pa,da,fa,ha;const ma=function(e){var t=e.loadNotifications,n=e.notifications,r=e.moreNotificationsAvailable,o=e.isLoadingMoreNotifications,a=e.markAsRead,i=e.cancelTask,c=e.navigationStrategy,s=(0,Z.useRef)(null);(0,Z.useEffect)((function(){t()}),[t]);var l=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return!e.result||e.result.type!==d||e.result.file})).filter((function(e){return!e.taskProgress||"cancelled"!==e.taskProgress.status})).sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})).map((function(e){return(0,$.jsx)(ua,{markAsRead:a,cancelTask:i,notification:e,navigationStrategy:c},"notification-".concat(e.key))}));return(0,$.jsxs)(sa,{ref:s,onScroll:function(){var e=Object.keys(n).length;s.current.scrollTop+s.current.offsetHeight>=s.current.scrollHeight&&(!o&&r)&&t(e)},children:[pa||(pa=(0,$.jsx)(ia,{children:(0,$.jsx)(Y.A,{id:"client.admin.notification.title"})})),l,o&&(da||(da=(0,$.jsx)(Ur.A,{}))),l.length>0&&!r&&(fa||(fa=(0,$.jsx)(W.Ay.I,{children:(0,$.jsx)(Y.A,{id:"client.admin.notification.noMoreNotifications"})}))),0===l.length&&!o&&(ha||(ha=(0,$.jsx)(W.Ay.I,{children:(0,$.jsx)(Y.A,{id:"client.admin.notification.noNotification"})})))]})};var ga={loadNotifications:function(){return{type:Hn,payload:{offset:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}}},markAsRead:Kn,cancelTask:Jn};const va=(0,P.Ng)((function(e){return{notifications:e.notification.center.notifications,moreNotificationsAvailable:e.notification.center.moreNotificationsAvailable,isLoadingMoreNotifications:e.notification.center.isLoadingMoreNotifications}}),ga)(ma);var ya="notification/CONFIRM",ba="notification/YES_NO_QUESTION",wa="notification/INFO",xa="notification/CONNECT_SOCKET",ka="notification/CLOSE_SOCKET",Oa="notification/SOCKET_MESSAGE_RECEIVED",Sa="notification/ADD_IGNORE_TOASTER",Ea=function(e){return{type:Oa,payload:{data:e}}},ja=function(e){return{type:Sa,payload:{key:e}}};const _a={SYNC_ACTION:"sync-action"};var Pa=n(14644),Aa=n(6730),Ca=i().mark(Ta),Da=i().mark(Ma);function Ta(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.jP)(Br,Ma),(0,c.jP)(Wr,Ma)]);case 3:case"end":return t.stop()}}),Ca)}function Ma(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),Da)}var Ra=n(80299),Ia=n.n(Ra);function Na(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fa=o()(o()(o()(o()(o()(o()({},Bn,(function(e,t){var n=t.payload.notifications;return La(La({},e),{},{notifications:La(La({},e.notifications),n),isLoadingMoreNotifications:!1})})),Wn,Ot.A.singleTransferReducer("moreNotificationsAvailable")),Un,(function(e,t){var n=t.payload.notification;return La(La({},e),{},{notifications:La(La({},e.notifications),{},o()({},n.key,n))})})),Ln,Ot.A.singleTransferReducer("unreadNotificationKeys")),Fn,(function(e,t){var n,r=t.payload,o=r.notificationKey;return n=r.read?e.unreadNotificationKeys.filter((function(e){return e!==o})):Ia()(e.unreadNotificationKeys,[o]),La(La({},e),{},{unreadNotificationKeys:n})})),zn,Ot.A.singleTransferReducer("isLoadingMoreNotifications")),Ha={notifications:{},isLoadingMoreNotifications:!1,unreadNotificationKeys:[],moreNotificationsAvailable:!0};function Ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ha,t=arguments.length>1?arguments[1]:void 0,n=Fa[t.type];return n?n(e,t):e}function Wa(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 Ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var za=i().mark(qa),Va=i().mark($a),Ya=10;function qa(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.T1)($a),(0,c.jP)(Hn,Ga),(0,c.jP)(Vn,Ka),(0,c.jP)(Yn,Ja)]);case 3:case"end":return t.stop()}}),za)}function $a(){var e,t,n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={where:"read == false and relPrincipal.username == :currentUsername"},r.next=3,(0,c.T1)(s.A.fetchAllEntities,"Notification",e,{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.key})),r.next=7,(0,c.yJ)({type:Ln,payload:{unreadNotificationKeys:n}});case 7:case"end":return r.stop()}}),Va)}function Ga(e){var t=e.payload.offset;return i().mark((function e(){var n,r,a,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yJ)(Gn());case 2:return n={_limit:Ya,_offset:t},e.next=5,(0,c.T1)(s.A.requestSaga,"client/notifications",{method:"GET",queryParams:n});case 5:return r=e.sent,e.next=8,(0,c.Q7)(r.body.data.map((function(e){return(0,c.T1)(S,e)})));case 8:if(a=e.sent,l=a.reduce((function(e,t){return Ua(Ua({},e),{},o()({},t.key,t))}),{}),!(Object.keys(l).length<Ya)){e.next=13;break}return e.next=13,(0,c.yJ)({type:Wn,payload:{moreNotificationsAvailable:!1}});case 13:return e.next=15,(0,c.yJ)(qn(l));case 15:case"end":return e.stop()}}),e)}))()}function Ka(e){var t=e.payload.notificationKey;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"PATCH"},e.next=3,(0,c.T1)(s.A.requestSaga,"client/notifications/".concat(t,"/read"),n);case 3:case"end":return e.stop()}}),e)}))()}function Ja(e){var t=e.payload.taskExecutionKey;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(s.A.requestSaga,"client/tasks/".concat(t),{method:"DELETE"});case 2:case"end":return e.stop()}}),e)}))()}var Xa=n(33829),Qa=n(39892),Za=n.n(Qa),ei=n(77271),ti=["primary","callback","label"];function ni(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 ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const oi=function(e){var t=e.buttons;return(0,$.jsx)(vn,{children:t.map((function(e,t){var n=e.primary,r=e.callback,o=e.label,a=Za()(e,ti);return(0,Z.createElement)(gn,ri(ri({},n?{ink:ei.A.ink.PRIMARY}:{}),{},{key:t,onClick:r},a),o)}))})};function ai(e){var t=e.title,n=e.message,r=e.okText,o=e.cancelText,a=e.onOk,i=e.onCancel,c=e.defaultAction,s=void 0===c?"submit":c,l=(0,Xa.A)();return D(l,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key?(e.preventDefault(),"submit"===s?a():"cancel"===s&&i(),t()):"Escape"===e.key&&(i(),t())};(0,Z.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var c=[{label:r,primary:"submit"===s,look:"submit"===s?"raised":"flat","data-cy":"btn-confirm-ok",callback:function(){a(),t()}},{label:o,primary:"cancel"===s,look:"cancel"===s?"raised":"flat","data-cy":"btn-confirm-cancel",callback:function(){i(),t()}}];return(0,$.jsx)(oi,{buttons:c})}),!0,i)}function ii(e){var t=e.title,n=e.message,r=e.yesText,o=e.noText,a=e.onYes,i=e.onNo,c=e.onCancel,s=(0,Xa.A)();return D(s,t,n,(function(e){var t,n=e.close,c=function(){i(),n()};t=c,(0,Z.useEffect)((function(){var e=function(e){"Enter"===e.key&&"TEXTAREA"!==e.target.tagName&&(e.preventDefault(),e.stopPropagation(),t())};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[t]);var s=[{label:r,callback:function(){a(),n()}},{label:o,primary:!0,look:"raised",callback:c}];return(0,$.jsx)(oi,{buttons:s})}),!0,c)}function ci(e){var t=e.title,n=e.message,r=e.okText,o=e.onOk,a=(0,Xa.A)();return D(a,t,n,(function(e){var t=e.close,n=function(e){"Enter"===e.key&&(e.preventDefault(),o(),t())};(0,Z.useEffect)((function(){return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n)}}),[]);var a=[{label:r,primary:!0,look:"raised","data-cy":"btn-confirm-ok",callback:function(){o(),t()}}];return(0,$.jsx)(oi,{buttons:a})}),!1)}var si=i().mark(ui),li=i().mark(hi);function ui(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,c.Q7)([(0,c.jP)(ya,pi),(0,c.jP)(ba,di),(0,c.jP)(wa,fi)]);case 3:t.next=7;break;case 5:return t.next=7,(0,c.Q7)([(0,c.jP)(ya,hi),(0,c.jP)(ba,hi),(0,c.jP)(wa,hi)]);case 7:case"end":return t.stop()}}),si)}function pi(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(ai,t);case 2:return n=e.sent,e.next=5,(0,c.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function di(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(ii,t);case 2:return n=e.sent,e.next=5,(0,c.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function fi(e){var t=e.payload;return i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(ci,t);case 2:return n=e.sent,e.next=5,(0,c.yJ)(n);case 5:case"end":return e.stop()}}),e)}))()}function hi(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),li)}var mi=i().mark(vi),gi=i().mark(yi);function vi(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.jP)(A,yi),(0,c.jP)(C,yi)]);case 3:case"end":return t.stop()}}),mi)}function yi(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),gi)}var bi=n(21259),wi=n.n(bi);function xi(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 ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oi={overlays:[]},Si=function(e){return function(t,n){var r=n.payload.id;return ki(ki({},t),{},{overlays:t.overlays.filter((function(t){return t.type!==e||t.id!==r}))})}},Ei=o()(o()(o()(o()({},A,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.message,i=n.component,c=n.cancelable,s=n.cancelCallback,l=n.options;return ki(ki({},e),{},{overlays:[].concat(wi()(e.overlays),[{id:r,title:o,message:a,component:i,cancelable:c,cancelCallback:s,options:l,type:On}])})})),C,Si(On)),Br,(function(e,t){var n=t.payload,r=n.id,o=n.title,a=n.body;return ki(ki({},e),{},{overlays:[].concat(wi()(e.overlays),[{id:r,title:o,body:a,type:Sn}])})})),Wr,Si(Sn));function ji(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oi,t=arguments.length>1?arguments[1]:void 0,n=Ei[t.type];return n?n(e,t):e}function _i(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 Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ai=o()({},Sa,(function(e,t){var n=t.payload.key;return Pi(Pi({},e),{},{ignoredToasters:wi()(new Set([].concat(wi()(e.ignoredToasters),[n])))})})),Ci={ignoredToasters:[]};function Di(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ci,t=arguments.length>1?arguments[1]:void 0,n=Ai[t.type];return n?n(e,t):e}var Ti=n(19383),Mi=n(61502);function Ri(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 Ii="socket-msg-",Ni=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(Ii).concat(e.key),type:e.type,time:new Date(e.timestamp),title:e.title,message:e.message,body:function(t){var n=t.navigationStrategy,r=t.cancelTask;return(0,$.jsx)(qo,{notification:e,navigationStrategy:n,cancelTask:r})}},function(e){return e.taskProgress&&e.taskProgress.isRunning}(e)||function(e){var t;return U.A.isInWidgetEmbedded()&&(null===(t=e.result)||void 0===t?void 0:t.type)===d}(e)?{duration:-1}:{})},Li=i().mark(Ui),Fi=i().mark(zi),Hi=i().mark(Vi),Bi=function(e){return e.notification.socket},Wi=function(e){return e.notification.toaster.toasters};function Ui(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=3;break}return t.next=3,(0,c.Q7)([(0,c.jP)(Oa,Yi),(0,c.jP)(Qn,qi),(0,c.jP)(xa,zi),(0,c.jP)(ka,Vi)]);case 3:case"end":return t.stop()}}),Li)}function zi(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.T1)(Ti.A.getOriginId);case 2:return e=t.sent,t.next=5,(0,c.T1)(Mi.A.connectSocket,{name:"notification",messageReceivedAction:Ea,originId:e});case 5:case"end":return t.stop()}}),Fi)}function Vi(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(Mi.A.closeSocket,"notification");case 2:case"end":return e.stop()}}),Hi)}function Yi(e){var t=e.payload.data;return i().mark((function e(){var n,r,o,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.T1)(S,t);case 2:return n=e.sent,e.next=5,(0,c.Lt)(Bi);case 5:if(r=e.sent,o=r.ignoredToasters,a=!1,n.originId!==Ti.A.getOriginId()){e.next=16;break}return e.next=11,(0,c.T1)(Ni,n);case 11:if(s=e.sent,o.includes(s.key)||n.read){e.next=16;break}return e.next=15,(0,c.yJ)(er(s));case 15:a=!0;case 16:if(a&&!n.read){e.next=19;break}return e.next=19,(0,c.yJ)((i=n.key,l=n.read,{type:Fn,payload:{notificationKey:i,read:l}}));case 19:return e.next=21,(0,c.yJ)($n(n));case 21:case"end":return e.stop()}var i,l}),e)}))()}function qi(e){var t=e.payload,n=t.key,r=t.manually;return i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.startsWith(Ii)){e.next=11;break}if(!r){e.next=4;break}return e.next=4,(0,c.yJ)(ja(n));case 4:return e.next=6,(0,c.Lt)(Wi);case 6:if("success"!==e.sent[n].type&&!r){e.next=11;break}return t=n.replace(Ii,""),e.next=11,(0,c.yJ)(Kn(t));case 11:case"end":return e.stop()}}),e)}))()}var $i=n(85735),Gi=n.n($i);function Ki(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 Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xi=function(e,t){return Number.isInteger(e)?e:function(e){return e===p.error||e===p.warning}(t)?-1:5e3};u().shape({type:u().oneOf(Object.values(p)).isRequired,title:u().oneOfType([u().string,u().func]),message:u().oneOfType([u().string,u().func]),body:u().oneOfType([u().string,u().func]),onClose:u().func,icons:u().string,duration:u().number,time:u().instanceOf(Date)});function Qi(e){var t=function(e,t){if("object"!=Gi()(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gi()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gi()(t)?t:t+""}function Zi(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 ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tc=o()(o()({},Xn,(function(e,t){var n=function(e){if(!e.title&&!e.body)return null;var t=e.type&&Object.keys(p).includes(e.type)?e.type:p.neutral;return Ji(Ji(Ji(Ji(Ji({type:t,key:e.key||(0,Xa.A)()},e.title&&{title:e.title}),e.message&&{message:e.message}),e.body&&{body:e.body}),{},{icon:e.icon||h[t]},e.onClose&&"function"==typeof e.onClose&&{onClose:e.onClose}),{},{duration:Xi(e.duration,t),time:e.time instanceof Date?e.time:new Date},e.source&&{source:e.source})}(t.payload.toaster),r=e.toasters[n.key];return!r||function(e){return e.source!==_a.SYNC_ACTION}(r)?ec(ec({},e),{},{toasters:ec(ec({},e.toasters),{},o()({},n.key,n))}):e})),Zn,(function(e,t){var n=t.payload.key,r=e.toasters,o=(r[n],Za()(r,[n].map(Qi)));return ec(ec({},e),{},{toasters:ec({},o)})})),nc={toasters:{}};function rc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nc,t=arguments.length>1?arguments[1]:void 0,n=tc[t.type];return n?n(e,t):e}var oc=i().mark(ic),ac=i().mark(cc);function ic(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,(0,c.Q7)([(0,c.jP)(Qn,sc)]);case 3:t.next=7;break;case 5:return t.next=7,(0,c.Q7)([(0,c.jP)(Xn,cc),(0,c.jP)(Qn,cc)]);case 7:case"end":return t.stop()}}),oc)}function cc(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.yJ)(Aa.A.emitAction(e));case 2:case"end":return t.stop()}}),ac)}function sc(e){var t=e.payload,n=t.key;t.manually;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yJ)(nr(n));case 2:case"end":return e.stop()}}),e)}))()}const lc={transformNotificationResult:E,addToStore:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).withNotificationCenter,r=void 0!==n&&n;t&&Ot.A.injectReducers(e,{notification:(0,Pa.HY)({socket:Di,toaster:rc,center:Ba,overlay:ji})}),e.sagaMiddleware.run(Ta,t),e.sagaMiddleware.run(ui,t),e.sagaMiddleware.run(vi,t),e.sagaMiddleware.run(Ui,t),e.sagaMiddleware.run(ic,t),t&&r&&e.sagaMiddleware.run(qa)},Notifications:Hr,NotificationCenter:va,confirm:function(e,t,n,r,o,a,i){return{type:ya,payload:{title:e,message:t,okText:n,cancelText:r,onOk:o,onCancel:a,defaultAction:i}}},yesNoQuestion:function(e,t,n,r,o,a,i){return{type:ba,payload:{title:e,message:t,yesText:n,noText:r,onYes:o,onNo:a,onCancel:i}}},info:function(e,t,n,r){return{type:wa,payload:{title:e,message:t,okText:n,onOk:r}}},blockingInfo:function(e,t,n){return{type:Br,payload:{id:e,title:t,body:n}}},removeBlockingInfo:function(e){return{type:Wr,payload:{id:e}}},modal:D,removeModal:T,toaster:er,removeToaster:tr,connectSocket:function(){return{type:xa}},closeSocket:function(){return{type:ka}},toasterSources:_a}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89160:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>u,OC:()=>i,hr:()=>s,pg:()=>l,sb:()=>p,uo:()=>c});var r,o=n(81293);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var a=function(e){function t(n,r,o){var a=this,i=o?o instanceof Error?o:new Error(String(o)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(i?"\n".concat(i.message,"\n").concat(i.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,o.C6)(t,e),t}(Error),i=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.C6)(t,e),t}(a),c=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.C6)(t,e),t}(a),s=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.C6)(t,e),t}(a),l=function(e){function t(t,n,o){var a=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),o)||this;return a.locale=n,a}return(0,o.C6)(t,e),t}(a),u=function(e){function t(t,n,r,o){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return a.descriptor=r,a.locale=n,a}return(0,o.C6)(t,e),t}(l),p=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.C6)(t,e),t}(a)},89578:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},89935:e=>{e.exports=function(){return!1}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),a=n(19931),i=n(31769),c=n(21791),s=n(53138),l=n(38816),u=n(83349),p=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=i(t,e),l||(l=t.length>1),t})),c(e,u(e),n),l&&(n=o(n,7,s));for(var p=t.length;p--;)a(n,t[p]);return n}));e.exports=p},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},92207:(e,t,n)=>{e.exports=n(7452)},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(32370),o=n(58646);function a(e,t,n){return(0,r.f)((0,o.qg)(e,t,new Date,n))}},92960:(e,t,n)=>{"use strict";n.d(t,{ZE:()=>a,Im:()=>s,tv:()=>u,Tu:()=>v,eW:()=>c,oF:()=>l,N1:()=>g,N6:()=>f,jA:()=>h,Jp:()=>d,xm:()=>m,Qh:()=>p,qg:()=>ce});var r=function(){return r=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},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var o,a,i;function c(e){return e.type===a.literal}function s(e){return e.type===a.argument}function l(e){return e.type===a.number}function u(e){return e.type===a.date}function p(e){return e.type===a.time}function d(e){return e.type===a.select}function f(e){return e.type===a.plural}function h(e){return e.type===a.pound}function m(e){return e.type===a.tag}function g(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function v(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(o||(o={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(a||(a={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function w(e){var t={};return e.replace(b,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var x=function(){return x=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},x.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var k=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var O=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,j=/^(0+)$/;function _(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function P(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function A(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!j.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function C(e){var t=P(e);return t||{}}function D(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return x(x({},e),C(t))}),{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return x(x({},e),C(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(E,(function(e,n,r,o,a,i){if(n)t.minimumIntegerDigits=r.length;else{if(o&&a)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(j.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(O.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(O,(function(e,n,r,o,a,i){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=o.options[0];"w"===a?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),_(a)))}else if(S.test(o.stem))t=x(x({},t),_(o.stem));else{var i=P(o.stem);i&&(t=x(x({},t),i));var c=A(o.stem);c&&(t=x(x({},t),c))}}return t}var T,M={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function R(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(M[n||""]||M[r||""]||M["".concat(r,"-001")]||M["001"])[0]}var I=new RegExp("^".concat(y.source,"*")),N=new RegExp("".concat(y.source,"*$"));function L(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),H=!!String.fromCodePoint,B=!!Object.fromEntries,W=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,z=!!String.prototype.trimEnd,V=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Y=!0;try{Y="a"===(null===(T=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===T?void 0:T[0])}catch(e){Y=!1}var q,$=F?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=H?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;o>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},K=B?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],i=o[1];t[a]=i}return t},J=W?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},X=U?function(e){return e.trimStart()}:function(e){return e.replace(I,"")},Q=z?function(e){return e.trimEnd()}:function(e){return e.replace(N,"")};function Z(e,t){return new RegExp(e,t)}if(Y){var ee=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var n;return ee.lastIndex=t,null!==(n=ee.exec(e)[1])&&void 0!==n?n:""}}else q=function(e,t){for(var n=[];;){var r=J(e,t);if(void 0===r||oe(r)||ae(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((c=this.parseArgument(e,n)).err)return c;r.push(c.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(o.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ne(this.peek()||0)){if((c=this.parseTag(e,t)).err)return c;r.push(c.val)}else{var c;if((c=this.parseLiteral(e,t)).err)return c;r.push(c.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:a.pound,location:L(s,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.literal,value:"<".concat(r,"/>"),location:L(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var c=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ne(this.char()))return this.error(o.INVALID_TAG,L(s,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(o.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.tag,value:r,children:c,location:L(n,this.clonePosition())},err:null}:this.error(o.INVALID_TAG,L(s,this.clonePosition())))}return this.error(o.UNCLOSED_TAG,L(n,this.clonePosition()))}return this.error(o.INVALID_TAG,L(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&re(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var c=this.tryParseLeftAngleBracket();if(!c)break;r+=c}}}var s=L(n,this.clonePosition());return{val:{type:a.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ne(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.EMPTY_ARGUMENT,L(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.argument,value:r,location:L(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(o.MALFORMED_ARGUMENT,L(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=q(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:L(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,c){var s,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(u){case"":return this.error(o.EXPECT_ARGUMENT_TYPE,L(l,p));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((k=this.parseSimpleArgStyleIfPossible()).err)return k;if(0===(v=Q(k.val)).length)return this.error(o.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));d={style:v,styleLocation:L(f,this.clonePosition())}}if((O=this.tryParseArgumentClose(c)).err)return O;var h=L(c,this.clonePosition());if(d&&$(null==d?void 0:d.style,"::",0)){var m=X(d.style.slice(2));if("number"===u)return(k=this.parseNumberSkeletonFromString(m,d.styleLocation)).err?k:{val:{type:a.number,value:n,location:h,style:k.val},err:null};if(0===m.length)return this.error(o.EXPECT_DATE_TIME_SKELETON,h);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),c=a<2?1:3+(a>>1),s=R(t);for("H"!=s&&"k"!=s||(c=0);c-- >0;)n+="a";for(;i-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(m,this.locale));var v={type:i.dateTime,pattern:g,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?w(g):{}};return{val:{type:"date"===u?a.date:a.time,value:n,location:h,style:v},err:null}}return{val:{type:"number"===u?a.number:"date"===u?a.date:a.time,value:n,location:h,style:null!==(s=null==d?void 0:d.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.EXPECT_SELECT_ARGUMENT_OPTIONS,L(y,r({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),x=0;if("select"!==u&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));var k;if(this.bumpSpace(),(k=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return k;this.bumpSpace(),b=this.parseIdentifierIfPossible(),x=k.val}var O,S=this.tryParsePluralOrSelectOptions(e,u,t,b);if(S.err)return S;if((O=this.tryParseArgumentClose(c)).err)return O;var E=L(c,this.clonePosition());return"select"===u?{val:{type:a.select,value:n,options:K(S.val),location:E},err:null}:{val:{type:a.plural,value:n,options:K(S.val),offset:x,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(o.INVALID_ARGUMENT_TYPE,L(l,p))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(k).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],i=o.slice(1),c=0,s=i;c<s.length;c++)if(0===s[c].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:i})}return t}(e)}catch(e){return this.error(o.INVALID_NUMBER_SKELETON,t)}return{val:{type:i.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?D(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var a,i=!1,c=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var p=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=L(p,this.clonePosition()),l=this.message.slice(p.offset,this.offset())}if(s.has(l))return this.error("select"===t?o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;c.push([l,{value:h.val,location:L(f,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(a=this.parseIdentifierIfPossible()).value,u=a.location}return 0===c.length?this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR:o.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(o.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:c,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(i>=48&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}var c=L(r,this.clonePosition());return o?V(a*=n)?{val:a,err:null}:this.error(t,c):this.error(e,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=J(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if($(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ne(e){return e>=97&&e<=122||e>=65&&e<=90}function re(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ae(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,d(e)||f(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value);else l(e)&&g(e.style)||(u(e)||p(e))&&v(e.style)?delete e.style.location:m(e)&&ie(e.children)}))}function ce(e,t){void 0===t&&(t={}),t=r({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new te(e,t).parse();if(n.err){var a=SyntaxError(o[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return(null==t?void 0:t.captureLocation)||ie(n.val),n.val}},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},93290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,c=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}},93564:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r,o=n(72189),a=n.n(o),i=n(51510).Ay.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=a()([""])))},93663:(e,t,n)=>{var r=n(41799),o=n(10776),a=n(89578);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},94200:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={defaultTheme:{name:"default",colors:{paper:"#fff",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#263e5b",secondaryLight:"#347da9",secondaryLighter:"#4fade5",text:"#000",textLight:"#595959",textLighter:"#8c8c8c",textDisabled:"#bcbcbc",textLabel:"#121212",textToaster:"#fcfcfc",textPopover:"#fcfcfc",backgroundBody:"#dee6ed",backgroundBreadcrumbs:"#dee6ed",backgroundPopover:"#424242",backgroundItemHover:"#e6e6e6",backgroundItemSelected:"#ccc",backgroundItemLastOpened:"#B9B9B9",backgroundTableEvenRow:"#f2f2f2",backgroundTableTiles:"#f2f2f2",backgroundScrollbar:"#999",backgroundScrollbarHover:"#808080",backgroundPanelHeaderFooter:"#f2f2f2",backgroundTypographyCode:"#e6e6e6",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#e6e6e6",backgroundUploadArea:"#f2f2f2",backgroundUploadOverlay:"#0000ff1a",hoverInteractiveIcon:"#263e5b",loadingSpinner:"#000",breadcrumbsActive:"#b22a31",border:"#ccc",borderTable:"#ccc",borderLight:"#ededed",borderSelect:"#027cc1",signal:{danger:"#961b1b",dangerLight:"#e77c7c",info:"#027cc1",infoLight:"#78cdfe",success:"#337f37",successLight:"#91d395",warning:"#ec8a00",warningLight:"#ffd7a0",neutral:"#dee6ed"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"textmate",diffViewerDarkTheme:!1,diffViewer:{codeFoldGutterBackground:"#e6e6e6",codeFoldBackground:"#f2f2f2",gutterBackground:"#f2f2f2",diffViewerTitleBackground:"#fff",diffViewerTitleBorderColor:"#fff",emptyLineBackground:"#fcfcfc",addedBackground:"#cbffce",addedColor:"#24292e",removedBackground:"#ffbfbf",removedColor:"#24292e",wordAddedBackground:"#91d395",wordRemovedBackground:"#e77c7c",addedGutterBackground:"#91d395",removedGutterBackground:"#e77c7c"}},darkTheme:{name:"dark",colors:{paper:"#212330",primary:"#b22a31",primaryLight:"#d13e45",secondary:"#6eafff",secondaryLight:"#82baff",secondaryLighter:"#9ECAFF",text:"#dfdfdf",textLight:"#bdbdbd",textLighter:"#818181",textDisabled:"#7a7a7a",textLabel:"#121212",textToaster:"#000",textPopover:"#fff",backgroundBody:"#2C2F41",backgroundBreadcrumbs:"#2C2F41",backgroundPopover:"#757575",backgroundItemHover:"#444",backgroundItemSelected:"#565656",backgroundItemLastOpened:"#636363",backgroundTableEvenRow:"#2f2f2f",backgroundTableTiles:"#2f2f2f",backgroundScrollbar:"#444",backgroundScrollbarHover:"#666",backgroundPanelHeaderFooter:"#444",backgroundTypographyCode:"#444",backgroundToccoCircleProduction:"#b22a31",backgroundToccoCircleTest:"#263e5b",backgroundBurgerMenuBars:"#fff",backgroundMultiValue:"#6e6e6e",backgroundUploadArea:"#2d2d2d",backgroundUploadOverlay:"#0000ff1a",hoverInteractiveIcon:"#fff",loadingSpinner:"#cccccc",breadcrumbsActive:"#82baff",border:"#666",borderTable:"#666",borderLight:"#444",borderSelect:"#4fade5",signal:{danger:"#d74444",dangerLight:"#f18888",info:"#4fade5",infoLight:"#9ce6ff",success:"#4DAC54",successLight:"#72c172",warning:"#ec8a00",warningLight:"#ffcc84",neutral:"#CECECE"}},fontFamily:{monospace:"Ubuntu Mono, monospace",regular:"Ubuntu, sans-serif",url:"https://fonts.googleapis.com/css?family=Ubuntu+Mono:300,500|Ubuntu:300,500&display=swap"},fontSize:{base:1.3,factor:1.1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{statusLabel:"8px",button:"13px",buttonLarge:"25px",form:0,dashboard:0,modal:0,toaster:"8px",menu:0,small:"4px"},space:{base:1.3,factor:2},specificProperties:{actionBarStickyTopPosition:0},codeEditorTheme:"dracula",diffViewerDarkTheme:!0,diffViewer:{diffViewerBackground:"#212330",codeFoldGutterBackground:"#444",codeFoldBackground:"#2f2f2f",gutterBackground:"#2f2f2f",diffViewerTitleBackground:"#212330",diffViewerTitleBorderColor:"#212330",emptyLineBackground:"#2f2f2f",diffViewerColor:"#dfdfdf",addedBackground:"#217a28",addedColor:"#dfdfdf",removedBackground:"#b92e2e",removedColor:"#dfdfdf",wordAddedBackground:"#35913c",wordRemovedBackground:"#d74444",addedGutterBackground:"#35913c",removedGutterBackground:"#d74444"}}}},94394:(e,t,n)=>{var r=n(43360),o=n(42e3),a=Object.prototype.hasOwnProperty,i=o((function(e,t,n){a.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=i},95950:(e,t,n)=>{var r=n(70695),o=n(88984),a=n(64894);e.exports=function(e){return a(e)?r(e):o(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),a=n(76959);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},96372:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96374:(e,t,n)=>{var r=n(23490);e.exports=function(e){if(Array.isArray(e))return r(e)}},96424:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(22056),i=n.n(a),c=n(4883),s=n.n(c);function l(e,t){var n=(0,c.useState)(e),r=i()(n,2),o=r[0],a=r[1];return(0,c.useEffect)((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,a]}var u=n(74848);function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return s().forwardRef((function(r,a){var s=r.value,p=(0,c.useState)(s),f=i()(p,2),h=f[0],m=f[1],g=l(h,t),v=i()(g,2),y=v[0],b=v[1],w=(0,c.useRef)(s),x=r[n];return(0,c.useEffect)((function(){h!==s&&h===y&&(m(s),w.current=s,b(s))}),[s]),(0,c.useEffect)((function(){x&&w.current!==y&&(x(y),w.current=y)}),[y,x]),(0,u.jsx)(e,d(d(d({},r),{},{value:h},o()({},n,m)),{},{ref:a}))}))};var h=n(81570);const m={useAutofocus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,c.useEffect)((function(){if(!t.disabled&&e.current&&!(0,h.i)()){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)},useDebounce:l,Debouncer:f,useUserActive:function(e){var t=(0,c.useRef)(null),n=(0,c.useState)(null),r=i()(n,2),o=r[0],a=r[1],s=(0,c.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),l=(0,c.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,c.useEffect)((function(){return l(),window.addEventListener("mousemove",s,{once:!0}),window.addEventListener("touchstart",s,{once:!0}),function(){l()}}),[l,s]),[a,l,s]},usePrevious:function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,c.useRef)(!1);(0,c.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:function(){var e=(0,c.useState)(),t=i()(e,2),n=t[0],r=t[1],o=(0,c.useRef)(),a=(0,c.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),s=(0,c.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return a(e)})),o.current.observe(e))}),[a]);return(0,c.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[s,n]}}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),a=n(31769);e.exports=function(e,t,n){for(var i=-1,c=t.length,s={};++i<c;){var l=t[i],u=r(e,l);n(u,l)&&o(s,a(l,e),u)}return s}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},97932:(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"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();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=c(n(87695)),a=c(n(21572)),i=c(n(81438));function c(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return l="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},l(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(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 d(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 f(e){return function(){var t,n=m(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=m(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,t)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=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&&g(e,t)}(s,e);var t,n,o,c=f(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(h(e=c.call.apply(c,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return t=s,n=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,i=t.renderItem,c=t.renderItemData,s=t.sectionIndex,l=t.highlightedItemIndex,d=t.getItemId,f=t.theme,h=t.keyPrefix,m=null===s?h:"".concat(h,"section-").concat(s,"-"),g="function"==typeof o;return r.default.createElement("ul",u({role:"listbox"},f("".concat(m,"items-list"),"itemsList")),n.map((function(t,n){var h=0===n,y=n===l,b="".concat(m,"item-").concat(n),w=g?o({sectionIndex:s,itemIndex:n}):o,x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(s,n),"aria-selected":y},f(b,"item",h&&"itemFirst",y&&"itemHighlighted"),{},w);return y&&(x.ref=e.storeHighlightedItemReference),r.default.createElement(a.default,u({},x,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:i,renderItemData:c}))})))}}],n&&d(t.prototype,n),o&&d(t,o),s}(r.Component);t.default=y,v(y,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),v(y,"defaultProps",{sectionIndex:null})},98166:(e,t,n)=>{"use strict";n.d(t,{O5:()=>o,O9:()=>i,Yd:()=>r,lW:()=>a});var r=function(e){return e&&Array.isArray(e)?e.length>0?e[0]:[]:e},o=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},a=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):Promise.reject(new Error("navigator.clipboard API not available"))},i=function(e){return null!=e}},98671:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(26396),o=n.n(r),a=n(63560),i=n.n(a);function c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n(66245),d=n.n(p),f=n(44383),h=n.n(f),m=n(14644);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n=v(v({},e.allReducers),t),r=(0,m.HY)(n);e.replaceReducer(r),e.dispatch({type:"replaceReducer"}),e.allReducers=n};function b(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 w(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const k={addToObjectReducer:function(e,t,n){return function(r,a){var c=a.payload,l=c[e],u=c[t],p=s({},r),d=s(s({},r[n]),{},o()({},l,u));return i()(p,n,d),p}},singleTransferReducer:function(e,t){return function(n,r){var a=r.payload[e],c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return i()(c,t?t+"."+e:e,a),c}},mappingTransferReducer:function(e,t){return function(n,r){var a=r.payload[e];return u(u({},n),{},o()({},t,a))}},injectReducers:function(e,t){var n=d()(Object.keys(t),Object.keys(e.allReducers));if(n.length>0){var r=v(v({},e.allReducers),h()(t,n));y(e,r)}},hotReloadReducers:y,toggleReducer:function(e){return function(t){return x(x({},t),{},o()({},e,!t[e]))}}}},99208:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(26396),o=n.n(r),a=n(85735),i=n.n(a),c=n(81792),s=n(23228),l=n(19383);function u(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={method:"GET",credentials:"include"},f=function(e){var t=function(e){if(e){if(e instanceof Headers)return e;if("object"===i()(e))return new Headers(e)}return new Headers}(e.headers),n=e.body;return t.has("Content-Type")||("string"==typeof n?t.set("Content-Type","text/plain"):n instanceof FormData||t.set("Content-Type","application/json")),t.has("X-Origin-Id")||t.set("X-Origin-Id",l.A.getOriginId()),!t.has("X-Business-Unit")&&s.A.getBusinessUnit()&&t.set("X-Business-Unit",s.A.getBusinessUnit()),t.has("X-Client")||t.set("X-Client",s.A.isInAdminEmbedded()?"client":"widget"),s.A.getRuleProvider()&&t.set("X-Rule-Provider-Id",s.A.getRuleProvider()),t.has("X-Timezone")||t.set("X-Timezone",c.A.getTimeZone()),t},h=function(e,t){return t.startsWith("/")&&(t=t.substring(1)),t.startsWith("http")?t:t.startsWith("nice2")?"".concat(e,"/").concat(t):"".concat(e,"/nice2/").concat(t)};const m={prepareHeaders:f,prepareUrl:h,executeRequest:function(e){var t=function(e){return p(p(p({},d),e),{},{headers:f(e)})}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=s.A.getBackendUrl(),r=h(n,e);return fetch(r,t)},extractBody:function(e){return e.json()}}},99374:e=>{e.exports=function(e){return e}},99815:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>x,Ay:()=>O});var r,o,a,i,c,s,l,u=n(72189),p=n.n(u),d=n(51510),f=n(26166),h=n(57488),m=n(77271),g=n(47616),v=n(85431),y=n(62124),b=n(15777),w=(0,d.AH)(i||(i=p()(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),g.A.radii("button"),f.A.space(-1.38),f.A.space(-2.1),f.A.space(0),(0,v.A)(),(function(e){return e.withoutBackground?(0,d.AH)(a||(a=p()(["\n background: transparent;\n"]))):(0,y.A)(e)}),(function(e){return n=(t=e).dense,o=t.theme,n?(0,d.AH)(r||(r=p()(["\n line-height: ",";\n padding: "," ",";\n "])),g.A.lineHeight("dense")({theme:o}),f.A.space(-3.5)({theme:o}),f.A.space(-1.5)({theme:o})):null;var t,n,o}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,d.AH)(o||(o=p()(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===m.A.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(x," {\n display: none;\n }\n ");return t&&n===b.r5.hidden?r:t&&n===b.r5.responsive&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),x=d.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(c||(c=p()([""]))),k=d.Ay.button.withConfig({displayName:"StyledButton"})(s||(s=p()(["\n ","\n"])),w);d.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(l||(l=p()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n z-index: 1;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),f.A.space(0),h.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),k);const O=k}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;"object"==typeof i&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"9ea83c9b8eda9b5e1394",211:"5ddbe4b27a98f2b1123a",222:"c60ae59d0c2dc11ef8ef",262:"e083d98b5c4bfa8ff6a0",264:"e42f33097d4c02f2de1e",310:"4cf0e39443c7abef6eff",389:"ec325b8aeb9c696940cc",672:"78ed568b85e32ed20610",722:"01f4d081f113aff0d978",910:"490f156fb70080ddc413",916:"7c85c6fa1bb5fc470003"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-devcon:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==a+n){i=p;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_devcon=this.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;return(()=>{"use strict";var e=s(26396),t=s.n(e),n=s(4883),r=s.n(n),o=s(87105),a=s(81845);
|
|
30
30
|
/**
|
|
31
31
|
* react-router v7.5.0
|
|
32
32
|
*
|