@openmrs/esm-login-app 4.0.3 → 4.0.4-pre.475
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/.turbo/turbo-build.log +32 -32
- package/dist/420.js +1 -1
- package/dist/607.js +1 -1
- package/dist/889.js +1 -1
- package/dist/98.js +2 -0
- package/dist/98.js.LICENSE.txt +9 -0
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-login-app.js +1 -1
- package/dist/openmrs-esm-login-app.js.buildmanifest.json +15 -15
- package/dist/openmrs-esm-login-app.old +1 -1
- package/package.json +5 -5
- package/dist/50.js +0 -2
- package/dist/50.js.LICENSE.txt +0 -14
package/dist/98.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 98.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[98],{2173:(e,t,n)=>{var r=n(5776),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,u=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return u((function(){o.value=n,o.getSnapshot=t,s(o)&&l({inst:o})}),[e,n,t]),a((function(){return s(o)&&l({inst:o}),e((function(){s(o)&&l({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},1374:(e,t,n)=>{e.exports=n(2173)},9717:(e,t,n)=>{n.d(t,{Z:()=>R});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof global&&global&&global.Object===Object&&global;var i="object"==typeof self&&self&&self.Object===Object&&self;const a=o||i||Function("return this")(),u=function(){return a.Date.now()};var c=/\s/;var s=/^\s+/;const l=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t}(e)+1).replace(s,""):e},f=a.Symbol;var d=Object.prototype,v=d.hasOwnProperty,g=d.toString,p=f?f.toStringTag:void 0;var y=Object.prototype.toString;var h=f?f.toStringTag:void 0;const b=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?function(e){var t=v.call(e,p),n=e[p];try{e[p]=void 0;var r=!0}catch(e){}var o=g.call(e);return r&&(t?e[p]=n:delete e[p]),o}(e):function(e){return y.call(e)}(e)};var m=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,S=/^0o[0-7]+$/i,_=parseInt;const O=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==b(e)}(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=w.test(e);return n||S.test(e)?_(e.slice(2),n?2:8):m.test(e)?NaN:+e};var E=Math.max,k=Math.min;const R=function(e,t,n){var o,i,a,c,s,l,f=0,d=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=o,r=i;return o=i=void 0,f=t,c=e.apply(r,n)}function y(e){return f=e,s=setTimeout(b,t),d?p(e):c}function h(e){var n=e-l;return void 0===l||n>=t||n<0||v&&e-f>=a}function b(){var e=u();if(h(e))return m(e);s=setTimeout(b,function(e){var n=t-(e-l);return v?k(n,a-(e-f)):n}(e))}function m(e){return s=void 0,g&&o?p(e):(o=i=void 0,c)}function w(){var e=u(),n=h(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return y(l);if(v)return clearTimeout(s),s=setTimeout(b,t),p(l)}return void 0===s&&(s=setTimeout(b,t)),c}return t=O(t)||0,r(n)&&(d=!!n.leading,a=(v="maxWait"in n)?E(O(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==s&&clearTimeout(s),f=0,o=l=i=s=void 0},w.flush=function(){return void 0===s?c:m(u())},w}},8225:(e,t,n)=>{n.d(t,{ZP:()=>G});var r=n(5776),o=n(1374);const i=new WeakMap,a={},u=()=>{},c=u(),s=Object,l=e=>e===c,f=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),v="undefined",g=typeof window!=v,p=typeof document!=v,y=(e,t)=>{const n=i.get(e);return[()=>e.get(t)||a,r=>{const o=e.get(t);n[5](t,d(o,r),o||a)},n[6]]},h=new WeakMap;let b=0;const m=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(s(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=h.get(e),o)return o;if(o=++b+"~",h.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=m(e[i])+",";h.set(e,o)}if(n==s){o="#";const t=s.keys(e).sort();for(;!l(i=t.pop());)l(e[i])||(o+=i+":"+m(e[i])+",");h.set(e,o)}}return o};let w=!0;const[S,_]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],O={isOnline:()=>w,isVisible:()=>{const e=p&&document.visibilityState;return l(e)||"hidden"!==e}},E={initFocus:e=>(p&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{p&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return S("online",t),S("offline",n),()=>{_("online",t),_("offline",n)}}},k=!r.useId,R=!g||"Deno"in window,T=R?r.useEffect:r.useLayoutEffect,L="undefined"!=typeof navigator&&navigator.connection,C=!R&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),x=e=>{if(f(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t]};let V=0;const j=()=>++V;async function D(...e){const[t,n,r,o]=e,a=d({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let u=a.populateCache;const s=a.rollbackOnError;let v=a.optimisticData;const g=!1!==a.revalidate,p=a.throwOnError;if(f(n)){const e=n,r=[],o=t.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!o.startsWith("$inf$")&&e(t.get(o)._k)&&r.push(o)}return Promise.all(r.map(h))}return h(n);async function h(n){const[o]=x(n);if(!o)return;const[a,d]=y(t,o),[h,b,m]=i.get(t),w=h[o],S=()=>g&&(delete m[o],w&&w[0])?w[0](2).then((()=>a().data)):a().data;if(e.length<3)return S();let _,O=r;const E=j();b[o]=[E,0];const k=!l(v),R=a(),T=R.data,L=R._c,C=l(L)?T:L;if(k&&(v=f(v)?v(C):v,d({data:v,_c:C})),f(O))try{O=O(C)}catch(e){_=e}if(O&&f(O.then)){if(O=await O.catch((e=>{_=e})),E!==b[o][0]){if(_)throw _;return O}_&&k&&(e=>"function"==typeof s?s(e):!1!==s)(_)&&(u=!0,O=C,d({data:O,_c:c}))}u&&(_||(f(u)&&(O=u(O,C)),d({data:O,_c:c}))),b[o][1]=j();const V=await S();if(d({_c:c}),!_)return u?V:O;if(p)throw _}}const P=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},I=(e,t)=>{if(!i.has(e)){const n=d(E,t),r={},o=D.bind(c,e);let a=u;const s={},l=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(let e=o.length;e--;)o[e](r,n)},v=()=>{if(!i.has(e)&&(i.set(e,[r,{},{},{},o,f,l]),!R)){const t=n.initFocus(setTimeout.bind(c,P.bind(c,r,0))),o=n.initReconnect(setTimeout.bind(c,P.bind(c,r,1)));a=()=>{t&&t(),o&&o(),i.delete(e)}}};return v(),[e,o,v,a]}return[e,i.get(e)[4]]},[M,W]=I(new Map),F=d({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!l(i)&&a>i||setTimeout(r,u,o)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:(e,t)=>m(e)==m(t),isPaused:()=>!1,cache:M,mutate:W,fallback:{}},O),A=(e,t)=>{const n=d(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=d(o,a))}return n},N=(0,r.createContext)({}),$=g&&window.__SWR_DEVTOOLS_USE__,z=$?window.__SWR_DEVTOOLS_USE__:[],q=e=>f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],U=z.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const r=x(t)[0],[,,,o]=i.get(M),a=o[r];return a?(delete o[r],a):n(...e)}),r)));$&&(window.__SWR_DEVTOOLS_REACT__=r);const J={dedupe:!0};s.defineProperty((e=>{const{value:t}=e,n=(0,r.useContext)(N),o=f(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),a=(0,r.useMemo)((()=>o?i:A(n,i)),[o,n,i]),u=i&&i.provider,[s]=(0,r.useState)((()=>u?I(u(a.cache||M),i):c));return s&&(a.cache=s[0],a.mutate=s[1]),T((()=>{if(s)return s[2]&&s[2](),s[3]}),[]),(0,r.createElement)(N.Provider,d(e,{value:a}))}),"defaultValue",{value:F});var Z,H=(Z=(e,t,n)=>{const{cache:a,compare:u,suspense:s,fallbackData:p,revalidateOnMount:h,refreshInterval:b,refreshWhenHidden:m,refreshWhenOffline:w,keepPreviousData:S}=n,[_,O,E]=i.get(a),[L,C]=x(e),V=(0,r.useRef)(!1),P=(0,r.useRef)(!1),I=(0,r.useRef)(L),M=(0,r.useRef)(t),W=(0,r.useRef)(n),F=()=>W.current,A=()=>F().isVisible()&&F().isOnline(),[N,$,z]=y(a,L),q=(0,r.useRef)({}).current,U=l(p)?n.fallback[L]:p,Z=(e,t)=>{let n=!0;for(const r in q){const o=r;u(t[o],e[o])||"data"===o&&l(e[o])&&u(t[o],ee)||(n=!1)}return n},H=(0,r.useMemo)((()=>{const e=!!L&&!!t&&(l(h)?!F().isPaused()&&!s:h),n=()=>{const t=N(),n=d(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n};let r=n();return()=>{const e=n();return Z(e,r)?r:r=e}}),[a,L]),B=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>z(L,((t,n)=>{Z(t,n)||e()}))),[a,L]),H,H),G=!V.current,K=B.data,Q=l(K)?U:K,X=B.error,Y=(0,r.useRef)(Q),ee=S?l(K)?Y.current:K:Q,te=G&&!l(h)?h:!F().isPaused()&&(s?!l(Q)&&n.revalidateIfStale:l(Q)||n.revalidateIfStale),ne=!!(L&&t&&G&&te),re=l(B.isValidating)?ne:B.isValidating,oe=l(B.isLoading)?ne:B.isLoading,ie=(0,r.useCallback)((async e=>{const t=M.current;if(!L||!t||P.current||F().isPaused())return!1;let r,o,i=!0;const a=e||{},s=!E[L]||!a.dedupe,d=()=>k?!P.current&&L===I.current&&V.current:L===I.current,v={isValidating:!1,isLoading:!1},g=()=>{$(v)},p=()=>{const e=E[L];e&&e[1]===o&&delete E[L]},y={isValidating:!0};l(N().data)&&(y.isLoading=!0);try{if(s&&($(y),n.loadingTimeout&&l(N().data)&&setTimeout((()=>{i&&d()&&F().onLoadingSlow(L,n)}),n.loadingTimeout),E[L]=[t(C),j()]),[r,o]=E[L],r=await r,s&&setTimeout(p,n.dedupingInterval),!E[L]||E[L][1]!==o)return s&&d()&&F().onDiscarded(L),!1;v.error=c;const e=O[L];if(!l(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return g(),s&&d()&&F().onDiscarded(L),!1;const a=N().data;v.data=u(a,r)?a:r,s&&d()&&F().onSuccess(r,L,n)}catch(e){p();const t=F(),{shouldRetryOnError:n}=t;t.isPaused()||(v.error=e,s&&d()&&(t.onError(e,L,t),(!0===n||f(n)&&n(e))&&A()&&t.onErrorRetry(e,L,t,ie,{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return i=!1,g(),!0}),[L,a]),ae=(0,r.useCallback)(((...e)=>D(a,I.current,...e)),[]);if(T((()=>{M.current=t,W.current=n,l(K)||(Y.current=K)})),T((()=>{if(!L)return;const e=ie.bind(c,J);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(L,_,(n=>{if(0==n){const n=Date.now();F().revalidateOnFocus&&n>t&&A()&&(t=n+F().focusThrottleInterval,e())}else if(1==n)F().revalidateOnReconnect&&A()&&e();else if(2==n)return ie()}));return P.current=!1,I.current=L,V.current=!0,$({_k:C}),te&&(l(Q)||R?e():(r=e,g&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{P.current=!0,n()};var r}),[L]),T((()=>{let e;function t(){const t=f(b)?b(Q):b;t&&-1!==e&&(e=setTimeout(n,t))}function n(){N().error||!m&&!F().isVisible()||!w&&!F().isOnline()?t():ie(J).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[b,m,w,L]),(0,r.useDebugValue)(ee),s&&l(Q)&&L){if(!k&&R)throw new Error("Fallback data is required when using suspense in SSR.");throw M.current=t,W.current=n,P.current=!1,l(X)?ie(J):X}return{mutate:ae,get data(){return q.data=!0,ee},get error(){return q.error=!0,X},get isValidating(){return q.isValidating=!0,re},get isLoading(){return q.isLoading=!0,oe}}},function(...e){const t=d(F,(0,r.useContext)(N)),[n,o,i]=q(e),a=A(t,i);let u=Z;const{use:c}=a,s=(c||[]).concat(U);for(let e=s.length;e--;)u=s[e](u);return u(n,o||a.fetcher||null,a)});const B=Promise.resolve();var G=((e,t)=>(...n)=>{const[r,o,i]=q(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})})(H,(e=>(t,n,i)=>{const a=(0,r.useRef)(!1),u=(0,r.useRef)(),{cache:s,initialSize:d=1,revalidateAll:v=!1,persistSize:g=!1,revalidateFirstPage:p=!0,revalidateOnMount:h=!1}=i;let b;try{b=(e=>x(e?e(0,null):null)[0])(t),b&&(b="$inf$"+b)}catch(e){}const[m,w,S]=y(s,b),_=(0,r.useCallback)((()=>l(m()._l)?d:m()._l),[s,b,d]);(0,o.useSyncExternalStore)((0,r.useCallback)((e=>b?S(b,(()=>{e()})):()=>{}),[s,b]),_,_);const O=(0,r.useCallback)((()=>{const e=m()._l;return l(e)?d:e}),[b,d]),E=(0,r.useRef)(O());T((()=>{a.current?b&&w({_l:g?E.current:d}):a.current=!0}),[b,s]);const k=h&&!a.current,R=e(b,(async()=>{const[e,r]=m()._i||[],o=[],a=O();let f=null;for(let c=0;c<a;++c){const[a,d]=x(t(c,f));if(!a)break;const[g,h]=y(s,a);let b=g().data;const m=v||e||l(b)||p&&!c&&!l(u.current)||k||r&&!l(r[c])&&!i.compare(r[c],b);n&&m&&(b=await n(d),h({data:b,_k:d})),o.push(b),f=b}return w({_i:c}),o}),i);T((()=>{u.current=R.data}),[R.data]);const L=(0,r.useCallback)((function(e,t){const n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;if(!b)return B;if(r)if(l(e))w({_i:[!0]});else{const e=u.current;w({_i:[!1,e]})}return arguments.length?R.mutate(e,{...n,revalidate:r}):R.mutate()}),[b,s]),C=(0,r.useCallback)((e=>{if(!b)return B;let n;return f(e)?n=e(O()):"number"==typeof e&&(n=e),"number"!=typeof n?B:(w({_l:n}),E.current=n,L((e=>{const n=[];let r=null;for(let i=0;i<e;++i){var o;const[e]=x(t(i,r)),a=e?null==(o=s.get(e))?void 0:o.data:c;if(l(a))return u.current;n.push(a),r=a}return n})(n)))}),[b,O,L,s]);return{size:O(),setSize:C,mutate:L,get data(){return R.data},get error(){return R.error},get isValidating(){return R.isValidating},get isLoading(){return R.isLoading}}}))}}]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,r,t={2420:(e,r,t)=>{"use strict";var n=t(4610);n.Type.String,n.Type.String,n.validators.isUrl,n.Type.String,n.validators.isUrl,n.Type.Boolean,n.Type.Number,n.Type.Number,n.Type.Boolean,n.Type.String,n.validators.isUrl,n.Type.String,n.validators.isUrl,n.Type.String,t(3979)},3979:(e,r,t)=>{var n={"./de.json":[4272,272],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./hi.json":[5336,336],"./sw.json":[236,236],"./sw_KE.json":[539,539],"./tr_TR.json":[5673,673],"./uk.json":[5240,240],"./zh_CN.json":[1644,644]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-login-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var l,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),p=0;p<u.length;p++){var f=u[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var d=(r,n)=>{l.onerror=l.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],l="@openmrs/esm-login-app",s=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:l>a.from))&&(o[r]={get:t,from:l,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","4.0.
|
|
1
|
+
(()=>{var e,r,t={2420:(e,r,t)=>{"use strict";var n=t(4610);n.Type.String,n.Type.String,n.validators.isUrl,n.Type.String,n.validators.isUrl,n.Type.Boolean,n.Type.Number,n.Type.Number,n.Type.Boolean,n.Type.String,n.validators.isUrl,n.Type.String,n.validators.isUrl,n.Type.String,t(3979)},3979:(e,r,t)=>{var n={"./de.json":[4272,272],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./hi.json":[5336,336],"./sw.json":[236,236],"./sw_KE.json":[539,539],"./tr_TR.json":[5673,673],"./uk.json":[5240,240],"./zh_CN.json":[1644,644]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-login-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var l,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),p=0;p<u.length;p++){var f=u[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var d=(r,n)=>{l.onerror=l.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],l="@openmrs/esm-login-app",s=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:l>a.from))&&(o[r]={get:t,from:l,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","4.0.4-pre.475",(()=>Promise.all([o.e(776),o.e(889)]).then((()=>()=>o(4889))))),s("react-dom","18.2.0",(()=>Promise.all([o.e(788),o.e(776)]).then((()=>()=>o(2788))))),s("react-i18next","11.18.6",(()=>Promise.all([o.e(925),o.e(776)]).then((()=>()=>o(2925))))),s("react-router-dom","6.4.2",(()=>Promise.all([o.e(759),o.e(776)]).then((()=>()=>o(5759))))),s("react","18.2.0",(()=>o.e(735).then((()=>()=>o(2735)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(o>0?".":"")+(o=2,l);return n}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():r(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<r.length?(typeof r[l])[0]:"";if(i>=n.length||"o"==(p=(typeof(u=n[i]))[0]))return!s||("u"==f?l>o&&!a:""==f!=a);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=o){if(u!=r[l])return!1}else{if(a?u>r[l]:u<r[l])return!1;u!=r[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(a||l<=o)return!1;s=!1,l--}else{if(l<=o||p<f!=a)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<r.length;i++){var h=r[i];d.push(1==h?c()|c():2==h?c()&c():h?t(h,n):!c())}return!!c()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},a=(e,o,a,l)=>{var s=n(e,a);return t(l,s)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(e,a,s,l)),i(e[a][s])},i=e=>(e.loaded=1,e.get()),l=(e=>function(r,t,n,a){var i=o.I(r);return i&&i.then?i.then(e.bind(e,r,o.S[r],t,n,a)):e(r,o.S[r],t,n,a)})(((e,r,t,n,i)=>r&&o.o(r,t)?a(r,0,t,n):i())),s={},u={5776:()=>l("default","react",[1,18],(()=>o.e(735).then((()=>()=>o(2735))))),2680:()=>l("default","react-i18next",[1,11],(()=>o.e(925).then((()=>()=>o(2925))))),1763:()=>l("default","react-router-dom",[1,6],(()=>o.e(759).then((()=>()=>o(5759))))),4610:()=>l("default","@openmrs/esm-framework",[0],(()=>Promise.all([o.e(776),o.e(889)]).then((()=>()=>o(4889)))))};[4610].forEach((e=>{o.m[e]=r=>{s[e]=0,delete o.c[e];var t=u[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var p={680:[2680],776:[5776],897:[1763]};o.f.consumes=(e,r)=>{o.o(p,e)&&p[e].forEach((e=>{if(o.o(s,e))return r.push(s[e]);var t=r=>{s[e]=0,o.m[e]=t=>{delete o.c[e],t.exports=r()}},n=r=>{delete s[e],o.m[e]=t=>{throw delete o.c[e],r}};try{var a=u[e]();a.then?r.push(s[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}))}})(),(()=>{var e={179:0,420:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(680|776)$/.test(r))e[r]=0;else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[i,l,s]=t,u=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);s&&s(o)}for(r&&r(t);u<i.length;u++)a=i[u],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),o.nc=void 0,o(2420)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_login_app;(()=>{function b(a){var c=h[a];if(void 0!==c)return c.exports;var d=h[a]={id:a,loaded:!1,exports:{}};return G[a](d,d.exports,b),d.loaded=!0,d.exports}var j,k,q,v,w,x,y,z,A,B,C,D,E,F,G={2918:(b,c,d)=>{var f={"./start":()=>d.e(420).then(()=>()=>d(2420))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},h={};b.m=G,b.c=h,b.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return b.d(c,{a:c}),c},b.d=(a,c)=>{for(var d in c)b.o(c,d)&&!b.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:c[d]})},b.f={},b.e=a=>Promise.all(Object.keys(b.f).reduce((c,d)=>(b.f[d](a,c),c),[])),b.u=a=>a+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),b.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-login-app:",b.l=(a,c,e)=>{if(j[a])j[a].push(c);else{var g,h;if(void 0!==e)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,b.nc&&g.setAttribute("nonce",b.nc),g.setAttribute("data-webpack",k+e),g.src=a),j[a]=[c];var q=(b,c)=>{g.onerror=g.onload=null,clearTimeout(f);var d=j[a];if(delete j[a],g.parentNode&&g.parentNode.removeChild(g),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},b.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{b.S={};var c={},d={};b.I=(e,f)=>{f||(f=[]);var g=d[e];if(g||(g=d[e]={}),!(0<=f.indexOf(g))){if(f.push(g),c[e])return c[e];b.o(b.S,e)||(b.S[e]={});var h=b.S[e],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-login-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-login-app",eager:!!d})},i=[];return"default"===e&&(a("@openmrs/esm-framework","4.0.
|
|
1
|
+
var _openmrs_esm_login_app;(()=>{function b(a){var c=h[a];if(void 0!==c)return c.exports;var d=h[a]={id:a,loaded:!1,exports:{}};return G[a].call(d.exports,d,d.exports,b),d.loaded=!0,d.exports}var j,k,q,v,w,x,y,z,A,B,C,D,E,F,G={2918:(b,c,d)=>{var f={"./start":()=>d.e(420).then(()=>()=>d(2420))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},h={};b.m=G,b.c=h,b.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return b.d(c,{a:c}),c},b.d=(a,c)=>{for(var d in c)b.o(c,d)&&!b.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:c[d]})},b.f={},b.e=a=>Promise.all(Object.keys(b.f).reduce((c,d)=>(b.f[d](a,c),c),[])),b.u=a=>a+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),b.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-login-app:",b.l=(a,c,e)=>{if(j[a])j[a].push(c);else{var g,h;if(void 0!==e)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,b.nc&&g.setAttribute("nonce",b.nc),g.setAttribute("data-webpack",k+e),g.src=a),j[a]=[c];var q=(b,c)=>{g.onerror=g.onload=null,clearTimeout(f);var d=j[a];if(delete j[a],g.parentNode&&g.parentNode.removeChild(g),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},b.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{b.S={};var c={},d={};b.I=(e,f)=>{f||(f=[]);var g=d[e];if(g||(g=d[e]={}),!(0<=f.indexOf(g))){if(f.push(g),c[e])return c[e];b.o(b.S,e)||(b.S[e]={});var h=b.S[e],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-login-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-login-app",eager:!!d})},i=[];return"default"===e&&(a("@openmrs/esm-framework","4.0.4-pre.475",()=>Promise.all([b.e(776),b.e(889)]).then(()=>()=>b(4889))),a("react-dom","18.2.0",()=>Promise.all([b.e(788),b.e(776)]).then(()=>()=>b(2788))),a("react-i18next","11.18.6",()=>Promise.all([b.e(925),b.e(776)]).then(()=>()=>b(2925))),a("react-router-dom","6.4.2",()=>Promise.all([b.e(759),b.e(776)]).then(()=>()=>b(5759))),a("react","18.2.0",()=>b.e(735).then(()=>()=>b(2735)))),c[e]=i.length?Promise.all(i).then(()=>c[e]=1):1}}})(),(()=>{var a;b.g.importScripts&&(a=b.g.location+"");var c=b.g.document;if(!a&&c&&(c.currentScript&&(a=c.currentScript.src),!a)){var d=c.getElementsByTagName("script");d.length&&(a=d[d.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=a})(),q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},v=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var h=c[d],j=(typeof h)[0];if(g!=j)return"o"==g&&"n"==j||"s"==j||"u"==g;if("o"!=g&&"u"!=g&&f!=h)return f<h;d++}},w=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():w(i))}return c()},x=(a,b)=>{if(0 in a){b=q(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var j=0,k=1,m=!0;;k++,j++){var o,t,v=k<a.length?(typeof a[k])[0]:"";if(j>=b.length||"o"==(t=(typeof(o=b[j]))[0]))return!m||("u"==v?k>e&&!g:""==v!=g);if("u"==t){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==t){if(!(k<=e)){if(g?o>a[k]:o<a[k])return!1;o!=a[k]&&(m=!1)}else if(o!=a[k])return!1;}else if("s"!=v&&"n"!=v){if(g||k<=e)return!1;m=!1,k--}else{if(k<=e||t<v!=g)return!1;m=!1}}}var w=[],d=w.pop.bind(w);for(j=1;j<a.length;j++){var c=a[j];w.push(1==c?d()|d():2==c?d()&d():c?x(c,b):!d())}return!!d()},y=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!v(a,b))?a:b,0)},z=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+w(d)+")",A=(a,b,c,d)=>{var e=y(a,c);return x(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(z(a,c,e,d)),B(a[c][e])},B=a=>(a.loaded=1,a.get()),C=(c=>function(d,e,f,g){var h=b.I(d);return h&&h.then?h.then(c.bind(c,d,b.S[d],e,f,g)):c(0,b.S[d],e,f,g)})((a,c,d,e,f)=>c&&b.o(c,d)?A(c,0,d,e):f()),D={},E={5776:()=>C("default","react",[1,18],()=>b.e(735).then(()=>()=>b(2735))),4610:()=>C("default","@openmrs/esm-framework",[0],()=>Promise.all([b.e(776),b.e(889)]).then(()=>()=>b(4889))),2680:()=>C("default","react-i18next",[1,11],()=>b.e(925).then(()=>()=>b(2925))),1763:()=>C("default","react-router-dom",[1,6],()=>b.e(759).then(()=>()=>b(5759)))},F={420:[4610],680:[2680],776:[5776],897:[1763]},b.f.consumes=(a,c)=>{b.o(F,a)&&F[a].forEach(a=>{if(b.o(D,a))return c.push(D[a]);var d=c=>{D[a]=0,b.m[a]=d=>{delete b.c[a],d.exports=c()}},f=c=>{delete D[a],b.m[a]=()=>{throw delete b.c[a],c}};try{var e=E[a]();e.then?c.push(D[a]=e.then(d).catch(f)):d(e)}catch(a){f(a)}})},(()=>{var c={356:0};b.f.j=(d,e)=>{var f=b.o(c,d)?c[d]:void 0;if(0!==f)if(f)e.push(f[2]);else if(/^(680|776)$/.test(d))c[d]=0;else{var g=new Promise((a,b)=>f=c[d]=[a,b]);e.push(f[2]=g);var h=b.p+b.u(d),j=new Error;b.l(h,e=>{if(b.o(c,d)&&(0!==(f=c[d])&&(c[d]=void 0),f)){var g=e&&("load"===e.type?"missing":e.type),h=e&&e.target&&e.target.src;j.message="Loading chunk "+d+" failed.\n("+g+": "+h+")",j.name="ChunkLoadError",j.type=g,j.request=h,f[1](j)}},"chunk-"+d,d)}};var a=(d,e)=>{var f,g,[h,a,i]=e,j=0;if(h.some(a=>0!==c[a])){for(f in a)b.o(a,f)&&(b.m[f]=a[f]);i&&i(b)}for(d&&d(e);j<h.length;j++)g=h[j],b.o(c,g)&&c[g]&&c[g][0](),c[g]=0},d=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})(),b.nc=void 0;var m=b(2918);_openmrs_esm_login_app=m})();
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"entry": false,
|
|
7
7
|
"recorded": false,
|
|
8
8
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
9
|
-
"size":
|
|
9
|
+
"size": 71484,
|
|
10
10
|
"sizes": {
|
|
11
|
-
"javascript":
|
|
11
|
+
"javascript": 71484
|
|
12
12
|
},
|
|
13
13
|
"names": [],
|
|
14
14
|
"idHints": [
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"main"
|
|
20
20
|
],
|
|
21
21
|
"files": [
|
|
22
|
-
"
|
|
22
|
+
"98.js"
|
|
23
23
|
],
|
|
24
24
|
"auxiliaryFiles": [],
|
|
25
|
-
"hash": "
|
|
25
|
+
"hash": "fa55f46453eeb9758f28",
|
|
26
26
|
"childrenByOrder": {}
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"initial": true,
|
|
31
31
|
"entry": true,
|
|
32
32
|
"recorded": false,
|
|
33
|
-
"size":
|
|
33
|
+
"size": 25906,
|
|
34
34
|
"sizes": {
|
|
35
35
|
"consume-shared": 42,
|
|
36
36
|
"javascript": 5874,
|
|
37
37
|
"share-init": 210,
|
|
38
|
-
"runtime":
|
|
38
|
+
"runtime": 19780
|
|
39
39
|
},
|
|
40
40
|
"names": [
|
|
41
41
|
"main"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"main.js"
|
|
49
49
|
],
|
|
50
50
|
"auxiliaryFiles": [],
|
|
51
|
-
"hash": "
|
|
51
|
+
"hash": "c3275a88597611e2f456",
|
|
52
52
|
"childrenByOrder": {}
|
|
53
53
|
},
|
|
54
54
|
{
|
|
@@ -166,11 +166,11 @@
|
|
|
166
166
|
"initial": true,
|
|
167
167
|
"entry": true,
|
|
168
168
|
"recorded": false,
|
|
169
|
-
"size":
|
|
169
|
+
"size": 19665,
|
|
170
170
|
"sizes": {
|
|
171
171
|
"javascript": 42,
|
|
172
172
|
"share-init": 210,
|
|
173
|
-
"runtime":
|
|
173
|
+
"runtime": 19413
|
|
174
174
|
},
|
|
175
175
|
"names": [
|
|
176
176
|
"@openmrs/esm-login-app"
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"openmrs-esm-login-app.js"
|
|
184
184
|
],
|
|
185
185
|
"auxiliaryFiles": [],
|
|
186
|
-
"hash": "
|
|
186
|
+
"hash": "2ea0d6b41dac876a1feb",
|
|
187
187
|
"childrenByOrder": {}
|
|
188
188
|
},
|
|
189
189
|
{
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"420.js"
|
|
253
253
|
],
|
|
254
254
|
"auxiliaryFiles": [],
|
|
255
|
-
"hash": "
|
|
255
|
+
"hash": "7423358b90d99f1d0f7c",
|
|
256
256
|
"childrenByOrder": {}
|
|
257
257
|
},
|
|
258
258
|
{
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"607.js"
|
|
345
345
|
],
|
|
346
346
|
"auxiliaryFiles": [],
|
|
347
|
-
"hash": "
|
|
347
|
+
"hash": "f672dffcf3c7f23b3187",
|
|
348
348
|
"childrenByOrder": {}
|
|
349
349
|
},
|
|
350
350
|
{
|
|
@@ -557,9 +557,9 @@
|
|
|
557
557
|
"initial": false,
|
|
558
558
|
"entry": false,
|
|
559
559
|
"recorded": false,
|
|
560
|
-
"size":
|
|
560
|
+
"size": 1092907,
|
|
561
561
|
"sizes": {
|
|
562
|
-
"javascript":
|
|
562
|
+
"javascript": 1092907
|
|
563
563
|
},
|
|
564
564
|
"names": [],
|
|
565
565
|
"idHints": [],
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
"889.js"
|
|
572
572
|
],
|
|
573
573
|
"auxiliaryFiles": [],
|
|
574
|
-
"hash": "
|
|
574
|
+
"hash": "aee71d621c3b006a0284",
|
|
575
575
|
"childrenByOrder": {}
|
|
576
576
|
},
|
|
577
577
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_login_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h={2918:(e,r,t)=>{var n={"./start":()=>t.e(420).then((()=>()=>t(2420)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return h[e](t,t.exports,v),t.loaded=!0,t.exports}v.m=h,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-login-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-login-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.
|
|
1
|
+
var _openmrs_esm_login_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h={2918:(e,r,t)=>{var n={"./start":()=>t.e(420).then((()=>()=>t(2420)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,v),t.loaded=!0,t.exports}v.m=h,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-login-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-login-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.4-pre.475",(()=>Promise.all([v.e(776),v.e(889)]).then((()=>()=>v(4889))))),l("react-dom","18.2.0",(()=>Promise.all([v.e(788),v.e(776)]).then((()=>()=>v(2788))))),l("react-i18next","11.18.6",(()=>Promise.all([v.e(925),v.e(776)]).then((()=>()=>v(2925))))),l("react-router-dom","6.4.2",(()=>Promise.all([v.e(759),v.e(776)]).then((()=>()=>v(5759))))),l("react","18.2.0",(()=>v.e(735).then((()=>()=>v(2735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),u(e[t][o])},u=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?s(r,0,t,n):o())),f={},d={5776:()=>p("default","react",[1,18],(()=>v.e(735).then((()=>()=>v(2735))))),4610:()=>p("default","@openmrs/esm-framework",[0],(()=>Promise.all([v.e(776),v.e(889)]).then((()=>()=>v(4889))))),2680:()=>p("default","react-i18next",[1,11],(()=>v.e(925).then((()=>()=>v(2925))))),1763:()=>p("default","react-router-dom",[1,6],(()=>v.e(759).then((()=>()=>v(5759)))))},c={420:[4610],680:[2680],776:[5776],897:[1763]},v.f.consumes=(e,r)=>{v.o(c,e)&&c[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=d[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={356:0};v.f.j=(r,t)=>{var n=v.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(680|776)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)v.o(i,n)&&(v.m[n]=i[n]);l&&l(v)}for(r&&r(t);s<a.length;s++)o=a[s],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(2918);_openmrs_esm_login_app=g})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-login-app",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4-pre.475",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The login microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-login-app.js",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"rxjs": "6.x"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@openmrs/esm-framework": "^4.0.
|
|
53
|
-
"@openmrs/webpack-config": "^4.0.
|
|
52
|
+
"@openmrs/esm-framework": "^4.0.4-pre.475",
|
|
53
|
+
"@openmrs/webpack-config": "^4.0.4-pre.475",
|
|
54
54
|
"jest": "^28.1.0",
|
|
55
55
|
"react": "^18.1.0",
|
|
56
56
|
"react-dom": "^18.1.0",
|
|
57
57
|
"react-i18next": "^11.16.9",
|
|
58
58
|
"react-router-dom": "^6.3.0",
|
|
59
59
|
"rxjs": "^6.5.3",
|
|
60
|
-
"swr": "^
|
|
60
|
+
"swr": "^2.0.1"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "58aa226ccd08b851c4db2ce15ced499145265120"
|
|
63
63
|
}
|
package/dist/50.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 50.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[50],{9717:(e,t,n)=>{n.d(t,{Z:()=>T});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const u=i||o||Function("return this")(),a=function(){return u.Date.now()};var c=/\s/;var f=/^\s+/;const l=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t}(e)+1).replace(f,""):e},s=u.Symbol;var d=Object.prototype,v=d.hasOwnProperty,p=d.toString,h=s?s.toStringTag:void 0;var g=Object.prototype.toString;var y=s?s.toStringTag:void 0;const b=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":y&&y in Object(e)?function(e){var t=v.call(e,h),n=e[h];try{e[h]=void 0;var r=!0}catch(e){}var i=p.call(e);return r&&(t?e[h]=n:delete e[h]),i}(e):function(e){return g.call(e)}(e)};var w=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,O=/^0o[0-7]+$/i,k=parseInt;const S=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==b(e)}(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=m.test(e);return n||O.test(e)?k(e.slice(2),n?2:8):w.test(e)?NaN:+e};var E=Math.max,R=Math.min;const T=function(e,t,n){var i,o,u,c,f,l,s=0,d=!1,v=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=i,r=o;return i=o=void 0,s=t,c=e.apply(r,n)}function g(e){return s=e,f=setTimeout(b,t),d?h(e):c}function y(e){var n=e-l;return void 0===l||n>=t||n<0||v&&e-s>=u}function b(){var e=a();if(y(e))return w(e);f=setTimeout(b,function(e){var n=t-(e-l);return v?R(n,u-(e-s)):n}(e))}function w(e){return f=void 0,p&&i?h(e):(i=o=void 0,c)}function m(){var e=a(),n=y(e);if(i=arguments,o=this,l=e,n){if(void 0===f)return g(l);if(v)return clearTimeout(f),f=setTimeout(b,t),h(l)}return void 0===f&&(f=setTimeout(b,t)),c}return t=S(t)||0,r(n)&&(d=!!n.leading,u=(v="maxWait"in n)?E(S(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==f&&clearTimeout(f),s=0,i=l=o=f=void 0},m.flush=function(){return void 0===f?c:w(a())},m}},3415:(e,t,n)=>{n.d(t,{ZP:()=>ce});var r=n(5776);function i(e,t,n,r){return new(n||(n=Promise))((function(i,o){function u(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var u,a=function(){},c=a(),f=Object,l=function(e){return e===c},s=function(e){return"function"==typeof e},d=function(e,t){return f.assign({},e,t)},v="undefined",p=function(){return typeof window!=v},h=new WeakMap,g=0,y=function(e){var t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(f(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=h.get(e))return t;if(t=++g+"~",h.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=y(e[n])+",";h.set(e,t)}if(i==f){t="#";for(var u=f.keys(e).sort();!l(n=u.pop());)l(e[n])||(t+=n+":"+y(e[n])+",");h.set(e,t)}}return t},b=!0,w=p(),m=typeof document!=v,O=w&&window.addEventListener?window.addEventListener.bind(window):a,k=m?document.addEventListener.bind(document):a,S=w&&window.removeEventListener?window.removeEventListener.bind(window):a,E=m?document.removeEventListener.bind(document):a,R={isOnline:function(){return b},isVisible:function(){var e=m&&document.visibilityState;return l(e)||"hidden"!==e}},T={initFocus:function(e){return k("visibilitychange",e),O("focus",e),function(){E("visibilitychange",e),S("focus",e)}},initReconnect:function(e){var t=function(){b=!0,e()},n=function(){b=!1};return O("online",t),O("offline",n),function(){S("online",t),S("offline",n)}}},x=!p()||"Deno"in window,j=x?r.useEffect:r.useLayoutEffect,C="undefined"!=typeof navigator&&navigator.connection,V=!x&&C&&(["slow-2g","2g"].includes(C.effectiveType)||C.saveData),D=function(e){if(s(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t,e?"$swr$"+e:""]},$=new WeakMap,P=function(e,t,n,r,i,o,u){void 0===u&&(u=!0);var a=$.get(e),c=a[0],f=a[1],l=a[3],s=c[t],d=f[t];if(u&&d)for(var v=0;v<d.length;++v)d[v](n,r,i);return o&&(delete l[t],s&&s[0])?s[0](2).then((function(){return e.get(t)})):e.get(t)},I=0,A=function(){return++I},L=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(void 0,void 0,void 0,(function(){var t,n,r,i,u,a,f,v,p,h,g,y,b,w,m,O,k,S,E,R,T;return o(this,(function(o){switch(o.label){case 0:if(t=e[0],n=e[1],r=e[2],i=e[3],a=!!l((u="boolean"==typeof i?{revalidate:i}:i||{}).populateCache)||u.populateCache,f=!1!==u.revalidate,v=!1!==u.rollbackOnError,p=u.optimisticData,h=D(n),g=h[0],y=h[2],!g)return[2];if(b=$.get(t),w=b[2],e.length<3)return[2,P(t,g,t.get(g),c,c,f,!0)];if(m=r,k=A(),w[g]=[k,0],S=!l(p),E=t.get(g),S&&(R=s(p)?p(E):p,t.set(g,R),P(t,g,R)),s(m))try{m=m(t.get(g))}catch(e){O=e}return m&&s(m.then)?[4,m.catch((function(e){O=e}))]:[3,2];case 1:if(m=o.sent(),k!==w[g][0]){if(O)throw O;return[2,m]}O&&S&&v&&(a=!0,m=E,t.set(g,E)),o.label=2;case 2:return a&&(O||(s(a)&&(m=a(m,E)),t.set(g,m)),t.set(y,d(t.get(y),{error:O}))),w[g][1]=A(),[4,P(t,g,m,O,c,f,!!a)];case 3:if(T=o.sent(),O)throw O;return[2,a?T:m]}}))}))},M=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},N=function(e,t){if(!$.has(e)){var n=d(T,t),r={},i=L.bind(c,e),o=a;if($.set(e,[r,{},{},{},i]),!x){var u=n.initFocus(setTimeout.bind(c,M.bind(c,r,0))),f=n.initReconnect(setTimeout.bind(c,M.bind(c,r,1)));o=function(){u&&u(),f&&f(),$.delete(e)}}return[e,i,o]}return[e,$.get(e)[4]]},F=N(new Map),_=F[0],W=F[1],z=d({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:function(e,t,n,r,i){var o=n.errorRetryCount,u=i.retryCount,a=~~((Math.random()+.5)*(1<<(u<8?u:8)))*n.errorRetryInterval;!l(o)&&u>o||setTimeout(r,a,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:V?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:V?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:_,mutate:W,fallback:{}},R),J=function(e,t){var n=d(e,t);if(t){var r=e.use,i=e.fallback,o=t.use,u=t.fallback;r&&o&&(n.use=r.concat(o)),i&&u&&(n.fallback=d(i,u))}return n},q=(0,r.createContext)({}),G=function(e){return s(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return d(z,(0,r.useContext)(q))},H=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},U={dedupe:!0},B=(f.defineProperty((function(e){var t=e.value,n=J((0,r.useContext)(q),t),i=t&&t.provider,o=(0,r.useState)((function(){return i?N(i(n.cache||_),t):c}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),j((function(){return o?o[2]:c}),[]),(0,r.createElement)(q.Provider,d(e,{value:n}))}),"default",{value:z}),u=function(e,t,n){var u=n.cache,a=n.compare,f=n.fallbackData,h=n.suspense,g=n.revalidateOnMount,y=n.refreshInterval,b=n.refreshWhenHidden,w=n.refreshWhenOffline,m=$.get(u),O=m[0],k=m[1],S=m[2],E=m[3],R=D(e),T=R[0],C=R[1],V=R[2],I=(0,r.useRef)(!1),M=(0,r.useRef)(!1),N=(0,r.useRef)(T),F=(0,r.useRef)(t),_=(0,r.useRef)(n),W=function(){return _.current},z=function(){return W().isVisible()&&W().isOnline()},J=function(e){return u.set(V,d(u.get(V),e))},q=u.get(T),G=l(f)?n.fallback[T]:f,Z=l(q)?G:q,B=u.get(V)||{},K=B.error,Q=!I.current,X=function(){return Q&&!l(g)?g:!W().isPaused()&&(h?!l(Z)&&n.revalidateIfStale:l(Z)||n.revalidateIfStale)},Y=!(!T||!t)&&(!!B.isValidating||Q&&X()),ee=function(e,t){var n=(0,r.useState)({})[1],i=(0,r.useRef)(e),o=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),u=(0,r.useCallback)((function(e){var r=!1,u=i.current;for(var a in e){var c=a;u[c]!==e[c]&&(u[c]=e[c],o.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return j((function(){i.current=e})),[i,o.current,u]}({data:Z,error:K,isValidating:Y},M),te=ee[0],ne=ee[1],re=ee[2],ie=(0,r.useCallback)((function(e){return i(void 0,void 0,void 0,(function(){var t,r,i,f,d,v,p,h,g,y,b,w,m;return o(this,(function(o){switch(o.label){case 0:if(t=F.current,!T||!t||M.current||W().isPaused())return[2,!1];f=!0,d=e||{},v=!E[T]||!d.dedupe,p=function(){return!M.current&&T===N.current&&I.current},h=function(){var e=E[T];e&&e[1]===i&&delete E[T]},g={isValidating:!1},y=function(){J({isValidating:!1}),p()&&re(g)},J({isValidating:!0}),re({isValidating:!0}),o.label=1;case 1:return o.trys.push([1,3,,4]),v&&(P(u,T,te.current.data,te.current.error,!0),n.loadingTimeout&&!u.get(T)&&setTimeout((function(){f&&p()&&W().onLoadingSlow(T,n)}),n.loadingTimeout),E[T]=[t.apply(void 0,C),A()]),m=E[T],r=m[0],i=m[1],[4,r];case 2:return r=o.sent(),v&&setTimeout(h,n.dedupingInterval),E[T]&&E[T][1]===i?(J({error:c}),g.error=c,b=S[T],!l(b)&&(i<=b[0]||i<=b[1]||0===b[1])?(y(),v&&p()&&W().onDiscarded(T),[2,!1]):(a(te.current.data,r)?g.data=te.current.data:g.data=r,a(u.get(T),r)||u.set(T,r),v&&p()&&W().onSuccess(r,T,n),[3,4])):(v&&p()&&W().onDiscarded(T),[2,!1]);case 3:return w=o.sent(),h(),W().isPaused()||(J({error:w}),g.error=w,v&&p()&&(W().onError(w,T,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||s(n.shouldRetryOnError)&&n.shouldRetryOnError(w))&&z()&&W().onErrorRetry(w,T,n,ie,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return f=!1,y(),p()&&v&&P(u,T,g.data,g.error,!1),[2,!0]}}))}))}),[T]),oe=(0,r.useCallback)(L.bind(c,u,(function(){return N.current})),[]);if(j((function(){F.current=t,_.current=n})),j((function(){if(T){var e=T!==N.current,t=ie.bind(c,U),n=0,r=H(T,k,(function(e,t,n){re(d({error:t,isValidating:n},a(te.current.data,e)?c:{data:e}))})),i=H(T,O,(function(e){if(0==e){var r=Date.now();W().revalidateOnFocus&&r>n&&z()&&(n=r+W().focusThrottleInterval,t())}else if(1==e)W().revalidateOnReconnect&&z()&&t();else if(2==e)return ie()}));return M.current=!1,N.current=T,I.current=!0,e&&re({data:Z,error:K,isValidating:Y}),X()&&(l(Z)||x?t():(o=t,p()&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(o):setTimeout(o,1))),function(){M.current=!0,r(),i()}}var o}),[T,ie]),j((function(){var e;function t(){var t=s(y)?y(Z):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){te.current.error||!b&&!W().isVisible()||!w&&!W().isOnline()?t():ie(U).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,b,w,ie]),(0,r.useDebugValue)(Z),h&&l(Z)&&T)throw F.current=t,_.current=n,M.current=!1,l(K)?ie(U):K;return{mutate:oe,get data(){return ne.data=!0,Z},get error(){return ne.error=!0,K},get isValidating(){return ne.isValidating=!0,Y}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Z(),r=G(e),i=r[0],o=r[1],a=r[2],c=J(n,a),f=u,l=c.use;if(l)for(var s=l.length;s-- >0;)f=l[s](f);return f(i,o||c.fetcher,c)}),K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K.apply(this,arguments)};var Q=function(){},X=Q(),Y=Object,ee=function(e){return e===X},te=function(e){return"function"==typeof e},ne="undefined"==typeof window||"Deno"in window?r.useEffect:r.useLayoutEffect,re=new WeakMap,ie=0,oe=function(e){var t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(Y(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=re.get(e))return t;if(t=++ie+"~",re.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=oe(e[n])+",";re.set(e,t)}if(i==Y){t="#";for(var u=Y.keys(e).sort();!ee(n=u.pop());)ee(e[n])||(t+=n+":"+oe(e[n])+",");re.set(e,t)}}return t},ue=function(e){if(te(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?oe(e):"",t,e?"$swr$"+e:""]},ae=function(e){return te(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},ce=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=ae(n),o=i[0],u=i[1],a=i[2],c=(a.use||[]).concat(t);return e(o,u,K(K({},a),{use:c}))}}(B,(function(e){return function(t,n,i){var o=(0,r.useState)({})[1],u=(0,r.useRef)(!1),a=(0,r.useRef)(),c=i.cache,f=i.initialSize,l=void 0===f?1:f,s=i.revalidateAll,d=void 0!==s&&s,v=i.persistSize,p=void 0!==v&&v,h=i.revalidateFirstPage,g=void 0===h||h,y=i.revalidateOnMount,b=void 0!==y&&y,w=null;try{w=function(e){return ue(e?e(0,null):null)[0]}(t)}catch(e){}var m=null,O=null;w&&(m="$ctx$"+w,O="$len$"+w);var k=(0,r.useCallback)((function(){var e=c.get(O);return ee(e)?l:e}),[O,l]),S=(0,r.useRef)(k());ne((function(){u.current?w&&c.set(O,p?S.current:l):u.current=!0}),[w]);var E=b&&!u.current,R=e(w?"$inf$"+w:null,(function(){return e=void 0,r=void 0,u=function(){var e,r,o,u,f,l,s,v,p,h,y,b;return function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(w){switch(w.label){case 0:e=c.get(m)||[],r=e[0],o=e[1],u=[],f=k(),l=null,s=0,w.label=1;case 1:return s<f?(v=ue(t(s,l)),p=v[0],h=v[1],p?(y=c.get(p),b=d||r||ee(y)||g&&!s&&!ee(a.current)||E||o&&!ee(o[s])&&!i.compare(o[s],y),n&&b?[4,n.apply(void 0,h)]:[3,3]):[3,5]):[3,5];case 2:y=w.sent(),c.set(p,y),w.label=3;case 3:u.push(y),l=y,w.label=4;case 4:return++s,[3,1];case 5:return c.delete(m),[2,u]}}))},new((o=void 0)||(o=Promise))((function(t,n){function i(e){try{c(u.next(e))}catch(e){n(e)}}function a(e){try{c(u.throw(e))}catch(e){n(e)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}c((u=u.apply(e,r||[])).next())}));var e,r,o,u}),i);ne((function(){a.current=R.data}),[R.data]);var T=(0,r.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=!1!==e[1];if(m){if(r)if(ee(n))c.set(m,[!0]);else{var i=a.current;c.set(m,[!1,i])}return e.length?R.mutate(n,r):R.mutate()}}),[m]),x=(0,r.useCallback)((function(e){var n;if(O&&(te(e)?n=e(k()):"number"==typeof e&&(n=e),"number"==typeof n))return c.set(O,n),S.current=n,o({}),T(function(e){for(var n=[],r=null,i=0;i<e;++i){var o=ue(t(i,r))[0],u=o?c.get(o):X;if(ee(u))return a.current;n.push(u),r=u}return n}(n))}),[O,k,T]);return{size:k(),setSize:x,mutate:T,get error(){return R.error},get data(){return R.data},get isValidating(){return R.isValidating}}}}))}}]);
|
package/dist/50.js.LICENSE.txt
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|