@cc-openmrs/cc-esm-active-prescriptions 1.0.62 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cc-openmrs-cc-esm-active-prescriptions-1.0.63.tgz +0 -0
- package/dist/282.js +2 -0
- package/dist/282.js.LICENSE.txt +32 -0
- package/dist/319.js +1 -1
- package/dist/335.js +1 -1
- package/dist/353.js +1 -1
- package/dist/382.js +1 -0
- package/dist/437.js +1 -0
- package/dist/478.js +2 -0
- package/dist/499.js +1 -1
- package/dist/537.js +1 -1
- package/dist/774.js +2 -0
- package/dist/{795.js.LICENSE.txt → 774.js.LICENSE.txt} +0 -10
- package/dist/966.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +20 -0
- package/dist/openmrs-esm-template-app.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +86 -265
- package/dist/routes.json +1 -1
- package/package.json +26 -35
- package/src/index.ts +6 -30
- package/src/prescriptions-actions/prescriptions-action-button.component.tsx +9 -5
- package/dist/225.js +0 -1
- package/dist/279.js +0 -2
- package/dist/279.js.LICENSE.txt +0 -14
- package/dist/41.js +0 -1
- package/dist/422.js +0 -2
- package/dist/606.js +0 -2
- package/dist/606.js.LICENSE.txt +0 -9
- package/dist/635.js +0 -1
- package/dist/692.js +0 -2
- package/dist/692.js.LICENSE.txt +0 -9
- package/dist/795.js +0 -2
- package/dist/845.js +0 -1
- package/dist/993.js +0 -1
- /package/dist/{422.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
|
Binary file
|
package/dist/282.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 282.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[282],{282(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>q,Await:()=>tr,BrowserRouter:()=>Or,Form:()=>Wr,HashRouter:()=>Fr,Link:()=>zr,MemoryRouter:()=>Yt,NavLink:()=>Hr,Navigate:()=>Xt,NavigationType:()=>n,Outlet:()=>Gt,Route:()=>Qt,Router:()=>Zt,RouterProvider:()=>Ur,Routes:()=>er,ScrollRestoration:()=>Kr,UNSAFE_DataRouterContext:()=>nt,UNSAFE_DataRouterStateContext:()=>at,UNSAFE_ErrorResponseImpl:()=>te,UNSAFE_FetchersContext:()=>Lr,UNSAFE_LocationContext:()=>st,UNSAFE_NavigationContext:()=>it,UNSAFE_RouteContext:()=>lt,UNSAFE_ViewTransitionContext:()=>Cr,UNSAFE_useRouteId:()=>Mt,UNSAFE_useScrollRestoration:()=>on,createBrowserRouter:()=>Sr,createHashRouter:()=>Rr,createMemoryRouter:()=>ur,createPath:()=>y,createRoutesFromChildren:()=>ir,createRoutesFromElements:()=>ir,createSearchParams:()=>mr,defer:()=>G,generatePath:()=>A,isRouteErrorResponse:()=>re,json:()=>J,matchPath:()=>U,matchRoutes:()=>R,parsePath:()=>g,redirect:()=>Q,redirectDocument:()=>Z,renderMatches:()=>sr,replace:()=>ee,resolvePath:()=>F,unstable_HistoryRouter:()=>Nr,unstable_usePrompt:()=>ln,useActionData:()=>It,useAsyncError:()=>Wt,useAsyncValue:()=>Ht,useBeforeUnload:()=>sn,useBlocker:()=>$t,useFetcher:()=>tn,useFetchers:()=>rn,useFormAction:()=>en,useHref:()=>ct,useInRouterContext:()=>dt,useLinkClickHandler:()=>Yr,useLoaderData:()=>Nt,useLocation:()=>ht,useMatch:()=>pt,useMatches:()=>Ft,useNavigate:()=>vt,useNavigation:()=>jt,useNavigationType:()=>ft,useOutlet:()=>bt,useOutletContext:()=>gt,useParams:()=>wt,useResolvedPath:()=>Et,useRevalidator:()=>Ot,useRouteError:()=>zt,useRouteLoaderData:()=>Bt,useRoutes:()=>St,useSearchParams:()=>Xr,useSubmit:()=>Zr,useViewTransitionState:()=>un});var n,a=r(6072),o=r.t(a,2),i=r(961),s=r.t(i,2);function l(){return l=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},l.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const u="popstate";function c(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),s=n.Pop,l=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[i]}function d(e,r,n){void 0===r&&(r=null);let a=v(t?c().pathname:"/",e,r,n);return p("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function h(e){return"string"==typeof e?e:y(e)}return{get index(){return i},get action(){return s},get location(){return c()},createHref:h,createURL:e=>new URL(h(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s=n.Push;let a=d(e,r);i+=1,t.splice(i,t.length,a),o&&l&&l({action:s,location:a,delta:1})},replace(e,r){s=n.Replace;let a=d(e,r);t[i]=a,o&&l&&l({action:s,location:a,delta:0})},go(e){s=n.Pop;let r=u(i+e),a=t[r];i=r,l&&l({action:s,location:a,delta:e})},listen:e=>(l=e,()=>{l=null})}}function d(e){return void 0===e&&(e={}),b(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return v("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:y(t)},null,e)}function h(e){return void 0===e&&(e={}),b(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=g(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),v("",{pathname:r,search:n,hash:a},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:y(t))},function(e,t){p("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function f(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function v(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function y(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 g(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 b(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,s=o.history,c=n.Pop,d=null,h=p();function p(){return(s.state||{idx:null}).idx}function g(){c=n.Pop;let e=p(),t=null==e?null:e-h;h=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:y(e);return r=r.replace(/ $/,"%20"),f(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==h&&(h=0,s.replaceState(l({},s.state,{idx:h}),""));let w={get action(){return c},get location(){return e(o,s)},listen(e){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(u,g),d=e,()=>{o.removeEventListener(u,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=v(w.location,e,t);r&&r(a,e),h=p()+1;let l=m(a,h),u=w.createHref(a);try{s.pushState(l,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(u)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=v(w.location,e,t);r&&r(a,e),h=p();let o=m(a,h),l=w.createHref(a);s.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>s.go(e)};return w}var w;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(w||(w={}));const E=new Set(["lazy","caseSensitive","path","id","index","children"]);function S(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(f(!0!==e.index||!e.children,"Cannot specify children on an index route"),f(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=S(e.children,t,o,n)),r}})}function R(e,t,r){return void 0===r&&(r="/"),x(e,t,r,!1)}function x(e,t,r,n){let a=j(("string"==typeof t?g(t):t).pathname||"/",r);if(null==a)return null;let o=C(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=M(a);i=_(o[e],t,n)}return i}function D(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function C(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(f(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=W([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),C(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:T(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 L(e.path))a(e,t,r);else a(e,t)}),t}function L(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=L(n.join("/")),s=[];return s.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const P=/^:[\w-]+$/,k=e=>"*"===e;function T(e,t){let r=e.split("/"),n=r.length;return r.some(k)&&(n+=-2),t&&(n+=2),r.filter(e=>!k(e)).reduce((e,t)=>e+(P.test(t)?3:""===t?1:10),n)}function _(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:W([o,c.pathname]),pathnameBase:K(W([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=W([o,c.pathnameBase]))}return i}function A(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(p(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return f("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function U(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),p("*"===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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=s[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function M(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!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 j(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)||"/"}const O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function F(e,t){void 0===t&&(t="/");let r,{pathname:n,search:a="",hash:o=""}="string"==typeof e?g(e):e;if(n)if(i=n,O.test(i))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),p(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+n)}r=n.startsWith("/")?N(n.substring(1),"/"):N(n,t)}else r=t;var i;return{pathname:r,search:$(a),hash:V(o)}}function N(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("/"):"/"}function B(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 z(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 H(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=g(e):(a=l({},e),f(!a.pathname||!a.pathname.includes("?"),B("?","pathname","search",a)),f(!a.pathname||!a.pathname.includes("#"),B("#","pathname","hash",a)),f(!a.search||!a.search.includes("#"),B("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=F(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return u.pathname.endsWith("/")||!c&&!d||(u.pathname+="/"),u}const W=e=>e.join("/").replace(/\/\/+/g,"/"),K=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",J=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class q extends Error{}class Y{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],f(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return f(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:X(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function X(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const G=function(e,t){return void 0===t&&(t={}),new Y(e,"number"==typeof t?{status:t}:t)},Q=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},Z=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ee=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Replace","true"),r};class te{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 re(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const ne=["post","put","patch","delete"],ae=new Set(ne),oe=["get",...ne],ie=new Set(oe),se=new Set([301,302,303,307,308]),le=new Set([307,308]),ue={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ce={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},de={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},he=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),pe="remix-router-transitions";function me(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,a=!r;let o;if(f(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=fe;let i,s,u,c={},d=S(e.routes,o,void 0,c),h=e.basename||"/",m=e.dataStrategy||De,y=e.patchRoutesOnNavigation,g=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,C=new Set,L=null,P=null,k=null,T=null!=e.hydrationData,_=R(d,e.history.location,h),A=!1,U=null;if(null==_&&!y){let t=Fe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Oe(d);_=r,U={[n.id]:t}}if(_&&!e.hydrationData&&ct(_,d,e.history.location.pathname).active&&(_=null),_)if(_.some(e=>e.route.lazy))s=!1;else if(_.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=_.findIndex(e=>void 0!==r[e.route.id]);s=_.slice(0,e+1).every(e=>!we(e.route,t,r))}else s=_.every(e=>!we(e.route,t,r))}else s=null!=e.hydrationData;else s=!0;else if(s=!1,_=[],g.v7_partialHydration){let t=ct(null,d,e.history.location.pathname);t.active&&t.matches&&(A=!0,_=t.matches)}let M,O,F={historyAction:e.history.action,location:e.history.location,matches:_,initialized:s,navigation:ue,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||U,fetchers:new Map,blockers:new Map},N=n.Pop,B=!1,I=!1,z=new Map,H=null,W=!1,K=!1,$=[],V=new Set,J=new Map,q=0,Y=-1,X=new Map,G=new Set,Q=new Map,Z=new Map,ee=new Set,te=new Map,ne=new Map;function ae(e,t){void 0===t&&(t={}),F=l({},F,e);let r=[],n=[];g.v7_fetcherPersist&&F.fetchers.forEach((e,t)=>{"idle"===e.state&&(ee.has(t)?n.push(t):r.push(t))}),ee.forEach(e=>{F.fetchers.has(e)||J.has(e)||n.push(e)}),[...C].forEach(e=>e(F,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>F.fetchers.delete(e)),n.forEach(e=>Be(e))):n.forEach(e=>ee.delete(e))}function oe(t,r,a){var o,s;let u,{flushSync:c}=void 0===a?{}:a,h=null!=F.actionData&&null!=F.navigation.formMethod&&Ve(F.navigation.formMethod)&&"loading"===F.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:h?F.actionData:null;let f=r.loaderData?Ue(F.loaderData,r.loaderData,r.matches||[],r.errors):F.loaderData,p=F.blockers;p.size>0&&(p=new Map(p),p.forEach((e,t)=>p.set(t,de)));let m,v=!0===B||null!=F.navigation.formMethod&&Ve(F.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(i&&(d=i,i=void 0),W||N===n.Pop||(N===n.Push?e.history.push(t,t.state):N===n.Replace&&e.history.replace(t,t.state)),N===n.Pop){let e=z.get(F.location.pathname);e&&e.has(t.pathname)?m={currentLocation:F.location,nextLocation:t}:z.has(t.pathname)&&(m={currentLocation:t,nextLocation:F.location})}else if(I){let e=z.get(F.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(F.location.pathname,e)),m={currentLocation:F.location,nextLocation:t}}ae(l({},r,{actionData:u,loaderData:f,historyAction:N,location:t,initialized:!0,navigation:ue,revalidation:"idle",restoreScrollPosition:ut(t,r.matches||F.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),N=n.Pop,B=!1,I=!1,W=!1,K=!1,$=[]}async function ie(t,r,a){M&&M.abort(),M=null,N=t,W=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(L&&k){let r=lt(e,t);L[r]=k()}}(F.location,F.matches),B=!0===(a&&a.preventScrollReset),I=!0===(a&&a.enableViewTransition);let o=i||d,s=a&&a.overrideNavigation,u=null!=a&&a.initialHydration&&F.matches&&F.matches.length>0&&!A?F.matches:R(o,r,h),c=!0===(a&&a.flushSync);if(u&&F.initialized&&!K&&(f=F.location,p=r,f.pathname===p.pathname&&f.search===p.search&&(""===f.hash?""!==p.hash:f.hash===p.hash||""!==p.hash))&&!(a&&a.submission&&Ve(a.submission.formMethod)))return void oe(r,{matches:u},{flushSync:c});var f,p;let m=ct(u,o,r.pathname);if(m.active&&m.matches&&(u=m.matches),!u){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return void oe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}M=new AbortController;let v,y=ke(e.history,r,M.signal,a&&a.submission);if(a&&a.pendingError)v=[je(u).route.id,{type:w.error,error:a.pendingError}];else if(a&&a.submission&&Ve(a.submission.formMethod)){let t=await async function(t,r,a,o,i,s){void 0===s&&(s={}),Se();let l,u=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(r,a);if(ae({navigation:u},{flushSync:!0===s.flushSync}),i){let e=await dt(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=je(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:w.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:n}=it(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:w.error,error:t}]}}o=e.matches}let c=Ge(o,r);if(c.route.action||c.route.lazy){if(l=(await ge("action",F,t,[c],o,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else l={type:w.error,error:Fe(405,{method:t.method,pathname:r.pathname,routeId:c.route.id})};if(We(l)){let r;return r=s&&null!=s.replace?s.replace:Pe(l.response.headers.get("Location"),new URL(t.url),h,e.history)===F.location.pathname+F.location.search,await me(t,l,!0,{submission:a,replace:r}),{shortCircuited:!0}}if(ze(l))throw Fe(400,{type:"defer-action"});if(He(l)){let e=je(o,c.route.id);return!0!==(s&&s.replace)&&(N=n.Push),{matches:o,pendingActionResult:[e.route.id,l]}}return{matches:o,pendingActionResult:[c.route.id,l]}}(y,r,a.submission,u,m.active,{replace:a.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(He(n)&&re(n.error)&&404===n.error.status)return M=null,void oe(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,v=t.pendingActionResult,s=Ze(r,a.submission),c=!1,m.active=!1,y=ke(e.history,y.url,y.signal)}let{shortCircuited:b,matches:E,loaderData:S,errors:x}=await async function(t,r,n,a,o,s,u,c,f,p,m){let v=o||Ze(r,s),y=s||u||Qe(v),b=!(W||g.v7_partialHydration&&f);if(a){if(b){let e=se(m);ae(l({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await dt(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=je(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}n=e.matches}let w=i||d,[E,S]=be(e.history,F,n,y,r,g.v7_partialHydration&&!0===f,g.v7_skipActionErrorRevalidation,K,$,V,ee,Q,G,w,h,m);if(st(e=>!(n&&n.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),Y=++q,0===E.length&&0===S.length){let e=Xe();return oe(r,l({matches:n,loaderData:{},errors:m&&He(m[1])?{[m[0]]:m[1].error}:null},Me(m),e?{fetchers:new Map(F.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(b){let e={};if(!a){e.navigation=v;let t=se(m);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=F.fetchers.get(e.key),r=et(void 0,t?t.data:void 0);F.fetchers.set(e.key,r)}),new Map(F.fetchers)}(S)),ae(e,{flushSync:p})}S.forEach(e=>{Ke(e.key),e.controller&&J.set(e.key,e.controller)});let R=()=>S.forEach(e=>Ke(e.key));M&&M.signal.addEventListener("abort",R);let{loaderResults:x,fetcherResults:D}=await Ee(F,n,E,S,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",R),S.forEach(e=>J.delete(e.key));let C=Ne(x);if(C)return await me(t,C.result,!0,{replace:c}),{shortCircuited:!0};if(C=Ne(D),C)return G.add(C.key),await me(t,C.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:P}=Ae(F,n,x,m,S,D,te);te.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&te.delete(t)})}),g.v7_partialHydration&&f&&F.errors&&(P=l({},F.errors,P));let k=Xe(),T=rt(Y),_=k||T||S.length>0;return l({matches:n,loaderData:L,errors:P},_?{fetchers:new Map(F.fetchers)}:{})}(y,r,u,m.active,s,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,c,v);b||(M=null,oe(r,l({matches:E||u},Me(v),{loaderData:S,errors:x})))}function se(e){return e&&!He(e[1])?{[e[0]]:e[1].data}:F.actionData?0===Object.keys(F.actionData).length?null:F.actionData:void 0}async function me(a,o,i,s){let{submission:u,fetcherSubmission:c,preventScrollReset:d,replace:p}=void 0===s?{}:s;o.response.headers.has("X-Remix-Revalidate")&&(K=!0);let m=o.response.headers.get("Location");f(m,"Expected a Location header on the redirect Response"),m=Pe(m,new URL(a.url),h,e.history);let y=v(F.location,m,{_isRedirect:!0});if(r){let r=!1;if(o.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(he.test(m)){const n=e.history.createURL(m);r=n.origin!==t.location.origin||null==j(n.pathname,h)}if(r)return void(p?t.location.replace(m):t.location.assign(m))}M=null;let g=!0===p||o.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:w,formEncType:E}=F.navigation;!u&&!c&&b&&w&&E&&(u=Qe(F.navigation));let S=u||c;if(le.has(o.response.status)&&S&&Ve(S.formMethod))await ie(g,y,{submission:l({},S,{formAction:m}),preventScrollReset:d||B,enableViewTransition:i?I:void 0});else{let e=Ze(y,u);await ie(g,y,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:d||B,enableViewTransition:i?I:void 0})}}async function ge(e,t,r,n,a,i){let s,u={};try{s=await async function(e,t,r,n,a,o,i,s,u,c){let d=o.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];f(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;p(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||E.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}(e.route,u,s):void 0),h=o.map((e,r)=>{let o=d[r],i=a.some(t=>t.route.id===e.route.id);return l({},e,{shouldLoad:i,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,r,n,a,o){let i,s,l=n=>{let i,l=new Promise((e,t)=>i=t);s=()=>i(),t.signal.addEventListener("abort",s);let u=a=>"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:o},...void 0!==a?[a]:[]),c=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,l])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else{if(await n,a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Fe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:w.data,result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw Fe(404,{pathname:e.pathname+e.search})}i=await l(a)}f(void 0!==i.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:w.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,n,e,o,r,c):Promise.resolve({type:w.data,result:void 0}))})}),m=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(d)}catch(e){}return m}(m,e,0,r,n,a,i,c,o)}catch(e){return n.forEach(t=>{u[t.route.id]={type:w.error,error:e}}),u}for(let[e,t]of Object.entries(s))if(Ie(t)){let n=t.result;u[e]={type:w.redirect,response:Le(n,r,e,a,h,g.v7_relativeSplatPath)}}else u[e]=await Ce(t);return u}async function Ee(t,r,n,a,o){let i=t.matches,s=ge("loader",0,o,n,r,null),l=Promise.all(a.map(async t=>{if(t.matches&&t.match&&t.controller){let r=(await ge("loader",0,ke(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:r}}return Promise.resolve({[t.key]:{type:w.error,error:Fe(404,{pathname:t.path})}})})),u=await s,c=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Je(r,u,o.signal,i,t.loaderData),qe(r,c,a)]),{loaderResults:u,fetcherResults:c}}function Se(){K=!0,$.push(...st()),Q.forEach((e,t)=>{J.has(t)&&V.add(t),Ke(t)})}function xe(e,t,r){void 0===r&&(r={}),F.fetchers.set(e,t),ae({fetchers:new Map(F.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Te(e,t,r,n){void 0===n&&(n={});let a=je(F.matches,t);Be(e),ae({errors:{[a.route.id]:r},fetchers:new Map(F.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function _e(e){return Z.set(e,(Z.get(e)||0)+1),ee.has(e)&&ee.delete(e),F.fetchers.get(e)||ce}function Be(e){let t=F.fetchers.get(e);!J.has(e)||t&&"loading"===t.state&&X.has(e)||Ke(e),Q.delete(e),X.delete(e),G.delete(e),g.v7_fetcherPersist&&ee.delete(e),V.delete(e),F.fetchers.delete(e)}function Ke(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function $e(e){for(let t of e){let e=tt(_e(t).data);F.fetchers.set(t,e)}}function Xe(){let e=[],t=!1;for(let r of G){let n=F.fetchers.get(r);f(n,"Expected fetcher: "+r),"loading"===n.state&&(G.delete(r),e.push(r),t=!0)}return $e(e),t}function rt(e){let t=[];for(let[r,n]of X)if(n<e){let e=F.fetchers.get(r);f(e,"Expected fetcher: "+r),"loading"===e.state&&(Ke(r),X.delete(r),t.push(r))}return $e(t),t.length>0}function nt(e){F.blockers.delete(e),ne.delete(e)}function at(e,t){let r=F.blockers.get(e)||de;f("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(F.blockers);n.set(e,t),ae({blockers:n})}function ot(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ne.size)return;ne.size>1&&p(!1,"A router only supports one blocker at a time");let a=Array.from(ne.entries()),[o,i]=a[a.length-1],s=F.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function it(e){let t=Fe(404,{pathname:e}),r=i||d,{matches:n,route:a}=Oe(r);return st(),{notFoundMatches:n,route:a,error:t}}function st(e){let t=[];return te.forEach((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),te.delete(n))}),t}function lt(e,t){return P&&P(e,t.map(e=>D(e,F.loaderData)))||e.key}function ut(e,t){if(L){let r=lt(e,t),n=L[r];if("number"==typeof n)return n}return null}function ct(e,t,r){if(y){if(!e)return{active:!0,matches:x(t,r,h,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:x(t,r,h,!0)}}return{active:!1,matches:null}}async function dt(e,t,r,n){if(!y)return{type:"success",matches:e};let a=e;for(;;){let e=null==i,s=i||d,l=c;try{await y({signal:r,path:t,matches:a,fetcherKey:n,patch:(e,t)=>{r.aborted||Re(e,t,s,l,o)}})}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&!r.aborted&&(d=[...d])}if(r.aborted)return{type:"aborted"};let u=R(s,t,h);if(u)return{type:"success",matches:u};let f=x(s,t,h,!0);if(!f||a.length===f.length&&a.every((e,t)=>e.route.id===f[t].route.id))return{type:"success",matches:null};a=f}}return u={get basename(){return h},get future(){return g},get state(){return F},get routes(){return d},get window(){return t},initialize:function(){if(b=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(O)return O(),void(O=void 0);p(0===ne.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ot({currentLocation:F.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{O=e});return e.history.go(-1*a),void at(o,{state:"blocked",location:n,proceed(){at(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(F.blockers);e.set(o,de),ae({blockers:e})}})}return ie(r,n)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(pe);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,z);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(pe,JSON.stringify(r))}catch(e){p(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,z);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return F.initialized||ie(n.Pop,F.location,{initialHydration:!0}),u},subscribe:function(e){return C.add(e),()=>C.delete(e)},enableScrollRestoration:function(e,t,r){if(L=e,k=t,P=r||null,!T&&F.navigation===ue){T=!0;let e=ut(F.location,F.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{L=null,k=null,P=null}},navigate:async function t(r,a){if("number"==typeof r)return void e.history.go(r);let o=ve(F.location,F.matches,h,g.v7_prependBasename,r,g.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:i,submission:s,error:u}=ye(g.v7_normalizeFormMethod,!1,o,a),c=F.location,d=v(F.location,i,a&&a.state);d=l({},d,e.history.encodeLocation(d));let f=a&&null!=a.replace?a.replace:void 0,p=n.Push;!0===f?p=n.Replace:!1===f||null!=s&&Ve(s.formMethod)&&s.formAction===F.location.pathname+F.location.search&&(p=n.Replace);let m=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,y=!0===(a&&a.flushSync),b=ot({currentLocation:c,nextLocation:d,historyAction:p});if(!b)return await ie(p,d,{submission:s,pendingError:u,preventScrollReset:m,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:y});at(b,{state:"blocked",location:d,proceed(){at(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,a)},reset(){let e=new Map(F.blockers);e.set(b,de),ae({blockers:e})}})},fetch:function(t,r,n,o){if(a)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.");Ke(t);let s=!0===(o&&o.flushSync),l=i||d,u=ve(F.location,F.matches,h,g.v7_prependBasename,n,g.v7_relativeSplatPath,r,null==o?void 0:o.relative),c=R(l,u,h),p=ct(c,l,u);if(p.active&&p.matches&&(c=p.matches),!c)return void Te(t,r,Fe(404,{pathname:u}),{flushSync:s});let{path:m,submission:v,error:y}=ye(g.v7_normalizeFormMethod,!0,u,o);if(y)return void Te(t,r,y,{flushSync:s});let b=Ge(c,m),w=!0===(o&&o.preventScrollReset);v&&Ve(v.formMethod)?async function(t,r,n,a,o,s,l,u,c){function p(e){if(!e.route.action&&!e.route.lazy){let e=Fe(405,{method:c.formMethod,pathname:n,routeId:r});return Te(t,r,e,{flushSync:l}),!0}return!1}if(Se(),Q.delete(t),!s&&p(a))return;let m=F.fetchers.get(t);xe(t,function(e,t){return{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}}(c,m),{flushSync:l});let v=new AbortController,y=ke(e.history,n,v.signal,c);if(s){let e=await dt(o,new URL(y.url).pathname,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,r,e.error,{flushSync:l});if(!e.matches)return void Te(t,r,Fe(404,{pathname:n}),{flushSync:l});if(p(a=Ge(o=e.matches,n)))return}J.set(t,v);let b=q,w=(await ge("action",0,y,[a],o,t))[a.route.id];if(y.signal.aborted)return void(J.get(t)===v&&J.delete(t));if(g.v7_fetcherPersist&&ee.has(t)){if(We(w)||He(w))return void xe(t,tt(void 0))}else{if(We(w))return J.delete(t),Y>b?void xe(t,tt(void 0)):(G.add(t),xe(t,et(c)),me(y,w,!1,{fetcherSubmission:c,preventScrollReset:u}));if(He(w))return void Te(t,r,w.error)}if(ze(w))throw Fe(400,{type:"defer-action"});let E=F.navigation.location||F.location,S=ke(e.history,E,v.signal),x=i||d,D="idle"!==F.navigation.state?R(x,F.navigation.location,h):F.matches;f(D,"Didn't find any matches after fetcher action");let C=++q;X.set(t,C);let L=et(c,w.data);F.fetchers.set(t,L);let[P,k]=be(e.history,F,D,c,E,!1,g.v7_skipActionErrorRevalidation,K,$,V,ee,Q,G,x,h,[a.route.id,w]);k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=F.fetchers.get(t),n=et(void 0,r?r.data:void 0);F.fetchers.set(t,n),Ke(t),e.controller&&J.set(t,e.controller)}),ae({fetchers:new Map(F.fetchers)});let T=()=>k.forEach(e=>Ke(e.key));v.signal.addEventListener("abort",T);let{loaderResults:_,fetcherResults:A}=await Ee(F,D,P,k,S);if(v.signal.aborted)return;v.signal.removeEventListener("abort",T),X.delete(t),J.delete(t),k.forEach(e=>J.delete(e.key));let U=Ne(_);if(U)return me(S,U.result,!1,{preventScrollReset:u});if(U=Ne(A),U)return G.add(U.key),me(S,U.result,!1,{preventScrollReset:u});let{loaderData:j,errors:O}=Ae(F,D,_,void 0,k,A,te);if(F.fetchers.has(t)){let e=tt(w.data);F.fetchers.set(t,e)}rt(C),"loading"===F.navigation.state&&C>Y?(f(N,"Expected pending action"),M&&M.abort(),oe(F.navigation.location,{matches:D,loaderData:j,errors:O,fetchers:new Map(F.fetchers)})):(ae({errors:O,loaderData:Ue(F.loaderData,j,D,O),fetchers:new Map(F.fetchers)}),K=!1)}(t,r,m,b,c,p.active,s,w,v):(Q.set(t,{routeId:r,path:m}),async function(t,r,n,a,o,i,s,l,u){let c=F.fetchers.get(t);xe(t,et(u,c?c.data:void 0),{flushSync:s});let d=new AbortController,h=ke(e.history,n,d.signal);if(i){let e=await dt(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,r,e.error,{flushSync:s});if(!e.matches)return void Te(t,r,Fe(404,{pathname:n}),{flushSync:s});a=Ge(o=e.matches,n)}J.set(t,d);let p=q,m=(await ge("loader",0,h,[a],o,t))[a.route.id];if(ze(m)&&(m=await Ye(m,h.signal,!0)||m),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(!ee.has(t))return We(m)?Y>p?void xe(t,tt(void 0)):(G.add(t),void await me(h,m,!1,{preventScrollReset:l})):void(He(m)?Te(t,r,m.error):(f(!ze(m),"Unhandled fetcher deferred data"),xe(t,tt(m.data))));xe(t,tt(void 0))}}(t,r,m,b,c,p.active,s,w,v))},revalidate:function(){Se(),ae({revalidation:"loading"}),"submitting"!==F.navigation.state&&("idle"!==F.navigation.state?ie(N||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation,enableViewTransition:!0===I}):ie(F.historyAction,F.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:_e,deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),ee.add(e),g.v7_fetcherPersist||Be(e)):Z.set(e,t),ae({fetchers:new Map(F.fetchers)})},dispose:function(){b&&b(),H&&H(),C.clear(),M&&M.abort(),F.fetchers.forEach((e,t)=>Be(t)),F.blockers.forEach((e,t)=>nt(t))},getBlocker:function(e,t){let r=F.blockers.get(e)||de;return ne.get(e)!==t&&ne.set(e,t),r},deleteBlocker:nt,patchRoutes:function(e,t){let r=null==i;Re(e,t,i||d,c,o),r&&(d=[...d],ae({}))},_internalFetchControllers:J,_internalActiveDeferreds:te,_internalSetRoutes:function(e){c={},i=S(e,o,void 0,c)}},u}function ve(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){u=e;break}}else l=t,u=t[t.length-1];let c=H(a||".",z(l,o),j(e.pathname,r)||e.pathname,"path"===s);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=Xe(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:W([r,c.pathname])),y(c)}function ye(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&&(a=n.formMethod,!ie.has(a.toLowerCase())))return{path:r,error:Fe(405,{method:n.formMethod})};var a;let o,i,s=()=>({path:r,error:Fe(400,{type:"invalid-body"})}),l=n.formMethod||"get",u=e?l.toUpperCase():l.toLowerCase(),c=Be(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ve(u))return s();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:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ve(u))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=Te(n.formData),i=n.formData;else if(n.body instanceof FormData)o=Te(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=_e(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=_e(o)}catch(e){return s()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Ve(d.formMethod))return{path:r,submission:d};let h=g(r);return t&&h.search&&Xe(h.search)&&o.append("index",""),h.search="?"+o,{path:y(h),submission:d}}function ge(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function be(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?He(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=ge(r,Object.keys(t.errors)[0],!0):v&&He(v[1])&&(w=ge(r,v[0]));let E=v?v[1].statusCode:void 0,S=i&&E&&E>=400,x=w.filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return we(a,t.loaderData,t.errors);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||u.some(t=>t===e.route.id))return!0;let i=t.matches[r],c=e;return Se(e,l({currentUrl:g,currentParams:i.params,nextUrl:b,nextParams:c.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||Ee(i,c))}))}),D=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=R(p,e.path,m);if(!i)return void D.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=Ge(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:Se(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&s})),v&&D.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,D]}function we(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function Ee(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Se(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function Re(e,t,r,n,a){var o;let i;if(e){let t=n[e];f(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let s=S(t.filter(e=>!i.some(t=>xe(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...s)}function xe(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,r)=>{var n;return null==(n=t.children)?void 0:n.some(t=>xe(e,t))}))}async function De(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function Ce(e){let{result:t,type:r}=e;if($e(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:w.error,error:e}}return r===w.error?{type:w.error,error:new te(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:w.data,data:e,statusCode:t.status,headers:t.headers}}var n,a,o,i,s,l,u,c;return r===w.error?Ke(t)?t.data instanceof Error?{type:w.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:w.error,error:new te((null==(n=t.init)?void 0:n.status)||500,void 0,t.data),statusCode:re(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:w.error,error:t,statusCode:re(t)?t.status:void 0}: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:w.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:Ke(t)?{type:w.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:w.data,data:t}}function Le(e,t,r,n,a,o){let i=e.headers.get("Location");if(f(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!he.test(i)){let s=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ve(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function Pe(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(he.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n);if(a.includes(o.protocol))throw new Error("Invalid redirect location");let i=null!=j(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function ke(e,t,r,n){let a=e.createURL(Be(t)).toString(),o={signal:r};if(n&&Ve(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=Te(n.formData):o.body=n.formData}return new Request(a,o)}function Te(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function _e(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ae(e,t,r,n,a,o,i){let{loaderData:s,errors:u}=function(e,t,r,n,a){let o,i={},s=null,l=!1,u={},c=r&&He(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let d=r.route.id,h=t[d];if(f(!We(h),"Cannot handle redirect results in processLoaderData"),He(h)){let t=h.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},a)s[d]=t;else{let r=je(e,d);null==s[r.route.id]&&(s[r.route.id]=t)}i[d]=void 0,l||(l=!0,o=re(h.error)?h.error.status:500),h.headers&&(u[d]=h.headers)}else ze(h)?(n.set(d,h.deferredData),i[d]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(o=h.statusCode),h.headers&&(u[d]=h.headers)):(i[d]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(o=h.statusCode),h.headers&&(u[d]=h.headers))}),void 0!==c&&r&&(s={[r[0]]:c},i[r[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}(t,r,n,i,!1);return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(f(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(He(i)){let t=je(e.matches,null==n?void 0:n.route.id);u&&u[t.route.id]||(u=l({},u,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(We(i))f(!1,"Unhandled fetcher revalidation redirect");else if(ze(i))f(!1,"Unhandled fetcher deferred data");else{let t=tt(i.data);e.fetchers.set(r,t)}}),{loaderData:s,errors:u}}function Ue(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function Me(e){return e?He(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function je(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 Fe(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(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",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new te(e||500,s,new Error(l),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(We(n))return{key:r,result:n}}}function Be(e){return y(l({},"string"==typeof e?g(e):e,{hash:""}))}function Ie(e){return $e(e.result)&&se.has(e.result.status)}function ze(e){return e.type===w.deferred}function He(e){return e.type===w.error}function We(e){return(e&&e.type)===w.redirect}function Ke(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function $e(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ve(e){return ae.has(e.toLowerCase())}async function Je(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===s);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!Ee(c,u)&&void 0!==(a&&a[u.route.id]);ze(l)&&d&&await Ye(l,r,!1).then(e=>{e&&(t[s]=e)})}}async function qe(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&ze(s)&&(f(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ye(s,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function Ye(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:w.data,data:e.deferredData.unwrappedData}}catch(e){return{type:w.error,error:e}}return{type:w.data,data:e.deferredData.data}}}function Xe(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Ge(e,t){let r="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&Xe(r||""))return e[e.length-1];let n=I(e);return n[n.length-1]}function Qe(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Ze(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function et(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rt(){return rt=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},rt.apply(this,arguments)}Symbol("deferred");const nt=a.createContext(null),at=a.createContext(null),ot=a.createContext(null),it=a.createContext(null),st=a.createContext(null),lt=a.createContext({outlet:null,matches:[],isDataRoute:!1}),ut=a.createContext(null);function ct(e,t){let{relative:r}=void 0===t?{}:t;dt()||f(!1);let{basename:n,navigator:o}=a.useContext(it),{hash:i,pathname:s,search:l}=Et(e,{relative:r}),u=s;return"/"!==n&&(u="/"===s?n:W([n,s])),o.createHref({pathname:u,search:l,hash:i})}function dt(){return null!=a.useContext(st)}function ht(){return dt()||f(!1),a.useContext(st).location}function ft(){return a.useContext(st).navigationType}function pt(e){dt()||f(!1);let{pathname:t}=ht();return a.useMemo(()=>U(e,M(t)),[t,e])}function mt(e){a.useContext(it).static||a.useLayoutEffect(e)}function vt(){let{isDataRoute:e}=a.useContext(lt);return e?function(){let{router:e}=_t(kt.UseNavigateStable),t=Ut(Tt.UseNavigateStable),r=a.useRef(!1);return mt(()=>{r.current=!0}),a.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,rt({fromRouteId:t},a)))},[e,t])}():function(){dt()||f(!1);let e=a.useContext(nt),{basename:t,future:r,navigator:n}=a.useContext(it),{matches:o}=a.useContext(lt),{pathname:i}=ht(),s=JSON.stringify(z(o,r.v7_relativeSplatPath)),l=a.useRef(!1);return mt(()=>{l.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let o=H(r,JSON.parse(s),i,"path"===a.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:W([t,o.pathname])),(a.replace?n.replace:n.push)(o,a.state,a)},[t,n,s,i,e])}()}const yt=a.createContext(null);function gt(){return a.useContext(yt)}function bt(e){let t=a.useContext(lt).outlet;return t?a.createElement(yt.Provider,{value:e},t):t}function wt(){let{matches:e}=a.useContext(lt),t=e[e.length-1];return t?t.params:{}}function Et(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(it),{matches:o}=a.useContext(lt),{pathname:i}=ht(),s=JSON.stringify(z(o,n.v7_relativeSplatPath));return a.useMemo(()=>H(e,JSON.parse(s),i,"path"===r),[e,s,i,r])}function St(e,t){return Rt(e,t)}function Rt(e,t,r,o){dt()||f(!1);let{navigator:i}=a.useContext(it),{matches:s}=a.useContext(lt),l=s[s.length-1],u=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,h=ht();if(t){var p;let e="string"==typeof t?g(t):t;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||f(!1),d=e}else d=h;let m=d.pathname||"/",v=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=R(e,{pathname:v}),b=Pt(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:W([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:W([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,r,o);return t&&b?a.createElement(st.Provider,{value:{location:rt({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:n.Pop}},b):b}function xt(){let e=zt(),t=re(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:n},r):null,null)}const Dt=a.createElement(xt,null);class Ct extends a.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?a.createElement(lt.Provider,{value:this.props.routeContext},a.createElement(ut.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lt(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(nt);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(lt.Provider,{value:t},n)}function Pt(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=n)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let s=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=s.findIndex(e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id]));e>=0||f(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){u=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight((e,n,o)=>{let i,d=!1,h=null,f=null;var p;r&&(i=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||Dt,u&&(c<0&&0===o?(Vt[p="route-fallback"]||(Vt[p]=!0),d=!0,f=null):c===o&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),v=()=>{let t;return t=i?h:d?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Lt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(Ct,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var kt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kt||{}),Tt=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}(Tt||{});function _t(e){let t=a.useContext(nt);return t||f(!1),t}function At(e){let t=a.useContext(at);return t||f(!1),t}function Ut(e){let t=function(){let e=a.useContext(lt);return e||f(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||f(!1),r.route.id}function Mt(){return Ut(Tt.UseRouteId)}function jt(){return At(Tt.UseNavigation).navigation}function Ot(){let e=_t(kt.UseRevalidator),t=At(Tt.UseRevalidator);return a.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function Ft(){let{matches:e,loaderData:t}=At(Tt.UseMatches);return a.useMemo(()=>e.map(e=>D(e,t)),[e,t])}function Nt(){let e=At(Tt.UseLoaderData),t=Ut(Tt.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function Bt(e){return At(Tt.UseRouteLoaderData).loaderData[e]}function It(){let e=At(Tt.UseActionData),t=Ut(Tt.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function zt(){var e;let t=a.useContext(ut),r=At(Tt.UseRouteError),n=Ut(Tt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function Ht(){let e=a.useContext(ot);return null==e?void 0:e._data}function Wt(){let e=a.useContext(ot);return null==e?void 0:e._error}let Kt=0;function $t(e){let{router:t,basename:r}=_t(kt.UseBlocker),n=At(Tt.UseBlocker),[o,i]=a.useState(""),s=a.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:rt({},n,{pathname:j(n.pathname,r)||n.pathname}),nextLocation:rt({},a,{pathname:j(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return a.useEffect(()=>{let e=String(++Kt);return i(e),()=>t.deleteBlocker(e)},[t]),a.useEffect(()=>{""!==o&&t.getBlocker(o,s)},[t,o,s]),o&&n.blockers.has(o)?n.blockers.get(o):de}const Vt={};function Jt(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const qt=o.startTransition;function Yt(e){let{basename:t,children:r,initialEntries:n,initialIndex:o,future:i}=e,s=a.useRef();null==s.current&&(s.current=c({initialEntries:n,initialIndex:o,v5Compat:!0}));let l=s.current,[u,d]=a.useState({action:l.action,location:l.location}),{v7_startTransition:h}=i||{},f=a.useCallback(e=>{h&&qt?qt(()=>d(e)):d(e)},[d,h]);return a.useLayoutEffect(()=>l.listen(f),[l,f]),a.useEffect(()=>Jt(i),[i]),a.createElement(Zt,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:l,future:i})}function Xt(e){let{to:t,replace:r,state:n,relative:o}=e;dt()||f(!1);let{future:i,static:s}=a.useContext(it),{matches:l}=a.useContext(lt),{pathname:u}=ht(),c=vt(),d=H(t,z(l,i.v7_relativeSplatPath),u,"path"===o),h=JSON.stringify(d);return a.useEffect(()=>c(JSON.parse(h),{replace:r,state:n,relative:o}),[c,h,o,r,n]),null}function Gt(e){return bt(e.context)}function Qt(e){f(!1)}function Zt(e){let{basename:t="/",children:r=null,location:o,navigationType:i=n.Pop,navigator:s,static:l=!1,future:u}=e;dt()&&f(!1);let c=t.replace(/^\/*/,"/"),d=a.useMemo(()=>({basename:c,navigator:s,static:l,future:rt({v7_relativeSplatPath:!1},u)}),[c,u,s,l]);"string"==typeof o&&(o=g(o));let{pathname:h="/",search:p="",hash:m="",state:v=null,key:y="default"}=o,b=a.useMemo(()=>{let e=j(h,c);return null==e?null:{location:{pathname:e,search:p,hash:m,state:v,key:y},navigationType:i}},[c,h,p,m,v,y,i]);return null==b?null:a.createElement(it.Provider,{value:d},a.createElement(st.Provider,{children:r,value:b}))}function er(e){let{children:t,location:r}=e;return St(ir(t),r)}function tr(e){let{children:t,errorElement:r,resolve:n}=e;return a.createElement(ar,{resolve:n,errorElement:r},a.createElement(or,null,t))}var rr=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(rr||{});const nr=new Promise(()=>{});class ar extends a.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,o=rr.pending;if(r instanceof Promise)if(this.state.error){o=rr.error;let e=this.state.error;n=Promise.reject().catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,o="_error"in n?rr.error:"_data"in n?rr.success:rr.pending):(o=rr.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else o=rr.success,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(o===rr.error&&n._error instanceof q)throw nr;if(o===rr.error&&!t)throw n._error;if(o===rr.error)return a.createElement(ot.Provider,{value:n,children:t});if(o===rr.success)return a.createElement(ot.Provider,{value:n,children:e});throw n}}function or(e){let{children:t}=e,r=Ht(),n="function"==typeof t?t(r):t;return a.createElement(a.Fragment,null,n)}function ir(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,(e,n)=>{if(!a.isValidElement(e))return;let o=[...t,n];if(e.type===a.Fragment)return void r.push.apply(r,ir(e.props.children,o));e.type!==Qt&&f(!1),e.props.index&&e.props.children&&f(!1);let i={id:e.props.id||o.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&&(i.children=ir(e.props.children,o)),r.push(i)}),r}function sr(e){return Pt(e)}function lr(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ur(e,t){return me({basename:null==t?void 0:t.basename,future:rt({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:c({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:lr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function cr(){return cr=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},cr.apply(this,arguments)}function dr(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}const hr="get",fr="application/x-www-form-urlencoded";function pr(e){return null!=e&&"string"==typeof e.tagName}function mr(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]])},[]))}let vr=null;const yr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gr(e){return null==e||yr.has(e)?e:null}const br=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],wr=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Er=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function Sr(e,t){return me({basename:null==t?void 0:t.basename,future:cr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:d({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||xr(),routes:e,mapRouteProperties:lr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function Rr(e,t){return me({basename:null==t?void 0:t.basename,future:cr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:h({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||xr(),routes:e,mapRouteProperties:lr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function xr(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=cr({},t,{errors:Dr(t.errors)})),t}function Dr(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 te(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 a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const Cr=a.createContext({isTransitioning:!1}),Lr=a.createContext(new Map),Pr=o.startTransition,kr=s.flushSync,Tr=o.useId;function _r(e){kr?kr(e):e()}class Ar{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 Ur(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=a.useState(r.state),[s,l]=a.useState(),[u,c]=a.useState({isTransitioning:!1}),[d,h]=a.useState(),[f,p]=a.useState(),[m,v]=a.useState(),y=a.useRef(new Map),{v7_startTransition:g}=n||{},b=a.useCallback(e=>{g?function(e){Pr?Pr(e):e()}(e):e()},[g]),w=a.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:o}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!s){if(a){_r(()=>{f&&(d&&d.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=r.window.document.startViewTransition(()=>{_r(()=>i(e))});return t.finished.finally(()=>{_r(()=>{h(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),void _r(()=>p(t))}f?(d&&d.resolve(),f.skipTransition(),v({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?_r(()=>i(e)):b(()=>i(e))},[r.window,f,d,y,b]);a.useLayoutEffect(()=>r.subscribe(w),[r,w]),a.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new Ar)},[u]),a.useEffect(()=>{if(d&&s&&r.window){let e=s,t=d.promise,n=r.window.document.startViewTransition(async()=>{b(()=>i(e)),await t});n.finished.finally(()=>{h(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(n)}},[b,s,d,r.window]),a.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,f,o.location,s]),a.useEffect(()=>{!u.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[u.isTransitioning,m]),a.useEffect(()=>{},[]);let E=a.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]),S=r.basename||"/",R=a.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=a.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return a.useEffect(()=>Jt(n,r.future),[n,r.future]),a.createElement(a.Fragment,null,a.createElement(nt.Provider,{value:R},a.createElement(at.Provider,{value:o},a.createElement(Lr.Provider,{value:y.current},a.createElement(Cr.Provider,{value:u},a.createElement(Zt,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:x},o.initialized||r.future.v7_partialHydration?a.createElement(Mr,{routes:r.routes,future:r.future,state:o}):t))))),null)}const Mr=a.memo(jr);function jr(e){let{routes:t,future:r,state:n}=e;return Rt(t,void 0,n,r)}function Or(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=d({window:o,v5Compat:!0}));let s=i.current,[l,u]=a.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},h=a.useCallback(e=>{c&&Pr?Pr(()=>u(e)):u(e)},[u,c]);return a.useLayoutEffect(()=>s.listen(h),[s,h]),a.useEffect(()=>Jt(n),[n]),a.createElement(Zt,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Fr(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=h({window:o,v5Compat:!0}));let s=i.current,[l,u]=a.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},d=a.useCallback(e=>{c&&Pr?Pr(()=>u(e)):u(e)},[u,c]);return a.useLayoutEffect(()=>s.listen(d),[s,d]),a.useEffect(()=>Jt(n),[n]),a.createElement(Zt,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Nr(e){let{basename:t,children:r,future:n,history:o}=e,[i,s]=a.useState({action:o.action,location:o.location}),{v7_startTransition:l}=n||{},u=a.useCallback(e=>{l&&Pr?Pr(()=>s(e)):s(e)},[s,l]);return a.useLayoutEffect(()=>o.listen(u),[o,u]),a.useEffect(()=>Jt(n),[n]),a.createElement(Zt,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:o,future:n})}const Br="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zr=a.forwardRef(function(e,t){let r,{onClick:n,relative:o,reloadDocument:i,replace:s,state:l,target:u,to:c,preventScrollReset:d,viewTransition:h}=e,f=dr(e,br),{basename:p}=a.useContext(it),m=!1;if("string"==typeof c&&Ir.test(c)&&(r=c,Br))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=j(t.pathname,p);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:m=!0}catch(e){}let v=ct(c,{relative:o}),y=Yr(c,{replace:s,state:l,target:u,preventScrollReset:d,relative:o,viewTransition:h});return a.createElement("a",cr({},f,{href:r||v,onClick:m||i?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:u}))}),Hr=a.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:s,to:l,viewTransition:u,children:c}=e,d=dr(e,wr),h=Et(l,{relative:d.relative}),f=ht(),p=a.useContext(at),{navigator:m,basename:v}=a.useContext(it),y=null!=p&&un(h)&&!0===u,g=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,b=f.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(b=b.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&v&&(w=j(w,v)||w);const E="/"!==g&&g.endsWith("/")?g.length-1:g.length;let S,R=b===g||!i&&b.startsWith(g)&&"/"===b.charAt(E),x=null!=w&&(w===g||!i&&w.startsWith(g)&&"/"===w.charAt(g.length)),D={isActive:R,isPending:x,isTransitioning:y},C=R?r:void 0;S="function"==typeof o?o(D):[o,R?"active":null,x?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let L="function"==typeof s?s(D):s;return a.createElement(zr,cr({},d,{"aria-current":C,className:S,ref:t,style:L,to:l,viewTransition:u}),"function"==typeof c?c(D):c)}),Wr=a.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:s,method:l=hr,action:u,onSubmit:c,relative:d,preventScrollReset:h,viewTransition:f}=e,p=dr(e,Er),m=Zr(),v=en(u,{relative:d}),y="get"===l.toLowerCase()?"get":"post";return a.createElement("form",cr({ref:t,method:y,action:v,onSubmit:o?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:s,relative:d,preventScrollReset:h,viewTransition:f})}},p))});function Kr(e){let{getKey:t,storageKey:r}=e;return on({getKey:t,storageKey:r}),null}var $r,Vr;function Jr(e){let t=a.useContext(nt);return t||f(!1),t}function qr(e){let t=a.useContext(at);return t||f(!1),t}function Yr(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:l}=void 0===t?{}:t,u=vt(),c=ht(),d=Et(e,{relative:s});return a.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!==n?n:y(c)===y(d);u(e,{replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[c,u,d,n,o,r,e,i,s,l])}function Xr(e){let t=a.useRef(mr(e)),r=a.useRef(!1),n=ht(),o=a.useMemo(()=>function(e,t){let r=mr(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),i=vt(),s=a.useCallback((e,t)=>{const n=mr("function"==typeof e?e(o):e);r.current=!0,i("?"+n,t)},[i,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($r||($r={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Vr||(Vr={}));let Gr=0,Qr=()=>"__"+String(++Gr)+"__";function Zr(){let{router:e}=Jr($r.UseSubmit),{basename:t}=a.useContext(it),r=Mt();return a.useCallback(function(n,a){void 0===a&&(a={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:o,method:i,encType:s,formData:l,body:u}=function(e,t){let r,n,a,o,i;if(pr(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?j(i,t):null,r=e.getAttribute("method")||hr,a=gr(e.getAttribute("enctype"))||fr,o=new FormData(e)}else if(function(e){return pr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return pr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?j(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||hr,a=gr(e.getAttribute("formenctype"))||gr(i.getAttribute("enctype"))||fr,o=new FormData(i,e),!function(){if(null===vr)try{new FormData(document.createElement("form"),0),vr=!1}catch(e){vr=!0}return vr}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else{if(pr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=hr,n=null,a=fr,i=e}var s;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||Qr();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function en(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=a.useContext(it),o=a.useContext(lt);o||f(!1);let[i]=o.matches.slice(-1),s=cr({},Et(e||".",{relative:r})),l=ht();if(null==e){s.search=l.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();s.search=r?"?"+r:""}}return e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(s.pathname="/"===s.pathname?n:W([n,s.pathname])),y(s)}function tn(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=Jr($r.UseFetcher),o=qr(Vr.UseFetcher),i=a.useContext(Lr),s=a.useContext(lt),l=null==(t=s.matches[s.matches.length-1])?void 0:t.route.id;i||f(!1),s||f(!1),null==l&&f(!1);let u=Tr?Tr():"",[c,d]=a.useState(r||u);r&&r!==c?d(r):c||d(Qr()),a.useEffect(()=>(n.getFetcher(c),()=>{n.deleteFetcher(c)}),[n,c]);let h=a.useCallback((e,t)=>{l||f(!1),n.fetch(c,l,e,t)},[c,l,n]),p=Zr(),m=a.useCallback((e,t)=>{p(e,cr({},t,{navigate:!1,fetcherKey:c}))},[c,p]),v=a.useMemo(()=>a.forwardRef((e,t)=>a.createElement(Wr,cr({},e,{navigate:!1,fetcherKey:c,ref:t}))),[c]),y=o.fetchers.get(c)||ce,g=i.get(c);return a.useMemo(()=>cr({Form:v,submit:m,load:h},y,{data:g}),[v,m,h,y,g])}function rn(){let e=qr(Vr.UseFetchers);return Array.from(e.fetchers.entries()).map(e=>{let[t,r]=e;return cr({},r,{key:t})})}const nn="react-router-scroll-positions";let an={};function on(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=Jr($r.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=qr(Vr.UseScrollRestoration),{basename:s}=a.useContext(it),l=ht(),u=Ft(),c=jt();a.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};a.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(a.useCallback(()=>{if("idle"===c.state){let e=(t?t(l,u):null)||l.key;an[e]=window.scrollY}try{sessionStorage.setItem(r||nn,JSON.stringify(an))}catch(e){}window.history.scrollRestoration="auto"},[r,t,c.state,l,u])),"undefined"!=typeof document&&(a.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||nn);e&&(an=JSON.parse(e))}catch(e){}},[r]),a.useLayoutEffect(()=>{let e=t&&"/"!==s?(e,r)=>t(cr({},e,{pathname:j(e.pathname,s)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(an,()=>window.scrollY,e);return()=>r&&r()},[n,s,t]),a.useLayoutEffect(()=>{if(!1!==o)if("number"!=typeof o){if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,o)},[l,o,i]))}function sn(e,t){let{capture:r}=t||{};a.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function ln(e){let{when:t,message:r}=e,n=$t(t);a.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),a.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function un(e,t){void 0===t&&(t={});let r=a.useContext(Cr);null==r&&f(!1);let{basename:n}=Jr($r.useViewTransitionState),o=Et(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=j(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=j(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=U(o.pathname,s)||null!=U(o.pathname,i)}}}]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remix-run/router v1.23.2
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* React Router DOM v6.30.3
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Remix Software Inc.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* React Router v6.30.3
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Remix Software Inc.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
30
|
+
*
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/
|
package/dist/319.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[319],{
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[319],{4319(n,r,e){e.r(r),e.d(r,{default:()=>s});var a=e(6072),o=e(1232);const s=function(){return a.createElement("div",{className:o.A.red})}},4101(n,r,e){e.d(r,{A:()=>i});var a=e(4991),o=e.n(a),s=e(6314),t=e.n(s)()(o());t.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),t.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const i=t},1232(n,r,e){e.d(r,{A:()=>g});var a=e(5072),o=e.n(a),s=e(7825),t=e.n(s),i=e(7659),d=e.n(i),c=e(5056),p=e.n(c),b=e(540),l=e.n(b),A=e(1113),h=e.n(A),m=e(4101),u={};u.styleTagTransform=h(),u.setAttributes=p(),u.insert=d().bind(null,"head"),u.domAPI=t(),u.insertStyleElement=l(),o()(m.A,u);const g=m.A&&m.A.locals?m.A.locals:void 0}}]);
|
package/dist/335.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[335],{
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[335],{4335(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"ប្រព័ន្ធកំណត់រចនាសម្ព័ន្ធ","configSystemExplainer":"ការស្វាគមន៍ដែលបង្ហាញខាងក្រោមត្រូវបានជំរុញដោយប្រព័ន្ធកំណត់រចនាសម្ព័ន្ធ។ ដើម្បីផ្លាស់ប្តូរលក្ខណសម្បត្តិនៃការកំណត់រចនាសម្ព័ន្ធ សូមចុចរូបតំណាង spanner នៅក្នុងរបាររុករក ដើម្បីទាញបន្ទះឧបករណ៍អនុវត្ត។ បន្ទាប់មក វាយ <2>ពុម្ព</2> ទៅក្នុងធាតុបញ្ចូល <4>ការស្វែងរក</4>។ វាគួរត្រងលក្ខណសម្បត្តិនៃការកំណត់រចនាសម្ព័ន្ធ ដើម្បីបង្ហាញតែអ្វីដែលពាក់ព័ន្ធទៅនឹងម៉ូឌុលនេះប៉ុណ្ណោះ។ អ្នកអាចផ្លាស់ប្តូរតម្លៃនៃលក្ខណៈសម្បត្តិទាំងនេះ ហើយចុច <6>រក្សាទុក</6> ដើម្បីមើលការផ្លាស់ប្តូរដែលឆ្លុះបញ្ចាំងនៅក្នុង UI","connect":"ភ្ជាប់","connectExplainer":"ទាក់ទងជាមួយសហគមន៍","dataFetching":"ការទាញយកទិន្នន័យ","designDocs":"ឯកសាររចនា","designDocsExplainer":"អានឯកសាររចនា O3","explainer":"ឧទាហរណ៍ខាងក្រោមបង្ហាញពីលក្ខណៈសំខាន់ៗមួយចំនួននៃក្របខ័ណ្ឌ O3","extensionExplainer":"នេះគឺជាប្រអប់ពណ៌មួយចំនួន។ ដោយសារតែពួកវាត្រូវបានភ្ជាប់ជាផ្នែកបន្ថែមនៅក្នុងរន្ធដោត អ្នកគ្រប់គ្រងអាចផ្លាស់ប្តូរអ្វីដែលប្រអប់ត្រូវបានបង្ហាញដោយប្រើការកំណត់។ ប្រអប់ទាំងនេះត្រូវបានកំណត់នៅក្នុងម៉ូឌុលនេះ ប៉ុន្តែពួកវាអាចភ្ជាប់ជាមួយរន្ធដោតនេះ ទោះបីជាពួកគេស្ថិតនៅក្នុងម៉ូឌុលផ្សេងក៏ដោយ។","extensionSystem":"ប្រព័ន្ធបន្ថែម","formalGreeting":"សួស្តី","frontendDocs":"Frontend docs","getPatient":"យកអ្នកជំងឺឈ្មោះ","getStarted":"ការចាប់ផ្តើម","getStartedExplainer":"បង្កើតម៉ូឌុលផ្នែកខាងមុខពីគំរូនេះ។","learnExplainer":"រៀនពីរបៀបប្រើ O3 framework","loading":"កំពុងផ្ទុក","patientGetterExplainer":"ព្យាយាមចុចប៊ូតុងខាងក្រោមដើម្បីទាញយកអ្នកជំងឺពី API","resources":"ធនធាន","usefulLinks":"ខាងក្រោមនេះគឺជាតំណភ្ជាប់មួយចំនួនទៅកាន់ធនធានដែលមានប្រយោជន៍","welcomeText":"សូមស្វាគមន៍មកកាន់កម្មវិធីគំរូ O3"}')}}]);
|
package/dist/353.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[353],{
|
|
1
|
+
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[353],{9115(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",u="day",a="week",c="month",o="quarter",h="year",f="date",d="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:a,d:u,D:f,h:i,m:s,s:n,ms:r,Q:o}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=m;var p="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[p])},S=function t(e,r,n){var s;if(!e)return y;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(s=i),r&&(g[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;g[a]=e,s=a}return!n&&s&&(y=s),s||!n&&y},_=function(t,e){if(D(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},w=v;w.l=S,w.i=D,w.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function m(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var M=m.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return w},M.isValid=function(){return!(this.$d.toString()===d)},M.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return _(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<_(t)},M.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,o=!!w.u(e)||e,d=w.p(t),$=function(t,e){var n=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return o?n:n.endOf(u)},l=function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,M=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case h:return o?$(1,0):$(31,11);case c:return o?$(1,M):$(0,M+1);case a:var g=this.$locale().weekStart||0,p=(m<g?m+7:m)-g;return $(o?v-p:v+(6-p),M);case u:case f:return l(y+"Hours",0);case i:return l(y+"Minutes",1);case s:return l(y+"Seconds",2);case n:return l(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var a,o=w.p(t),d="set"+(this.$u?"UTC":""),$=(a={},a[u]=d+"Date",a[f]=d+"Date",a[c]=d+"Month",a[h]=d+"FullYear",a[i]=d+"Hours",a[s]=d+"Minutes",a[n]=d+"Seconds",a[r]=d+"Milliseconds",a)[o],l=o===u?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(f,1);m.$d[$](l),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[w.p(t)]()},M.add=function(r,o){var f,d=this;r=Number(r);var $=w.p(o),l=function(t){var e=_(d);return w.w(e.date(e.date()+Math.round(t*r)),d)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===u)return l(1);if($===a)return l(7);var m=(f={},f[s]=t,f[i]=e,f[n]=1e3,f)[$]||1,M=this.$d.getTime()+r*m;return w.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=w.z(this),i=this.$H,u=this.$m,a=this.$M,c=r.weekdays,o=r.months,h=r.meridiem,f=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},$=function(t){return w.s(i%12||12,t,"0")},m=h||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return a+1;case"MM":return w.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,o,3);case"MMMM":return f(o,a);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(i);case"HH":return w.s(i,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return m(i,u,!0);case"A":return m(i,u,!1);case"m":return String(u);case"mm":return w.s(u,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,f,d){var $,l=this,m=w.p(f),M=_(r),v=(M.utcOffset()-this.utcOffset())*t,y=this-M,g=function(){return w.m(l,M)};switch(m){case h:$=g()/12;break;case c:$=g();break;case o:$=g()/3;break;case a:$=(y-v)/6048e5;break;case u:$=(y-v)/864e5;break;case i:$=y/e;break;case s:$=y/t;break;case n:$=y/1e3;break;default:$=y}return d?$:w.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return g[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return w.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},m}(),O=b.prototype;return _.prototype=O,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",u],["$M",c],["$y",h],["$D",f]].forEach(function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,b,_),t.$i=!0),_},_.locale=S,_.isDayjs=D,_.unix=function(t){return _(1e3*t)},_.en=g[y],_.Ls=g,_.p={},_}()}}]);
|
package/dist/382.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[382],{3904(e,t,r){const o=Symbol("SemVer ANY");class n{static get ANY(){return o}constructor(e,t){if(t=s(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===o?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=o}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===o||e===o)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=n;const s=r(8587),{safeRe:i,t:a}=r(9718),c=r(2111),l=r(7272),p=r(3908),u=r(8311)},8311(e,t,r){const o=/\s+/g;class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(o," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!E(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&I(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&d)|(this.options.loose&&g))+":"+e,r=s.get(t);if(r)return r;const o=this.options.loose,n=o?p[u.HYPHENRANGELOOSE]:p[u.HYPHENRANGE];e=e.replace(n,C(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(p[u.COMPARATORTRIM],m),c("comparator trim",e),e=e.replace(p[u.TILDETRIM],f),c("tilde trim",e),e=e.replace(p[u.CARETTRIM],h),c("caret trim",e);let i=e.split(" ").map(e=>O(e,this.options)).join(" ").split(/\s+/).map(e=>b(e,this.options));o&&(i=i.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(p[u.COMPARATORLOOSE])))),c("range list",i);const l=new Map,I=i.map(e=>new a(e,this.options));for(const e of I){if(E(e))return[e];l.set(e.value,e)}l.size>1&&l.has("")&&l.delete("");const v=[...l.values()];return s.set(t,v),v}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some(r=>v(r,t)&&e.set.some(e=>v(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const s=new(r(8794)),i=r(8587),a=r(3904),c=r(7272),l=r(3908),{safeRe:p,t:u,comparatorTrimReplace:m,tildeTrimReplace:f,caretTrimReplace:h}=r(9718),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:g}=r(6874),E=e=>"<0.0.0-0"===e.value,I=e=>""===e.value,v=(e,t)=>{let r=!0;const o=e.slice();let n=o.pop();for(;r&&o.length;)r=o.every(e=>n.intersects(e,t)),n=o.pop();return r},O=(e,t)=>(e=e.replace(p[u.BUILD],""),c("comp",e,t),e=y(e,t),c("caret",e),e=$(e,t),c("tildes",e),e=A(e,t),c("xrange",e),e=L(e,t),c("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,$=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(" "),w=(e,t)=>{const r=t.loose?p[u.TILDELOOSE]:p[u.TILDE];return e.replace(r,(t,r,o,n,s)=>{let i;return c("tilde",e,t,r,o,n,s),S(r)?i="":S(o)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:S(n)?i=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:s?(c("replaceTilde pr",s),i=`>=${r}.${o}.${n}-${s} <${r}.${+o+1}.0-0`):i=`>=${r}.${o}.${n} <${r}.${+o+1}.0-0`,c("tilde return",i),i})},y=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{c("caret",e,t);const r=t.loose?p[u.CARETLOOSE]:p[u.CARET],o=t.includePrerelease?"-0":"";return e.replace(r,(t,r,n,s,i)=>{let a;return c("caret",e,t,r,n,s,i),S(r)?a="":S(n)?a=`>=${r}.0.0${o} <${+r+1}.0.0-0`:S(s)?a="0"===r?`>=${r}.${n}.0${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${o} <${+r+1}.0.0-0`:i?(c("replaceCaret pr",i),a="0"===r?"0"===n?`>=${r}.${n}.${s}-${i} <${r}.${n}.${+s+1}-0`:`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${s}-${i} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===n?`>=${r}.${n}.${s}${o} <${r}.${n}.${+s+1}-0`:`>=${r}.${n}.${s}${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${s} <${+r+1}.0.0-0`),c("caret return",a),a})},A=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>N(e,t)).join(" ")),N=(e,t)=>{e=e.trim();const r=t.loose?p[u.XRANGELOOSE]:p[u.XRANGE];return e.replace(r,(r,o,n,s,i,a)=>{c("xRange",e,r,o,n,s,i,a);const l=S(n),p=l||S(s),u=p||S(i),m=u;return"="===o&&m&&(o=""),a=t.includePrerelease?"-0":"",l?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&m?(p&&(s=0),i=0,">"===o?(o=">=",p?(n=+n+1,s=0,i=0):(s=+s+1,i=0)):"<="===o&&(o="<",p?n=+n+1:s=+s+1),"<"===o&&(a="-0"),r=`${o+n}.${s}.${i}${a}`):p?r=`>=${n}.0.0${a} <${+n+1}.0.0-0`:u&&(r=`>=${n}.${s}.0${a} <${n}.${+s+1}.0-0`),c("xRange return",r),r})},L=(e,t)=>(c("replaceStars",e,t),e.trim().replace(p[u.STAR],"")),b=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(p[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,o,n,s,i,a,c,l,p,u,m)=>`${r=S(o)?"":S(n)?`>=${o}.0.0${e?"-0":""}`:S(s)?`>=${o}.${n}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=S(l)?"":S(p)?`<${+l+1}.0.0-0`:S(u)?`<${l}.${+p+1}.0-0`:m?`<=${l}.${p}.${u}-${m}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}},3908(e,t,r){const o=r(7272),{MAX_LENGTH:n,MAX_SAFE_INTEGER:s}=r(6874),{safeRe:i,t:a}=r(9718),c=r(8587),{compareIdentifiers:l}=r(1123);class p{constructor(e,t){if(t=c(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);o("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(o("SemVer.compare",this.version,this.options,e),!(e instanceof p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof p||(e=new p(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(o("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(o("build compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[a.PRERELEASELOOSE]:i[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let o=this.prerelease.length;for(;--o>=0;)"number"==typeof this.prerelease[o]&&(this.prerelease[o]++,o=-2);if(-1===o){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let o=[t,e];!1===r&&(o=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=p},7414(e,t,r){const o=r(144);e.exports=(e,t)=>{const r=o(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},2111(e,t,r){const o=r(4641),n=r(3999),s=r(5580),i=r(4089),a=r(7059),c=r(5200);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return o(e,r,l);case"!=":return n(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},3789(e,t,r){const o=r(3908),n=r(144),{safeRe:s,t:i}=r(9718);e.exports=(e,t)=>{if(e instanceof o)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const o=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let n;for(;(n=o.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),o.lastIndex=n.index+n[1].length+n[2].length;o.lastIndex=-1}else r=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===r)return null;const a=r[2],c=r[3]||"0",l=r[4]||"0",p=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return n(`${a}.${c}.${l}${p}${u}`,t)}},3290(e,t,r){const o=r(3908);e.exports=(e,t,r)=>{const n=new o(e,r),s=new o(t,r);return n.compare(s)||n.compareBuild(s)}},1763(e,t,r){const o=r(560);e.exports=(e,t)=>o(e,t,!0)},560(e,t,r){const o=r(3908);e.exports=(e,t,r)=>new o(e,r).compare(new o(t,r))},1832(e,t,r){const o=r(144);e.exports=(e,t)=>{const r=o(e,null,!0),n=o(t,null,!0),s=r.compare(n);if(0===s)return null;const i=s>0,a=i?r:n,c=i?n:r,l=!!a.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const p=l?"pre":"";return r.major!==n.major?p+"major":r.minor!==n.minor?p+"minor":r.patch!==n.patch?p+"patch":"prerelease"}},4641(e,t,r){const o=r(560);e.exports=(e,t,r)=>0===o(e,t,r)},5580(e,t,r){const o=r(560);e.exports=(e,t,r)=>o(e,t,r)>0},4089(e,t,r){const o=r(560);e.exports=(e,t,r)=>o(e,t,r)>=0},3007(e,t,r){const o=r(3908);e.exports=(e,t,r,n,s)=>{"string"==typeof r&&(s=n,n=r,r=void 0);try{return new o(e instanceof o?e.version:e,r).inc(t,n,s).version}catch(e){return null}}},7059(e,t,r){const o=r(560);e.exports=(e,t,r)=>o(e,t,r)<0},5200(e,t,r){const o=r(560);e.exports=(e,t,r)=>o(e,t,r)<=0},2938(e,t,r){const o=r(3908);e.exports=(e,t)=>new o(e,t).major},6254(e,t,r){const o=r(3908);e.exports=(e,t)=>new o(e,t).minor},3999(e,t,r){const o=r(560);e.exports=(e,t,r)=>0!==o(e,t,r)},144(e,t,r){const o=r(3908);e.exports=(e,t,r=!1)=>{if(e instanceof o)return e;try{return new o(e,t)}catch(e){if(!r)return null;throw e}}},4493(e,t,r){const o=r(3908);e.exports=(e,t)=>new o(e,t).patch},1729(e,t,r){const o=r(144);e.exports=(e,t)=>{const r=o(e,t);return r&&r.prerelease.length?r.prerelease:null}},9970(e,t,r){const o=r(560);e.exports=(e,t,r)=>o(t,e,r)},4277(e,t,r){const o=r(3290);e.exports=(e,t)=>e.sort((e,r)=>o(r,e,t))},7638(e,t,r){const o=r(8311);e.exports=(e,t,r)=>{try{t=new o(t,r)}catch(e){return!1}return t.test(e)}},3927(e,t,r){const o=r(3290);e.exports=(e,t)=>e.sort((e,r)=>o(e,r,t))},6953(e,t,r){const o=r(144);e.exports=(e,t)=>{const r=o(e,t);return r?r.version:null}},9589(e,t,r){const o=r(9718),n=r(6874),s=r(3908),i=r(1123),a=r(144),c=r(6953),l=r(7414),p=r(3007),u=r(1832),m=r(2938),f=r(6254),h=r(4493),d=r(1729),g=r(560),E=r(9970),I=r(1763),v=r(3290),O=r(3927),S=r(4277),$=r(5580),w=r(7059),y=r(4641),R=r(3999),A=r(4089),N=r(5200),L=r(2111),b=r(3789),C=r(3904),P=r(8311),T=r(7638),x=r(7631),D=r(9628),F=r(270),M=r(1261),k=r(3874),j=r(7075),G=r(5571),U=r(5342),W=r(6780),B=r(2525),_=r(5032);e.exports={parse:a,valid:c,clean:l,inc:p,diff:u,major:m,minor:f,patch:h,prerelease:d,compare:g,rcompare:E,compareLoose:I,compareBuild:v,sort:O,rsort:S,gt:$,lt:w,eq:y,neq:R,gte:A,lte:N,cmp:L,coerce:b,Comparator:C,Range:P,satisfies:T,toComparators:x,maxSatisfying:D,minSatisfying:F,minVersion:M,validRange:k,outside:j,gtr:G,ltr:U,intersects:W,simplifyRange:B,subset:_,SemVer:s,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},6874(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1123(e){const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const o=t.test(e),n=t.test(r);return o&&n&&(e=+e,r=+r),e===r?0:o&&!n?-1:n&&!o?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},8794(e){e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},8587(e){const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},9718(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=r(6874),i=r(7272),a=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],p=t.safeSrc=[],u=t.t={};let m=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[f,n]],d=(e,t,r)=>{const o=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),n=m++;i(e,n,t),u[e]=n,l[n]=t,p[n]=o,a[n]=new RegExp(t,r?"g":void 0),c[n]=new RegExp(o,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${f}+`),d("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),d("FULL",`^${l[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),d("LOOSE",`^${l[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),d("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`),d("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",l[u.COERCE],!0),d("COERCERTLFULL",l[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571(e,t,r){const o=r(7075);e.exports=(e,t,r)=>o(e,t,">",r)},6780(e,t,r){const o=r(8311);e.exports=(e,t,r)=>(e=new o(e,r),t=new o(t,r),e.intersects(t,r))},5342(e,t,r){const o=r(7075);e.exports=(e,t,r)=>o(e,t,"<",r)},9628(e,t,r){const o=r(3908),n=r(8311);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new o(s,r)))}),s}},270(e,t,r){const o=r(3908),n=r(8311);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new o(s,r)))}),s}},1261(e,t,r){const o=r(3908),n=r(8311),s=r(5580);e.exports=(e,t)=>{e=new n(e,t);let r=new o("0.0.0");if(e.test(r))return r;if(r=new o("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let i=null;n.forEach(e=>{const t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!i||r&&!s(r,i)||(r=i)}return r&&e.test(r)?r:null}},7075(e,t,r){const o=r(3908),n=r(3904),{ANY:s}=n,i=r(8311),a=r(7638),c=r(5580),l=r(7059),p=r(5200),u=r(4089);e.exports=(e,t,r,m)=>{let f,h,d,g,E;switch(e=new o(e,m),t=new i(t,m),r){case">":f=c,h=p,d=l,g=">",E=">=";break;case"<":f=l,h=u,d=c,g="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,m))return!1;for(let r=0;r<t.set.length;++r){const o=t.set[r];let i=null,a=null;if(o.forEach(e=>{e.semver===s&&(e=new n(">=0.0.0")),i=i||e,a=a||e,f(e.semver,i.semver,m)?i=e:d(e.semver,a.semver,m)&&(a=e)}),i.operator===g||i.operator===E)return!1;if((!a.operator||a.operator===g)&&h(e,a.semver))return!1;if(a.operator===E&&d(e,a.semver))return!1}return!0}},2525(e,t,r){const o=r(7638),n=r(560);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort((e,t)=>n(e,t,r));for(const e of c)o(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},5032(e,t,r){const o=r(8311),n=r(3904),{ANY:s}=n,i=r(7638),a=r(560),c=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],p=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?c:l}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=l}const o=new Set;let n,p,f,h,d,g,E;for(const t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?p=m(p,t,r):o.add(t.semver);if(o.size>1)return null;if(n&&p){if(f=a(n.semver,p.semver,r),f>0)return null;if(0===f&&(">="!==n.operator||"<="!==p.operator))return null}for(const e of o){if(n&&!i(e,String(n),r))return null;if(p&&!i(e,String(p),r))return null;for(const o of t)if(!i(e,String(o),r))return!1;return!0}let I=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,v=!(!n||r.includePrerelease||!n.semver.prerelease.length)&&n.semver;I&&1===I.prerelease.length&&"<"===p.operator&&0===I.prerelease[0]&&(I=!1);for(const e of t){if(E=E||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,n)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(h=u(n,e,r),h===e&&h!==n)return!1}else if(">="===n.operator&&!i(n.semver,String(e),r))return!1;if(p)if(I&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===I.major&&e.semver.minor===I.minor&&e.semver.patch===I.patch&&(I=!1),"<"===e.operator||"<="===e.operator){if(d=m(p,e,r),d===e&&d!==p)return!1}else if("<="===p.operator&&!i(p.semver,String(e),r))return!1;if(!e.operator&&(p||n)&&0!==f)return!1}return!(n&&g&&!p&&0!==f||p&&E&&!n&&0!==f||v||I)},u=(e,t,r)=>{if(!e)return t;const o=a(e.semver,t.semver,r);return o>0?e:o<0||">"===t.operator&&">="===e.operator?t:e},m=(e,t,r)=>{if(!e)return t;const o=a(e.semver,t.semver,r);return o<0?e:o>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new o(e,r),t=new o(t,r);let n=!1;e:for(const o of e.set){for(const e of t.set){const t=p(o,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},7631(e,t,r){const o=r(8311);e.exports=(e,t)=>new o(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},3874(e,t,r){const o=r(8311);e.exports=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}}},5382(e,t,r){r.r(t),r.d(t,{ActionMenu:()=>q.WyE,ActionMenuButton:()=>q.EDM,ActionMenuButton2:()=>q.Wjo,ActionableNotificationComponent:()=>q.drd,ActivityIcon:()=>q.npY,AddIcon:()=>q.REV,AllergiesIcon:()=>q.UgN,AppointmentsAltPictogram:()=>q.MnZ,AppointmentsPictogram:()=>q.B1u,ArrowDownIcon:()=>q.ZLN,ArrowLeftIcon:()=>q.A60,ArrowRightIcon:()=>q.flY,ArrowUpIcon:()=>q.Kpk,Assessment1Pictogram:()=>q.IHy,Assessment2Pictogram:()=>q.$iy,AttachmentIcon:()=>q.PtA,BabyIcon:()=>q.qYP,BloodBankPictogram:()=>q.nvs,Breakpoint:()=>q.EA,CalendarHeatMapIcon:()=>q.mmM,CalendarIcon:()=>q.CTc,CardHeader:()=>q.aRn,CardiologyPictogram:()=>q.uU$,CaretDownIcon:()=>q.bDP,CaretLeftIcon:()=>q.eCO,CaretRightIcon:()=>q.JJd,CaretUpIcon:()=>q.SwV,ChartAverageIcon:()=>q.ZHE,ChartLineIcon:()=>q.SCH,CheckmarkFilledIcon:()=>q.FtQ,CheckmarkOutlineIcon:()=>q.pm$,ChemistryIcon:()=>q.W4t,ChevronDownIcon:()=>q.D3D,ChevronLeftIcon:()=>q.YJP,ChevronRightIcon:()=>q.vKP,ChevronUpIcon:()=>q.Mtm,CloseFilledIcon:()=>q.oCk,CloseIcon:()=>q.USm,CloseOutlineIcon:()=>q.Wdn,ComponentContext:()=>j.zq,ConditionsIcon:()=>q.ci3,ConfigurableLink:()=>j.i_,CtScanPictogram:()=>q.DeE,CustomOverflowMenu:()=>q.TQT,CustomOverflowMenuItem:()=>q.cxd,DashboardExtension:()=>q.cJN,DentistryPictogram:()=>q.TNY,DiagnosisTags:()=>q.Fzf,DocumentAttachmentIcon:()=>q.Ce6,DocumentIcon:()=>q.pyG,DownloadIcon:()=>q.s3U,DrugOrderIcon:()=>q.uqj,EditIcon:()=>q.qUP,EmergencyDepartmentPictogram:()=>q.sgv,EmptyCard:()=>q.slS,EmptyCardIllustration:()=>q.Ua6,ErrorCard:()=>q.JrA,ErrorState:()=>q.W5n,EventScheduleIcon:()=>q.XaH,EventsIcon:()=>q.Jc,Extension:()=>j.YY,ExtensionSlot:()=>j.W3,FacilityPictogram:()=>q.ECF,GenderFemaleIcon:()=>q.XB2,GenderMaleIcon:()=>q.szA,GenderOtherIcon:()=>q.hXZ,GenderUnknownIcon:()=>q.x1U,GenericOrderTypeIcon:()=>q.naI,GeriatricsPictogram:()=>q.SQq,GroupAccessIcon:()=>q.Pyy,GroupIcon:()=>q.nFg,GynaecologyPictogram:()=>q.owH,HomePictogram:()=>q.KKH,HospitalBedIcon:()=>q.jMM,Icon:()=>q.Int,ImageMedicalIcon:()=>q.Ix5,InPatientPictogram:()=>q.thS,InformationFilledIcon:()=>q._e_,InformationIcon:()=>q.uQc,InformationSquareIcon:()=>q.ZrL,InventoryManagementIcon:()=>q.vFG,LabOrderIcon:()=>q.hi6,LaboratoryPictogram:()=>q.ehn,Labs2Pictogram:()=>q.rpF,LeftNavMenu:()=>q.Ojh,ListCheckedIcon:()=>q.Rt$,LocationIcon:()=>q.BT6,LocationPicker:()=>q.MTs,MaterialOrderIcon:()=>q.zZ0,MaximizeIcon:()=>q._Xm,MaybeIcon:()=>q.oy0,MaybePictogram:()=>q.bmf,MedicationIcon:()=>q.Fnj,MessageQueueIcon:()=>q.uFu,MicroscopeIcon:()=>q.u4h,MoneyIcon:()=>q.yBj,MotherIcon:()=>q.XEq,MovementIcon:()=>q.lyJ,Notification:()=>q.Eg0,NumericObservation:()=>q.q5$,ObstetricsPictogram:()=>q.Bk2,OpenmrsAppContext:()=>j.p6,OpenmrsDatePicker:()=>q.rnR,OpenmrsDateRangePicker:()=>q.Yem,OpenmrsFetchError:()=>o.$f,OverflowMenuHorizontalIcon:()=>q.rv3,OverflowMenuVerticalIcon:()=>q.Rnm,PageHeader:()=>q.zYs,PageHeaderContent:()=>q.gpz,Pagination:()=>q.dKS,PasswordIcon:()=>q.BGy,PatientBannerActionsMenu:()=>q.k1U,PatientBannerContactDetails:()=>q.m5G,PatientBannerPatientIdentifiers:()=>q.XIV,PatientBannerPatientInfo:()=>q.zvf,PatientBannerToggleContactDetailsButton:()=>q.Qgu,PatientListsPictogram:()=>q.$2H,PatientPhoto:()=>q.yV,PatientSearchPictogram:()=>q.cxq,PatientsPictogram:()=>q.X25,PaymentsDeskPictogram:()=>q.dNG,PedestrianFamilyIcon:()=>q.PPo,PenIcon:()=>q.rZj,Pharmacy2Pictogram:()=>q.Q92,PharmacyPictogram:()=>q.w21,Pictogram:()=>q.bF1,PrinterIcon:()=>q.wwY,ProcedureOrderIcon:()=>q.H0x,ProgramsIcon:()=>q.lq$,RadiologyIcon:()=>q.SA3,ReferralOrderIcon:()=>q.tCH,RegistrationPictogram:()=>q.et7,RenderIfValueIsTruthy:()=>j.fS,RenewIcon:()=>q.JTN,ReportIcon:()=>q.cQD,ResetIcon:()=>q.NAP,ResponsiveWrapper:()=>q.KFv,SaveIcon:()=>q.LPu,SearchIcon:()=>q.WIv,ServiceQueuesPictogram:()=>q.Y21,SettingsIcon:()=>q.Zes,ShoppingCartAddItemIcon:()=>q.Uve,ShoppingCartArrowDownIcon:()=>q.Lfm,ShoppingCartIcon:()=>q.aJF,Snackbar:()=>q.qb_,StickyNoteAddIcon:()=>q.OC$,StockManagementPictogram:()=>q.q__,SwitcherIcon:()=>q.RFy,SyringeIcon:()=>q.hZg,TableBatchActions:()=>q.GGC,TableIcon:()=>q.KbA,TableOfContentsIcon:()=>q.pYV,TimeIcon:()=>q.b1c,Toast:()=>q.y8,ToolsIcon:()=>q.dwU,TransferPictogram:()=>q.SKX,TranslateIcon:()=>q.SwB,TrashCanIcon:()=>q.EJV,TreeViewAltIcon:()=>q.MO4,TriagePictogram:()=>q.XHu,Type:()=>n.ZU,UserAvatarIcon:()=>q.yDT,UserFollowIcon:()=>q.osL,UserHasAccess:()=>j.qw,UserIcon:()=>q.nys,UserXrayIcon:()=>q.feL,ViewIcon:()=>q.tCQ,ViewOffIcon:()=>q.Oi_,VisitMode:()=>R.dx,VisitStatus:()=>R.Cj,WarningIcon:()=>q.id,Workspace2:()=>q.ozP,WorkspaceContainer:()=>q.XvC,WorkspaceNotification:()=>q.tMf,XrayPictogram:()=>q.B2u,activateOfflineCapability:()=>k.nr,addImportMapOverride:()=>i.fd,addRouteMapOverride:()=>O,age:()=>Y.K,ageAsDuration:()=>Y.C,attach:()=>x.K0,attachmentUrl:()=>R.Zu,backendDependencies:()=>o.QE,beginEditSynchronizationItem:()=>k.FO,canAccessStorage:()=>re,canBeginEditSynchronizationItemsOfType:()=>k.xN,canCloseWorkspaceWithoutPrompting:()=>q.SvQ,cancelPrompt:()=>q.zlb,changeWorkspaceContext:()=>q.JKc,checkStatus:()=>x.dO,checkStatusFor:()=>x.Ef,cleanupObsoleteFeatureFlags:()=>D.D3,clearConfigErrors:()=>n.Nh,clearCurrentUser:()=>o.g$,clearHistory:()=>M.g4,closeAllWorkspaces:()=>q.G_3,closeWorkspace:()=>q.MJ8,closeWorkspaceGroup2:()=>q.biy,compile:()=>N.wE,configExtensionStore:()=>n.hs,configInternalStore:()=>n.Rt,convertToLocaleCalendar:()=>K.d4,createAttachment:()=>R.cD,createDashboard:()=>q.n6L,createErrorHandler:()=>A.J,createGlobalStore:()=>z.Zd,createUseStore:()=>j.rr,defaultVisitCustomRepresentation:()=>R.Rb,defineConfigSchema:()=>n.T0,defineExtensionConfigSchema:()=>n.ks,deleteAttachmentPermanently:()=>R.SY,deleteSynchronizationItem:()=>k.lY,detach:()=>x.Yo,detachAll:()=>x.No,dispatchActionableNotificationShown:()=>F.LQ,dispatchConnectivityChanged:()=>F.Yt,dispatchNotificationShown:()=>F.FI,dispatchPrecacheStaticDependencies:()=>F.pc,dispatchSnackbarShown:()=>F.$3,dispatchToastShown:()=>F.Vt,displayName:()=>ee.QC,duration:()=>K.p0,enableImportMapOverride:()=>i.BX,esmStyleGuideSchema:()=>q.uQD,evaluate:()=>N._3,evaluateAsBoolean:()=>N.eb,evaluateAsBooleanAsync:()=>N.Gz,evaluateAsNumber:()=>N.dX,evaluateAsNumberAsync:()=>N.$F,evaluateAsType:()=>N.Sj,evaluateAsTypeAsync:()=>N.uN,evaluateAsync:()=>N.mv,extractVariableNames:()=>C,featureFlagsStore:()=>D.jX,fetchCurrentPatient:()=>R.hG,fhirBaseUrl:()=>o.IU,filterBreadcrumbs:()=>M.D_,finishRegisteringAllApps:()=>X,fireOpenmrsEvent:()=>R.X1,formatDate:()=>K.Yq,formatDatetime:()=>K.Rt,formatDuration:()=>K.a3,formatDurationBetween:()=>K.g2,formatPartialDate:()=>K.LW,formatPatientName:()=>ee.Qr,formatTime:()=>K.fU,formattedName:()=>ee.qK,generateOfflineUuid:()=>k.sA,getAssignedExtensions:()=>x.zx,getAsyncExtensionLifecycle:()=>j.sc,getAsyncLifecycle:()=>j.ns,getAttachmentByUuid:()=>R.KU,getAttachments:()=>R.Bv,getBreadcrumbs:()=>M.lz,getBreadcrumbsFor:()=>M.qh,getConfig:()=>n.zj,getConfigStore:()=>n.IS,getCoreTranslation:()=>J.V,getCurrentImportMap:()=>s.Ln,getCurrentOfflineMode:()=>k.wJ,getCurrentPageMap:()=>i.F$,getCurrentRouteMap:()=>g,getCurrentUser:()=>o.HW,getDefaultCalendar:()=>K.a7,getDefaultsFromConfigSchema:()=>oe,getDynamicOfflineDataEntries:()=>k.FE,getDynamicOfflineDataEntriesFor:()=>k.WA,getDynamicOfflineDataHandlers:()=>k.qb,getExtensionConfig:()=>n.UY,getExtensionConfigFromExtensionSlotStore:()=>n.g$,getExtensionConfigFromStore:()=>n.P0,getExtensionInternalStore:()=>x.a9,getExtensionNameFromId:()=>x.ES,getExtensionRegistration:()=>x.Tj,getExtensionRegistrationFrom:()=>x.xg,getExtensionSlotConfig:()=>n.G9,getExtensionSlotConfigFromStore:()=>n.vu,getExtensionSlotsConfigStore:()=>n.YP,getExtensionStore:()=>x.zF,getExtensionsConfigStore:()=>n.GI,getFeatureFlag:()=>D.jj,getFhirServerPaginationHandlers:()=>j.mw,getFullSynchronizationItems:()=>k.C$,getFullSynchronizationItemsFor:()=>k.xc,getGlobalStore:()=>z.jf,getGroupByWindowName:()=>x.o1,getHistory:()=>M.JK,getImportMapDefaultMap:()=>i.tK,getImportMapDisabledOverrides:()=>i.xI,getImportMapNextPageMap:()=>i.o5,getImportMapOverrideMap:()=>i.uT,getLifecycle:()=>j.JK,getLocale:()=>Q.J,getLocations:()=>R.Vs,getLoggedInUser:()=>o.xC,getModalRegistration:()=>x.Fg,getOfflineDb:()=>k.e,getOfflinePatientDataStore:()=>k.WK,getOfflineSynchronizationStore:()=>k.LM,getOmrsServiceWorker:()=>k.Rs,getOpenedWindowIndexByWorkspace:()=>x.YX,getPatientName:()=>ee.Vp,getPromptBeforeClosingFcn:()=>q.OeE,getRegisteredWorkspace2Names:()=>q.uBm,getRouteMapDefaultMap:()=>E,getRouteMapNextPageMap:()=>I,getRouteMapOverrideMap:()=>v,getSessionLocation:()=>o.Kx,getSessionStore:()=>o.EW,getStartedVisit:()=>R.DK,getSyncLifecycle:()=>j.g9,getSynchronizationItem:()=>k.Gp,getSynchronizationItems:()=>k.pb,getSynchronizationItemsFor:()=>k.Io,getTranslationOverrides:()=>n.td,getVisitStore:()=>R.BX,getVisitTypes:()=>R.Pu,getVisitsForPatient:()=>R.BR,getWindowByWorkspaceName:()=>x.Ml,getWorkspaceGroupRegistration:()=>x.Q_,getWorkspaceGroupStore:()=>q.e_T,getWorkspaceRegistration:()=>x.Xb,getWorkspaceStore:()=>q.XzH,goBackInHistory:()=>M.tA,iconIds:()=>q.kE8,implementerToolsConfigStore:()=>n.tN,importDynamic:()=>s.rL,inRange:()=>n.r4,integrateBreakpoints:()=>q.WMK,interpolateString:()=>M.zl,interpolateUrl:()=>M.JG,isDesktop:()=>j.xl,isDevEnabled:()=>o.L7,isImportMapOverrideDisabled:()=>i.q1,isOfflineUuid:()=>k.bO,isOmrsDateStrict:()=>K.hl,isOmrsDateToday:()=>K.vU,isOnline:()=>Z.s,isOpenmrsAppRoutes:()=>a,isOpenmrsRoutes:()=>c,isUrl:()=>n.gU,isUrlWithTemplateParameters:()=>n.qG,isVersionSatisfied:()=>ae,jsep:()=>N.PQ,launchWorkspace:()=>q.TC2,launchWorkspace2:()=>q.pTx,launchWorkspaceGroup:()=>q.aN0,launchWorkspaceGroup2:()=>q.GYk,leftNavStore:()=>x.Gp,loadLifeCycles:()=>U.o,makeUrl:()=>o.Gm,messageOmrsServiceWorker:()=>k.ms,navigate:()=>M.oo,navigateAndLaunchWorkspace:()=>q.Fmw,offlineUuidPrefix:()=>k.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>k.JC,omrsOfflineResponseBodyHttpHeaderName:()=>k.UH,omrsOfflineResponseStatusHttpHeaderName:()=>k.Gj,oneOf:()=>n.yL,openmrsComponentDecorator:()=>j.F7,openmrsFetch:()=>o.lo,openmrsObservableFetch:()=>o.ut,parseDate:()=>K._U,parseDateInput:()=>K.qE,pictogramIds:()=>q.vJW,preloadImport:()=>s.zC,processConfig:()=>n.mq,promptBeforeClosing:()=>q.F3N,promptForClosingWorkspaces:()=>q.hLN,provide:()=>n.Gt,putDynamicOfflineData:()=>k.yD,putDynamicOfflineDataFor:()=>k.ff,queueSynchronizationItem:()=>k.Zr,queueSynchronizationItemFor:()=>k.Iq,refetchCurrentUser:()=>o.yH,registerApp:()=>H,registerBreadcrumb:()=>M.vf,registerBreadcrumbs:()=>M.MY,registerDefaultCalendar:()=>K.XE,registerExtension:()=>x.VK,registerExtensionSlot:()=>x.FY,registerFeatureFlag:()=>D.uA,registerGlobalStore:()=>z.CE,registerModal:()=>x.Ju,registerModuleLoad:()=>n.kl,registerModuleWithConfigSystem:()=>n.FL,registerOfflinePatientHandler:()=>k.KG,registerOmrsServiceWorker:()=>k.sZ,registerTranslationNamespace:()=>n.GV,registerWorkspace:()=>x.pm,registerWorkspaceGroup:()=>x.io,registerWorkspaceGroups2:()=>x.rD,registerWorkspaceWindows2:()=>x.Qb,registerWorkspaces2:()=>x.Uh,removeDynamicOfflineData:()=>k.NU,removeDynamicOfflineDataFor:()=>k.wn,removeImportMapOverride:()=>i.E,removeRouteMapOverride:()=>S,renderActionableNotifications:()=>q.zfR,renderExtension:()=>x.wG,renderInlineNotifications:()=>q.CU$,renderLoadingSpinner:()=>q.uWG,renderSnackbars:()=>q.ZLm,renderToasts:()=>q.f1b,renderWorkspaceWindowsAndMenu:()=>q.jCr,reportError:()=>A.N,reset:()=>x.cL,resetConfigSystem:()=>n.Nz,resetImportMapOverrides:()=>i.w_,resetRouteMapOverrides:()=>$,resetWorkspaceStore:()=>q._1W,restBaseUrl:()=>o.Jj,retry:()=>ce,runSynchronization:()=>k.AO,saveVisit:()=>R.Ds,selectPreferredName:()=>ee.VO,sessionEndpoint:()=>o.Ct,sessionStore:()=>o.eA,setCurrentOfflineMode:()=>k.Og,setCurrentVisit:()=>R.NH,setFeatureFlag:()=>D.B4,setLeftNav:()=>x.Vx,setSessionLocation:()=>o.Gp,setUserLanguage:()=>o.E4,setUserProperties:()=>o.Fi,setupApiModule:()=>o.Y0,setupDynamicOfflineDataHandler:()=>k.iD,setupHistory:()=>M.Wh,setupImportMapOverrides:()=>i.SM,setupModals:()=>q.EPe,setupOfflineSync:()=>k.cy,setupRouteMapOverrides:()=>y,shallowEqual:()=>te.b,showActionableNotification:()=>q.ZyP,showModal:()=>q.toY,showNotification:()=>q.Dsh,showSnackbar:()=>q.tdF,showToast:()=>q.P0c,showWorkspacePrompts:()=>q.ctS,slugify:()=>s.Yv,subscribeActionableNotificationShown:()=>F.bK,subscribeConnectivity:()=>F.sT,subscribeConnectivityChanged:()=>F.gj,subscribeNotificationShown:()=>F.bJ,subscribeOpenmrsEvent:()=>R.$y,subscribePrecacheStaticDependencies:()=>F.ff,subscribeSnackbarShown:()=>F.ls,subscribeTo:()=>z.i7,subscribeToFeatureFlag:()=>D.sM,subscribeToastShown:()=>F.dX,syncAllDynamicOfflineData:()=>k.Td,syncDynamicOfflineData:()=>k.u1,syncOfflinePatientData:()=>k.sK,temporaryConfigStore:()=>n.H,toDateObjectStrict:()=>K.kQ,toLocationObject:()=>R.E$,toOmrsIsoString:()=>K.l0,toVisitTypeObject:()=>R.Qx,translateFrom:()=>J.t,tryRegisterExtension:()=>W,unsetLeftNav:()=>x.sr,updateExtensionSlotState:()=>x.ap,updateInternalExtensionStore:()=>x.DQ,updateVisit:()=>R.xL,updateWorkspaceWindowState:()=>q._RD,useAbortController:()=>j.Ie,useAppContext:()=>j.Us,useAssignedExtensionIds:()=>j.Tt,useAssignedExtensions:()=>j.CX,useAttachments:()=>j._9,useBodyScrollLock:()=>j.yJ,useConfig:()=>j.UK,useConnectedExtensions:()=>j.zD,useConnectivity:()=>j.Fx,useCustomOverflowMenu:()=>q.ckU,useDebounce:()=>j.d7,useDefineAppContext:()=>j.jn,useEmrConfiguration:()=>j.E4,useExtensionInternalStore:()=>j.$B,useExtensionSlot:()=>j.br,useExtensionSlotMeta:()=>j.Wq,useExtensionSlotStore:()=>j.uL,useExtensionStore:()=>j.Gz,useFeatureFlag:()=>j.u,useFhirFetchAll:()=>j.oq,useFhirInfinite:()=>j.vL,useFhirPagination:()=>j.to,useForceUpdate:()=>j.CH,useLayoutType:()=>j.qv,useLeftNav:()=>j.if,useLeftNavStore:()=>j.TA,useLocations:()=>j.kH,useOnClickOutside:()=>j.Wr,useOnVisible:()=>j.Jm,useOpenmrsFetchAll:()=>j.Bf,useOpenmrsInfinite:()=>j.iy,useOpenmrsPagination:()=>j.Ed,useOpenmrsSWR:()=>j.M3,usePagination:()=>j.WQ,usePaginationInfo:()=>j.WK,usePatient:()=>j.tQ,usePatientPhoto:()=>q.R9n,usePrimaryIdentifierCode:()=>j.wJ,useRenderableExtensions:()=>j.oU,useSession:()=>j.wV,useStore:()=>j.Pj,useStoreWithActions:()=>j.mQ,useVisit:()=>j.fq,useVisitContextStore:()=>j.xH,useVisitTypes:()=>j.wr,useWorkspace2Context:()=>q.WO_,useWorkspace2Store:()=>q.AkA,useWorkspaces:()=>q.CH0,userHasAccess:()=>o.st,validator:()=>n.Nc,validators:()=>n.y$,workspace2Store:()=>x.J_,workspace2StoreActions:()=>q.cJy,workspaceStore:()=>q.x9q});var o=r(5585),n=r(8504),s=r(6158),i=r(293);function a(e){if(e&&"object"==typeof e){const t=e;return!!((!Object.hasOwn(e,"pages")||Boolean(t.pages)&&Array.isArray(t.pages))&&(!Object.hasOwn(e,"extensions")||Boolean(t.extensions)&&Array.isArray(t.extensions))&&(!Object.hasOwn(e,"workspaces")||Boolean(t.workspaces)&&Array.isArray(t.workspaces))&&(!Object.hasOwn(e,"modals")||Boolean(t.modals)&&Array.isArray(t.modals)))}return!1}function c(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every(([e,t])=>"string"==typeof e&&a(t))}return!1}const l="openmrs-routes:",p="openmrs-routes:change";let u=!1,m=null;async function f(){const e=document.querySelectorAll("script[type='openmrs-routes']"),t=[];for(let r=0;r<e.length;r++){const o=e[r];try{let e;if(o.src){const t=await fetch(o.src);e=await t.json()}else o.textContent&&(e=JSON.parse(o.textContent));e&&c(e)&&t.push(e)}catch(e){console.warn(`[route-maps] Failed to parse routes from script tag at index ${r}`,e)}}return h(t)}function h(e){const t={};for(const r of e)r&&"object"==typeof r&&Object.assign(t,r);return t}async function d(){const e={};try{const t=[];for(let e=0;e<localStorage.length;e++){const r=localStorage.key(e);if(r?.startsWith(l)){const e=localStorage.getItem(r);e&&t.push({moduleName:r.slice(15),raw:e})}}const r=await Promise.allSettled(t.map(async({moduleName:e,raw:t})=>{const r=JSON.parse(t);if(a(r))return{moduleName:e,routes:r};if("string"==typeof r&&r.startsWith("http")){const t=await fetch(r),o=await t.json();if(a(o))return{moduleName:e,routes:o};throw new Error(`${r} did not resolve to a valid OpenmrsAppRoutes object`)}throw new Error(`Override for ${e} is neither a valid routes object nor a URL`)}));for(const t of r)"fulfilled"===t.status?e[t.value.moduleName]=t.value.routes:console.warn("[route-maps] Failed to load route override",t.reason)}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}async function g(){const e=await f();return u?h([e,m??await d()]):e}async function E(){return f()}async function I(){return u?h([await f(),await d()]):f()}function v(){if(!u)return{};const e={};try{for(let t=0;t<localStorage.length;t++){const r=localStorage.key(t);if(r?.startsWith(l)){const t=localStorage.getItem(r);t&&(e[r.slice(15)]=t)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function O(e,t){if(u)try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(l+e,JSON.stringify(t));else{const r=JSON.parse(t);if(!a(r))return void console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t);localStorage.setItem(l+e,JSON.stringify(r))}else if(t instanceof URL)localStorage.setItem(l+e,JSON.stringify(t.toString()));else{if(!a(t))return void console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t);localStorage.setItem(l+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(p))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}else console.warn("[Security] Route overrides are disabled outside development mode.")}function S(e){if(u)try{localStorage.removeItem(l+e),window.dispatchEvent(new CustomEvent(p))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}else console.warn("[Security] Route overrides are disabled outside development mode.")}function $(){if(u)try{const e=[];for(let t=0;t<localStorage.length;t++){const r=localStorage.key(t);r?.startsWith(l)&&e.push(r)}e.forEach(e=>localStorage.removeItem(e)),window.dispatchEvent(new CustomEvent(p))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}else console.warn("[Security] Route overrides are disabled outside development mode.")}let w=null;function y(){return w||(u="development"===window.spaEnv,w=u?d().then(e=>{m=e}):Promise.resolve(),w)}var R=r(2424),A=r(5596),N=r(8147),L=r(9493),b=r(9566);function C(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=b.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return P("string"==typeof e?(0,L.A)(e):e,t),[...t.variables]}function P(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return P(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[P(e.left,t),P(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[P(e.consequent,t),P(e.test,t),P(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=P(e.callee,t);return e.arguments?.map(T(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const o=e.params?.map(T(r))??[],n=P(e.body,r)??[];if(n&&Array.isArray(n))for(const e of n)o.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){P(e.object,t);const r={...t};r.isLocalExpression=!0,P(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map(T(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map(T(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map(T(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map(T(t)),e.quasis?.map(T(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function T(e){return function(t){return null===t?null:P(t,e)}}var x=r(5234),D=r(3507),F=r(53),M=r(5461),k=r(8201),j=r(411),G=r(599),U=r(6599);function W(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const o=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,x.VK)({name:r,load:()=>(0,U.o)(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag,displayExpression:t.displayExpression});for(const e of o)(0,x.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const B=[];function _(e){if(Array.isArray(e)){const t=e.map(_);return e=>t.some(t=>t(e))}return"string"==typeof e?(0,G.fz)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function H(e,t){if(e&&t&&"object"==typeof t){(0,n.FL)(e);const r=t.extensions??[],o=t.modals??[],s=t.workspaces??[],i=t.workspaceGroups??[],a=t.featureFlags??[],c=t.workspaceGroups2??[],l=t.workspaceWindows2??[],p=t.workspaces2??[];t.pages?.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?B.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)}),r.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?W(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)}),o.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,x.Ju)({name:r,moduleName:e,load:()=>(0,U.o)(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)}),s.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const o=t.title;if(o)if(t.component){(0,x.pm)({name:r,title:o,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>(0,U.o)(e,t.component)});for(const e of t.groups||[])(0,x.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)}),i.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,x.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)}),function(e,t){(0,x.rD)(e,t)}(e,c),function(e,t){(0,x.Qb)(e,t);for(const r of t)r.icon&&W(e,{name:r.name,component:r.icon,slot:r.group,order:r.order})}(e,l),function(e,t){(0,x.Uh)(e,t)}(e,p),a.forEach(t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,D.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)})}}function X(){B.sort((e,t)=>e.appName.localeCompare(t.appName,"en"));let e=new Map;for(let t of B){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),o=`${t.appName}-page-${r}`,n=t.containerDomId??"omrs-apps-container",s=document.getElementById(n),i=`single-spa-application:${o}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${n}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}V(o,t)}}function V(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const o=function(e,{online:t,offline:r,featureFlag:o}){return window.offlineEnabled?n=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(o&&!(0,D.jj)(o))&&e(n):e}(_(r),t);(0,G.AG)(e,()=>(0,U.o)(t.appName,t.component),o)}var z=r(5517),q=r(2774),J=r(3700),Y=r(1834),K=r(220),Q=r(6144),Z=r(2737),ee=r(244),te=r(1605);function re(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}function oe(e){let t={};for(let r of Object.keys(e))if(ne(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;ne(e[r])?t[r]=oe(e[r]):t[r]=e[r]}return t}function ne(e){return!!e&&e.constructor===Object}var se=r(9589);function ie(e){const[t,r,o]=e.split(".");return`${t}.${r}.${o}`}function ae(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${ie(e.slice(0,t))}-${e.slice(t+1)}`:ie(e)}(t);return se.satisfies(r,e,{includePrerelease:!0})}async function ce(e,t={}){let{shouldRetry:r,getDelay:o,onError:n}=t;r=r??(e=>function(e){return e<=5}(e)),o=o??(e=>function(e,t,r=!1){const o=r?e+1:e;return 1e3*Math.pow(2,o)}(e));let s,i=0;do{try{return await le(o(i)),await e()}catch(e){n?.(e,i),s=e}}while(r(i++));throw s}async function le(e){if(!(e<=0))return new Promise(t=>setTimeout(t,e))}}}]);
|