dgz-ui-shared 1.0.5 → 1.0.6

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.
@@ -1,26 +1,26 @@
1
1
  import { j as e } from "../../jsx-runtime-C5mzlN2N.js";
2
- import { T as i, A as c, d as m, l as a } from "../../dropdown-menu--t1ZKu0y-BvOhGc1P.js";
3
- import { u as h } from "../../check-DE-1lGDl-CAn2HBZJ.js";
4
- import { T as s } from "../../ThemeMode-CqURAYDL.js";
5
- import { createContext as l, useContext as d } from "react";
6
- import { u as p } from "../../useTranslation-dH-uwymc.js";
7
- import { c as n } from "../../createLucideIcon-B950nf2d.js";
2
+ import { T as c, A as i, d as m, l as a } from "../../dropdown-menu--t1ZKu0y-BvOhGc1P.js";
3
+ import { u as l } from "../../check-DE-1lGDl-CAn2HBZJ.js";
4
+ import { T as r } from "../../ThemeMode-CqURAYDL.js";
5
+ import { u as h } from "../../useTheme-eEMqKRXk.js";
6
+ import { u as d } from "../../useTranslation-dH-uwymc.js";
7
+ import { c as o } from "../../createLucideIcon-B950nf2d.js";
8
8
  /**
9
9
  * @license lucide-react v0.511.0 - ISC
10
10
  *
11
11
  * This source code is licensed under the ISC license.
12
12
  * See the LICENSE file in the root directory of this source tree.
13
13
  */
14
- const u = [
14
+ const p = [
15
15
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
16
- ], k = n("moon", u);
16
+ ], k = o("moon", p);
17
17
  /**
18
18
  * @license lucide-react v0.511.0 - ISC
19
19
  *
20
20
  * This source code is licensed under the ISC license.
21
21
  * See the LICENSE file in the root directory of this source tree.
22
22
  */
23
- const x = [
23
+ const u = [
24
24
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
25
25
  ["path", { d: "M12 2v2", key: "tus03m" }],
26
26
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -30,30 +30,22 @@ const x = [
30
30
  ["path", { d: "M20 12h2", key: "1q8mjw" }],
31
31
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
32
32
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
33
- ], T = n("sun", x), j = l({
34
- theme: s.SYSTEM,
35
- setTheme: () => null
36
- }), y = () => {
37
- const t = d(j);
38
- if (t === void 0)
39
- throw new Error("useTheme must be used within a ThemeProvider");
40
- return t;
41
- };
42
- function N({ className: t }) {
43
- const { setTheme: r } = y(), { t: o } = p();
44
- return /* @__PURE__ */ e.jsxs(i, { children: [
45
- /* @__PURE__ */ e.jsx(c, { asChild: !0, children: /* @__PURE__ */ e.jsxs(h, { variant: "tertiary", size: "icon", className: t, children: [
46
- /* @__PURE__ */ e.jsx(T, { className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
33
+ ], x = o("sun", u);
34
+ function v({ className: n }) {
35
+ const { setTheme: t } = h(), { t: s } = d();
36
+ return /* @__PURE__ */ e.jsxs(c, { children: [
37
+ /* @__PURE__ */ e.jsx(i, { asChild: !0, children: /* @__PURE__ */ e.jsxs(l, { variant: "tertiary", size: "icon", className: n, children: [
38
+ /* @__PURE__ */ e.jsx(x, { className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
47
39
  /* @__PURE__ */ e.jsx(k, { className: "absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
48
40
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Toggle theme" })
49
41
  ] }) }),
50
42
  /* @__PURE__ */ e.jsxs(m, { align: "end", children: [
51
- /* @__PURE__ */ e.jsx(a, { onClick: () => r(s.LIGHT), children: o("Light") }),
52
- /* @__PURE__ */ e.jsx(a, { onClick: () => r(s.DARK), children: o("Dark") }),
53
- /* @__PURE__ */ e.jsx(a, { onClick: () => r(s.SYSTEM), children: o("System") })
43
+ /* @__PURE__ */ e.jsx(a, { onClick: () => t(r.LIGHT), children: s("Light") }),
44
+ /* @__PURE__ */ e.jsx(a, { onClick: () => t(r.DARK), children: s("Dark") }),
45
+ /* @__PURE__ */ e.jsx(a, { onClick: () => t(r.SYSTEM), children: s("System") })
54
46
  ] })
55
47
  ] });
56
48
  }
57
49
  export {
58
- N as ThemeToggle
50
+ v as ThemeToggle
59
51
  };
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),t=require("../../dropdown-menu--t1ZKu0y-BLYI5cDb.cjs"),a=require("../../check-DE-1lGDl-7MQr4Ksp.cjs"),n=require("../../ThemeMode-BO6tit_Z.cjs"),i=require("react"),l=require("../../useTranslation-CZf20ucv.cjs"),c=require("../../createLucideIcon-BnAj0RnC.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),t=require("../../dropdown-menu--t1ZKu0y-BLYI5cDb.cjs"),i=require("../../check-DE-1lGDl-7MQr4Ksp.cjs"),r=require("../../ThemeMode-BO6tit_Z.cjs"),a=require("../../useTheme-CRVZs8ko.cjs"),l=require("../../useTranslation-CZf20ucv.cjs"),o=require("../../createLucideIcon-BnAj0RnC.cjs");/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const m=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],u=c.createLucideIcon("moon",m);/**
6
+ */const u=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],m=o.createLucideIcon("moon",u);/**
7
7
  * @license lucide-react v0.511.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const h=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],d=c.createLucideIcon("sun",h),x=i.createContext({theme:n.ThemeMode.SYSTEM,setTheme:()=>null}),j=()=>{const s=i.useContext(x);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s};function p({className:s}){const{setTheme:r}=j(),{t:o}=l.useTranslation();return e.jsxRuntimeExports.jsxs(t.Tt,{children:[e.jsxRuntimeExports.jsx(t.At,{asChild:!0,children:e.jsxRuntimeExports.jsxs(a.u,{variant:"tertiary",size:"icon",className:s,children:[e.jsxRuntimeExports.jsx(d,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),e.jsxRuntimeExports.jsx(u,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),e.jsxRuntimeExports.jsxs(t.dt,{align:"end",children:[e.jsxRuntimeExports.jsx(t.lt,{onClick:()=>r(n.ThemeMode.LIGHT),children:o("Light")}),e.jsxRuntimeExports.jsx(t.lt,{onClick:()=>r(n.ThemeMode.DARK),children:o("Dark")}),e.jsxRuntimeExports.jsx(t.lt,{onClick:()=>r(n.ThemeMode.SYSTEM),children:o("System")})]})]})}exports.ThemeToggle=p;
11
+ */const d=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],h=o.createLucideIcon("sun",d);function x({className:c}){const{setTheme:s}=a.useTheme(),{t:n}=l.useTranslation();return e.jsxRuntimeExports.jsxs(t.Tt,{children:[e.jsxRuntimeExports.jsx(t.At,{asChild:!0,children:e.jsxRuntimeExports.jsxs(i.u,{variant:"tertiary",size:"icon",className:c,children:[e.jsxRuntimeExports.jsx(h,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),e.jsxRuntimeExports.jsx(m,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),e.jsxRuntimeExports.jsxs(t.dt,{align:"end",children:[e.jsxRuntimeExports.jsx(t.lt,{onClick:()=>s(r.ThemeMode.LIGHT),children:n("Light")}),e.jsxRuntimeExports.jsx(t.lt,{onClick:()=>s(r.ThemeMode.DARK),children:n("Dark")}),e.jsxRuntimeExports.jsx(t.lt,{onClick:()=>s(r.ThemeMode.SYSTEM),children:n("System")})]})]})}exports.ThemeToggle=x;
@@ -6,6 +6,7 @@ import { C as tr, P as nr } from "../PasswordConfirm-NMQrelAQ.js";
6
6
  import { u as ct, a as ut } from "../useDateRange-BaU6rb-l.js";
7
7
  import { u as lt } from "../useFilter-swa9bwN0.js";
8
8
  import { g as Ne } from "../_commonjsHelpers-DaMA6jEr.js";
9
+ import { u as pt } from "../useTheme-eEMqKRXk.js";
9
10
  var we = (e) => typeof e == "number" && !isNaN(e), X = (e) => typeof e == "string", Qe = (e) => typeof e == "function", or = (e) => X(e) || we(e), ar = (e) => Ze(e) || X(e) || Qe(e) || we(e), ir = 1, ze = () => `${ir++}`, U = /* @__PURE__ */ new Map(), xe = [], Pe = /* @__PURE__ */ new Set(), He = () => U.size > 0, sr = (e, { containerId: r }) => {
10
11
  var n;
11
12
  return (n = U.get(r || 1)) == null ? void 0 : n.toasts.get(e);
@@ -1108,5 +1109,6 @@ export {
1108
1109
  lt as useFilter,
1109
1110
  rt as useMediaQuerySizes,
1110
1111
  ut as useQueryParams,
1111
- it as useSortable
1112
+ it as useSortable,
1113
+ pt as useTheme
1112
1114
  };
@@ -1,20 +1,20 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xe=require("../useSortable-BNOy4eZ0.cjs"),K=require("../jsx-runtime-DUiatUiq.cjs"),D=require("react"),Ce=require("../MyInput-BmMkesBm.cjs"),Oe=require("../PasswordConfirm-CD_VibMS.cjs"),Ue=require("../useDateRange-BS8kefFP.cjs"),Ze=require("../useFilter-DBFuHSb9.cjs"),Qe=require("../_commonjsHelpers-DKOUU3wS.cjs");var Re=e=>typeof e=="number"&&!isNaN(e),X=e=>typeof e=="string",Ne=e=>typeof e=="function",er=e=>X(e)||Re(e),rr=e=>D.isValidElement(e)||X(e)||Ne(e)||Re(e),tr=1,ze=()=>`${tr++}`,Q=new Map,Te=[],Pe=new Set,He=()=>Q.size>0,nr=(e,{containerId:r})=>{var n;return(n=Q.get(r||1))==null?void 0:n.toasts.get(e)};function or(e,r){var n;if(r)return!!((n=Q.get(r))!=null&&n.isToastActive(e));let o=!1;return Q.forEach(u=>{u.isToastActive(e)&&(o=!0)}),o}function ar(e){if(!He()){Te=Te.filter(r=>e!=null&&r.options.toastId!==e);return}if(e==null||er(e))Q.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let r=Q.get(e.containerId);r?r.removeToast(e.id):Q.forEach(n=>{n.removeToast(e.id)})}}var ir=(e={})=>{Q.forEach(r=>{r.props.limit&&(!e.containerId||r.id===e.containerId)&&r.clearQueue()})};function sr(e,r){rr(e)&&(He()||Te.push({content:e,options:r}),Q.forEach(n=>{n.buildToast(e,r)}))}function Ve(e,r){Q.forEach(n=>{(r==null||!(r!=null&&r.containerId)||(r==null?void 0:r.containerId)===n.id)&&n.toggle(e,r==null?void 0:r.id)})}function cr(e){return Pe.add(e),()=>{Pe.delete(e)}}function ur(e){return e&&(X(e.toastId)||Re(e.toastId))?e.toastId:ze()}function B(e,r){return sr(e,r),r.toastId}function ne(e,r){return{...r,type:r&&r.type||e,toastId:ur(r)}}function oe(e){return(r,n)=>B(r,ne(e,n))}function j(e,r){return B(e,ne("default",r))}j.loading=(e,r)=>B(e,ne("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...r}));function fr(e,{pending:r,error:n,success:o},u){let a;r&&(a=X(r)?j.loading(r,u):j.loading(r.render,{...u,...r}));let d={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},p=(h,l,f)=>{if(l==null){j.dismiss(a);return}let v={type:h,...d,...u,data:f},b=X(l)?{render:l}:l;return a?j.update(a,{...v,...b}):j(b.render,{...v,...b}),f},y=Ne(e)?e():e;return y.then(h=>p("success",o,h)).catch(h=>p("error",n,h)),y}j.promise=fr;j.success=oe("success");j.info=oe("info");j.error=oe("error");j.warning=oe("warning");j.warn=j.warning;j.dark=(e,r)=>B(e,ne("default",{theme:"dark",...r}));function lr(e){ar(e)}j.dismiss=lr;j.clearWaitingQueue=ir;j.isActive=or;j.update=(e,r={})=>{let n=nr(e,r);if(n){let{props:o,content:u}=n,a={delay:100,...o,...r,toastId:r.toastId||e,updateId:ze()};a.toastId!==e&&(a.staleId=e);let d=a.render||u;delete a.render,B(d,a)}};j.done=e=>{j.update(e,{progress:1})};j.onChange=cr;j.play=e=>Ve(!0,e);j.pause=e=>Ve(!1,e);const dr=()=>{const e=D.useCallback(({onConfirm:n})=>{const o=Ce.lodashExports.uniqueId();j.warning(K.jsxRuntimeExports.jsx(K.jsxRuntimeExports.Fragment,{}),{toastId:o,autoClose:!1}),j.update(o,{render:K.jsxRuntimeExports.jsx(Oe.Confirm,{defaultOpen:!0,onConfirm:()=>{n(),j.dismiss(o)}})})},[]),r=D.useCallback(({onSubmit:n})=>{const o=Ce.lodashExports.uniqueId();j.warning(K.jsxRuntimeExports.jsx(K.jsxRuntimeExports.Fragment,{}),{toastId:o,autoClose:!1}),j.update(o,{render:K.jsxRuntimeExports.jsx(Oe.PasswordConfirm,{defaultOpen:!0,onSubmit:u=>{n(u),j.dismiss(o)}})})},[]);return{confirm:e,confirmPassword:r}},pr=(e,r=!1)=>{const n=D.useRef(document.title);D.useEffect(()=>(r&&n.current===document.title&&(n.current=document.title),document.title=e,()=>{r&&(document.title=n.current)}),[e,r])};var ee={},_e;function yr(){if(_e)return ee;_e=1,ee.match=a,ee.parse=d;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,n=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,u=/(dpi|dpcm|dppx)?$/;function a(l,f){return d(l).some(function(v){var b=v.inverse,$=v.type==="all"||f.type===v.type;if($&&b||!($||b))return!1;var M=v.expressions.every(function(q){var k=q.feature,W=q.modifier,R=q.value,w=f[k];if(!w)return!1;switch(k){case"orientation":case"scan":return w.toLowerCase()===R.toLowerCase();case"width":case"height":case"device-width":case"device-height":R=h(R),w=h(w);break;case"resolution":R=y(R),w=y(w);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":R=p(R),w=p(w);break;case"grid":case"color":case"color-index":case"monochrome":R=parseInt(R,10)||1,w=parseInt(w,10)||0;break}switch(W){case"min":return w>=R;case"max":return w<=R;default:return w===R}});return M&&!b||!M&&b})}function d(l){return l.split(",").map(function(f){f=f.trim();var v=f.match(e),b=v[1],$=v[2],M=v[3]||"",q={};return q.inverse=!!b&&b.toLowerCase()==="not",q.type=$?$.toLowerCase():"all",M=M.match(/\([^\)]+\)/g)||[],q.expressions=M.map(function(k){var W=k.match(r),R=W[1].toLowerCase().match(n);return{modifier:R[1],feature:R[2],value:W[2]}}),q})}function p(l){var f=Number(l),v;return f||(v=l.match(/^(\d+)\s*\/\s*(\d+)$/),f=v[1]/v[2]),f}function y(l){var f=parseFloat(l),v=String(l).match(u)[1];switch(v){case"dpcm":return f/2.54;case"dppx":return f*96;default:return f}}function h(l){var f=parseFloat(l),v=String(l).match(o)[1];switch(v){case"em":return f*16;case"rem":return f*16;case"cm":return f*96/2.54;case"mm":return f*96/2.54/10;case"in":return f*96;case"pt":return f*72;case"pc":return f*72/12;default:return f}}return ee}var pe,Ie;function vr(){if(Ie)return pe;Ie=1;var e=yr().match,r=typeof window<"u"?window.matchMedia:null;function n(u,a,d){var p=this,y;r&&!d&&(y=r.call(window,u)),y?(this.matches=y.matches,this.media=y.media,y.addListener(f)):(this.matches=e(u,a),this.media=u),this.addListener=h,this.removeListener=l,this.dispose=v;function h(b){y&&y.addListener(b)}function l(b){y&&y.removeListener(b)}function f(b){p.matches=b.matches,p.media=b.media}function v(){y&&y.removeListener(f)}}function o(u,a,d){return new n(u,a,d)}return pe=o,pe}var mr=vr();const hr=Qe.getDefaultExportFromCjs(mr);var br=/[A-Z]/g,Er=/^ms-/,ye={};function gr(e){return"-"+e.toLowerCase()}function Ke(e){if(ye.hasOwnProperty(e))return ye[e];var r=e.replace(br,gr);return ye[e]=Er.test(r)?"-"+r:r}function Tr(e,r){if(e===r)return!0;if(!e||!r)return!1;const n=Object.keys(e),o=Object.keys(r),u=n.length;if(o.length!==u)return!1;for(let a=0;a<u;a++){const d=n[a];if(e[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var re={exports:{}},te={exports:{}},_={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xe=require("../useSortable-BNOy4eZ0.cjs"),K=require("../jsx-runtime-DUiatUiq.cjs"),D=require("react"),Ce=require("../MyInput-BmMkesBm.cjs"),Oe=require("../PasswordConfirm-CD_VibMS.cjs"),Ue=require("../useDateRange-BS8kefFP.cjs"),Ze=require("../useFilter-DBFuHSb9.cjs"),Qe=require("../_commonjsHelpers-DKOUU3wS.cjs"),er=require("../useTheme-CRVZs8ko.cjs");var Re=e=>typeof e=="number"&&!isNaN(e),X=e=>typeof e=="string",Ne=e=>typeof e=="function",rr=e=>X(e)||Re(e),tr=e=>D.isValidElement(e)||X(e)||Ne(e)||Re(e),nr=1,ze=()=>`${nr++}`,Q=new Map,Te=[],Pe=new Set,He=()=>Q.size>0,or=(e,{containerId:r})=>{var n;return(n=Q.get(r||1))==null?void 0:n.toasts.get(e)};function ar(e,r){var n;if(r)return!!((n=Q.get(r))!=null&&n.isToastActive(e));let o=!1;return Q.forEach(c=>{c.isToastActive(e)&&(o=!0)}),o}function ir(e){if(!He()){Te=Te.filter(r=>e!=null&&r.options.toastId!==e);return}if(e==null||rr(e))Q.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let r=Q.get(e.containerId);r?r.removeToast(e.id):Q.forEach(n=>{n.removeToast(e.id)})}}var sr=(e={})=>{Q.forEach(r=>{r.props.limit&&(!e.containerId||r.id===e.containerId)&&r.clearQueue()})};function ur(e,r){tr(e)&&(He()||Te.push({content:e,options:r}),Q.forEach(n=>{n.buildToast(e,r)}))}function Ve(e,r){Q.forEach(n=>{(r==null||!(r!=null&&r.containerId)||(r==null?void 0:r.containerId)===n.id)&&n.toggle(e,r==null?void 0:r.id)})}function cr(e){return Pe.add(e),()=>{Pe.delete(e)}}function fr(e){return e&&(X(e.toastId)||Re(e.toastId))?e.toastId:ze()}function B(e,r){return ur(e,r),r.toastId}function ne(e,r){return{...r,type:r&&r.type||e,toastId:fr(r)}}function oe(e){return(r,n)=>B(r,ne(e,n))}function q(e,r){return B(e,ne("default",r))}q.loading=(e,r)=>B(e,ne("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...r}));function lr(e,{pending:r,error:n,success:o},c){let a;r&&(a=X(r)?q.loading(r,c):q.loading(r.render,{...c,...r}));let d={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},p=(h,l,f)=>{if(l==null){q.dismiss(a);return}let m={type:h,...d,...c,data:f},b=X(l)?{render:l}:l;return a?q.update(a,{...m,...b}):q(b.render,{...m,...b}),f},y=Ne(e)?e():e;return y.then(h=>p("success",o,h)).catch(h=>p("error",n,h)),y}q.promise=lr;q.success=oe("success");q.info=oe("info");q.error=oe("error");q.warning=oe("warning");q.warn=q.warning;q.dark=(e,r)=>B(e,ne("default",{theme:"dark",...r}));function dr(e){ir(e)}q.dismiss=dr;q.clearWaitingQueue=sr;q.isActive=ar;q.update=(e,r={})=>{let n=or(e,r);if(n){let{props:o,content:c}=n,a={delay:100,...o,...r,toastId:r.toastId||e,updateId:ze()};a.toastId!==e&&(a.staleId=e);let d=a.render||c;delete a.render,B(d,a)}};q.done=e=>{q.update(e,{progress:1})};q.onChange=cr;q.play=e=>Ve(!0,e);q.pause=e=>Ve(!1,e);const pr=()=>{const e=D.useCallback(({onConfirm:n})=>{const o=Ce.lodashExports.uniqueId();q.warning(K.jsxRuntimeExports.jsx(K.jsxRuntimeExports.Fragment,{}),{toastId:o,autoClose:!1}),q.update(o,{render:K.jsxRuntimeExports.jsx(Oe.Confirm,{defaultOpen:!0,onConfirm:()=>{n(),q.dismiss(o)}})})},[]),r=D.useCallback(({onSubmit:n})=>{const o=Ce.lodashExports.uniqueId();q.warning(K.jsxRuntimeExports.jsx(K.jsxRuntimeExports.Fragment,{}),{toastId:o,autoClose:!1}),q.update(o,{render:K.jsxRuntimeExports.jsx(Oe.PasswordConfirm,{defaultOpen:!0,onSubmit:c=>{n(c),q.dismiss(o)}})})},[]);return{confirm:e,confirmPassword:r}},yr=(e,r=!1)=>{const n=D.useRef(document.title);D.useEffect(()=>(r&&n.current===document.title&&(n.current=document.title),document.title=e,()=>{r&&(document.title=n.current)}),[e,r])};var ee={},_e;function mr(){if(_e)return ee;_e=1,ee.match=a,ee.parse=d;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,n=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,c=/(dpi|dpcm|dppx)?$/;function a(l,f){return d(l).some(function(m){var b=m.inverse,$=m.type==="all"||f.type===m.type;if($&&b||!($||b))return!1;var M=m.expressions.every(function(j){var k=j.feature,W=j.modifier,R=j.value,w=f[k];if(!w)return!1;switch(k){case"orientation":case"scan":return w.toLowerCase()===R.toLowerCase();case"width":case"height":case"device-width":case"device-height":R=h(R),w=h(w);break;case"resolution":R=y(R),w=y(w);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":R=p(R),w=p(w);break;case"grid":case"color":case"color-index":case"monochrome":R=parseInt(R,10)||1,w=parseInt(w,10)||0;break}switch(W){case"min":return w>=R;case"max":return w<=R;default:return w===R}});return M&&!b||!M&&b})}function d(l){return l.split(",").map(function(f){f=f.trim();var m=f.match(e),b=m[1],$=m[2],M=m[3]||"",j={};return j.inverse=!!b&&b.toLowerCase()==="not",j.type=$?$.toLowerCase():"all",M=M.match(/\([^\)]+\)/g)||[],j.expressions=M.map(function(k){var W=k.match(r),R=W[1].toLowerCase().match(n);return{modifier:R[1],feature:R[2],value:W[2]}}),j})}function p(l){var f=Number(l),m;return f||(m=l.match(/^(\d+)\s*\/\s*(\d+)$/),f=m[1]/m[2]),f}function y(l){var f=parseFloat(l),m=String(l).match(c)[1];switch(m){case"dpcm":return f/2.54;case"dppx":return f*96;default:return f}}function h(l){var f=parseFloat(l),m=String(l).match(o)[1];switch(m){case"em":return f*16;case"rem":return f*16;case"cm":return f*96/2.54;case"mm":return f*96/2.54/10;case"in":return f*96;case"pt":return f*72;case"pc":return f*72/12;default:return f}}return ee}var pe,Ie;function vr(){if(Ie)return pe;Ie=1;var e=mr().match,r=typeof window<"u"?window.matchMedia:null;function n(c,a,d){var p=this,y;r&&!d&&(y=r.call(window,c)),y?(this.matches=y.matches,this.media=y.media,y.addListener(f)):(this.matches=e(c,a),this.media=c),this.addListener=h,this.removeListener=l,this.dispose=m;function h(b){y&&y.addListener(b)}function l(b){y&&y.removeListener(b)}function f(b){p.matches=b.matches,p.media=b.media}function m(){y&&y.removeListener(f)}}function o(c,a,d){return new n(c,a,d)}return pe=o,pe}var hr=vr();const br=Qe.getDefaultExportFromCjs(hr);var Er=/[A-Z]/g,gr=/^ms-/,ye={};function Tr(e){return"-"+e.toLowerCase()}function Ke(e){if(ye.hasOwnProperty(e))return ye[e];var r=e.replace(Er,Tr);return ye[e]=gr.test(r)?"-"+r:r}function xr(e,r){if(e===r)return!0;if(!e||!r)return!1;const n=Object.keys(e),o=Object.keys(r),c=n.length;if(o.length!==c)return!1;for(let a=0;a<c;a++){const d=n[a];if(e[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var re={exports:{}},te={exports:{}},_={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Me;function xr(){if(Me)return _;Me=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,M=e?Symbol.for("react.block"):60121,q=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function R(s){if(typeof s=="object"&&s!==null){var N=s.$$typeof;switch(N){case r:switch(s=s.type,s){case y:case h:case o:case a:case u:case f:return s;default:switch(s=s&&s.$$typeof,s){case p:case l:case $:case b:case d:return s;default:return N}}case n:return N}}}function w(s){return R(s)===h}return _.AsyncMode=y,_.ConcurrentMode=h,_.ContextConsumer=p,_.ContextProvider=d,_.Element=r,_.ForwardRef=l,_.Fragment=o,_.Lazy=$,_.Memo=b,_.Portal=n,_.Profiler=a,_.StrictMode=u,_.Suspense=f,_.isAsyncMode=function(s){return w(s)||R(s)===y},_.isConcurrentMode=w,_.isContextConsumer=function(s){return R(s)===p},_.isContextProvider=function(s){return R(s)===d},_.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===r},_.isForwardRef=function(s){return R(s)===l},_.isFragment=function(s){return R(s)===o},_.isLazy=function(s){return R(s)===$},_.isMemo=function(s){return R(s)===b},_.isPortal=function(s){return R(s)===n},_.isProfiler=function(s){return R(s)===a},_.isStrictMode=function(s){return R(s)===u},_.isSuspense=function(s){return R(s)===f},_.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===o||s===h||s===a||s===u||s===f||s===v||typeof s=="object"&&s!==null&&(s.$$typeof===$||s.$$typeof===b||s.$$typeof===d||s.$$typeof===p||s.$$typeof===l||s.$$typeof===q||s.$$typeof===k||s.$$typeof===W||s.$$typeof===M)},_.typeOf=R,_}var I={};/** @license React v16.13.1
8
+ */var Me;function Rr(){if(Me)return _;Me=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,c=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,M=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function R(s){if(typeof s=="object"&&s!==null){var N=s.$$typeof;switch(N){case r:switch(s=s.type,s){case y:case h:case o:case a:case c:case f:return s;default:switch(s=s&&s.$$typeof,s){case p:case l:case $:case b:case d:return s;default:return N}}case n:return N}}}function w(s){return R(s)===h}return _.AsyncMode=y,_.ConcurrentMode=h,_.ContextConsumer=p,_.ContextProvider=d,_.Element=r,_.ForwardRef=l,_.Fragment=o,_.Lazy=$,_.Memo=b,_.Portal=n,_.Profiler=a,_.StrictMode=c,_.Suspense=f,_.isAsyncMode=function(s){return w(s)||R(s)===y},_.isConcurrentMode=w,_.isContextConsumer=function(s){return R(s)===p},_.isContextProvider=function(s){return R(s)===d},_.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===r},_.isForwardRef=function(s){return R(s)===l},_.isFragment=function(s){return R(s)===o},_.isLazy=function(s){return R(s)===$},_.isMemo=function(s){return R(s)===b},_.isPortal=function(s){return R(s)===n},_.isProfiler=function(s){return R(s)===a},_.isStrictMode=function(s){return R(s)===c},_.isSuspense=function(s){return R(s)===f},_.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===o||s===h||s===a||s===c||s===f||s===m||typeof s=="object"&&s!==null&&(s.$$typeof===$||s.$$typeof===b||s.$$typeof===d||s.$$typeof===p||s.$$typeof===l||s.$$typeof===j||s.$$typeof===k||s.$$typeof===W||s.$$typeof===M)},_.typeOf=R,_}var I={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Ae;function Rr(){return Ae||(Ae=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,M=e?Symbol.for("react.block"):60121,q=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function R(i){return typeof i=="string"||typeof i=="function"||i===o||i===h||i===a||i===u||i===f||i===v||typeof i=="object"&&i!==null&&(i.$$typeof===$||i.$$typeof===b||i.$$typeof===d||i.$$typeof===p||i.$$typeof===l||i.$$typeof===q||i.$$typeof===k||i.$$typeof===W||i.$$typeof===M)}function w(i){if(typeof i=="object"&&i!==null){var U=i.$$typeof;switch(U){case r:var Z=i.type;switch(Z){case y:case h:case o:case a:case u:case f:return Z;default:var Se=Z&&Z.$$typeof;switch(Se){case p:case l:case $:case b:case d:return Se;default:return U}}case n:return U}}}var s=y,N=h,ae=p,ie=d,se=r,ce=l,G=o,ue=$,fe=b,V=n,le=a,F=u,z=f,J=!1;function de(i){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),t(i)||w(i)===y}function t(i){return w(i)===h}function c(i){return w(i)===p}function x(i){return w(i)===d}function g(i){return typeof i=="object"&&i!==null&&i.$$typeof===r}function m(i){return w(i)===l}function S(i){return w(i)===o}function E(i){return w(i)===$}function T(i){return w(i)===b}function C(i){return w(i)===n}function A(i){return w(i)===a}function O(i){return w(i)===u}function Y(i){return w(i)===f}I.AsyncMode=s,I.ConcurrentMode=N,I.ContextConsumer=ae,I.ContextProvider=ie,I.Element=se,I.ForwardRef=ce,I.Fragment=G,I.Lazy=ue,I.Memo=fe,I.Portal=V,I.Profiler=le,I.StrictMode=F,I.Suspense=z,I.isAsyncMode=de,I.isConcurrentMode=t,I.isContextConsumer=c,I.isContextProvider=x,I.isElement=g,I.isForwardRef=m,I.isFragment=S,I.isLazy=E,I.isMemo=T,I.isPortal=C,I.isProfiler=A,I.isStrictMode=O,I.isSuspense=Y,I.isValidElementType=R,I.typeOf=w}()),I}var je;function Xe(){return je||(je=1,process.env.NODE_ENV==="production"?te.exports=xr():te.exports=Rr()),te.exports}/*
15
+ */var Ae;function wr(){return Ae||(Ae=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,c=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,M=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function R(i){return typeof i=="string"||typeof i=="function"||i===o||i===h||i===a||i===c||i===f||i===m||typeof i=="object"&&i!==null&&(i.$$typeof===$||i.$$typeof===b||i.$$typeof===d||i.$$typeof===p||i.$$typeof===l||i.$$typeof===j||i.$$typeof===k||i.$$typeof===W||i.$$typeof===M)}function w(i){if(typeof i=="object"&&i!==null){var U=i.$$typeof;switch(U){case r:var Z=i.type;switch(Z){case y:case h:case o:case a:case c:case f:return Z;default:var Se=Z&&Z.$$typeof;switch(Se){case p:case l:case $:case b:case d:return Se;default:return U}}case n:return U}}}var s=y,N=h,ae=p,ie=d,se=r,ue=l,G=o,ce=$,fe=b,V=n,le=a,F=c,z=f,J=!1;function de(i){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),t(i)||w(i)===y}function t(i){return w(i)===h}function u(i){return w(i)===p}function x(i){return w(i)===d}function g(i){return typeof i=="object"&&i!==null&&i.$$typeof===r}function v(i){return w(i)===l}function S(i){return w(i)===o}function E(i){return w(i)===$}function T(i){return w(i)===b}function C(i){return w(i)===n}function A(i){return w(i)===a}function O(i){return w(i)===c}function Y(i){return w(i)===f}I.AsyncMode=s,I.ConcurrentMode=N,I.ContextConsumer=ae,I.ContextProvider=ie,I.Element=se,I.ForwardRef=ue,I.Fragment=G,I.Lazy=ce,I.Memo=fe,I.Portal=V,I.Profiler=le,I.StrictMode=F,I.Suspense=z,I.isAsyncMode=de,I.isConcurrentMode=t,I.isContextConsumer=u,I.isContextProvider=x,I.isElement=g,I.isForwardRef=v,I.isFragment=S,I.isLazy=E,I.isMemo=T,I.isPortal=C,I.isProfiler=A,I.isStrictMode=O,I.isSuspense=Y,I.isValidElementType=R,I.typeOf=w}()),I}var qe;function Xe(){return qe||(qe=1,process.env.NODE_ENV==="production"?te.exports=Rr():te.exports=wr()),te.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var ve,qe;function wr(){if(qe)return ve;qe=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function u(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var d={},p=0;p<10;p++)d["_"+String.fromCharCode(p)]=p;var y=Object.getOwnPropertyNames(d).map(function(l){return d[l]});if(y.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(l){h[l]=l}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ve=u()?Object.assign:function(a,d){for(var p,y=o(a),h,l=1;l<arguments.length;l++){p=Object(arguments[l]);for(var f in p)r.call(p,f)&&(y[f]=p[f]);if(e){h=e(p);for(var v=0;v<h.length;v++)n.call(p,h[v])&&(y[h[v]]=p[h[v]])}}return y},ve}var me,$e;function we(){if($e)return me;$e=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return me=e,me}var he,De;function Be(){return De||(De=1,he=Function.call.bind(Object.prototype.hasOwnProperty)),he}var be,ke;function Sr(){if(ke)return be;ke=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=we(),n={},o=Be();e=function(a){var d="Warning: "+a;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function u(a,d,p,y,h){if(process.env.NODE_ENV!=="production"){for(var l in a)if(o(a,l)){var f;try{if(typeof a[l]!="function"){var v=Error((y||"React class")+": "+p+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}f=a[l](d,l,y,p,null,r)}catch($){f=$}if(f&&!(f instanceof Error)&&e((y||"React class")+": type specification of "+p+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var b=h?h():"";e("Failed "+p+" type: "+f.message+(b??""))}}}}return u.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},be=u,be}var Ee,Le;function Cr(){if(Le)return Ee;Le=1;var e=Xe(),r=wr(),n=we(),o=Be(),u=Sr(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(p){var y="Warning: "+p;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return Ee=function(p,y){var h=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(t){var c=t&&(h&&t[h]||t[l]);if(typeof c=="function")return c}var v="<<anonymous>>",b={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:W(),arrayOf:R,element:w(),elementType:s(),instanceOf:N,node:ce(),objectOf:ie,oneOf:ae,oneOfType:se,shape:ue,exact:fe};function $(t,c){return t===c?t!==0||1/t===1/c:t!==t&&c!==c}function M(t,c){this.message=t,this.data=c&&typeof c=="object"?c:{},this.stack=""}M.prototype=Error.prototype;function q(t){if(process.env.NODE_ENV!=="production")var c={},x=0;function g(S,E,T,C,A,O,Y){if(C=C||v,O=O||T,Y!==n){if(y){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var U=C+":"+T;!c[U]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+O+"` prop on `"+C+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),c[U]=!0,x++)}}return E[T]==null?S?E[T]===null?new M("The "+A+" `"+O+"` is marked as required "+("in `"+C+"`, but its value is `null`.")):new M("The "+A+" `"+O+"` is marked as required in "+("`"+C+"`, but its value is `undefined`.")):null:t(E,T,C,A,O)}var m=g.bind(null,!1);return m.isRequired=g.bind(null,!0),m}function k(t){function c(x,g,m,S,E,T){var C=x[g],A=F(C);if(A!==t){var O=z(C);return new M("Invalid "+S+" `"+E+"` of type "+("`"+O+"` supplied to `"+m+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return q(c)}function W(){return q(d)}function R(t){function c(x,g,m,S,E){if(typeof t!="function")return new M("Property `"+E+"` of component `"+m+"` has invalid PropType notation inside arrayOf.");var T=x[g];if(!Array.isArray(T)){var C=F(T);return new M("Invalid "+S+" `"+E+"` of type "+("`"+C+"` supplied to `"+m+"`, expected an array."))}for(var A=0;A<T.length;A++){var O=t(T,A,m,S,E+"["+A+"]",n);if(O instanceof Error)return O}return null}return q(c)}function w(){function t(c,x,g,m,S){var E=c[x];if(!p(E)){var T=F(E);return new M("Invalid "+m+" `"+S+"` of type "+("`"+T+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return q(t)}function s(){function t(c,x,g,m,S){var E=c[x];if(!e.isValidElementType(E)){var T=F(E);return new M("Invalid "+m+" `"+S+"` of type "+("`"+T+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return q(t)}function N(t){function c(x,g,m,S,E){if(!(x[g]instanceof t)){var T=t.name||v,C=de(x[g]);return new M("Invalid "+S+" `"+E+"` of type "+("`"+C+"` supplied to `"+m+"`, expected ")+("instance of `"+T+"`."))}return null}return q(c)}function ae(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),d;function c(x,g,m,S,E){for(var T=x[g],C=0;C<t.length;C++)if($(T,t[C]))return null;var A=JSON.stringify(t,function(Y,i){var U=z(i);return U==="symbol"?String(i):i});return new M("Invalid "+S+" `"+E+"` of value `"+String(T)+"` "+("supplied to `"+m+"`, expected one of "+A+"."))}return q(c)}function ie(t){function c(x,g,m,S,E){if(typeof t!="function")return new M("Property `"+E+"` of component `"+m+"` has invalid PropType notation inside objectOf.");var T=x[g],C=F(T);if(C!=="object")return new M("Invalid "+S+" `"+E+"` of type "+("`"+C+"` supplied to `"+m+"`, expected an object."));for(var A in T)if(o(T,A)){var O=t(T,A,m,S,E+"."+A,n);if(O instanceof Error)return O}return null}return q(c)}function se(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var c=0;c<t.length;c++){var x=t[c];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(x)+" at index "+c+"."),d}function g(m,S,E,T,C){for(var A=[],O=0;O<t.length;O++){var Y=t[O],i=Y(m,S,E,T,C,n);if(i==null)return null;i.data&&o(i.data,"expectedType")&&A.push(i.data.expectedType)}var U=A.length>0?", expected one of type ["+A.join(", ")+"]":"";return new M("Invalid "+T+" `"+C+"` supplied to "+("`"+E+"`"+U+"."))}return q(g)}function ce(){function t(c,x,g,m,S){return V(c[x])?null:new M("Invalid "+m+" `"+S+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return q(t)}function G(t,c,x,g,m){return new M((t||"React class")+": "+c+" type `"+x+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+m+"`.")}function ue(t){function c(x,g,m,S,E){var T=x[g],C=F(T);if(C!=="object")return new M("Invalid "+S+" `"+E+"` of type `"+C+"` "+("supplied to `"+m+"`, expected `object`."));for(var A in t){var O=t[A];if(typeof O!="function")return G(m,S,E,A,z(O));var Y=O(T,A,m,S,E+"."+A,n);if(Y)return Y}return null}return q(c)}function fe(t){function c(x,g,m,S,E){var T=x[g],C=F(T);if(C!=="object")return new M("Invalid "+S+" `"+E+"` of type `"+C+"` "+("supplied to `"+m+"`, expected `object`."));var A=r({},x[g],t);for(var O in A){var Y=t[O];if(o(t,O)&&typeof Y!="function")return G(m,S,E,O,z(Y));if(!Y)return new M("Invalid "+S+" `"+E+"` key `"+O+"` supplied to `"+m+"`.\nBad object: "+JSON.stringify(x[g],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(t),null," "));var i=Y(T,O,m,S,E+"."+O,n);if(i)return i}return null}return q(c)}function V(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(V);if(t===null||p(t))return!0;var c=f(t);if(c){var x=c.call(t),g;if(c!==t.entries){for(;!(g=x.next()).done;)if(!V(g.value))return!1}else for(;!(g=x.next()).done;){var m=g.value;if(m&&!V(m[1]))return!1}}else return!1;return!0;default:return!1}}function le(t,c){return t==="symbol"?!0:c?c["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&c instanceof Symbol:!1}function F(t){var c=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":le(c,t)?"symbol":c}function z(t){if(typeof t>"u"||t===null)return""+t;var c=F(t);if(c==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return c}function J(t){var c=z(t);switch(c){case"array":case"object":return"an "+c;case"boolean":case"date":case"regexp":return"a "+c;default:return c}}function de(t){return!t.constructor||!t.constructor.name?v:t.constructor.name}return b.checkPropTypes=u,b.resetWarningCache=u.resetWarningCache,b.PropTypes=b,b},Ee}var ge,Ye;function Or(){if(Ye)return ge;Ye=1;var e=we();function r(){}function n(){}return n.resetWarningCache=r,ge=function(){function o(d,p,y,h,l,f){if(f!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}o.isRequired=o;function u(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:u,element:o,elementType:o,instanceOf:u,node:o,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:n,resetWarningCache:r};return a.PropTypes=a,a},ge}var We;function Pr(){if(We)return re.exports;if(We=1,process.env.NODE_ENV!=="production"){var e=Xe(),r=!0;re.exports=Cr()(e.isElement,r)}else re.exports=Or()();return re.exports}var _r=Pr();const P=Qe.getDefaultExportFromCjs(_r),L=P.oneOfType([P.string,P.number]),Ge={all:P.bool,grid:P.bool,aural:P.bool,braille:P.bool,handheld:P.bool,print:P.bool,projection:P.bool,screen:P.bool,tty:P.bool,tv:P.bool,embossed:P.bool},Ir={orientation:P.oneOf(["portrait","landscape"]),scan:P.oneOf(["progressive","interlace"]),aspectRatio:P.string,deviceAspectRatio:P.string,height:L,deviceHeight:L,width:L,deviceWidth:L,color:P.bool,colorIndex:P.bool,monochrome:P.bool,resolution:L,type:Object.keys(Ge)},{type:Hr,...Mr}=Ir,Ar={minAspectRatio:P.string,maxAspectRatio:P.string,minDeviceAspectRatio:P.string,maxDeviceAspectRatio:P.string,minHeight:L,maxHeight:L,minDeviceHeight:L,maxDeviceHeight:L,minWidth:L,maxWidth:L,minDeviceWidth:L,maxDeviceWidth:L,minColor:P.number,maxColor:P.number,minColorIndex:P.number,maxColorIndex:P.number,minMonochrome:P.number,maxMonochrome:P.number,minResolution:L,maxResolution:L,...Mr},jr={...Ge,...Ar};var qr={all:jr};const $r=e=>`not ${e}`,Dr=(e,r)=>{const n=Ke(e);return typeof r=="number"&&(r=`${r}px`),r===!0?n:r===!1?$r(n):`(${n}: ${r})`},kr=e=>e.join(" and "),Lr=e=>{const r=[];return Object.keys(qr.all).forEach(n=>{const o=e[n];o!=null&&r.push(Dr(n,o))}),kr(r)},Yr=D.createContext(void 0),Wr=e=>e.query||Lr(e),Fe=e=>e?Object.keys(e).reduce((n,o)=>(n[Ke(o)]=e[o],n),{}):void 0,Je=()=>{const e=D.useRef(!1);return D.useEffect(()=>{e.current=!0},[]),e.current},Fr=e=>{const r=D.useContext(Yr),n=()=>Fe(e)||Fe(r),[o,u]=D.useState(n);return D.useEffect(()=>{const a=n();Tr(o,a)||u(a)},[e,r]),o},Ur=e=>{const r=()=>Wr(e),[n,o]=D.useState(r);return D.useEffect(()=>{const u=r();n!==u&&o(u)},[e]),n},Qr=(e,r)=>{const n=()=>hr(e,r||{},!!r),[o,u]=D.useState(n),a=Je();return D.useEffect(()=>{if(a){const d=n();return u(d),()=>{d&&d.dispose()}}},[e,r]),o},Nr=e=>{const[r,n]=D.useState(e.matches);return D.useEffect(()=>{const o=u=>{n(u.matches)};return e.addListener(o),n(e.matches),()=>{e.removeListener(o)}},[e]),r},H=(e,r,n)=>{const o=Fr(r),u=Ur(e);if(!u)throw new Error("Invalid or missing MediaQuery!");const a=Qr(u,o),d=Nr(a);return Je(),D.useEffect(()=>{},[d]),D.useEffect(()=>()=>{a&&a.dispose()},[]),d},zr=()=>{const e=H({query:"(min-width: 116rem)"}),r=H({query:"(min-width: 96rem)"}),n=H({query:"(min-width: 80rem)"}),o=H({query:"(min-width: 64rem)"}),u=H({query:"(min-width: 48rem)"}),a=H({query:"(min-width: 40rem)"}),d=H({query:"(max-width: 40rem)"});return{xxxl:e,xxl:r,xl:n,lg:o,md:u,sm:a,xs:d}};exports.useColumns=xe.useColumns;exports.useDataTable=xe.useDataTable;exports.useSortable=xe.useSortable;exports.useDateRange=Ue.useDateRange;exports.useQueryParams=Ue.useQueryParams;exports.useFilter=Ze.useFilter;exports.useConfirm=dr;exports.useDocumentTitle=pr;exports.useMediaQuerySizes=zr;
19
+ */var me,je;function Sr(){if(je)return me;je=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function c(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var d={},p=0;p<10;p++)d["_"+String.fromCharCode(p)]=p;var y=Object.getOwnPropertyNames(d).map(function(l){return d[l]});if(y.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(l){h[l]=l}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return me=c()?Object.assign:function(a,d){for(var p,y=o(a),h,l=1;l<arguments.length;l++){p=Object(arguments[l]);for(var f in p)r.call(p,f)&&(y[f]=p[f]);if(e){h=e(p);for(var m=0;m<h.length;m++)n.call(p,h[m])&&(y[h[m]]=p[h[m]])}}return y},me}var ve,$e;function we(){if($e)return ve;$e=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ve=e,ve}var he,De;function Be(){return De||(De=1,he=Function.call.bind(Object.prototype.hasOwnProperty)),he}var be,ke;function Cr(){if(ke)return be;ke=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=we(),n={},o=Be();e=function(a){var d="Warning: "+a;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function c(a,d,p,y,h){if(process.env.NODE_ENV!=="production"){for(var l in a)if(o(a,l)){var f;try{if(typeof a[l]!="function"){var m=Error((y||"React class")+": "+p+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=a[l](d,l,y,p,null,r)}catch($){f=$}if(f&&!(f instanceof Error)&&e((y||"React class")+": type specification of "+p+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var b=h?h():"";e("Failed "+p+" type: "+f.message+(b??""))}}}}return c.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},be=c,be}var Ee,Le;function Or(){if(Le)return Ee;Le=1;var e=Xe(),r=Sr(),n=we(),o=Be(),c=Cr(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(p){var y="Warning: "+p;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return Ee=function(p,y){var h=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(t){var u=t&&(h&&t[h]||t[l]);if(typeof u=="function")return u}var m="<<anonymous>>",b={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:W(),arrayOf:R,element:w(),elementType:s(),instanceOf:N,node:ue(),objectOf:ie,oneOf:ae,oneOfType:se,shape:ce,exact:fe};function $(t,u){return t===u?t!==0||1/t===1/u:t!==t&&u!==u}function M(t,u){this.message=t,this.data=u&&typeof u=="object"?u:{},this.stack=""}M.prototype=Error.prototype;function j(t){if(process.env.NODE_ENV!=="production")var u={},x=0;function g(S,E,T,C,A,O,Y){if(C=C||m,O=O||T,Y!==n){if(y){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var U=C+":"+T;!u[U]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+O+"` prop on `"+C+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),u[U]=!0,x++)}}return E[T]==null?S?E[T]===null?new M("The "+A+" `"+O+"` is marked as required "+("in `"+C+"`, but its value is `null`.")):new M("The "+A+" `"+O+"` is marked as required in "+("`"+C+"`, but its value is `undefined`.")):null:t(E,T,C,A,O)}var v=g.bind(null,!1);return v.isRequired=g.bind(null,!0),v}function k(t){function u(x,g,v,S,E,T){var C=x[g],A=F(C);if(A!==t){var O=z(C);return new M("Invalid "+S+" `"+E+"` of type "+("`"+O+"` supplied to `"+v+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return j(u)}function W(){return j(d)}function R(t){function u(x,g,v,S,E){if(typeof t!="function")return new M("Property `"+E+"` of component `"+v+"` has invalid PropType notation inside arrayOf.");var T=x[g];if(!Array.isArray(T)){var C=F(T);return new M("Invalid "+S+" `"+E+"` of type "+("`"+C+"` supplied to `"+v+"`, expected an array."))}for(var A=0;A<T.length;A++){var O=t(T,A,v,S,E+"["+A+"]",n);if(O instanceof Error)return O}return null}return j(u)}function w(){function t(u,x,g,v,S){var E=u[x];if(!p(E)){var T=F(E);return new M("Invalid "+v+" `"+S+"` of type "+("`"+T+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return j(t)}function s(){function t(u,x,g,v,S){var E=u[x];if(!e.isValidElementType(E)){var T=F(E);return new M("Invalid "+v+" `"+S+"` of type "+("`"+T+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return j(t)}function N(t){function u(x,g,v,S,E){if(!(x[g]instanceof t)){var T=t.name||m,C=de(x[g]);return new M("Invalid "+S+" `"+E+"` of type "+("`"+C+"` supplied to `"+v+"`, expected ")+("instance of `"+T+"`."))}return null}return j(u)}function ae(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),d;function u(x,g,v,S,E){for(var T=x[g],C=0;C<t.length;C++)if($(T,t[C]))return null;var A=JSON.stringify(t,function(Y,i){var U=z(i);return U==="symbol"?String(i):i});return new M("Invalid "+S+" `"+E+"` of value `"+String(T)+"` "+("supplied to `"+v+"`, expected one of "+A+"."))}return j(u)}function ie(t){function u(x,g,v,S,E){if(typeof t!="function")return new M("Property `"+E+"` of component `"+v+"` has invalid PropType notation inside objectOf.");var T=x[g],C=F(T);if(C!=="object")return new M("Invalid "+S+" `"+E+"` of type "+("`"+C+"` supplied to `"+v+"`, expected an object."));for(var A in T)if(o(T,A)){var O=t(T,A,v,S,E+"."+A,n);if(O instanceof Error)return O}return null}return j(u)}function se(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var u=0;u<t.length;u++){var x=t[u];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(x)+" at index "+u+"."),d}function g(v,S,E,T,C){for(var A=[],O=0;O<t.length;O++){var Y=t[O],i=Y(v,S,E,T,C,n);if(i==null)return null;i.data&&o(i.data,"expectedType")&&A.push(i.data.expectedType)}var U=A.length>0?", expected one of type ["+A.join(", ")+"]":"";return new M("Invalid "+T+" `"+C+"` supplied to "+("`"+E+"`"+U+"."))}return j(g)}function ue(){function t(u,x,g,v,S){return V(u[x])?null:new M("Invalid "+v+" `"+S+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return j(t)}function G(t,u,x,g,v){return new M((t||"React class")+": "+u+" type `"+x+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+v+"`.")}function ce(t){function u(x,g,v,S,E){var T=x[g],C=F(T);if(C!=="object")return new M("Invalid "+S+" `"+E+"` of type `"+C+"` "+("supplied to `"+v+"`, expected `object`."));for(var A in t){var O=t[A];if(typeof O!="function")return G(v,S,E,A,z(O));var Y=O(T,A,v,S,E+"."+A,n);if(Y)return Y}return null}return j(u)}function fe(t){function u(x,g,v,S,E){var T=x[g],C=F(T);if(C!=="object")return new M("Invalid "+S+" `"+E+"` of type `"+C+"` "+("supplied to `"+v+"`, expected `object`."));var A=r({},x[g],t);for(var O in A){var Y=t[O];if(o(t,O)&&typeof Y!="function")return G(v,S,E,O,z(Y));if(!Y)return new M("Invalid "+S+" `"+E+"` key `"+O+"` supplied to `"+v+"`.\nBad object: "+JSON.stringify(x[g],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(t),null," "));var i=Y(T,O,v,S,E+"."+O,n);if(i)return i}return null}return j(u)}function V(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(V);if(t===null||p(t))return!0;var u=f(t);if(u){var x=u.call(t),g;if(u!==t.entries){for(;!(g=x.next()).done;)if(!V(g.value))return!1}else for(;!(g=x.next()).done;){var v=g.value;if(v&&!V(v[1]))return!1}}else return!1;return!0;default:return!1}}function le(t,u){return t==="symbol"?!0:u?u["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&u instanceof Symbol:!1}function F(t){var u=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":le(u,t)?"symbol":u}function z(t){if(typeof t>"u"||t===null)return""+t;var u=F(t);if(u==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return u}function J(t){var u=z(t);switch(u){case"array":case"object":return"an "+u;case"boolean":case"date":case"regexp":return"a "+u;default:return u}}function de(t){return!t.constructor||!t.constructor.name?m:t.constructor.name}return b.checkPropTypes=c,b.resetWarningCache=c.resetWarningCache,b.PropTypes=b,b},Ee}var ge,Ye;function Pr(){if(Ye)return ge;Ye=1;var e=we();function r(){}function n(){}return n.resetWarningCache=r,ge=function(){function o(d,p,y,h,l,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}o.isRequired=o;function c(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:c,element:o,elementType:o,instanceOf:c,node:o,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:n,resetWarningCache:r};return a.PropTypes=a,a},ge}var We;function _r(){if(We)return re.exports;if(We=1,process.env.NODE_ENV!=="production"){var e=Xe(),r=!0;re.exports=Or()(e.isElement,r)}else re.exports=Pr()();return re.exports}var Ir=_r();const P=Qe.getDefaultExportFromCjs(Ir),L=P.oneOfType([P.string,P.number]),Ge={all:P.bool,grid:P.bool,aural:P.bool,braille:P.bool,handheld:P.bool,print:P.bool,projection:P.bool,screen:P.bool,tty:P.bool,tv:P.bool,embossed:P.bool},Mr={orientation:P.oneOf(["portrait","landscape"]),scan:P.oneOf(["progressive","interlace"]),aspectRatio:P.string,deviceAspectRatio:P.string,height:L,deviceHeight:L,width:L,deviceWidth:L,color:P.bool,colorIndex:P.bool,monochrome:P.bool,resolution:L,type:Object.keys(Ge)},{type:Vr,...Ar}=Mr,qr={minAspectRatio:P.string,maxAspectRatio:P.string,minDeviceAspectRatio:P.string,maxDeviceAspectRatio:P.string,minHeight:L,maxHeight:L,minDeviceHeight:L,maxDeviceHeight:L,minWidth:L,maxWidth:L,minDeviceWidth:L,maxDeviceWidth:L,minColor:P.number,maxColor:P.number,minColorIndex:P.number,maxColorIndex:P.number,minMonochrome:P.number,maxMonochrome:P.number,minResolution:L,maxResolution:L,...Ar},jr={...Ge,...qr};var $r={all:jr};const Dr=e=>`not ${e}`,kr=(e,r)=>{const n=Ke(e);return typeof r=="number"&&(r=`${r}px`),r===!0?n:r===!1?Dr(n):`(${n}: ${r})`},Lr=e=>e.join(" and "),Yr=e=>{const r=[];return Object.keys($r.all).forEach(n=>{const o=e[n];o!=null&&r.push(kr(n,o))}),Lr(r)},Wr=D.createContext(void 0),Fr=e=>e.query||Yr(e),Fe=e=>e?Object.keys(e).reduce((n,o)=>(n[Ke(o)]=e[o],n),{}):void 0,Je=()=>{const e=D.useRef(!1);return D.useEffect(()=>{e.current=!0},[]),e.current},Ur=e=>{const r=D.useContext(Wr),n=()=>Fe(e)||Fe(r),[o,c]=D.useState(n);return D.useEffect(()=>{const a=n();xr(o,a)||c(a)},[e,r]),o},Qr=e=>{const r=()=>Fr(e),[n,o]=D.useState(r);return D.useEffect(()=>{const c=r();n!==c&&o(c)},[e]),n},Nr=(e,r)=>{const n=()=>br(e,r||{},!!r),[o,c]=D.useState(n),a=Je();return D.useEffect(()=>{if(a){const d=n();return c(d),()=>{d&&d.dispose()}}},[e,r]),o},zr=e=>{const[r,n]=D.useState(e.matches);return D.useEffect(()=>{const o=c=>{n(c.matches)};return e.addListener(o),n(e.matches),()=>{e.removeListener(o)}},[e]),r},H=(e,r,n)=>{const o=Ur(r),c=Qr(e);if(!c)throw new Error("Invalid or missing MediaQuery!");const a=Nr(c,o),d=zr(a);return Je(),D.useEffect(()=>{},[d]),D.useEffect(()=>()=>{a&&a.dispose()},[]),d},Hr=()=>{const e=H({query:"(min-width: 116rem)"}),r=H({query:"(min-width: 96rem)"}),n=H({query:"(min-width: 80rem)"}),o=H({query:"(min-width: 64rem)"}),c=H({query:"(min-width: 48rem)"}),a=H({query:"(min-width: 40rem)"}),d=H({query:"(max-width: 40rem)"});return{xxxl:e,xxl:r,xl:n,lg:o,md:c,sm:a,xs:d}};exports.useColumns=xe.useColumns;exports.useDataTable=xe.useDataTable;exports.useSortable=xe.useSortable;exports.useDateRange=Ue.useDateRange;exports.useQueryParams=Ue.useQueryParams;exports.useFilter=Ze.useFilter;exports.useTheme=er.useTheme;exports.useConfirm=pr;exports.useDocumentTitle=yr;exports.useMediaQuerySizes=Hr;
@@ -8,4 +8,5 @@ export * from "./useFilter";
8
8
  export * from "./useFilter";
9
9
  export * from "./useDocumentTitle";
10
10
  export * from "./useMediaQuerySizes.ts";
11
+ export * from "./useTheme";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react"),o=require("./ThemeMode-BO6tit_Z.cjs"),r=t.createContext({theme:o.ThemeMode.SYSTEM,setTheme:()=>null}),s=()=>{const e=t.useContext(r);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};exports.useTheme=s;
@@ -0,0 +1,14 @@
1
+ import { createContext as t, useContext as o } from "react";
2
+ import { T as r } from "./ThemeMode-CqURAYDL.js";
3
+ const m = t({
4
+ theme: r.SYSTEM,
5
+ setTheme: () => null
6
+ }), h = () => {
7
+ const e = o(m);
8
+ if (e === void 0)
9
+ throw new Error("useTheme must be used within a ThemeProvider");
10
+ return e;
11
+ };
12
+ export {
13
+ h as u
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dgz-ui-shared",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -114,8 +114,7 @@
114
114
  "types": "./dist/types/stores/index.d.ts",
115
115
  "import": "./dist/stores/index.es.js",
116
116
  "require": "./dist/stores/index.umd.js"
117
- },
118
- "./dist/dgz-ui.css": "./dist/dgz-ui.css"
117
+ }
119
118
  },
120
119
  "sideEffects": false,
121
120
  "scripts": {