tocco-admin 3.12.71 → 3.12.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/changelog.md +3 -0
  2. package/dist/{chunk-103.a2c7a37524548a154249.js → chunk-103.1fee2efc0310b9e93fc5.js} +1 -1
  3. package/dist/chunk-123.ce7ba675805a31712c61.js +1 -0
  4. package/dist/chunk-136.b2383b4d61a7bffb52b9.js +1 -0
  5. package/dist/{chunk-172.f3e21609162d9b4c4027.js → chunk-172.5a8562f05605c293e378.js} +1 -1
  6. package/dist/chunk-211.94a085d6e33ddc951e57.js +1 -0
  7. package/dist/{chunk-264.208e4b0b8cb1b97ef0a4.js → chunk-264.5162cfd0b1b038f927f0.js} +1 -1
  8. package/dist/chunk-348.a8c99cb9d251b4afca56.js +1 -0
  9. package/dist/chunk-350.cc1ae6eca0c41bca6574.js +1 -0
  10. package/dist/chunk-389.6e7183ac016cf78259ac.js +1 -0
  11. package/dist/chunk-401.5e86770e797da950b250.js +1 -0
  12. package/dist/chunk-424.9c7b92cf9e8cbe74166f.js +6 -0
  13. package/dist/chunk-466.7f01ffd29859524743b9.js +1 -0
  14. package/dist/chunk-597.704680a67e38f826a07f.js +1 -0
  15. package/dist/chunk-634.6007d5dfadd310249f17.js +6 -0
  16. package/dist/chunk-668.c87bcd9c6a3663603487.js +1 -0
  17. package/dist/chunk-739.9c99abe150dc0130ecdc.js +1 -0
  18. package/dist/chunk-789.ce63b37a0005d8eceac9.js +1 -0
  19. package/dist/chunk-907.56764dd99a4e85027704.js +39 -0
  20. package/dist/chunk-940.70062f8a891357f48347.js +1 -0
  21. package/dist/chunk-987.21c04deb663bb078cc9e.js +1 -0
  22. package/dist/chunk-actions.8a76799fbaade4ab1447.js +1 -0
  23. package/dist/chunk-code-editor.354ee9b93fb8cfa8de45.js +1 -0
  24. package/dist/chunk-docs-actions.fe0e44dd05a4339ba079.js +1 -0
  25. package/dist/{chunk-html-editor.1f16693d27ad6c0e8fd7.js → chunk-html-editor.0a91849f42ebdf533dc5.js} +2 -2
  26. package/dist/chunk-phone-formatter.f0685e5e63247acbc44a.js +1 -0
  27. package/dist/{chunk-vendor-fontawesome.301bc3dc060c2bc6cb96.js → chunk-vendor-fontawesome.2a830bb5d2d9d5e9e0f3.js} +1 -1
  28. package/dist/{chunk-vendor-icons.c4820e5fe026fc30edb9.js → chunk-vendor-icons.a64fd761831ecff1b656.js} +1 -1
  29. package/dist/chunk-vendor-libphonenumber-js.85b3f70c817900bda67b.js +1 -0
  30. package/dist/index.js +8 -56
  31. package/package.json +1 -1
  32. package/dist/chunk-179.1f596f7e62585e6bd1d8.js +0 -1
  33. package/dist/chunk-257.ea947290db32e273db95.js +0 -1
  34. package/dist/chunk-282.26b5fe5c66326cda8995.js +0 -1
  35. package/dist/chunk-338.07fa362b059c9306a69d.js +0 -1
  36. package/dist/chunk-345.4a650a8226ee2a6dc482.js +0 -1
  37. package/dist/chunk-350.8f7e790295076f345f2a.js +0 -1
  38. package/dist/chunk-389.d748075477dbac37713f.js +0 -1
  39. package/dist/chunk-413.893f60fb822d90e3fb4d.js +0 -1
  40. package/dist/chunk-523.71b9299beea124ec67e4.js +0 -1
  41. package/dist/chunk-668.c0cf1c5b5e2744758721.js +0 -1
  42. package/dist/chunk-721.37f9be01f1bea755241e.js +0 -1
  43. package/dist/chunk-789.7982ce67b68e0a9de0d0.js +0 -1
  44. package/dist/chunk-actions.a78fbe7223639e692bc3.js +0 -1
  45. package/dist/chunk-code-editor.6cc6710bbb21f99b83e9.js +0 -1
  46. package/dist/chunk-docs-actions.7bf5f422a7c7385a4a74.js +0 -1
  47. package/dist/chunk-phone-formatter.63b1e14db31d0c9e920a.js +0 -1
  48. package/dist/chunk-vendor-libphonenumber-js.53aa79c6c1674df2889c.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[789],{92789:(e,r,t)=>{t.r(r),t.d(r,{default:()=>k});var n=t(58156),o=t.n(n),s=t(38798),c=t(71468),a=t(74978),i=t(26396),l=t.n(i),u=t(22056),p=t.n(u),f=t(84976),d=t(47767),b=t(9466),y=t(82237),h=t(66789),O=t(74848);function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function g(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){l()(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var v=function(e){var r=e.entityName,t=e.entityKeys,n=e.children,o=t.map((function(e){return{entityName:r,key:e}}));return(0,O.jsx)(y.A,{to:"/docs?rootNodes=".concat(JSON.stringify(o)),target:"_blank",children:n})};const j=function(e){var r=(0,f.ok)(),t=p()(r,1)[0],n=(0,d.Zp)(),o=t.get("rootNodes");return(0,O.jsx)(b.default,g(g(g({},e),{},{routerType:"inherit",navigationStrategy:g(g({},(0,h.Ay)(n,e.baseRoute)),{},{ListLink:v})},o&&{rootNodes:JSON.parse(o)}),{},{searchFormCollapsed:e.searchFormCollapsed,onSearchFormCollapsedChange:function(r){var t=r.collapsed;e.saveUserPreferences({"admin.list.searchFormCollapsed":t})},scrollBehaviour:"inline"}))};var P={saveUserPreferences:a.bM};const k={container:(0,c.Ng)((function(e,r){return{searchFormCollapsed:o()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",null),baseRoute:e.input.baseRoute}}),P)((0,s.Ay)(j))}}}]);
@@ -0,0 +1,39 @@
1
+ (this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[907],{45588:(e,t,r)=>{"use strict";
2
+ /**
3
+ * @remix-run/router v1.18.0
4
+ *
5
+ * Copyright (c) Remix Software Inc.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE.md file in the root directory of this source tree.
9
+ *
10
+ * @license MIT
11
+ */
12
+ function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var o;r.d(t,{AO:()=>h,G3:()=>ee,Gh:()=>j,HS:()=>U,Oi:()=>u,Rr:()=>p,TM:()=>l,VV:()=>B,aE:()=>oe,pX:()=>Y,pb:()=>P,rc:()=>o,sC:()=>a,tH:()=>W,ue:()=>b,yD:()=>N,zR:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function a(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:i=!1}=e;t=r.map(((e,t)=>m(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=u(null==n?t.length-1:n),s=o.Pop,l=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function d(){return t[a]}function m(e,r,n){void 0===r&&(r=null);let o=f(t?d().pathname:"/",e,r,n);return c("/"===o.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),o}function v(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return s},get location(){return d()},createHref:v,createURL:e=>new URL(v(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?p(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s=o.Push;let n=m(e,r);a+=1,t.splice(a,t.length,n),i&&l&&l({action:s,location:n,delta:1})},replace(e,r){s=o.Replace;let n=m(e,r);t[a]=n,i&&l&&l({action:s,location:n,delta:0})},go(e){s=o.Pop;let r=u(a+e),n=t[r];a=r,l&&l({action:s,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function s(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return f("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r="/",search:n="",hash:o=""}=p(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),f("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:h(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,r,o){return void 0===r&&(r=null),n({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function m(e,t,r,a){void 0===a&&(a={});let{window:s=document.defaultView,v5Compat:l=!1}=a,c=s.history,p=o.Pop,m=null,v=g();function g(){return(c.state||{idx:null}).idx}function y(){p=o.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,c.replaceState(n({},c.state,{idx:v}),""));let w={get action(){return p},get location(){return e(s,c)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(i,y),m=e,()=>{s.removeEventListener(i,y),m=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=o.Push;let n=f(w.location,e,t);r&&r(n,e),v=g()+1;let i=d(n,v),a=w.createHref(n);try{c.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}l&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=o.Replace;let n=f(w.location,e,t);r&&r(n,e),v=g();let i=d(n,v),a=w.createHref(n);c.replaceState(i,"",a),l&&m&&m({action:p,location:w.location,delta:0})},go:e=>c.go(e)};return w}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));const g=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,r,o){return void 0===r&&(r=[]),void 0===o&&(o={}),e.map(((e,i)=>{let a=[...r,String(i)],s="string"==typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!o[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=n({},e,t(e),{id:s});return o[s]=r,r}{let r=n({},e,t(e),{id:s,children:void 0});return o[s]=r,e.children&&(r.children=y(e.children,t,a,o)),r}}))}function b(e,t,r){return void 0===r&&(r="/"),w(e,t,r,!1)}function w(e,t,r,n){let o=P(("string"==typeof t?p(t):t).pathname||"/",r);if(null==o)return null;let i=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=k(o);a=A(i[e],t,n)}return a}function S(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(u(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=U([n,a.relativePath]),l=r.concat(a);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),S(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:z(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of _(e.path))o(e,t,r);else o(e,t)})),t}function _(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=_(n.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const E=/^:[\w-]+$/,T=3,x=2,C=1,O=10,R=-2,D=e=>"*"===e;function z(e,t){let r=e.split("/"),n=r.length;return r.some(D)&&(n+=R),t&&(n+=x),r.filter((e=>!D(e))).reduce(((e,t)=>e+(E.test(t)?T:""===t?C:O)),n)}function A(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,u="/"===i?t:t.slice(i.length)||"/",c=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:U([i,c.pathname]),pathnameBase:F(U([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=U([i,c.pathnameBase]))}return a}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);c("*"===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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function k(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function L(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e,t){let r=I(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function j(e,t,r,o){let i;void 0===o&&(o=!1),"string"==typeof e?i=p(e):(i=n({},e),u(!i.pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),u(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),u(!i.search||!i.search.includes("#"),L("#","search","hash",i)));let a,s=""===e||""===i.pathname,l=s?"/":i.pathname;if(null==l)a=r;else{let e=t.length-1;if(!o&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof e?p(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:H(n),hash:$(o)}}(i,a),d=l&&"/"!==l&&l.endsWith("/"),f=(s||"."===l)&&r.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}const U=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class W extends Error{}class B{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Y(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const q=["post","put","patch","delete"],Z=new Set(q),V=["get",...q],X=new Set(V),J=new Set([301,302,303,307,308]),G=new Set([307,308]),K={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Q={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},te=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ne="remix-router-transitions";function oe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,i=!r;let a;if(u(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=re;let s,l,d,h={},p=y(e.routes,a,void 0,h),m=e.basename||"/",g=e.unstable_dataStrategy||pe,S=e.unstable_patchRoutesOnMiss,_=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),E=null,T=new Set,x=null,C=null,O=null,R=null!=e.hydrationData,D=b(p,e.history.location,m),z=null;if(null==D&&!S){let t=Re(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Oe(p);D=r,z={[n.id]:t}}if(D&&S&&!e.hydrationData){ut(D,p,e.history.location.pathname).active&&(D=null)}if(D)if(D.some((e=>e.route.lazy)))l=!1;else if(D.some((e=>e.route.loader)))if(_.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=D.findIndex((e=>void 0!==r[e.route.id]));l=D.slice(0,e+1).every(n)}else l=D.every(n)}else l=null!=e.hydrationData;else l=!0;else l=!1,D=[];let A,M={historyAction:e.history.action,location:e.history.location,matches:D,initialized:l,navigation:K,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||z,fetchers:new Map,blockers:new Map},k=o.Pop,L=!1,I=!1,N=new Map,j=null,U=!1,F=!1,H=[],$=[],W=new Map,B=0,q=-1,Z=new Map,V=new Set,X=new Map,J=new Map,oe=new Set,se=new Map,ue=new Map,ce=new Map,he=!1;function we(e,t){void 0===t&&(t={}),M=n({},M,e);let r=[],o=[];_.v7_fetcherPersist&&M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?o.push(t):r.push(t))})),[...T].forEach((e=>e(M,{deletedFetchers:o,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),_.v7_fetcherPersist&&(r.forEach((e=>M.fetchers.delete(e))),o.forEach((e=>Je(e))))}function Se(t,r,i){var a,l;let u,{flushSync:c}=void 0===i?{}:i,d=null!=M.actionData&&null!=M.navigation.formMethod&&Ne(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?M.actionData:null;let f=r.loaderData?Te(M.loaderData,r.loaderData,r.matches||[],r.errors):M.loaderData,h=M.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,ee))));let m,v=!0===L||null!=M.navigation.formMethod&&Ne(M.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(s&&(p=s,s=void 0),U||k===o.Pop||(k===o.Push?e.history.push(t,t.state):k===o.Replace&&e.history.replace(t,t.state)),k===o.Pop){let e=N.get(M.location.pathname);e&&e.has(t.pathname)?m={currentLocation:M.location,nextLocation:t}:N.has(t.pathname)&&(m={currentLocation:t,nextLocation:M.location})}else if(I){let e=N.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),N.set(M.location.pathname,e)),m={currentLocation:M.location,nextLocation:t}}we(n({},r,{actionData:u,loaderData:f,historyAction:k,location:t,initialized:!0,navigation:K,revalidation:"idle",restoreScrollPosition:lt(t,r.matches||M.matches),preventScrollReset:v,blockers:h}),{viewTransitionOpts:m,flushSync:!0===c}),k=o.Pop,L=!1,I=!1,U=!1,F=!1,H=[],$=[]}async function _e(t,r,i){A&&A.abort(),A=null,k=t,U=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(x&&O){let r=st(e,t);x[r]=O()}}(M.location,M.matches),L=!0===(i&&i.preventScrollReset),I=!0===(i&&i.enableViewTransition);let a=s||p,l=i&&i.overrideNavigation,u=b(a,r,m),c=!0===(i&&i.flushSync),d=ut(u,a,r.pathname);if(d.active&&d.matches&&(u=d.matches),!u){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return void Se(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}if(M.initialized&&!F&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,r)&&!(i&&i.submission&&Ne(i.submission.formMethod)))return void Se(r,{matches:u},{flushSync:c});A=new AbortController;let f,h=be(e.history,r,A.signal,i&&i.submission);if(i&&i.pendingError)f=[Ce(u).route.id,{type:v.error,error:i.pendingError}];else if(i&&i.submission&&Ne(i.submission.formMethod)){let t=await async function(e,t,r,n,i,a){void 0===a&&(a={});qe();let s,l=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(t,r);if(we({navigation:l},{flushSync:!0===a.flushSync}),i){let r=await ct(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=it(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:v.error,error:n}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=ot(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:v.error,error:r}]}}n=r.matches}let u=He(n,t);if(u.route.action||u.route.lazy){if(s=(await Ie("action",e,[u],n))[0],e.signal.aborted)return{shortCircuited:!0}}else s={type:v.error,error:Re(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Pe(s)){let t;if(a&&null!=a.replace)t=a.replace;else{t=ye(s.response.headers.get("Location"),new URL(e.url),m)===M.location.pathname+M.location.search}return await Le(e,s,{submission:r,replace:t}),{shortCircuited:!0}}if(Me(s))throw Re(400,{type:"defer-action"});if(ke(s)){let e=Ce(n,u.route.id);return!0!==(a&&a.replace)&&(k=o.Push),{matches:n,pendingActionResult:[e.route.id,s]}}return{matches:n,pendingActionResult:[u.route.id,s]}}(h,r,i.submission,u,d.active,{replace:i.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(ke(n)&&Y(n.error)&&404===n.error.status)return A=null,void Se(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,f=t.pendingActionResult,l=We(r,i.submission),c=!1,d.active=!1,h=be(e.history,h.url,h.signal)}let{shortCircuited:g,matches:y,loaderData:w,errors:S}=await async function(t,r,o,i,a,l,u,c,d,f,h){let v=a||We(r,l),g=l||u||$e(v),y=!(U||_.v7_partialHydration&&d);if(i){if(y){let e=ze(h);we(n({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ct(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:n}=it(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:n}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}o=e.matches}let b=s||p,[w,S]=le(e.history,M,o,g,r,_.v7_partialHydration&&!0===d,_.v7_skipActionErrorRevalidation,F,H,$,oe,X,V,b,m,h);if(at((e=>!(o&&o.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),q=++B,0===w.length&&0===S.length){let e=Qe();return Se(r,n({matches:o,loaderData:{},errors:h&&ke(h[1])?{[h[0]]:h[1].error}:null},xe(h),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=v;let t=ze(h);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),r=Be(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)})),new Map(M.fetchers)}(S)),we(e,{flushSync:f})}S.forEach((e=>{W.has(e.key)&&Ge(e.key),e.controller&&W.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ge(e.key)));A&&A.signal.addEventListener("abort",E);let{loaderResults:T,fetcherResults:x}=await Fe(M.matches,o,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",E);S.forEach((e=>W.delete(e.key)));let C=De([...T,...x]);if(C){if(C.idx>=w.length){let e=S[C.idx-w.length].key;V.add(e)}return await Le(t,C.result,{replace:c}),{shortCircuited:!0}}let{loaderData:O,errors:R}=Ee(M,o,w,T,h,S,x,se);se.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&se.delete(t)}))})),_.v7_partialHydration&&d&&M.errors&&Object.entries(M.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;R=Object.assign(R||{},{[t]:r})}));let D=Qe(),z=et(q),k=D||z||S.length>0;return n({matches:o,loaderData:O,errors:R},k?{fetchers:new Map(M.fetchers)}:{})}(h,r,u,d.active,l,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,c,f);g||(A=null,Se(r,n({matches:y||u},xe(f),{loaderData:w,errors:S})))}function ze(e){return e&&!ke(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function Le(i,a,s){let{submission:l,fetcherSubmission:c,replace:d}=void 0===s?{}:s;a.response.headers.has("X-Remix-Revalidate")&&(F=!0);let h=a.response.headers.get("Location");u(h,"Expected a Location header on the redirect Response"),h=ye(h,new URL(i.url),m);let p=f(M.location,h,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(te.test(h)){const n=e.history.createURL(h);r=n.origin!==t.location.origin||null==P(n.pathname,m)}if(r)return void(d?t.location.replace(h):t.location.assign(h))}A=null;let v=!0===d?o.Replace:o.Push,{formMethod:g,formAction:y,formEncType:b}=M.navigation;!l&&!c&&g&&y&&b&&(l=$e(M.navigation));let w=l||c;if(G.has(a.response.status)&&w&&Ne(w.formMethod))await _e(v,p,{submission:n({},w,{formAction:h}),preventScrollReset:L});else{let e=We(p,l);await _e(v,p,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:L})}}async function Ie(e,t,r,n){try{let o=await me(g,e,t,r,n,h,a);return await Promise.all(o.map(((e,o)=>{if(Ae(e)){let i=e.result;return{type:v.redirect,response:ge(i,t,r[o].route.id,n,m,_.v7_relativeSplatPath)}}return ve(e)})))}catch(e){return r.map((()=>({type:v.error,error:e})))}}async function Fe(t,r,n,o,i){let[a,...s]=await Promise.all([n.length?Ie("loader",i,n,r):[],...o.map((t=>{if(t.matches&&t.match&&t.controller){return Ie("loader",be(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:v.error,error:Re(404,{pathname:t.path})})}))]);return await Promise.all([je(t,n,a,a.map((()=>i.signal)),!1,M.loaderData),je(t,o.map((e=>e.match)),s,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:a,fetcherResults:s}}function qe(){F=!0,H.push(...at()),X.forEach(((e,t)=>{W.has(t)&&($.push(t),Ge(t))}))}function Ze(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),we({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ve(e,t,r,n){void 0===n&&(n={});let o=Ce(M.matches,t);Je(e),we({errors:{[o.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Xe(e){return _.v7_fetcherPersist&&(J.set(e,(J.get(e)||0)+1),oe.has(e)&&oe.delete(e)),M.fetchers.get(e)||Q}function Je(e){let t=M.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&Z.has(e)||Ge(e),X.delete(e),Z.delete(e),V.delete(e),oe.delete(e),M.fetchers.delete(e)}function Ge(e){let t=W.get(e);u(t,"Expected fetch controller: "+e),t.abort(),W.delete(e)}function Ke(e){for(let t of e){let e=Ye(Xe(t).data);M.fetchers.set(t,e)}}function Qe(){let e=[],t=!1;for(let r of V){let n=M.fetchers.get(r);u(n,"Expected fetcher: "+r),"loading"===n.state&&(V.delete(r),e.push(r),t=!0)}return Ke(e),t}function et(e){let t=[];for(let[r,n]of Z)if(n<e){let e=M.fetchers.get(r);u(e,"Expected fetcher: "+r),"loading"===e.state&&(Ge(r),Z.delete(r),t.push(r))}return Ke(t),t.length>0}function tt(e){M.blockers.delete(e),ue.delete(e)}function rt(e,t){let r=M.blockers.get(e)||ee;u("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),we({blockers:n})}function nt(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ue.size)return;ue.size>1&&c(!1,"A router only supports one blocker at a time");let o=Array.from(ue.entries()),[i,a]=o[o.length-1],s=M.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:r,historyAction:n})?i:void 0}function ot(e){let t=Re(404,{pathname:e}),r=s||p,{matches:n,route:o}=Oe(r);return at(),{notFoundMatches:n,route:o,error:t}}function it(e,t){return{boundaryId:Ce(t.partialMatches).route.id,error:Re(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function at(e){let t=[];return se.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),se.delete(n))})),t}function st(e,t){if(C){return C(e,t.map((e=>function(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}(e,M.loaderData))))||e.key}return e.key}function lt(e,t){if(x){let r=st(e,t),n=x[r];if("number"==typeof n)return n}return null}function ut(e,t,r){if(S){if(!e){return{active:!0,matches:w(t,r,m,!0)||[]}}{let n=e[e.length-1].route;if(n.path&&("*"===n.path||n.path.endsWith("/*"))){return{active:!0,matches:w(t,r,m,!0)}}}}return{active:!1,matches:null}}async function ct(e,t,r){let n=e,o=n.length>0?n[n.length-1].route:null;for(;;){let e=null==s,i=s||p;try{await de(S,t,n,i,h,a,ce,r)}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&(p=[...p])}if(r.aborted)return{type:"aborted"};let l=b(i,t,m),u=!1;if(l){let e=l[l.length-1].route;if(e.index)return{type:"success",matches:l};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:l};u=!0}}let c=w(i,t,m,!0);if(!c||n.map((e=>e.route.id)).join("-")===c.map((e=>e.route.id)).join("-"))return{type:"success",matches:u?l:null};if(n=c,o=n[n.length-1].route,"*"===o.path)return{type:"success",matches:n}}}return d={get basename(){return m},get future(){return _},get state(){return M},get routes(){return p},get window(){return t},initialize:function(){if(E=e.history.listen((t=>{let{action:r,location:n,delta:o}=t;if(he)return void(he=!1);c(0===ue.size||null!=o,"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 i=nt({currentLocation:M.location,nextLocation:n,historyAction:r});return i&&null!=o?(he=!0,e.history.go(-1*o),void rt(i,{state:"blocked",location:n,proceed(){rt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(o)},reset(){let e=new Map(M.blockers);e.set(i,ee),we({blockers:e})}})):_e(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(ne);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,N);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ne,JSON.stringify(r))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,N);t.addEventListener("pagehide",e),j=()=>t.removeEventListener("pagehide",e)}return M.initialized||_e(o.Pop,M.location,{initialHydration:!0}),d},subscribe:function(e){return T.add(e),()=>T.delete(e)},enableScrollRestoration:function(e,t,r){if(x=e,O=t,C=r||null,!R&&M.navigation===K){R=!0;let e=lt(M.location,M.matches);null!=e&&we({restoreScrollPosition:e})}return()=>{x=null,O=null,C=null}},navigate:async function t(r,i){if("number"==typeof r)return void e.history.go(r);let a=ie(M.location,M.matches,m,_.v7_prependBasename,r,_.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:s,submission:l,error:u}=ae(_.v7_normalizeFormMethod,!1,a,i),c=M.location,d=f(M.location,s,i&&i.state);d=n({},d,e.history.encodeLocation(d));let h=i&&null!=i.replace?i.replace:void 0,p=o.Push;!0===h?p=o.Replace:!1===h||null!=l&&Ne(l.formMethod)&&l.formAction===M.location.pathname+M.location.search&&(p=o.Replace);let v=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,g=!0===(i&&i.unstable_flushSync),y=nt({currentLocation:c,nextLocation:d,historyAction:p});if(!y)return await _e(p,d,{submission:l,pendingError:u,preventScrollReset:v,replace:i&&i.replace,enableViewTransition:i&&i.unstable_viewTransition,flushSync:g});rt(y,{state:"blocked",location:d,proceed(){rt(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,i)},reset(){let e=new Map(M.blockers);e.set(y,ee),we({blockers:e})}})},fetch:function(t,r,n,o){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(t)&&Ge(t);let a=!0===(o&&o.unstable_flushSync),l=s||p,c=ie(M.location,M.matches,m,_.v7_prependBasename,n,_.v7_relativeSplatPath,r,null==o?void 0:o.relative),d=b(l,c,m),f=ut(d,l,c);if(f.active&&f.matches&&(d=f.matches),!d)return void Ve(t,r,Re(404,{pathname:c}),{flushSync:a});let{path:h,submission:v,error:g}=ae(_.v7_normalizeFormMethod,!0,c,o);if(g)return void Ve(t,r,g,{flushSync:a});let y=He(d,h);L=!0===(o&&o.preventScrollReset),v&&Ne(v.formMethod)?async function(t,r,n,o,i,a,l,c){function d(e){if(!e.route.action&&!e.route.lazy){let e=Re(405,{method:c.formMethod,pathname:n,routeId:r});return Ve(t,r,e,{flushSync:l}),!0}return!1}if(qe(),X.delete(t),!a&&d(o))return;let f=M.fetchers.get(t);Ze(t,function(e,t){let r={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 r}(c,f),{flushSync:l});let h=new AbortController,v=be(e.history,n,h.signal,c);if(a){let e=await ct(i,n,v.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:o}=it(n,e);return void Ve(t,r,o,{flushSync:l})}if(!e.matches)return void Ve(t,r,Re(404,{pathname:n}),{flushSync:l});if(d(o=He(i=e.matches,n)))return}W.set(t,h);let g=B,y=await Ie("action",v,[o],i),w=y[0];if(v.signal.aborted)return void(W.get(t)===h&&W.delete(t));if(_.v7_fetcherPersist&&oe.has(t)){if(Pe(w)||ke(w))return void Ze(t,Ye(void 0))}else{if(Pe(w))return W.delete(t),q>g?void Ze(t,Ye(void 0)):(V.add(t),Ze(t,Be(c)),Le(v,w,{fetcherSubmission:c}));if(ke(w))return void Ve(t,r,w.error)}if(Me(w))throw Re(400,{type:"defer-action"});let S=M.navigation.location||M.location,E=be(e.history,S,h.signal),T=s||p,x="idle"!==M.navigation.state?b(T,M.navigation.location,m):M.matches;u(x,"Didn't find any matches after fetcher action");let C=++B;Z.set(t,C);let O=Be(c,w.data);M.fetchers.set(t,O);let[R,D]=le(e.history,M,x,c,S,!1,_.v7_skipActionErrorRevalidation,F,H,$,oe,X,V,T,m,[o.route.id,w]);D.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=M.fetchers.get(t),n=Be(void 0,r?r.data:void 0);M.fetchers.set(t,n),W.has(t)&&Ge(t),e.controller&&W.set(t,e.controller)})),we({fetchers:new Map(M.fetchers)});let z=()=>D.forEach((e=>Ge(e.key)));h.signal.addEventListener("abort",z);let{loaderResults:P,fetcherResults:L}=await Fe(M.matches,x,R,D,E);if(h.signal.aborted)return;h.signal.removeEventListener("abort",z),Z.delete(t),W.delete(t),D.forEach((e=>W.delete(e.key)));let I=De([...P,...L]);if(I){if(I.idx>=R.length){let e=D[I.idx-R.length].key;V.add(e)}return Le(E,I.result)}let{loaderData:N,errors:j}=Ee(M,M.matches,R,P,void 0,D,L,se);if(M.fetchers.has(t)){let e=Ye(w.data);M.fetchers.set(t,e)}et(C),"loading"===M.navigation.state&&C>q?(u(k,"Expected pending action"),A&&A.abort(),Se(M.navigation.location,{matches:x,loaderData:N,errors:j,fetchers:new Map(M.fetchers)})):(we({errors:j,loaderData:Te(M.loaderData,N,x,j),fetchers:new Map(M.fetchers)}),F=!1)}(t,r,h,y,d,f.active,a,v):(X.set(t,{routeId:r,path:h}),async function(t,r,n,o,i,a,s,l){let c=M.fetchers.get(t);Ze(t,Be(l,c?c.data:void 0),{flushSync:s});let d=new AbortController,f=be(e.history,n,d.signal);if(a){let e=await ct(i,n,f.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:o}=it(n,e);return void Ve(t,r,o,{flushSync:s})}if(!e.matches)return void Ve(t,r,Re(404,{pathname:n}),{flushSync:s});o=He(i=e.matches,n)}W.set(t,d);let h=B,p=await Ie("loader",f,[o],i),m=p[0];Me(m)&&(m=await Ue(m,f.signal,!0)||m);W.get(t)===d&&W.delete(t);if(f.signal.aborted)return;if(oe.has(t))return void Ze(t,Ye(void 0));if(Pe(m))return q>h?void Ze(t,Ye(void 0)):(V.add(t),void await Le(f,m));if(ke(m))return void Ve(t,r,m.error);u(!Me(m),"Unhandled fetcher deferred data"),Ze(t,Ye(m.data))}(t,r,h,y,d,f.active,a,v))},revalidate:function(){qe(),we({revalidation:"loading"}),"submitting"!==M.navigation.state&&("idle"!==M.navigation.state?_e(k||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation}):_e(M.historyAction,M.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Xe,deleteFetcher:function(e){if(_.v7_fetcherPersist){let t=(J.get(e)||0)-1;t<=0?(J.delete(e),oe.add(e)):J.set(e,t)}else Je(e);we({fetchers:new Map(M.fetchers)})},dispose:function(){E&&E(),j&&j(),T.clear(),A&&A.abort(),M.fetchers.forEach(((e,t)=>Je(t))),M.blockers.forEach(((e,t)=>tt(t)))},getBlocker:function(e,t){let r=M.blockers.get(e)||ee;return ue.get(e)!==t&&ue.set(e,t),r},deleteBlocker:tt,patchRoutes:function(e,t){let r=null==s;fe(e,t,s||p,h,a),r&&(p=[...p],we({}))},_internalFetchControllers:W,_internalActiveDeferreds:se,_internalSetRoutes:function(e){h={},s=y(e,a,void 0,h)}},d}Symbol("deferred");function ie(e,t,r,n,o,i,a,s){let l,u;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){u=e;break}}else l=t,u=t[t.length-1];let c=j(o||".",N(l,i),P(e.pathname,r)||e.pathname,"path"===s);return null==o&&(c.search=e.search,c.hash=e.hash),null!=o&&""!==o&&"."!==o||!u||!u.route.index||Fe(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:U([r,c.pathname])),h(c)}function ae(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&!Ie(n.formMethod))return{path:r,error:Re(405,{method:n.formMethod})};let o,i,a=()=>({path:r,error:Re(400,{type:"invalid-body"})}),s=n.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),c=ze(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ne(l))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)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ne(l))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=we(n.formData),i=n.formData;else if(n.body instanceof FormData)o=we(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=Se(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=Se(o)}catch(e){return a()}let d={formMethod:l,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Ne(d.formMethod))return{path:r,submission:d};let f=p(r);return t&&f.search&&Fe(f.search)&&o.append("index",""),f.search="?"+o,{path:h(f),submission:d}}function se(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}function le(e,t,r,o,i,a,s,l,u,c,d,f,h,p,m,v){let g=v?ke(v[1])?v[1].error:v[1].data:void 0,y=e.createURL(t.location),w=e.createURL(i),S=v&&ke(v[1])?v[0]:void 0,_=S?se(r,S):r,E=v?v[1].statusCode:void 0,T=s&&E&&E>=400,x=_.filter(((e,r)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(a)return!("function"==typeof i.loader&&!i.loader.hydrate)||void 0===t.loaderData[i.id]&&(!t.errors||void 0===t.errors[i.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,o=void 0===e[r.route.id];return n||o}(t.loaderData,t.matches[r],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[r],c=e;return ce(e,n({currentUrl:y,currentParams:s.params,nextUrl:w,nextParams:c.params},o,{actionResult:g,actionStatus:E,defaultShouldRevalidate:!T&&(l||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||ue(s,c))}))})),C=[];return f.forEach(((e,i)=>{if(a||!r.some((t=>t.route.id===e.routeId))||d.has(i))return;let s=b(p,e.path,m);if(!s)return void C.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(i),f=He(s,e.path),v=!1;v=!h.has(i)&&(!!c.includes(i)||(u&&"idle"!==u.state&&void 0===u.data?l:ce(f,n({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},o,{actionResult:g,actionStatus:E,defaultShouldRevalidate:!T&&l})))),v&&C.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:f,controller:new AbortController})})),[x,C]}function ue(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ce(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function de(e,t,r,n,o,i,a,s){let l=[t,...r.map((e=>e.route.id))].join("-");try{let c=a.get(l);c||(c=e({path:t,matches:r,patch:(e,t)=>{s.aborted||fe(e,t,n,o,i)}}),a.set(l,c)),c&&("object"==typeof(u=c)&&null!=u&&"then"in u)&&await c}finally{a.delete(l)}var u}function fe(e,t,r,n,o){if(e){var i;let r=n[e];u(r,"No route found to patch children into: routeId = "+e);let a=y(t,o,[e,"patch",String((null==(i=r.children)?void 0:i.length)||"0")],n);r.children?r.children.push(...a):r.children=a}else{let e=y(t,o,["patch",String(r.length||"0")],n);r.push(...e)}}async function he(e,t,r){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let i=r[e.id];u(i,"No route found in manifest");let a={};for(let e in o){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+i.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.'),t||g.has(e)||(a[e]=o[e])}Object.assign(i,a),Object.assign(i,n({},t(i),{lazy:void 0}))}function pe(e){return Promise.all(e.matches.map((e=>e.resolve())))}async function me(e,t,r,o,i,a,s,l){let c=o.reduce(((e,t)=>e.add(t.route.id)),new Set),d=new Set,f=await e({matches:i.map((e=>{let o=c.has(e.route.id);return n({},e,{shouldLoad:o,resolve:n=>(d.add(e.route.id),o?async function(e,t,r,n,o,i,a){let s,l,c=n=>{let o,s=new Promise(((e,t)=>o=t));l=()=>o(),t.signal.addEventListener("abort",l);let u,c=o=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:a},...void 0!==o?[o]:[]);return u=i?i((e=>c(e))):(async()=>{try{return{type:"data",result:await c()}}catch(e){return{type:"error",result:e}}})(),Promise.race([u,s])};try{let i=r.route[e];if(r.route.lazy)if(i){let e,[t]=await Promise.all([c(i).catch((t=>{e=t})),he(r.route,o,n)]);if(void 0!==e)throw e;s=t}else{if(await he(r.route,o,n),i=r.route[e],!i){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Re(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:v.data,result:void 0}}s=await c(i)}else{if(!i){let e=new URL(t.url);throw Re(404,{pathname:e.pathname+e.search})}s=await c(i)}u(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:v.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return s}(t,r,e,a,s,n,l):Promise.resolve({type:v.data,result:void 0}))})})),request:r,params:i[0].params,context:l});return i.forEach((e=>u(d.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),f.filter(((e,t)=>c.has(i[t].route.id)))}async function ve(e){let{result:t,type:r,status:n}=e;if(Le(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:v.error,error:e}}return r===v.error?{type:v.error,error:new B(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:v.data,data:e,statusCode:t.status,headers:t.headers}}return r===v.error?{type:v.error,error:t,statusCode:Y(t)?t.status:n}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:v.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:{type:v.data,data:t,statusCode:n};var o,i}function ge(e,t,r,n,o,i){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!te.test(a)){let s=n.slice(0,n.findIndex((e=>e.route.id===r))+1);a=ie(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function ye(e,t,r){if(te.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=null!=P(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function be(e,t,r,n){let o=e.createURL(ze(t)).toString(),i={signal:r};if(n&&Ne(n.formMethod)){let{formMethod:e,formEncType:t}=n;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(n.json)):"text/plain"===t?i.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?i.body=we(n.formData):i.body=n.formData}return new Request(o,i)}function we(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Se(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function _e(e,t,r,n,o,i){let a,s={},l=null,c=!1,d={},f=n&&ke(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let h=t[n].route.id;if(u(!Pe(r),"Cannot handle redirect results in processLoaderData"),ke(r)){let t=r.error;if(void 0!==f&&(t=f,f=void 0),l=l||{},i)l[h]=t;else{let r=Ce(e,h);null==l[r.route.id]&&(l[r.route.id]=t)}s[h]=void 0,c||(c=!0,a=Y(r.error)?r.error.status:500),r.headers&&(d[h]=r.headers)}else Me(r)?(o.set(h,r.deferredData),s[h]=r.deferredData.data,null==r.statusCode||200===r.statusCode||c||(a=r.statusCode),r.headers&&(d[h]=r.headers)):(s[h]=r.data,r.statusCode&&200!==r.statusCode&&!c&&(a=r.statusCode),r.headers&&(d[h]=r.headers))})),void 0!==f&&n&&(l={[n[0]]:f},s[n[0]]=void 0),{loaderData:s,errors:l,statusCode:a||200,loaderHeaders:d}}function Ee(e,t,r,o,i,a,s,l){let{loaderData:c,errors:d}=_e(t,r,o,i,l,!1);for(let t=0;t<a.length;t++){let{key:r,match:o,controller:i}=a[t];u(void 0!==s&&void 0!==s[t],"Did not find corresponding fetcher result");let l=s[t];if(!i||!i.signal.aborted)if(ke(l)){let t=Ce(e.matches,null==o?void 0:o.route.id);d&&d[t.route.id]||(d=n({},d,{[t.route.id]:l.error})),e.fetchers.delete(r)}else if(Pe(l))u(!1,"Unhandled fetcher revalidation redirect");else if(Me(l))u(!1,"Unhandled fetcher deferred data");else{let t=Ye(l.data);e.fetchers.set(r,t)}}return{loaderData:c,errors:d}}function Te(e,t,r,o){let i=n({},t);for(let n of r){let r=n.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(i[r]=t[r]):void 0!==e[r]&&n.route.loader&&(i[r]=e[r]),o&&o.hasOwnProperty(r))break}return i}function xe(e){return e?ke(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ce(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 Oe(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 Re(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request","route-discovery"===i?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnMiss()` function threw the following error:\n'+a:o&&r&&n?l="You made a "+o+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new B(e||500,s,new Error(l),!0)}function De(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Pe(r))return{result:r,idx:t}}}function ze(e){return h(n({},"string"==typeof e?p(e):e,{hash:""}))}function Ae(e){return Le(e.result)&&J.has(e.result.status)}function Me(e){return e.type===v.deferred}function ke(e){return e.type===v.error}function Pe(e){return(e&&e.type)===v.redirect}function Le(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ie(e){return X.has(e.toLowerCase())}function Ne(e){return Z.has(e.toLowerCase())}async function je(e,t,r,n,o,i){for(let a=0;a<r.length;a++){let s=r[a],l=t[a];if(!l)continue;let c=e.find((e=>e.route.id===l.route.id)),d=null!=c&&!ue(c,l)&&void 0!==(i&&i[l.route.id]);if(Me(s)&&(o||d)){let e=n[a];u(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ue(s,e,o).then((e=>{e&&(r[a]=e||r[a])}))}}}async function Ue(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:v.data,data:e.deferredData.unwrappedData}}catch(e){return{type:v.error,error:e}}return{type:v.data,data:e.deferredData.data}}}function Fe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function He(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&Fe(r||""))return e[e.length-1];let n=I(e);return n[n.length-1]}function $e(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(t&&r&&n)return null!=o?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}:void 0}function We(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 Be(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 Ye(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},45228:e=>{"use strict";
13
+ /*
14
+ object-assign
15
+ (c) Sindre Sorhus
16
+ @license MIT
17
+ */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))r.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var c=0;c<a.length;c++)n.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s}},48067:(e,t)=>{"use strict";t.YW=function(e,t={}){const{decode:r=decodeURIComponent,loose:o=!0}=t,i=e instanceof l?e:u(e,t),a=f(o,i.delimiter),s=[],c=p(i,s,t),d=s.map((e=>{if(r&&("+"===e.modifier||"*"===e.modifier)){const{prefix:t="",suffix:n="",separator:o=n+t}=e,i=new RegExp(a(o),"g");return e=>e.split(i).map(r)}return r||n}));return function(e){const t=c.exec(e);if(!t)return!1;const{0:r,index:n}=t,o=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;const r=s[e-1],n=d[e-1];o[r.name]=n(t[e])}return{path:r,index:n,params:o}}};const r="/",n=e=>e,o=/^\p{XID_Continue}$/u,i="https://git.new/pathToRegexpError",a={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};class s{constructor(e){this.tokens=e,this.index=0}peek(){return this.tokens[this.index]}tryConsume(e){const t=this.peek();if(t.type===e)return this.index++,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:r,index:n}=this.peek();throw new TypeError(`Unexpected ${r} at ${n}, expected ${e}: ${i}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}modifier(){return this.tryConsume("?")||this.tryConsume("*")||this.tryConsume("+")}}class l{constructor(e,t){this.tokens=e,this.delimiter=t}}function u(e,t={}){const{encodePath:u=n,delimiter:d=u(r)}=t,f=[],h=function(e){const t=[...e],r=[];let n=0;for(;n<t.length;){const e=t[n],i=a[e];if(i)r.push({type:i,index:n++,value:e});else if("\\"!==e)if(":"!==e)if("("!==e)r.push({type:"CHAR",index:n,value:t[n++]});else{const e=n++;let o=1,i="";if("?"===t[n])throw new TypeError(`Pattern cannot start with "?" at ${n}`);for(;n<t.length;)if("\\"!==t[n]){if(")"===t[n]){if(o--,0===o){n++;break}}else if("("===t[n]&&(o++,"?"!==t[n+1]))throw new TypeError(`Capturing groups are not allowed at ${n}`);i+=t[n++]}else i+=t[n++]+t[n++];if(o)throw new TypeError(`Unbalanced pattern at ${e}`);if(!i)throw new TypeError(`Missing pattern at ${e}`);r.push({type:"PATTERN",index:n,value:i})}else{let e="";for(;o.test(t[++n]);)e+=t[n];if(!e)throw new TypeError(`Missing parameter name at ${n}`);r.push({type:"NAME",index:n,value:e})}else r.push({type:"ESCAPED",index:n++,value:t[n++]})}return r.push({type:"END",index:n,value:""}),new s(r)}(e);let p=0;for(;;){const e=h.text();e&&f.push(u(e));const t=h.tryConsume("NAME"),r=h.tryConsume("PATTERN");if(t||r){f.push({name:t||String(p++),pattern:r});const e=h.peek();if("*"===e.type)throw new TypeError(`Unexpected * at ${e.index}, you probably want \`/*\` or \`{/:foo}*\`: ${i}`);continue}if(h.tryConsume("*")){f.push({name:String(p++),pattern:`(?:(?!${c(d)}).)*`,modifier:"*",separator:d});continue}if(!h.tryConsume("{")){h.consume("END");break}{const e=h.text(),t=h.tryConsume("NAME"),r=h.tryConsume("PATTERN"),n=h.text(),o=h.tryConsume(";")&&h.text();h.consume("}");const i=h.modifier();f.push({name:t||(r?String(p++):""),prefix:u(e),suffix:u(n),pattern:r,modifier:i,separator:o})}}return new l(f,d)}function c(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function d(e,t){const r=c(e);return t?`(?:${r})+(?!${r})`:r}function f(e,t){if(!e)return c;const r=new RegExp(`(?:(?!${c(t)}).)+|(.)`,"g");return e=>e.replace(r,d)}function h(e){return e.sensitive?"":"i"}function p(e,t,r){const{trailing:n=!0,loose:o=!0,start:i=!0,end:a=!0,strict:s=!1}=r,l=h(r),u=f(o,e.delimiter);let d=i?"^":"";return d+=m(e,u,t,l,s).join(""),n&&(d+=`(?:${u(e.delimiter)})?`),d+=a?"$":`(?=${c(e.delimiter)}|$)`,new RegExp(d,l)}function m(e,t,r,n,o){const a=`(?:(?!${c(e.delimiter)}).)+?`;let s="",l=!0;return e.tokens.map(((e,u)=>{if("string"==typeof e)return s=e,t(e);const{prefix:c="",suffix:d="",separator:f=d+c,modifier:h=""}=e,p=t(c),m=t(d);if(e.name){const u=e.pattern?`(?:${e.pattern})`:a,g=function(e,t,r){try{return new RegExp(`^${e}$`,r)}catch(e){throw new TypeError(`Invalid pattern for "${t}": ${e.message}`)}}(u,e.name,n);if(l||(l=v(g,c||s)),!l)throw new TypeError(`Ambiguous pattern for "${e.name}": ${i}`);if(l=!o||v(g,d),s="",r.push(e),"+"===h||"*"===h){const r="*"===h?"?":"",n=t(f);if(!n)throw new TypeError(`Missing separator for "${e.name}": ${i}`);if(l||(l=!o||v(g,f)),!l)throw new TypeError(`Ambiguous pattern for "${e.name}" separator: ${i}`);return l=!o,`(?:${p}(${u}(?:${n}${u})*)${m})${r}`}return`(?:${p}(${u})${m})${h}`}return`(?:${p}${m})${h}`}))}function v(e,t){return!!t&&!e.test(t)}},30115:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!i(e[u[l]],a[u[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},68154:(e,t,r)=>{"use strict";r.d(t,{m:()=>pe});var n,o,i,a,s=r(49859),l=r.n(s),u=r(52098),c=r.n(u),d=r(30115),f=r.n(d),h=r(4883),p=r.n(h),m=r(45228),v=r.n(m),g="bodyAttributes",y="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},S=(Object.keys(w).map((function(e){return w[e]})),"charset"),_="cssText",E="href",T="http-equiv",x="innerHTML",C="itemprop",O="name",R="property",D="rel",z="src",A="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k="defaultTitle",P="defer",L="encodeSpecialCharacters",I="onChangeClientState",N="titleTemplate",j=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),U=[w.NOSCRIPT,w.SCRIPT,w.STYLE],F="data-react-helmet",H="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},$=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Y=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},q=function(e){var t=G(e,w.TITLE),r=G(e,N);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=G(e,k);return t||n||void 0},Z=function(e){return G(e,I)||function(){}},V=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return W({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},J=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||r===D&&"canonical"===e[r].toLowerCase()||l===D&&"stylesheet"===e[l].toLowerCase()||(r=l),-1===t.indexOf(s)||s!==x&&s!==_&&s!==C||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=v()({},n[s],o[s]);n[s]=l}return e}),[]).reverse()},G=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},K=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout((function(){K(e)}),0)}),Q=function(e){return clearTimeout(e)},ee="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||K:r.g.requestAnimationFrame||K,te="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:r.g.cancelAnimationFrame||Q,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ne=null,oe=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,d=e.title,f=e.titleAttributes;se(w.BODY,n),se(w.HTML,o),ae(d,f);var h={baseTag:le(w.BASE,r),linkTags:le(w.LINK,i),metaTags:le(w.META,a),noscriptTags:le(w.NOSCRIPT,s),scriptTags:le(w.SCRIPT,u),styleTags:le(w.STYLE,c)},p={},m={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(m[e]=h[e].oldTags)})),t&&t(),l(e,p,m)},ie=function(e){return Array.isArray(e)?e.join(""):e},ae=function(e,t){void 0!==e&&document.title!==e&&(document.title=ie(e)),se(w.TITLE,t)},se=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(F),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],u=t[l]||"";r.getAttribute(l)!==u&&r.setAttribute(l,u),-1===o.indexOf(l)&&o.push(l);var c=i.indexOf(l);-1!==c&&i.splice(c,1)}for(var d=i.length-1;d>=0;d--)r.removeAttribute(i[d]);o.length===i.length?r.removeAttribute(F):r.getAttribute(F)!==a.join(",")&&r.setAttribute(F,a.join(","))}},le=function(e,t){var r=document.head||document.querySelector(w.HEAD),n=r.querySelectorAll(e+"["+F+"]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===x)r.innerHTML=t.innerHTML;else if(n===_)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute(F,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},ue=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[M[r]||r]=e[r],t}),t)},de=function(e,t,r){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,r=t.titleAttributes,(n={key:e})[F]=!0,o=ce(r,n),[p().createElement(w.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=ue(r),i=ie(t);return o?"<"+e+" "+F+'="true" '+o+">"+Y(i,n)+"</"+e+">":"<"+e+" "+F+'="true">'+Y(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case g:case y:return{toComponent:function(){return ce(t)},toString:function(){return ue(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,o=((n={key:r})[F]=!0,n);return Object.keys(t).forEach((function(e){var r=M[e]||e;if(r===x||r===_){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]})),p().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!(e===x||e===_)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+Y(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===U.indexOf(e);return t+"<"+e+" "+F+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},fe=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,u=e.styleTags,c=e.title,d=void 0===c?"":c,f=e.titleAttributes;return{base:de(w.BASE,t,n),bodyAttributes:de(g,r,n),htmlAttributes:de(y,o,n),link:de(w.LINK,i,n),meta:de(w.META,a,n),noscript:de(w.NOSCRIPT,s,n),script:de(w.SCRIPT,l,n),style:de(w.STYLE,u,n),title:de(w.TITLE,{title:d,titleAttributes:f},n)}},he=c()((function(e){return{baseTag:X([E,A],e),bodyAttributes:V(g,e),defer:G(e,P),encode:G(e,L),htmlAttributes:V(y,e),linkTags:J(w.LINK,[D,E],e),metaTags:J(w.META,[O,S,T,R,C],e),noscriptTags:J(w.NOSCRIPT,[x],e),onChangeClientState:Z(e),scriptTags:J(w.SCRIPT,[z,x],e),styleTags:J(w.STYLE,[_],e),title:q(e),titleAttributes:V(b,e)}}),(function(e){ne&&te(ne),e.defer?ne=ee((function(){oe(e,(function(){ne=null}))})):(oe(e),ne=null)}),fe)((function(){return null})),pe=(o=he,a=i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return W({},n,((t={})[r.type]=[].concat(n[r.type]||[],[W({},o,this.mapNestedChildrenToProps(r,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case w.TITLE:return W({},o,((t={})[n.type]=a,t.titleAttributes=W({},i),t));case w.BODY:return W({},o,{bodyAttributes:W({},i)});case w.HTML:return W({},o,{htmlAttributes:W({},i)})}return W({},o,((r={})[n.type]=W({},i),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=W({},t);return Object.keys(e).forEach((function(t){var n;r=W({},r,((n={})[t]=e[t],n))})),r},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return p().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[j[r]||r]=e[r],t}),t)}(B(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=B(e,["children"]),n=W({},r);return t&&(n=this.mapChildrenToProps(t,n)),p().createElement(o,n)},$(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(p().Component),i.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=fe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);pe.renderStatic=pe.rewind},46079:(e,t,r)=>{"use strict";var n=r(83752);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},49859:(e,t,r)=>{e.exports=r(46079)()},83752:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},84976:(e,t,r)=>{"use strict";r.d(t,{Ge:()=>f,N_:()=>C,Ys:()=>d,ok:()=>D,pg:()=>S});var n=r(4883),o=r(81845),i=r(47767),a=r(45588);
18
+ /**
19
+ * React Router DOM v6.25.1
20
+ *
21
+ * Copyright (c) Remix Software Inc.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE.md file in the root directory of this source tree.
25
+ *
26
+ * @license MIT
27
+ */
28
+ function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function u(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function d(e,t){return(0,a.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,a.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||h(),routes:e,mapRouteProperties:i.wE,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss,window:null==t?void 0:t.window}).initialize()}function f(e,t){return(0,a.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,a.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||h(),routes:e,mapRouteProperties:i.wE,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss,window:null==t?void 0:t.window}).initialize()}function h(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=s({},t,{errors:p(t.errors)})),t}function p(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new a.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let o=new t(n.message);o.stack="",r[e]=o}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const m=n.createContext({isTransitioning:!1});const v=n.createContext(new Map);const g=n.startTransition,y=o.flushSync;n.useId;function b(e){y?y(e):e()}class w{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 S(e){let{fallbackElement:t,router:r,future:o}=e,[a,s]=n.useState(r.state),[l,u]=n.useState(),[c,d]=n.useState({isTransitioning:!1}),[f,h]=n.useState(),[p,y]=n.useState(),[S,E]=n.useState(),T=n.useRef(new Map),{v7_startTransition:x}=o||{},C=n.useCallback((e=>{x?function(e){g?g(e):e()}(e):e()}),[x]),O=n.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:o,unstable_viewTransitionOpts:i}=t;n.forEach((e=>T.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&T.current.set(t,e.data)}));let a=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(i&&!a){if(o){b((()=>{p&&(f&&f.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=r.window.document.startViewTransition((()=>{b((()=>s(e)))}));return t.finished.finally((()=>{b((()=>{h(void 0),y(void 0),u(void 0),d({isTransitioning:!1})}))})),void b((()=>y(t)))}p?(f&&f.resolve(),p.skipTransition(),E({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(u(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?b((()=>s(e))):C((()=>s(e)))}),[r.window,p,f,T,C]);n.useLayoutEffect((()=>r.subscribe(O)),[r,O]),n.useEffect((()=>{c.isTransitioning&&!c.flushSync&&h(new w)}),[c]),n.useEffect((()=>{if(f&&l&&r.window){let e=l,t=f.promise,n=r.window.document.startViewTransition((async()=>{C((()=>s(e))),await t}));n.finished.finally((()=>{h(void 0),y(void 0),u(void 0),d({isTransitioning:!1})})),y(n)}}),[C,l,f,r.window]),n.useEffect((()=>{f&&l&&a.location.key===l.location.key&&f.resolve()}),[f,p,a.location,l]),n.useEffect((()=>{!c.isTransitioning&&S&&(u(S.state),d({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))}),[c.isTransitioning,S]),n.useEffect((()=>{}),[]);let R=n.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),D=r.basename||"/",z=n.useMemo((()=>({router:r,navigator:R,static:!1,basename:D})),[r,R,D]),A=n.useMemo((()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath})),[r.future.v7_relativeSplatPath]);return n.createElement(n.Fragment,null,n.createElement(i.sp.Provider,{value:z},n.createElement(i.Rq.Provider,{value:a},n.createElement(v.Provider,{value:T.current},n.createElement(m.Provider,{value:c},n.createElement(i.Ix,{basename:D,location:a.location,navigationType:a.historyAction,navigator:R,future:A},a.initialized||r.future.v7_partialHydration?n.createElement(_,{routes:r.routes,future:r.future,state:a}):t))))),null)}const _=n.memo(E);function E(e){let{routes:t,future:r,state:n}=e;return(0,i.ph)(t,void 0,n,r)}const T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C=n.forwardRef((function(e,t){let r,{onClick:o,relative:u,reloadDocument:d,replace:f,state:h,target:p,to:m,preventScrollReset:v,unstable_viewTransition:g}=e,y=l(e,c),{basename:b}=n.useContext(i.jb),w=!1;if("string"==typeof m&&x.test(m)&&(r=m,T))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),r=(0,a.pb)(t.pathname,b);t.origin===e.origin&&null!=r?m=r+t.search+t.hash:w=!0}catch(e){}let S=(0,i.$P)(m,{relative:u}),_=function(e,t){let{target:r,replace:o,state:s,preventScrollReset:l,relative:u,unstable_viewTransition:c}=void 0===t?{}:t,d=(0,i.Zp)(),f=(0,i.zy)(),h=(0,i.x$)(e,{relative:u});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==o?o:(0,a.AO)(f)===(0,a.AO)(h);d(e,{replace:r,state:s,preventScrollReset:l,relative:u,unstable_viewTransition:c})}}),[f,d,h,o,s,r,e,l,u,c])}(m,{replace:f,state:h,target:p,preventScrollReset:v,relative:u,unstable_viewTransition:g});return n.createElement("a",s({},y,{href:r||S,onClick:w||d?o:function(e){o&&o(e),e.defaultPrevented||_(e)},ref:t,target:p}))}));var O,R;function D(e){let t=n.useRef(u(e)),r=n.useRef(!1),o=(0,i.zy)(),a=n.useMemo((()=>function(e,t){let r=u(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(o.search,r.current?null:t.current)),[o.search]),s=(0,i.Zp)(),l=n.useCallback(((e,t)=>{const n=u("function"==typeof e?e(a):e);r.current=!0,s("?"+n,t)}),[s,a]);return[a,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(O||(O={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(R||(R={}))},47767:(e,t,r)=>{"use strict";r.d(t,{$P:()=>f,BV:()=>I,C5:()=>k,Ix:()=>L,KP:()=>A,Rq:()=>s,Zp:()=>v,bg:()=>U,g:()=>g,jb:()=>l,ph:()=>b,qh:()=>P,sp:()=>a,wE:()=>j,x$:()=>y,zy:()=>p});var n=r(4883),o=r(45588);
29
+ /**
30
+ * React Router v6.25.1
31
+ *
32
+ * Copyright (c) Remix Software Inc.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE.md file in the root directory of this source tree.
36
+ *
37
+ * @license MIT
38
+ */
39
+ function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const a=n.createContext(null);const s=n.createContext(null);const l=n.createContext(null);const u=n.createContext(null);const c=n.createContext({outlet:null,matches:[],isDataRoute:!1});const d=n.createContext(null);function f(e,t){let{relative:r}=void 0===t?{}:t;h()||(0,o.Oi)(!1);let{basename:i,navigator:a}=n.useContext(l),{hash:s,pathname:u,search:c}=y(e,{relative:r}),d=u;return"/"!==i&&(d="/"===u?i:(0,o.HS)([i,u])),a.createHref({pathname:d,search:c,hash:s})}function h(){return null!=n.useContext(u)}function p(){return h()||(0,o.Oi)(!1),n.useContext(u).location}function m(e){n.useContext(l).static||n.useLayoutEffect(e)}function v(){let{isDataRoute:e}=n.useContext(c);return e?function(){let{router:e}=O(x.UseNavigateStable),t=D(C.UseNavigateStable),r=n.useRef(!1);return m((()=>{r.current=!0})),n.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},o)))}),[e,t])}():function(){h()||(0,o.Oi)(!1);let e=n.useContext(a),{basename:t,future:r,navigator:i}=n.useContext(l),{matches:s}=n.useContext(c),{pathname:u}=p(),d=JSON.stringify((0,o.yD)(s,r.v7_relativeSplatPath)),f=n.useRef(!1);return m((()=>{f.current=!0})),n.useCallback((function(r,n){if(void 0===n&&(n={}),!f.current)return;if("number"==typeof r)return void i.go(r);let a=(0,o.Gh)(r,JSON.parse(d),u,"path"===n.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(n.replace?i.replace:i.push)(a,n.state,n)}),[t,i,d,u,e])}()}function g(){let{matches:e}=n.useContext(c),t=e[e.length-1];return t?t.params:{}}function y(e,t){let{relative:r}=void 0===t?{}:t,{future:i}=n.useContext(l),{matches:a}=n.useContext(c),{pathname:s}=p(),u=JSON.stringify((0,o.yD)(a,i.v7_relativeSplatPath));return n.useMemo((()=>(0,o.Gh)(e,JSON.parse(u),s,"path"===r)),[e,u,s,r])}function b(e,t,r,a){h()||(0,o.Oi)(!1);let{navigator:s}=n.useContext(l),{matches:d}=n.useContext(c),f=d[d.length-1],m=f?f.params:{},v=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let g,y=p();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===v||(null==(b=e.pathname)?void 0:b.startsWith(v))||(0,o.Oi)(!1),g=e}else g=y;let w=g.pathname||"/",S=w;if("/"!==v){let e=v.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=(0,o.ue)(e,{pathname:S});let E=T(_&&_.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,o.HS)([v,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,o.HS)([v,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,r,a);return t&&E?n.createElement(u.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:o.rc.Pop}},E):E}function w(){let e=function(){var e;let t=n.useContext(d),r=R(C.UseRouteError),o=D(C.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[o]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:a},r):null,null)}const S=n.createElement(w,null);class _ extends n.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?n.createElement(c.Provider,{value:this.props.routeContext},n.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(e){let{routeContext:t,match:r,children:o}=e,i=n.useContext(a);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(c.Provider,{value:t},o)}function T(e,t,r,i){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var s;if(null==(s=r)||!s.errors)return null;e=r.matches}let l=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=l.findIndex((e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,d=-1;if(r&&i&&i.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){c=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,o,i)=>{let a,s=!1,f=null,h=null;var p;r&&(a=u&&o.route.id?u[o.route.id]:void 0,f=o.route.errorElement||S,c&&(d<0&&0===i?(p="route-fallback",!1||M[p]||(M[p]=!0),s=!0,h=null):d===i&&(s=!0,h=o.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),v=()=>{let t;return t=a?f:s?h:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(E,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?n.createElement(_,{location:r.location,revalidation:r.revalidation,component:f,error:a,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}var x=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function O(e){let t=n.useContext(a);return t||(0,o.Oi)(!1),t}function R(e){let t=n.useContext(s);return t||(0,o.Oi)(!1),t}function D(e){let t=function(e){let t=n.useContext(c);return t||(0,o.Oi)(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||(0,o.Oi)(!1),r.route.id}let z=0;function A(e){let{router:t,basename:r}=O(x.UseBlocker),a=R(C.UseBlocker),[s,l]=n.useState(""),u=n.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:s}=t;return e({currentLocation:i({},n,{pathname:(0,o.pb)(n.pathname,r)||n.pathname}),nextLocation:i({},a,{pathname:(0,o.pb)(a.pathname,r)||a.pathname}),historyAction:s})}),[r,e]);return n.useEffect((()=>{let e=String(++z);return l(e),()=>t.deleteBlocker(e)}),[t]),n.useEffect((()=>{""!==s&&t.getBlocker(s,u)}),[t,s,u]),s&&a.blockers.has(s)?a.blockers.get(s):o.G3}const M={};n.startTransition;function k(e){let{to:t,replace:r,state:i,relative:a}=e;h()||(0,o.Oi)(!1);let{future:s,static:u}=n.useContext(l),{matches:d}=n.useContext(c),{pathname:f}=p(),m=v(),g=(0,o.Gh)(t,(0,o.yD)(d,s.v7_relativeSplatPath),f,"path"===a),y=JSON.stringify(g);return n.useEffect((()=>m(JSON.parse(y),{replace:r,state:i,relative:a})),[m,y,a,r,i]),null}function P(e){(0,o.Oi)(!1)}function L(e){let{basename:t="/",children:r=null,location:a,navigationType:s=o.rc.Pop,navigator:c,static:d=!1,future:f}=e;h()&&(0,o.Oi)(!1);let p=t.replace(/^\/*/,"/"),m=n.useMemo((()=>({basename:p,navigator:c,static:d,future:i({v7_relativeSplatPath:!1},f)})),[p,f,c,d]);"string"==typeof a&&(a=(0,o.Rr)(a));let{pathname:v="/",search:g="",hash:y="",state:b=null,key:w="default"}=a,S=n.useMemo((()=>{let e=(0,o.pb)(v,p);return null==e?null:{location:{pathname:e,search:g,hash:y,state:b,key:w},navigationType:s}}),[p,v,g,y,b,w,s]);return null==S?null:n.createElement(l.Provider,{value:m},n.createElement(u.Provider,{children:r,value:S}))}function I(e){let{children:t,location:r}=e;return b(N(t),r)}new Promise((()=>{}));n.Component;function N(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,i)=>{if(!n.isValidElement(e))return;let a=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,N(e.props.children,a));e.type!==P&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={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,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=N(e.props.children,a)),r.push(s)})),r}function j(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:n.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function U(e,t){return(0,o.aE)({basename:null==t?void 0:t.basename,future:i({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:j,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==t?void 0:t.unstable_patchRoutesOnMiss}).initialize()}},52098:(e,t,r)=>{"use strict";var n,o=r(4883),i=(n=o)&&"object"==typeof n&&"default"in n?n.default:n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var l,u=[];function c(){l=e(u.map((function(e){return e.props}))),d.canUseDOM?t(l):r&&(l=r(l))}var d=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,u=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){u.push(this),c()},a.componentDidUpdate=function(){c()},a.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),c()},a.render=function(){return i.createElement(n,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a(d,"canUseDOM",s),d}}},71764:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(4883),o=r.n(n),i=r(5556),a=r.n(i),s="undefined"!=typeof window?window:null,l=null===s,u=l?void 0:s.document,c="addEventListener",d="removeEventListener",f="getBoundingClientRect",h="_a",p="_b",m="_c",v="horizontal",g=function(){return!1},y=l?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=u.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",b=function(e){return"string"==typeof e||e instanceof String},w=function(e){if(b(e)){var t=u.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},S=function(e,t,r){var n=e[t];return void 0!==n?n:r},_=function(e,t,r,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(r){if("start"===n)return 0;if("center"===n)return e/2}return e},E=function(e,t){var r=u.createElement("div");return r.className="gutter gutter-"+t,r},T=function(e,t,r){var n={};return b(t)?n[e]=t:n[e]=y+"("+t+"% - "+r+"px)",n},x=function(e,t){var r;return(r={})[e]=t+"px",r};const C=function(e,t){if(void 0===t&&(t={}),l)return{};var r,n,o,i,a,y,b=e;Array.from&&(b=Array.from(b));var C=w(b[0]).parentNode,O=getComputedStyle?getComputedStyle(C):null,R=O?O.flexDirection:null,D=S(t,"sizes")||b.map((function(){return 100/b.length})),z=S(t,"minSize",100),A=Array.isArray(z)?z:b.map((function(){return z})),M=S(t,"maxSize",1/0),k=Array.isArray(M)?M:b.map((function(){return M})),P=S(t,"expandToMin",!1),L=S(t,"gutterSize",10),I=S(t,"gutterAlign","center"),N=S(t,"snapOffset",30),j=Array.isArray(N)?N:b.map((function(){return N})),U=S(t,"dragInterval",1),F=S(t,"direction",v),H=S(t,"cursor",F===v?"col-resize":"row-resize"),$=S(t,"gutter",E),W=S(t,"elementStyle",T),B=S(t,"gutterStyle",x);function Y(e,t,n,o){var i=W(r,t,n,o);Object.keys(i).forEach((function(t){e.style[t]=i[t]}))}function q(){return y.map((function(e){return e.size}))}function Z(e){return"touches"in e?e.touches[0][n]:e[n]}function V(e){var t=y[this.a],r=y[this.b],n=t.size+r.size;t.size=e/this.size*n,r.size=n-e/this.size*n,Y(t.element,t.size,this[p],t.i),Y(r.element,r.size,this[m],r.i)}function X(e){var r,n=y[this.a],o=y[this.b];this.dragging&&(r=Z(e)-this.start+(this[p]-this.dragOffset),U>1&&(r=Math.round(r/U)*U),r<=n.minSize+n.snapOffset+this[p]?r=n.minSize+this[p]:r>=this.size-(o.minSize+o.snapOffset+this[m])&&(r=this.size-(o.minSize+this[m])),r>=n.maxSize-n.snapOffset+this[p]?r=n.maxSize+this[p]:r<=this.size-(o.maxSize-o.snapOffset+this[m])&&(r=this.size-(o.maxSize+this[m])),V.call(this,r),S(t,"onDrag",g)(q()))}function J(){var e=y[this.a].element,t=y[this.b].element,n=e[f](),a=t[f]();this.size=n[r]+a[r]+this[p]+this[m],this.start=n[o],this.end=n[i]}function G(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var r=e[a];return 0===r?null:r-=F===v?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(C);if(null===t)return e;if(A.reduce((function(e,t){return e+t}),0)>t)return e;var r=0,n=[],o=e.map((function(o,i){var a=t*o/100,s=_(L,0===i,i===e.length-1,I),l=A[i]+s;return a<l?(r+=l-a,n.push(0),l):(n.push(a-l),a)}));return 0===r?e:o.map((function(e,o){var i=e;if(r>0&&n[o]-r>0){var a=Math.min(r,n[o]-r);r-=a,i=e-a}return i/t*100}))}function K(){var e=this,r=y[e.a].element,n=y[e.b].element;e.dragging&&S(t,"onDragEnd",g)(q()),e.dragging=!1,s[d]("mouseup",e.stop),s[d]("touchend",e.stop),s[d]("touchcancel",e.stop),s[d]("mousemove",e.move),s[d]("touchmove",e.move),e.stop=null,e.move=null,r[d]("selectstart",g),r[d]("dragstart",g),n[d]("selectstart",g),n[d]("dragstart",g),r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",u.body.style.cursor=""}function Q(e){if(!("button"in e)||0===e.button){var r=this,n=y[r.a].element,o=y[r.b].element;r.dragging||S(t,"onDragStart",g)(q()),e.preventDefault(),r.dragging=!0,r.move=X.bind(r),r.stop=K.bind(r),s[c]("mouseup",r.stop),s[c]("touchend",r.stop),s[c]("touchcancel",r.stop),s[c]("mousemove",r.move),s[c]("touchmove",r.move),n[c]("selectstart",g),n[c]("dragstart",g),o[c]("selectstart",g),o[c]("dragstart",g),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",o.style.userSelect="none",o.style.webkitUserSelect="none",o.style.MozUserSelect="none",o.style.pointerEvents="none",r.gutter.style.cursor=H,r.parent.style.cursor=H,u.body.style.cursor=H,J.call(r),r.dragOffset=Z(e)-r.end}}F===v?(r="width",n="clientX",o="left",i="right",a="clientWidth"):"vertical"===F&&(r="height",n="clientY",o="top",i="bottom",a="clientHeight"),D=G(D);var ee=[];function te(e){var t=e.i===ee.length,r=t?ee[e.i-1]:ee[e.i];J.call(r);var n=t?r.size-e.minSize-r[m]:e.minSize+r[p];V.call(r,n)}return(y=b.map((function(e,t){var n,o={element:w(e),size:D[t],minSize:A[t],maxSize:k[t],snapOffset:j[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:F,parent:C})[p]=_(L,t-1==0,!1,I),n[m]=_(L,!1,t===b.length-1,I),"row-reverse"===R||"column-reverse"===R)){var i=n.a;n.a=n.b,n.b=i}if(t>0){var a=$(t,F,o.element);!function(e,t,n){var o=B(r,t,n);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}(a,L,t),n[h]=Q.bind(n),a[c]("mousedown",n[h]),a[c]("touchstart",n[h]),C.insertBefore(a,o.element),n.gutter=a}return Y(o.element,o.size,_(L,0===t,t===b.length-1,I),t),t>0&&ee.push(n),o}))).forEach((function(e){var t=e.element[f]()[r];t<e.minSize&&(P?te(e):e.minSize=t)})),{setSizes:function(e){var t=G(e);t.forEach((function(e,r){if(r>0){var n=ee[r-1],o=y[n.a],i=y[n.b];o.size=t[r-1],i.size=e,Y(o.element,o.size,n[p],o.i),Y(i.element,i.size,n[m],i.i)}}))},getSizes:q,collapse:function(e){te(y[e])},destroy:function(e,t){ee.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[d]("mousedown",n[h]),n.gutter[d]("touchstart",n[h])),!0!==e){var o=W(r,n.a.size,n[p]);Object.keys(o).forEach((function(e){y[n.a].element.style[e]="",y[n.b].element.style[e]=""}))}}))},parent:C,pairs:ee}};function O(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(r[n]=e[n]);return r}var R=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,r=O(e,["children","gutter"]);r.gutter=function(e,r){var n;return t?n=t(e,r):(n=document.createElement("div")).className="gutter gutter-"+r,n.__isSplitGutter=!0,n},this.split=C(this.parent.children,r)},t.prototype.componentDidUpdate=function(e){var t=this,r=this.props;r.children;var n=r.minSize,o=r.sizes,i=r.collapsed,a=O(r,["children","minSize","sizes","collapsed"]),s=e.minSize,l=e.sizes,u=e.collapsed,c=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(r){return t.props[r]!==e[r]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(n)&&Array.isArray(s)){var d=!1;n.forEach((function(e,t){d=d||e!==s[t]})),c=c||d}else c=!(!Array.isArray(n)&&!Array.isArray(s))||(c||n!==s);if(c)a.minSize=n,a.sizes=o||this.split.getSizes(),this.split.destroy(!0,!0),a.gutter=function(e,t,r){return r.previousSibling},this.split=C(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),a);else if(o){var f=!1;o.forEach((function(e,t){f=f||e!==l[t]})),f&&this.split.setSizes(this.props.sizes)}Number.isInteger(i)&&(i!==u||c)&&this.split.collapse(i)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var r=t.children,n=O(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return o().createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),r)},t}(o().Component);R.propTypes={sizes:a().arrayOf(a().number),minSize:a().oneOfType([a().number,a().arrayOf(a().number)]),maxSize:a().oneOfType([a().number,a().arrayOf(a().number)]),expandToMin:a().bool,gutterSize:a().number,gutterAlign:a().string,snapOffset:a().oneOfType([a().number,a().arrayOf(a().number)]),dragInterval:a().number,direction:a().string,cursor:a().string,gutter:a().func,elementStyle:a().func,gutterStyle:a().func,onDrag:a().func,onDragStart:a().func,onDragEnd:a().func,collapsed:a().number,children:a().arrayOf(a().element)},R.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const D=R},70713:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>f});var n=r(4883);let o;o="undefined"!=typeof window?window:"undefined"!=typeof self?self:r.g;let i=null,a=null;const s=o.clearTimeout,l=o.setTimeout,u=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame,c=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame;function d(e){let t,r,n,s,l,u,c;const d="undefined"!=typeof document&&document.attachEvent;if(!d){u=function(e){const t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,o=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=r.offsetWidth+1+"px",o.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},l=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},c=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;u(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=a((function(){l(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))};let e=!1,o="";n="animationstart";const d="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let r=0;r<d.length;r++)if(void 0!==t.style[d[r]+"AnimationName"]){h=d[r],o="-"+h.toLowerCase()+"-",n=f[r],e=!0;break}}r="resizeanim",t="@"+o+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",s=o+"animation: 1ms "+r+"; "}return{addResizeListener:function(i,a){if(d)i.attachEvent("onresize",a);else{if(!i.__resizeTriggers__){const a=i.ownerDocument,l=o.getComputedStyle(i);l&&"static"===l.position&&(i.style.position="relative"),function(r){if(!r.getElementById("detectElementResize")){const n=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=r.head||r.getElementsByTagName("head")[0],i=r.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(r.createTextNode(n)),o.appendChild(i)}}(a),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=a.createElement("div")).className="resize-triggers";const d=a.createElement("div");d.className="expand-trigger",d.appendChild(a.createElement("div"));const f=a.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),u(i),i.addEventListener("scroll",c,!0),n&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===r&&u(i)},i.__resizeTriggers__.addEventListener(n,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(a)}},removeResizeListener:function(e,t){if(d)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==u||null==c?(i=s,a=function(e){return l(e,20)}):(i=function([e,t]){u(e),s(t)},a=function(e){const t=c((function(){s(r),e()})),r=l((function(){u(t),e()}),20);return[t,r]});class f extends n.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:r}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},o=parseFloat(n.paddingLeft||"0"),i=parseFloat(n.paddingRight||"0"),a=parseFloat(n.paddingTop||"0"),s=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),u=l.height-a-s,c=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===u)&&(t||this.state.width===f&&this.state.scaledWidth===c)||(this.setState({height:d,width:f,scaledHeight:u,scaledWidth:c}),"function"==typeof r&&r({height:d,scaledHeight:u,scaledWidth:c,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const r=t.ownerDocument.defaultView.ResizeObserver;null!=r?(this._resizeObserver=new r((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=d(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:r,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:u={},tagName:c="div",...d}=this.props,{height:f,scaledHeight:h,scaledWidth:p,width:m}=this.state,v={overflow:"visible"},g={};let y=!1;return o||(0===f&&(y=!0),v.height=0,g.height=f,g.scaledHeight=h),i||(0===m&&(y=!0),v.width=0,g.width=m,g.scaledWidth=p),a&&(y=!1),(0,n.createElement)(c,{ref:this._setRef,style:{...v,...u},...d},!y&&e(g))}}},99906:(e,t,r)=>{"use strict";r.d(t,{Y1:()=>w});var n=r(58168);function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function s(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||a(n)&&a(o)))return!1;var n,o;return!0}const l=function(e,t){var r;void 0===t&&(t=s);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}};var u=r(4883),c="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function d(e){cancelAnimationFrame(e.id)}function f(e,t){var r=c();var n={id:requestAnimationFrame((function o(){c()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var h=-1;function p(e){if(void 0===e&&(e=!1),-1===h||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),h=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return h}var m=null;function v(e){if(void 0===e&&(e=!1),null===m||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?m="positive-descending":(t.scrollLeft=1,m=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),m}return m}var g=function(e,t){return e};function y(e){var t,r=e.getItemOffset,a=e.getEstimatedTotalSize,s=e.getItemSize,c=e.getOffsetForIndexAndAlignment,h=e.getStartIndexForOffset,m=e.getStopIndexForStartIndex,y=e.initInstanceProps,w=e.shouldResetStyleCacheOnItemSizeChange,S=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=y(n.props,o(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:o(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=l((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=l((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,i=o.direction,a=o.itemSize,l=o.layout,u=n._getItemStyleCache(w&&a,w&&l,w&&i);if(u.hasOwnProperty(e))t=u[e];else{var c=r(n.props,e,n._instanceProps),d=s(n.props,e,n._instanceProps),f="horizontal"===i||"horizontal"===l,h="rtl"===i,p=f?c:0;u[e]=t={position:"absolute",left:h?void 0:p,right:h?p:void 0,top:f?0:c,height:f?"100%":d,width:f?d:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=l((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(v()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&d(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=f(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}i(t,e),t.getDerivedStateFromProps=function(e,t){return b(e,t),S(e),null};var _=t.prototype;return _.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},_.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===o?s.scrollWidth>s.clientWidth?p():0:s.scrollHeight>s.clientHeight?p():0}this.scrollTo(c(this.props,e,t,i,this._instanceProps,a))},_.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(v()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&d(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,f=e.itemData,h=e.itemKey,p=void 0===h?g:h,m=e.layout,v=e.outerElementType,y=e.outerTagName,b=e.style,w=e.useIsScrolling,S=e.width,_=this.state.isScrolling,E="horizontal"===o||"horizontal"===m,T=E?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),C=x[0],O=x[1],R=[];if(d>0)for(var D=C;D<=O;D++)R.push((0,u.createElement)(t,{data:f,key:p(D,f),index:D,isScrolling:w?_:void 0,style:this._getItemStyle(D)}));var z=a(this.props,this._instanceProps);return(0,u.createElement)(v||y||"div",{className:r,onScroll:T,ref:this._outerRefSetter,style:(0,n.A)({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},(0,u.createElement)(l||c||"div",{children:R,ref:s,style:{height:E?"100%":z,pointerEvents:_?"none":void 0,width:E?z:"100%"}}))},_._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},_._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var s=h(this.props,a,this._instanceProps),l=m(this.props,s,a,this._instanceProps),u=o&&"backward"!==i?1:Math.max(1,r),c=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,s-u),Math.max(0,Math.min(t-1,l+c)),s,l]},t}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var b=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},w=y({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.itemCount,u=e.itemSize,c=e.layout,d=e.width,f="horizontal"===a||"horizontal"===c?d:s,h=Math.max(0,l*u-f),p=Math.min(h,t*u),m=Math.max(0,t*u-f+u+i);switch("smart"===r&&(r=n>=m-f&&n<=p+f?"auto":"center"),r){case"start":return p;case"end":return m;case"center":var v=Math.round(m+(p-m)/2);return v<Math.ceil(f/2)?0:v>h+Math.floor(f/2)?h:v;default:return n>=m&&n<=p?n:n<m?m:p}},getStartIndexForOffset:function(e,t){var r=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,r){var n=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,u=t*a,c="horizontal"===n||"horizontal"===s?l:o,d=Math.ceil((c+r-u)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}})},39182:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(4069);const o=(i=n.A,function(e,t){var r,n,o,a,s=(n=(r=i).deepEqual,o=r.empty,a=r.getIn,function(e,t){return function(r){for(var i=t||function(e){return a(e,"form")},s=i(r),l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];if(u&&u.length)return u.every((function(t){var r=a(s,e+".initial."+t),o=a(s,e+".values."+t);return n(r,o)}));var d=a(s,e+".initial")||o,f=a(s,e+".values")||d;return n(d,f)}})(e,t);return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!s.apply(void 0,[e].concat(r))}});var i},9396:(e,t,r)=>{"use strict";r.d(t,{qD:()=>L});var n=r(54070);function o(e,t,r){const n=function(e,t,r){return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,r.timeZone,r.locale);return"formatToParts"in n?function(e,t){const r=e.formatToParts(t);for(let e=r.length-1;e>=0;--e)if("timeZoneName"===r[e].type)return r[e].value;return}(n,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}(n,t)}function i(e,t){const r=function(e){if(!s[e]){const t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;s[e]=r?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return s[e]}(t);return"formatToParts"in r?function(e,t){try{const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const t=a[r[e].type];void 0!==t&&(n[t]=parseInt(r[e].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(r,e):function(e,t){const r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}(r,e)}const a={year:0,month:1,day:2,hour:3,minute:4,second:5};const s={};function l(e,t,r,n,o,i,a){const s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,o,i,a),s}const u=36e5,c=6e4,d={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function f(e,t,r){if(!e)return 0;let n,o,i=d.timezoneZ.exec(e);if(i)return 0;if(i=d.timezoneHH.exec(e),i)return n=parseInt(i[1],10),p(n)?-n*u:NaN;if(i=d.timezoneHHMM.exec(e),i){n=parseInt(i[2],10);const e=parseInt(i[3],10);return p(n,e)?(o=Math.abs(n)*u+e*c,"+"===i[1]?-o:o):NaN}if(function(e){if(m[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),m[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());const n=r?t:function(e){return l(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),o=h(n,e),i=r?o:function(e,t,r){const n=e.getTime();let o=n-t;const i=h(new Date(o),r);if(t===i)return t;o-=i-t;const a=h(new Date(o),r);if(i===a)return i;return Math.max(i,a)}(t,o,e);return-i}return NaN}function h(e,t){const r=i(e,t),n=l(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime();let o=e.getTime();const a=o%1e3;return o-=a>=0?a:1e3+a,n-o}function p(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}const m={};const v={X:function(e,t,r){const n=g(r.timeZone,e);if(0===n)return"Z";switch(t){case"X":return w(n);case"XXXX":case"XX":return b(n);default:return b(n,":")}},x:function(e,t,r){const n=g(r.timeZone,e);switch(t){case"x":return w(n);case"xxxx":case"xx":return b(n);default:return b(n,":")}},O:function(e,t,r){const n=g(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(0===i)return r+String(o);return r+String(o)+t+y(i,2)}(n,":");default:return"GMT"+b(n,":")}},z:function(e,t,r){switch(t){case"z":case"zz":case"zzz":return o("short",e,r);default:return o("long",e,r)}}};function g(e,t){const r=e?f(e,t,!0)/6e4:t?.getTimezoneOffset()??0;if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function y(e,t){const r=e<0?"-":"";let n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n}function b(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+y(Math.floor(n/60),2)+t+y(Math.floor(n%60),2)}function w(e,t){if(e%60==0){return(e>0?"-":"+")+y(Math.abs(e)/60,2)}return b(e,t)}function S(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const _=36e5,E=6e4,T=2,x={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function C(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);const r=null==t.additionalDigits?T:Number(t.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);const n=function(e){const t={};let r,n=x.dateTimePattern.exec(e);n?(t.date=n[1],r=n[3]):(n=x.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e));if(r){const e=x.timeZone.exec(r);e?(t.time=r.replace(e[1],""),t.timeZone=e[1].trim()):t.time=r}return t}(e),{year:o,restDateString:i}=function(e,t){if(e){const r=x.YYY[t],n=x.YYYYY[t];let o=x.YYYY.exec(e)||n.exec(e);if(o){const t=o[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(o=x.YY.exec(e)||r.exec(e),o){const t=o[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(n.date,r),a=function(e,t){if(null===t)return null;let r,n,o;if(!e||!e.length)return r=new Date(0),r.setUTCFullYear(t),r;let i=x.MM.exec(e);if(i)return r=new Date(0),n=parseInt(i[1],10)-1,A(t,n)?(r.setUTCFullYear(t,n),r):new Date(NaN);if(i=x.DDD.exec(e),i){r=new Date(0);const e=parseInt(i[1],10);return function(e,t){if(t<1)return!1;const r=z(e);if(r&&t>366)return!1;if(!r&&t>365)return!1;return!0}(t,e)?(r.setUTCFullYear(t,0,e),r):new Date(NaN)}if(i=x.MMDD.exec(e),i){r=new Date(0),n=parseInt(i[1],10)-1;const e=parseInt(i[2],10);return A(t,n,e)?(r.setUTCFullYear(t,n,e),r):new Date(NaN)}if(i=x.Www.exec(e),i)return o=parseInt(i[1],10)-1,M(o)?O(t,o):new Date(NaN);if(i=x.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const e=parseInt(i[2],10)-1;return M(o,e)?O(t,o,e):new Date(NaN)}return null}(i,o);if(null===a||isNaN(a.getTime()))return new Date(NaN);if(a){const e=a.getTime();let r,o=0;if(n.time&&(o=function(e){let t,r,n=x.HH.exec(e);if(n)return t=parseFloat(n[1].replace(",",".")),k(t)?t%24*_:NaN;if(n=x.HHMM.exec(e),n)return t=parseInt(n[1],10),r=parseFloat(n[2].replace(",",".")),k(t,r)?t%24*_+r*E:NaN;if(n=x.HHMMSS.exec(e),n){t=parseInt(n[1],10),r=parseInt(n[2],10);const e=parseFloat(n[3].replace(",","."));return k(t,r,e)?t%24*_+r*E+1e3*e:NaN}return null}(n.time),null===o||isNaN(o)))return new Date(NaN);if(n.timeZone||t.timeZone){if(r=f(n.timeZone||t.timeZone,new Date(e+o)),isNaN(r))return new Date(NaN)}else r=S(new Date(e+o)),r=S(new Date(e+o+r));return new Date(e+o+r)}return new Date(NaN)}function O(e,t,r){t=t||0,r=r||0;const n=new Date(0);n.setUTCFullYear(e,0,4);const o=7*t+r+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}const R=[31,28,31,30,31,30,31,31,30,31,30,31],D=[31,29,31,30,31,30,31,31,30,31,30,31];function z(e){return e%400==0||e%4==0&&e%100!=0}function A(e,t,r){if(t<0||t>11)return!1;if(null!=r){if(r<1)return!1;const n=z(e);if(n&&r>D[t])return!1;if(!n&&r>R[t])return!1}return!0}function M(e,t){return!(e<0||e>52)&&(null==t||!(t<0||t>6))}function k(e,t,r){return!(e<0||e>=25)&&((null==t||!(t<0||t>=60))&&(null==r||!(r<0||r>=60)))}const P=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function L(e,t,r,o){return function(e,t,r={}){const o=(t=String(t)).match(P);if(o){const n=C(r.originalDate||e,r);t=o.reduce((function(e,t){if("'"===t[0])return e;const o=e.indexOf(t),i="'"===e[o-1],a=e.replace(t,"'"+v[t[0]](n,t,r)+"'");return i?a.substring(0,o-1)+a.substring(o+1):a}),t)}return(0,n.GP)(e,t,r)}(function(e,t,r){const n=f(t,e=C(e,r),!0),o=new Date(e.getTime()-n),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}(e,t,{timeZone:(o={...o,timeZone:t,originalDate:e}).timeZone}),r,o)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[940],{56660:(e,n,t)=>{t.d(n,{A:()=>g});var r,o,i,a=t(72189),c=t.n(a),s=t(6199),l=t(26166),u=t(81576),d=t(64116),p=t(56375),f=t(74848),y=s.Ay.div.withConfig({displayName:"StyledErrorView"})(r||(r=c()(["\n width: 50dvw;\n max-width: 650px;\n padding: ",";\n text-align: center;\n margin: 20dvh auto auto;\n\n h1 {\n margin: 0 auto;\n }\n"])),l.A.space(1)),h=s.Ay.span.withConfig({displayName:"StyledIconWrapper"})(o||(o=c()(["\n color: ",";\n font-size: ",";\n"])),u.t7.color("signal.danger"),l.A.font(13.4));const g=function(e){var n=e.title,t=e.message;return(0,f.jsxs)(y,{children:[i||(i=(0,f.jsx)(h,{children:(0,f.jsx)(d.A,{icon:"times"})})),(0,f.jsx)(p.Ay.H1,{children:n}),(0,f.jsx)(p.Ay.Span,{children:t})]})}},33940:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Zi});var r=t(38798),o=t(71468),i=t(10822),a=t(18601),c=t(4883),s=t.n(c),l=t(68154),u=t(88208),d=t(27948),p=t(22056),f=t.n(p),y=t(58065),h=t(30632),g=t(26396),m=t.n(g),b=t(5556),v=t.n(b),x=t(97699),j=t(12199),O=t(60115),A=t(96727),w=t(54317),S=t(78636),P=t(55588),k=t(25206),E=t(63501),C=t(74848);function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var D="login",N=["loginSuccess","register","resize"],M={username:E.b.USERNAME_FORM,"password-request":E.b.PASSWORD_REQUEST,login:E.b.LOGIN_FORM},I=function(e,n,t,r,o){var i=M[n.entryPage]||E.b.LOGIN_FORM,a=[P.ev(!1),P.aE(!1),S.P(n.username||""),S.ah(i),S.yd(i)],c=!!n.showTitle,s=(0,C.jsx)(w.A,{showTitle:c}),l=h.A.createStore(k.A,k.a,n,D);return O.A.setInputEnvs(n),j.A.addToStore(l,(function(e){return h.A.getEvents(N,e.input)})),x.A.addToStore(l,!0,["console","remote"]),h.A.createApp(D,s,l,{input:n,actions:a,publicPath:r,textResourceModules:["login"],customTheme:o})},B=function(e){return h.A.useApp({initApp:I,props:e,packageName:D,externalEvents:N}).component};B.propTypes=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({showTitle:v().bool,locale:v().string,entryPage:v().oneOf(["username","login","password-request"]),username:v().string,setLocale:v().func,backendUrl:v().string,redirectUrl:v().string,appContext:A.A.propTypes},N.reduce((function(e,n){return e[n]=v().func,e}),{}));var R=t(71852),L="login";const _=B;h.A.createBundleableApp(L,I,B),h.A.createBundleableApp("password-update",R.q,R.S);var W=t(11353);const U=t.p+"imgs/tocco_white.5c80050a55945844e89ffaf71395e64b.svg";var F=t(72189),H=t.n(F),z=t(6199),V=t(81576),q=t(28888),K=t(26166),G=t(5016);const J=t.p+"imgs/tocco-circle.7ab925bf473f813493f00f069ed9746e.svg";var Y,Q,X,Z,$,ee,ne,te,re,oe,ie,ae,ce,se,le=(0,z.DU)(Y||(Y=H()(["\n @media (max-width: 1024px) {\n body {\n overflow: auto !important;\n }\n }\n"]))),ue=z.Ay.div.withConfig({displayName:"StyledLogin"})(Q||(Q=H()(["\n height: 100%;\n background-image: url(",");\n background-color: ",";\n background-repeat: no-repeat;\n background-size: 61vw;\n background-position-y: -25vw;\n background-position-x: -41vw;\n overflow-y: auto;\n\n .tocco-sso-login {\n display: flex;\n justify-content: space-between;\n margin-bottom: 1.8rem;\n }\n\n @media (max-width: 1024px) {\n background-size: 2000px;\n background-position: 50% -1850px;\n }\n\n @media (max-width: 425px) {\n background-position: 50% -1890px;\n }\n"])),J,V.t7.color("paper")),de=(0,z.Ay)(q.rd).withConfig({displayName:"StyledHeadingLogin"})(X||(X=H()(["\n && {\n font-size: ",";\n }\n"])),K.A.font(11)),pe=(0,z.Ay)(G.oY).withConfig({displayName:"StyledSpanLogin"})(Z||(Z=H()(["\n && {\n text-align: center;\n font-size: ",";\n display: inline-block;\n width: 100%;\n margin: 1rem 0 1.8rem;\n }\n"])),K.A.font(1.3)),fe=z.Ay.div.withConfig({displayName:"StyledLoginWrapper"})($||($=H()(["\n max-width: 410px;\n margin: 6% 5% 0 28%;\n\n && {\n .tocco-login * {\n font-size: ",";\n }\n\n @media (max-width: 1024px) {\n margin: 14rem auto 0;\n padding-left: 2rem;\n padding-right: 2rem;\n }\n\n @media (max-width: 425px) {\n margin-top: 12rem;\n }\n }\n"])),K.A.font(1.3)),ye=z.Ay.img.withConfig({displayName:"StyledSloganImg"})(ee||(ee=H()(["\n transform: rotate(270deg);\n position: relative;\n top: 12.5vw;\n left: -8%;\n width: 25vw;\n\n @media (max-width: 1024px) {\n display: none;\n }\n"]))),he=z.Ay.img.withConfig({displayName:"StyledMobileSloganImg"})(ne||(ne=H()(["\n display: none;\n max-width: 400px;\n width: 95%;\n height: auto;\n position: relative;\n margin: auto;\n top: 45px;\n\n @media (max-width: 1024px) {\n display: block;\n }\n\n @media (max-width: 425px) {\n max-width: 280px;\n }\n"]))),ge=(0,z.Ay)(G.oY).withConfig({displayName:"StyledSsoMsg"})(te||(te=H()(["\n && {\n display: inline-block;\n text-align: center;\n font-weight: ",";\n width: 100%;\n color: ",";\n }\n"])),V.t7.fontWeight("bold"),V.t7.color("signal.info"));const me=function(e){var n,t=e.ssoAvailable,r=e.loginSuccessful,o=e.checkSsoAvailable,i=(0,c.useState)(!1),a=f()(i,2),s=a[0],l=a[1];(0,c.useEffect)((function(){o()}),[o]);var u=function(e){var n=e.successful,t=e.registration;!n&&t&&l(!0)},d=function(){return(0,C.jsxs)(C.Fragment,{children:[n||(n=(0,C.jsx)(W.Ay,{ssoLoginEndpoint:"/sso",loginCompleted:u,autoLogin:!0})),s&&(re||(re=(0,C.jsx)(ge,{breakWords:!0,children:(0,C.jsx)(y.A,{id:"client.sso-login.registration"})}))),oe||(oe=(0,C.jsx)(pe,{children:(0,C.jsx)(y.A,{id:"client.admin.loginChoice"})}))]})};return(0,C.jsxs)(C.Fragment,{children:[ie||(ie=(0,C.jsx)(le,{})),(0,C.jsxs)(ue,{children:[ae||(ae=(0,C.jsx)(he,{src:U,alt:"Tocco Slogan",height:"42.3",width:"460"})),ce||(ce=(0,C.jsx)(ye,{src:U,alt:"Tocco Slogan",height:"42.3",width:"460"})),(0,C.jsxs)(fe,{children:[se||(se=(0,C.jsx)(de,{children:(0,C.jsx)(y.A,{id:"client.admin.welcomeTitle"})})),t&&(0,C.jsx)(d,{}),(0,C.jsx)(_,{loginSuccess:function(e){var n=e.timeout;r(n)},showTitle:!1})]})]})]})};var be={loginSuccessful:d.ox,checkSsoAvailable:d.Dp};const ve=(0,o.Ng)((function(e,n){return{ssoAvailable:e.session.ssoAvailable}}),be)((0,r.Ay)(me));var xe=t(24096),je=t(74978),Oe=t(17276),Ae=t(47767),we=t(84976),Se=t(18987),Pe=t(12956),ke=t(82602),Ee=t(25204);const Ce=function(){var e=Pe.A.fromQueryString(window.location.search),n=e.openidStatus,t=e.openidProvider;"successful"===n&&t&&(Se.A.set(Ee.v,t,{expires:365}),(0,ke.E9)())};var Te,De=t(77008),Ne=t(56660),Me=t(56375),Ie=t(62764),Be=t(5975),Re=z.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Te||(Te=H()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),K.A.space(.5),Be.Ay),Le=t(23076);const _e=function(e){var n=e.content;return(0,C.jsx)(Ie.A,{icon:"copy",onClick:function(){Le.A.copyToClipboard(n)},iconOnly:!0,withoutBackground:!0})};var We,Ue,Fe;const He=function(e){var n,t=e.fireExternalEvent,r=e.url,o=e.username,i=e.apiKey,a=e.intl;return(0,C.jsxs)(u.A,{required:[r,o,i],children:[We||(We=(0,C.jsx)(Me.Ay.B,{children:(0,C.jsx)(y.A,{id:"client.outlook-add-in-connector.url"})})),(0,C.jsxs)(Me.Ay.P,{children:[r," ",(0,C.jsx)(_e,{content:r})]}),Ue||(Ue=(0,C.jsx)(Me.Ay.B,{children:(0,C.jsx)(y.A,{id:"client.outlook-add-in-connector.username"})})),(0,C.jsxs)(Me.Ay.P,{children:[o," ",(0,C.jsx)(_e,{content:o})]}),Fe||(Fe=(0,C.jsx)(Me.Ay.B,{children:(0,C.jsx)(y.A,{id:"client.outlook-add-in-connector.apiKey"})})),(0,C.jsxs)(Me.Ay.P,{children:[i," ",(0,C.jsx)(_e,{content:i})]}),(0,C.jsx)(Re,{children:(0,C.jsx)(Ie.A,{label:(n="client.outlook-add-in-connector.okButton",a.formatMessage({id:n})),look:"raised",onClick:function(){t("onSuccess")}})})]})};var ze={fireExternalEvent:j.A.fireExternalEvent};const Ve=(0,o.Ng)((function(e){return{url:e.outlookAddInConnector.url,username:e.outlookAddInConnector.username,apiKey:e.outlookAddInConnector.apiKey}}),ze)((0,r.Ay)(He));var qe="outlook-add-in-connector/SET_URL",Ke="outlook-add-in-connector/SET_USERNAME",Ge="outlook-add-in-connector/SET_API_KEY",Je="outlook-add-in-connector/SHOW_RESULT",Ye="outlook-add-in-connector/REQUEST_RESULT",Qe=function(e){return{type:qe,payload:{url:e}}},Xe=function(e){return{type:Ke,payload:{username:e}}},Ze=function(e){return{type:Ge,payload:{apiKey:e}}},$e=function(e){return{type:Je,payload:{showResult:e}}},en=t(82064);const nn=function(e){var n=e.requestResult,t=e.intl;(0,en.L)(n);var r=function(e){return t.formatMessage({id:e})};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Me.Ay.P,{children:(0,C.jsx)("span",{dangerouslySetInnerHTML:{__html:r("client.outlook-add-in-connector.info")}})}),(0,C.jsx)(Re,{children:(0,C.jsx)(Ie.A,{label:r("client.outlook-add-in-connector.nextButton"),ink:"primary",look:"raised",onClick:n})})]})};var tn={requestResult:function(){return{type:Ye}}};const rn=(0,o.Ng)(null,tn)((0,r.Ay)(nn));var on,an;const cn=function(e){return e.showResult?on||(on=(0,C.jsx)(Ve,{})):an||(an=(0,C.jsx)(rn,{}))};const sn=(0,o.Ng)((function(e){return{showResult:e.outlookAddInConnector.showResult}}),{})((0,r.Ay)(cn));var ln=t(37954),un=m()(m()(m()(m()({},qe,ln.A.singleTransferReducer("url")),Ke,ln.A.singleTransferReducer("username")),Ge,ln.A.singleTransferReducer("apiKey")),Je,ln.A.singleTransferReducer("showResult")),dn={url:null,username:null,apiKey:null,showResult:!1};const pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dn,n=arguments.length>1?arguments[1]:void 0,t=un[n.type];return t?t(e,n):e};var fn=t(92207),yn=t.n(fn),hn=t(43786),gn=t(70661),mn=yn().mark(vn),bn=yn().mark(xn);function vn(){return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,hn.Q7)([(0,hn.p8)(Ye,xn)]);case 2:case"end":return e.stop()}}),mn)}function xn(){var e;return yn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,hn.yJ)($e(!0));case 2:return n.next=4,(0,hn.yJ)(Qe(window.location.origin));case 4:return n.prev=4,n.next=7,(0,hn.T1)(gn.A.requestSaga,"officeintegration/apiKey",{method:"POST"});case 7:return e=n.sent,n.next=10,(0,hn.yJ)(Xe(e.body.username));case 10:return n.next=12,(0,hn.yJ)(Ze(e.body.apiKey));case 12:n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(4),n.next=18,(0,hn.yJ)(j.A.fireExternalEvent("onError"));case 18:case"end":return n.stop()}}),bn,null,[[4,14]])}const jn={outlookAddInConnector:pn};var On,An=[vn];function wn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Sn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wn(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pn="outlook-add-in-connector",kn=["onSuccess"],En=function(e,n,t,r){var o=On||(On=(0,C.jsx)(sn,{})),i=h.A.createStore(jn,An,n,Pn);return j.A.addToStore(i,(function(e){return h.A.getEvents(kn,e.input)})),h.A.createApp(Pn,o,i,{input:n,events:t,actions:[],publicPath:r,textResourceModules:["component","common",Pn]})},Cn=function(e){return h.A.useApp({initApp:En,props:e,packageName:Pn,externalEvents:kn}).component};Cn.propTypes=Sn({},kn.reduce((function(e,n){return Sn(Sn({},e),{},m()({},n,v().func))}),{}));const Tn=Cn;var Dn,Nn,Mn,In,Bn,Rn=t(99503),Ln=t(73621),_n=z.Ay.div.withConfig({displayName:"StyledBurgerButton"})(Dn||(Dn=H()(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; /* higher than StyledHeader to enable interactions */\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),V.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,z.AH)(Nn||(Nn=H()(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));const Wn=(0,r.Ay)((function(e){var n,t=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,C.jsxs)(_n,{id:"burger-button",isOpen:t,"aria-label":(n="client.component.burgerButton.Label",r.formatMessage({id:n})),onClick:o,children:[Mn||(Mn=(0,C.jsx)("span",{})),In||(In=(0,C.jsx)("span",{})),Bn||(Bn=(0,C.jsx)("span",{}))]})}));var Un,Fn=t(15777),Hn=t(64116),zn=t(77271),Vn=t(60295),qn=t(79455);const Kn=(0,z.Ay)(we.N_).withConfig({shouldForwardProp:Vn.A.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(Un||(Un=H()(["\n text-decoration: none;\n\n &:visited {\n color: ","; /* nice2 reset */\n }\n\n &:hover,\n &:focus {\n text-decoration: none; /* nice2 reset */\n }\n ","\n"])),V.t7.color("text"),qn.i);function Gn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Jn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Gn(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Yn=s().forwardRef((function(e,n){var t=e.aria,r=e.icon,o=e.ink,i=e.label,a=e.iconOnly,c=e.children,s=(0,Fn.j)().labelVisibility;return(0,C.jsxs)(Kn,Jn(Jn(Jn({ref:n},t),e),{},{ink:o||zn.A.ink.BASE,"data-cy":e["data-cy"],title:i,labelVisibility:s,withoutBackground:!1,children:[r&&(0,C.jsx)(Hn.A,{icon:r}),!a&&i?(0,C.jsx)(Be.Bd,{children:i}):c||"​"]}))}));var Qn=t(94674),Xn=t(50098),Zn=t(46703),$n=t(76419),et=t(54070),nt=t(44905);const tt=t.p+"imgs/tocco_red.cb14a8eb6c3356bd83b114c13267546d.svg";var rt,ot,it,at,ct,st,lt,ut,dt,pt,ft,yt,ht,gt,mt,bt,vt,xt=z.Ay.div.withConfig({displayName:"StyledFormattedMessageWrapper"})(rt||(rt=H()(["\n font-size: ",";\n margin-top: ",";\n"])),K.A.font(-1.5),K.A.space(.5)),jt=z.Ay.div.withConfig({displayName:"StyledBlockWrapper"})(ot||(ot=H()(["\n margin-top: ",";\n"])),K.A.space(.5)),Ot=z.Ay.img.withConfig({displayName:"StyledLogo"})(it||(it=H()(["\n margin-top: ",";\n width: 80%;\n height: auto;\n"])),K.A.space(1));const At=function(e){var n=e.niceVersion,r=e.niceRevision,o=e.buildTimestamp,i=e.intl,a=function(e){return i.formatMessage({id:e})},c=t(76255),s=(0,et.GP)(new Date(o),"dd.MM.yyyy HH:mm");return(0,C.jsxs)(Me.Ay.Span,{children:[at||(at=(0,C.jsx)(Ot,{src:tt,height:"53.34",width:"580",alt:"tocco-logo"})),(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:a("client.admin.tocco.address")}}),(0,C.jsxs)(Me.Ay.P,{children:[(0,C.jsx)(nt.A,{href:a("client.admin.tocco.homepage"),neutral:!0,target:"_blank",children:ct||(ct=(0,C.jsx)(y.A,{id:"client.admin.tocco.homepage"}))}),st||(st=(0,C.jsx)("br",{})),(0,C.jsx)(nt.A,{href:"mailto:"+a("client.admin.tocco.email"),neutral:!0,target:"_blank",children:lt||(lt=(0,C.jsx)(y.A,{id:"client.admin.tocco.email"}))}),ut||(ut=(0,C.jsx)("br",{})),(0,C.jsx)(nt.A,{href:"tel:"+a("client.admin.tocco.phone"),neutral:!0,target:"_blank",children:dt||(dt=(0,C.jsx)(y.A,{id:"client.admin.tocco.phone"}))})]}),(0,C.jsx)(jt,{children:(0,C.jsxs)(Me.Ay.P,{children:[pt||(pt=(0,C.jsx)(y.A,{id:"client.admin.about.versionLabel"})),":  ",n,ft||(ft=(0,C.jsx)("br",{})),yt||(yt=(0,C.jsx)(y.A,{id:"client.admin.about.revisionLabel"})),":  ",r,ht||(ht=(0,C.jsx)("br",{})),gt||(gt=(0,C.jsx)(y.A,{id:"client.admin.about.clientVersionLabel"})),":  ",c.version,mt||(mt=(0,C.jsx)("br",{})),bt||(bt=(0,C.jsx)(y.A,{id:"client.admin.about.buildTimeLabel"})),":  ",s]})}),vt||(vt=(0,C.jsx)(xt,{children:(0,C.jsx)(y.A,{id:"client.admin.copyright"})}))]})};const wt=(0,o.Ng)((function(e){return{niceVersion:e.preferences.serverSettings.niceVersion,niceRevision:e.preferences.serverSettings.niceRevision,buildTimestamp:e.preferences.serverSettings.buildTimestamp}}),null)((0,r.Ay)(At));var St,Pt,kt,Et,Ct,Tt,Dt,Nt,Mt,It=t(34675),Bt=t(34743),Rt=t(45302),Lt=t(44518),_t=t(66789),Wt=t(82237),Ut=t(67821),Ft=z.Ay.div.withConfig({displayName:"StyledBackgroundCover"})(St||(St=H()(["\n position: absolute;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n height: 40px;\n width: 100%;\n background-color: ",";\n"])),V.t7.color("paper")),Ht=z.Ay.div.withConfig({displayName:"StyledHeader"})(Pt||(Pt=H()(["\n grid-area: header;\n width: calc(100vw - 50px); /* absolute width necessary for FireFox */\n height: 40px;\n padding-right: 10px;\n margin-left: 40px;\n position: relative;\n z-index: 3; /* higher than StyledBackgroundCover to enable button interactions */\n"]))),zt=z.Ay.div.withConfig({displayName:"StyledConfig"})(kt||(kt=H()(["\n z-index: 2;\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n padding: 7px;\n"]))),Vt=z.Ay.div.withConfig({displayName:"StyledBackgroundLogo"})(Et||(Et=H()(["\n position: absolute;\n z-index: 3; /* higher than StyledBackgroundCover to prevent coverage */\n height: 40px;\n width: 100%;\n background-color: ",";\n mask-image: url(",");\n mask-repeat: no-repeat;\n mask-position: -300px -900px;\n"])),(function(e){var n=e.runEnv,t=e.theme;return"PRODUCTION"===n?t.colors.backgroundToccoCircleProduction:t.colors.backgroundToccoCircleTest}),J),qt=z.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Ct||(Ct=H()(["\n width: 350px;\n z-index: 1001; /* higher than bm-overlay */\n box-shadow: 0 0 5px rgba(0 0 0 / 30%);\n border-radius: ",";\n"])),V.t7.radii("menu")),Kt=z.Ay.span.withConfig({displayName:"StyledNotificationBellWrapper"})(Tt||(Tt=H()(["\n position: relative;\n"]))),Gt=z.Ay.span.withConfig({displayName:"StyledRedDot"})(Dt||(Dt=H()(["\n width: 7px;\n height: 7px;\n position: absolute;\n top: 3px;\n left: 21.5px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),V.t7.color("secondaryLight")),Jt=((0,z.Ay)(Wt.A).withConfig({displayName:"StyledHeaderLink"})(Nt||(Nt=H()(["\n display: inline-block;\n padding: "," ",";\n"])),K.A.space(-2.1),K.A.space(0)),z.Ay.span.withConfig({displayName:"StyledBallMenuWrapper"})(Mt||(Mt=H()(["\n display: flex;\n margin-top: 2px;\n gap: ",";\n\n "," {\n font-size: ",";\n }\n"])),K.A.space(-.5),Ut.A,K.A.font(1)));const Yt=function(e){var n=e.unreadNotificationKeys,t=e.innerRef;return n.length>0&&(0,C.jsx)(Gt,{ref:t})};const Qt=(0,o.Ng)((function(e){return{unreadNotificationKeys:e.notification.center.unreadNotificationKeys}}),null)((0,r.Ay)(Yt));var Xt;function Zt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Zt(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Zt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const er=(0,r.Ay)((function(e){var n,t=e.intl,r=(0,c.useRef)(null),o=(0,c.useState)(!1),a=f()(o,2),s=a[0],l=a[1],u=(0,It.we)({open:s,onOpenChange:l,middleware:[(0,Bt.BN)({padding:35}),(0,Bt.cY)(3)],whileElementsMounted:Rt.ll}),d=u.refs,p=u.floatingStyles,y=u.context,h=(0,It.kp)(y),g=(0,It.s9)(y),m=(0,It.bv)([h,g]),b=m.getReferenceProps,v=m.getFloatingProps;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(Kt,{title:(n="client.admin.notification.title",t.formatMessage({id:n})),children:[(0,C.jsx)(Xn.A,$t($t({icon:"bell",ref:d.setReference},b()),{},{"data-cy":"btn-notification"})),(0,C.jsx)("span",{ref:r,children:Xt||(Xt=(0,C.jsx)(Qt,{}))})]}),s&&(0,C.jsx)(It.XF,{children:(0,C.jsx)(qt,$t($t({ref:d.setFloating,style:p},v()),{},{className:Lt.e,children:(0,C.jsx)(i.A.NotificationCenter,{navigationStrategy:(0,_t.Ay)()})}))})]})}));var nr,tr,rr,or,ir,ar,cr,sr,lr,ur,dr,pr;const fr=function(e){var n,t,r,o,i,a,c=e.username,s=e.currentBusinessUnit,l=e.businessUnits,u=e.loadBusinessUnits,d=e.changeBusinessUnit,p=e.doLogout,f=e.resetUserPreferences,h=e.runEnv,g=e.niceVersion,m=e.openModalComponent,b=e.removeModalComponent,v=e.info,x=e.intl,j=e.setMenuOpen,O=e.menuOpen,A=e.themeType,w=e.setThemeType,S=e.saveUserPreferences,P=e.hasOutlookAddInModule,k=function(){var e="dark"===A?"light":"dark";w(e),$n.A.addLongTerm("admin","theme",e),S({"admin.theme":e})},E=function(){0===l.length&&u()},T=function(){var e,n=function(){b("passwordUpdateModal"),v("success","client.login.passwordUpdate.success")};m("passwordUpdateModal","client.login.passwordUpdate.title",null,(function(){return e||(e=(0,C.jsx)(R.S,{username:c,success:n}))}),!0)},D=function(){var e,n=function(){b("outlookAddInConnector")};m("outlookAddInConnector","client.actions.outlook-add-in-connector.title",null,(function(){return e||(e=(0,C.jsx)(Tn,{onSuccess:n}))}),!0)},N=function(){var e,n=function(){b("twoFactorConnector")};m("twoFactorConnector","client.actions.two-factor-connector.title",null,(function(){return e||(e=(0,C.jsx)(Rn.A,{onSuccess:n}))}),!0)},M=l.map((function(e){return(0,C.jsx)(Ln.A,{disabled:e.id===s.id,onClick:function(){return d(e.id)},children:e.label},"buMenu-".concat(e.id))})),I=function(){return j(!1)},B=function(e){return x.formatMessage({id:e})},L=g&&(0,C.jsx)(Ln.A,{onClick:function(){window.open(function(e){var n=e.split(".").map((function(e,n){return 0===n?e:e.padStart(2,"0")})).join("");return"https://".concat(n,".docs.tocco.ch/")}(g),"_blank")},"data-cy":"menuitem-documentation",children:nr||(nr=(0,C.jsx)(y.A,{id:"client.admin.menu.doc"}))}),_=(0,C.jsx)(Ln.A,{onClick:function(){window.open("https://sysdoc.tocco.ch","_blank")},"data-cy":"menuitem-sysdoc",children:tr||(tr=(0,C.jsx)(y.A,{id:"client.admin.menu.sysdoc"}))}),W=(0,C.jsx)(Ln.A,{onClick:function(){window.open("/nice2/swagger","_blank")},"data-cy":"menuitem-rest-documentation",children:rr||(rr=(0,C.jsx)(y.A,{id:"client.admin.menu.restDoc"}))}),U=(0,C.jsx)(Ln.A,{onClick:function(){m("about",null,null,(function(){return or||(or=(0,C.jsx)(wt,{}))}),!0)},"data-cy":"menuitem-about",children:ir||(ir=(0,C.jsx)(y.A,{id:"client.admin.menu.aboutToccoTitle"}))});return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Wn,{isOpen:O,toggleMenu:function(){j(!O)}}),(0,C.jsx)(Vt,{runEnv:h}),ar||(ar=(0,C.jsx)(Ft,{})),(0,C.jsx)(Ht,{children:(0,C.jsx)(Fn.Ay,{children:function(e){return(0,C.jsxs)(zt,{ref:e,children:[(0,C.jsx)(Yn,{to:"/dashboard/reload",onClick:I,icon:"house-blank",label:B("client.admin.dashboard")}),(0,C.jsx)(Qn.A,{label:s.label,onOpen:E,icon:"suitcase",children:M}),(0,C.jsxs)(Qn.A,{label:c,icon:"user",buttonProps:{"data-cy":"btn-user"},children:[n||(n=(0,C.jsx)(Ln.A,{disabled:!0,children:c})),t||(t=(0,C.jsx)(Ln.A,{onClick:T,"data-cy":"menuitem-password-update",children:cr||(cr=(0,C.jsx)(y.A,{id:"client.admin.menu.passwordUpdate"}))})),P&&(r||(r=(0,C.jsx)(Ln.A,{onClick:D,"data-cy":"menuitem-outlook-add-in-connector",children:sr||(sr=(0,C.jsx)(y.A,{id:"client.admin.menu.outlookAddInConnector"}))}))),o||(o=(0,C.jsx)(Ln.A,{onClick:N,"data-cy":"menuitem-two-factor-connector",children:lr||(lr=(0,C.jsx)(y.A,{id:"client.admin.menu.twoFactorConnector"}))})),i||(i=(0,C.jsx)(Ln.A,{onClick:f,"data-cy":"menuitem-reset-preferences",children:ur||(ur=(0,C.jsx)(y.A,{id:"client.admin.menu.resetPreferences"}))})),a||(a=(0,C.jsx)(Ln.A,{onClick:p,"data-cy":"menuitem-logout",children:dr||(dr=(0,C.jsx)(y.A,{id:"client.admin.menu.logout"}))}))]}),(0,C.jsxs)(Jt,{children:[(0,C.jsx)(Xn.A,{icon:"dark"===A?"sun-bright":"moon",onClick:k,title:B("dark"===A?"client.admin.header.lightmode":"client.admin.header.darkmode")}),(0,C.jsxs)(Zn.A,{buttonProps:{icon:"question-circle",title:B("client.admin.header.help"),"data-cy":"btn-helpcenter"},children:[L,_,W,U]}),pr||(pr=(0,C.jsx)(er,{}))]})]})}})})]})};var yr={doLogout:d.yb,resetUserPreferences:je.nW,loadBusinessUnits:d.aP,changeBusinessUnit:d.R,openModalComponent:i.A.modal,removeModalComponent:i.A.removeModal,info:i.A.toaster,setMenuOpen:xe.cV,setThemeType:h.A.setThemeType,saveUserPreferences:je.bM};const hr=(0,o.Ng)((function(e,n){return{username:e.session.username,currentBusinessUnit:e.session.currentBusinessUnit,businessUnits:e.session.businessUnits,runEnv:e.preferences.serverSettings.runEnv,niceVersion:e.preferences.serverSettings.niceVersion,themeType:e.theme.themeType,hasOutlookAddInModule:e.session.hasOutlookAddInModule}}),yr)((0,r.Ay)(fr));var gr=t(9941),mr=t(53773);function br(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}const vr=function(e){var n=(0,o.Pj)(),r=(0,c.useMemo)((function(){return mr.A.loadRoute(n,{},(function(){return Promise.all([t.e(466),t.e(789)]).then(t.bind(t,92789))}),"docs")}),[n]);return(0,C.jsx)(r,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?br(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):br(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))};var xr=t(90179),jr=t.n(xr),Or=t(42194),Ar=t.n(Or);function wr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var Sr=["location.key","location.search","location.hash"];function Pr(e,n){var t=Le.A.difference(e,n),r=Ar()(jr()(t,Sr),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length}const kr=(0,c.memo)((function(e){return(0,C.jsx)(o.ty.Consumer,{children:function(n){var r=n.store,o=mr.A.loadRoute(r,{},(function(){return Promise.all([t.e(466),t.e(123),t.e(401)]).then(t.bind(t,15635))}));return(0,C.jsx)(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wr(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))}})}),Pr);function Er(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}const Cr=function(e){var n=(0,o.Pj)(),r=(0,c.useMemo)((function(){return mr.A.loadRoute(n,{},(function(){return t.e(350).then(t.bind(t,84350))}),"entityModel")}),[n]);return(0,C.jsx)(r,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Er(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Er(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))};function Tr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}const Dr=function(e){var n=(0,o.Pj)(),r=(0,c.useMemo)((function(){return mr.A.loadRoute(n,{},(function(){return Promise.all([t.e(424),t.e(348)]).then(t.bind(t,55348))}),"history")}),[n]);return(0,C.jsx)(r,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Tr(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))};var Nr;const Mr=function(e){return Nr||(Nr=(0,C.jsx)(Me.Ay.H2,{children:"Settings"}))};var Ir,Br,Rr,Lr,_r,Wr,Ur,Fr,Hr=t(21259),zr=t.n(Hr),Vr=t(97481),qr=t(93575),Kr=t(85431),Gr=z.Ay.div.withConfig({displayName:"StyledMenuEntry"})(Ir||(Ir=H()(["\n ","\n position: relative;\n\n && {\n padding-left: ",";\n line-height: ",";\n }\n ","\n"])),(0,Kr.A)(),(function(e){return 0===e.level?"0":K.A.space(.4)}),V.t7.lineHeight("light"),(function(e){return 0===e.childrenCount&&"margin-bottom: 0 !important"})),Jr=z.Ay.div.withConfig({displayName:"StyledMenuEntryWrapper"})(Br||(Br=H()(["\n margin-bottom: ",";\n margin-top: ",";\n\n > div {\n margin-bottom: ",";\n }\n"])),K.A.space(.6),K.A.space(.6),K.A.space(-1.25)),Yr=z.Ay.div.withConfig({displayName:"StyledExtendedSearchWrapper"})(Rr||(Rr=H()(["\n margin-top: -",";\n"])),K.A.space(.6)),Qr=z.Ay.div.withConfig({displayName:"StyledTitle"})(Lr||(Lr=H()(["\n && {\n ","\n font-weight: ",";\n }\n"])),(0,Kr.A)(),V.t7.fontWeight("bold")),Xr=z.Ay.div.withConfig({displayName:"StyledMenuItemsWrapper"})(_r||(_r=H()(["\n position: relative;\n left: calc(1 * ","); /* level one of indentation */\n max-width: 95%;\n"])),K.A.space(.75)),Zr=z.Ay.div.withConfig({displayName:"StyledNoSearchResultsTxt"})(Wr||(Wr=H()(["\n ","\n font-style: italic;\n"])),(0,Kr.A)()),$r=z.Ay.div.withConfig({displayName:"StyledIconTitleWrapper"})(Ur||(Ur=H()(["\n position: relative;\n margin-bottom: ",";\n margin-top: ",";\n margin-left: ",";\n"])),K.A.space(-1.2),K.A.space(.8),K.A.space(.8)),eo=z.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Fr||(Fr=H()(["\n position: absolute;\n font-size: ",";\n left: -",";\n color: ","; /* nice2 reset */\n"])),K.A.font(2),K.A.space(1),V.t7.color("text"));function no(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function to(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?no(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):no(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ro=function(e){var n,t,r=e.item,o=e.menuTreePath,i=void 0===o?"":o,a=e.typeMapping,c=a[r.menuType];if(!c)return null;var s=c.component,l=c.childrenWrapperComponent,u=null===(n=r.children)||void 0===n?void 0:n.map((function(e){return(0,C.jsx)(ro,{item:e,typeMapping:a,menuTreePath:"".concat(i,".").concat(e.name)},e.name)}));return(0,C.jsxs)(Gr,{level:r.level,childrenCount:(null===(t=r.children)||void 0===t?void 0:t.length)||0,"data-cy":"admin-menuitem-".concat(r.name),children:[(0,C.jsx)(s,to({item:r,menuTreePath:i},c.props)),(null==u?void 0:u.length)>0&&(0,C.jsx)(l,to(to({item:r,menuTreePath:i},c.props),{},{children:u}))]})};const oo=ro;var io,ao,co=function(e){return"entity-explorer"===e.menuType?"".concat(e.name,"_").concat(e.entity):e.name},so=function(e){var n=e.items,t=e.extendedSearchItems,r=e.searchFilter,o=e.typeMapping;if(e.requireSearch&&!r)return null;if(!n||0===n.length)return null;var i=(0,qr.xH)(n,r,o),a=t?(0,qr.xH)(t,r,o):[],c=i.map((function(e){return(0,C.jsx)(oo,{item:e,typeMapping:o,menuTreePath:e.name},co(e))})),s=a.map((function(e){return(0,C.jsx)(oo,{item:e,typeMapping:o,menuTreePath:e.name},co(e))})),l=r&&0===i.length,u=a.length>0,d=(0,C.jsxs)(Yr,{"data-cy":"extended-search-wrapper",children:[io||(io=(0,C.jsx)(Zr,{children:(0,C.jsx)(y.A,{id:"client.admin.navigation.noResults"})})),u&&(0,C.jsxs)(C.Fragment,{children:[ao||(ao=(0,C.jsxs)($r,{children:[(0,C.jsx)(eo,{children:(0,C.jsx)(Hn.A,{icon:"lightbulb-exclamation"})}),(0,C.jsx)(Qr,{children:(0,C.jsx)(y.A,{id:"client.admin.navigation.moreResults"})})]})),(0,C.jsx)(Xr,{children:s})]})]});return(0,C.jsxs)(Jr,{"data-cy":"menu-entry-wrapper",children:[c,l&&d]})};const lo=s().memo(so);var uo,po,fo,yo,ho,go,mo,bo,vo,xo,jo=t(58156),Oo=t.n(jo),Ao=function(e,n){var t=n.canCollapse,r=n.preferencesPrefix,o=n.menuTreePath;return t?!Oo()(e.preferences.userPreferences,(0,qr.rV)(r,o),!0):void 0},wo=V.t7.color("secondaryLight"),So=(0,z.Ay)(we.N_).withConfig({displayName:"StyledMenuLink"})(uo||(uo=H()(["\n display: block;\n width: 100%;\n color: ",";\n text-decoration: none;\n\n &:hover {\n text-decoration: none; /* nice2 reset */\n }\n\n &:focus {\n outline: none;\n text-decoration: none; /* nice2 reset */\n color: ",";\n }\n\n &.active {\n text-decoration: underline;\n }\n\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n"])),V.t7.color("text"),wo,V.t7.color("text")),Po=(0,z.Ay)(we.N_).withConfig({displayName:"StyledIconLink"})(po||(po=H()(["\n opacity: 0;\n color: ",";\n text-decoration: none;\n\n &:link,\n &:visited {\n color: ","; /* nice2 reset */\n }\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:focus {\n opacity: 1;\n outline: none;\n }\n\n /* disable open new tab feature on touch devices */\n body:not(.hasHover) & {\n display: none;\n }\n"])),V.t7.color("text"),V.t7.color("text"),V.t7.color("secondaryLight")),ko=z.Ay.div.withConfig({displayName:"StyledMenuLinkWrapper"})(fo||(fo=H()(["\n display: grid;\n border-radius: ",";\n padding-left: ",";\n padding-top: ",";\n padding-bottom: ",";\n grid-template-columns: 91% 1fr;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n }\n\n &:focus-within {\n background-color: ",";\n\n "," {\n opacity: 1;\n }\n }\n\n /* since StyledIconLink is disabled on mobile, there is only one column to display */\n body:not(.hasHover) & {\n grid-template-columns: auto;\n }\n\n button {\n width: 100%;\n }\n\n &:hover "," {\n opacity: 1;\n }\n"])),V.t7.radii("menuEntries"),K.A.space(-1),K.A.space(-1.5),K.A.space(-1.5),V.t7.color("backgroundItemHover"),V.t7.color("backgroundItemHover"),Po,Po),Eo=z.Ay.span.withConfig({displayName:"StyledEntityNameDisplay"})(yo||(yo=H()(["\n display: inline-block;\n color: ",";\n overflow-wrap: anywhere;\n font-weight: ",";\n"])),V.t7.color("textLight"),V.t7.fontWeight("regular")),Co=z.Ay.button.withConfig({displayName:"StyledTogglerButton"})(ho||(ho=H()(["\n opacity: 0;\n background: transparent;\n border: transparent;\n outline: none;\n padding: 0;\n cursor: pointer;\n margin-left: ",";\n color: ",";\n\n &:hover {\n color: ",";\n }\n\n /* always show expand/collapse icon on touch devices */\n body:not(.hasHover) & {\n opacity: 1;\n }\n"])),K.A.space(-1),V.t7.color("text"),V.t7.color("secondaryLight")),To=z.Ay.div.withConfig({displayName:"StyledMenuEntry"})(go||(go=H()(["\n display: flex;\n justify-content: space-between;\n color: ",";\n font-weight: ",";\n border-radius: ",";\n padding: "," ",";\n\n &:hover {\n background-color: ",";\n\n "," {\n opacity: 1;\n }\n ","\n }\n"])),V.t7.color("text"),V.t7.fontWeight("bold"),V.t7.radii("menuEntries"),K.A.space(-1),K.A.space(-1.2),V.t7.color("backgroundItemHover"),Co,(function(e){var n=e.onClick,t=e.theme;return n?(0,z.AH)(mo||(mo=H()(["\n cursor: pointer;\n ","\n "])),V.t7.color("backgroundItemHover")({theme:t})):(0,z.AH)(bo||(bo=H()(["\n cursor: auto;\n "])))})),Do=z.Ay.span.withConfig({displayName:"StyledMenuIconWrapper"})(vo||(vo=H()(["\n margin-right: ",";\n"])),K.A.space(-1.2)),No=z.Ay.div.withConfig({displayName:"StyledMenuChildrenWrapper"})(xo||(xo=H()(["\n display: ",";\n"])),(function(e){return e.isOpen?"block":"none"}));function Mo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Io(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Mo(Object(t),!0).forEach((function(n){m()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Mo(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Bo=function(e){var n=e.item,t=e.isOpen,r=e.canCollapse,o=e.preferencesPrefix,i=e.menuTreePath,a=e.saveUserPreferences,c=n.icon,s=n.label,l=c||"cube",u=function(){return a(m()({},(0,qr.rV)(o,i),t))};return(0,C.jsxs)(To,Io(Io({},r?{onClick:u}:{}),{},{children:[(0,C.jsxs)("span",{children:[(0,C.jsx)(Do,{children:(0,C.jsx)(Hn.A,{icon:l})}),s]}),r&&(0,C.jsx)(Co,{onClick:u,children:(0,C.jsx)(Hn.A,{icon:t?"chevron-up":"chevron-down"})})]}))};var Ro={saveUserPreferences:je.bM};const Lo=(0,o.Ng)((function(e,n){return{isOpen:Ao(e,n)}}),Ro)((0,r.Ay)(Bo));const _o=function(e){var n=e.isOpen,t=e.canCollapse,r=e.children;return(0,C.jsx)(No,{isOpen:!t||n,"data-cy":"menu-children-wrapper",children:(!t||n)&&r})};const Wo=(0,o.Ng)((function(e,n){return{isOpen:Ao(e,n)}}))((0,r.Ay)(_o));var Uo,Fo;const Ho=function(e){var n=e.onClick,t=e.item,r=e.alwaysShowExpandedLabel||"entity"===t.matchingAttribute?(0,C.jsxs)(Eo,{children:["(",t.entity,")"]}):"";return(0,C.jsxs)(ko,{children:[(0,C.jsxs)(So,{"data-quick-navigation":!0,onClick:n,to:"/e/".concat(t.entity),children:[t.label,""!==r&&(0,C.jsxs)(C.Fragment,{children:[Uo||(Uo=(0,C.jsx)("br",{})),r]})]}),(0,C.jsx)(Po,{to:"/e/".concat(t.entity),target:"_blank",rel:"noreferrer",children:Fo||(Fo=(0,C.jsx)(Hn.A,{icon:"external-link"}))})]})};var zo,Vo,qo,Ko=t(63061),Go=function(e){return e.name&&!e.path};const Jo=function(e){var n=e.onClick,t=e.item,r=e.alwaysShowExpandedLabel,o=e.onActionClick;if(!Go(t))return zo||(zo=(0,C.jsx)(C.Fragment,{}));var i=(0,C.jsxs)(C.Fragment,{children:[t.label,(r||"name"===t.matchingAttribute)&&(0,C.jsxs)(C.Fragment,{children:[Vo||(Vo=(0,C.jsx)("br",{})),(0,C.jsxs)(Eo,{children:["(",t.name,")"]})]})]});return(0,C.jsxs)(ko,{children:[t.fullscreen&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(So,{"data-quick-navigation":!0,onClick:n,to:"/e/action/".concat(t.name),children:i}),(0,C.jsx)(Po,{to:"/e/action/".concat(t.name),target:"_blank",rel:"noreferrer",children:qo||(qo=(0,C.jsx)(Hn.A,{icon:"external-link"}))})]}),!t.fullscreen&&(0,C.jsx)(So,{"data-quick-navigation":!0,onClick:function(e){e.preventDefault();var n={id:t.name,label:t.label,endpoint:t.endpoint,runInBackgroundTask:t.runInBackgroundTask,actionType:t.endpoint?Ko.A.actionTypes.SIMPLE:Ko.A.actionTypes.CUSTOM,buttonType:"TEXT",appId:t.name};o(n,{})},children:i})]})};var Yo={onActionClick:Ko.A.actions.actionInvoke};const Qo=(0,o.Ng)(null,Yo)((0,r.Ay)(Jo));var Xo,Zo,$o,ei,ni,ti,ri,oi,ii,ai,ci=t(47616),si=ci.A.color("secondary"),li=ci.A.color("secondaryLight"),ui=z.Ay.nav.withConfig({displayName:"StyledNav"})(Xo||(Xo=H()(["\n height: 100%;\n display: flex;\n flex-direction: column;\n"]))),di=(z.Ay.span.withConfig({displayName:"StyledMenuEntry"})(Zo||(Zo=H()(["\n display: inline-block;\n color: ",";\n font-weight: ",";\n margin-bottom: ",";\n margin-top: ",";\n"])),ci.A.color("text"),ci.A.fontWeight("bold"),K.A.space(-1.2),K.A.space(-1.2)),z.Ay.div.withConfig({displayName:"StyledTabsContainer"})($o||($o=H()(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 ",";\n\n &:focus {\n background-color: transparent;\n }\n"])),K.A.space(.6))),pi=z.Ay.div.withConfig({displayName:"StyledActiveTabLabel"})(ei||(ei=H()(["\n ","\n flex-grow: 1;\n"])),(0,Kr.A)({fontSize:K.A.font(2.9),fontWeight:ci.A.fontWeight("bold"),color:ci.A.color("secondary")})),fi=(0,z.Ay)(Xn.A).withConfig({displayName:"StyledNavIconButton"})(ni||(ni=H()(["\n overflow: hidden;\n flex: ",";\n justify-content: center;\n border-radius: 0;\n margin: ",";\n border-top: 5px solid ",";\n font-weight: ",";\n font-size: ",";\n padding-top: ",";\n padding-bottom: calc("," - 5px); /* subtract border-top width of 5px */\n ",";\n\n &&:hover {\n border-color: ",";\n background-color: transparent;\n color: ",";\n }\n\n &&:focus {\n background-color: transparent;\n }\n\n & > * {\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),(function(e){return e.narrow?.2:1}),K.A.space(-.7),(function(e){return e.active?si:"transparent"}),ci.A.fontWeight("bold"),K.A.font(3),K.A.space(-1.1),K.A.space(-1.1),(function(e){return e.active&&(0,z.AH)(ti||(ti=H()(["\n color: ",";\n "])),si)}),(function(e){return e.active?si:li}),(function(e){return e.active?si:li})),yi=z.Ay.div.withConfig({displayName:"StyledSearchBoxWrapper"})(ri||(ri=H()(["\n height: 50px;\n padding: 0 ",";\n"])),K.A.space(.6)),hi=z.Ay.div.withConfig({displayName:"StyledMenuWrapper"})(oi||(oi=H()(["\n height: 100%;\n overflow: auto;\n padding: "," "," 0 ",";\n"])),K.A.space(.6),K.A.space(.6),K.A.space(.6)),gi=z.Ay.div.withConfig({displayName:"StyledMenuButtonsWrapper"})(ii||(ii=H()(["\n position: absolute;\n right: ",";\n z-index: 1;\n display: flex;\n justify-content: flex-end;\n padding: 0;\n"])),K.A.space(.6)),mi=(0,z.Ay)(Xn.A).withConfig({displayName:"StyledMenuButton"})(ai||(ai=H()(["\n font-size: ",";\n justify-content: center;\n border-radius: 0;\n padding: 0;\n\n &:hover,\n &:focus {\n background-color: transparent;\n color: ",";\n }\n"])),K.A.font(0),li),bi=function(e){var n=e.onClick,t=e.hasFilterApplied,r=e.preferencesPrefix,o=e.alwaysShowExpandedLabel,i=void 0!==o&&o,a=!t&&void 0!==r;return{menu:{component:Lo,childrenWrapperComponent:Wo,filterAttributes:["label"],props:{preferencesPrefix:r,canCollapse:a}},"entity-explorer":{component:Ho,childrenWrapperComponent:Wo,props:{onClick:n,preferencesPrefix:r,canCollapse:a,alwaysShowExpandedLabel:i},filterAttributes:["label","entity"]},action:{component:Qo,childrenWrapperComponent:Wo,props:{onClick:n,preferencesPrefix:r,canCollapse:a,alwaysShowExpandedLabel:i},filterAttributes:["label","name"]}}};const vi=function(e){var n,t=e.modulesMenuTree,r=e.settingsMenuTree,o=e.systemMenuTree,i=e.completeMenuTree,a=e.menuOpen,s=e.onClick,l=e.activeMenuTab,u=e.setActiveMenuTab,d=e.intl,p=e.saveUserPreferences,y=(0,c.useRef)(null),h=(0,c.useRef)(null),g=(0,c.useState)(""),b=f()(g,2),v=b[0],x=b[1],j=Boolean(v),O=!j&&[qr.WV.MODULES,qr.WV.SETTINGS].includes(l),A=(0,c.useCallback)((function(e){return d.formatMessage({id:e})}),[d]),w=(0,c.useMemo)((function(){return m()(m()(m()(m()({},qr.WV.MODULES,{items:t,preferencesPrefix:"",label:A("client.admin.navigation.modules"),icon:"cube",dataCy:[qr.WV.MODULES]}),qr.WV.COMPLETE,{items:i,label:A("client.admin.navigation.complete"),icon:"chart-network",dataCy:[qr.WV.COMPLETE]}),qr.WV.SETTINGS,{items:r,preferencesPrefix:"settings",label:A("client.admin.navigation.settings"),icon:"cog",dataCy:[qr.WV.SETTINGS]}),qr.WV.SYSTEM,{items:o,label:A("client.admin.navigation.system"),icon:"laptop-code",dataCy:[qr.WV.SYSTEM]})}),[A,t,i,r,o]),S=(0,c.useMemo)((function(){return bi({onClick:s,hasFilterApplied:j,preferencesPrefix:w[qr.WV.MODULES].preferencesPrefix})}),[s,j,w]),P=(0,c.useMemo)((function(){return bi({onClick:s,hasFilterApplied:j,preferencesPrefix:w[qr.WV.SETTINGS].preferencesPrefix})}),[s,j,w]),k=(0,c.useMemo)((function(){return bi({onClick:s,hasFilterApplied:j})}),[s,j]),E=(0,c.useMemo)((function(){return bi({onClick:s,hasFilterApplied:j,alwaysShowExpandedLabel:!0})}),[s,j]);(0,c.useEffect)((function(){a&&(l||u(qr.WV.MODULES),y.current.select())}),[a,l,u]),(0,c.useEffect)((function(){a&&y.current&&setTimeout((function(){y.current.focus()}),10)}),[l,a]);var T=Object.keys(qr.WV).map((function(e){return qr.WV[e]})).filter((function(e){var n;return(null===(n=w[e].items)||void 0===n?void 0:n.length)>0})).map((function(e){return(0,C.jsx)(fi,{active:l===e,onMouseDown:function(n){u(e),n.preventDefault()},title:w[e].label,icon:w[e].icon,"data-cy":"menu-tab-".concat(w[e].dataCy)},e)}));return(0,C.jsxs)(ui,{ref:h,onKeyDown:function(e){var n,t,r;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),n=e.key,t=h.current.querySelectorAll('a[data-quick-navigation="true"], span[data-quick-navigation="true"] button, input'),(r=zr()(t).findIndex((function(e){return document.activeElement.isEqualNode(e)})))>-1&&t[(r+("ArrowDown"===n?1:t.length-1))%t.length].focus())},"data-cy":"admin-nav",children:[(0,C.jsxs)(di,{children:[(0,C.jsx)(pi,{children:null===(n=w[l])||void 0===n?void 0:n.label}),(0,C.jsx)("div",{children:T})]}),(0,C.jsx)(yi,{children:(0,C.jsx)(Vr.A,{minInputLength:2,onSearch:x,ref:y,placeholder:A("client.admin.navigation.searchBoxPlaceHolder"),"aria-label":A("client.admin.navigation.searchBoxPlaceHolder")})}),(0,C.jsxs)(hi,{children:[O&&(0,C.jsxs)(gi,{children:[(0,C.jsx)(mi,{icon:"chevron-double-down",type:"button",onClick:function(){var e=w[l]||{},n=e.items,t=e.preferencesPrefix;if(n&&void 0!==t){var r=(0,qr.Tu)(n,t,!1);p(r)}},title:A("client.admin.navigation.expandAll"),"data-cy":"btn-expand-all-menu-entries"}),(0,C.jsx)(mi,{icon:"chevron-double-up",type:"button",onClick:function(){var e=w[l]||{},n=e.items,t=e.preferencesPrefix;if(n&&void 0!==t){var r=(0,qr.Tu)(n,t,!0);p(r)}},title:A("client.admin.navigation.collapseAll"),"data-cy":"btn-collapse-all-menu-entries"})]}),l===qr.WV.MODULES&&(0,C.jsx)(lo,{items:t,searchFilter:v,typeMapping:S,extendedSearchItems:i}),l===qr.WV.SETTINGS&&(0,C.jsx)(lo,{items:r,searchFilter:v,typeMapping:P,extendedSearchItems:i}),l===qr.WV.SYSTEM&&(0,C.jsx)(lo,{items:o,searchFilter:v,typeMapping:k,extendedSearchItems:i}),l===qr.WV.COMPLETE&&(0,C.jsx)(lo,{items:i,searchFilter:v,typeMapping:E,requireSearch:!0})]})]})};var xi={setActiveMenuTab:xe.Tr,saveUserPreferences:je.bM};const ji=(0,o.Ng)((function(e,n){return{settingsMenuTree:e.navigation.settingsMenuTree,modulesMenuTree:e.navigation.modulesMenuTree,systemMenuTree:e.navigation.systemMenuTree,completeMenuTree:e.navigation.completeMenuTree,menuOpen:e.navigation.menuOpen,activeMenuTab:e.navigation.activeMenuTab}}),xi)((0,r.Ay)(vi));var Oi,Ai,wi,Si,Pi,ki,Ei,Ci,Ti,Di,Ni,Mi,Ii=z.Ay.div.withConfig({displayName:"StyledAdminWrapper"})(Oi||(Oi=H()(["\n display: grid;\n grid-template:\n 'header header' auto\n 'menu content' 1fr / auto 1fr;\n background-color: ",";\n height: 100dvh;\n\n .bm-menu-wrap {\n width: 16dvw !important;\n }\n\n @media only screen and (max-width: 400px) {\n .bm-menu-wrap {\n width: 100% !important;\n }\n }\n\n .bm-burger-button button:focus {\n outline: 0;\n }\n"])),V.t7.color("paper")),Bi=z.Ay.div.withConfig({displayName:"StyledContent"})(Ai||(Ai=H()(["\n grid-area: content;\n background-color: ",";\n overflow: hidden;\n display: flex;\n"])),V.t7.color("backgroundBody")),Ri=z.Ay.div.withConfig({displayName:"StyledMenu"})(wi||(wi=H()(["\n grid-area: menu;\n height: calc(100% - 39px); /* subtract height of StyledHeader */\n width: 350px;\n position: absolute;\n top: 39px; /* height of StyledHeader */\n z-index: 1001; /* higher than StyledOverlay */\n background: ",";\n transition: all 0.5s ease 0s;\n transform: translate3d(",", 0, 0);\n"])),V.t7.color("paper"),(function(e){return e.isOpen?"0":"-100%"})),Li=z.Ay.div.withConfig({displayName:"StyledOverlay"})(Si||(Si=H()(["\n position: fixed;\n z-index: 1000;\n width: 100%;\n height: 100%;\n background: rgba(0 0 0 / 50%);\n opacity: ",";\n transition: opacity 0.3s ease 0s;\n transform: ",";\n"])),(function(e){return e.isOpen?"1":"0"}),(function(e){return!e.isOpen&&"translate3d(100%, 0, 0)"}));const _i=(0,z.SL)((function(e){var n=e.setMenuOpen,t=e.menuOpen,r=(0,c.useRef)(null),o=(0,Ae.zy)();return(0,c.useEffect)((function(){var e=function(e){"Escape"===e.key&&n(!1)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[r,n]),(0,c.useEffect)((function(){var e=function(e){var t=document.getElementById("burger-button");!r.current||r.current.contains(e.target)||t.contains(e.target)||n(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[r,n]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Ri,{isOpen:t,ref:r,children:(0,C.jsx)(x.A.ErrorBoundary,{children:(0,C.jsx)(ji,{onClick:function(e){e.ctrlKey||e.shiftKey||e.metaKey||e.altKey||(n(!1),De.A.clearPersistedViews())}})})}),(0,C.jsxs)(Bi,{children:[(0,C.jsx)(x.A.ErrorBoundary,{children:(0,C.jsxs)(Ae.BV,{children:[Pi||(Pi=(0,C.jsx)(Ae.qh,{exact:!0,path:"/",element:(0,C.jsx)(Ae.C5,{to:"/dashboard",replace:!0})})),ki||(ki=(0,C.jsx)(Ae.qh,{exact:!0,path:"dashboard/reload",element:(0,C.jsx)(Ae.C5,{to:"/dashboard",replace:!0})})),Ei||(Ei=(0,C.jsx)(Ae.qh,{exact:!0,path:"dashboard",element:(0,C.jsx)(gr.A,{})})),(0,C.jsx)(Ae.qh,{path:"e/*",element:(0,C.jsx)(kr,{location:o})}),Ci||(Ci=(0,C.jsx)(Ae.qh,{path:"s",element:(0,C.jsx)(Mr,{})})),Ti||(Ti=(0,C.jsx)(Ae.qh,{path:"docs/*",element:(0,C.jsx)(vr,{})})),Di||(Di=(0,C.jsx)(Ae.qh,{path:"em/*",element:(0,C.jsx)(Cr,{})})),Ni||(Ni=(0,C.jsx)(Ae.qh,{path:"history/*",element:(0,C.jsx)(Dr,{})})),Mi||(Mi=(0,C.jsx)(Ae.qh,{path:"*",element:(0,C.jsx)(Ae.C5,{to:"/dashboard",replace:!0})}))]})}),(0,C.jsx)(Li,{isOpen:t})]})]})}));var Wi;const Ui=function(e){var n=e.setMenuOpen,t=e.menuOpen,r=e.adminAllowed,o=r&&(0,C.jsx)(_i,{menuOpen:t,setMenuOpen:n}),a=!1===r&&(Wi||(Wi=(0,C.jsx)(Bi,{children:(0,C.jsx)(Ne.A,{title:(0,C.jsx)(y.A,{id:"client.admin.error.no_roles.title"}),message:(0,C.jsx)(y.A,{id:"client.admin.error.no_roles.message"})})})));return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(x.A.ErrorBoundary,{children:(0,C.jsx)(i.A.Notifications,{navigationStrategy:(0,_t.Ay)()})}),(0,C.jsxs)(Ii,{children:[(0,C.jsx)(hr,{menuOpen:t}),o||a]})]})};var Fi={setMenuOpen:xe.cV};const Hi=(0,o.Ng)((function(e){return{menuOpen:e.navigation.menuOpen,adminAllowed:e.login.adminAllowed}}),Fi)((0,r.Ay)(Ui));var zi;const Vi=function(e){var n=e.initializeNavigation,t=e.baseRoute,r=e.loadPrincipal,o=e.loadSettingsAndPreferences,i=e.resetPathInfos,a=e.loadHasOutlookAddInModule,s=e.memoryHistory;(0,c.useEffect)((function(){De.A.clearPersistedViews(),i(),n(),r(),o(),a()}),[]),Ce();var l=(s?Ae.bg:we.Ys)([{path:"*",element:zi||(zi=(0,C.jsx)(Hi,{}))}],{basename:t});return(0,C.jsx)(we.pg,{router:l})};var qi={loadPrincipal:d.$$,initializeNavigation:xe.zT,loadSettingsAndPreferences:je.N,resetPathInfos:Oe.ol,loadHasOutlookAddInModule:d.OZ};const Ki=(0,o.Ng)((function(e,n){return{baseRoute:e.input.baseRoute,memoryHistory:e.input.memoryHistory,hasOutlookAddInModule:e.session.hasOutlookAddInModule}}),qi)((0,r.Ay)(Vi));var Gi,Ji,Yi;const Qi=function(e){var n=e.doSessionCheck,t=e.loggedIn;return(0,c.useEffect)((function(){n()}),[n]),(0,C.jsxs)(C.Fragment,{children:[Gi||(Gi=(0,C.jsx)(l.m,{defer:!1,children:(0,C.jsx)("title",{children:"Tocco"})})),(0,C.jsx)(u.A,{required:[void 0!==t],loadingText:"Logging in...",children:t?Yi||(Yi=(0,C.jsx)(Ki,{})):Ji||(Ji=(0,C.jsx)(ve,{}))})]})};var Xi={doSessionCheck:a.A.doSessionCheck,confirm:i.A.confirm};const Zi=(0,o.Ng)((function(e,n){return{loggedIn:e.login.loggedIn}}),Xi)((0,r.Ay)(Qi))},9941:(e,n,t)=>{t.d(n,{A:()=>xt});var r=t(38798),o=t(71468),i=t(6730),a=t(4883),c=t.n(a),s=t(47767),l=t(97699),u=t(26396),d=t.n(u),p=t(5556),f=t.n(p),y=t(30632),h=t(10822),g="dashboard/LOAD_DASHBOARD",m="dashboard/SET_DASHBOARD",b="dashboard/SAVE_INFOBOX_POSITIONS",v="dashboard/SAVE_INFOBOX_HEIGHT",x="dashboard/DISPLAY_INFOBOX_SETTINGS_MODAL",j="dashboard/RESET_INFOBOX_SETTINGS",O=function(e){return{type:m,payload:{infoBoxes:e}}},A=t(21259),w=t.n(A),S=t(22056),P=t.n(S),k=function(){return Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)},E=function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},C=t(88208),T=t(79090),D=t(81696),N=t(49747),M=t.n(N),I=t(49870),B=t.n(I);const R={Column:"Column",InfoBox:"InfoBox"};var L="InfoBox",_="DropPreview";function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F,H,z,V=function(e){return e.sort((function(e,n){return e.col===n.col?e.row-n.row:e.col-n.col}))},q=M()((function(e){return e.reduce((function(e,n){var t=e.index,r=e.boxes,o="number"==typeof t[n.col]?t[n.col]+1:0;return{boxes:[].concat(w()(r),[U(U({},n),{},{row:o})]),index:U(U({},t),{},d()({},n.col,o))}}),{index:{},boxes:[]}).boxes})),K=M()((function(e,n,t,r){var o,i=null===(o=r.find((function(e){return e.id===n})))||void 0===o?void 0:o.col,a=r.find((function(n){return n.id===e}));return q(r.reduce((function(r,o){var c=o.id===n;return o.id===e?r:[].concat(w()(r),w()(t===T.A.VerticalDropPosition.Top&&c?[U(U({},a),{},{col:i,row:-1})]:[]),[o],w()(t===T.A.VerticalDropPosition.Bottom&&c?[U(U({},a),{},{col:i,row:-1})]:[]))}),[]))})),G=t(58065),J=t(46703),Y=t(73621),Q=t(72189),X=t.n(Q),Z=t(6199),$=Z.Ay.div.withConfig({displayName:"StyledMenuWrapper"})(F||(F=X()(["\n display: flex;\n justify-content: flex-end;\n"]))),ee=t(74848);const ne=function(e){var n=e.displayInfoBoxSettings,t=e.resetInfoBoxSettings;return(0,ee.jsx)($,{children:(0,ee.jsxs)(J.A,{buttonProps:{icon:"ellipsis-v","data-cy":"btn-infobox-settings"},children:[(0,ee.jsx)(Y.A,{onClick:n,"data-cy":"menuitem-edit-home",children:H||(H=(0,ee.jsx)(G.A,{id:"client.dashboard.preferences.show"}))}),(0,ee.jsx)(Y.A,{onClick:t,"data-cy":"menuitem-reset-home",children:z||(z=(0,ee.jsx)(G.A,{id:"client.dashboard.preferences.reset"}))})]})})};var te={displayInfoBoxSettings:function(){return{type:x}},resetInfoBoxSettings:function(){return{type:j}}};const re=(0,o.Ng)(null,te)((0,r.Ay)(ne));var oe,ie,ae=t(27113),ce=t(81576),se=t(26166),le=t(47616),ue="50px",de=Z.Ay.div.withConfig({displayName:"StyledInfoBoxWrapper"})(oe||(oe=X()(["\n box-sizing: border-box;\n border: 1px solid ",";\n border-radius: ",";\n height: ",";\n min-height: ",";\n max-height: ",";\n padding: ",";\n background: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n /**\n * Workaround:\n * so that ghost-image on drag and drop is taken correctly\n * when having an absolute position element inside the InfoBox (e.g. entity-list)\n */\n position: relative;\n z-index: 1;\n"])),ae.K.base,ce.t7.radii("dashboard"),(function(e){var n=e.height;return n?"".concat(n,"px"):"auto"}),ue,"600px",se.A.space(-.5),le.A.color("paper")),pe=Z.Ay.div.withConfig({displayName:"StyledDroppedPreview"})(ie||(ie=X()(["\n border: 2px dashed ",";\n box-sizing: border-box;\n height: ",";\n min-height: ",";\n width: 100%;\n padding: ",";\n margin: ",";\n background: ",";\n"])),le.A.color("primary"),(function(e){var n=e.height;return"".concat(n,"px")}),ue,se.A.space(-.5),se.A.space(-.5),le.A.color("paper"));function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}const ye=function(e){return(0,ee.jsx)(pe,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))};var he,ge=t(39892),me=t.n(ge),be=t(56375),ve=t(73082),xe=t(4997),je=Z.Ay.div.withConfig({displayName:"StyledInfoBoxContentWrapper"})(he||(he=X()(["\n flex: 1;\n ","\n"])),(function(e){return e.scrollable&&"overflow: auto;"}));const Oe=function(e){var n=e.content.text;return(0,ee.jsx)(je,{scrollable:!0,children:(0,ee.jsx)(xe.A,{type:"html",value:n})})};var Ae=t(53394),we=t(82237),Se=t(53971);function Pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ke(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Pe(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee=(0,r.Ay)((function(e){var n,t=e.entityKey,r=e.entityModel,o=e.children,i=e.intl;return(0,ee.jsx)(we.A,{"aria-label":(n="client.component.navigationStrategy.detailLinkRelative",i.formatMessage({id:n})),to:"/e/".concat(r,"/").concat(t),children:o})})),Ce=function(e){return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return e.split(/\s+/)})).map((function(e){return{field:e[0],order:e[1]||"asc"}})):[]};const Te=function(e){var n=e.id,t=e.content,r=e.navigationStrategy,o=e.emitAction,i=t.searchFilterUniqueId,a=t.entityName,c=t.form,s=t.limit,l=t.orderBy,u=c?Se.A.splitFormId(c):{},d=u.formName,p=u.scope;return(0,ee.jsx)(je,{scrollable:!0,children:(0,ee.jsx)(Ae.Ay,{id:n,limit:s,entityName:a,formName:d,searchFilters:[i],scope:p,showActions:!1,onRowClick:function(e){var n=e.id;r.openDetail(a,n,!1)},searchFormType:"fulltext",searchFormPosition:"top",selectionStyle:"none",sortable:!0,disableSelectionController:!0,emitAction:o,navigationStrategy:ke(ke({},r),{},{DetailLinkRelative:Ee}),showLink:!0,sorting:Ce(l),scrollBehaviour:"inline",tableMinHeight:"240px"})})};var De={emitAction:function(e){return i.A.dispatchEmittedAction(e)}};const Ne=(0,o.Ng)((function(e){return{navigationStrategy:e.input.navigationStrategy}}),De)((0,r.Ay)(Te));var Me;var Ie={htmlfield:Oe,searchfilter:Ne},Be=function(e){var n=e.id,t=e.content;return t?function(e,n,t){return Ie[e]?c().createElement(Ie[e],{id:n,content:t}):(ve.A.logError("No Content mapper defined for type",e,n),Me||(Me=(0,ee.jsx)("div",{})))}(t.type,n,t):null};Be.propTypes={id:f().string.isRequired,content:f().object.isRequired};const Re=Be;var Le=["id","label","height","content"];function _e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function We(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Ue=function(e){var n=e.id,t=e.label,r=e.height,o=e.content,i=me()(e,Le);return(0,ee.jsxs)(de,We(We({},i),{},{height:r,children:[(0,ee.jsx)(be.Ay.H3,{children:t}),(0,ee.jsx)(Re,{id:n,content:o})]}))};var Fe,He,ze,Ve,qe,Ke,Ge=function(e){return(0,Z.AH)(Fe||(Fe=X()(["\n @media only screen and (max-width: 800px) {\n ","\n }\n"])),e)},Je=Z.Ay.div.withConfig({displayName:"StyledDashboardWrapper"})(He||(He=X()(["\n width: 100%;\n height: calc(100% - 75px); /* ~75px the height of header and breadcrumbs */\n background: ",";\n padding: "," "," "," ",";\n overflow-y: scroll;\n box-sizing: border-box;\n position: absolute;\n"])),ce.t7.color("paper"),se.A.space(-.5),se.A.space(-2),se.A.space(-.5),se.A.space(-.5)),Ye=Z.Ay.div.withConfig({displayName:"StyledColumnWrapper"})(ze||(ze=X()(["\n display: flex;\n flex-wrap: nowrap;\n ","\n"])),Ge("\n display: block;\n flex-wrap: unset;\n ")),Qe=Z.Ay.div.withConfig({displayName:"StyledColumn"})(Ve||(Ve=X()(["\n width: 50%;\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n position: relative;\n ","\n"])),Ge("\n width: unset;\n display: block;\n flex-wrap: unset;\n align-content: unset;\n ")),Xe=Z.Ay.div.withConfig({displayName:"StyledInfoBoxWrapper"})(qe||(qe=X()(["\n position: relative;\n width: 100%;\n margin: ",";\n ","\n"])),se.A.space(-.5),Ge("width: auto;")),Ze=Z.Ay.div.withConfig({displayName:"StyledResizeHandle"})(Ke||(Ke=X()(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n background: ",";\n opacity: ",";\n height: 3px;\n cursor: row-resize;\n"])),ce.t7.color("signal.info"),(function(e){return e.isReszing?1:0}));const $e=function(e){var n=e.infoBox,t=e.isResizing,r=e.startResize,o=e.onDragStart,i=e.onDragEnter,a=e.onDragOver,c=e.onDrop,s=n.id,u=n.type,d=n.label,p=n.height,f=n.content,y=Boolean(o);return(0,ee.jsx)(l.A.ErrorBoundary,{children:(0,ee.jsxs)(Xe,{id:"infobox-".concat(s),"data-cy":"infobox-".concat(s),children:[(0,ee.jsx)(Ue,{id:s,label:d,height:p,content:f,draggable:y,onDragStart:o,onDragEnter:i,onDragOver:a,onDrop:c}),(0,ee.jsx)(Ze,{onMouseDown:r,isReszing:t})]},"".concat(u,"-").concat(s))})};function en(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?en(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):en(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const tn=function(e){var n=e.onDragEnter,t=e.onDragOver,r=e.onDrop,o=e.infoBoxes,i=e.resizeState,a=e.startResize,c=e.dndState,s=e.makeDndEvents,l=c.currentlyDragOver,u=i.isResizing,d=i.resizingElement,p=o.map((function(e){var n=e.id,t=e.height,r=e.type;return r===_&&s?(0,ee.jsx)(ye,nn({height:t},s(l)),"".concat(r,"-").concat(n)):(0,ee.jsx)($e,nn(nn({id:"infobox-".concat(n),infoBox:e,isResizing:u&&d===n},s?s({type:R.InfoBox,id:n}):{}),{},{startResize:a(n)}),"".concat(r,"-").concat(n))}));return(0,ee.jsx)(Qe,{onDragEnter:n,onDragOver:t,onDrop:r,children:p})};var rn;function on(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function an(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?on(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):on(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const cn=function(e){var n=e.infoBoxes,t=e.saveInfoBoxHeight,r=e.saveInfoBoxPositions,o=(null==n?void 0:n.length)>=0,i=(0,a.useState)(n||[]),c=P()(i,2),s=c[0],l=c[1];(0,a.useEffect)((function(){l(n||[])}),[n]);var u=w()(Array(2).keys()),d=(0,a.useRef)(null),p=(0,a.useCallback)((function(e){return d.current.querySelector("#infobox-".concat(e))}),[]),f=(0,a.useCallback)((function(e){var n,r=null===(n=s.find((function(n){return n.id===e})))||void 0===n?void 0:n.height;t(e,r)}),[s,t]),y=(0,a.useCallback)((function(e,n){var t=n.height;l((function(n){return w()(n.map((function(n){return n.id===e?an(an({},n),{},{height:t}):n})))}))}),[]),h=D.A.useResize(p,y,f),g=h.startResize,m=h.resizingEvents,b=h.resizeState,v=function(){var e=(0,a.useState)({width:E(),height:k()}),n=P()(e,2),t=n[0],r=n[1];return(0,a.useEffect)((function(){var e=function(){r({width:E(),height:k()})};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),t}(),x=v.width>800,j=T.A.useDnD((function(e,n,t,o){var i=e.id,a=n.type,c=n.id;if(a===R.Column){var u=function(e,n,t){var r=t.find((function(n){return n.id===e}));return q([].concat(w()(V(t).filter((function(n){return n.id!==e}))),[U(U({},r),{},{col:n,row:-1})]))}(i,c,s);l(u),r(u)}else if(i!==c){var d=function(e,n,t,r){return B()([V,K(e,n,t)])(r)}(i,c,o,s);l(d),r(d)}}),s),O=j.dndEvents,A=j.dndState,S=A.currentlyDragOver,N=A.currentlyDragging,M=A.verticalDropPosition,I=(N||{}).id,W=u.map((function(e){var n=O({type:R.Column,id:e}),t=n.onDragEnter,r=n.onDragOver,o=n.onDrop,i=function(e,n,t,r,o){var i=n||{},a=i.type,c=i.id,s=c===e&&a===R.InfoBox,l=U(U({},o.find((function(n){return n.id===e}))),{},{type:_}),u=o.filter((function(n){var t=n.folded,o=n.col,i=n.id;return!(t||o!==r||void 0!==c&&!s&&i===e)})).map((function(e){return U(U({},e),{},{type:L})})).reduce((function(n,r){var o=r.id===c&&a===R.InfoBox&&!s;return[].concat(w()(n),w()(t===T.A.VerticalDropPosition.Top&&o?[l]:[]),[r.id===e&&s?U(U({},r),{},{type:_}):r],w()(t===T.A.VerticalDropPosition.Bottom&&o?[l]:[]))}),[]);return a===R.Column&&c===r&&(u=[].concat(w()(u),[l])),u}(I,S,M,e,s);return(0,ee.jsx)(tn,{onDragEnter:t,onDragOver:r,onDrop:o,infoBoxes:i,resizeState:b,startResize:g,dndState:A,makeDndEvents:x?O:void 0},e)}));return(0,ee.jsx)(Je,an(an({ref:d},m),{},{children:(0,ee.jsxs)(C.A,{required:[o],children:[rn||(rn=(0,ee.jsx)(re,{})),(0,ee.jsx)(Ye,{children:W})]})}))};var sn={saveInfoBoxPositions:function(e){return{type:b,payload:{infoBoxes:e}}},saveInfoBoxHeight:function(e,n){return{type:v,payload:{id:e,height:n}}}};const ln=(0,o.Ng)((function(e){return{infoBoxes:e.dashboard.infoBoxes}}),sn)((0,r.Ay)(cn));var un=t(37954),dn=d()({},m,un.A.singleTransferReducer("infoBoxes")),pn={infoBoxes:void 0};const fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pn,n=arguments.length>1?arguments[1]:void 0,t=dn[n.type];return t?t(e,n):e};var yn,hn,gn,mn=t(92207),bn=t.n(mn),vn=t(79859),xn=t(43786),jn=t(70661),On=t(82064),An=t(5975),wn=t(62764),Sn=t(5016),Pn=Z.Ay.ul.withConfig({displayName:"StyledUl"})(yn||(yn=X()(["\n list-style-type: none;\n margin-top: ",";\n padding-left: ",";\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0;\n }\n"])),se.A.space(-.5),se.A.space(-.5),Sn.Gw),kn=Z.Ay.input.withConfig({displayName:"StyledCheckbox"})(hn||(hn=X()(["\n vertical-align: top;\n margin-right: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),se.A.space(-1));function En(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Cn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?En(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):En(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Tn=function(e){var n=e.initialInfoBoxes,t=e.onOk,r=(0,a.useState)(n||[]),o=P()(r,2),i=o[0],c=o[1],s=function(){return t(i)};(0,On.L)(s);var l=i.map((function(e){return(0,ee.jsxs)(be.Ay.Li,{children:[(0,ee.jsx)(kn,{type:"checkbox",checked:!e.folded,onChange:function(){return n=e.id,void c((function(e){return e.reduce((function(e,t){return[].concat(w()(e),[Cn(Cn({},t),{},{folded:t.id===n?!t.folded:t.folded})])}),[])}));var n},id:e.id}),(0,ee.jsx)(be.Ay.Label,{for:e.id,children:e.label})]},e.id)}));return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(Pn,{children:l}),(0,ee.jsx)(An.C6,{children:(0,ee.jsx)(wn.A,{type:"button",onClick:s,ink:"primary",look:"raised",children:gn||(gn=(0,ee.jsx)(G.A,{id:"client.common.ok"}))})})]})};function Dn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dn(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Mn=function(e,n){return"".concat(e+1,":").concat(n)},In=function(e){return null===e.position},Bn=function(e){var n=e.filter(In),t=e.filter((function(e){return!In(e)}));return n.reduce((function(e,n){var t=function(e){var n=w()(Array(2).keys()).reduce((function(n,t){return Nn(Nn({},n),{},d()({},t,e.filter((function(e){return e.col===t})).length))}),{}),t=Object.keys(n).reduce((function(e,t){var r=parseInt(t,10);return n[r]<e.numberOfBoxes?{col:r,numberOfBoxes:n[r]}:e}),{col:-1,numberOfBoxes:Number.MAX_VALUE});return-1===t.col?{col:0,numberOfBoxes:0}:t}(e),r=t.col,o=t.numberOfBoxes;return[].concat(w()(e),[Nn(Nn({},n),{},{col:r,row:o})])}),t)},Rn=function(e){return V(Bn(e.map((function(e){return Nn(Nn({},e),function(e){if(!e)return{col:0,row:0};var n=e.split(":"),t=parseInt(n[0],10)-1,r=parseInt(n[1],10);return{col:Math.max(0,t),row:r}}(e.position))}))))};function Ln(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _n(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ln(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Wn=bn().mark(Kn),Un=bn().mark(Gn),Fn=bn().mark(Qn),Hn=bn().mark(Xn),zn=bn().mark(Zn),Vn=bn().mark($n),qn=function(e){return e.dashboard};function Kn(){return bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,xn.Q7)([(0,xn.T1)(Gn),(0,xn.p8)(g,Gn),(0,xn.p8)(b,Jn),(0,xn.p8)(v,Yn),(0,xn.jP)(x,Qn),(0,xn.jP)(j,Zn)]);case 2:case"end":return e.stop()}}),Wn)}function Gn(){var e,n,t;return bn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={method:"GET"},r.next=3,(0,xn.T1)(jn.A.requestSaga,"client/dashboard",e);case 3:return n=r.sent,t=n.body.infoboxes,r.next=7,(0,xn.yJ)(O(Rn(t)));case 7:return r.abrupt("return",t);case 8:case"end":return r.stop()}}),Un)}function Jn(e){var n=e.payload.infoBoxes;return bn().mark((function e(){var t,r;return bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.map((function(e){return _n(_n({},e),{},{position:Mn(e.col,e.row)})})),r=t.reduce((function(e,n){return _n(_n({},e),{},d()({},"".concat(n.id,":POSITION"),n.position))}),{}),e.next=4,(0,xn.T1)($n,r);case 4:return e.next=6,(0,xn.yJ)(O(t));case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)}))()}function Yn(e){var n=e.payload,t=n.id,r=n.height;return bn().mark((function e(){var n,o,i,a;return bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,xn.Lt)(qn);case 2:return n=e.sent,o=n.infoBoxes,i=o.map((function(e){return _n(_n({},e),{},{height:e.id===t?r:e.height})})),a=d()({},"".concat(t,":HEIGHT"),r),e.next=8,(0,xn.T1)($n,a);case 8:return e.next=10,(0,xn.yJ)(O(i));case 10:return e.abrupt("return",i);case 11:case"end":return e.stop()}}),e)}))()}function Qn(){var e,n,t;return bn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,xn.Lt)(qn);case 2:return e=r.sent,n=e.infoBoxes,r.next=6,(0,xn.T1)(vn.Ix);case 6:return t=r.sent,r.next=9,(0,xn.yJ)(h.A.modal("dashboard-infobox-settings","client.dashboard.preferences.show.title",null,(function(e){var r=e.close;return(0,ee.jsx)(Tn,{initialInfoBoxes:n,onOk:function(e){r(),t.put(e)}})}),!0));case 9:return r.next=11,(0,xn.T1)(Xn,t);case 11:case"end":return r.stop()}}),Fn)}function Xn(e){var n,t;return bn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,xn.s)(e);case 2:return n=r.sent,t=n.reduce((function(e,n){return _n(_n({},e),{},d()({},"".concat(n.id,":STATUS"),n.folded?"folded":"open"))}),{}),r.next=6,(0,xn.T1)($n,t);case 6:return r.next=8,(0,xn.yJ)(O(n));case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),Hn)}function Zn(){return bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,xn.Q7)([(0,xn.T1)(jn.A.deleteUserPreferences,"*:HEIGHT"),(0,xn.T1)(jn.A.deleteUserPreferences,"*:POSITION"),(0,xn.T1)(jn.A.deleteUserPreferences,"*:STATUS")]);case 2:return e.next=4,(0,xn.T1)(Gn);case 4:case"end":return e.stop()}}),zn)}function $n(e){return bn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,xn.T1)(jn.A.savePreferences,e,"/nice2/ui/settings/infoboxes");case 2:case"end":return n.stop()}}),Vn)}const et={dashboard:fn};var nt,tt=[Kn];function rt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var ot="dashboard",it=["emitAction"],at=function(e,n,t,r){var o=nt||(nt=(0,ee.jsx)(ln,{})),a=y.A.createStore(et,tt,n,ot);i.A.addToStore(a,(function(e){return e.input.emitAction}));var c=!t.emitAction;return h.A.addToStore(a,c),l.A.addToStore(a,c,["console","remote","notification"]),y.A.createApp(ot,o,a,{input:n,events:t,actions:[],publicPath:r,textResourceModules:["component","common","entity-list",ot]})},ct=function(e){return y.A.useApp({initApp:at,props:e,packageName:ot,externalEvents:it}).component};ct.propTypes=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rt(Object(t),!0).forEach((function(n){d()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({navigationStrategy:f().object},it.reduce((function(e,n){return e[n]=f().func,e}),{}));const st=ct;var lt,ut,dt,pt=t(17764),ft=t(66789),yt=Z.Ay.div.withConfig({displayName:"StyledWrapper"})(lt||(lt=X()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n height: 100%;\n width: 100%;\n"]))),ht=Z.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(ut||(ut=X()(["\n grid-area: breadcrumbs;\n"]))),gt=Z.Ay.div.withConfig({displayName:"StyledDashboardWrapper"})(dt||(dt=X()(["\n width: 100%;\n height: 100%;\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n align-items: flex-end;\n grid-area: content;\n\n @media (max-width: 568px) {\n justify-content: center;\n align-items: center;\n }\n"])),le.A.color("backgroundBody")),mt=function(e){var n,t=e.emitAction,r=e.intl,o=e.baseRoute,i=(0,s.Zp)();return(0,ee.jsxs)(yt,{children:[(0,ee.jsx)(ht,{children:(0,ee.jsx)(l.A.ErrorBoundary,{children:(0,ee.jsx)(pt.A,{currentView:{display:(n="client.admin.dashboard",r.formatMessage({id:n})),title:"Tocco",type:"home"},pathPrefix:"/dashboard"})})}),(0,ee.jsx)(gt,{children:(0,ee.jsx)(st,{emitAction:t,navigationStrategy:(0,ft.Ay)(i,o)})})]})};const bt=c().memo(mt,(function(){return!0}));var vt={emitAction:function(e){return i.A.dispatchEmittedAction(e)}};const xt=(0,o.Ng)((function(e){return{baseRoute:e.input.baseRoute}}),vt)((0,r.Ay)(bt))},17276:(e,n,t)=>{t.d(n,{BN:()=>p,DD:()=>w,EC:()=>c,Hp:()=>x,Ss:()=>d,UP:()=>r,Ux:()=>v,VQ:()=>s,XE:()=>O,aY:()=>j,f2:()=>a,fQ:()=>m,gU:()=>f,he:()=>h,iL:()=>l,iq:()=>o,j_:()=>g,oi:()=>b,ol:()=>y,pU:()=>A,vb:()=>i,yX:()=>u});var r="path/RESET_PATH_INFOS",o="path/SET_CURRENT_VIEW_INFO",i="path/LOAD_CURRENT_ROUTE",a="path/SET_BREADCRUMBS_INFO",c="path/UPDATE_BREADCRUMBS_INFO",s="path/SET_RELATIONS",l="path/SET_CURRENT_VIEW_TITLE",u="path/SET_RELATIONS_INFO",d="path/PROPAGATE_REFRESH",p="path/INVALIDATE_LAST_BREADCRUMB",f="path/SELECT_RELATION",y=function(){return{type:r}},h=function(e,n){return{type:o,payload:{location:e,currentViewInfo:n}}},g=function(e){return{type:i,payload:{pathname:e}}},m=function(e){return{type:a,payload:{breadcrumbsInfo:e}}},b=function(e,n){return{type:c,payload:{path:e,breadcrumbsInfo:n}}},v=function(e){return{type:s,payload:{relations:e}}},x=function(e){return{type:l,payload:{currentViewTitle:e}}},j=function(e){return{type:u,payload:{relationsInfo:e}}},O=function(e){return{type:d,payload:{location:e}}},A=function(e){return{type:p,payload:{location:e}}},w=function(e){return{type:f,payload:{selectedRelation:e}}}},66789:(e,n,t)=>{t.d(n,{Ay:()=>A});var r=t(26396),o=t.n(r),i=t(39892),a=t.n(i),c=t(38798),s=t(23409),l=t(82237),u=t(56375),d=t(12956),p=t(45588),f=t(74848),y=["entityName","entityKey","relationName","children"],h=["entityName","entityKey","children"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=(0,c.Ay)((function(e){var n,t=e.entityKey,r=(e.entityModel,e.children),o=e.relation,i=e.intl,a=e.target;return(0,f.jsx)(l.A,{"aria-label":(n="client.component.navigationStrategy.detailLinkRelative",i.formatMessage({id:n})),to:"../".concat(o?o+"/":"").concat(t),target:a,children:r})})),v=function(e){var n=e.entityName,t=e.entityKey,r=e.relationName,o=e.children,i=a()(e,y);return(0,f.jsx)(l.A,m(m({to:"/e/".concat(n,"/").concat(t,"/").concat(r),target:"_blank"},i),{},{children:o}))},x=function(e){var n=e.entityName,t=e.entityKey,r=e.children,o=a()(e,h);return(0,f.jsx)(l.A,m(m({to:"/e/".concat(n,"/").concat(t),target:"_blank"},o),{},{children:r}))},j=function(e){var n=e.entityName,t=e.entityKeys,r=e.children;if((0,s.PE)(n))return(0,f.jsx)(u.Ay.Span,{children:r});var o=(null==t?void 0:t.length)&&"tql=KEYS("+t.join(",")+")";return(0,f.jsx)(l.A,{to:{pathname:"/e/".concat(n,"/list"),search:"?".concat(o)},target:"_blank",children:r})},O=function(e){var n=e.entityName,t=e.entityKeys,r=e.children;return 1===(null==t?void 0:t.length)?(0,f.jsx)(x,{entityName:n,entityKey:t[0],children:r}):(0,f.jsx)(j,{entityName:n,entityKeys:t,children:r})};const A=function(e,n){var t=function(t){var r=t.pathname,o=t.search,i=t.hash,a=t.inNewTab;if(void 0!==a&&a){var c=function(e,n){var t=e.pathname,r=e.search,o=e.hash,i=n.basename,a=void 0===i?"":i,c=t;return"/"!==a&&(c="/"===t?a:[a,t].join("/").replace(/\/\/+/g,"/")),(0,p.AO)({pathname:c,search:r,hash:o})}({pathname:r,search:o,hash:i},{basename:n});window.open(c,"_blank")}else e({pathname:r})};return{RelationLink:v,DetailLink:x,ListLink:j,ListOrDetailLink:O,DetailLinkRelative:b,navigateToCreateRelative:function(n,t){e(n?"".concat(n,"/create"):"../create",{state:t})},navigateToActionRelative:function(n,t){var r=d.A.toQueryString({selection:t,actionProperties:n.properties});e({pathname:"../action/"+n.appId,search:r},{state:{definition:n,selection:t}})},navigateToPath:t,openDetail:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o="/e/".concat(e,"/").concat(n);t({pathname:o,inNewTab:r})}}}},76255:e=>{e.exports=JSON.parse('{"name":"tocco-admin","version":"3.12.72","description":"Alpha version of new tocco admin.","license":"AGPL-3.0+","main":"dist/index.js","scripts":{"compile:prod":"cd ../../../ && yarn run compile:prod --package=admin","prepack":"yarn run compile:prod","test":"jest"},"devDependencies":{"tocco-acl-browser":"*","tocco-address-check":"*","tocco-app-extensions":"*","tocco-connect-principal":"*","tocco-copy":"*","tocco-dashboard":"*","tocco-delete":"*","tocco-docs-browser":"*","tocco-entity-detail":"*","tocco-entity-list":"*","tocco-entity-model-browser":"*","tocco-entity-report":"*","tocco-evaluation-view":"*","tocco-event-logic-copy":"*","tocco-exam-edit":"*","tocco-export":"*","tocco-history":"*","tocco-initialvalue-generator":"*","tocco-input-edit":"*","tocco-log":"*","tocco-login":"*","tocco-massmutation":"*","tocco-merge":"*","tocco-outlook-add-in-connector":"*","tocco-reload-configuration":"*","tocco-resource-scheduler":"*","tocco-restore-entity":"*","tocco-sso-login":"*","tocco-test-util":"*","tocco-two-factor-connector":"*","tocco-ui":"*","tocco-user-qr-action":"*","tocco-util":"*","tocco-widget-code-copy":"*","tocco-widget-config-edit":"*","tocco-widget-visibility-status-code-copy":"*"}}')}}]);