@ram_28/kf-ai-sdk 1.0.13 → 1.0.14

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BYECrxsp.cjs"),p=require("react"),o=require("./cn-mXUIg4vp.cjs");function C(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const r=C(p),l=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",a),...e}));l.displayName="Kanban";const i=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",a),...e}));i.displayName="KanbanColumn";const m=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("mb-3 flex items-center justify-between",a),...e}));m.displayName="KanbanColumnHeader";const d=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("h3",{ref:n,className:o.cn("text-sm font-semibold text-gray-700",a),...e}));d.displayName="KanbanColumnTitle";const c=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("flex-1 space-y-2 overflow-y-auto",a),...e}));c.displayName="KanbanColumnContent";const u=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",a),...e}));u.displayName="KanbanCard";const b=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("font-medium text-gray-900 mb-1",a),...e}));b.displayName="KanbanCardTitle";const x=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("text-sm text-gray-600",a),...e}));x.displayName="KanbanCardDescription";const f=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("mt-3 pt-3 border-t border-gray-200",a),...e}));f.displayName="KanbanColumnFooter";exports.Kanban=l;exports.KanbanCard=u;exports.KanbanCardDescription=x;exports.KanbanCardTitle=b;exports.KanbanColumn=i;exports.KanbanColumnContent=c;exports.KanbanColumnFooter=f;exports.KanbanColumnHeader=m;exports.KanbanColumnTitle=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),K=require("react"),t=require("./cn-mXUIg4vp.cjs");function p(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const r=p(K),l=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",a),...e}));l.displayName="Kanban";const d=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",a),...e}));d.displayName="KanbanColumn";const c=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("mb-3 flex items-center justify-between",a),...e}));c.displayName="KanbanColumnHeader";const i=r.forwardRef(({className:a,...e},n)=>o.jsx("h3",{ref:n,className:t.cn("text-sm font-semibold text-gray-700",a),...e}));i.displayName="KanbanColumnTitle";const m=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("flex-1 space-y-2 overflow-y-auto",a),...e}));m.displayName="KanbanColumnContent";const b=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",a),...e}));b.displayName="KanbanCard";const f=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("font-medium text-gray-900 mb-1",a),...e}));f.displayName="KanbanCardTitle";const u=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("text-sm text-gray-600",a),...e}));u.displayName="KanbanCardDescription";const C=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("mt-3 pt-3 border-t border-gray-200",a),...e}));C.displayName="KanbanColumnFooter";exports.Kanban=l;exports.KanbanCard=b;exports.KanbanCardDescription=u;exports.KanbanCardTitle=f;exports.KanbanColumn=d;exports.KanbanColumnContent=m;exports.KanbanColumnFooter=C;exports.KanbanColumnHeader=c;exports.KanbanColumnTitle=i;
@@ -1,11 +1,11 @@
1
- import { j as o } from "./jsx-runtime-DGlMoOmv.js";
2
- import * as s from "react";
3
- import { c as r } from "./cn-Dr87sK3i.js";
4
- const t = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import { c as s } from "./cn-Dr87sK3i.js";
4
+ const t = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
5
5
  "div",
6
6
  {
7
7
  ref: n,
8
- className: r(
8
+ className: s(
9
9
  "flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",
10
10
  a
11
11
  ),
@@ -13,11 +13,11 @@ const t = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
13
13
  }
14
14
  ));
15
15
  t.displayName = "Kanban";
16
- const d = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
16
+ const d = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
17
17
  "div",
18
18
  {
19
19
  ref: n,
20
- className: r(
20
+ className: s(
21
21
  "flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",
22
22
  a
23
23
  ),
@@ -25,38 +25,38 @@ const d = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
25
25
  }
26
26
  ));
27
27
  d.displayName = "KanbanColumn";
28
- const m = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
28
+ const l = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
29
29
  "div",
30
30
  {
31
31
  ref: n,
32
- className: r("mb-3 flex items-center justify-between", a),
32
+ className: s("mb-3 flex items-center justify-between", a),
33
33
  ...e
34
34
  }
35
35
  ));
36
- m.displayName = "KanbanColumnHeader";
37
- const l = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
36
+ l.displayName = "KanbanColumnHeader";
37
+ const m = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
38
38
  "h3",
39
39
  {
40
40
  ref: n,
41
- className: r("text-sm font-semibold text-gray-700", a),
41
+ className: s("text-sm font-semibold text-gray-700", a),
42
42
  ...e
43
43
  }
44
44
  ));
45
- l.displayName = "KanbanColumnTitle";
46
- const i = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
45
+ m.displayName = "KanbanColumnTitle";
46
+ const i = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
47
47
  "div",
48
48
  {
49
49
  ref: n,
50
- className: r("flex-1 space-y-2 overflow-y-auto", a),
50
+ className: s("flex-1 space-y-2 overflow-y-auto", a),
51
51
  ...e
52
52
  }
53
53
  ));
54
54
  i.displayName = "KanbanColumnContent";
55
- const f = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
55
+ const f = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
56
56
  "div",
57
57
  {
58
58
  ref: n,
59
- className: r(
59
+ className: s(
60
60
  "rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",
61
61
  a
62
62
  ),
@@ -64,33 +64,33 @@ const f = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
64
64
  }
65
65
  ));
66
66
  f.displayName = "KanbanCard";
67
- const b = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
67
+ const b = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
68
68
  "div",
69
69
  {
70
70
  ref: n,
71
- className: r("font-medium text-gray-900 mb-1", a),
71
+ className: s("font-medium text-gray-900 mb-1", a),
72
72
  ...e
73
73
  }
74
74
  ));
75
75
  b.displayName = "KanbanCardTitle";
76
- const c = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
76
+ const c = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
77
77
  "div",
78
78
  {
79
79
  ref: n,
80
- className: r("text-sm text-gray-600", a),
80
+ className: s("text-sm text-gray-600", a),
81
81
  ...e
82
82
  }
83
83
  ));
84
84
  c.displayName = "KanbanCardDescription";
85
- const x = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
85
+ const p = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
86
86
  "div",
87
87
  {
88
88
  ref: n,
89
- className: r("mt-3 pt-3 border-t border-gray-200", a),
89
+ className: s("mt-3 pt-3 border-t border-gray-200", a),
90
90
  ...e
91
91
  }
92
92
  ));
93
- x.displayName = "KanbanColumnFooter";
93
+ p.displayName = "KanbanColumnFooter";
94
94
  export {
95
95
  t as Kanban,
96
96
  f as KanbanCard,
@@ -98,7 +98,7 @@ export {
98
98
  b as KanbanCardTitle,
99
99
  d as KanbanColumn,
100
100
  i as KanbanColumnContent,
101
- x as KanbanColumnFooter,
102
- m as KanbanColumnHeader,
103
- l as KanbanColumnTitle
101
+ p as KanbanColumnFooter,
102
+ l as KanbanColumnHeader,
103
+ m as KanbanColumnTitle
104
104
  };
package/dist/table.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),O=require("./useQuery-BScHEo7x.cjs"),Q=require("./client-C15j4O5B.cjs"),_=require("./useFilter-D-bCDo6Z.cjs");function $(t){var N,m,P,k,z,T,F,M,w,E;const[o,p]=a.useState({query:""}),[n,y]=a.useState({field:((m=(N=t.initialState)==null?void 0:N.sorting)==null?void 0:m.field)||null,direction:((k=(P=t.initialState)==null?void 0:P.sorting)==null?void 0:k.direction)||null}),[i,c]=a.useState({pageNo:((T=(z=t.initialState)==null?void 0:z.pagination)==null?void 0:T.pageNo)||1,pageSize:((M=(F=t.initialState)==null?void 0:F.pagination)==null?void 0:M.pageSize)||10}),s=_.useFilter({initialConditions:(w=t.initialState)==null?void 0:w.filters,initialOperator:((E=t.initialState)==null?void 0:E.filterOperator)||"And"}),u=a.useMemo(()=>{const e={};return o.query&&(e.Search=o.query),s.payload&&(e.Filter=s.payload),e},[o.query,s.payload]),b=a.useMemo(()=>{const e={...u};return n.field&&n.direction&&(e.Sort=[{[String(n.field)]:n.direction==="asc"?"ASC":"DESC"}]),t.enablePagination&&(e.Page=i.pageNo,e.PageSize=i.pageSize),e},[u,n,i,t.enablePagination]),{data:l,isLoading:L,isFetching:R,error:x,refetch:q}=O.useQuery({queryKey:["table",t.source,b],queryFn:async()=>{try{const e=await Q.api(t.source).list(b);return t.onSuccess&&t.onSuccess(e.Data),e}catch(e){throw t.onError&&t.onError(e),e}},staleTime:0,gcTime:0}),{data:g,isLoading:A,isFetching:D,error:G,refetch:C}=O.useQuery({queryKey:["table-count",t.source,u],queryFn:async()=>{try{return await Q.api(t.source).count(u)}catch(e){throw t.onError&&t.onError(e),e}},staleTime:0,gcTime:0}),K=a.useMemo(()=>(l==null?void 0:l.Data)||[],[l]),S=a.useMemo(()=>(g==null?void 0:g.Count)||0,[g]),d=a.useMemo(()=>Math.ceil(S/i.pageSize),[S,i.pageSize]),j=a.useCallback(e=>{y(r=>{if(r.field===e){if(r.direction==="asc")return{field:e,direction:"desc"};if(r.direction==="desc")return{field:null,direction:null}}return{field:e,direction:"asc"}})},[]),I=a.useCallback(()=>{y({field:null,direction:null})},[]),B=a.useCallback((e,r)=>{y({field:e,direction:r})},[]),H=a.useCallback(e=>{p({query:e}),c(r=>({...r,pageNo:1}))},[]),J=a.useCallback(()=>{p({query:""})},[]),f=i.pageNo<d,h=i.pageNo>1,U=a.useCallback(()=>{f&&c(e=>({...e,pageNo:e.pageNo+1}))},[f]),V=a.useCallback(()=>{h&&c(e=>({...e,pageNo:e.pageNo-1}))},[h]),W=a.useCallback(e=>{const r=Math.max(1,Math.min(e,d));c(Z=>({...Z,pageNo:r}))},[d]),X=a.useCallback(e=>{c(r=>({...r,pageSize:e,pageNo:1}))},[]),Y=a.useCallback(async()=>{const[e]=await Promise.all([q(),C()]);return e.data||{Data:[]}},[q,C]);return{rows:K,totalItems:S,isLoading:L||A,isFetching:R||D,error:x||G,search:{query:o.query,setQuery:H,clear:J},sort:{field:n.field,direction:n.direction,toggle:j,clear:I,set:B},filter:s,pagination:{currentPage:i.pageNo,pageSize:i.pageSize,totalPages:d,totalItems:S,canGoNext:f,canGoPrevious:h,goToNext:U,goToPrevious:V,goToPage:W,setPageSize:X},refetch:Y}}exports.useTable=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),O=require("@tanstack/react-query"),Q=require("./client-C15j4O5B.cjs"),_=require("./useFilter-D-bCDo6Z.cjs");function $(t){var N,m,P,k,z,T,F,M,w,E;const[o,p]=a.useState({query:""}),[n,y]=a.useState({field:((m=(N=t.initialState)==null?void 0:N.sorting)==null?void 0:m.field)||null,direction:((k=(P=t.initialState)==null?void 0:P.sorting)==null?void 0:k.direction)||null}),[i,c]=a.useState({pageNo:((T=(z=t.initialState)==null?void 0:z.pagination)==null?void 0:T.pageNo)||1,pageSize:((M=(F=t.initialState)==null?void 0:F.pagination)==null?void 0:M.pageSize)||10}),s=_.useFilter({initialConditions:(w=t.initialState)==null?void 0:w.filters,initialOperator:((E=t.initialState)==null?void 0:E.filterOperator)||"And"}),l=a.useMemo(()=>{const e={};return o.query&&(e.Search=o.query),s.payload&&(e.Filter=s.payload),e},[o.query,s.payload]),b=a.useMemo(()=>{const e={...l};return n.field&&n.direction&&(e.Sort=[{[String(n.field)]:n.direction==="asc"?"ASC":"DESC"}]),t.enablePagination&&(e.Page=i.pageNo,e.PageSize=i.pageSize),e},[l,n,i,t.enablePagination]),{data:u,isLoading:L,isFetching:R,error:x,refetch:q}=O.useQuery({queryKey:["table",t.source,b],queryFn:async()=>{try{const e=await Q.api(t.source).list(b);return t.onSuccess&&t.onSuccess(e.Data),e}catch(e){throw t.onError&&t.onError(e),e}},staleTime:0,gcTime:0}),{data:g,isLoading:A,isFetching:D,error:G,refetch:C}=O.useQuery({queryKey:["table-count",t.source,l],queryFn:async()=>{try{return await Q.api(t.source).count(l)}catch(e){throw t.onError&&t.onError(e),e}},staleTime:0,gcTime:0}),K=a.useMemo(()=>(u==null?void 0:u.Data)||[],[u]),S=a.useMemo(()=>(g==null?void 0:g.Count)||0,[g]),d=a.useMemo(()=>Math.ceil(S/i.pageSize),[S,i.pageSize]),j=a.useCallback(e=>{y(r=>{if(r.field===e){if(r.direction==="asc")return{field:e,direction:"desc"};if(r.direction==="desc")return{field:null,direction:null}}return{field:e,direction:"asc"}})},[]),I=a.useCallback(()=>{y({field:null,direction:null})},[]),B=a.useCallback((e,r)=>{y({field:e,direction:r})},[]),H=a.useCallback(e=>{p({query:e}),c(r=>({...r,pageNo:1}))},[]),J=a.useCallback(()=>{p({query:""})},[]),f=i.pageNo<d,h=i.pageNo>1,U=a.useCallback(()=>{f&&c(e=>({...e,pageNo:e.pageNo+1}))},[f]),V=a.useCallback(()=>{h&&c(e=>({...e,pageNo:e.pageNo-1}))},[h]),W=a.useCallback(e=>{const r=Math.max(1,Math.min(e,d));c(Z=>({...Z,pageNo:r}))},[d]),X=a.useCallback(e=>{c(r=>({...r,pageSize:e,pageNo:1}))},[]),Y=a.useCallback(async()=>{const[e]=await Promise.all([q(),C()]);return e.data||{Data:[]}},[q,C]);return{rows:K,totalItems:S,isLoading:L||A,isFetching:R||D,error:x||G,search:{query:o.query,setQuery:H,clear:J},sort:{field:n.field,direction:n.direction,toggle:j,clear:I,set:B},filter:s,pagination:{currentPage:i.pageNo,pageSize:i.pageSize,totalPages:d,totalItems:S,canGoNext:f,canGoPrevious:h,goToNext:U,goToPrevious:V,goToPage:W,setPageSize:X},refetch:Y}}exports.useTable=$;
package/dist/table.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useState as m, useMemo as c, useCallback as i } from "react";
2
- import { u as A } from "./useQuery-KpZFg80c.js";
2
+ import { useQuery as A } from "@tanstack/react-query";
3
3
  import { a as D } from "./client-CfvLiGfP.js";
4
4
  import { u as v } from "./useFilter-CXFqEHyI.js";
5
5
  function ae(t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ram_28/kf-ai-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Type-safe, AI-driven SDK for building modern web applications with role-based access control",
5
5
  "author": "Ramprasad",
6
6
  "license": "MIT",
@@ -1,30 +0,0 @@
1
- "use strict";const Se=require("react");var X={exports:{}},k={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Te;function lr(){if(Te)return k;Te=1;var V=Se,C=Symbol.for("react.element"),M=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,F=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function w(_,f,T){var p,E={},b=null,I=null;T!==void 0&&(b=""+T),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)m.call(f,p)&&!A.hasOwnProperty(p)&&(E[p]=f[p]);if(_&&_.defaultProps)for(p in f=_.defaultProps,f)E[p]===void 0&&(E[p]=f[p]);return{$$typeof:C,type:_,key:b,ref:I,props:E,_owner:F.current}}return k.Fragment=M,k.jsx=w,k.jsxs=w,k}var D={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Oe;function fr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var V=Se,C=Symbol.for("react.element"),M=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),H=Symbol.iterator,Pe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var r=H&&e[H]||e[Pe];return typeof r=="function"?r:null}var O=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];we("error",e,t)}}function we(e,r,t){{var n=O.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var je=!1,xe=!1,ke=!1,De=!1,Fe=!1,Z;Z=Symbol.for("react.module.reference");function Ae(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===A||Fe||e===F||e===T||e===p||De||e===I||je||xe||ke||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===E||e.$$typeof===w||e.$$typeof===_||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function Ie(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case M:return"Portal";case A:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return Q(r)+".Consumer";case w:var t=e;return Q(t._context)+".Provider";case f:return Ie(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case b:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var R=Object.assign,j=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function $e(){{if(j===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function We(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:ee}),info:R({},e,{value:re}),warn:R({},e,{value:te}),error:R({},e,{value:ne}),group:R({},e,{value:ae}),groupCollapsed:R({},e,{value:ie}),groupEnd:R({},e,{value:oe})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function $(e,r,t){{if(N===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
18
- `+N+e}}var B=!1,W;{var Ye=typeof WeakMap=="function"?WeakMap:Map;W=new Ye}function se(e,r){if(!e||B)return"";{var t=W.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,$e();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(d){n=d}Reflect.construct(e,[],i)}else{try{i.call()}catch(d){n=d}e.call(i.prototype)}}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
19
- `),v=n.stack.split(`
20
- `),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var g=`
21
- `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,g),g}while(s>=1&&l>=0);break}}}finally{B=!1,U.current=u,We(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",h=P?$(P):"";return typeof e=="function"&&W.set(e,h),h}function Le(e,r,t){return se(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Y(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case T:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case E:return Y(e.type,r,t);case b:{var n=e,o=n._payload,u=n._init;try{return Y(u(o),r,t)}catch{}}}return""}var x=Object.prototype.hasOwnProperty,le={},fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}function Me(e,r,t,n,o){{var u=Function.call.bind(x);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in le)&&(le[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ue=Array.isArray;function J(e){return Ue(e)}function Ne(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Be(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Be(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ne(e)),ce(e)}var de=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},pe,ge;function qe(e){if(x.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){typeof e.ref=="string"&&de.current}function ze(e,r){{var t=function(){pe||(pe=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Xe(e,r){{var t=function(){ge||(ge=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var He=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Ze(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Ke(r)&&(ve(r.key),a=""+r.key),qe(r)&&(v=r.ref,Ge(r,o));for(u in r)x.call(r,u)&&!Je.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(i,l),v&&Xe(i,l)}return He(e,a,v,o,n,de.current,i)}}var q=O.ReactCurrentOwner,Ee=O.ReactDebugCurrentFrame;function S(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var K;K=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function ye(){{if(q.current){var e=y(q.current.type);if(e)return`
22
-
23
- Check the render method of \``+e+"`."}return""}}function Qe(e){return""}var _e={};function er(e){{var r=ye();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
-
25
- Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=er(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),S(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),S(null)}}function Re(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&be(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var o=Ce(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)G(i.value)&&be(i.value,r)}}}function rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=y(r);Me(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=y(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){S(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),S(null);break}}e.ref!==null&&(S(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),S(null))}}var he={};function me(e,r,t,n,o,u){{var i=Ae(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Qe();v?a+=v:a+=ye();var s;e===null?s="null":J(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Ze(e,r,t,o,u);if(l==null)return l;if(i){var g=r.children;if(g!==void 0)if(n)if(J(g)){for(var P=0;P<g.length;P++)Re(g[P],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Re(g,e)}if(x.call(r,"key")){var h=y(e),d=Object.keys(r).filter(function(sr){return sr!=="key"}),z=d.length>0?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}";if(!he[h+z]){var ur=d.length>0?"{"+d.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,z,h,ur,h),he[h+z]=!0}}return e===m?tr(l):rr(l),l}}function nr(e,r,t){return me(e,r,t,!0)}function ar(e,r,t){return me(e,r,t,!1)}var ir=ar,or=nr;D.Fragment=m,D.jsx=ir,D.jsxs=or}()),D}process.env.NODE_ENV==="production"?X.exports=lr():X.exports=fr();var cr=X.exports;exports.jsxRuntimeExports=cr;