@openmrs/esm-implementer-tools-app 5.1.1-pre.1028 → 5.1.1-pre.1035
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 +19 -18
- package/dist/{199.js → 278.js} +1 -1
- package/dist/{199.js.map → 278.js.map} +1 -1
- package/dist/329.js +2 -0
- package/dist/{941.js.map → 329.js.map} +1 -1
- package/dist/499.js +1 -1
- package/dist/519.js.map +1 -1
- package/dist/56.js +1 -0
- package/dist/56.js.map +1 -0
- package/dist/889.js +1 -1
- package/dist/889.js.LICENSE.txt +0 -2
- package/dist/889.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-implementer-tools-app.js +1 -1
- package/dist/openmrs-esm-implementer-tools-app.js.buildmanifest.json +86 -58
- package/dist/openmrs-esm-implementer-tools-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +7 -6
- package/src/global-implementer-tools.component.tsx +0 -1
- package/dist/941.js +0 -2
- /package/dist/{941.js.LICENSE.txt → 329.js.LICENSE.txt} +0 -0
package/dist/941.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 941.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[941],{8696:(t,e,r)=>{r.d(e,{AG:()=>l,vc:()=>v});var n,o,c,a,i,u=r(5776),s=r.n(u),f=r(6248);const l=s().forwardRef((function(t,e){let{children:r,size:o=16,...c}=t;return s().createElement(f.I,{width:o,height:o,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...c},n||(n=s().createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)})),v=s().forwardRef((function(t,e){let{children:r,size:n=16,...u}=t;return 16===n||"16"===n||"16px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...u},o||(o=s().createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),r):20===n||"20"===n||"20px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...u},c||(c=s().createElement("path",{d:"M17.8,5.5l-3.3-3.3C14.3,2.1,14.2,2,14,2H3.3C2.6,2,2,2.6,2,3.3v13.3C2,17.4,2.6,18,3.3,18h13.3c0.7,0,1.4-0.5,1.4-1.2V6.1 C18,5.7,17.9,5.7,17.8,5.5z M7.3,3.3h5.3v3.3H7.3V3.3z M12.7,16.7H7.3v-5.3h5.3L12.7,16.7L12.7,16.7z M14,16.7v-5.3 c0-0.7-0.6-1.3-1.3-1.3H7.3C6.6,10,6,10.6,6,11.3v5.3H3.3V3.3H6v3.3C6,7.4,6.6,8,7.3,8h5.3C13.4,8,14,7.4,14,6.7v-3l2.7,2.7v10.4 L14,16.7L14,16.7z"})),r):24===n||"24"===n||"24px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...u},a||(a=s().createElement("path",{d:"M20.8,7L17,3.2C16.9,3.1,16.7,3,16.5,3h-12C3.7,3,3,3.7,3,4.5v15C3,20.3,3.7,21,4.5,21h15c0.8,0,1.5-0.7,1.5-1.5v-12 C21,7.3,20.9,7.1,20.8,7z M9,4.5h6v3H9V4.5z M15,19.5H9v-6h6V19.5z M16.5,19.5v-6c0-0.8-0.7-1.5-1.5-1.5H9c-0.8,0-1.5,0.7-1.5,1.5v6 h-3v-15h3v3C7.5,8.3,8.2,9,9,9h6c0.8,0,1.5-0.7,1.5-1.5V4.8l3,3v11.7H16.5z"})),r):s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...u},i||(i=s().createElement("path",{d:"M27.71,9.29l-5-5A1,1,0,0,0,22,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V10A1,1,0,0,0,27.71,9.29ZM12,6h8v4H12Zm8,20H12V18h8Zm2,0V18a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2v8H6V6h4v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V6.41l4,4V26Z"})),r)}))},2173:(t,e,r)=>{var n=r(5776),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},c=n.useState,a=n.useEffect,i=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=c({inst:{value:r,getSnapshot:e}}),o=n[0].inst,f=n[1];return i((function(){o.value=r,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,r,e]),a((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},1374:(t,e,r)=>{t.exports=r(2173)},1890:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7487);var o=r(6763),c=r(6776);function a(t){var e=this.__data__=new n.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new n.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var a=r.__data__;if(!o.Z||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new c.Z(a)}return r.set(t,e),this.size=r.size,this};const i=a},4269:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(658).Z.Uint8Array},1602:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(4996),o=r(6575),c=r(5008),a=r(5313),i=r(8485),u=Object.prototype.hasOwnProperty;const s=function(t,e){var r=(0,o.Z)(t),s=!r&&(0,n.Z)(t),f=!r&&!s&&(0,c.Z)(t),l=!r&&!s&&!f&&(0,i.Z)(t),v=r||s||f||l,d=v?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],p=d.length;for(var Z in t)!e&&!u.call(t,Z)||v&&("length"==Z||f&&("offset"==Z||"parent"==Z)||l&&("buffer"==Z||"byteLength"==Z||"byteOffset"==Z)||(0,a.Z)(Z,p))||d.push(Z);return d}},9616:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1250),o=r(8670),c=Object.prototype.hasOwnProperty;const a=function(t,e,r){var a=t[e];c.call(t,e)&&(0,o.Z)(a,r)&&(void 0!==r||e in t)||(0,n.Z)(t,e,r)}},1250:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6684);const o=function(t,e,r){"__proto__"==e&&n.Z?(0,n.Z)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},7106:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6205),o=r(199);const c=function(t,e){for(var r=0,c=(e=(0,n.Z)(e,t)).length;null!=t&&r<c;)t=t[(0,o.Z)(e[r++])];return r&&r==c?t:void 0}},6449:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(4895),o=r(6575);const c=function(t,e,r){var c=e(t);return(0,o.Z)(t)?c:(0,n.Z)(c,r(t))}},8165:(t,e,r)=>{r.d(e,{Z:()=>x});var n=r(1890),o=r(7693);const c=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var a=r(2248);const i=function(t,e,r,n,i,u){var s=1&r,f=t.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var v=u.get(t),d=u.get(e);if(v&&d)return v==e&&d==t;var p=-1,Z=!0,b=2&r?new o.Z:void 0;for(u.set(t,e),u.set(e,t);++p<f;){var h=t[p],y=e[p];if(n)var g=s?n(y,h,p,e,t,u):n(h,y,p,t,e,u);if(void 0!==g){if(g)continue;Z=!1;break}if(b){if(!c(e,(function(t,e){if(!(0,a.Z)(b,e)&&(h===t||i(h,t,r,n,u)))return b.push(e)}))){Z=!1;break}}else if(h!==y&&!i(h,y,r,n,u)){Z=!1;break}}return u.delete(t),u.delete(e),Z};var u=r(7851),s=r(4269),f=r(8670);const l=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},v=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var d=u.Z?u.Z.prototype:void 0,p=d?d.valueOf:void 0;var Z=r(8924),b=Object.prototype.hasOwnProperty;var h=r(6812),y=r(6575),g=r(5008),w=r(8485),j="[object Arguments]",m="[object Array]",_="[object Object]",O=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,c,a){var u=(0,y.Z)(t),d=(0,y.Z)(e),A=u?m:(0,h.Z)(t),E=d?m:(0,h.Z)(e),x=(A=A==j?_:A)==_,S=(E=E==j?_:E)==_,V=A==E;if(V&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;u=!0,x=!1}if(V&&!x)return a||(a=new n.Z),u||(0,w.Z)(t)?i(t,e,r,o,c,a):function(t,e,r,n,o,c,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!c(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=l;case"[object Set]":var d=1&n;if(u||(u=v),t.size!=e.size&&!d)return!1;var Z=a.get(t);if(Z)return Z==e;n|=2,a.set(t,e);var b=i(u(t),u(e),n,o,c,a);return a.delete(t),b;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1}(t,e,A,r,o,c,a);if(!(1&r)){var C=x&&O.call(t,"__wrapped__"),M=S&&O.call(e,"__wrapped__");if(C||M){var T=C?t.value():t,k=M?e.value():e;return a||(a=new n.Z),c(T,k,r,o,a)}}return!!V&&(a||(a=new n.Z),function(t,e,r,n,o,c){var a=1&r,i=(0,Z.Z)(t),u=i.length;if(u!=(0,Z.Z)(e).length&&!a)return!1;for(var s=u;s--;){var f=i[s];if(!(a?f in e:b.call(e,f)))return!1}var l=c.get(t),v=c.get(e);if(l&&v)return l==e&&v==t;var d=!0;c.set(t,e),c.set(e,t);for(var p=a;++s<u;){var h=t[f=i[s]],y=e[f];if(n)var g=a?n(y,h,f,e,t,c):n(h,y,f,t,e,c);if(!(void 0===g?h===y||o(h,y,r,n,c):g)){d=!1;break}p||(p="constructor"==f)}if(d&&!p){var w=t.constructor,j=e.constructor;w==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof j&&j instanceof j||(d=!1)}return c.delete(t),c.delete(e),d}(t,e,r,o,c,a))};var E=r(4897);const x=function t(e,r,n,o,c){return e===r||(null==e||null==r||!(0,E.Z)(e)&&!(0,E.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,c))}},3126:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(9494);const o=(0,r(6899).Z)(Object.keys,Object);var c=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))c.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6205:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6575),o=r(5506),c=r(6776);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],c=r.cache;if(c.has(o))return c.get(o);var a=t.apply(this,n);return r.cache=c.set(o,a)||c,a};return r.cache=new(a.Cache||c.Z),r}a.Cache=c.Z;var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const s=(f=a((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)})),e}),(function(t){return 500===l.size&&l.clear(),t})),l=f.cache,f);var f,l,v=r(131);const d=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:s((0,v.Z)(t))}},8924:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(6449),o=r(7451),c=r(825);const a=function(t){return(0,n.Z)(t,c.Z,o.Z)}},1325:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(6449),o=r(1830),c=r(9809);const a=function(t){return(0,n.Z)(t,c.Z,o.Z)}},4003:(t,e,r)=>{r.d(e,{Z:()=>n});const n=(0,r(6899).Z)(Object.getPrototypeOf,Object)},7451:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1940),o=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols;const a=c?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,c=[];++r<n;){var a=t[r];e(a,r,t)&&(c[o++]=a)}return c}(c(t),(function(e){return o.call(t,e)})))}:n.Z},1830:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(4895),o=r(4003),c=r(7451),a=r(1940);const i=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.Z)(e,(0,c.Z)(t)),t=(0,o.Z)(t);return e}:a.Z},6812:(t,e,r)=>{r.d(e,{Z:()=>_});var n=r(5441),o=r(658);const c=(0,n.Z)(o.Z,"DataView");var a=r(6763);const i=(0,n.Z)(o.Z,"Promise"),u=(0,n.Z)(o.Z,"Set"),s=(0,n.Z)(o.Z,"WeakMap");var f=r(1258),l=r(9441),v="[object Map]",d="[object Promise]",p="[object Set]",Z="[object WeakMap]",b="[object DataView]",h=(0,l.Z)(c),y=(0,l.Z)(a.Z),g=(0,l.Z)(i),w=(0,l.Z)(u),j=(0,l.Z)(s),m=f.Z;(c&&m(new c(new ArrayBuffer(1)))!=b||a.Z&&m(new a.Z)!=v||i&&m(i.resolve())!=d||u&&m(new u)!=p||s&&m(new s)!=Z)&&(m=function(t){var e=(0,f.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case h:return b;case y:return v;case g:return d;case w:return p;case j:return Z}return e});const _=m},5313:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5506:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6575),o=r(54),c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||a.test(t)||!c.test(t)||null!=e&&t in Object(e)}},9494:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9801:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(5852),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=c&&c.exports===o&&n.Z.process;const i=function(){try{return c&&c.require&&c.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},6899:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},199:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(54);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},839:(t,e,r)=>{r.d(e,{Z:()=>$});var n=r(1890);var o=r(9616),c=r(1250);const a=function(t,e,r,n){var a=!r;r||(r={});for(var i=-1,u=e.length;++i<u;){var s=e[i],f=n?n(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),a?(0,c.Z)(r,s,f):(0,o.Z)(r,s,f)}return r};var i=r(825);var u=r(9809);var s=r(658),f="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=f&&"object"==typeof module&&module&&!module.nodeType&&module,v=l&&l.exports===f?s.Z.Buffer:void 0,d=v?v.allocUnsafe:void 0;var p=r(7451);var Z=r(1830);var b=r(8924),h=r(1325),y=r(6812),g=Object.prototype.hasOwnProperty;var w=r(4269);const j=function(t){var e=new t.constructor(t.byteLength);return new w.Z(e).set(new w.Z(t)),e};var m=/\w*$/;var _=r(7851),O=_.Z?_.Z.prototype:void 0,A=O?O.valueOf:void 0;const E=function(t,e,r){var n,o,c,a=t.constructor;switch(e){case"[object ArrayBuffer]":return j(t);case"[object Boolean]":case"[object Date]":return new a(+t);case"[object DataView]":return function(t,e){var r=e?j(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?j(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(t);case"[object RegExp]":return(c=new(o=t).constructor(o.source,m.exec(o))).lastIndex=o.lastIndex,c;case"[object Symbol]":return n=t,A?Object(A.call(n)):{}}};var x=r(7275),S=Object.create;const V=function(){function t(){}return function(e){if(!(0,x.Z)(e))return{};if(S)return S(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var C=r(4003),M=r(9494);var T=r(6575),k=r(5008),L=r(4897);var R=r(7133),z=r(9801),I=z.Z&&z.Z.isMap;const D=I?(0,R.Z)(I):function(t){return(0,L.Z)(t)&&"[object Map]"==(0,y.Z)(t)};var H=z.Z&&z.Z.isSet;const P=H?(0,R.Z)(H):function(t){return(0,L.Z)(t)&&"[object Set]"==(0,y.Z)(t)};var B="[object Arguments]",F="[object Function]",U="[object Object]",W={};W[B]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object DataView]"]=W["[object Boolean]"]=W["[object Date]"]=W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Map]"]=W["[object Number]"]=W[U]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object Symbol]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Error]"]=W[F]=W["[object WeakMap]"]=!1;const N=function t(e,r,c,s,f,l){var v,w=1&r,j=2&r,m=4&r;if(c&&(v=f?c(e,s,f,l):c(e)),void 0!==v)return v;if(!(0,x.Z)(e))return e;var _=(0,T.Z)(e);if(_){if(v=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&g.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!w)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(e,v)}else{var O=(0,y.Z)(e),A=O==F||"[object GeneratorFunction]"==O;if((0,k.Z)(e))return function(t,e){if(e)return t.slice();var r=t.length,n=d?d(r):new t.constructor(r);return t.copy(n),n}(e,w);if(O==U||O==B||A&&!f){if(v=j||A?{}:function(t){return"function"!=typeof t.constructor||(0,M.Z)(t)?{}:V((0,C.Z)(t))}(e),!w)return j?function(t,e){return a(t,(0,Z.Z)(t),e)}(e,function(t,e){return t&&a(e,(0,u.Z)(e),t)}(v,e)):function(t,e){return a(t,(0,p.Z)(t),e)}(e,function(t,e){return t&&a(e,(0,i.Z)(e),t)}(v,e))}else{if(!W[O])return f?e:{};v=E(e,O,w)}}l||(l=new n.Z);var S=l.get(e);if(S)return S;l.set(e,v),P(e)?e.forEach((function(n){v.add(t(n,r,c,n,e,l))})):D(e)&&e.forEach((function(n,o){v.set(o,t(n,r,c,o,e,l))}));var L=m?j?h.Z:b.Z:j?u.Z:i.Z,R=_?void 0:L(e);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(R||e,(function(n,a){R&&(n=e[a=n]),(0,o.Z)(v,a,t(n,r,c,a,e,l))})),v},$=function(t){return N(t,5)}},744:(t,e,r)=>{r.d(e,{Z:()=>h});var n=r(7275),o=r(658);const c=function(){return o.Z.Date.now()};var a=/\s/;var i=/^\s+/;const u=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}(t)+1).replace(i,""):t};var s=r(54),f=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,v=/^0o[0-7]+$/i,d=parseInt;const p=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,n.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,n.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=u(t);var r=l.test(t);return r||v.test(t)?d(t.slice(2),r?2:8):f.test(t)?NaN:+t};var Z=Math.max,b=Math.min;const h=function(t,e,r){var o,a,i,u,s,f,l=0,v=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=o,n=a;return o=a=void 0,l=e,u=t.apply(n,r)}function g(t){var r=t-f;return void 0===f||r>=e||r<0||d&&t-l>=i}function w(){var t=c();if(g(t))return j(t);s=setTimeout(w,function(t){var r=e-(t-f);return d?b(r,i-(t-l)):r}(t))}function j(t){return s=void 0,h&&o?y(t):(o=a=void 0,u)}function m(){var t=c(),r=g(t);if(o=arguments,a=this,f=t,r){if(void 0===s)return function(t){return l=t,s=setTimeout(w,e),v?y(t):u}(f);if(d)return clearTimeout(s),s=setTimeout(w,e),y(f)}return void 0===s&&(s=setTimeout(w,e)),u}return e=p(e)||0,(0,n.Z)(r)&&(v=!!r.leading,i=(d="maxWait"in r)?Z(p(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,o=f=a=s=void 0},m.flush=function(){return void 0===s?u:j(c())},m}},5008:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=c&&c.exports===o?n.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},8403:(t,e,r)=>{r.d(e,{Z:()=>v});var n=r(3126),o=r(6812),c=r(4996),a=r(6575),i=r(6905),u=r(5008),s=r(9494),f=r(8485),l=Object.prototype.hasOwnProperty;const v=function(t){if(null==t)return!0;if((0,i.Z)(t)&&((0,a.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,u.Z)(t)||(0,f.Z)(t)||(0,c.Z)(t)))return!t.length;var e=(0,o.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,s.Z)(t))return!(0,n.Z)(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},988:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(8165);const o=function(t,e){return(0,n.Z)(t,e)}},54:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(1258),o=r(4897);const c=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8485:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(1258),o=r(3492),c=r(4897),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i=r(7133),u=r(9801),s=u.Z&&u.Z.isTypedArray;const f=s?(0,i.Z)(s):function(t){return(0,c.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,n.Z)(t)]}},825:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1602),o=r(3126),c=r(6905);const a=function(t){return(0,c.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},9809:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(1602),o=r(7275),c=r(9494);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,o.Z)(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=(0,c.Z)(t),r=[];for(var n in t)("constructor"!=n||!e&&a.call(t,n))&&r.push(n);return r};var u=r(6905);const s=function(t){return(0,u.Z)(t)?(0,n.Z)(t,!0):i(t)}},9340:(t,e,r)=>{r.d(e,{Z:()=>x});var n=r(2363),o=r(1890),c=r(8165);var a=r(7275);const i=function(t){return t==t&&!(0,a.Z)(t)};var u=r(825);const s=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},f=function(t){var e=function(t){for(var e=(0,u.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,i(o)]}return e}(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var a=r.length,i=a,u=!n;if(null==t)return!i;for(t=Object(t);a--;){var s=r[a];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<i;){var f=(s=r[a])[0],l=t[f],v=s[1];if(u&&s[2]){if(void 0===l&&!(f in t))return!1}else{var d=new o.Z;if(n)var p=n(l,v,f,t,e,d);if(!(void 0===p?(0,c.Z)(v,l,3,n,d):p))return!1}}return!0}(r,t,e)}};var l=r(7106);const v=function(t,e){return null!=t&&e in Object(t)};var d=r(6205),p=r(4996),Z=r(6575),b=r(5313),h=r(3492),y=r(199);const g=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,o=(e=(0,d.Z)(e,t)).length,c=!1;++n<o;){var a=(0,y.Z)(e[n]);if(!(c=null!=t&&r(t,a)))break;t=t[a]}return c||++n!=o?c:!!(o=null==t?0:t.length)&&(0,h.Z)(o)&&(0,b.Z)(a,o)&&((0,Z.Z)(t)||(0,p.Z)(t))}(t,e,v)};var w=r(5506);const j=function(t,e){return(0,w.Z)(t)&&i(e)?s((0,y.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:(0,l.Z)(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?g(r,t):(0,c.Z)(e,n,3)}};var m=r(1116);const _=function(t){return(0,w.Z)(t)?(e=(0,y.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return(0,l.Z)(e,t)}}(t);var e};var O=r(9616);const A=function(t,e,r,n){if(!(0,a.Z)(t))return t;for(var o=-1,c=(e=(0,d.Z)(e,t)).length,i=c-1,u=t;null!=u&&++o<c;){var s=(0,y.Z)(e[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=i){var l=u[s];void 0===(f=n?n(l,s,u):void 0)&&(f=(0,a.Z)(l)?l:(0,b.Z)(e[o+1])?[]:{})}(0,O.Z)(u,s,f),u=u[s]}return t};var E=r(1325);const x=function(t,e){if(null==t)return{};var r,o=(0,n.Z)((0,E.Z)(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?m.Z:"object"==typeof r?(0,Z.Z)(r)?j(r[0],r[1]):f(r):_(r),function(t,e,r){for(var n=-1,o=e.length,c={};++n<o;){var a=e[n],i=(0,l.Z)(t,a);r(i,a)&&A(c,(0,d.Z)(a,t),i)}return c}(t,o,(function(t,r){return e(t,r[0])}))}},1940:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},131:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(7851),o=r(2363),c=r(6575),a=r(54),i=n.Z?n.Z.prototype:void 0,u=i?i.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,c.Z)(e))return(0,o.Z)(e,t)+"";if((0,a.Z)(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},f=function(t){return null==t?"":s(t)}},7474:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(131),o=0;const c=function(t){var e=++o;return(0,n.Z)(t)+e}},5751:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6205);var o=r(7106);const c=function(t,e){return e.length<2?t:(0,o.Z)(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var c=Array(o);++n<o;)c[n]=t[n+e];return c}(e,0,-1))};var a=r(199);const i=function(t,e){return null==t||function(t,e){return e=(0,n.Z)(e,t),null==(t=c(t,e))||delete t[(0,a.Z)((r=e,o=null==r?0:r.length,o?r[o-1]:void 0))];var r,o}(t,e)}},4572:(t,e,r)=>{r.d(e,{ZP:()=>$});var n=r(5776),o=r(1374);const c=new WeakMap,a={},i=()=>{},u=i(),s=Object,f=t=>t===u,l=t=>"function"==typeof t,v=(t,e)=>({...t,...e}),d="undefined",p=typeof window!=d,Z=typeof document!=d,b=(t,e)=>{const r=c.get(t);return[()=>t.get(e)||a,n=>{const o=t.get(e);r[5](e,v(o,n),o||a)},r[6]]},h=new WeakMap;let y=0;const g=t=>{const e=typeof t,r=t&&t.constructor,n=r==Date;let o,c;if(s(t)!==t||n||r==RegExp)o=n?t.toJSON():"symbol"==e?t.toString():"string"==e?JSON.stringify(t):""+t;else{if(o=h.get(t),o)return o;if(o=++y+"~",h.set(t,o),r==Array){for(o="@",c=0;c<t.length;c++)o+=g(t[c])+",";h.set(t,o)}if(r==s){o="#";const e=s.keys(t).sort();for(;!f(c=e.pop());)f(t[c])||(o+=c+":"+g(t[c])+",");h.set(t,o)}}return o};let w=!0;const[j,m]=p&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],_={isOnline:()=>w,isVisible:()=>{const t=Z&&document.visibilityState;return f(t)||"hidden"!==t}},O={initFocus:t=>(Z&&document.addEventListener("visibilitychange",t),j("focus",t),()=>{Z&&document.removeEventListener("visibilitychange",t),m("focus",t)}),initReconnect:t=>{const e=()=>{w=!0,t()},r=()=>{w=!1};return j("online",e),j("offline",r),()=>{m("online",e),m("offline",r)}}},A=!n.useId,E=!p||"Deno"in window,x=E?n.useEffect:n.useLayoutEffect,S="undefined"!=typeof navigator&&navigator.connection,V=!E&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),C=t=>{if(l(t))try{t=t()}catch(e){t=""}const e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?g(t):"",e]};let M=0;const T=()=>++M;async function k(...t){const[e,r,n,o]=t,a=v({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let i=a.populateCache;const s=a.rollbackOnError;let d=a.optimisticData;const p=!1!==a.revalidate,Z=a.throwOnError;if(l(r)){const t=r,n=[],o=e.keys();for(let r=o.next();!r.done;r=o.next()){const o=r.value;!o.startsWith("$inf$")&&t(e.get(o)._k)&&n.push(o)}return Promise.all(n.map(h))}return h(r);async function h(r){const[o]=C(r);if(!o)return;const[a,v]=b(e,o),[h,y,g]=c.get(e),w=h[o],j=()=>p&&(delete g[o],w&&w[0])?w[0](2).then((()=>a().data)):a().data;if(t.length<3)return j();let m,_=n;const O=T();y[o]=[O,0];const A=!f(d),E=a(),x=E.data,S=E._c,V=f(S)?x:S;if(A&&(d=l(d)?d(V):d,v({data:d,_c:V})),l(_))try{_=_(V)}catch(t){m=t}if(_&&l(_.then)){if(_=await _.catch((t=>{m=t})),O!==y[o][0]){if(m)throw m;return _}m&&A&&(t=>"function"==typeof s?s(t):!1!==s)(m)&&(i=!0,_=V,v({data:_,_c:u}))}i&&(m||(l(i)&&(_=i(_,V)),v({data:_,_c:u}))),y[o][1]=T();const M=await j();if(v({_c:u}),!m)return i?M:_;if(Z)throw m}}const L=(t,e)=>{for(const r in t)t[r][0]&&t[r][0](e)},R=(t,e)=>{if(!c.has(t)){const r=v(O,e),n={},o=k.bind(u,t);let a=i;const s={},f=(t,e)=>{const r=s[t]||[];return s[t]=r,r.push(e),()=>r.splice(r.indexOf(e),1)},l=(e,r,n)=>{t.set(e,r);const o=s[e];if(o)for(let t=o.length;t--;)o[t](n,r)},d=()=>{if(!c.has(t)&&(c.set(t,[n,{},{},{},o,l,f]),!E)){const e=r.initFocus(setTimeout.bind(u,L.bind(u,n,0))),o=r.initReconnect(setTimeout.bind(u,L.bind(u,n,1)));a=()=>{e&&e(),o&&o(),c.delete(t)}}};return d(),[t,o,d,a]}return[t,c.get(t)[4]]},[z,I]=R(new Map),D=v({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(t,e,r,n,o)=>{const c=r.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!f(c)&&a>c||setTimeout(n,i,o)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:V?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:V?5e3:3e3,compare:(t,e)=>g(t)==g(e),isPaused:()=>!1,cache:z,mutate:I,fallback:{}},_),H=(t,e)=>{const r=v(t,e);if(e){const{use:n,fallback:o}=t,{use:c,fallback:a}=e;n&&c&&(r.use=n.concat(c)),o&&a&&(r.fallback=v(o,a))}return r},P=(0,n.createContext)({}),B=p&&window.__SWR_DEVTOOLS_USE__,F=B?window.__SWR_DEVTOOLS_USE__:[],U=F.concat((t=>(e,r,n)=>t(e,r&&((...t)=>{const n=C(e)[0],[,,,o]=c.get(z),a=o[n];return a?(delete o[n],a):r(...t)}),n)));B&&(window.__SWR_DEVTOOLS_REACT__=n);const W={dedupe:!0};s.defineProperty((t=>{const{value:e}=t,r=(0,n.useContext)(P),o=l(e),c=(0,n.useMemo)((()=>o?e(r):e),[o,r,e]),a=(0,n.useMemo)((()=>o?c:H(r,c)),[o,r,c]),i=c&&c.provider,[s]=(0,n.useState)((()=>i?R(i(a.cache||z),c):u));return s&&(a.cache=s[0],a.mutate=s[1]),x((()=>{if(s)return s[2]&&s[2](),s[3]}),[]),(0,n.createElement)(P.Provider,v(t,{value:a}))}),"defaultValue",{value:D});var N,$=(N=(t,e,r)=>{const{cache:a,compare:i,suspense:s,fallbackData:Z,revalidateOnMount:h,refreshInterval:y,refreshWhenHidden:g,refreshWhenOffline:w,keepPreviousData:j}=r,[m,_,O]=c.get(a),[S,V]=C(t),M=(0,n.useRef)(!1),L=(0,n.useRef)(!1),R=(0,n.useRef)(S),z=(0,n.useRef)(e),I=(0,n.useRef)(r),D=()=>I.current,H=()=>D().isVisible()&&D().isOnline(),[P,B,F]=b(a,S),U=(0,n.useRef)({}).current,N=f(Z)?r.fallback[S]:Z,$=(t,e)=>{let r=!0;for(const n in U){const o=n;i(e[o],t[o])||"data"===o&&f(t[o])&&i(e[o],tt)||(r=!1)}return r},q=(0,n.useMemo)((()=>{const t=!!S&&!!e&&(f(h)?!D().isPaused()&&!s:h),r=()=>{const e=P(),r=v(e);return delete r._k,t?{isValidating:!0,isLoading:!0,...r}:r};let n=r();return()=>{const t=r();return $(t,n)?n:n=t}}),[a,S]),G=(0,o.useSyncExternalStore)((0,n.useCallback)((t=>F(S,((e,r)=>{$(e,r)||t()}))),[a,S]),q,q),J=!M.current,K=G.data,Q=f(K)?N:K,X=G.error,Y=(0,n.useRef)(Q),tt=j?f(K)?Y.current:K:Q,et=J&&!f(h)?h:!D().isPaused()&&(s?!f(Q)&&r.revalidateIfStale:f(Q)||r.revalidateIfStale),rt=!!(S&&e&&J&&et),nt=f(G.isValidating)?rt:G.isValidating,ot=f(G.isLoading)?rt:G.isLoading,ct=(0,n.useCallback)((async t=>{const e=z.current;if(!S||!e||L.current||D().isPaused())return!1;let n,o,c=!0;const a=t||{},s=!O[S]||!a.dedupe,v=()=>A?!L.current&&S===R.current&&M.current:S===R.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},Z=()=>{const t=O[S];t&&t[1]===o&&delete O[S]},b={isValidating:!0};f(P().data)&&(b.isLoading=!0);try{if(s&&(B(b),r.loadingTimeout&&f(P().data)&&setTimeout((()=>{c&&v()&&D().onLoadingSlow(S,r)}),r.loadingTimeout),O[S]=[e(V),T()]),[n,o]=O[S],n=await n,s&&setTimeout(Z,r.dedupingInterval),!O[S]||O[S][1]!==o)return s&&v()&&D().onDiscarded(S),!1;d.error=u;const t=_[S];if(!f(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return p(),s&&v()&&D().onDiscarded(S),!1;const a=P().data;d.data=i(a,n)?a:n,s&&v()&&D().onSuccess(n,S,r)}catch(t){Z();const e=D(),{shouldRetryOnError:r}=e;e.isPaused()||(d.error=t,s&&v()&&(e.onError(t,S,e),(!0===r||l(r)&&r(t))&&H()&&e.onErrorRetry(t,S,e,ct,{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return c=!1,p(),!0}),[S,a]),at=(0,n.useCallback)(((...t)=>k(a,R.current,...t)),[]);if(x((()=>{z.current=e,I.current=r,f(K)||(Y.current=K)})),x((()=>{if(!S)return;const t=ct.bind(u,W);let e=0;const r=((t,e,r)=>{const n=e[t]||(e[t]=[]);return n.push(r),()=>{const t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.pop())}})(S,m,(r=>{if(0==r){const r=Date.now();D().revalidateOnFocus&&r>e&&H()&&(e=r+D().focusThrottleInterval,t())}else if(1==r)D().revalidateOnReconnect&&H()&&t();else if(2==r)return ct()}));return L.current=!1,R.current=S,M.current=!0,B({_k:V}),et&&(f(Q)||E?t():(n=t,p&&typeof window.requestAnimationFrame!=d?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{L.current=!0,r()};var n}),[S]),x((()=>{let t;function e(){const e=l(y)?y(Q):y;e&&-1!==t&&(t=setTimeout(r,e))}function r(){P().error||!g&&!D().isVisible()||!w&&!D().isOnline()?e():ct(W).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[y,g,w,S]),(0,n.useDebugValue)(tt),s&&f(Q)&&S){if(!A&&E)throw new Error("Fallback data is required when using suspense in SSR.");throw z.current=e,I.current=r,L.current=!1,f(X)?ct(W):X}return{mutate:at,get data(){return U.data=!0,tt},get error(){return U.error=!0,X},get isValidating(){return U.isValidating=!0,nt},get isLoading(){return U.isLoading=!0,ot}}},function(...t){const e=v(D,(0,n.useContext)(P)),[r,o,c]=(t=>l(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}])(t),a=H(e,c);let i=N;const{use:u}=a,s=(u||[]).concat(U);for(let t=s.length;t--;)i=s[t](i);return i(r,o||a.fetcher||null,a)})}}]);
|
|
File without changes
|