@espresso-lab/mantine-data-table 1.9.0 → 1.9.1
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/dist/index.es.js +153 -153
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -34,12 +34,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var pl;function Rh(){return pl||(pl=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===he?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case B:return"Fragment";case se:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case de:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case $:return"Portal";case ae:return(h.displayName||"Context")+".Provider";case le:return(h._context.displayName||"Context")+".Consumer";case ce:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case J:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case V:m=h._payload,h=h._init;try{return i(h(m))}catch{}}return null}function n(h){return""+h}function r(h){try{n(h);var m=!1}catch{m=!0}if(m){m=console;var C=m.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return C.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),n(h)}}function s(h){if(h===B)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===V)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var h=re.A;return h===null?null:h.getOwner()}function p(){return Error("react-stack-top-frame")}function g(h){if(
|
|
37
|
+
*/var pl;function Rh(){return pl||(pl=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===he?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case B:return"Fragment";case se:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case de:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case $:return"Portal";case ae:return(h.displayName||"Context")+".Provider";case le:return(h._context.displayName||"Context")+".Consumer";case ce:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case J:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case V:m=h._payload,h=h._init;try{return i(h(m))}catch{}}return null}function n(h){return""+h}function r(h){try{n(h);var m=!1}catch{m=!0}if(m){m=console;var C=m.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return C.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),n(h)}}function s(h){if(h===B)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===V)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var h=re.A;return h===null?null:h.getOwner()}function p(){return Error("react-stack-top-frame")}function g(h){if(De.call(h,"key")){var m=Object.getOwnPropertyDescriptor(h,"key").get;if(m&&m.isReactWarning)return!1}return h.key!==void 0}function d(h,m){function C(){P||(P=!0,console.error("%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://react.dev/link/special-props)",m))}C.isReactWarning=!0,Object.defineProperty(h,"key",{get:C,configurable:!0})}function S(){var h=i(this.type);return D[h]||(D[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function A(h,m,C,T,G,oe,ue,we){return C=oe.ref,h={$$typeof:L,type:h,key:m,props:oe,_owner:G},(C!==void 0?C:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:S}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function E(h,m,C,T,G,oe,ue,we){var X=m.children;if(X!==void 0)if(T)if(Oe(X)){for(T=0;T<X.length;T++)N(X[T]);Object.freeze&&Object.freeze(X)}else console.error("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 N(X);if(De.call(m,"key")){X=i(h);var be=Object.keys(m).filter(function(ve){return ve!=="key"});T=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[X+T]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
38
38
|
let props = %s;
|
|
39
39
|
<%s {...props} />
|
|
40
40
|
React keys must be passed directly to JSX without using spread:
|
|
41
41
|
let props = %s;
|
|
42
|
-
<%s key={someKey} {...props} />`,T,X,be,X),w[X+T]=!0)}if(X=null,C!==void 0&&(r(C),X=""+C),g(m)&&(r(m.key),X=""+m.key),"key"in m){C={};for(var _e in m)_e!=="key"&&(C[_e]=m[_e])}else C=m;return X&&d(C,typeof h=="function"?h.displayName||h.name||"Unknown":h),A(h,X,oe,G,u(),C,ue,we)}function N(h){typeof h=="object"&&h!==null&&h.$$typeof===L&&h._store&&(h._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
42
|
+
<%s key={someKey} {...props} />`,T,X,be,X),w[X+T]=!0)}if(X=null,C!==void 0&&(r(C),X=""+C),g(m)&&(r(m.key),X=""+m.key),"key"in m){C={};for(var _e in m)_e!=="key"&&(C[_e]=m[_e])}else C=m;return X&&d(C,typeof h=="function"?h.displayName||h.name||"Unknown":h),A(h,X,oe,G,u(),C,ue,we)}function N(h){typeof h=="object"&&h!==null&&h.$$typeof===L&&h._store&&(h._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,I=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(h){return h()}};var P,D={},v=R.react_stack_bottom_frame.bind(R,p)(),f=I(s(p)),w={};ii.Fragment=B,ii.jsx=function(h,m,C,T,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,C,!1,T,G,oe?Error("react-stack-top-frame"):v,oe?I(s(h)):f)},ii.jsxs=function(h,m,C,T,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,C,!0,T,G,oe?Error("react-stack-top-frame"):v,oe?I(s(h)):f)}}()),ii}var gl;function kh(){return gl||(gl=1,process.env.NODE_ENV==="production"?Fi.exports=Mh():Fi.exports=Rh()),Fi.exports}var O=kh(),vl=Ct.createContext(void 0),ml=i=>{const n=Ct.useContext(vl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},yl=({client:i,children:n})=>(Ct.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),O.jsx(vl.Provider,{value:i,children:n})),_l=Ct.createContext(!1),Lh=()=>Ct.useContext(_l);_l.Provider;function Nh(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Ih=Ct.createContext(Nh()),$h=()=>Ct.useContext(Ih),Bh=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},jh=i=>{Ct.useEffect(()=>{i.clearReset()},[i])},Yh=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:u})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(u&&i.data===void 0||ul(r,[i.error,s])),Fh=i=>{if(i.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=i.staleTime;i.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},Wh=(i,n)=>i.isLoading&&i.isFetching&&!n,Uh=(i,n)=>i?.suspense&&n.isPending,wl=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function zh(i,n,r){if(process.env.NODE_ENV!=="production"&&(typeof i!="object"||Array.isArray(i)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const s=Lh(),u=$h(),p=ml(),g=p.defaultQueryOptions(i);p.getDefaultOptions().queries?._experimental_beforeQuery?.(g),process.env.NODE_ENV!=="production"&&(g.queryFn||console.error(`[${g.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),g._optimisticResults=s?"isRestoring":"optimistic",Fh(g),Bh(g,u),jh(u);const d=!p.getQueryCache().get(g.queryHash),[S]=Ct.useState(()=>new n(p,g)),A=S.getOptimisticResult(g),E=!s&&i.subscribed!==!1;if(Ct.useSyncExternalStore(Ct.useCallback(N=>{const R=E?S.subscribe(Yi.batchCalls(N)):Bi;return S.updateResult(),R},[S,E]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),Ct.useEffect(()=>{S.setOptions(g)},[g,S]),Uh(g,A))throw wl(g,S,u);if(Yh({result:A,errorResetBoundary:u,throwOnError:g.throwOnError,query:p.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw A.error;return p.getDefaultOptions().queries?._experimental_afterQuery?.(g,A),g.experimental_prefetchInRender&&!ti&&Wh(A,s)&&(d?wl(g,S,u):p.getQueryCache().get(g.queryHash)?.promise)?.catch(Bi).finally(()=>{S.updateResult()}),g.notifyOnChangeProps?A:S.trackResult(A)}function bl(i,n){return zh(i,Oh)}function ls(i,n){const r=ml(),[s]=Ct.useState(()=>new Ph(r,i));Ct.useEffect(()=>{s.setOptions(i)},[s,i]);const u=Ct.useSyncExternalStore(Ct.useCallback(g=>s.subscribe(Yi.batchCalls(g)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),p=Ct.useCallback((g,d)=>{s.mutate(g,d).catch(Bi)},[s]);if(u.error&&ul(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:p,mutateAsync:u.mutate}}var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function us(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var u=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,u.get?u:{enumerable:!0,get:function(){return i[s]}})}),r}var cs={exports:{}},oi={};/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-runtime.production.js
|
|
45
45
|
*
|
|
@@ -55,12 +55,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var Sl;function Hh(){return Sl||(Sl=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===he?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case B:return"Fragment";case se:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case de:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case $:return"Portal";case ae:return(h.displayName||"Context")+".Provider";case le:return(h._context.displayName||"Context")+".Consumer";case ce:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case J:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case V:m=h._payload,h=h._init;try{return i(h(m))}catch{}}return null}function n(h){return""+h}function r(h){try{n(h);var m=!1}catch{m=!0}if(m){m=console;var C=m.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return C.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),n(h)}}function s(h){if(h===B)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===V)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var h=re.A;return h===null?null:h.getOwner()}function p(){return Error("react-stack-top-frame")}function g(h){if(
|
|
58
|
+
*/var Sl;function Hh(){return Sl||(Sl=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===he?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case B:return"Fragment";case se:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case de:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case $:return"Portal";case ae:return(h.displayName||"Context")+".Provider";case le:return(h._context.displayName||"Context")+".Consumer";case ce:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case J:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case V:m=h._payload,h=h._init;try{return i(h(m))}catch{}}return null}function n(h){return""+h}function r(h){try{n(h);var m=!1}catch{m=!0}if(m){m=console;var C=m.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return C.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),n(h)}}function s(h){if(h===B)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===V)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var h=re.A;return h===null?null:h.getOwner()}function p(){return Error("react-stack-top-frame")}function g(h){if(De.call(h,"key")){var m=Object.getOwnPropertyDescriptor(h,"key").get;if(m&&m.isReactWarning)return!1}return h.key!==void 0}function d(h,m){function C(){P||(P=!0,console.error("%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://react.dev/link/special-props)",m))}C.isReactWarning=!0,Object.defineProperty(h,"key",{get:C,configurable:!0})}function S(){var h=i(this.type);return D[h]||(D[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function A(h,m,C,T,G,oe,ue,we){return C=oe.ref,h={$$typeof:L,type:h,key:m,props:oe,_owner:G},(C!==void 0?C:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:S}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function E(h,m,C,T,G,oe,ue,we){var X=m.children;if(X!==void 0)if(T)if(Oe(X)){for(T=0;T<X.length;T++)N(X[T]);Object.freeze&&Object.freeze(X)}else console.error("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 N(X);if(De.call(m,"key")){X=i(h);var be=Object.keys(m).filter(function(ve){return ve!=="key"});T=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[X+T]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
59
59
|
let props = %s;
|
|
60
60
|
<%s {...props} />
|
|
61
61
|
React keys must be passed directly to JSX without using spread:
|
|
62
62
|
let props = %s;
|
|
63
|
-
<%s key={someKey} {...props} />`,T,X,be,X),w[X+T]=!0)}if(X=null,C!==void 0&&(r(C),X=""+C),g(m)&&(r(m.key),X=""+m.key),"key"in m){C={};for(var _e in m)_e!=="key"&&(C[_e]=m[_e])}else C=m;return X&&d(C,typeof h=="function"?h.displayName||h.name||"Unknown":h),A(h,X,oe,G,u(),C,ue,we)}function N(h){typeof h=="object"&&h!==null&&h.$$typeof===L&&h._store&&(h._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
63
|
+
<%s key={someKey} {...props} />`,T,X,be,X),w[X+T]=!0)}if(X=null,C!==void 0&&(r(C),X=""+C),g(m)&&(r(m.key),X=""+m.key),"key"in m){C={};for(var _e in m)_e!=="key"&&(C[_e]=m[_e])}else C=m;return X&&d(C,typeof h=="function"?h.displayName||h.name||"Unknown":h),A(h,X,oe,G,u(),C,ue,we)}function N(h){typeof h=="object"&&h!==null&&h.$$typeof===L&&h._store&&(h._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,I=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(h){return h()}};var P,D={},v=R.react_stack_bottom_frame.bind(R,p)(),f=I(s(p)),w={};Wi.Fragment=B,Wi.jsx=function(h,m,C,T,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,C,!1,T,G,oe?Error("react-stack-top-frame"):v,oe?I(s(h)):f)},Wi.jsxs=function(h,m,C,T,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,C,!0,T,G,oe?Error("react-stack-top-frame"):v,oe?I(s(h)):f)}}()),Wi}var Al;function Gh(){return Al||(Al=1,process.env.NODE_ENV==="production"?cs.exports=qh():cs.exports=Hh()),cs.exports}Gh();var fs={exports:{}},hs={};/**
|
|
64
64
|
* @license React
|
|
65
65
|
* react-compiler-runtime.production.js
|
|
66
66
|
*
|
|
@@ -88,7 +88,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
88
88
|
*
|
|
89
89
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
90
90
|
* @license MIT
|
|
91
|
-
*/var Ll;function ed(){return Ll||(Ll=1,function(i){var n=Qh(),r=Jh(),s=Xh();i.Buffer=d,i.SlowBuffer=se,i.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:u(),i.kMaxLength=p();function u(){try{var l=new Uint8Array(1);return l.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},l.foo()===42&&typeof l.subarray=="function"&&l.subarray(1,1).byteLength===0}catch{return!1}}function p(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(l,c){if(p()<c)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(c),l.__proto__=d.prototype):(l===null&&(l=new d(c)),l.length=c),l}function d(l,c,_){if(!d.TYPED_ARRAY_SUPPORT&&!(this instanceof d))return new d(l,c,_);if(typeof l=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return N(this,l)}return S(this,l,c,_)}d.poolSize=8192,d._augment=function(l){return l.__proto__=d.prototype,l};function S(l,c,_,k){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?$(l,c,_,k):typeof c=="string"?R(l,c,_):B(l,c)}d.from=function(l,c,_){return S(null,l,c,_)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0}));function A(l){if(typeof l!="number")throw new TypeError('"size" argument must be a number');if(l<0)throw new RangeError('"size" argument must not be negative')}function E(l,c,_,k){return A(c),c<=0?g(l,c):_!==void 0?typeof k=="string"?g(l,c).fill(_,k):g(l,c).fill(_):g(l,c)}d.alloc=function(l,c,_){return E(null,l,c,_)};function N(l,c){if(A(c),l=g(l,c<0?0:H(c)|0),!d.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)l[_]=0;return l}d.allocUnsafe=function(l){return N(null,l)},d.allocUnsafeSlow=function(l){return N(null,l)};function R(l,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!d.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var k=le(c,_)|0;l=g(l,k);var U=l.write(c,_);return U!==k&&(l=l.slice(0,U)),l}function L(l,c){var _=c.length<0?0:H(c.length)|0;l=g(l,_);for(var k=0;k<_;k+=1)l[k]=c[k]&255;return l}function $(l,c,_,k){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(k||0))throw new RangeError("'length' is out of bounds");return _===void 0&&k===void 0?c=new Uint8Array(c):k===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,k),d.TYPED_ARRAY_SUPPORT?(l=c,l.__proto__=d.prototype):l=L(l,c),l}function B(l,c){if(d.isBuffer(c)){var _=H(c.length)|0;return l=g(l,_),l.length===0||c.copy(l,0,0,_),l}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?g(l,0):L(l,c);if(c.type==="Buffer"&&s(c.data))return L(l,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(l){if(l>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return l|0}function se(l){return+l!=l&&(l=0),d.alloc(+l)}d.isBuffer=function(l){return!!(l!=null&&l._isBuffer)},d.compare=function(l,c){if(!d.isBuffer(l)||!d.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(l===c)return 0;for(var _=l.length,k=c.length,U=0,te=Math.min(_,k);U<te;++U)if(l[U]!==c[U]){_=l[U],k=c[U];break}return _<k?-1:k<_?1:0},d.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(l,c){if(!s(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return d.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<l.length;++_)c+=l[_].length;var k=d.allocUnsafe(c),U=0;for(_=0;_<l.length;++_){var te=l[_];if(!d.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(k,U),U+=te.length}return k};function le(l,c){if(d.isBuffer(l))return l.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(l)||l instanceof ArrayBuffer))return l.byteLength;typeof l!="string"&&(l=""+l);var _=l.length;if(_===0)return 0;for(var k=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return j(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return K(l).length;default:if(k)return j(l).length;c=(""+c).toLowerCase(),k=!0}}d.byteLength=le;function ae(l,c,_){var k=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,c>>>=0,_<=c))return"";for(l||(l="utf8");;)switch(l){case"hex":return w(this,c,_);case"utf8":case"utf-8":return I(this,c,_);case"ascii":return v(this,c,_);case"latin1":case"binary":return f(this,c,_);case"base64":return Oe(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,c,_);default:if(k)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),k=!0}}d.prototype._isBuffer=!0;function ce(l,c,_){var k=l[c];l[c]=l[_],l[_]=k}d.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<l;c+=2)ce(this,c,c+1);return this},d.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<l;c+=4)ce(this,c,c+3),ce(this,c+1,c+2);return this},d.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<l;c+=8)ce(this,c,c+7),ce(this,c+1,c+6),ce(this,c+2,c+5),ce(this,c+3,c+4);return this},d.prototype.toString=function(){var l=this.length|0;return l===0?"":arguments.length===0?I(this,0,l):ae.apply(this,arguments)},d.prototype.equals=function(l){if(!d.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:d.compare(this,l)===0},d.prototype.inspect=function(){var l="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(l=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(l+=" ... ")),"<Buffer "+l+">"},d.prototype.compare=function(l,c,_,k,U){if(!d.isBuffer(l))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=l?l.length:0),k===void 0&&(k=0),U===void 0&&(U=this.length),c<0||_>l.length||k<0||U>this.length)throw new RangeError("out of range index");if(k>=U&&c>=_)return 0;if(k>=U)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,k>>>=0,U>>>=0,this===l)return 0;for(var te=U-k,De=_-c,Ce=Math.min(te,De),Pe=this.slice(k,U),me=l.slice(c,_),Re=0;Re<Ce;++Re)if(Pe[Re]!==me[Re]){te=Pe[Re],De=me[Re];break}return te<De?-1:De<te?1:0};function Q(l,c,_,k,U){if(l.length===0)return-1;if(typeof _=="string"?(k=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=U?0:l.length-1),_<0&&(_=l.length+_),_>=l.length){if(U)return-1;_=l.length-1}else if(_<0)if(U)_=0;else return-1;if(typeof c=="string"&&(c=d.from(c,k)),d.isBuffer(c))return c.length===0?-1:ne(l,c,_,k,U);if(typeof c=="number")return c=c&255,d.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(l,c,_):Uint8Array.prototype.lastIndexOf.call(l,c,_):ne(l,[c],_,k,U);throw new TypeError("val must be string, number or Buffer")}function ne(l,c,_,k,U){var te=1,De=l.length,Ce=c.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(l.length<2||c.length<2)return-1;te=2,De/=2,Ce/=2,_/=2}function Pe(Xe,Qe){return te===1?Xe[Qe]:Xe.readUInt16BE(Qe*te)}var me;if(U){var Re=-1;for(me=_;me<De;me++)if(Pe(l,me)===Pe(c,Re===-1?0:me-Re)){if(Re===-1&&(Re=me),me-Re+1===Ce)return Re*te}else Re!==-1&&(me-=me-Re),Re=-1}else for(_+Ce>De&&(_=De-Ce),me=_;me>=0;me--){for(var Ie=!0,ke=0;ke<Ce;ke++)if(Pe(l,me+ke)!==Pe(c,ke)){Ie=!1;break}if(Ie)return me}return-1}d.prototype.includes=function(l,c,_){return this.indexOf(l,c,_)!==-1},d.prototype.indexOf=function(l,c,_){return Q(this,l,c,_,!0)},d.prototype.lastIndexOf=function(l,c,_){return Q(this,l,c,_,!1)};function J(l,c,_,k){_=Number(_)||0;var U=l.length-_;k?(k=Number(k),k>U&&(k=U)):k=U;var te=c.length;if(te%2!==0)throw new TypeError("Invalid hex string");k>te/2&&(k=te/2);for(var De=0;De<k;++De){var Ce=parseInt(c.substr(De*2,2),16);if(isNaN(Ce))return De;l[_+De]=Ce}return De}function V(l,c,_,k){return ee(j(c,l.length-_),l,_,k)}function de(l,c,_,k){return ee(Z(c),l,_,k)}function he(l,c,_,k){return de(l,c,_,k)}function re(l,c,_,k){return ee(K(c),l,_,k)}function Ae(l,c,_,k){return ee(W(c,l.length-_),l,_,k)}d.prototype.write=function(l,c,_,k){if(c===void 0)k="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")k=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,k===void 0&&(k="utf8")):(k=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-c;if((_===void 0||_>U)&&(_=U),l.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var te=!1;;)switch(k){case"hex":return J(this,l,c,_);case"utf8":case"utf-8":return V(this,l,c,_);case"ascii":return de(this,l,c,_);case"latin1":case"binary":return he(this,l,c,_);case"base64":return re(this,l,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,l,c,_);default:if(te)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),te=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(l,c,_){return c===0&&_===l.length?n.fromByteArray(l):n.fromByteArray(l.slice(c,_))}function I(l,c,_){_=Math.min(l.length,_);for(var k=[],U=c;U<_;){var te=l[U],De=null,Ce=te>239?4:te>223?3:te>191?2:1;if(U+Ce<=_){var Pe,me,Re,Ie;switch(Ce){case 1:te<128&&(De=te);break;case 2:Pe=l[U+1],(Pe&192)===128&&(Ie=(te&31)<<6|Pe&63,Ie>127&&(De=Ie));break;case 3:Pe=l[U+1],me=l[U+2],(Pe&192)===128&&(me&192)===128&&(Ie=(te&15)<<12|(Pe&63)<<6|me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(De=Ie));break;case 4:Pe=l[U+1],me=l[U+2],Re=l[U+3],(Pe&192)===128&&(me&192)===128&&(Re&192)===128&&(Ie=(te&15)<<18|(Pe&63)<<12|(me&63)<<6|Re&63,Ie>65535&&Ie<1114112&&(De=Ie))}}De===null?(De=65533,Ce=1):De>65535&&(De-=65536,k.push(De>>>10&1023|55296),De=56320|De&1023),k.push(De),U+=Ce}return D(k)}var P=4096;function D(l){var c=l.length;if(c<=P)return String.fromCharCode.apply(String,l);for(var _="",k=0;k<c;)_+=String.fromCharCode.apply(String,l.slice(k,k+=P));return _}function v(l,c,_){var k="";_=Math.min(l.length,_);for(var U=c;U<_;++U)k+=String.fromCharCode(l[U]&127);return k}function f(l,c,_){var k="";_=Math.min(l.length,_);for(var U=c;U<_;++U)k+=String.fromCharCode(l[U]);return k}function w(l,c,_){var k=l.length;(!c||c<0)&&(c=0),(!_||_<0||_>k)&&(_=k);for(var U="",te=c;te<_;++te)U+=ve(l[te]);return U}function h(l,c,_){for(var k=l.slice(c,_),U="",te=0;te<k.length;te+=2)U+=String.fromCharCode(k[te]+k[te+1]*256);return U}d.prototype.slice=function(l,c){var _=this.length;l=~~l,c=c===void 0?_:~~c,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<l&&(c=l);var k;if(d.TYPED_ARRAY_SUPPORT)k=this.subarray(l,c),k.__proto__=d.prototype;else{var U=c-l;k=new d(U,void 0);for(var te=0;te<U;++te)k[te]=this[te+l]}return k};function m(l,c,_){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+c>_)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=this[l],U=1,te=0;++te<c&&(U*=256);)k+=this[l+te]*U;return k},d.prototype.readUIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=this[l+--c],U=1;c>0&&(U*=256);)k+=this[l+--c]*U;return k},d.prototype.readUInt8=function(l,c){return c||m(l,1,this.length),this[l]},d.prototype.readUInt16LE=function(l,c){return c||m(l,2,this.length),this[l]|this[l+1]<<8},d.prototype.readUInt16BE=function(l,c){return c||m(l,2,this.length),this[l]<<8|this[l+1]},d.prototype.readUInt32LE=function(l,c){return c||m(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},d.prototype.readUInt32BE=function(l,c){return c||m(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},d.prototype.readIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=this[l],U=1,te=0;++te<c&&(U*=256);)k+=this[l+te]*U;return U*=128,k>=U&&(k-=Math.pow(2,8*c)),k},d.prototype.readIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=c,U=1,te=this[l+--k];k>0&&(U*=256);)te+=this[l+--k]*U;return U*=128,te>=U&&(te-=Math.pow(2,8*c)),te},d.prototype.readInt8=function(l,c){return c||m(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},d.prototype.readInt16LE=function(l,c){c||m(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},d.prototype.readInt16BE=function(l,c){c||m(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},d.prototype.readInt32LE=function(l,c){return c||m(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},d.prototype.readInt32BE=function(l,c){return c||m(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},d.prototype.readFloatLE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!0,23,4)},d.prototype.readFloatBE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!1,23,4)},d.prototype.readDoubleLE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!0,52,8)},d.prototype.readDoubleBE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!1,52,8)};function C(l,c,_,k,U,te){if(!d.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>U||c<te)throw new RangeError('"value" argument is out of bounds');if(_+k>l.length)throw new RangeError("Index out of range")}d.prototype.writeUIntLE=function(l,c,_,k){if(l=+l,c=c|0,_=_|0,!k){var U=Math.pow(2,8*_)-1;C(this,l,c,_,U,0)}var te=1,De=0;for(this[c]=l&255;++De<_&&(te*=256);)this[c+De]=l/te&255;return c+_},d.prototype.writeUIntBE=function(l,c,_,k){if(l=+l,c=c|0,_=_|0,!k){var U=Math.pow(2,8*_)-1;C(this,l,c,_,U,0)}var te=_-1,De=1;for(this[c+te]=l&255;--te>=0&&(De*=256);)this[c+te]=l/De&255;return c+_},d.prototype.writeUInt8=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,1,255,0),d.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[c]=l&255,c+1};function T(l,c,_,k){c<0&&(c=65535+c+1);for(var U=0,te=Math.min(l.length-_,2);U<te;++U)l[_+U]=(c&255<<8*(k?U:1-U))>>>(k?U:1-U)*8}d.prototype.writeUInt16LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):T(this,l,c,!0),c+2},d.prototype.writeUInt16BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):T(this,l,c,!1),c+2};function G(l,c,_,k){c<0&&(c=4294967295+c+1);for(var U=0,te=Math.min(l.length-_,4);U<te;++U)l[_+U]=c>>>(k?U:3-U)*8&255}d.prototype.writeUInt32LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255):G(this,l,c,!0),c+4},d.prototype.writeUInt32BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4},d.prototype.writeIntLE=function(l,c,_,k){if(l=+l,c=c|0,!k){var U=Math.pow(2,8*_-1);C(this,l,c,_,U-1,-U)}var te=0,De=1,Ce=0;for(this[c]=l&255;++te<_&&(De*=256);)l<0&&Ce===0&&this[c+te-1]!==0&&(Ce=1),this[c+te]=(l/De>>0)-Ce&255;return c+_},d.prototype.writeIntBE=function(l,c,_,k){if(l=+l,c=c|0,!k){var U=Math.pow(2,8*_-1);C(this,l,c,_,U-1,-U)}var te=_-1,De=1,Ce=0;for(this[c+te]=l&255;--te>=0&&(De*=256);)l<0&&Ce===0&&this[c+te+1]!==0&&(Ce=1),this[c+te]=(l/De>>0)-Ce&255;return c+_},d.prototype.writeInt8=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,1,127,-128),d.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[c]=l&255,c+1},d.prototype.writeInt16LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):T(this,l,c,!0),c+2},d.prototype.writeInt16BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):T(this,l,c,!1),c+2},d.prototype.writeInt32LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24):G(this,l,c,!0),c+4},d.prototype.writeInt32BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4};function oe(l,c,_,k,U,te){if(_+k>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ue(l,c,_,k,U){return U||oe(l,c,_,4),r.write(l,c,_,k,23,4),_+4}d.prototype.writeFloatLE=function(l,c,_){return ue(this,l,c,!0,_)},d.prototype.writeFloatBE=function(l,c,_){return ue(this,l,c,!1,_)};function we(l,c,_,k,U){return U||oe(l,c,_,8),r.write(l,c,_,k,52,8),_+8}d.prototype.writeDoubleLE=function(l,c,_){return we(this,l,c,!0,_)},d.prototype.writeDoubleBE=function(l,c,_){return we(this,l,c,!1,_)},d.prototype.copy=function(l,c,_,k){if(_||(_=0),!k&&k!==0&&(k=this.length),c>=l.length&&(c=l.length),c||(c=0),k>0&&k<_&&(k=_),k===_||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("sourceStart out of bounds");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),l.length-c<k-_&&(k=l.length-c+_);var U=k-_,te;if(this===l&&_<c&&c<k)for(te=U-1;te>=0;--te)l[te+c]=this[te+_];else if(U<1e3||!d.TYPED_ARRAY_SUPPORT)for(te=0;te<U;++te)l[te+c]=this[te+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+U),c);return U},d.prototype.fill=function(l,c,_,k){if(typeof l=="string"){if(typeof c=="string"?(k=c,c=0,_=this.length):typeof _=="string"&&(k=_,_=this.length),l.length===1){var U=l.charCodeAt(0);U<256&&(l=U)}if(k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!d.isEncoding(k))throw new TypeError("Unknown encoding: "+k)}else typeof l=="number"&&(l=l&255);if(c<0||this.length<c||this.length<_)throw new RangeError("Out of range index");if(_<=c)return this;c=c>>>0,_=_===void 0?this.length:_>>>0,l||(l=0);var te;if(typeof l=="number")for(te=c;te<_;++te)this[te]=l;else{var De=d.isBuffer(l)?l:j(new d(l,k).toString()),Ce=De.length;for(te=0;te<_-c;++te)this[te+c]=De[te%Ce]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function be(l){if(l=_e(l).replace(X,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function _e(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function ve(l){return l<16?"0"+l.toString(16):l.toString(16)}function j(l,c){c=c||1/0;for(var _,k=l.length,U=null,te=[],De=0;De<k;++De){if(_=l.charCodeAt(De),_>55295&&_<57344){if(!U){if(_>56319){(c-=3)>-1&&te.push(239,191,189);continue}else if(De+1===k){(c-=3)>-1&&te.push(239,191,189);continue}U=_;continue}if(_<56320){(c-=3)>-1&&te.push(239,191,189),U=_;continue}_=(U-55296<<10|_-56320)+65536}else U&&(c-=3)>-1&&te.push(239,191,189);if(U=null,_<128){if((c-=1)<0)break;te.push(_)}else if(_<2048){if((c-=2)<0)break;te.push(_>>6|192,_&63|128)}else if(_<65536){if((c-=3)<0)break;te.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((c-=4)<0)break;te.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return te}function Z(l){for(var c=[],_=0;_<l.length;++_)c.push(l.charCodeAt(_)&255);return c}function W(l,c){for(var _,k,U,te=[],De=0;De<l.length&&!((c-=2)<0);++De)_=l.charCodeAt(De),k=_>>8,U=_%256,te.push(U),te.push(k);return te}function K(l){return n.toByteArray(be(l))}function ee(l,c,_,k){for(var U=0;U<k&&!(U+_>=c.length||U>=l.length);++U)c[U+_]=l[U];return U}function Se(l){return l!==l}}(Pl)),Pl}ed();var vr;if(typeof window<"u"&&window.crypto&&(vr=window.crypto),!vr&&typeof window<"u"&&window.msCrypto&&(vr=window.msCrypto),!vr&&typeof global<"u"&&global.crypto&&(vr=global.crypto),!vr&&typeof require=="function")try{vr=require("crypto")}catch{}var Nl={};/*! *****************************************************************************
|
|
91
|
+
*/var Ll;function ed(){return Ll||(Ll=1,function(i){var n=Qh(),r=Jh(),s=Xh();i.Buffer=d,i.SlowBuffer=se,i.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:u(),i.kMaxLength=p();function u(){try{var l=new Uint8Array(1);return l.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},l.foo()===42&&typeof l.subarray=="function"&&l.subarray(1,1).byteLength===0}catch{return!1}}function p(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(l,c){if(p()<c)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(c),l.__proto__=d.prototype):(l===null&&(l=new d(c)),l.length=c),l}function d(l,c,_){if(!d.TYPED_ARRAY_SUPPORT&&!(this instanceof d))return new d(l,c,_);if(typeof l=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return N(this,l)}return S(this,l,c,_)}d.poolSize=8192,d._augment=function(l){return l.__proto__=d.prototype,l};function S(l,c,_,k){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?$(l,c,_,k):typeof c=="string"?R(l,c,_):B(l,c)}d.from=function(l,c,_){return S(null,l,c,_)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0}));function A(l){if(typeof l!="number")throw new TypeError('"size" argument must be a number');if(l<0)throw new RangeError('"size" argument must not be negative')}function E(l,c,_,k){return A(c),c<=0?g(l,c):_!==void 0?typeof k=="string"?g(l,c).fill(_,k):g(l,c).fill(_):g(l,c)}d.alloc=function(l,c,_){return E(null,l,c,_)};function N(l,c){if(A(c),l=g(l,c<0?0:H(c)|0),!d.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)l[_]=0;return l}d.allocUnsafe=function(l){return N(null,l)},d.allocUnsafeSlow=function(l){return N(null,l)};function R(l,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!d.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var k=le(c,_)|0;l=g(l,k);var U=l.write(c,_);return U!==k&&(l=l.slice(0,U)),l}function L(l,c){var _=c.length<0?0:H(c.length)|0;l=g(l,_);for(var k=0;k<_;k+=1)l[k]=c[k]&255;return l}function $(l,c,_,k){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(k||0))throw new RangeError("'length' is out of bounds");return _===void 0&&k===void 0?c=new Uint8Array(c):k===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,k),d.TYPED_ARRAY_SUPPORT?(l=c,l.__proto__=d.prototype):l=L(l,c),l}function B(l,c){if(d.isBuffer(c)){var _=H(c.length)|0;return l=g(l,_),l.length===0||c.copy(l,0,0,_),l}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?g(l,0):L(l,c);if(c.type==="Buffer"&&s(c.data))return L(l,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(l){if(l>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return l|0}function se(l){return+l!=l&&(l=0),d.alloc(+l)}d.isBuffer=function(l){return!!(l!=null&&l._isBuffer)},d.compare=function(l,c){if(!d.isBuffer(l)||!d.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(l===c)return 0;for(var _=l.length,k=c.length,U=0,te=Math.min(_,k);U<te;++U)if(l[U]!==c[U]){_=l[U],k=c[U];break}return _<k?-1:k<_?1:0},d.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(l,c){if(!s(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return d.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<l.length;++_)c+=l[_].length;var k=d.allocUnsafe(c),U=0;for(_=0;_<l.length;++_){var te=l[_];if(!d.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(k,U),U+=te.length}return k};function le(l,c){if(d.isBuffer(l))return l.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(l)||l instanceof ArrayBuffer))return l.byteLength;typeof l!="string"&&(l=""+l);var _=l.length;if(_===0)return 0;for(var k=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return j(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return K(l).length;default:if(k)return j(l).length;c=(""+c).toLowerCase(),k=!0}}d.byteLength=le;function ae(l,c,_){var k=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,c>>>=0,_<=c))return"";for(l||(l="utf8");;)switch(l){case"hex":return w(this,c,_);case"utf8":case"utf-8":return I(this,c,_);case"ascii":return v(this,c,_);case"latin1":case"binary":return f(this,c,_);case"base64":return Oe(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,c,_);default:if(k)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),k=!0}}d.prototype._isBuffer=!0;function ce(l,c,_){var k=l[c];l[c]=l[_],l[_]=k}d.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<l;c+=2)ce(this,c,c+1);return this},d.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<l;c+=4)ce(this,c,c+3),ce(this,c+1,c+2);return this},d.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<l;c+=8)ce(this,c,c+7),ce(this,c+1,c+6),ce(this,c+2,c+5),ce(this,c+3,c+4);return this},d.prototype.toString=function(){var l=this.length|0;return l===0?"":arguments.length===0?I(this,0,l):ae.apply(this,arguments)},d.prototype.equals=function(l){if(!d.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:d.compare(this,l)===0},d.prototype.inspect=function(){var l="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(l=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(l+=" ... ")),"<Buffer "+l+">"},d.prototype.compare=function(l,c,_,k,U){if(!d.isBuffer(l))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=l?l.length:0),k===void 0&&(k=0),U===void 0&&(U=this.length),c<0||_>l.length||k<0||U>this.length)throw new RangeError("out of range index");if(k>=U&&c>=_)return 0;if(k>=U)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,k>>>=0,U>>>=0,this===l)return 0;for(var te=U-k,Ae=_-c,Ce=Math.min(te,Ae),Pe=this.slice(k,U),me=l.slice(c,_),Re=0;Re<Ce;++Re)if(Pe[Re]!==me[Re]){te=Pe[Re],Ae=me[Re];break}return te<Ae?-1:Ae<te?1:0};function Q(l,c,_,k,U){if(l.length===0)return-1;if(typeof _=="string"?(k=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=U?0:l.length-1),_<0&&(_=l.length+_),_>=l.length){if(U)return-1;_=l.length-1}else if(_<0)if(U)_=0;else return-1;if(typeof c=="string"&&(c=d.from(c,k)),d.isBuffer(c))return c.length===0?-1:ne(l,c,_,k,U);if(typeof c=="number")return c=c&255,d.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(l,c,_):Uint8Array.prototype.lastIndexOf.call(l,c,_):ne(l,[c],_,k,U);throw new TypeError("val must be string, number or Buffer")}function ne(l,c,_,k,U){var te=1,Ae=l.length,Ce=c.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(l.length<2||c.length<2)return-1;te=2,Ae/=2,Ce/=2,_/=2}function Pe(Xe,Qe){return te===1?Xe[Qe]:Xe.readUInt16BE(Qe*te)}var me;if(U){var Re=-1;for(me=_;me<Ae;me++)if(Pe(l,me)===Pe(c,Re===-1?0:me-Re)){if(Re===-1&&(Re=me),me-Re+1===Ce)return Re*te}else Re!==-1&&(me-=me-Re),Re=-1}else for(_+Ce>Ae&&(_=Ae-Ce),me=_;me>=0;me--){for(var Ie=!0,ke=0;ke<Ce;ke++)if(Pe(l,me+ke)!==Pe(c,ke)){Ie=!1;break}if(Ie)return me}return-1}d.prototype.includes=function(l,c,_){return this.indexOf(l,c,_)!==-1},d.prototype.indexOf=function(l,c,_){return Q(this,l,c,_,!0)},d.prototype.lastIndexOf=function(l,c,_){return Q(this,l,c,_,!1)};function J(l,c,_,k){_=Number(_)||0;var U=l.length-_;k?(k=Number(k),k>U&&(k=U)):k=U;var te=c.length;if(te%2!==0)throw new TypeError("Invalid hex string");k>te/2&&(k=te/2);for(var Ae=0;Ae<k;++Ae){var Ce=parseInt(c.substr(Ae*2,2),16);if(isNaN(Ce))return Ae;l[_+Ae]=Ce}return Ae}function V(l,c,_,k){return ee(j(c,l.length-_),l,_,k)}function de(l,c,_,k){return ee(Z(c),l,_,k)}function he(l,c,_,k){return de(l,c,_,k)}function re(l,c,_,k){return ee(K(c),l,_,k)}function De(l,c,_,k){return ee(W(c,l.length-_),l,_,k)}d.prototype.write=function(l,c,_,k){if(c===void 0)k="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")k=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,k===void 0&&(k="utf8")):(k=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-c;if((_===void 0||_>U)&&(_=U),l.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var te=!1;;)switch(k){case"hex":return J(this,l,c,_);case"utf8":case"utf-8":return V(this,l,c,_);case"ascii":return de(this,l,c,_);case"latin1":case"binary":return he(this,l,c,_);case"base64":return re(this,l,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,l,c,_);default:if(te)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),te=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(l,c,_){return c===0&&_===l.length?n.fromByteArray(l):n.fromByteArray(l.slice(c,_))}function I(l,c,_){_=Math.min(l.length,_);for(var k=[],U=c;U<_;){var te=l[U],Ae=null,Ce=te>239?4:te>223?3:te>191?2:1;if(U+Ce<=_){var Pe,me,Re,Ie;switch(Ce){case 1:te<128&&(Ae=te);break;case 2:Pe=l[U+1],(Pe&192)===128&&(Ie=(te&31)<<6|Pe&63,Ie>127&&(Ae=Ie));break;case 3:Pe=l[U+1],me=l[U+2],(Pe&192)===128&&(me&192)===128&&(Ie=(te&15)<<12|(Pe&63)<<6|me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(Ae=Ie));break;case 4:Pe=l[U+1],me=l[U+2],Re=l[U+3],(Pe&192)===128&&(me&192)===128&&(Re&192)===128&&(Ie=(te&15)<<18|(Pe&63)<<12|(me&63)<<6|Re&63,Ie>65535&&Ie<1114112&&(Ae=Ie))}}Ae===null?(Ae=65533,Ce=1):Ae>65535&&(Ae-=65536,k.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),k.push(Ae),U+=Ce}return D(k)}var P=4096;function D(l){var c=l.length;if(c<=P)return String.fromCharCode.apply(String,l);for(var _="",k=0;k<c;)_+=String.fromCharCode.apply(String,l.slice(k,k+=P));return _}function v(l,c,_){var k="";_=Math.min(l.length,_);for(var U=c;U<_;++U)k+=String.fromCharCode(l[U]&127);return k}function f(l,c,_){var k="";_=Math.min(l.length,_);for(var U=c;U<_;++U)k+=String.fromCharCode(l[U]);return k}function w(l,c,_){var k=l.length;(!c||c<0)&&(c=0),(!_||_<0||_>k)&&(_=k);for(var U="",te=c;te<_;++te)U+=ve(l[te]);return U}function h(l,c,_){for(var k=l.slice(c,_),U="",te=0;te<k.length;te+=2)U+=String.fromCharCode(k[te]+k[te+1]*256);return U}d.prototype.slice=function(l,c){var _=this.length;l=~~l,c=c===void 0?_:~~c,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<l&&(c=l);var k;if(d.TYPED_ARRAY_SUPPORT)k=this.subarray(l,c),k.__proto__=d.prototype;else{var U=c-l;k=new d(U,void 0);for(var te=0;te<U;++te)k[te]=this[te+l]}return k};function m(l,c,_){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+c>_)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=this[l],U=1,te=0;++te<c&&(U*=256);)k+=this[l+te]*U;return k},d.prototype.readUIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=this[l+--c],U=1;c>0&&(U*=256);)k+=this[l+--c]*U;return k},d.prototype.readUInt8=function(l,c){return c||m(l,1,this.length),this[l]},d.prototype.readUInt16LE=function(l,c){return c||m(l,2,this.length),this[l]|this[l+1]<<8},d.prototype.readUInt16BE=function(l,c){return c||m(l,2,this.length),this[l]<<8|this[l+1]},d.prototype.readUInt32LE=function(l,c){return c||m(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},d.prototype.readUInt32BE=function(l,c){return c||m(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},d.prototype.readIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=this[l],U=1,te=0;++te<c&&(U*=256);)k+=this[l+te]*U;return U*=128,k>=U&&(k-=Math.pow(2,8*c)),k},d.prototype.readIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var k=c,U=1,te=this[l+--k];k>0&&(U*=256);)te+=this[l+--k]*U;return U*=128,te>=U&&(te-=Math.pow(2,8*c)),te},d.prototype.readInt8=function(l,c){return c||m(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},d.prototype.readInt16LE=function(l,c){c||m(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},d.prototype.readInt16BE=function(l,c){c||m(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},d.prototype.readInt32LE=function(l,c){return c||m(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},d.prototype.readInt32BE=function(l,c){return c||m(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},d.prototype.readFloatLE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!0,23,4)},d.prototype.readFloatBE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!1,23,4)},d.prototype.readDoubleLE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!0,52,8)},d.prototype.readDoubleBE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!1,52,8)};function C(l,c,_,k,U,te){if(!d.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>U||c<te)throw new RangeError('"value" argument is out of bounds');if(_+k>l.length)throw new RangeError("Index out of range")}d.prototype.writeUIntLE=function(l,c,_,k){if(l=+l,c=c|0,_=_|0,!k){var U=Math.pow(2,8*_)-1;C(this,l,c,_,U,0)}var te=1,Ae=0;for(this[c]=l&255;++Ae<_&&(te*=256);)this[c+Ae]=l/te&255;return c+_},d.prototype.writeUIntBE=function(l,c,_,k){if(l=+l,c=c|0,_=_|0,!k){var U=Math.pow(2,8*_)-1;C(this,l,c,_,U,0)}var te=_-1,Ae=1;for(this[c+te]=l&255;--te>=0&&(Ae*=256);)this[c+te]=l/Ae&255;return c+_},d.prototype.writeUInt8=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,1,255,0),d.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[c]=l&255,c+1};function T(l,c,_,k){c<0&&(c=65535+c+1);for(var U=0,te=Math.min(l.length-_,2);U<te;++U)l[_+U]=(c&255<<8*(k?U:1-U))>>>(k?U:1-U)*8}d.prototype.writeUInt16LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):T(this,l,c,!0),c+2},d.prototype.writeUInt16BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):T(this,l,c,!1),c+2};function G(l,c,_,k){c<0&&(c=4294967295+c+1);for(var U=0,te=Math.min(l.length-_,4);U<te;++U)l[_+U]=c>>>(k?U:3-U)*8&255}d.prototype.writeUInt32LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255):G(this,l,c,!0),c+4},d.prototype.writeUInt32BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4},d.prototype.writeIntLE=function(l,c,_,k){if(l=+l,c=c|0,!k){var U=Math.pow(2,8*_-1);C(this,l,c,_,U-1,-U)}var te=0,Ae=1,Ce=0;for(this[c]=l&255;++te<_&&(Ae*=256);)l<0&&Ce===0&&this[c+te-1]!==0&&(Ce=1),this[c+te]=(l/Ae>>0)-Ce&255;return c+_},d.prototype.writeIntBE=function(l,c,_,k){if(l=+l,c=c|0,!k){var U=Math.pow(2,8*_-1);C(this,l,c,_,U-1,-U)}var te=_-1,Ae=1,Ce=0;for(this[c+te]=l&255;--te>=0&&(Ae*=256);)l<0&&Ce===0&&this[c+te+1]!==0&&(Ce=1),this[c+te]=(l/Ae>>0)-Ce&255;return c+_},d.prototype.writeInt8=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,1,127,-128),d.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[c]=l&255,c+1},d.prototype.writeInt16LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):T(this,l,c,!0),c+2},d.prototype.writeInt16BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):T(this,l,c,!1),c+2},d.prototype.writeInt32LE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24):G(this,l,c,!0),c+4},d.prototype.writeInt32BE=function(l,c,_){return l=+l,c=c|0,_||C(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),d.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4};function oe(l,c,_,k,U,te){if(_+k>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ue(l,c,_,k,U){return U||oe(l,c,_,4),r.write(l,c,_,k,23,4),_+4}d.prototype.writeFloatLE=function(l,c,_){return ue(this,l,c,!0,_)},d.prototype.writeFloatBE=function(l,c,_){return ue(this,l,c,!1,_)};function we(l,c,_,k,U){return U||oe(l,c,_,8),r.write(l,c,_,k,52,8),_+8}d.prototype.writeDoubleLE=function(l,c,_){return we(this,l,c,!0,_)},d.prototype.writeDoubleBE=function(l,c,_){return we(this,l,c,!1,_)},d.prototype.copy=function(l,c,_,k){if(_||(_=0),!k&&k!==0&&(k=this.length),c>=l.length&&(c=l.length),c||(c=0),k>0&&k<_&&(k=_),k===_||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("sourceStart out of bounds");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),l.length-c<k-_&&(k=l.length-c+_);var U=k-_,te;if(this===l&&_<c&&c<k)for(te=U-1;te>=0;--te)l[te+c]=this[te+_];else if(U<1e3||!d.TYPED_ARRAY_SUPPORT)for(te=0;te<U;++te)l[te+c]=this[te+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+U),c);return U},d.prototype.fill=function(l,c,_,k){if(typeof l=="string"){if(typeof c=="string"?(k=c,c=0,_=this.length):typeof _=="string"&&(k=_,_=this.length),l.length===1){var U=l.charCodeAt(0);U<256&&(l=U)}if(k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!d.isEncoding(k))throw new TypeError("Unknown encoding: "+k)}else typeof l=="number"&&(l=l&255);if(c<0||this.length<c||this.length<_)throw new RangeError("Out of range index");if(_<=c)return this;c=c>>>0,_=_===void 0?this.length:_>>>0,l||(l=0);var te;if(typeof l=="number")for(te=c;te<_;++te)this[te]=l;else{var Ae=d.isBuffer(l)?l:j(new d(l,k).toString()),Ce=Ae.length;for(te=0;te<_-c;++te)this[te+c]=Ae[te%Ce]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function be(l){if(l=_e(l).replace(X,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function _e(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function ve(l){return l<16?"0"+l.toString(16):l.toString(16)}function j(l,c){c=c||1/0;for(var _,k=l.length,U=null,te=[],Ae=0;Ae<k;++Ae){if(_=l.charCodeAt(Ae),_>55295&&_<57344){if(!U){if(_>56319){(c-=3)>-1&&te.push(239,191,189);continue}else if(Ae+1===k){(c-=3)>-1&&te.push(239,191,189);continue}U=_;continue}if(_<56320){(c-=3)>-1&&te.push(239,191,189),U=_;continue}_=(U-55296<<10|_-56320)+65536}else U&&(c-=3)>-1&&te.push(239,191,189);if(U=null,_<128){if((c-=1)<0)break;te.push(_)}else if(_<2048){if((c-=2)<0)break;te.push(_>>6|192,_&63|128)}else if(_<65536){if((c-=3)<0)break;te.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((c-=4)<0)break;te.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return te}function Z(l){for(var c=[],_=0;_<l.length;++_)c.push(l.charCodeAt(_)&255);return c}function W(l,c){for(var _,k,U,te=[],Ae=0;Ae<l.length&&!((c-=2)<0);++Ae)_=l.charCodeAt(Ae),k=_>>8,U=_%256,te.push(U),te.push(k);return te}function K(l){return n.toByteArray(be(l))}function ee(l,c,_,k){for(var U=0;U<k&&!(U+_>=c.length||U>=l.length);++U)c[U+_]=l[U];return U}function Se(l){return l!==l}}(Pl)),Pl}ed();var vr;if(typeof window<"u"&&window.crypto&&(vr=window.crypto),!vr&&typeof window<"u"&&window.msCrypto&&(vr=window.msCrypto),!vr&&typeof global<"u"&&global.crypto&&(vr=global.crypto),!vr&&typeof require=="function")try{vr=require("crypto")}catch{}var Nl={};/*! *****************************************************************************
|
|
92
92
|
Copyright (c) Microsoft Corporation.
|
|
93
93
|
|
|
94
94
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -110,20 +110,20 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
110
110
|
*
|
|
111
111
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
112
112
|
* Released under the MIT license
|
|
113
|
-
*/var nu;function Cp(){return nu||(nu=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var u=window.Cookies,p=window.Cookies=r();p.noConflict=function(){return window.Cookies=u,p}}})(function(){function r(){for(var p=0,g={};p<arguments.length;p++){var d=arguments[p];for(var S in d)g[S]=d[S]}return g}function s(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function u(p){function g(){}function d(A,E,N){if(!(typeof document>"u")){N=r({path:"/"},g.defaults,N),typeof N.expires=="number"&&(N.expires=new Date(new Date*1+N.expires*864e5)),N.expires=N.expires?N.expires.toUTCString():"";try{var R=JSON.stringify(E);/^[\{\[]/.test(R)&&(E=R)}catch{}E=p.write?p.write(E,A):encodeURIComponent(String(E)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),A=encodeURIComponent(String(A)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var L="";for(var $ in N)N[$]&&(L+="; "+$,N[$]!==!0&&(L+="="+N[$].split(";")[0]));return document.cookie=A+"="+E+L}}function S(A,E){if(!(typeof document>"u")){for(var N={},R=document.cookie?document.cookie.split("; "):[],L=0;L<R.length;L++){var $=R[L].split("="),B=$.slice(1).join("=");!E&&B.charAt(0)==='"'&&(B=B.slice(1,-1));try{var H=s($[0]);if(B=(p.read||p)(B,H)||s(B),E)try{B=JSON.parse(B)}catch{}if(N[H]=B,A===H)break}catch{}}return A?N[A]:N}}return g.set=d,g.get=function(A){return S(A,!1)},g.getJSON=function(A){return S(A,!0)},g.remove=function(A,E){d(A,"",r(E,{expires:-1}))},g.defaults={},g.withConverter=u,g}return u(function(){})})}(tu)),tu.exports}Cp();function Sp(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Ap(){return Sp().getCurrentUser()}function Dp(){return new Promise((i,n)=>{const r=Ap();r===null&&n(null),r?.getSession((s,u)=>{if(s!==null||u===null)return n(null);i({session:u,authenticatedUser:r})})})}async function Op(){const{session:i}=await Dp();return i?.getIdToken().getJwtToken()}ye.createContext(void 0);var Ep="undefined",Tp="object",zi="browser",ru="cpu",iu="device",bs="engine",qi="os",er="name",Hi="type",xs="vendor",Cn="version",Cs="architecture",Ss="major",As="model",Pp="console",Mp="mobile",Rp="tablet",kp="smarttv",Lp="wearable",Np="embedded",Ip=typeof window!==Ep,Ds=Ip&&window.navigator?window.navigator:void 0;Ds&&Ds.userAgentData&&Ds.userAgentData;var Gi=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Vi=function(i){for(var n in i){var r=i[n];typeof r==Tp&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Vi.call(i.init,[[zi,[er,Cn,Ss,Hi]],[ru,[Cs]],[iu,[Hi,As,xs]],[bs,[er,Cn]],[qi,[er,Cn]]]),Vi.call(i.isIgnore,[[zi,[Cn,Ss]],[bs,[Cn]],[qi,[Cn]]]),Vi.call(i.isIgnoreRgx,[[zi,/ ?browser$/i],[qi,/ ?os$/i]]),Vi.call(i.toString,[[zi,[er,Cn]],[ru,[Cs]],[iu,[xs,As]],[bs,[er,Cn]],[qi,[er,Cn]]]),i})(),Gi([er,Cn,Ss,Hi]),Gi([Cs]),Gi([As,xs,Hi,Pp,Mp,kp,Rp,Lp,Np]),Gi([er,Cn]);var Os={exports:{}},$p=Os.exports,ou;function Bp(){return ou||(ou=1,function(i,n){(function(r,s){i.exports=s()})($p,()=>(()=>{var r={873:(g,d)=>{var S,A,E=function(){var N=function(I,P){var D=I,v=se[P],f=null,w=0,h=null,m=[],C={},T=function(j,Z){f=function(W){for(var K=new Array(W),ee=0;ee<W;ee+=1){K[ee]=new Array(W);for(var Se=0;Se<W;Se+=1)K[ee][Se]=null}return K}(w=4*D+17),G(0,0),G(w-7,0),G(0,w-7),ue(),oe(),X(j,Z),D>=7&&we(j),h==null&&(h=_e(D,v,m)),be(h,Z)},G=function(j,Z){for(var W=-1;W<=7;W+=1)if(!(j+W<=-1||w<=j+W))for(var K=-1;K<=7;K+=1)Z+K<=-1||w<=Z+K||(f[j+W][Z+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},oe=function(){for(var j=8;j<w-8;j+=1)f[j][6]==null&&(f[j][6]=j%2==0);for(var Z=8;Z<w-8;Z+=1)f[6][Z]==null&&(f[6][Z]=Z%2==0)},ue=function(){for(var j=le.getPatternPosition(D),Z=0;Z<j.length;Z+=1)for(var W=0;W<j.length;W+=1){var K=j[Z],ee=j[W];if(f[K][ee]==null)for(var Se=-2;Se<=2;Se+=1)for(var l=-2;l<=2;l+=1)f[K+Se][ee+l]=Se==-2||Se==2||l==-2||l==2||Se==0&&l==0}},we=function(j){for(var Z=le.getBCHTypeNumber(D),W=0;W<18;W+=1){var K=!j&&(Z>>W&1)==1;f[Math.floor(W/3)][W%3+w-8-3]=K}for(W=0;W<18;W+=1)K=!j&&(Z>>W&1)==1,f[W%3+w-8-3][Math.floor(W/3)]=K},X=function(j,Z){for(var W=v<<3|Z,K=le.getBCHTypeInfo(W),ee=0;ee<15;ee+=1){var Se=!j&&(K>>ee&1)==1;ee<6?f[ee][8]=Se:ee<8?f[ee+1][8]=Se:f[w-15+ee][8]=Se}for(ee=0;ee<15;ee+=1)Se=!j&&(K>>ee&1)==1,ee<8?f[8][w-ee-1]=Se:ee<9?f[8][15-ee-1+1]=Se:f[8][15-ee-1]=Se;f[w-8][8]=!j},be=function(j,Z){for(var W=-1,K=w-1,ee=7,Se=0,l=le.getMaskFunction(Z),c=w-1;c>0;c-=2)for(c==6&&(c-=1);;){for(var _=0;_<2;_+=1)if(f[K][c-_]==null){var k=!1;Se<j.length&&(k=(j[Se]>>>ee&1)==1),l(K,c-_)&&(k=!k),f[K][c-_]=k,(ee-=1)==-1&&(Se+=1,ee=7)}if((K+=W)<0||w<=K){K-=W,W=-W;break}}},_e=function(j,Z,W){for(var K=Q.getRSBlocks(j,Z),ee=ne(),Se=0;Se<W.length;Se+=1){var l=W[Se];ee.put(l.getMode(),4),ee.put(l.getLength(),le.getLengthInBits(l.getMode(),j)),l.write(ee)}var c=0;for(Se=0;Se<K.length;Se+=1)c+=K[Se].dataCount;if(ee.getLengthInBits()>8*c)throw"code length overflow. ("+ee.getLengthInBits()+">"+8*c+")";for(ee.getLengthInBits()+4<=8*c&&ee.put(0,4);ee.getLengthInBits()%8!=0;)ee.putBit(!1);for(;!(ee.getLengthInBits()>=8*c||(ee.put(236,8),ee.getLengthInBits()>=8*c));)ee.put(17,8);return function(_,k){for(var U=0,te=0,
|
|
114
|
-
`}return Xe%2&&Ce>0?rt.substring(0,rt.length-Xe-1)+Array(Xe+1).join("▀"):rt.substring(0,rt.length-1)}(Z);j-=1,Z=Z===void 0?2*j:Z;var W,K,ee,Se,l=C.getModuleCount()*j+2*Z,c=Z,_=l-Z,k=Array(j+1).join("██"),U=Array(j+1).join(" "),te="",
|
|
115
|
-
`}return te.substring(0,te.length-1)},C.renderTo2dContext=function(j,Z){Z=Z||2;for(var W=C.getModuleCount(),K=0;K<W;K++)for(var ee=0;ee<W;ee++)j.fillStyle=C.isDark(K,ee)?"black":"white",j.fillRect(K*Z,ee*Z,Z,Z)},C};N.stringToBytes=(N.stringToBytesFuncs={default:function(I){for(var P=[],D=0;D<I.length;D+=1){var v=I.charCodeAt(D);P.push(255&v)}return P}}).default,N.createStringToBytes=function(I,P){var D=function(){for(var f=Ae(I),w=function(){var oe=f.read();if(oe==-1)throw"eof";return oe},h=0,m={};;){var C=f.read();if(C==-1)break;var T=w(),G=w()<<8|w();m[String.fromCharCode(C<<8|T)]=G,h+=1}if(h!=P)throw h+" != "+P;return m}(),v=63;return function(f){for(var w=[],h=0;h<f.length;h+=1){var m=f.charCodeAt(h);if(m<128)w.push(m);else{var C=D[f.charAt(h)];typeof C=="number"?(255&C)==C?w.push(C):(w.push(C>>>8),w.push(255&C)):w.push(v)}}return w}};var R,L,$,B,H,se={L:1,M:0,Q:3,H:2},le=(R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],L=1335,$=7973,H=function(I){for(var P=0;I!=0;)P+=1,I>>>=1;return P},(B={}).getBCHTypeInfo=function(I){for(var P=I<<10;H(P)-H(L)>=0;)P^=L<<H(P)-H(L);return 21522^(I<<10|P)},B.getBCHTypeNumber=function(I){for(var P=I<<12;H(P)-H($)>=0;)P^=$<<H(P)-H($);return I<<12|P},B.getPatternPosition=function(I){return R[I-1]},B.getMaskFunction=function(I){switch(I){case 0:return function(P,D){return(P+D)%2==0};case 1:return function(P,D){return P%2==0};case 2:return function(P,D){return D%3==0};case 3:return function(P,D){return(P+D)%3==0};case 4:return function(P,D){return(Math.floor(P/2)+Math.floor(D/3))%2==0};case 5:return function(P,D){return P*D%2+P*D%3==0};case 6:return function(P,D){return(P*D%2+P*D%3)%2==0};case 7:return function(P,D){return(P*D%3+(P+D)%2)%2==0};default:throw"bad maskPattern:"+I}},B.getErrorCorrectPolynomial=function(I){for(var P=ce([1],0),D=0;D<I;D+=1)P=P.multiply(ce([1,ae.gexp(D)],0));return P},B.getLengthInBits=function(I,P){if(1<=P&&P<10)switch(I){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+I}else if(P<27)switch(I){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+I}else{if(!(P<41))throw"type:"+P;switch(I){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+I}}},B.getLostPoint=function(I){for(var P=I.getModuleCount(),D=0,v=0;v<P;v+=1)for(var f=0;f<P;f+=1){for(var w=0,h=I.isDark(v,f),m=-1;m<=1;m+=1)if(!(v+m<0||P<=v+m))for(var C=-1;C<=1;C+=1)f+C<0||P<=f+C||m==0&&C==0||h==I.isDark(v+m,f+C)&&(w+=1);w>5&&(D+=3+w-5)}for(v=0;v<P-1;v+=1)for(f=0;f<P-1;f+=1){var T=0;I.isDark(v,f)&&(T+=1),I.isDark(v+1,f)&&(T+=1),I.isDark(v,f+1)&&(T+=1),I.isDark(v+1,f+1)&&(T+=1),T!=0&&T!=4||(D+=3)}for(v=0;v<P;v+=1)for(f=0;f<P-6;f+=1)I.isDark(v,f)&&!I.isDark(v,f+1)&&I.isDark(v,f+2)&&I.isDark(v,f+3)&&I.isDark(v,f+4)&&!I.isDark(v,f+5)&&I.isDark(v,f+6)&&(D+=40);for(f=0;f<P;f+=1)for(v=0;v<P-6;v+=1)I.isDark(v,f)&&!I.isDark(v+1,f)&&I.isDark(v+2,f)&&I.isDark(v+3,f)&&I.isDark(v+4,f)&&!I.isDark(v+5,f)&&I.isDark(v+6,f)&&(D+=40);var G=0;for(f=0;f<P;f+=1)for(v=0;v<P;v+=1)I.isDark(v,f)&&(G+=1);return D+Math.abs(100*G/P/P-50)/5*10},B),ae=function(){for(var I=new Array(256),P=new Array(256),D=0;D<8;D+=1)I[D]=1<<D;for(D=8;D<256;D+=1)I[D]=I[D-4]^I[D-5]^I[D-6]^I[D-8];for(D=0;D<255;D+=1)P[I[D]]=D;return{glog:function(v){if(v<1)throw"glog("+v+")";return P[v]},gexp:function(v){for(;v<0;)v+=255;for(;v>=256;)v-=255;return I[v]}}}();function ce(I,P){if(I.length===void 0)throw I.length+"/"+P;var D=function(){for(var f=0;f<I.length&&I[f]==0;)f+=1;for(var w=new Array(I.length-f+P),h=0;h<I.length-f;h+=1)w[h]=I[h+f];return w}(),v={getAt:function(f){return D[f]},getLength:function(){return D.length},multiply:function(f){for(var w=new Array(v.getLength()+f.getLength()-1),h=0;h<v.getLength();h+=1)for(var m=0;m<f.getLength();m+=1)w[h+m]^=ae.gexp(ae.glog(v.getAt(h))+ae.glog(f.getAt(m)));return ce(w,0)},mod:function(f){if(v.getLength()-f.getLength()<0)return v;for(var w=ae.glog(v.getAt(0))-ae.glog(f.getAt(0)),h=new Array(v.getLength()),m=0;m<v.getLength();m+=1)h[m]=v.getAt(m);for(m=0;m<f.getLength();m+=1)h[m]^=ae.gexp(ae.glog(f.getAt(m))+w);return ce(h,0).mod(f)}};return v}var Q=function(){var I=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],P=function(v,f){var w={};return w.totalCount=v,w.dataCount=f,w},D={getRSBlocks:function(v,f){var w=function(we,X){switch(X){case se.L:return I[4*(we-1)+0];case se.M:return I[4*(we-1)+1];case se.Q:return I[4*(we-1)+2];case se.H:return I[4*(we-1)+3];default:return}}(v,f);if(w===void 0)throw"bad rs block @ typeNumber:"+v+"/errorCorrectionLevel:"+f;for(var h=w.length/3,m=[],C=0;C<h;C+=1)for(var T=w[3*C+0],G=w[3*C+1],oe=w[3*C+2],ue=0;ue<T;ue+=1)m.push(P(G,oe));return m}};return D}(),ne=function(){var I=[],P=0,D={getBuffer:function(){return I},getAt:function(v){var f=Math.floor(v/8);return(I[f]>>>7-v%8&1)==1},put:function(v,f){for(var w=0;w<f;w+=1)D.putBit((v>>>f-w-1&1)==1)},getLengthInBits:function(){return P},putBit:function(v){var f=Math.floor(P/8);I.length<=f&&I.push(0),v&&(I[f]|=128>>>P%8),P+=1}};return D},J=function(I){var P=I,D={getMode:function(){return 1},getLength:function(w){return P.length},write:function(w){for(var h=P,m=0;m+2<h.length;)w.put(v(h.substring(m,m+3)),10),m+=3;m<h.length&&(h.length-m==1?w.put(v(h.substring(m,m+1)),4):h.length-m==2&&w.put(v(h.substring(m,m+2)),7))}},v=function(w){for(var h=0,m=0;m<w.length;m+=1)h=10*h+f(w.charAt(m));return h},f=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return D},V=function(I){var P=I,D={getMode:function(){return 2},getLength:function(f){return P.length},write:function(f){for(var w=P,h=0;h+1<w.length;)f.put(45*v(w.charAt(h))+v(w.charAt(h+1)),11),h+=2;h<w.length&&f.put(v(w.charAt(h)),6)}},v=function(f){if("0"<=f&&f<="9")return f.charCodeAt(0)-48;if("A"<=f&&f<="Z")return f.charCodeAt(0)-65+10;switch(f){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+f}};return D},de=function(I){var P=N.stringToBytes(I);return{getMode:function(){return 4},getLength:function(D){return P.length},write:function(D){for(var v=0;v<P.length;v+=1)D.put(P[v],8)}}},he=function(I){var P=N.stringToBytesFuncs.SJIS;if(!P)throw"sjis not supported.";(function(){var f=P("友");if(f.length!=2||(f[0]<<8|f[1])!=38726)throw"sjis not supported."})();var D=P(I),v={getMode:function(){return 8},getLength:function(f){return~~(D.length/2)},write:function(f){for(var w=D,h=0;h+1<w.length;){var m=(255&w[h])<<8|255&w[h+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(h+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),f.put(m,13),h+=2}if(h<w.length)throw"illegal char at "+(h+1)}};return v},re=function(){var I=[],P={writeByte:function(D){I.push(255&D)},writeShort:function(D){P.writeByte(D),P.writeByte(D>>>8)},writeBytes:function(D,v,f){v=v||0,f=f||D.length;for(var w=0;w<f;w+=1)P.writeByte(D[w+v])},writeString:function(D){for(var v=0;v<D.length;v+=1)P.writeByte(D.charCodeAt(v))},toByteArray:function(){return I},toString:function(){var D="";D+="[";for(var v=0;v<I.length;v+=1)v>0&&(D+=","),D+=I[v];return D+"]"}};return P},Ae=function(I){var P=I,D=0,v=0,f=0,w={read:function(){for(;f<8;){if(D>=P.length){if(f==0)return-1;throw"unexpected end of file./"+f}var m=P.charAt(D);if(D+=1,m=="=")return f=0,-1;m.match(/^\s$/)||(v=v<<6|h(m.charCodeAt(0)),f+=6)}var C=v>>>f-8&255;return f-=8,C}},h=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return w},Oe=function(I,P,D){for(var v=function(G,oe){var ue=G,we=oe,X=new Array(G*oe),be={setPixel:function(j,Z,W){X[Z*ue+j]=W},write:function(j){j.writeString("GIF87a"),j.writeShort(ue),j.writeShort(we),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(ue),j.writeShort(we),j.writeByte(0);var Z=_e(2);j.writeByte(2);for(var W=0;Z.length-W>255;)j.writeByte(255),j.writeBytes(Z,W,255),W+=255;j.writeByte(Z.length-W),j.writeBytes(Z,W,Z.length-W),j.writeByte(0),j.writeString(";")}},_e=function(j){for(var Z=1<<j,W=1+(1<<j),K=j+1,ee=ve(),Se=0;Se<Z;Se+=1)ee.add(String.fromCharCode(Se));ee.add(String.fromCharCode(Z)),ee.add(String.fromCharCode(W));var l,c,_,k=re(),U=(l=k,c=0,_=0,{write:function(Pe,me){if(Pe>>>me)throw"length over";for(;c+me>=8;)l.writeByte(255&(Pe<<c|_)),me-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=me},flush:function(){c>0&&l.writeByte(_)}});U.write(Z,K);var te=0,De=String.fromCharCode(X[te]);for(te+=1;te<X.length;){var Ce=String.fromCharCode(X[te]);te+=1,ee.contains(De+Ce)?De+=Ce:(U.write(ee.indexOf(De),K),ee.size()<4095&&(ee.size()==1<<K&&(K+=1),ee.add(De+Ce)),De=Ce)}return U.write(ee.indexOf(De),K),U.write(W,K),U.flush(),k.toByteArray()},ve=function(){var j={},Z=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;j[K]=Z,Z+=1},size:function(){return Z},indexOf:function(K){return j[K]},contains:function(K){return j[K]!==void 0}};return W};return be}(I,P),f=0;f<P;f+=1)for(var w=0;w<I;w+=1)v.setPixel(w,f,D(w,f));var h=re();v.write(h);for(var m=function(){var G=0,oe=0,ue=0,we="",X={},be=function(ve){we+=String.fromCharCode(_e(63&ve))},_e=function(ve){if(!(ve<0)){if(ve<26)return 65+ve;if(ve<52)return ve-26+97;if(ve<62)return ve-52+48;if(ve==62)return 43;if(ve==63)return 47}throw"n:"+ve};return X.writeByte=function(ve){for(G=G<<8|255&ve,oe+=8,ue+=1;oe>=6;)be(G>>>oe-6),oe-=6},X.flush=function(){if(oe>0&&(be(G<<6-oe),G=0,oe=0),ue%3!=0)for(var ve=3-ue%3,j=0;j<ve;j+=1)we+="="},X.toString=function(){return we},X}(),C=h.toByteArray(),T=0;T<C.length;T+=1)m.writeByte(C[T]);return m.flush(),"data:image/gif;base64,"+m};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(R){for(var L=[],$=0;$<R.length;$++){var B=R.charCodeAt($);B<128?L.push(B):B<2048?L.push(192|B>>6,128|63&B):B<55296||B>=57344?L.push(224|B>>12,128|B>>6&63,128|63&B):($++,B=65536+((1023&B)<<10|1023&R.charCodeAt($)),L.push(240|B>>18,128|B>>12&63,128|B>>6&63,128|63&B))}return L}(N)},(A=typeof(S=function(){return E})=="function"?S.apply(d,[]):S)===void 0||(g.exports=A)}},s={};function u(g){var d=s[g];if(d!==void 0)return d.exports;var S=s[g]={exports:{}};return r[g](S,S.exports,u),S.exports}u.n=g=>{var d=g&&g.__esModule?()=>g.default:()=>g;return u.d(d,{a:d}),d},u.d=(g,d)=>{for(var S in d)u.o(d,S)&&!u.o(g,S)&&Object.defineProperty(g,S,{enumerable:!0,get:d[S]})},u.o=(g,d)=>Object.prototype.hasOwnProperty.call(g,d);var p={};return(()=>{u.d(p,{default:()=>P});const g=D=>!!D&&typeof D=="object"&&!Array.isArray(D);function d(D,...v){if(!v.length)return D;const f=v.shift();return f!==void 0&&g(D)&&g(f)?(D=Object.assign({},D),Object.keys(f).forEach(w=>{const h=D[w],m=f[w];Array.isArray(h)&&Array.isArray(m)?D[w]=m:g(h)&&g(m)?D[w]=d(Object.assign({},h),m):D[w]=m}),d(D,...v)):D}function S(D,v){const f=document.createElement("a");f.download=v,f.href=D,document.body.appendChild(f),f.click(),document.body.removeChild(f)}const A={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:v,type:f,window:w}){this._svg=v,this._type=f,this._window=w}draw(v,f,w,h){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:v,y:f,size:w,getNeighbor:h})}_rotateFigure({x:v,y:f,size:w,rotation:h=0,draw:m}){var C;const T=v+w/2,G=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*h/Math.PI},${T},${G})`)}_basicDot(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+f/2)),this._element.setAttribute("cy",String(h+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_basicSideRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, 0 ${-f}`)}}))}_basicCornerRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h ${f}v `+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_basicCornerExtraRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h ${f}a ${f} ${f}, 0, 0, 0, ${-f} ${-f}`)}}))}_basicCornersRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${f/2} ${f/2}h `+f/2+"v "+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_drawDot({x:v,y:f,size:w}){this._basicDot({x:v,y:f,size:w,rotation:0})}_drawSquare({x:v,y:f,size:w}){this._basicSquare({x:v,y:f,size:w,rotation:0})}_drawRounded({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0,oe=m+C+T+G;if(oe!==0)if(oe>2||m&&C||T&&G)this._basicSquare({x:v,y:f,size:w,rotation:0});else{if(oe===2){let ue=0;return m&&T?ue=Math.PI/2:T&&C?ue=Math.PI:C&&G&&(ue=-Math.PI/2),void this._basicCornerRounded({x:v,y:f,size:w,rotation:ue})}if(oe===1){let ue=0;return T?ue=Math.PI/2:C?ue=Math.PI:G&&(ue=-Math.PI/2),void this._basicSideRounded({x:v,y:f,size:w,rotation:ue})}}else this._basicDot({x:v,y:f,size:w,rotation:0})}_drawExtraRounded({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0,oe=m+C+T+G;if(oe!==0)if(oe>2||m&&C||T&&G)this._basicSquare({x:v,y:f,size:w,rotation:0});else{if(oe===2){let ue=0;return m&&T?ue=Math.PI/2:T&&C?ue=Math.PI:C&&G&&(ue=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:f,size:w,rotation:ue})}if(oe===1){let ue=0;return T?ue=Math.PI/2:C?ue=Math.PI:G&&(ue=-Math.PI/2),void this._basicSideRounded({x:v,y:f,size:w,rotation:ue})}}else this._basicDot({x:v,y:f,size:w,rotation:0})}_drawClassy({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0;m+C+T+G!==0?m||T?C||G?this._basicSquare({x:v,y:f,size:w,rotation:0}):this._basicCornerRounded({x:v,y:f,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:f,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:f,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0;m+C+T+G!==0?m||T?C||G?this._basicSquare({x:v,y:f,size:w,rotation:0}):this._basicCornerExtraRounded({x:v,y:f,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:f,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:f,size:w,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},R=Object.values(N);class L{constructor({svg:v,type:f,window:w}){this._svg=v,this._type=f,this._window=w}draw(v,f,w,h){let m;switch(this._type){case N.square:m=this._drawSquare;break;case N.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:v,y:f,size:w,rotation:h})}_rotateFigure({x:v,y:f,size:w,rotation:h=0,draw:m}){var C;const T=v+w/2,G=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*h/Math.PI},${T},${G})`)}_basicDot(v){const{size:f,x:w,y:h}=v,m=f/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w+f/2} ${h}a ${f/2} ${f/2} 0 1 0 0.1 0zm 0 ${m}a ${f/2-m} ${f/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(v){const{size:f,x:w,y:h}=v,m=f/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h ${f}v `+-f+`zM ${w+m} ${h+m}h `+(f-2*m)+"v "+(f-2*m)+"h "+(2*m-f)+"z")}}))}_basicExtraRounded(v){const{size:f,x:w,y:h}=v,m=f/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w} ${h+2.5*m}v `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*m}h `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*-m}v `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*-m}h `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*m}M ${w+2.5*m} ${h+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:v,y:f,size:w,rotation:h}){this._basicDot({x:v,y:f,size:w,rotation:h})}_drawSquare({x:v,y:f,size:w,rotation:h}){this._basicSquare({x:v,y:f,size:w,rotation:h})}_drawExtraRounded({x:v,y:f,size:w,rotation:h}){this._basicExtraRounded({x:v,y:f,size:w,rotation:h})}}const $={dot:"dot",square:"square"},B=Object.values($);class H{constructor({svg:v,type:f,window:w}){this._svg=v,this._type=f,this._window=w}draw(v,f,w,h){let m;m=this._type===$.square?this._drawSquare:this._drawDot,m.call(this,{x:v,y:f,size:w,rotation:h})}_rotateFigure({x:v,y:f,size:w,rotation:h=0,draw:m}){var C;const T=v+w/2,G=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*h/Math.PI},${T},${G})`)}_basicDot(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+f/2)),this._element.setAttribute("cy",String(h+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_drawDot({x:v,y:f,size:w,rotation:h}){this._basicDot({x:v,y:f,size:w,rotation:h})}_drawSquare({x:v,y:f,size:w,rotation:h}){this._basicSquare({x:v,y:f,size:w,rotation:h})}}const se="circle",le=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],ae=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class ce{constructor(v,f){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=f,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(v.width)),this._element.setAttribute("height",String(v.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),v.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${v.width} ${v.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=v.image,this._instanceId=ce.instanceCount++,this._options=v}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(v){const f=v.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,h=this._options.shape===se?w/Math.sqrt(2):w,m=this._roundSize(h/f);let C={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=v,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:T,qrOptions:G}=this._options,oe=T.imageSize*A[G.errorCorrectionLevel],ue=Math.floor(oe*f*f);C=function({originalHeight:we,originalWidth:X,maxHiddenDots:be,maxHiddenAxisDots:_e,dotSize:ve}){const j={x:0,y:0},Z={x:0,y:0};if(we<=0||X<=0||be<=0||ve<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/X;return j.x=Math.floor(Math.sqrt(be/W)),j.x<=0&&(j.x=1),_e&&_e<j.x&&(j.x=_e),j.x%2==0&&j.x--,Z.x=j.x*ve,j.y=1+2*Math.ceil((j.x*W-1)/2),Z.y=Math.round(Z.x*W),(j.y*j.x>be||_e&&_e<j.y)&&(_e&&_e<j.y?(j.y=_e,j.y%2==0&&j.x--):j.y-=2,Z.y=j.y*ve,j.x=1+2*Math.ceil((j.y/W-1)/2),Z.x=Math.round(Z.y/W)),{height:Z.y,width:Z.x,hideYDots:j.y,hideXDots:j.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ue,maxHiddenAxisDots:f-14,dotSize:m})}this.drawBackground(),this.drawDots((T,G)=>{var oe,ue,we,X,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&T>=(f-C.hideYDots)/2&&T<(f+C.hideYDots)/2&&G>=(f-C.hideXDots)/2&&G<(f+C.hideXDots)/2||!((oe=le[T])===null||oe===void 0)&&oe[G]||!((ue=le[T-f+7])===null||ue===void 0)&&ue[G]||!((we=le[T])===null||we===void 0)&&we[G-f+7]||!((X=ae[T])===null||X===void 0)&&X[G]||!((be=ae[T-f+7])===null||be===void 0)&&be[G]||!((_e=ae[T])===null||_e===void 0)&&_e[G-f+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:C.width,height:C.height,count:f,dotSize:m})}drawBackground(){var v,f,w;const h=this._element,m=this._options;if(h){const C=(v=m.backgroundOptions)===null||v===void 0?void 0:v.gradient,T=(f=m.backgroundOptions)===null||f===void 0?void 0:f.color;let G=m.height,oe=m.width;if(C||T){const ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((w=m.backgroundOptions)===null||w===void 0)&&w.round&&(G=oe=Math.min(m.width,m.height),ue.setAttribute("rx",String(G/2*m.backgroundOptions.round))),ue.setAttribute("x",String(this._roundSize((m.width-oe)/2))),ue.setAttribute("y",String(this._roundSize((m.height-G)/2))),ue.setAttribute("width",String(oe)),ue.setAttribute("height",String(G)),this._backgroundClipPath.appendChild(ue),this._createColor({options:C,color:T,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(v){var f,w;if(!this._qr)throw"QR code is not defined";const h=this._options,m=this._qr.getModuleCount();if(m>h.width||m>h.height)throw"The canvas is too small.";const C=Math.min(h.width,h.height)-2*h.margin,T=h.shape===se?C/Math.sqrt(2):C,G=this._roundSize(T/m),oe=this._roundSize((h.width-m*G)/2),ue=this._roundSize((h.height-m*G)/2),we=new E({svg:this._element,type:h.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(f=h.dotsOptions)===null||f===void 0?void 0:f.gradient,color:h.dotsOptions.color,additionalRotation:0,x:0,y:0,height:h.height,width:h.width,name:`dot-color-${this._instanceId}`});for(let X=0;X<m;X++)for(let be=0;be<m;be++)v&&!v(X,be)||!((w=this._qr)===null||w===void 0)&&w.isDark(X,be)&&(we.draw(oe+be*G,ue+X*G,G,(_e,ve)=>!(be+_e<0||X+ve<0||be+_e>=m||X+ve>=m)&&!(v&&!v(X+ve,be+_e))&&!!this._qr&&this._qr.isDark(X+ve,be+_e)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(h.shape===se){const X=this._roundSize((C/G-m)/2),be=m+2*X,_e=oe-X*G,ve=ue-X*G,j=[],Z=this._roundSize(be/2);for(let W=0;W<be;W++){j[W]=[];for(let K=0;K<be;K++)W>=X-1&&W<=be-X&&K>=X-1&&K<=be-X||Math.sqrt((W-Z)*(W-Z)+(K-Z)*(K-Z))>Z?j[W][K]=0:j[W][K]=this._qr.isDark(K-2*X<0?K:K>=m?K-2*X:K-X,W-2*X<0?W:W>=m?W-2*X:W-X)?1:0}for(let W=0;W<be;W++)for(let K=0;K<be;K++)j[W][K]&&(we.draw(_e+K*G,ve+W*G,G,(ee,Se)=>{var l;return!!(!((l=j[W+Se])===null||l===void 0)&&l[K+ee])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const v=this._element,f=this._options;if(!v)throw"Element code is not defined";const w=this._qr.getModuleCount(),h=Math.min(f.width,f.height)-2*f.margin,m=f.shape===se?h/Math.sqrt(2):h,C=this._roundSize(m/w),T=7*C,G=3*C,oe=this._roundSize((f.width-w*C)/2),ue=this._roundSize((f.height-w*C)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,X,be])=>{var _e,ve,j,Z,W,K,ee,Se,l,c,_,k,U,te;const De=oe+we*C*(w-7),Ce=ue+X*C*(w-7);let Pe=this._dotsClipPath,me=this._dotsClipPath;if((!((_e=f.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((ve=f.cornersSquareOptions)===null||ve===void 0)&&ve.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=me=Pe,this._createColor({options:(j=f.cornersSquareOptions)===null||j===void 0?void 0:j.gradient,color:(Z=f.cornersSquareOptions)===null||Z===void 0?void 0:Z.color,additionalRotation:be,x:De,y:Ce,height:T,width:T,name:`corners-square-color-${we}-${X}-${this._instanceId}`})),((W=f.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&R.includes(f.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:f.cornersSquareOptions.type,window:this._window});Re.draw(De,Ce,T,be),Re._element&&Pe&&Pe.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((K=f.cornersSquareOptions)===null||K===void 0?void 0:K.type)||f.dotsOptions.type,window:this._window});for(let Ie=0;Ie<le.length;Ie++)for(let ke=0;ke<le[Ie].length;ke++)!((ee=le[Ie])===null||ee===void 0)&&ee[ke]&&(Re.draw(De+ke*C,Ce+Ie*C,C,(Xe,Qe)=>{var nt;return!!(!((nt=le[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&Pe&&Pe.appendChild(Re._element))}if((!((Se=f.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((l=f.cornersDotOptions)===null||l===void 0)&&l.color)&&(me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),me.setAttribute("id",`clip-path-corners-dot-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(me),this._cornersDotClipPath=me,this._createColor({options:(c=f.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=f.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:be,x:De+2*C,y:Ce+2*C,height:G,width:G,name:`corners-dot-color-${we}-${X}-${this._instanceId}`})),((k=f.cornersDotOptions)===null||k===void 0?void 0:k.type)&&B.includes(f.cornersDotOptions.type)){const Re=new H({svg:this._element,type:f.cornersDotOptions.type,window:this._window});Re.draw(De+2*C,Ce+2*C,G,be),Re._element&&me&&me.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((U=f.cornersDotOptions)===null||U===void 0?void 0:U.type)||f.dotsOptions.type,window:this._window});for(let Ie=0;Ie<ae.length;Ie++)for(let ke=0;ke<ae[Ie].length;ke++)!((te=ae[Ie])===null||te===void 0)&&te[ke]&&(Re.draw(De+ke*C,Ce+Ie*C,C,(Xe,Qe)=>{var nt;return!!(!((nt=ae[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&me&&me.appendChild(Re._element))}})}loadImage(){return new Promise((v,f)=>{var w;const h=this._options;if(!h.image)return f("Image is not defined");if(!((w=h.nodeCanvas)===null||w===void 0)&&w.loadImage)h.nodeCanvas.loadImage(h.image).then(m=>{var C,T;if(this._image=m,this._options.imageOptions.saveAsBlob){const G=(C=h.nodeCanvas)===null||C===void 0?void 0:C.createCanvas(this._image.width,this._image.height);(T=G?.getContext("2d"))===null||T===void 0||T.drawImage(m,0,0),this._imageUri=G?.toDataURL()}v()}).catch(f);else{const m=new this._window.Image;typeof h.imageOptions.crossOrigin=="string"&&(m.crossOrigin=h.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(C,T){return new Promise(G=>{const oe=new T.XMLHttpRequest;oe.onload=function(){const ue=new T.FileReader;ue.onloadend=function(){G(ue.result)},ue.readAsDataURL(oe.response)},oe.open("GET",C),oe.responseType="blob",oe.send()})}(h.image||"",this._window)),v()},m.src=h.image}})}async drawImage({width:v,height:f,count:w,dotSize:h}){const m=this._options,C=this._roundSize((m.width-w*h)/2),T=this._roundSize((m.height-w*h)/2),G=C+this._roundSize(m.imageOptions.margin+(w*h-v)/2),oe=T+this._roundSize(m.imageOptions.margin+(w*h-f)/2),ue=v-2*m.imageOptions.margin,we=f-2*m.imageOptions.margin,X=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");X.setAttribute("href",this._imageUri||""),X.setAttribute("xlink:href",this._imageUri||""),X.setAttribute("x",String(G)),X.setAttribute("y",String(oe)),X.setAttribute("width",`${ue}px`),X.setAttribute("height",`${we}px`),this._element.appendChild(X)}_createColor({options:v,color:f,additionalRotation:w,x:h,y:m,height:C,width:T,name:G}){const oe=T>C?T:C,ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ue.setAttribute("x",String(h)),ue.setAttribute("y",String(m)),ue.setAttribute("height",String(C)),ue.setAttribute("width",String(T)),ue.setAttribute("clip-path",`url('#clip-path-${G}')`),v){let we;if(v.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(h+T/2)),we.setAttribute("fy",String(m+C/2)),we.setAttribute("cx",String(h+T/2)),we.setAttribute("cy",String(m+C/2)),we.setAttribute("r",String(oe/2));else{const X=((v.rotation||0)+w)%(2*Math.PI),be=(X+2*Math.PI)%(2*Math.PI);let _e=h+T/2,ve=m+C/2,j=h+T/2,Z=m+C/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=T/2,ve-=C/2*Math.tan(X),j+=T/2,Z+=C/2*Math.tan(X)):be>.25*Math.PI&&be<=.75*Math.PI?(ve-=C/2,_e-=T/2/Math.tan(X),Z+=C/2,j+=T/2/Math.tan(X)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=T/2,ve+=C/2*Math.tan(X),j-=T/2,Z-=C/2*Math.tan(X)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(ve+=C/2,_e+=T/2/Math.tan(X),Z-=C/2,j-=T/2/Math.tan(X)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(_e))),we.setAttribute("y1",String(Math.round(ve))),we.setAttribute("x2",String(Math.round(j))),we.setAttribute("y2",String(Math.round(Z)))}v.colorStops.forEach(({offset:X,color:be})=>{const _e=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");_e.setAttribute("offset",100*X+"%"),_e.setAttribute("stop-color",be),we.appendChild(_e)}),ue.setAttribute("fill",`url('#${G}')`),this._defs.appendChild(we)}else f&&ue.setAttribute("fill",f);this._element.appendChild(ue)}}ce.instanceCount=0;const Q=ce,ne="canvas",J={};for(let D=0;D<=40;D++)J[D]=D;const V={type:ne,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:J[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function de(D){const v=Object.assign({},D);if(!v.colorStops||!v.colorStops.length)throw"Field 'colorStops' is required in gradient";return v.rotation?v.rotation=Number(v.rotation):v.rotation=0,v.colorStops=v.colorStops.map(f=>Object.assign(Object.assign({},f),{offset:Number(f.offset)})),v}function he(D){const v=Object.assign({},D);return v.width=Number(v.width),v.height=Number(v.height),v.margin=Number(v.margin),v.imageOptions=Object.assign(Object.assign({},v.imageOptions),{hideBackgroundDots:!!v.imageOptions.hideBackgroundDots,imageSize:Number(v.imageOptions.imageSize),margin:Number(v.imageOptions.margin)}),v.margin>Math.min(v.width,v.height)&&(v.margin=Math.min(v.width,v.height)),v.dotsOptions=Object.assign({},v.dotsOptions),v.dotsOptions.gradient&&(v.dotsOptions.gradient=de(v.dotsOptions.gradient)),v.cornersSquareOptions&&(v.cornersSquareOptions=Object.assign({},v.cornersSquareOptions),v.cornersSquareOptions.gradient&&(v.cornersSquareOptions.gradient=de(v.cornersSquareOptions.gradient))),v.cornersDotOptions&&(v.cornersDotOptions=Object.assign({},v.cornersDotOptions),v.cornersDotOptions.gradient&&(v.cornersDotOptions.gradient=de(v.cornersDotOptions.gradient))),v.backgroundOptions&&(v.backgroundOptions=Object.assign({},v.backgroundOptions),v.backgroundOptions.gradient&&(v.backgroundOptions.gradient=de(v.backgroundOptions.gradient))),v}var re=u(873),Ae=u.n(re);function Oe(D){if(!D)throw new Error("Extension must be defined");D[0]==="."&&(D=D.substring(1));const v={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[D.toLowerCase()];if(!v)throw new Error(`Extension "${D}" is not supported`);return v}class I{constructor(v){v!=null&&v.jsdom?this._window=new v.jsdom("",{resources:"usable"}).window:this._window=window,this._options=v?he(d(V,v)):V,this.update()}static _clearContainer(v){v&&(v.innerHTML="")}_setupSvg(){if(!this._qr)return;const v=new Q(this._options,this._window);this._svg=v.getElement(),this._svgDrawingPromise=v.drawQR(this._qr).then(()=>{var f;this._svg&&((f=this._extension)===null||f===void 0||f.call(this,v.getElement(),this._options))})}_setupCanvas(){var v,f;this._qr&&(!((v=this._options.nodeCanvas)===null||v===void 0)&&v.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(f=this._svgDrawingPromise)===null||f===void 0?void 0:f.then(()=>{var w;if(!this._svg)return;const h=this._svg,m=new this._window.XMLSerializer().serializeToString(h),C=btoa(m),T=`data:${Oe("svg")};base64,${C}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(T).then(G=>{var oe,ue;G.width=this._options.width,G.height=this._options.height,(ue=(oe=this._nodeCanvas)===null||oe===void 0?void 0:oe.getContext("2d"))===null||ue===void 0||ue.drawImage(G,0,0)});{const G=new this._window.Image;return new Promise(oe=>{G.onload=()=>{var ue,we;(we=(ue=this._domCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||we===void 0||we.drawImage(G,0,0),oe()},G.src=T})}}))}async _getElement(v="png"){if(!this._qr)throw"QR code is empty";return v.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(v){I._clearContainer(this._container),this._options=v?he(d(this._options,v)):this._options,this._options.data&&(this._qr=Ae()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(f){switch(!0){case/^[0-9]*$/.test(f):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(f):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ne?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(v){if(v){if(typeof v.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ne?this._domCanvas&&v.appendChild(this._domCanvas):this._svg&&v.appendChild(this._svg),this._container=v}}applyExtension(v){if(!v)throw"Extension function should be defined.";this._extension=v,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(v="png"){if(!this._qr)throw"QR code is empty";const f=await this._getElement(v),w=Oe(v);if(!f)return null;if(v.toLowerCase()==="svg"){const h=`<?xml version="1.0" standalone="no"?>\r
|
|
113
|
+
*/var nu;function Cp(){return nu||(nu=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var u=window.Cookies,p=window.Cookies=r();p.noConflict=function(){return window.Cookies=u,p}}})(function(){function r(){for(var p=0,g={};p<arguments.length;p++){var d=arguments[p];for(var S in d)g[S]=d[S]}return g}function s(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function u(p){function g(){}function d(A,E,N){if(!(typeof document>"u")){N=r({path:"/"},g.defaults,N),typeof N.expires=="number"&&(N.expires=new Date(new Date*1+N.expires*864e5)),N.expires=N.expires?N.expires.toUTCString():"";try{var R=JSON.stringify(E);/^[\{\[]/.test(R)&&(E=R)}catch{}E=p.write?p.write(E,A):encodeURIComponent(String(E)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),A=encodeURIComponent(String(A)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var L="";for(var $ in N)N[$]&&(L+="; "+$,N[$]!==!0&&(L+="="+N[$].split(";")[0]));return document.cookie=A+"="+E+L}}function S(A,E){if(!(typeof document>"u")){for(var N={},R=document.cookie?document.cookie.split("; "):[],L=0;L<R.length;L++){var $=R[L].split("="),B=$.slice(1).join("=");!E&&B.charAt(0)==='"'&&(B=B.slice(1,-1));try{var H=s($[0]);if(B=(p.read||p)(B,H)||s(B),E)try{B=JSON.parse(B)}catch{}if(N[H]=B,A===H)break}catch{}}return A?N[A]:N}}return g.set=d,g.get=function(A){return S(A,!1)},g.getJSON=function(A){return S(A,!0)},g.remove=function(A,E){d(A,"",r(E,{expires:-1}))},g.defaults={},g.withConverter=u,g}return u(function(){})})}(tu)),tu.exports}Cp();function Sp(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Ap(){return Sp().getCurrentUser()}function Dp(){return new Promise((i,n)=>{const r=Ap();r===null&&n(null),r?.getSession((s,u)=>{if(s!==null||u===null)return n(null);i({session:u,authenticatedUser:r})})})}async function Op(){const{session:i}=await Dp();return i?.getIdToken().getJwtToken()}ye.createContext(void 0);var Ep="undefined",Tp="object",zi="browser",ru="cpu",iu="device",bs="engine",qi="os",er="name",Hi="type",xs="vendor",Cn="version",Cs="architecture",Ss="major",As="model",Pp="console",Mp="mobile",Rp="tablet",kp="smarttv",Lp="wearable",Np="embedded",Ip=typeof window!==Ep,Ds=Ip&&window.navigator?window.navigator:void 0;Ds&&Ds.userAgentData&&Ds.userAgentData;var Gi=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Vi=function(i){for(var n in i){var r=i[n];typeof r==Tp&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Vi.call(i.init,[[zi,[er,Cn,Ss,Hi]],[ru,[Cs]],[iu,[Hi,As,xs]],[bs,[er,Cn]],[qi,[er,Cn]]]),Vi.call(i.isIgnore,[[zi,[Cn,Ss]],[bs,[Cn]],[qi,[Cn]]]),Vi.call(i.isIgnoreRgx,[[zi,/ ?browser$/i],[qi,/ ?os$/i]]),Vi.call(i.toString,[[zi,[er,Cn]],[ru,[Cs]],[iu,[xs,As]],[bs,[er,Cn]],[qi,[er,Cn]]]),i})(),Gi([er,Cn,Ss,Hi]),Gi([Cs]),Gi([As,xs,Hi,Pp,Mp,kp,Rp,Lp,Np]),Gi([er,Cn]);var Os={exports:{}},$p=Os.exports,ou;function Bp(){return ou||(ou=1,function(i,n){(function(r,s){i.exports=s()})($p,()=>(()=>{var r={873:(g,d)=>{var S,A,E=function(){var N=function(I,P){var D=I,v=se[P],f=null,w=0,h=null,m=[],C={},T=function(j,Z){f=function(W){for(var K=new Array(W),ee=0;ee<W;ee+=1){K[ee]=new Array(W);for(var Se=0;Se<W;Se+=1)K[ee][Se]=null}return K}(w=4*D+17),G(0,0),G(w-7,0),G(0,w-7),ue(),oe(),X(j,Z),D>=7&&we(j),h==null&&(h=_e(D,v,m)),be(h,Z)},G=function(j,Z){for(var W=-1;W<=7;W+=1)if(!(j+W<=-1||w<=j+W))for(var K=-1;K<=7;K+=1)Z+K<=-1||w<=Z+K||(f[j+W][Z+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},oe=function(){for(var j=8;j<w-8;j+=1)f[j][6]==null&&(f[j][6]=j%2==0);for(var Z=8;Z<w-8;Z+=1)f[6][Z]==null&&(f[6][Z]=Z%2==0)},ue=function(){for(var j=le.getPatternPosition(D),Z=0;Z<j.length;Z+=1)for(var W=0;W<j.length;W+=1){var K=j[Z],ee=j[W];if(f[K][ee]==null)for(var Se=-2;Se<=2;Se+=1)for(var l=-2;l<=2;l+=1)f[K+Se][ee+l]=Se==-2||Se==2||l==-2||l==2||Se==0&&l==0}},we=function(j){for(var Z=le.getBCHTypeNumber(D),W=0;W<18;W+=1){var K=!j&&(Z>>W&1)==1;f[Math.floor(W/3)][W%3+w-8-3]=K}for(W=0;W<18;W+=1)K=!j&&(Z>>W&1)==1,f[W%3+w-8-3][Math.floor(W/3)]=K},X=function(j,Z){for(var W=v<<3|Z,K=le.getBCHTypeInfo(W),ee=0;ee<15;ee+=1){var Se=!j&&(K>>ee&1)==1;ee<6?f[ee][8]=Se:ee<8?f[ee+1][8]=Se:f[w-15+ee][8]=Se}for(ee=0;ee<15;ee+=1)Se=!j&&(K>>ee&1)==1,ee<8?f[8][w-ee-1]=Se:ee<9?f[8][15-ee-1+1]=Se:f[8][15-ee-1]=Se;f[w-8][8]=!j},be=function(j,Z){for(var W=-1,K=w-1,ee=7,Se=0,l=le.getMaskFunction(Z),c=w-1;c>0;c-=2)for(c==6&&(c-=1);;){for(var _=0;_<2;_+=1)if(f[K][c-_]==null){var k=!1;Se<j.length&&(k=(j[Se]>>>ee&1)==1),l(K,c-_)&&(k=!k),f[K][c-_]=k,(ee-=1)==-1&&(Se+=1,ee=7)}if((K+=W)<0||w<=K){K-=W,W=-W;break}}},_e=function(j,Z,W){for(var K=Q.getRSBlocks(j,Z),ee=ne(),Se=0;Se<W.length;Se+=1){var l=W[Se];ee.put(l.getMode(),4),ee.put(l.getLength(),le.getLengthInBits(l.getMode(),j)),l.write(ee)}var c=0;for(Se=0;Se<K.length;Se+=1)c+=K[Se].dataCount;if(ee.getLengthInBits()>8*c)throw"code length overflow. ("+ee.getLengthInBits()+">"+8*c+")";for(ee.getLengthInBits()+4<=8*c&&ee.put(0,4);ee.getLengthInBits()%8!=0;)ee.putBit(!1);for(;!(ee.getLengthInBits()>=8*c||(ee.put(236,8),ee.getLengthInBits()>=8*c));)ee.put(17,8);return function(_,k){for(var U=0,te=0,Ae=0,Ce=new Array(k.length),Pe=new Array(k.length),me=0;me<k.length;me+=1){var Re=k[me].dataCount,Ie=k[me].totalCount-Re;te=Math.max(te,Re),Ae=Math.max(Ae,Ie),Ce[me]=new Array(Re);for(var ke=0;ke<Ce[me].length;ke+=1)Ce[me][ke]=255&_.getBuffer()[ke+U];U+=Re;var Xe=le.getErrorCorrectPolynomial(Ie),Qe=ce(Ce[me],Xe.getLength()-1).mod(Xe);for(Pe[me]=new Array(Xe.getLength()-1),ke=0;ke<Pe[me].length;ke+=1){var nt=ke+Qe.getLength()-Pe[me].length;Pe[me][ke]=nt>=0?Qe.getAt(nt):0}}var Et=0;for(ke=0;ke<k.length;ke+=1)Et+=k[ke].totalCount;var pt=new Array(Et),rt=0;for(ke=0;ke<te;ke+=1)for(me=0;me<k.length;me+=1)ke<Ce[me].length&&(pt[rt]=Ce[me][ke],rt+=1);for(ke=0;ke<Ae;ke+=1)for(me=0;me<k.length;me+=1)ke<Pe[me].length&&(pt[rt]=Pe[me][ke],rt+=1);return pt}(ee,K)};C.addData=function(j,Z){var W=null;switch(Z=Z||"Byte"){case"Numeric":W=J(j);break;case"Alphanumeric":W=V(j);break;case"Byte":W=de(j);break;case"Kanji":W=he(j);break;default:throw"mode:"+Z}m.push(W),h=null},C.isDark=function(j,Z){if(j<0||w<=j||Z<0||w<=Z)throw j+","+Z;return f[j][Z]},C.getModuleCount=function(){return w},C.make=function(){if(D<1){for(var j=1;j<40;j++){for(var Z=Q.getRSBlocks(j,v),W=ne(),K=0;K<m.length;K++){var ee=m[K];W.put(ee.getMode(),4),W.put(ee.getLength(),le.getLengthInBits(ee.getMode(),j)),ee.write(W)}var Se=0;for(K=0;K<Z.length;K++)Se+=Z[K].dataCount;if(W.getLengthInBits()<=8*Se)break}D=j}T(!1,function(){for(var l=0,c=0,_=0;_<8;_+=1){T(!0,_);var k=le.getLostPoint(C);(_==0||l>k)&&(l=k,c=_)}return c}())},C.createTableTag=function(j,Z){j=j||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(Z=Z===void 0?4*j:Z)+"px;",W+='">',W+="<tbody>";for(var K=0;K<C.getModuleCount();K+=1){W+="<tr>";for(var ee=0;ee<C.getModuleCount();ee+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+j+"px;",W+=" height: "+j+"px;",W+=" background-color: ",W+=C.isDark(K,ee)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},C.createSvgTag=function(j,Z,W,K){var ee={};typeof arguments[0]=="object"&&(j=(ee=arguments[0]).cellSize,Z=ee.margin,W=ee.alt,K=ee.title),j=j||2,Z=Z===void 0?4*j:Z,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Se,l,c,_,k=C.getModuleCount()*j+2*Z,U="";for(_="l"+j+",0 0,"+j+" -"+j+",0 0,-"+j+"z ",U+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',U+=ee.scalable?"":' width="'+k+'px" height="'+k+'px"',U+=' viewBox="0 0 '+k+" "+k+'" ',U+=' preserveAspectRatio="xMinYMin meet"',U+=K.text||W.text?' role="img" aria-labelledby="'+ve([K.id,W.id].join(" ").trim())+'"':"",U+=">",U+=K.text?'<title id="'+ve(K.id)+'">'+ve(K.text)+"</title>":"",U+=W.text?'<description id="'+ve(W.id)+'">'+ve(W.text)+"</description>":"",U+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',U+='<path d="',l=0;l<C.getModuleCount();l+=1)for(c=l*j+Z,Se=0;Se<C.getModuleCount();Se+=1)C.isDark(l,Se)&&(U+="M"+(Se*j+Z)+","+c+_);return(U+='" stroke="transparent" fill="black"/>')+"</svg>"},C.createDataURL=function(j,Z){j=j||2,Z=Z===void 0?4*j:Z;var W=C.getModuleCount()*j+2*Z,K=Z,ee=W-Z;return Oe(W,W,function(Se,l){if(K<=Se&&Se<ee&&K<=l&&l<ee){var c=Math.floor((Se-K)/j),_=Math.floor((l-K)/j);return C.isDark(_,c)?0:1}return 1})},C.createImgTag=function(j,Z,W){j=j||2,Z=Z===void 0?4*j:Z;var K=C.getModuleCount()*j+2*Z,ee="";return ee+="<img",ee+=' src="',ee+=C.createDataURL(j,Z),ee+='"',ee+=' width="',ee+=K,ee+='"',ee+=' height="',ee+=K,ee+='"',W&&(ee+=' alt="',ee+=ve(W),ee+='"'),ee+"/>"};var ve=function(j){for(var Z="",W=0;W<j.length;W+=1){var K=j.charAt(W);switch(K){case"<":Z+="<";break;case">":Z+=">";break;case"&":Z+="&";break;case'"':Z+=""";break;default:Z+=K}}return Z};return C.createASCII=function(j,Z){if((j=j||1)<2)return function(Ce){Ce=Ce===void 0?2:Ce;var Pe,me,Re,Ie,ke,Xe=1*C.getModuleCount()+2*Ce,Qe=Ce,nt=Xe-Ce,Et={"██":"█","█ ":"▀"," █":"▄"," ":" "},pt={"██":"▀","█ ":"▀"," █":" "," ":" "},rt="";for(Pe=0;Pe<Xe;Pe+=2){for(Re=Math.floor((Pe-Qe)/1),Ie=Math.floor((Pe+1-Qe)/1),me=0;me<Xe;me+=1)ke="█",Qe<=me&&me<nt&&Qe<=Pe&&Pe<nt&&C.isDark(Re,Math.floor((me-Qe)/1))&&(ke=" "),Qe<=me&&me<nt&&Qe<=Pe+1&&Pe+1<nt&&C.isDark(Ie,Math.floor((me-Qe)/1))?ke+=" ":ke+="█",rt+=Ce<1&&Pe+1>=nt?pt[ke]:Et[ke];rt+=`
|
|
114
|
+
`}return Xe%2&&Ce>0?rt.substring(0,rt.length-Xe-1)+Array(Xe+1).join("▀"):rt.substring(0,rt.length-1)}(Z);j-=1,Z=Z===void 0?2*j:Z;var W,K,ee,Se,l=C.getModuleCount()*j+2*Z,c=Z,_=l-Z,k=Array(j+1).join("██"),U=Array(j+1).join(" "),te="",Ae="";for(W=0;W<l;W+=1){for(ee=Math.floor((W-c)/j),Ae="",K=0;K<l;K+=1)Se=1,c<=K&&K<_&&c<=W&&W<_&&C.isDark(ee,Math.floor((K-c)/j))&&(Se=0),Ae+=Se?k:U;for(ee=0;ee<j;ee+=1)te+=Ae+`
|
|
115
|
+
`}return te.substring(0,te.length-1)},C.renderTo2dContext=function(j,Z){Z=Z||2;for(var W=C.getModuleCount(),K=0;K<W;K++)for(var ee=0;ee<W;ee++)j.fillStyle=C.isDark(K,ee)?"black":"white",j.fillRect(K*Z,ee*Z,Z,Z)},C};N.stringToBytes=(N.stringToBytesFuncs={default:function(I){for(var P=[],D=0;D<I.length;D+=1){var v=I.charCodeAt(D);P.push(255&v)}return P}}).default,N.createStringToBytes=function(I,P){var D=function(){for(var f=De(I),w=function(){var oe=f.read();if(oe==-1)throw"eof";return oe},h=0,m={};;){var C=f.read();if(C==-1)break;var T=w(),G=w()<<8|w();m[String.fromCharCode(C<<8|T)]=G,h+=1}if(h!=P)throw h+" != "+P;return m}(),v=63;return function(f){for(var w=[],h=0;h<f.length;h+=1){var m=f.charCodeAt(h);if(m<128)w.push(m);else{var C=D[f.charAt(h)];typeof C=="number"?(255&C)==C?w.push(C):(w.push(C>>>8),w.push(255&C)):w.push(v)}}return w}};var R,L,$,B,H,se={L:1,M:0,Q:3,H:2},le=(R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],L=1335,$=7973,H=function(I){for(var P=0;I!=0;)P+=1,I>>>=1;return P},(B={}).getBCHTypeInfo=function(I){for(var P=I<<10;H(P)-H(L)>=0;)P^=L<<H(P)-H(L);return 21522^(I<<10|P)},B.getBCHTypeNumber=function(I){for(var P=I<<12;H(P)-H($)>=0;)P^=$<<H(P)-H($);return I<<12|P},B.getPatternPosition=function(I){return R[I-1]},B.getMaskFunction=function(I){switch(I){case 0:return function(P,D){return(P+D)%2==0};case 1:return function(P,D){return P%2==0};case 2:return function(P,D){return D%3==0};case 3:return function(P,D){return(P+D)%3==0};case 4:return function(P,D){return(Math.floor(P/2)+Math.floor(D/3))%2==0};case 5:return function(P,D){return P*D%2+P*D%3==0};case 6:return function(P,D){return(P*D%2+P*D%3)%2==0};case 7:return function(P,D){return(P*D%3+(P+D)%2)%2==0};default:throw"bad maskPattern:"+I}},B.getErrorCorrectPolynomial=function(I){for(var P=ce([1],0),D=0;D<I;D+=1)P=P.multiply(ce([1,ae.gexp(D)],0));return P},B.getLengthInBits=function(I,P){if(1<=P&&P<10)switch(I){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+I}else if(P<27)switch(I){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+I}else{if(!(P<41))throw"type:"+P;switch(I){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+I}}},B.getLostPoint=function(I){for(var P=I.getModuleCount(),D=0,v=0;v<P;v+=1)for(var f=0;f<P;f+=1){for(var w=0,h=I.isDark(v,f),m=-1;m<=1;m+=1)if(!(v+m<0||P<=v+m))for(var C=-1;C<=1;C+=1)f+C<0||P<=f+C||m==0&&C==0||h==I.isDark(v+m,f+C)&&(w+=1);w>5&&(D+=3+w-5)}for(v=0;v<P-1;v+=1)for(f=0;f<P-1;f+=1){var T=0;I.isDark(v,f)&&(T+=1),I.isDark(v+1,f)&&(T+=1),I.isDark(v,f+1)&&(T+=1),I.isDark(v+1,f+1)&&(T+=1),T!=0&&T!=4||(D+=3)}for(v=0;v<P;v+=1)for(f=0;f<P-6;f+=1)I.isDark(v,f)&&!I.isDark(v,f+1)&&I.isDark(v,f+2)&&I.isDark(v,f+3)&&I.isDark(v,f+4)&&!I.isDark(v,f+5)&&I.isDark(v,f+6)&&(D+=40);for(f=0;f<P;f+=1)for(v=0;v<P-6;v+=1)I.isDark(v,f)&&!I.isDark(v+1,f)&&I.isDark(v+2,f)&&I.isDark(v+3,f)&&I.isDark(v+4,f)&&!I.isDark(v+5,f)&&I.isDark(v+6,f)&&(D+=40);var G=0;for(f=0;f<P;f+=1)for(v=0;v<P;v+=1)I.isDark(v,f)&&(G+=1);return D+Math.abs(100*G/P/P-50)/5*10},B),ae=function(){for(var I=new Array(256),P=new Array(256),D=0;D<8;D+=1)I[D]=1<<D;for(D=8;D<256;D+=1)I[D]=I[D-4]^I[D-5]^I[D-6]^I[D-8];for(D=0;D<255;D+=1)P[I[D]]=D;return{glog:function(v){if(v<1)throw"glog("+v+")";return P[v]},gexp:function(v){for(;v<0;)v+=255;for(;v>=256;)v-=255;return I[v]}}}();function ce(I,P){if(I.length===void 0)throw I.length+"/"+P;var D=function(){for(var f=0;f<I.length&&I[f]==0;)f+=1;for(var w=new Array(I.length-f+P),h=0;h<I.length-f;h+=1)w[h]=I[h+f];return w}(),v={getAt:function(f){return D[f]},getLength:function(){return D.length},multiply:function(f){for(var w=new Array(v.getLength()+f.getLength()-1),h=0;h<v.getLength();h+=1)for(var m=0;m<f.getLength();m+=1)w[h+m]^=ae.gexp(ae.glog(v.getAt(h))+ae.glog(f.getAt(m)));return ce(w,0)},mod:function(f){if(v.getLength()-f.getLength()<0)return v;for(var w=ae.glog(v.getAt(0))-ae.glog(f.getAt(0)),h=new Array(v.getLength()),m=0;m<v.getLength();m+=1)h[m]=v.getAt(m);for(m=0;m<f.getLength();m+=1)h[m]^=ae.gexp(ae.glog(f.getAt(m))+w);return ce(h,0).mod(f)}};return v}var Q=function(){var I=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],P=function(v,f){var w={};return w.totalCount=v,w.dataCount=f,w},D={getRSBlocks:function(v,f){var w=function(we,X){switch(X){case se.L:return I[4*(we-1)+0];case se.M:return I[4*(we-1)+1];case se.Q:return I[4*(we-1)+2];case se.H:return I[4*(we-1)+3];default:return}}(v,f);if(w===void 0)throw"bad rs block @ typeNumber:"+v+"/errorCorrectionLevel:"+f;for(var h=w.length/3,m=[],C=0;C<h;C+=1)for(var T=w[3*C+0],G=w[3*C+1],oe=w[3*C+2],ue=0;ue<T;ue+=1)m.push(P(G,oe));return m}};return D}(),ne=function(){var I=[],P=0,D={getBuffer:function(){return I},getAt:function(v){var f=Math.floor(v/8);return(I[f]>>>7-v%8&1)==1},put:function(v,f){for(var w=0;w<f;w+=1)D.putBit((v>>>f-w-1&1)==1)},getLengthInBits:function(){return P},putBit:function(v){var f=Math.floor(P/8);I.length<=f&&I.push(0),v&&(I[f]|=128>>>P%8),P+=1}};return D},J=function(I){var P=I,D={getMode:function(){return 1},getLength:function(w){return P.length},write:function(w){for(var h=P,m=0;m+2<h.length;)w.put(v(h.substring(m,m+3)),10),m+=3;m<h.length&&(h.length-m==1?w.put(v(h.substring(m,m+1)),4):h.length-m==2&&w.put(v(h.substring(m,m+2)),7))}},v=function(w){for(var h=0,m=0;m<w.length;m+=1)h=10*h+f(w.charAt(m));return h},f=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return D},V=function(I){var P=I,D={getMode:function(){return 2},getLength:function(f){return P.length},write:function(f){for(var w=P,h=0;h+1<w.length;)f.put(45*v(w.charAt(h))+v(w.charAt(h+1)),11),h+=2;h<w.length&&f.put(v(w.charAt(h)),6)}},v=function(f){if("0"<=f&&f<="9")return f.charCodeAt(0)-48;if("A"<=f&&f<="Z")return f.charCodeAt(0)-65+10;switch(f){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+f}};return D},de=function(I){var P=N.stringToBytes(I);return{getMode:function(){return 4},getLength:function(D){return P.length},write:function(D){for(var v=0;v<P.length;v+=1)D.put(P[v],8)}}},he=function(I){var P=N.stringToBytesFuncs.SJIS;if(!P)throw"sjis not supported.";(function(){var f=P("友");if(f.length!=2||(f[0]<<8|f[1])!=38726)throw"sjis not supported."})();var D=P(I),v={getMode:function(){return 8},getLength:function(f){return~~(D.length/2)},write:function(f){for(var w=D,h=0;h+1<w.length;){var m=(255&w[h])<<8|255&w[h+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(h+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),f.put(m,13),h+=2}if(h<w.length)throw"illegal char at "+(h+1)}};return v},re=function(){var I=[],P={writeByte:function(D){I.push(255&D)},writeShort:function(D){P.writeByte(D),P.writeByte(D>>>8)},writeBytes:function(D,v,f){v=v||0,f=f||D.length;for(var w=0;w<f;w+=1)P.writeByte(D[w+v])},writeString:function(D){for(var v=0;v<D.length;v+=1)P.writeByte(D.charCodeAt(v))},toByteArray:function(){return I},toString:function(){var D="";D+="[";for(var v=0;v<I.length;v+=1)v>0&&(D+=","),D+=I[v];return D+"]"}};return P},De=function(I){var P=I,D=0,v=0,f=0,w={read:function(){for(;f<8;){if(D>=P.length){if(f==0)return-1;throw"unexpected end of file./"+f}var m=P.charAt(D);if(D+=1,m=="=")return f=0,-1;m.match(/^\s$/)||(v=v<<6|h(m.charCodeAt(0)),f+=6)}var C=v>>>f-8&255;return f-=8,C}},h=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return w},Oe=function(I,P,D){for(var v=function(G,oe){var ue=G,we=oe,X=new Array(G*oe),be={setPixel:function(j,Z,W){X[Z*ue+j]=W},write:function(j){j.writeString("GIF87a"),j.writeShort(ue),j.writeShort(we),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(ue),j.writeShort(we),j.writeByte(0);var Z=_e(2);j.writeByte(2);for(var W=0;Z.length-W>255;)j.writeByte(255),j.writeBytes(Z,W,255),W+=255;j.writeByte(Z.length-W),j.writeBytes(Z,W,Z.length-W),j.writeByte(0),j.writeString(";")}},_e=function(j){for(var Z=1<<j,W=1+(1<<j),K=j+1,ee=ve(),Se=0;Se<Z;Se+=1)ee.add(String.fromCharCode(Se));ee.add(String.fromCharCode(Z)),ee.add(String.fromCharCode(W));var l,c,_,k=re(),U=(l=k,c=0,_=0,{write:function(Pe,me){if(Pe>>>me)throw"length over";for(;c+me>=8;)l.writeByte(255&(Pe<<c|_)),me-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=me},flush:function(){c>0&&l.writeByte(_)}});U.write(Z,K);var te=0,Ae=String.fromCharCode(X[te]);for(te+=1;te<X.length;){var Ce=String.fromCharCode(X[te]);te+=1,ee.contains(Ae+Ce)?Ae+=Ce:(U.write(ee.indexOf(Ae),K),ee.size()<4095&&(ee.size()==1<<K&&(K+=1),ee.add(Ae+Ce)),Ae=Ce)}return U.write(ee.indexOf(Ae),K),U.write(W,K),U.flush(),k.toByteArray()},ve=function(){var j={},Z=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;j[K]=Z,Z+=1},size:function(){return Z},indexOf:function(K){return j[K]},contains:function(K){return j[K]!==void 0}};return W};return be}(I,P),f=0;f<P;f+=1)for(var w=0;w<I;w+=1)v.setPixel(w,f,D(w,f));var h=re();v.write(h);for(var m=function(){var G=0,oe=0,ue=0,we="",X={},be=function(ve){we+=String.fromCharCode(_e(63&ve))},_e=function(ve){if(!(ve<0)){if(ve<26)return 65+ve;if(ve<52)return ve-26+97;if(ve<62)return ve-52+48;if(ve==62)return 43;if(ve==63)return 47}throw"n:"+ve};return X.writeByte=function(ve){for(G=G<<8|255&ve,oe+=8,ue+=1;oe>=6;)be(G>>>oe-6),oe-=6},X.flush=function(){if(oe>0&&(be(G<<6-oe),G=0,oe=0),ue%3!=0)for(var ve=3-ue%3,j=0;j<ve;j+=1)we+="="},X.toString=function(){return we},X}(),C=h.toByteArray(),T=0;T<C.length;T+=1)m.writeByte(C[T]);return m.flush(),"data:image/gif;base64,"+m};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(R){for(var L=[],$=0;$<R.length;$++){var B=R.charCodeAt($);B<128?L.push(B):B<2048?L.push(192|B>>6,128|63&B):B<55296||B>=57344?L.push(224|B>>12,128|B>>6&63,128|63&B):($++,B=65536+((1023&B)<<10|1023&R.charCodeAt($)),L.push(240|B>>18,128|B>>12&63,128|B>>6&63,128|63&B))}return L}(N)},(A=typeof(S=function(){return E})=="function"?S.apply(d,[]):S)===void 0||(g.exports=A)}},s={};function u(g){var d=s[g];if(d!==void 0)return d.exports;var S=s[g]={exports:{}};return r[g](S,S.exports,u),S.exports}u.n=g=>{var d=g&&g.__esModule?()=>g.default:()=>g;return u.d(d,{a:d}),d},u.d=(g,d)=>{for(var S in d)u.o(d,S)&&!u.o(g,S)&&Object.defineProperty(g,S,{enumerable:!0,get:d[S]})},u.o=(g,d)=>Object.prototype.hasOwnProperty.call(g,d);var p={};return(()=>{u.d(p,{default:()=>P});const g=D=>!!D&&typeof D=="object"&&!Array.isArray(D);function d(D,...v){if(!v.length)return D;const f=v.shift();return f!==void 0&&g(D)&&g(f)?(D=Object.assign({},D),Object.keys(f).forEach(w=>{const h=D[w],m=f[w];Array.isArray(h)&&Array.isArray(m)?D[w]=m:g(h)&&g(m)?D[w]=d(Object.assign({},h),m):D[w]=m}),d(D,...v)):D}function S(D,v){const f=document.createElement("a");f.download=v,f.href=D,document.body.appendChild(f),f.click(),document.body.removeChild(f)}const A={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:v,type:f,window:w}){this._svg=v,this._type=f,this._window=w}draw(v,f,w,h){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:v,y:f,size:w,getNeighbor:h})}_rotateFigure({x:v,y:f,size:w,rotation:h=0,draw:m}){var C;const T=v+w/2,G=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*h/Math.PI},${T},${G})`)}_basicDot(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+f/2)),this._element.setAttribute("cy",String(h+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_basicSideRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, 0 ${-f}`)}}))}_basicCornerRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h ${f}v `+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_basicCornerExtraRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h ${f}a ${f} ${f}, 0, 0, 0, ${-f} ${-f}`)}}))}_basicCornersRounded(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${f/2} ${f/2}h `+f/2+"v "+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_drawDot({x:v,y:f,size:w}){this._basicDot({x:v,y:f,size:w,rotation:0})}_drawSquare({x:v,y:f,size:w}){this._basicSquare({x:v,y:f,size:w,rotation:0})}_drawRounded({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0,oe=m+C+T+G;if(oe!==0)if(oe>2||m&&C||T&&G)this._basicSquare({x:v,y:f,size:w,rotation:0});else{if(oe===2){let ue=0;return m&&T?ue=Math.PI/2:T&&C?ue=Math.PI:C&&G&&(ue=-Math.PI/2),void this._basicCornerRounded({x:v,y:f,size:w,rotation:ue})}if(oe===1){let ue=0;return T?ue=Math.PI/2:C?ue=Math.PI:G&&(ue=-Math.PI/2),void this._basicSideRounded({x:v,y:f,size:w,rotation:ue})}}else this._basicDot({x:v,y:f,size:w,rotation:0})}_drawExtraRounded({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0,oe=m+C+T+G;if(oe!==0)if(oe>2||m&&C||T&&G)this._basicSquare({x:v,y:f,size:w,rotation:0});else{if(oe===2){let ue=0;return m&&T?ue=Math.PI/2:T&&C?ue=Math.PI:C&&G&&(ue=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:f,size:w,rotation:ue})}if(oe===1){let ue=0;return T?ue=Math.PI/2:C?ue=Math.PI:G&&(ue=-Math.PI/2),void this._basicSideRounded({x:v,y:f,size:w,rotation:ue})}}else this._basicDot({x:v,y:f,size:w,rotation:0})}_drawClassy({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0;m+C+T+G!==0?m||T?C||G?this._basicSquare({x:v,y:f,size:w,rotation:0}):this._basicCornerRounded({x:v,y:f,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:f,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:f,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:v,y:f,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,C=h?+h(1,0):0,T=h?+h(0,-1):0,G=h?+h(0,1):0;m+C+T+G!==0?m||T?C||G?this._basicSquare({x:v,y:f,size:w,rotation:0}):this._basicCornerExtraRounded({x:v,y:f,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:f,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:f,size:w,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},R=Object.values(N);class L{constructor({svg:v,type:f,window:w}){this._svg=v,this._type=f,this._window=w}draw(v,f,w,h){let m;switch(this._type){case N.square:m=this._drawSquare;break;case N.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:v,y:f,size:w,rotation:h})}_rotateFigure({x:v,y:f,size:w,rotation:h=0,draw:m}){var C;const T=v+w/2,G=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*h/Math.PI},${T},${G})`)}_basicDot(v){const{size:f,x:w,y:h}=v,m=f/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w+f/2} ${h}a ${f/2} ${f/2} 0 1 0 0.1 0zm 0 ${m}a ${f/2-m} ${f/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(v){const{size:f,x:w,y:h}=v,m=f/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w} ${h}v ${f}h ${f}v `+-f+`zM ${w+m} ${h+m}h `+(f-2*m)+"v "+(f-2*m)+"h "+(2*m-f)+"z")}}))}_basicExtraRounded(v){const{size:f,x:w,y:h}=v,m=f/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w} ${h+2.5*m}v `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*m}h `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*-m}v `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*-m}h `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*m}M ${w+2.5*m} ${h+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:v,y:f,size:w,rotation:h}){this._basicDot({x:v,y:f,size:w,rotation:h})}_drawSquare({x:v,y:f,size:w,rotation:h}){this._basicSquare({x:v,y:f,size:w,rotation:h})}_drawExtraRounded({x:v,y:f,size:w,rotation:h}){this._basicExtraRounded({x:v,y:f,size:w,rotation:h})}}const $={dot:"dot",square:"square"},B=Object.values($);class H{constructor({svg:v,type:f,window:w}){this._svg=v,this._type=f,this._window=w}draw(v,f,w,h){let m;m=this._type===$.square?this._drawSquare:this._drawDot,m.call(this,{x:v,y:f,size:w,rotation:h})}_rotateFigure({x:v,y:f,size:w,rotation:h=0,draw:m}){var C;const T=v+w/2,G=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*h/Math.PI},${T},${G})`)}_basicDot(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+f/2)),this._element.setAttribute("cy",String(h+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(v){const{size:f,x:w,y:h}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_drawDot({x:v,y:f,size:w,rotation:h}){this._basicDot({x:v,y:f,size:w,rotation:h})}_drawSquare({x:v,y:f,size:w,rotation:h}){this._basicSquare({x:v,y:f,size:w,rotation:h})}}const se="circle",le=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],ae=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class ce{constructor(v,f){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=f,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(v.width)),this._element.setAttribute("height",String(v.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),v.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${v.width} ${v.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=v.image,this._instanceId=ce.instanceCount++,this._options=v}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(v){const f=v.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,h=this._options.shape===se?w/Math.sqrt(2):w,m=this._roundSize(h/f);let C={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=v,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:T,qrOptions:G}=this._options,oe=T.imageSize*A[G.errorCorrectionLevel],ue=Math.floor(oe*f*f);C=function({originalHeight:we,originalWidth:X,maxHiddenDots:be,maxHiddenAxisDots:_e,dotSize:ve}){const j={x:0,y:0},Z={x:0,y:0};if(we<=0||X<=0||be<=0||ve<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/X;return j.x=Math.floor(Math.sqrt(be/W)),j.x<=0&&(j.x=1),_e&&_e<j.x&&(j.x=_e),j.x%2==0&&j.x--,Z.x=j.x*ve,j.y=1+2*Math.ceil((j.x*W-1)/2),Z.y=Math.round(Z.x*W),(j.y*j.x>be||_e&&_e<j.y)&&(_e&&_e<j.y?(j.y=_e,j.y%2==0&&j.x--):j.y-=2,Z.y=j.y*ve,j.x=1+2*Math.ceil((j.y/W-1)/2),Z.x=Math.round(Z.y/W)),{height:Z.y,width:Z.x,hideYDots:j.y,hideXDots:j.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ue,maxHiddenAxisDots:f-14,dotSize:m})}this.drawBackground(),this.drawDots((T,G)=>{var oe,ue,we,X,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&T>=(f-C.hideYDots)/2&&T<(f+C.hideYDots)/2&&G>=(f-C.hideXDots)/2&&G<(f+C.hideXDots)/2||!((oe=le[T])===null||oe===void 0)&&oe[G]||!((ue=le[T-f+7])===null||ue===void 0)&&ue[G]||!((we=le[T])===null||we===void 0)&&we[G-f+7]||!((X=ae[T])===null||X===void 0)&&X[G]||!((be=ae[T-f+7])===null||be===void 0)&&be[G]||!((_e=ae[T])===null||_e===void 0)&&_e[G-f+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:C.width,height:C.height,count:f,dotSize:m})}drawBackground(){var v,f,w;const h=this._element,m=this._options;if(h){const C=(v=m.backgroundOptions)===null||v===void 0?void 0:v.gradient,T=(f=m.backgroundOptions)===null||f===void 0?void 0:f.color;let G=m.height,oe=m.width;if(C||T){const ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((w=m.backgroundOptions)===null||w===void 0)&&w.round&&(G=oe=Math.min(m.width,m.height),ue.setAttribute("rx",String(G/2*m.backgroundOptions.round))),ue.setAttribute("x",String(this._roundSize((m.width-oe)/2))),ue.setAttribute("y",String(this._roundSize((m.height-G)/2))),ue.setAttribute("width",String(oe)),ue.setAttribute("height",String(G)),this._backgroundClipPath.appendChild(ue),this._createColor({options:C,color:T,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(v){var f,w;if(!this._qr)throw"QR code is not defined";const h=this._options,m=this._qr.getModuleCount();if(m>h.width||m>h.height)throw"The canvas is too small.";const C=Math.min(h.width,h.height)-2*h.margin,T=h.shape===se?C/Math.sqrt(2):C,G=this._roundSize(T/m),oe=this._roundSize((h.width-m*G)/2),ue=this._roundSize((h.height-m*G)/2),we=new E({svg:this._element,type:h.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(f=h.dotsOptions)===null||f===void 0?void 0:f.gradient,color:h.dotsOptions.color,additionalRotation:0,x:0,y:0,height:h.height,width:h.width,name:`dot-color-${this._instanceId}`});for(let X=0;X<m;X++)for(let be=0;be<m;be++)v&&!v(X,be)||!((w=this._qr)===null||w===void 0)&&w.isDark(X,be)&&(we.draw(oe+be*G,ue+X*G,G,(_e,ve)=>!(be+_e<0||X+ve<0||be+_e>=m||X+ve>=m)&&!(v&&!v(X+ve,be+_e))&&!!this._qr&&this._qr.isDark(X+ve,be+_e)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(h.shape===se){const X=this._roundSize((C/G-m)/2),be=m+2*X,_e=oe-X*G,ve=ue-X*G,j=[],Z=this._roundSize(be/2);for(let W=0;W<be;W++){j[W]=[];for(let K=0;K<be;K++)W>=X-1&&W<=be-X&&K>=X-1&&K<=be-X||Math.sqrt((W-Z)*(W-Z)+(K-Z)*(K-Z))>Z?j[W][K]=0:j[W][K]=this._qr.isDark(K-2*X<0?K:K>=m?K-2*X:K-X,W-2*X<0?W:W>=m?W-2*X:W-X)?1:0}for(let W=0;W<be;W++)for(let K=0;K<be;K++)j[W][K]&&(we.draw(_e+K*G,ve+W*G,G,(ee,Se)=>{var l;return!!(!((l=j[W+Se])===null||l===void 0)&&l[K+ee])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const v=this._element,f=this._options;if(!v)throw"Element code is not defined";const w=this._qr.getModuleCount(),h=Math.min(f.width,f.height)-2*f.margin,m=f.shape===se?h/Math.sqrt(2):h,C=this._roundSize(m/w),T=7*C,G=3*C,oe=this._roundSize((f.width-w*C)/2),ue=this._roundSize((f.height-w*C)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,X,be])=>{var _e,ve,j,Z,W,K,ee,Se,l,c,_,k,U,te;const Ae=oe+we*C*(w-7),Ce=ue+X*C*(w-7);let Pe=this._dotsClipPath,me=this._dotsClipPath;if((!((_e=f.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((ve=f.cornersSquareOptions)===null||ve===void 0)&&ve.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=me=Pe,this._createColor({options:(j=f.cornersSquareOptions)===null||j===void 0?void 0:j.gradient,color:(Z=f.cornersSquareOptions)===null||Z===void 0?void 0:Z.color,additionalRotation:be,x:Ae,y:Ce,height:T,width:T,name:`corners-square-color-${we}-${X}-${this._instanceId}`})),((W=f.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&R.includes(f.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:f.cornersSquareOptions.type,window:this._window});Re.draw(Ae,Ce,T,be),Re._element&&Pe&&Pe.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((K=f.cornersSquareOptions)===null||K===void 0?void 0:K.type)||f.dotsOptions.type,window:this._window});for(let Ie=0;Ie<le.length;Ie++)for(let ke=0;ke<le[Ie].length;ke++)!((ee=le[Ie])===null||ee===void 0)&&ee[ke]&&(Re.draw(Ae+ke*C,Ce+Ie*C,C,(Xe,Qe)=>{var nt;return!!(!((nt=le[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&Pe&&Pe.appendChild(Re._element))}if((!((Se=f.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((l=f.cornersDotOptions)===null||l===void 0)&&l.color)&&(me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),me.setAttribute("id",`clip-path-corners-dot-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(me),this._cornersDotClipPath=me,this._createColor({options:(c=f.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=f.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:be,x:Ae+2*C,y:Ce+2*C,height:G,width:G,name:`corners-dot-color-${we}-${X}-${this._instanceId}`})),((k=f.cornersDotOptions)===null||k===void 0?void 0:k.type)&&B.includes(f.cornersDotOptions.type)){const Re=new H({svg:this._element,type:f.cornersDotOptions.type,window:this._window});Re.draw(Ae+2*C,Ce+2*C,G,be),Re._element&&me&&me.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((U=f.cornersDotOptions)===null||U===void 0?void 0:U.type)||f.dotsOptions.type,window:this._window});for(let Ie=0;Ie<ae.length;Ie++)for(let ke=0;ke<ae[Ie].length;ke++)!((te=ae[Ie])===null||te===void 0)&&te[ke]&&(Re.draw(Ae+ke*C,Ce+Ie*C,C,(Xe,Qe)=>{var nt;return!!(!((nt=ae[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&me&&me.appendChild(Re._element))}})}loadImage(){return new Promise((v,f)=>{var w;const h=this._options;if(!h.image)return f("Image is not defined");if(!((w=h.nodeCanvas)===null||w===void 0)&&w.loadImage)h.nodeCanvas.loadImage(h.image).then(m=>{var C,T;if(this._image=m,this._options.imageOptions.saveAsBlob){const G=(C=h.nodeCanvas)===null||C===void 0?void 0:C.createCanvas(this._image.width,this._image.height);(T=G?.getContext("2d"))===null||T===void 0||T.drawImage(m,0,0),this._imageUri=G?.toDataURL()}v()}).catch(f);else{const m=new this._window.Image;typeof h.imageOptions.crossOrigin=="string"&&(m.crossOrigin=h.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(C,T){return new Promise(G=>{const oe=new T.XMLHttpRequest;oe.onload=function(){const ue=new T.FileReader;ue.onloadend=function(){G(ue.result)},ue.readAsDataURL(oe.response)},oe.open("GET",C),oe.responseType="blob",oe.send()})}(h.image||"",this._window)),v()},m.src=h.image}})}async drawImage({width:v,height:f,count:w,dotSize:h}){const m=this._options,C=this._roundSize((m.width-w*h)/2),T=this._roundSize((m.height-w*h)/2),G=C+this._roundSize(m.imageOptions.margin+(w*h-v)/2),oe=T+this._roundSize(m.imageOptions.margin+(w*h-f)/2),ue=v-2*m.imageOptions.margin,we=f-2*m.imageOptions.margin,X=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");X.setAttribute("href",this._imageUri||""),X.setAttribute("xlink:href",this._imageUri||""),X.setAttribute("x",String(G)),X.setAttribute("y",String(oe)),X.setAttribute("width",`${ue}px`),X.setAttribute("height",`${we}px`),this._element.appendChild(X)}_createColor({options:v,color:f,additionalRotation:w,x:h,y:m,height:C,width:T,name:G}){const oe=T>C?T:C,ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ue.setAttribute("x",String(h)),ue.setAttribute("y",String(m)),ue.setAttribute("height",String(C)),ue.setAttribute("width",String(T)),ue.setAttribute("clip-path",`url('#clip-path-${G}')`),v){let we;if(v.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(h+T/2)),we.setAttribute("fy",String(m+C/2)),we.setAttribute("cx",String(h+T/2)),we.setAttribute("cy",String(m+C/2)),we.setAttribute("r",String(oe/2));else{const X=((v.rotation||0)+w)%(2*Math.PI),be=(X+2*Math.PI)%(2*Math.PI);let _e=h+T/2,ve=m+C/2,j=h+T/2,Z=m+C/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=T/2,ve-=C/2*Math.tan(X),j+=T/2,Z+=C/2*Math.tan(X)):be>.25*Math.PI&&be<=.75*Math.PI?(ve-=C/2,_e-=T/2/Math.tan(X),Z+=C/2,j+=T/2/Math.tan(X)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=T/2,ve+=C/2*Math.tan(X),j-=T/2,Z-=C/2*Math.tan(X)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(ve+=C/2,_e+=T/2/Math.tan(X),Z-=C/2,j-=T/2/Math.tan(X)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(_e))),we.setAttribute("y1",String(Math.round(ve))),we.setAttribute("x2",String(Math.round(j))),we.setAttribute("y2",String(Math.round(Z)))}v.colorStops.forEach(({offset:X,color:be})=>{const _e=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");_e.setAttribute("offset",100*X+"%"),_e.setAttribute("stop-color",be),we.appendChild(_e)}),ue.setAttribute("fill",`url('#${G}')`),this._defs.appendChild(we)}else f&&ue.setAttribute("fill",f);this._element.appendChild(ue)}}ce.instanceCount=0;const Q=ce,ne="canvas",J={};for(let D=0;D<=40;D++)J[D]=D;const V={type:ne,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:J[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function de(D){const v=Object.assign({},D);if(!v.colorStops||!v.colorStops.length)throw"Field 'colorStops' is required in gradient";return v.rotation?v.rotation=Number(v.rotation):v.rotation=0,v.colorStops=v.colorStops.map(f=>Object.assign(Object.assign({},f),{offset:Number(f.offset)})),v}function he(D){const v=Object.assign({},D);return v.width=Number(v.width),v.height=Number(v.height),v.margin=Number(v.margin),v.imageOptions=Object.assign(Object.assign({},v.imageOptions),{hideBackgroundDots:!!v.imageOptions.hideBackgroundDots,imageSize:Number(v.imageOptions.imageSize),margin:Number(v.imageOptions.margin)}),v.margin>Math.min(v.width,v.height)&&(v.margin=Math.min(v.width,v.height)),v.dotsOptions=Object.assign({},v.dotsOptions),v.dotsOptions.gradient&&(v.dotsOptions.gradient=de(v.dotsOptions.gradient)),v.cornersSquareOptions&&(v.cornersSquareOptions=Object.assign({},v.cornersSquareOptions),v.cornersSquareOptions.gradient&&(v.cornersSquareOptions.gradient=de(v.cornersSquareOptions.gradient))),v.cornersDotOptions&&(v.cornersDotOptions=Object.assign({},v.cornersDotOptions),v.cornersDotOptions.gradient&&(v.cornersDotOptions.gradient=de(v.cornersDotOptions.gradient))),v.backgroundOptions&&(v.backgroundOptions=Object.assign({},v.backgroundOptions),v.backgroundOptions.gradient&&(v.backgroundOptions.gradient=de(v.backgroundOptions.gradient))),v}var re=u(873),De=u.n(re);function Oe(D){if(!D)throw new Error("Extension must be defined");D[0]==="."&&(D=D.substring(1));const v={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[D.toLowerCase()];if(!v)throw new Error(`Extension "${D}" is not supported`);return v}class I{constructor(v){v!=null&&v.jsdom?this._window=new v.jsdom("",{resources:"usable"}).window:this._window=window,this._options=v?he(d(V,v)):V,this.update()}static _clearContainer(v){v&&(v.innerHTML="")}_setupSvg(){if(!this._qr)return;const v=new Q(this._options,this._window);this._svg=v.getElement(),this._svgDrawingPromise=v.drawQR(this._qr).then(()=>{var f;this._svg&&((f=this._extension)===null||f===void 0||f.call(this,v.getElement(),this._options))})}_setupCanvas(){var v,f;this._qr&&(!((v=this._options.nodeCanvas)===null||v===void 0)&&v.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(f=this._svgDrawingPromise)===null||f===void 0?void 0:f.then(()=>{var w;if(!this._svg)return;const h=this._svg,m=new this._window.XMLSerializer().serializeToString(h),C=btoa(m),T=`data:${Oe("svg")};base64,${C}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(T).then(G=>{var oe,ue;G.width=this._options.width,G.height=this._options.height,(ue=(oe=this._nodeCanvas)===null||oe===void 0?void 0:oe.getContext("2d"))===null||ue===void 0||ue.drawImage(G,0,0)});{const G=new this._window.Image;return new Promise(oe=>{G.onload=()=>{var ue,we;(we=(ue=this._domCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||we===void 0||we.drawImage(G,0,0),oe()},G.src=T})}}))}async _getElement(v="png"){if(!this._qr)throw"QR code is empty";return v.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(v){I._clearContainer(this._container),this._options=v?he(d(this._options,v)):this._options,this._options.data&&(this._qr=De()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(f){switch(!0){case/^[0-9]*$/.test(f):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(f):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ne?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(v){if(v){if(typeof v.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ne?this._domCanvas&&v.appendChild(this._domCanvas):this._svg&&v.appendChild(this._svg),this._container=v}}applyExtension(v){if(!v)throw"Extension function should be defined.";this._extension=v,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(v="png"){if(!this._qr)throw"QR code is empty";const f=await this._getElement(v),w=Oe(v);if(!f)return null;if(v.toLowerCase()==="svg"){const h=`<?xml version="1.0" standalone="no"?>\r
|
|
116
116
|
${new this._window.XMLSerializer().serializeToString(f)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(h):new Blob([h],{type:w})}return new Promise(h=>{const m=f;if("toBuffer"in m)if(w==="image/png")h(m.toBuffer(w));else if(w==="image/jpeg")h(m.toBuffer(w));else{if(w!=="application/pdf")throw Error("Unsupported extension");h(m.toBuffer(w))}else"toBlob"in m&&m.toBlob(h,w,1)})}async download(v){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let f="png",w="qr";typeof v=="string"?(f=v,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof v=="object"&&v!==null&&(v.name&&(w=v.name),v.extension&&(f=v.extension));const h=await this._getElement(f);if(h)if(f.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(h);m=`<?xml version="1.0" standalone="no"?>\r
|
|
117
|
-
`+m,S(`data:${Oe(f)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else S(h.toDataURL(Oe(f)),`${w}.${f}`)}}const P=I})(),p.default})())}(Os)),Os.exports}Bp();const su=ye.createContext(void 0);function jp(i){const n=bn.c(9),{children:r,baseUrl:s,queryClient:u}=i;let p;n[0]!==s||n[1]!==u?(p={baseUrl:s,queryClient:u},n[0]=s,n[1]=u,n[2]=p):p=n[2];let g;n[3]!==r||n[4]!==u?(g=O.jsx(yl,{client:u,children:r}),n[3]=r,n[4]=u,n[5]=g):g=n[5];let d;return n[6]!==p||n[7]!==g?(d=O.jsx(su.Provider,{value:p,children:g}),n[6]=p,n[7]=g,n[8]=d):d=n[8],d}function tr(){const i=ye.useContext(su);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Yp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function mr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await mr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function lu(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await mr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function uu(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await mr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function cu(i,n){return fetch(i,{method:"POST",headers:await mr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Fp(i,n,r){return fetch(n,{method:i,headers:await mr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function fu(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await mr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function hu(i,n,r){const s=bn.c(13),{baseUrl:u}=tr();let p;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r?.toString(),s[3]=r,s[4]=A):A=s[4],p=[...n.map(Wp),String(A)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let g;s[5]!==i||s[6]!==u||s[7]!==r?(g=()=>lu(`${u}${i}`,r),s[5]=i,s[6]=u,s[7]=r,s[8]=g):g=s[8];const d=!!r;let S;return s[9]!==p||s[10]!==g||s[11]!==d?(S={queryKey:p,queryFn:g,enabled:d},s[9]=p,s[10]=g,s[11]=d,s[12]=S):S=s[12],bl(S)}function Wp(i){return i.toString()}function du(i,n){const r=bn.c(8),{baseUrl:s}=tr();let u;r[0]!==n?(u=[...n.map(Up)],r[0]=n,r[1]=u):u=r[1];let p;r[2]!==i||r[3]!==s?(p=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let g;return r[5]!==u||r[6]!==p?(g={queryKey:u,queryFn:p},r[5]=u,r[6]=p,r[7]=g):g=r[7],bl(g)}function Up(i){return i.toString()}function pu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(qp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>cu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let d;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(d={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,r[9]=d):d=r[9],ls(d)}function zp(i){return i.toString()}function qp(i){return i.toString()}function Es(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(Gp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>fu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let d;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(d={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,r[9]=d):d=r[9],ls(d)}function Hp(i){return i.toString()}function Gp(i){return i.toString()}function gu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(Kp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>uu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let d;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(d={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,r[9]=d):d=r[9],ls(d)}function Vp(i){return i.toString()}function Kp(i){return i.toString()}var Ki={exports:{}},Zp=Ki.exports,vu;function Qp(){return vu||(vu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,u=36e5,p="millisecond",g="second",d="minute",S="hour",A="day",E="week",N="month",R="quarter",L="year",$="date",B="Invalid Date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,le={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var P=["th","st","nd","rd"],D=I%100;return"["+I+(P[(D-20)%10]||P[D]||P[0])+"]"}},ae=function(I,P,D){var v=String(I);return!v||v.length>=P?I:""+Array(P+1-v.length).join(D)+I},ce={s:ae,z:function(I){var P=-I.utcOffset(),D=Math.abs(P),v=Math.floor(D/60),f=D%60;return(P<=0?"+":"-")+ae(v,2,"0")+":"+ae(f,2,"0")},m:function I(P,D){if(P.date()<D.date())return-I(D,P);var v=12*(D.year()-P.year())+(D.month()-P.month()),f=P.clone().add(v,N),w=D-f<0,h=P.clone().add(v+(w?-1:1),N);return+(-(v+(D-f)/(w?f-h:h-f))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:N,y:L,w:E,d:A,D:$,h:S,m:d,s:g,ms:p,Q:R}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},Q="en",ne={};ne[Q]=le;var J="$isDayjsObject",V=function(I){return I instanceof Ae||!(!I||!I[J])},de=function I(P,D,v){var f;if(!P)return Q;if(typeof P=="string"){var w=P.toLowerCase();ne[w]&&(f=w),D&&(ne[w]=D,f=w);var h=P.split("-");if(!f&&h.length>1)return I(h[0])}else{var m=P.name;ne[m]=P,f=m}return!v&&f&&(Q=f),f||!v&&Q},he=function(I,P){if(V(I))return I.clone();var D=typeof P=="object"?P:{};return D.date=I,D.args=arguments,new Ae(D)},re=ce;re.l=de,re.i=V,re.w=function(I,P){return he(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var Ae=function(){function I(D){this.$L=de(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[J]=!0}var P=I.prototype;return P.parse=function(D){this.$d=function(v){var f=v.date,w=v.utc;if(f===null)return new Date(NaN);if(re.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var h=f.match(H);if(h){var m=h[2]-1||0,C=(h[7]||"0").substring(0,3);return w?new Date(Date.UTC(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,C)):new Date(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,C)}}return new Date(f)}(D),this.init()},P.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},P.$utils=function(){return re},P.isValid=function(){return this.$d.toString()!==B},P.isSame=function(D,v){var f=he(D);return this.startOf(v)<=f&&f<=this.endOf(v)},P.isAfter=function(D,v){return he(D)<this.startOf(v)},P.isBefore=function(D,v){return this.endOf(v)<he(D)},P.$g=function(D,v,f){return re.u(D)?this[v]:this.set(f,D)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(D,v){var f=this,w=!!re.u(v)||v,h=re.p(D),m=function(be,_e){var ve=re.w(f.$u?Date.UTC(f.$y,_e,be):new Date(f.$y,_e,be),f);return w?ve:ve.endOf(A)},C=function(be,_e){return re.w(f.toDate()[be].apply(f.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(_e)),f)},T=this.$W,G=this.$M,oe=this.$D,ue="set"+(this.$u?"UTC":"");switch(h){case L:return w?m(1,0):m(31,11);case N:return w?m(1,G):m(0,G+1);case E:var we=this.$locale().weekStart||0,X=(T<we?T+7:T)-we;return m(w?oe-X:oe+(6-X),G);case A:case $:return C(ue+"Hours",0);case S:return C(ue+"Minutes",1);case d:return C(ue+"Seconds",2);case g:return C(ue+"Milliseconds",3);default:return this.clone()}},P.endOf=function(D){return this.startOf(D,!1)},P.$set=function(D,v){var f,w=re.p(D),h="set"+(this.$u?"UTC":""),m=(f={},f[A]=h+"Date",f[$]=h+"Date",f[N]=h+"Month",f[L]=h+"FullYear",f[S]=h+"Hours",f[d]=h+"Minutes",f[g]=h+"Seconds",f[p]=h+"Milliseconds",f)[w],C=w===A?this.$D+(v-this.$W):v;if(w===N||w===L){var T=this.clone().set($,1);T.$d[m](C),T.init(),this.$d=T.set($,Math.min(this.$D,T.daysInMonth())).$d}else m&&this.$d[m](C);return this.init(),this},P.set=function(D,v){return this.clone().$set(D,v)},P.get=function(D){return this[re.p(D)]()},P.add=function(D,v){var f,w=this;D=Number(D);var h=re.p(v),m=function(G){var oe=he(w);return re.w(oe.date(oe.date()+Math.round(G*D)),w)};if(h===N)return this.set(N,this.$M+D);if(h===L)return this.set(L,this.$y+D);if(h===A)return m(1);if(h===E)return m(7);var C=(f={},f[d]=s,f[S]=u,f[g]=r,f)[h]||1,T=this.$d.getTime()+D*C;return re.w(T,this)},P.subtract=function(D,v){return this.add(-1*D,v)},P.format=function(D){var v=this,f=this.$locale();if(!this.isValid())return f.invalidDate||B;var w=D||"YYYY-MM-DDTHH:mm:ssZ",h=re.z(this),m=this.$H,C=this.$m,T=this.$M,G=f.weekdays,oe=f.months,ue=f.meridiem,we=function(_e,ve,j,Z){return _e&&(_e[ve]||_e(v,w))||j[ve].slice(0,Z)},X=function(_e){return re.s(m%12||12,_e,"0")},be=ue||function(_e,ve,j){var Z=_e<12?"AM":"PM";return j?Z.toLowerCase():Z};return w.replace(se,function(_e,ve){return ve||function(j){switch(j){case"YY":return String(v.$y).slice(-2);case"YYYY":return re.s(v.$y,4,"0");case"M":return T+1;case"MM":return re.s(T+1,2,"0");case"MMM":return we(f.monthsShort,T,oe,3);case"MMMM":return we(oe,T);case"D":return v.$D;case"DD":return re.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return we(f.weekdaysMin,v.$W,G,2);case"ddd":return we(f.weekdaysShort,v.$W,G,3);case"dddd":return G[v.$W];case"H":return String(m);case"HH":return re.s(m,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return be(m,C,!0);case"A":return be(m,C,!1);case"m":return String(C);case"mm":return re.s(C,2,"0");case"s":return String(v.$s);case"ss":return re.s(v.$s,2,"0");case"SSS":return re.s(v.$ms,3,"0");case"Z":return h}return null}(_e)||h.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(D,v,f){var w,h=this,m=re.p(v),C=he(D),T=(C.utcOffset()-this.utcOffset())*s,G=this-C,oe=function(){return re.m(h,C)};switch(m){case L:w=oe()/12;break;case N:w=oe();break;case R:w=oe()/3;break;case E:w=(G-T)/6048e5;break;case A:w=(G-T)/864e5;break;case S:w=G/u;break;case d:w=G/s;break;case g:w=G/r;break;default:w=G}return f?w:re.a(w)},P.daysInMonth=function(){return this.endOf(N).$D},P.$locale=function(){return ne[this.$L]},P.locale=function(D,v){if(!D)return this.$L;var f=this.clone(),w=de(D,v,!0);return w&&(f.$L=w),f},P.clone=function(){return re.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},I}(),Oe=Ae.prototype;return he.prototype=Oe,[["$ms",p],["$s",g],["$m",d],["$H",S],["$W",A],["$M",N],["$y",L],["$D",$]].forEach(function(I){Oe[I[1]]=function(P){return this.$g(P,I[0],I[1])}}),he.extend=function(I,P){return I.$i||(I(P,Ae,he),I.$i=!0),he},he.locale=de,he.isDayjs=V,he.unix=function(I){return he(1e3*I)},he.en=ne[Q],he.Ls=ne,he.p={},he})}(Ki)),Ki.exports}var Jp=Qp();const Te=el(Jp);function Xp({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:u}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=u[n-1][u[n-1].length-1]-1?u[n-1].length-1:u[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===u[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===u[n].length-2&&s>=u[n][u[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:u[n-1].length-1,cellIndex:u[n-1][u[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:u[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===u[n].length-1&&s===u[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===u[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function mu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:u,size:p}){const g=Xp({direction:n,size:p,rowIndex:s,cellIndex:u,levelIndex:r});if(!g)return;const d=i.current?.[g.levelIndex]?.[g.rowIndex]?.[g.cellIndex];d&&(d.disabled||d.getAttribute("data-hidden")||d.getAttribute("data-outside")?mu({controlsRef:i,direction:n,levelIndex:g.levelIndex,cellIndex:g.cellIndex,rowIndex:g.rowIndex,size:p}):d.focus())}function eg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function tg(i){return i.current?.map(n=>n.map(r=>r.length))}function Ts({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:u}){const p=eg(u.key);if(p){u.preventDefault();const g=tg(i);mu({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:g})}}function sn(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function yu(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ng={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},rg=ye.createContext(ng);function nr(){const i=ye.useContext(rg),n=ye.useCallback(p=>p||i.locale,[i.locale]),r=ye.useCallback(p=>typeof p=="number"?p:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(p=>Array.isArray(p)?p:i.weekendDays,[i.weekendDays]),u=ye.useCallback(p=>typeof p=="string"?p:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:u}}function ig({value:i,type:n,withTime:r}){const s=r?yu:sn;if(n==="range"&&Array.isArray(i)){const u=s(i[0]),p=s(i[1]);return u?p?`${u} – ${p}`:`${u} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function _u({value:i,type:n,name:r,form:s,withTime:u=!1}){return O.jsx("input",{type:"hidden",value:ig({value:i,type:n,withTime:u}),name:r,form:s})}_u.displayName="@mantine/dates/HiddenDatesInput";function wu(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var u=i.length;for(n=0;n<u;n++)i[n]&&(r=wu(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ht(){for(var i,n,r=0,s="",u=arguments.length;r<u;r++)(i=arguments[r])&&(n=wu(i))&&(s&&(s+=" "),s+=n);return s}var bu={day:"m_396ce5cb"};const og=F.createVarsResolver((i,{size:n})=>({day:{"--day-size":F.getSize(n,"day-size")}})),Ps=F.factory((i,n)=>{const r=F.useProps("Day",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,date:A,disabled:E,__staticSelector:N,weekend:R,outside:L,selected:$,renderDay:B,inRange:H,firstInRange:se,lastInRange:le,hidden:ae,static:ce,highlightToday:Q,attributes:ne,...J}=r,V=F.useStyles({name:N||"Day",classes:bu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:ne,vars:S,varsResolver:og,rootSelector:"day"});return O.jsx(F.UnstyledButton,{...V("day",{style:ae?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:E,"data-today":Te(A).isSame(new Date,"day")||void 0,"data-hidden":ae||void 0,"data-highlight-today":Q||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&R||void 0,"data-outside":!E&&L||void 0,"data-selected":!E&&$||void 0,"data-in-range":H&&!E||void 0,"data-first-in-range":se&&!E||void 0,"data-last-in-range":le&&!E||void 0,"data-static":ce||void 0,unstyled:d,...J,children:B?.(A)||Te(A).date()})});Ps.classes=bu,Ps.displayName="@mantine/dates/Day";function sg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),u=[];for(let p=0;p<7;p+=1)typeof n=="string"?u.push(Te(s).add(p,"days").locale(i).format(n)):u.push(n(Te(s).add(p,"days").format("YYYY-MM-DD")));return u}var xu={weekday:"m_18a3eca"};const ag=F.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":F.getFontSize(n),"--wr-spacing":F.getSpacing(n)}})),Ms=F.factory((i,n)=>{const r=F.useProps("WeekdaysRow",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,locale:A,firstDayOfWeek:E,weekdayFormat:N,cellComponent:R="th",__staticSelector:L,withWeekNumbers:$,attributes:B,...H}=r,se=F.useStyles({name:L||"WeekdaysRow",classes:xu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:B,vars:S,varsResolver:ag,rootSelector:"weekdaysRow"}),le=nr(),ae=sg({locale:le.getLocale(A),format:N,firstDayOfWeek:le.getFirstDayOfWeek(E)}).map((ce,Q)=>O.jsx(R,{...se("weekday"),children:ce},Q));return O.jsxs(F.Box,{component:"tr",ref:n,...se("weekdaysRow"),...H,children:[$&&O.jsx(R,{...se("weekday"),children:"#"}),ae]})});Ms.classes=xu,Ms.displayName="@mantine/dates/WeekdaysRow";function lg(i,n=1){let r=Te(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function ug(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function cg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),u=Te(s.format("YYYY-M-D")),p=u.format("YYYY-MM-DD"),g=u.add(+u.daysInMonth()-1,"day").format("YYYY-MM-DD"),d=lg(g,n),S=[];let A=Te(ug(p,n));for(;Te(A).isBefore(d,"day");){const E=[];for(let N=0;N<7;N+=1)E.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");S.push(E)}if(r&&S.length<6){const E=S[S.length-1],N=E[E.length-1];let R=Te(N).add(1,"day");for(;S.length<6;){const L=[];for(let $=0;$<7;$+=1)L.push(R.format("YYYY-MM-DD")),R=R.add(1,"day");S.push(L)}}return S}function Rs(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Cu(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Su(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function fg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:u,hideOutsideDates:p,month:g}){const d=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!u?.(E)&&!s?.(E)?.disabled&&(!p||Rs(E,g))),S=d.find(E=>s?.(E)?.selected);if(S)return S;const A=d.find(E=>Te().isSame(E,"date"));return A||d[0]}var Zi={exports:{}},hg=Zi.exports,Au;function dg(){return Au||(Au=1,function(i,n){(function(r,s){i.exports=s()})(hg,function(){var r="day";return function(s,u,p){var g=function(A){return A.add(4-A.isoWeekday(),r)},d=u.prototype;d.isoWeekYear=function(){return g(this).year()},d.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var E,N,R,L,$=g(this),B=(E=this.isoWeekYear(),N=this.$u,R=(N?p.utc:p)().year(E).startOf("year"),L=4-R.isoWeekday(),R.isoWeekday()>4&&(L+=7),R.add(L,r));return $.diff(B,"week")+1},d.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var S=d.startOf;d.startOf=function(A,E){var N=this.$utils(),R=!!N.u(E)||E;return N.p(A)==="isoweek"?R?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(A,E)}}})}(Zi)),Zi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function vg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var Du={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const mg={withCellSpacing:!0},yg=F.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":F.getFontSize(n),"--wn-size":F.getSize(n,"wn-size")}})),Qi=F.factory((i,n)=>{const r=F.useProps("Month",mg,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,__staticSelector:A,locale:E,firstDayOfWeek:N,weekdayFormat:R,month:L,weekendDays:$,getDayProps:B,excludeDate:H,minDate:se,maxDate:le,renderDay:ae,hideOutsideDates:ce,hideWeekdays:Q,getDayAriaLabel:ne,static:J,__getDayRef:V,__onDayKeyDown:de,__onDayClick:he,__onDayMouseEnter:re,__preventFocus:Ae,__stopPropagation:Oe,withCellSpacing:I,size:P,highlightToday:D,withWeekNumbers:v,attributes:f,...w}=r,h=F.useStyles({name:A||"Month",classes:Du,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:f,vars:S,varsResolver:yg,rootSelector:"month"}),m=nr(),C=cg({month:L,firstDayOfWeek:m.getFirstDayOfWeek(N),consistentWeeks:m.consistentWeeks}),T=fg({dates:C,minDate:sn(se),maxDate:sn(le),getDayProps:B,excludeDate:H,hideOutsideDates:ce,month:L}),{resolvedClassNames:G,resolvedStyles:oe}=F.useResolvedStylesApi({classNames:s,styles:g,props:r}),ue=C.map((we,X)=>{const be=we.map((_e,ve)=>{const j=!Rs(_e,L),Z=ne?.(_e)||Te(_e).locale(E||m.locale).format("D MMMM YYYY"),W=B?.(_e),K=Te(_e).isSame(T,"date");return O.jsx("td",{...h("monthCell"),"data-with-spacing":I||void 0,children:O.jsx(Ps,{__staticSelector:A||"Month",classNames:G,styles:oe,unstyled:d,"data-mantine-stop-propagation":Oe||void 0,highlightToday:D,renderDay:ae,date:_e,size:P,weekend:m.getWeekendDays($).includes(Te(_e).get("day")),outside:j,hidden:ce?j:!1,"aria-label":Z,static:J,disabled:H?.(_e)||!Su(_e,sn(le))||!Cu(_e,sn(se)),ref:ee=>{ee&&V?.(X,ve,ee)},...W,onKeyDown:ee=>{W?.onKeyDown?.(ee),de?.(ee,{rowIndex:X,cellIndex:ve,date:_e})},onMouseEnter:ee=>{W?.onMouseEnter?.(ee),re?.(ee,_e)},onClick:ee=>{W?.onClick?.(ee),he?.(ee,_e)},onMouseDown:ee=>{W?.onMouseDown?.(ee),Ae&&ee.preventDefault()},tabIndex:Ae||!K?-1:0})},_e.toString())});return O.jsxs("tr",{...h("monthRow"),children:[v&&O.jsx("td",{...h("weekNumber"),children:vg(we)}),be]},X)});return O.jsxs(F.Box,{component:"table",...h("month"),size:P,ref:n,...w,children:[!Q&&O.jsx("thead",{...h("monthThead"),children:O.jsx(Ms,{__staticSelector:A||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:R,size:P,classNames:G,styles:oe,unstyled:d,withWeekNumbers:v})}),O.jsx("tbody",{...h("monthTbody"),children:ue})]})});Qi.classes=Du,Qi.displayName="@mantine/dates/Month";var Ou={pickerControl:"m_dc6a3c71"};const _g=F.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":F.getFontSize(n),"--dpc-size":F.getSize(n,"dpc-size")}})),Ji=F.factory((i,n)=>{const r=F.useProps("PickerControl",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,firstInRange:A,lastInRange:E,inRange:N,__staticSelector:R,selected:L,disabled:$,attributes:B,...H}=r,se=F.useStyles({name:R||"PickerControl",classes:Ou,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:B,vars:S,varsResolver:_g,rootSelector:"pickerControl"});return O.jsx(F.UnstyledButton,{...se("pickerControl"),ref:n,unstyled:d,"data-picker-control":!0,"data-selected":L&&!$||void 0,"data-disabled":$||void 0,"data-in-range":N&&!$&&!L||void 0,"data-first-in-range":A&&!$||void 0,"data-last-in-range":E&&!$||void 0,disabled:$,...H})});Ji.classes=Ou,Ji.displayName="@mantine/dates/PickerControl";function Eu({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function wg({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const u=i.flat().filter(d=>!Eu({year:d,minDate:n,maxDate:r})&&!s?.(d)?.disabled),p=u.find(d=>s?.(d)?.selected);if(p)return p;const g=u.find(d=>Te().isSame(d,"year"));return g||u[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const u=[[],[],[],[]];for(let p=0;p<4;p+=1){const g=p===3?1:3;for(let d=0;d<g;d+=1)u[p].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return u}var Pu={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const bg={yearsListFormat:"YYYY",withCellSpacing:!0},Xi=F.factory((i,n)=>{const r=F.useProps("YearsList",bg,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,decade:A,yearsListFormat:E,locale:N,minDate:R,maxDate:L,getYearControlProps:$,__staticSelector:B,__getControlRef:H,__onControlKeyDown:se,__onControlClick:le,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:B||"YearsList",classes:Pu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:V,vars:S,rootSelector:"yearsList"}),re=nr(),Ae=Tu(A),Oe=wg({years:Ae,minDate:R,maxDate:L,getYearControlProps:$}),I=Ae.map((P,D)=>{const v=P.map((f,w)=>{const h=$?.(f),m=Te(f).isSame(Oe,"year");return O.jsx("td",{...he("yearsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Ji,{...he("yearsListControl"),size:J,unstyled:d,"data-mantine-stop-propagation":Q||void 0,disabled:Eu({year:f,minDate:R,maxDate:L}),ref:C=>{C&&H?.(D,w,C)},...h,onKeyDown:C=>{h?.onKeyDown?.(C),se?.(C,{rowIndex:D,cellIndex:w,date:f})},onClick:C=>{h?.onClick?.(C),le?.(C,f)},onMouseEnter:C=>{h?.onMouseEnter?.(C),ae?.(C,f)},onMouseDown:C=>{h?.onMouseDown?.(C),ce&&C.preventDefault()},tabIndex:ce||!m?-1:0,children:Te(f).locale(re.getLocale(N)).format(E)})},w)});return O.jsx("tr",{...he("yearsListRow"),children:v},D)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("yearsList"),...de,children:O.jsx("tbody",{children:I})})});Xi.classes=Pu,Xi.displayName="@mantine/dates/YearsList";function Mu({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function xg({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const u=i.flat().filter(d=>!Mu({month:d,minDate:n,maxDate:r})&&!s?.(d)?.disabled),p=u.find(d=>s?.(d)?.selected);if(p)return p;const g=u.find(d=>Te().isSame(d,"month"));return g||u[0]}function Cg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let u=0;u<4;u+=1)for(let p=0;p<3;p+=1)r[u].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ru={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Sg={monthsListFormat:"MMM",withCellSpacing:!0},eo=F.factory((i,n)=>{const r=F.useProps("MonthsList",Sg,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,__staticSelector:A,year:E,monthsListFormat:N,locale:R,minDate:L,maxDate:$,getMonthControlProps:B,__getControlRef:H,__onControlKeyDown:se,__onControlClick:le,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:A||"MonthsList",classes:Ru,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:V,vars:S,rootSelector:"monthsList"}),re=nr(),Ae=Cg(E),Oe=xg({months:Ae,minDate:sn(L),maxDate:sn($),getMonthControlProps:B}),I=Ae.map((P,D)=>{const v=P.map((f,w)=>{const h=B?.(f),m=Te(f).isSame(Oe,"month");return O.jsx("td",{...he("monthsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Ji,{...he("monthsListControl"),size:J,unstyled:d,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:Mu({month:f,minDate:sn(L),maxDate:sn($)}),ref:C=>{C&&H?.(D,w,C)},...h,onKeyDown:C=>{h?.onKeyDown?.(C),se?.(C,{rowIndex:D,cellIndex:w,date:f})},onClick:C=>{h?.onClick?.(C),le?.(C,f)},onMouseEnter:C=>{h?.onMouseEnter?.(C),ae?.(C,f)},onMouseDown:C=>{h?.onMouseDown?.(C),ce&&C.preventDefault()},tabIndex:ce||!m?-1:0,children:Te(f).locale(re.getLocale(R)).format(N)})},w)});return O.jsx("tr",{...he("monthsListRow"),children:v},D)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("monthsList"),...de,children:O.jsx("tbody",{children:I})})});eo.classes=Ru,eo.displayName="@mantine/dates/MonthsList";var ku={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Ag={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Dg=F.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":F.getSize(n,"dch-control-size"),"--dch-fz":F.getFontSize(n)}})),rr=F.factory((i,n)=>{const r=F.useProps("CalendarHeader",Ag,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,nextIcon:A,previousIcon:E,nextLabel:N,previousLabel:R,onNext:L,onPrevious:$,onLevelClick:B,label:H,nextDisabled:se,previousDisabled:le,hasNextLevel:ae,levelControlAriaLabel:ce,withNext:Q,withPrevious:ne,headerControlsOrder:J,__staticSelector:V,__preventFocus:de,__stopPropagation:he,attributes:re,...Ae}=r,Oe=F.useStyles({name:V||"CalendarHeader",classes:ku,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:re,vars:S,varsResolver:Dg,rootSelector:"calendarHeader"}),I=de?w=>w.preventDefault():void 0,P=ne&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":R,onClick:$,unstyled:d,onMouseDown:I,disabled:le,"data-disabled":le||void 0,tabIndex:de||le?-1:0,"data-mantine-stop-propagation":he||void 0},E||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),D=ye.createElement(F.UnstyledButton,{component:ae?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:ae?B:void 0,unstyled:d,onMouseDown:ae?I:void 0,disabled:!ae,"data-static":!ae||void 0,"aria-label":ce,tabIndex:de||!ae?-1:0,"data-mantine-stop-propagation":he||void 0},H),v=Q&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:d,onMouseDown:I,disabled:se,"data-disabled":se||void 0,tabIndex:de||se?-1:0,"data-mantine-stop-propagation":he||void 0},A||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),f=J.map(w=>w==="previous"?P:w==="level"?D:w==="next"?v:null);return O.jsx(F.Box,{...Oe("calendarHeader"),ref:n,...Ae,children:f})});rr.classes=ku,rr.displayName="@mantine/dates/CalendarHeader";function Og(i){const n=Tu(i);return[n[0][0],n[3][0]]}const Eg={decadeLabelFormat:"YYYY"},to=F.factory((i,n)=>{const r=F.useProps("DecadeLevel",Eg,i),{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:d,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:$,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,nextDisabled:Q,previousDisabled:ne,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,decadeLabelFormat:re,classNames:Ae,styles:Oe,unstyled:I,__staticSelector:P,__stopPropagation:D,size:v,attributes:f,...w}=r,h=nr(),[m,C]=Og(s),T={__staticSelector:P||"DecadeLevel",classNames:Ae,styles:Oe,unstyled:I,size:v,attributes:f},G=typeof Q=="boolean"?Q:g?!Te(C).endOf("year").isBefore(g):!1,oe=typeof ne=="boolean"?ne:p?!Te(m).startOf("year").isAfter(p):!1,ue=(we,X)=>Te(we).locale(u||h.locale).format(X);return O.jsxs(F.Box,{"data-decade-level":!0,size:v,ref:n,...w,children:[O.jsx(rr,{label:typeof re=="function"?re(m,C):`${ue(m,re)} – ${ue(C,re)}`,__preventFocus:$,__stopPropagation:D,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,nextDisabled:G,previousDisabled:oe,hasNextLevel:!1,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,...T}),O.jsx(Xi,{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:d,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:$,__stopPropagation:D,withCellSpacing:L,...T})]})});to.classes={...Xi.classes,...rr.classes},to.displayName="@mantine/dates/DecadeLevel";const Tg={yearLabelFormat:"YYYY"},no=F.factory((i,n)=>{const r=F.useProps("YearLevel",Tg,i),{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:d,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:$,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:ne,previousDisabled:J,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:Ae,yearLabelFormat:Oe,__staticSelector:I,__stopPropagation:P,size:D,classNames:v,styles:f,unstyled:w,attributes:h,...m}=r,C=nr(),T={__staticSelector:I||"YearLevel",classNames:v,styles:f,unstyled:w,size:D,attributes:h},G=typeof ne=="boolean"?ne:g?!Te(s).endOf("year").isBefore(g):!1,oe=typeof J=="boolean"?J:p?!Te(s).startOf("year").isAfter(p):!1;return O.jsxs(F.Box,{"data-year-level":!0,size:D,ref:n,...m,children:[O.jsx(rr,{label:typeof Oe=="function"?Oe(s):Te(s).locale(u||C.locale).format(Oe),__preventFocus:$,__stopPropagation:P,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:G,previousDisabled:oe,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:Ae,...T}),O.jsx(eo,{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:d,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:$,__stopPropagation:P,withCellSpacing:L,...T})]})});no.classes={...rr.classes,...eo.classes},no.displayName="@mantine/dates/YearLevel";const Pg={monthLabelFormat:"MMMM YYYY"},ro=F.factory((i,n)=>{const r=F.useProps("MonthLevel",Pg,i),{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__getDayRef:H,__onDayKeyDown:se,__onDayClick:le,__onDayMouseEnter:ae,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:Ae,onNext:Oe,onPrevious:I,onLevelClick:P,nextDisabled:D,previousDisabled:v,hasNextLevel:f,levelControlAriaLabel:w,withNext:h,withPrevious:m,headerControlsOrder:C,monthLabelFormat:T,classNames:G,styles:oe,unstyled:ue,__staticSelector:we,size:X,static:be,attributes:_e,...ve}=r,j=nr(),Z={__staticSelector:we||"MonthLevel",classNames:G,styles:oe,unstyled:ue,size:X,attributes:_e},W=typeof D=="boolean"?D:N?!Te(s).endOf("month").isBefore(N):!1,K=typeof v=="boolean"?v:E?!Te(s).startOf("month").isAfter(E):!1;return O.jsxs(F.Box,{"data-month-level":!0,size:X,ref:n,...ve,children:[O.jsx(rr,{label:typeof T=="function"?T(s):Te(s).locale(u||j.locale).format(T),__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:Ae,onNext:Oe,onPrevious:I,onLevelClick:P,nextDisabled:W,previousDisabled:K,hasNextLevel:f,levelControlAriaLabel:w,withNext:h,withPrevious:m,headerControlsOrder:C,...Z}),O.jsx(Qi,{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__getDayRef:H,__onDayKeyDown:se,__onDayClick:le,__onDayMouseEnter:ae,__preventFocus:J,__stopPropagation:V,static:be,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,...Z})]})});ro.classes={...Qi.classes,...rr.classes},ro.displayName="@mantine/dates/MonthLevel";var Lu={levelsGroup:"m_30b26e33"};const ir=F.factory((i,n)=>{const r=F.useProps("LevelsGroup",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,__staticSelector:A,attributes:E,...N}=r,R=F.useStyles({name:A||"LevelsGroup",classes:Lu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:E,vars:S,rootSelector:"levelsGroup"});return O.jsx(F.Box,{ref:n,...R("levelsGroup"),...N})});ir.classes=Lu,ir.displayName="@mantine/dates/LevelsGroup";const Mg={numberOfColumns:1},io=F.factory((i,n)=>{const r=F.useProps("DecadeLevelGroup",Mg,i),{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:d,getYearControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,nextDisabled:ae,previousDisabled:ce,headerControlsOrder:Q,classNames:ne,styles:J,unstyled:V,__staticSelector:de,__stopPropagation:he,numberOfColumns:re,levelControlAriaLabel:Ae,decadeLabelFormat:Oe,size:I,vars:P,attributes:D,...v}=r,f=ye.useRef([]),w=Array(re).fill(0).map((h,m)=>{const C=Te(s).add(m*10,"years").format("YYYY-MM-DD");return O.jsx(to,{size:I,yearsListFormat:d,decade:C,withNext:m===re-1,withPrevious:m===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(T,G)=>Ts({levelIndex:m,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:T,controlsRef:f}),__getControlRef:(T,G,oe)=>{Array.isArray(f.current[m])||(f.current[m]=[]),Array.isArray(f.current[m][T])||(f.current[m][T]=[]),f.current[m][T][G]=oe},levelControlAriaLabel:typeof Ae=="function"?Ae(C):Ae,locale:u,minDate:p,maxDate:g,__preventFocus:R,__stopPropagation:he,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,nextDisabled:ae,previousDisabled:ce,getYearControlProps:S,__staticSelector:de||"DecadeLevelGroup",classNames:ne,styles:J,unstyled:V,withCellSpacing:N,headerControlsOrder:Q,attributes:D},m)});return O.jsx(ir,{classNames:ne,styles:J,__staticSelector:de||"DecadeLevelGroup",ref:n,size:I,unstyled:V,attributes:D,...v,children:w})});io.classes={...ir.classes,...to.classes},io.displayName="@mantine/dates/DecadeLevelGroup";const Rg={numberOfColumns:1},oo=F.factory((i,n)=>{const r=F.useProps("YearLevelGroup",Rg,i),{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:d,getMonthControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,headerControlsOrder:J,classNames:V,styles:de,unstyled:he,__staticSelector:re,__stopPropagation:Ae,numberOfColumns:Oe,levelControlAriaLabel:I,yearLabelFormat:P,size:D,vars:v,attributes:f,...w}=r,h=ye.useRef([]),m=Array(Oe).fill(0).map((C,T)=>{const G=Te(s).add(T,"years").format("YYYY-MM-DD");return O.jsx(no,{size:D,monthsListFormat:d,year:G,withNext:T===Oe-1,withPrevious:T===0,yearLabelFormat:P,__stopPropagation:Ae,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(oe,ue)=>Ts({levelIndex:T,rowIndex:ue.rowIndex,cellIndex:ue.cellIndex,event:oe,controlsRef:h}),__getControlRef:(oe,ue,we)=>{Array.isArray(h.current[T])||(h.current[T]=[]),Array.isArray(h.current[T][oe])||(h.current[T][oe]=[]),h.current[T][oe][ue]=we},levelControlAriaLabel:typeof I=="function"?I(G):I,locale:u,minDate:p,maxDate:g,__preventFocus:R,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,getMonthControlProps:S,classNames:V,styles:de,unstyled:he,__staticSelector:re||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:J,attributes:f},T)});return O.jsx(ir,{classNames:V,styles:de,__staticSelector:re||"YearLevelGroup",ref:n,size:D,unstyled:he,attributes:f,...w,children:m})});oo.classes={...no.classes,...ir.classes},oo.displayName="@mantine/dates/YearLevelGroup";const kg={numberOfColumns:1},so=F.factory((i,n)=>{const r=F.useProps("MonthLevelGroup",kg,i),{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__onDayClick:H,__onDayMouseEnter:se,withCellSpacing:le,highlightToday:ae,withWeekNumbers:ce,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:I,hasNextLevel:P,headerControlsOrder:D,classNames:v,styles:f,unstyled:w,numberOfColumns:h,levelControlAriaLabel:m,monthLabelFormat:C,__staticSelector:T,__stopPropagation:G,size:oe,static:ue,vars:we,attributes:X,...be}=r,_e=ye.useRef([]),ve=Array(h).fill(0).map((j,Z)=>{const W=Te(s).add(Z,"months").format("YYYY-MM-DD");return O.jsx(ro,{month:W,withNext:Z===h-1,withPrevious:Z===0,monthLabelFormat:C,__stopPropagation:G,__onDayClick:H,__onDayMouseEnter:se,__onDayKeyDown:(K,ee)=>Ts({levelIndex:Z,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:K,controlsRef:_e}),__getDayRef:(K,ee,Se)=>{Array.isArray(_e.current[Z])||(_e.current[Z]=[]),Array.isArray(_e.current[Z][K])||(_e.current[Z][K]=[]),_e.current[Z][K][ee]=Se},levelControlAriaLabel:typeof m=="function"?m(W):m,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:I,hasNextLevel:P,classNames:v,styles:f,unstyled:w,__staticSelector:T||"MonthLevelGroup",size:oe,static:ue,withCellSpacing:le,highlightToday:ae,withWeekNumbers:ce,headerControlsOrder:D,attributes:X},Z)});return O.jsx(ir,{classNames:v,styles:f,__staticSelector:T||"MonthLevelGroup",ref:n,size:oe,attributes:X,...be,children:ve})});so.classes={...ir.classes,...ro.classes},so.displayName="@mantine/dates/MonthLevelGroup";const Nu=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Iu=(i,n)=>{const r=n?yu:sn;return Array.isArray(i)?i.map(r):r(i)};function ks({type:i,value:n,defaultValue:r,onChange:s,withTime:u=!1}){const p=ye.useRef(i),[g,d,S]=Mt.useUncontrolled({value:Iu(n,u),defaultValue:Iu(r,u),finalValue:Nu(i),onChange:s});let A=g;return p.current!==i&&(p.current=i,n===void 0&&(A=r!==void 0?r:Nu(i),d(A))),[A,d,S]}function Ls(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function Lg(i){return i===0?"month":i===1?"year":"decade"}function pi(i,n,r){return Lg(Mt.clamp(Ls(i,0),Ls(n,0),Ls(r,2)))}const Ng={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},ao=F.factory((i,n)=>{const r=F.useProps("Calendar",Ng,i),{vars:s,maxLevel:u,minLevel:p,defaultLevel:g,level:d,onLevelChange:S,date:A,defaultDate:E,onDateChange:N,numberOfColumns:R,columnsToScroll:L,ariaLabels:$,nextLabel:B,previousLabel:H,onYearSelect:se,onMonthSelect:le,onYearMouseEnter:ae,onMonthMouseEnter:ce,headerControlsOrder:Q,__updateDateOnYearSelect:ne,__updateDateOnMonthSelect:J,__setDateRef:V,__setLevelRef:de,firstDayOfWeek:he,weekdayFormat:re,weekendDays:Ae,getDayProps:Oe,excludeDate:I,renderDay:P,hideOutsideDates:D,hideWeekdays:v,getDayAriaLabel:f,monthLabelFormat:w,nextIcon:h,previousIcon:m,__onDayClick:C,__onDayMouseEnter:T,withCellSpacing:G,highlightToday:oe,withWeekNumbers:ue,monthsListFormat:we,getMonthControlProps:X,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:ve,decadeLabelFormat:j,classNames:Z,styles:W,unstyled:K,minDate:ee,maxDate:Se,locale:l,__staticSelector:c,size:_,__preventFocus:k,__stopPropagation:U,onNextDecade:te,onPreviousDecade:De,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:me,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Xe,...Qe}=r,{resolvedClassNames:nt,resolvedStyles:Et}=F.useResolvedStylesApi({classNames:Z,styles:W,props:r}),[pt,rt]=Mt.useUncontrolled({value:d?pi(d,p,u):void 0,defaultValue:g?pi(g,p,u):void 0,finalValue:pi(void 0,p,u),onChange:S}),[An,St]=ks({type:"default",value:sn(A),defaultValue:sn(E),onChange:N});ye.useImperativeHandle(V,()=>ze=>{St(ze)}),ye.useImperativeHandle(de,()=>ze=>{rt(ze)});const Dn={__staticSelector:c||"Calendar",styles:Et,classNames:nt,unstyled:K,size:_,attributes:Xe},At=L||R||1,jt=new Date,On=ee&&Te(jt).isAfter(ee)?ee:Te(jt).format("YYYY-MM-DD"),yt=An||On,an=()=>{const ze=Te(yt).add(At,"month").format("YYYY-MM-DD");me?.(ze),St(ze)},ln=()=>{const ze=Te(yt).subtract(At,"month").format("YYYY-MM-DD");Re?.(ze),St(ze)},Yt=()=>{const ze=Te(yt).add(At,"year").format("YYYY-MM-DD");Ce?.(ze),St(ze)},Lt=()=>{const ze=Te(yt).subtract(At,"year").format("YYYY-MM-DD");Pe?.(ze),St(ze)},Ft=()=>{const ze=Te(yt).add(10*At,"year").format("YYYY-MM-DD");te?.(ze),St(ze)},Wt=()=>{const ze=Te(yt).subtract(10*At,"year").format("YYYY-MM-DD");De?.(ze),St(ze)},Kt=ye.useRef(null);ye.useEffect(()=>{if(!ke||Ie)return;const ze=at=>{if(!Kt.current?.contains(document.activeElement))return;const Nt=at.ctrlKey||at.metaKey,Zt=at.shiftKey;switch(at.key){case"ArrowUp":Nt&&Zt?(at.preventDefault(),Wt()):Nt&&(at.preventDefault(),Lt());break;case"ArrowDown":Nt&&Zt?(at.preventDefault(),Ft()):Nt&&(at.preventDefault(),Yt());break;case"y":case"Y":pt==="month"&&(at.preventDefault(),rt("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[ke,Ie,pt,Yt,Lt,Ft,Wt]);const Ut=ze=>{Kt.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(F.Box,{ref:Ut,size:_,"data-calendar":!0,...Qe,children:[pt==="month"&&O.jsx(so,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:he,weekdayFormat:re,weekendDays:Ae,getDayProps:Oe,excludeDate:I,renderDay:P,hideOutsideDates:D,hideWeekdays:v,getDayAriaLabel:f,onNext:an,onPrevious:ln,hasNextLevel:u!=="month",onLevelClick:()=>rt("year"),numberOfColumns:R,locale:l,levelControlAriaLabel:$?.monthLevelControl,nextLabel:$?.nextMonth??B,nextIcon:h,previousLabel:$?.previousMonth??H,previousIcon:m,monthLabelFormat:w,__onDayClick:C,__onDayMouseEnter:T,__preventFocus:k,__stopPropagation:U,static:Ie,withCellSpacing:G,highlightToday:oe,withWeekNumbers:ue,headerControlsOrder:Q,...Dn}),pt==="year"&&O.jsx(oo,{year:yt,numberOfColumns:R,minDate:ee,maxDate:Se,monthsListFormat:we,getMonthControlProps:X,locale:l,onNext:Yt,onPrevious:Lt,hasNextLevel:u!=="month"&&u!=="year",onLevelClick:()=>rt("decade"),levelControlAriaLabel:$?.yearLevelControl,nextLabel:$?.nextYear??B,nextIcon:h,previousLabel:$?.previousYear??H,previousIcon:m,yearLabelFormat:be,__onControlMouseEnter:ce,__onControlClick:(ze,at)=>{J&&St(at),rt(pi("month",p,u)),le?.(at)},__preventFocus:k,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Dn}),pt==="decade"&&O.jsx(io,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:_e,getYearControlProps:ve,locale:l,onNext:Ft,onPrevious:Wt,numberOfColumns:R,nextLabel:$?.nextDecade??B,nextIcon:h,previousLabel:$?.previousDecade??H,previousIcon:m,decadeLabelFormat:j,__onControlMouseEnter:ae,__onControlClick:(ze,at)=>{ne&&St(at),rt(pi("year",p,u)),se?.(at)},__preventFocus:k,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Dn})]})});ao.classes={...io.classes,...oo.classes,...so.classes},ao.displayName="@mantine/dates/Calendar";function Ig(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:p,nextIcon:g,previousIcon:d,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:$,previousLabel:B,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,__setDateRef:I,__setLevelRef:P,withWeekNumbers:D,headerControlsOrder:v,firstDayOfWeek:f,weekdayFormat:w,weekendDays:h,getDayProps:m,excludeDate:C,renderDay:T,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:ue,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:j,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:l,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:p,nextIcon:g,previousIcon:d,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:$,previousLabel:B,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,__setDateRef:I,withWeekNumbers:D,headerControlsOrder:v,firstDayOfWeek:f,weekdayFormat:w,weekendDays:h,getDayProps:m,excludeDate:C,renderDay:T,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:ue,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:j,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:l},others:c}}function $g(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Te(n).format("YYYY-MM-DD")}function Bg({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Te(i).isAfter(n,"date")||r&&Te(i).isBefore(r,"date"))}const jg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},lo=F.factory((i,n)=>{const r=F.useInputProps("DateInput",jg,i),{inputProps:s,wrapperProps:u,value:p,defaultValue:g,onChange:d,clearable:S,clearButtonProps:A,popoverProps:E,getDayProps:N,locale:R,valueFormat:L,dateParser:$,minDate:B,maxDate:H,fixOnBlur:se,onFocus:le,onBlur:ae,onClick:ce,onKeyDown:Q,readOnly:ne,name:J,form:V,rightSection:de,unstyled:he,classNames:re,styles:Ae,allowDeselect:Oe,date:I,defaultDate:P,onDateChange:D,getMonthControlProps:v,getYearControlProps:f,...w}=r,h=ye.useRef(null),m=ye.useRef(null),[C,T]=ye.useState(!1),{calendarProps:G,others:oe}=Ig(w),ue=nr(),X=$||(Ce=>{const Pe=Te(Ce,L,ue.getLocale(R)).toDate();return Number.isNaN(Pe.getTime())?$g(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:S,_e=Ce=>Ce?Te(Ce).locale(ue.getLocale(R)).format(L):"",[ve,j,Z]=ks({type:"default",value:p,defaultValue:g,onChange:d}),[W,K]=ks({type:"default",value:I,defaultValue:g||P,onChange:D});ye.useEffect(()=>{Z&&p!==null&&K(p)},[Z,p]);const[ee,Se]=ye.useState(_e(ve));ye.useEffect(()=>{Se(_e(ve))},[ue.getLocale(R)]);const l=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),T(!0),Pe.trim()===""&&S)j(null);else{const me=X(Pe);me&&Bg({date:me,minDate:B,maxDate:H})&&(j(me),K(me))}},c=Ce=>{ae?.(Ce),T(!1),se&&Se(_e(ve))},_=Ce=>{le?.(Ce),T(!0)},k=Ce=>{ce?.(Ce),T(!0)},U=Ce=>{Ce.key==="Escape"&&T(!1),Q?.(Ce)},te=Ce=>({...N?.(Ce),selected:Te(ve).isSame(Ce,"day"),onClick:Pe=>{N?.(Ce).onClick?.(Pe);const me=S&&be&&Te(ve).isSame(Ce,"day")?null:Ce;j(me),!Z&&me&&Se(_e(me)),T(!1)}}),De=de||(S&&ve&&!ne?O.jsx(F.CloseButton,{variant:"transparent",onMouseDown:Ce=>Ce.preventDefault(),tabIndex:-1,onClick:()=>{j(null),!Z&&Se(""),T(!1)},unstyled:he,size:s.size||"sm",...A}):null);return Mt.useDidUpdate(()=>{ve!==void 0&&!C&&Se(_e(ve))},[ve]),Mt.useClickOutside(()=>T(!1),void 0,[h.current,m.current]),O.jsxs(O.Fragment,{children:[O.jsx(F.Input.Wrapper,{...u,__staticSelector:"DateInput",ref:h,children:O.jsxs(F.Popover,{opened:C,trapFocus:!1,position:"bottom-start",disabled:ne,withRoles:!1,unstyled:he,...E,children:[O.jsx(F.Popover.Target,{children:O.jsx(F.Input,{"data-dates-input":!0,"data-read-only":ne||void 0,autoComplete:"off",ref:n,value:ee,onChange:l,onBlur:c,onFocus:_,onClick:k,onKeyDown:U,readOnly:ne,rightSection:De,...s,...oe,__staticSelector:"DateInput"})}),O.jsx(F.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:m,children:O.jsx(ao,{__staticSelector:"DateInput",...G,classNames:re,styles:Ae,unstyled:he,__preventFocus:!0,minDate:B,maxDate:H,locale:R,getDayProps:te,size:s.size,date:W,onDateChange:K,getMonthControlProps:Ce=>({selected:typeof ve=="string"?Rs(Ce,ve):!1,...v?.(Ce)}),getYearControlProps:Ce=>({selected:typeof ve=="string"?Te(Ce).isSame(ve,"year"):!1,...f?.(Ce)}),attributes:u.attributes})})]})}),O.jsx(_u,{name:J,form:V,value:ve,type:"default"})]})});lo.classes={...F.Input.classes,...ao.classes},lo.displayName="@mantine/dates/DateInput";function Yg(i){const n=bn.c(51),{fields:r,onClose:s,queryKey:u,apiPath:p,steps:g,onCreated:d}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1),[R,L]=ye.useState(),{mutateAsync:$,isError:B,error:H,isPending:se}=pu(p,u),{mutateAsync:le,isPending:ae}=Es(p,u),ce=se||ae;let Q;n[0]!==r?(Q=new Set(r.filter(Hg).map(qg)),n[0]=r,n[1]=Q):Q=n[1];let ne;n[2]!==Q?(ne=[...Q],n[2]=Q,n[3]=ne):ne=n[3];const J=ne;let V;n[4]!==r?(V=r.reduce(zg,{}),n[4]=r,n[5]=V):V=n[5];let de;n[6]!==r?(de=r.filter(Ug).reduce(Fg,{}),n[6]=r,n[7]=de):de=n[7];let he;n[8]!==V||n[9]!==de?(he={mode:"uncontrolled",initialValues:V,validate:de},n[8]=V,n[9]=de,n[10]=he):he=n[10];const re=Xa.useForm(he);let Ae;n[11]!==re?(Ae=function(T){return T.conditional?T.conditional(re.getValues()):!0},n[11]=re,n[12]=Ae):Ae=n[12];const Oe=Ae;let I;n[13]!==re||n[14]!==R||n[15]!==Oe?(I=function(T){return Oe(T)?O.jsxs(ye.Fragment,{children:[(T.type===void 0||T.type=="text")&&O.jsx(F.TextInput,{label:T.column.title,placeholder:T.placeholder??"",...re.getInputProps(T.id),type:T.id.includes("email")?"email":void 0},re.key(T.id)),T.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:T.column.title,placeholder:T.placeholder??"",...re.getInputProps(T.id)},re.key(T.id)),T.type==="date"&&O.jsx(lo,{label:T.column.title,placeholder:T.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(T.id)},re.key(T.id)),T.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:T.column.title,...re.getInputProps(T.id,{type:"checkbox"})},re.key(T.id)),T.type==="textarea"&&O.jsx(F.Textarea,{label:T.column.title,placeholder:T.placeholder??"",...re.getInputProps(T.id),minRows:3,autosize:!0},re.key(T.id)),T.type==="custom"&&T.render&&T.render({...re.getValues(),...R&&{id:R}},re.setValues,N)]},T.id):null},n[13]=re,n[14]=R,n[15]=Oe,n[16]=I):I=n[16];const P=I;let D;n[17]!==H?.message||n[18]!==H?.name||n[19]!==B?(D=B&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[17]=H?.message,n[18]=H?.name,n[19]=B,n[20]=D):D=n[20];let v;n[21]!==S||n[22]!==$||n[23]!==re||n[24]!==B||n[25]!==s||n[26]!==d||n[27]!==R||n[28]!==J.length||n[29]!==le?(v=re.onSubmit(async C=>{if(R)await le({...C,id:R});else{const T=await $(C);L(T.id),d?.(T.id)}J.length&&S<J.length-1?B||A(S+1):B||(re.setInitialValues(C),re.reset(),s())}),n[21]=S,n[22]=$,n[23]=re,n[24]=B,n[25]=s,n[26]=d,n[27]=R,n[28]=J.length,n[29]=le,n[30]=v):v=n[30];let f;n[31]!==S||n[32]!==r||n[33]!==P||n[34]!==Oe||n[35]!==g||n[36]!==J?(f=J.length?O.jsx(F.Stepper,{active:S,size:"sm",children:J.map(C=>O.jsx(F.Stepper.Step,{...g&&g[C-1]?{label:g[C-1].label}:{},children:r.filter(T=>T.step===C&&Oe(T)).map(T=>P(T))},C))}):r.filter(Oe).map(C=>P(C)),n[31]=S,n[32]=r,n[33]=P,n[34]=Oe,n[35]=g,n[36]=J,n[37]=f):f=n[37];let w;n[38]!==S||n[39]!==E||n[40]!==ce||n[41]!==s||n[42]!==J.length?(w=!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>J.length?S===0?s():A(S-1):s(),variant:"outline",children:J.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:ce,children:J.length?S===J.length-1?"Speichern":"Weiter":"Speichern"})]}),n[38]=S,n[39]=E,n[40]=ce,n[41]=s,n[42]=J.length,n[43]=w):w=n[43];let h;n[44]!==f||n[45]!==w||n[46]!==v?(h=O.jsxs("form",{onSubmit:v,children:[f,w]}),n[44]=f,n[45]=w,n[46]=v,n[47]=h):h=n[47];let m;return n[48]!==h||n[49]!==D?(m=O.jsxs(O.Fragment,{children:[D,h]}),n[48]=h,n[49]=D,n[50]=m):m=n[50],m}function Fg(i,n){return i[n.id]=Wg,i}function Wg(i){return i?null:"Pflichtfeld"}function Ug(i){return i.required}function zg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function qg(i){return i.step}function Hg(i){return typeof i.step=="number"}var[Gg,Ns]=F.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),$u=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:u,setColumnsToggle:p,resetColumnsOrder:g,resetColumnsToggle:d,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E}=i,[N,R]=ye.useState(""),[L,$]=ye.useState("");return O.jsx(Gg,{value:{sourceColumn:N,setSourceColumn:R,targetColumn:L,setTargetColumn:$,columnsToggle:u,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!N||!L)return;let B=r.indexOf(N),H=r.indexOf(L);if(B!==-1&&H!==-1){let se=r.splice(B,1)[0];r.splice(H,0,se),s([...r])}},resetColumnsOrder:g,resetColumnsToggle:d,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E},children:n})};function Vg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Kg(){return O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),O.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),O.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),O.jsx("path",{d:"M3 3l18 18"})]})}function Zg({icon:i,text:n,active:r,children:s}){return O.jsx(F.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||O.jsxs(O.Fragment,{children:[i||O.jsx("div",{className:"mantine-datatable-empty-state-icon",children:O.jsx(Kg,{})}),O.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V)&&J.push(V)}),ne.forEach(V=>{J.includes(V.accessor)||J.push(V.accessor)}),J}function u(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V.accessor)&&J.push(V)}),ne.forEach(V=>{J.find(de=>de.accessor===V.accessor)||J.push({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})}),J}function p(Q,ne){let J=[];return Q.forEach(V=>{let de=Object.keys(V)[0];ne.find(he=>he.accessor===de)&&J.push(V)}),ne.forEach(V=>{let de=V.accessor;if(!J.find(he=>Object.keys(he)[0]===de)){let he={};he[de]="",J.push(he)}}),J}function g(){let[Q,ne]=Mt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=s(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[V,J]}function d(){let[Q,ne]=Mt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?N:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=u(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[u(Q,n),J]}function S(){let[Q,ne]=Mt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=p(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[p(Q,n),J]}let A=n&&n.map(Q=>Q.accessor)||[],E=n&&n.map(Q=>({[Q.accessor]:Q.width??"initial"}))||[],N=n&&n.map(Q=>({accessor:Q.accessor,defaultToggle:Q.defaultToggle||!0,toggleable:Q.toggleable,toggled:Q.defaultToggle===void 0?!0:Q.defaultToggle})),[R,L]=g(),[$,B]=d(),[H,se]=S(),le=()=>L(A),ae=()=>{B(N)},ce=()=>se(E);return{effectiveColumns:ye.useMemo(()=>R?R.map(Q=>n.find(ne=>ne.accessor===Q)).map(Q=>({...Q,hidden:Q?.hidden||!$.find(ne=>ne.accessor===Q?.accessor)?.toggled})).map(Q=>({...Q,width:H.find(ne=>ne[Q?.accessor])?.[Q?.accessor]})):n,[n,R,$,H]),setColumnsOrder:L,columnsOrder:R,resetColumnsOrder:le,columnsToggle:$,setColumnsToggle:B,resetColumnsToggle:ae,columnsWidth:H,setColumnsWidth:se,setColumnWidth:(Q,ne)=>{let J=H.map(V=>V[Q]?{[Q]:ne}:V);se(J)},setMultipleColumnWidths:Q=>{let ne=H.map(J=>{let V=Object.keys(J)[0],de=Q.find(he=>he.accessor===V);return de?{[V]:de.width}:J});se(ne)},resetColumnsWidth:ce}},Bu=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function ju(i){let n=ye.useRef(i);return n.current=i,n}var Yu="--mantine-datatable-header-height",Fu="--mantine-datatable-footer-height",Wu="--mantine-datatable-selection-column-width",Uu="--mantine-datatable-last-row-border-bottom";function Sn(i,n,r){i?.style.setProperty(n,r)}function Is(i){let n=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];return n?{width:n.inlineSize,height:n.blockSize}:{width:i.contentRect.width,height:i.contentRect.height}}function $s(i,n,r){if(i){let s=new ResizeObserver(u=>{let p=u[0];p&&n(Is(p))});return s.observe(i),()=>{s.disconnect(),r()}}}function Jg({scrollCallbacks:i,withRowBorders:n}){let r={root:ye.useRef(null),table:ye.useRef(null),scrollViewport:ye.useRef(null),header:ye.useRef(null),footer:ye.useRef(null),selectionColumnHeader:ye.useRef(null)},{root:s,table:u,scrollViewport:p,header:g,footer:d,selectionColumnHeader:S}=r,A=ju({withRowBorders:n}),E=ju(i),N=ye.useRef(()=>{}),R=ye.useRef(()=>{}),L=ye.useCallback($=>{E.current.onScroll?.($),N.current()},[]);return ye.useEffect(()=>$s(g.current,$=>{Sn(s.current,Yu,`${$.height}px`)},()=>Sn(s.current,Yu,"0")),[g.current]),ye.useEffect(()=>$s(d.current,$=>{Sn(s.current,Fu,`${$.height}px`)},()=>Sn(s.current,Fu,"0")),[d.current]),ye.useEffect(()=>$s(S.current,$=>{Sn(s.current,Wu,`${$.width}px`)},()=>Sn(s.current,Wu,"0")),[S.current]),Bu(()=>{if(typeof window===void 0)return;let $={top:!0,bottom:!0,left:!0,right:!0},B={width:0,height:0},H={width:0,height:0};function se(ne,J){let V=$[ne];return $[ne]=J,Sn(s.current,`--mantine-datatable-${ne}-shadow-opacity`,J?"0":"1"),V}function le(){let ne=B.height-H.height,J=ne<0;Sn(s.current,"--mantine-datatable-footer-position",J?"relative":"sticky"),Sn(s.current,"--mantine-datatable-footer-bottom",J?`${ne}px`:"0")}function ae(){A.current.withRowBorders&&B.height<H.height?Sn(s.current,Uu,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):Sn(s.current,Uu,"unset")}R.current=ae;function ce(){let ne=E.current,J=p.current?.scrollTop??0,V=p.current?.scrollLeft??0,de=J===0,he=B.height-J-H.height<1,re=se("top",de),Ae=se("bottom",he);de&&de!==re&&ne.onScrollToTop?.(),he&&he!==Ae&&ne.onScrollToBottom?.();let Oe=V===0,I=B.width-V-H.width<1,P=se("left",Oe),D=se("right",I);Oe&&Oe!==P&&ne.onScrollToLeft?.(),I&&I!==D&&ne.onScrollToRight?.()}N.current=ce;let Q=new ResizeObserver(ne=>{for(let J of ne)switch(J.target.tagName){case"TABLE":{B=Is(J);break}case"DIV":{H=Is(J);break}}ce(),le(),ae()});return Q.observe(u.current),Q.observe(p.current),()=>{Q.disconnect()}},[]),Bu(()=>{R.current()},[n]),{refs:r,onScroll:L}}function Xg(i){let[n,r]=ye.useState(null),s=i?.join(":")||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function e1(i,n){let r=()=>{n(i.map(u=>u.matches))},s=i.map(u=>{try{return u.addEventListener("change",r),()=>u.removeEventListener("change",r)}catch{return u.addListener(r),()=>u.removeListener(r)}});return()=>{s.forEach(u=>u())}}function t1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function n1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,u]=ye.useState(r?n:t1(i,n)),p=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(g=>window.matchMedia(g)),u(p.current.map(g=>g.matches)),e1(p.current,g=>{u(g)})},[i]),s}function r1(i){let n=F.useMantineTheme(),r=ye.useMemo(()=>i.map(u=>(typeof u=="function"?u(n):u)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return n1(r,s)}function uo(i){let n=F.useMantineTheme(),r=typeof i=="function"?i(n):i;return Mt.useMediaQuery(r||"",!0)}function Bs(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function i1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function js(i,n){return i.filter((r,s,u)=>s===u.findIndex(p=>n(r)===n(p)))}function zu(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function kt(i,n){return typeof n=="string"?zu(i,n):n(i)}function o1({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:d,allowMultiple:S,initiallyExpanded:A}=i;n&&d==="always"?s=n.map(E=>kt(E,r)):A&&(s=n.filter((E,N)=>A({record:E,index:N})).map(E=>kt(E,r)),S||(s=[s[0]]))}let u,p,g=ye.useState(s);if(i){let{expandable:d,trigger:S,allowMultiple:A,collapseProps:E,content:N}=i;i.expanded?{recordIds:u,onRecordIdsChange:p}=i.expanded:[u,p]=g;let R=L=>p?.(u.filter($=>$!==kt(L,r)));return{expandOnClick:S!=="always"&&S!=="never",isRowExpanded:L=>S==="always"?!0:u.includes(kt(L,r)),isExpandable:({record:L,index:$})=>d?d({record:L,index:$}):!0,expandRow:L=>{let $=kt(L,r);p?.(A?[...u,$]:[$])},collapseRow:R,collapseProps:E,content:({record:L,index:$})=>()=>N({record:L,index:$,collapse:()=>R(L)})}}}function s1(i,n){let[r,s]=ye.useState(i),[u,p]=ye.useState(i),g=Mt.useTimeout(()=>s(!0),0),d=Mt.useTimeout(()=>p(!1),n||200);return ye.useEffect(()=>{i?(d.clear(),p(!0),g.start()):(g.clear(),s(!1),d.start())},[g,d,i]),{expanded:r,visible:u}}var Ys="mantine-datatable-nowrap",Fs="mantine-datatable-ellipsis",Mr="mantine-datatable-pointer-cursor",qu="mantine-datatable-context-menu-cursor",a1="mantine-datatable-text-selection-disabled",co="mantine-datatable-text-align-left",fo="mantine-datatable-text-align-center",ho="mantine-datatable-text-align-right";function l1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:u,ellipsis:p,textAlign:g,width:d}){return uo(r)?O.jsx(F.TableTh,{className:ht({[Ys]:u||p,[Fs]:p,[co]:g==="left",[fo]:g==="center",[ho]:g==="right"},i),style:[{width:d,minWidth:d,maxWidth:d},n],children:s}):null}function u1({shadowVisible:i}){return O.jsx(F.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function c1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:u,selectorCellShadowVisible:p,ref:g}){return O.jsx(F.TableTfoot,{ref:g,className:ht("mantine-datatable-footer",i),style:n,children:O.jsxs(F.TableTr,{children:[u&&O.jsx(u1,{shadowVisible:p}),r.map(({hidden:d,...S})=>{if(d)return null;let{accessor:A,visibleMediaQuery:E,textAlign:N,width:R,footer:L,footerClassName:$,footerStyle:B,noWrap:H,ellipsis:se}={...s,...S};return O.jsx(l1,{className:$,style:B,visibleMediaQuery:E,textAlign:N,width:R,title:L,noWrap:H,ellipsis:se},A)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:u,style:p}}){let g=ye.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),d=r1(g),S=ye.useMemo(()=>n.filter(({hidden:A},E)=>!A&&d?.[E]).length,[n,d]);return S>0?O.jsx(F.TableTh,{colSpan:S,className:ht("mantine-datatable-column-group-header-cell",{[co]:s==="left",[fo]:s==="center",[ho]:s==="right"},u),style:p,children:r??Bs(i)}):null}function h1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function d1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function p1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[u,{close:p,toggle:g}]=Mt.useDisclosure(!1),d=n?d1:h1,S=Mt.useClickOutside(p);return s&&(S=void 0),O.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:u,onClose:p,trapFocus:!0,...r,children:[O.jsx(F.PopoverTarget,{children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:A=>{A.preventDefault(),g()},onKeyDown:A=>A.stopPropagation(),children:O.jsx(d,{})})}),O.jsx(F.PopoverDropdown,{ref:S,onClick:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),children:typeof i=="function"?i({close:p}):i})]})}var g1=i=>{let{accessor:n,columnRef:r}=i,[s,u]=ye.useState(!1),p=ye.useRef(0),g=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:d}=Ns(),S=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,R=N.nextElementSibling;for(;R;){let ae=R.getAttribute("data-accessor");if(ae&&ae!=="__selection__")break;R=R.nextElementSibling}if(!R)return;let L=R.getAttribute("data-accessor");if(!L)return;let $=L==="__selection__";u(!0),p.current=E.clientX;let B=N.offsetWidth,H=R.offsetWidth;g.current={current:B,next:H};let se=ae=>{if(!r.current)return;let ce=r.current,Q=ce.nextElementSibling;if(!Q)return;let ne=ae.clientX-p.current,J=50,V=g.current.current-J,de=g.current.next-J,he=Math.max(-V,Math.min(ne,de)),re=g.current.current+he,Ae=g.current.next-he;ce.style.width=`${re}px`,Q.style.width=`${Ae}px`,ce.style.minWidth=`${re}px`,ce.style.maxWidth=`${re}px`,Q.style.minWidth=`${Ae}px`,Q.style.maxWidth=`${Ae}px`},le=()=>{if(!r.current)return;let ae=r.current,ce=ae.nextElementSibling;u(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(ae.style.width)||ae.offsetWidth,ne=ce?parseInt(ce.style.width)||ce.offsetWidth:0,J=[{accessor:n,width:`${Q}px`}];if(ce&&!$){let V=ce.getAttribute("data-accessor");V&&J.push({accessor:V,width:`${ne}px`})}setTimeout(()=>{d(J)},0),document.removeEventListener("mousemove",se),document.removeEventListener("mouseup",le)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",se),document.addEventListener("mouseup",le)},[n,d]),A=ye.useCallback(()=>{if(!r.current)return;let E=r.current,N=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let R=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&R.push({accessor:L,width:"initial"})}setTimeout(()=>{d(R)},0)},[n,d]);return O.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:S,onDoubleClick:A,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function v1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function m1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 7l4 -4l4 4"}),O.jsx("path",{d:"M8 17l4 4l4 -4"}),O.jsx("path",{d:"M12 3l0 18"})]})}function y1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function _1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:u,sortable:p,draggable:g,toggleable:d,resizable:S,sortIcons:A,textAlign:E,width:N,sortStatus:R,onSortStatusChange:L,filter:$,filterPopoverProps:B,filterPopoverDisableClickOutside:H,filtering:se,sortKey:le}){let{setSourceColumn:ae,setTargetColumn:ce,swapColumns:Q,setColumnsToggle:ne}=Ns(),[J,V]=ye.useState(!1),de=ye.useRef(null);if(!uo(s))return null;let he=u??Bs(r),re=typeof he=="string"?he:void 0,Ae=p&&L?w=>{w?.defaultPrevented||L({sortKey:le,columnAccessor:r,direction:R?.columnAccessor===r?R.direction==="asc"?"desc":"asc":R?.direction??"asc"})}:void 0,Oe=w=>{w.stopPropagation(),ae(r),V(!1)},I=w=>{w.preventDefault(),ce(r),V(!0)},P=()=>{ce(r),V(!1),Q()},D=()=>{V(!0)},v=()=>{V(!1)},f=w=>{w.stopPropagation(),ne(h=>h.map(m=>m.accessor===r?{...m,toggled:!1}:m))};return O.jsxs(F.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":d,"mantine-datatable-header-cell-resizable":S},i),style:[{width:N,...S?{minWidth:"1px"}:{minWidth:N,maxWidth:N}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:Ae,onKeyDown:w=>w.key==="Enter"&&Ae?.(),ref:de,children:[O.jsxs(F.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O.jsxs(F.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":g,"mantine-datatable-header-cell-drag-over":J}),draggable:g,onDragStart:g?Oe:void 0,onDragEnter:g?D:void 0,onDragOver:g?I:void 0,onDrop:g?P:void 0,onDragLeave:g?v:void 0,children:[g?O.jsx(F.Center,{role:"img","aria-label":"Drag column",children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:w=>{w.stopPropagation()},children:O.jsx(y1,{})})}):null,O.jsx(F.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},Ys,Fs),title:re,children:he})]}),d?O.jsx(F.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:O.jsx(F.ActionIcon,{size:"xs",variant:"light",onClick:f,children:O.jsx(_1,{})})}):null,p||R?.columnAccessor===r?O.jsx(O.Fragment,{children:R?.columnAccessor===r?O.jsx(F.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":R.direction==="desc"}),role:"img","aria-label":`Sorted ${R.direction==="desc"?"descending":"ascending"}`,children:A?.sorted||O.jsx(v1,{})}):O.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:A?.unsorted||O.jsx(m1,{})})}):null,$?O.jsx(p1,{filterPopoverProps:B,isActive:!!se,filterPopoverDisableClickOutside:H,children:$}):null]}),S&&r!=="__selection__"?O.jsx(g1,{accessor:r,columnRef:de}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:u,indeterminate:p,checkboxProps:g,onChange:d,rowSpan:S,ref:A}){let E=!g.disabled;return O.jsx(F.TableTh,{ref:A,className:ht("mantine-datatable-header-selector-cell",{[Mr]:r==="cell"&&E},i),style:n,rowSpan:S,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?d:void 0,children:O.jsx(F.Checkbox,{classNames:E?{input:Mr}:void 0,checked:u,indeterminate:p,onChange:d,...g,disabled:!(d||g.onChange)||g.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:u,onSortStatusChange:p,columns:g,defaultColumnProps:d,groups:S,selectionTrigger:A,selectionVisible:E,selectionChecked:N,selectionIndeterminate:R,onSelectionChange:L,selectionCheckboxProps:$,selectorCellShadowVisible:B,selectionColumnClassName:H,selectionColumnStyle:se,ref:le}){let ae=E?O.jsx(b1,{ref:i,className:H,style:se,trigger:A,shadowVisible:B,checked:N,indeterminate:R,checkboxProps:$,onChange:L,rowSpan:S?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:Q}=Ns(),[ne,J]=ye.useState(!1),V=g.some(re=>re.toggleable),de=V?Object.fromEntries(g.map(({accessor:re,title:Ae})=>[re,Ae??Bs(String(re))])):void 0,he=O.jsxs(F.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:le,onContextMenu:V?re=>{re.preventDefault(),J(Ae=>!Ae)}:void 0,children:[S&&O.jsxs(F.TableTr,{children:[ae,S.map(re=>O.jsx(f1,{group:re},re.id))]}),O.jsxs(F.TableTr,{children:[!S&&ae,g.map(({hidden:re,...Ae},Oe)=>{if(re)return null;let{accessor:I,visibleMediaQuery:P,textAlign:D,width:v,title:f,sortable:w,draggable:h,toggleable:m,resizable:C,titleClassName:T,titleStyle:G,filter:oe,filterPopoverProps:ue,filterPopoverDisableClickOutside:we,filtering:X,sortKey:be}={...d,...Ae};return O.jsx(w1,{accessor:I,className:T,style:G,visibleMediaQuery:P,textAlign:D,width:v,title:f,sortable:w,draggable:h,toggleable:m,resizable:C&&Oe<g.length-1,sortStatus:s,sortIcons:u,sortKey:be,onSortStatusChange:p,filter:oe,filterPopoverProps:ue,filterPopoverDisableClickOutside:we,filtering:X},I)})]})]});return V?O.jsxs(F.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ne,onChange:J,children:[O.jsx(F.PopoverTarget,{children:he}),O.jsx(F.PopoverDropdown,{children:O.jsx(F.Stack,{children:ce.filter(re=>re.toggleable).map(re=>O.jsx(F.Group,{children:O.jsx(F.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[re.accessor],checked:re.toggled,onChange:Ae=>{Q(ce.map(Oe=>Oe.accessor===re.accessor?{...Oe,toggled:Ae.currentTarget.checked}:Oe))}})},re.accessor))})})]}):he}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:u,color:p}){return O.jsx(F.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||O.jsx(F.Loader,{size:s,type:u,color:p}))})}function mt(i,n,r){return i?F.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function S1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:u,stripedColor:p,highlightOnHoverColor:g}){return{"--mantine-datatable-color-light":mt(n,i,"light"),"--mantine-datatable-color-dark":mt(n,i,"dark"),"--mantine-datatable-background-color-light":mt(r,i,"light"),"--mantine-datatable-background-color-dark":mt(r,i,"dark"),"--mantine-datatable-border-color-light":mt(s,i,"light"),"--mantine-datatable-border-color-dark":mt(s,i,"dark"),"--mantine-datatable-row-border-color-light":mt(u,i,"light"),"--mantine-datatable-row-border-color-dark":mt(u,i,"dark"),"--mantine-datatable-striped-color-light":mt(p,i,"light"),"--mantine-datatable-striped-color-dark":mt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":mt(g,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":mt(g,i,"dark")}}function Hu({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":mt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":mt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":mt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":mt(r,i,"dark")}}function A1({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":mt(n,i,"light"),"--mantine-datatable-row-color-dark":mt(n,i,"dark"),"--mantine-datatable-row-background-color-light":mt(r,i,"light"),"--mantine-datatable-row-background-color-dark":mt(r,i,"dark")}}function D1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 9l4 -4l4 4"}),O.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Gu={xs:F.rem(22),sm:F.rem(26),md:F.rem(32),lg:F.rem(38),xl:F.rem(44)};function O1({size:i,label:n,values:r,value:s,activeTextColor:u,activeBackgroundColor:p,onChange:g}){return O.jsxs(F.Group,{gap:"xs",children:[O.jsx(F.Text,{component:"div",size:i,children:n}),O.jsxs(F.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[O.jsx(F.MenuTarget,{children:O.jsx(F.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:O.jsx(D1,{}),style:[{fontWeight:"normal"},d=>({height:Gu[i],paddingLeft:d.spacing[i],paddingRight:d.spacing[i]})],children:s})}),O.jsx(F.MenuDropdown,{children:r.map(d=>{let S=d===s;return O.jsx(F.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":S}),style:[{height:Gu[i]},S&&(u||p)?A=>Hu({theme:A,paginationActiveTextColor:u,paginationActiveBackgroundColor:p}):void 0],disabled:S,onClick:()=>g(d),children:O.jsx(F.Text,{component:"div",size:i,children:d})},d)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:u,paginationWithEdges:p,paginationWithControls:g,paginationActiveTextColor:d,paginationActiveBackgroundColor:S,paginationSize:A,loadingText:E,noRecordsText:N,paginationText:R,totalRecords:L,recordsPerPage:$,onRecordsPerPageChange:B,recordsPerPageLabel:H,recordsPerPageOptions:se,recordsLength:le,horizontalSpacing:ae,paginationWrapBreakpoint:ce,getPaginationControlProps:Q}){let ne;if(L){let V=(s-1)*$+1,de=V+(le||0)-1;ne=R({from:V,to:de,totalRecords:L})}else ne=r?E:N;let J=uo(({breakpoints:V})=>`(min-width: ${typeof ce=="number"?`${F.rem(ce)}rem`:V[ce]||ce})`);return O.jsxs(F.Box,{px:ae??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[O.jsx(F.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ne}),se&&O.jsx(O1,{activeTextColor:d,activeBackgroundColor:S,size:A,label:H,values:se,value:$,onChange:B}),O.jsx(F.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!le}),control:"mantine-datatable-pagination-pages-control"},style:d||S?V=>Hu({theme:V,paginationActiveTextColor:d,paginationActiveBackgroundColor:S}):void 0,withEdges:p,withControls:g,value:s,onChange:u,size:A,total:Math.ceil(L/$),getControlProps:Q})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:u,onClick:p,onDoubleClick:g,onContextMenu:d,noWrap:S,ellipsis:A,textAlign:E,width:N,accessor:R,render:L,defaultRender:$,customCellAttributes:B}){return uo(r)?O.jsx(F.TableTd,{className:ht({[Ys]:S||A,[Fs]:A,[Mr]:p||g,[qu]:d,[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:p,onDoubleClick:g,onContextMenu:d,...B?.(s,u),children:L?L(s,u):$?$(s,u,R):zu(s,R)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:u,visible:p}=s1(i,s?.transitionDuration);return p?O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{}),O.jsx(F.TableTr,{children:O.jsx(F.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:O.jsx(F.Collapse,{in:u,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function M1({className:i,style:n,record:r,index:s,trigger:u,onChange:p,withRightShadow:g,checkboxProps:d,getCheckboxProps:S,...A}){let E={...d,...S(r,s)},N=!A.disabled&&!E.disabled,R=L=>{L.stopPropagation(),u==="cell"&&N&&p?.(L)};return O.jsx(F.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Mr]:u==="cell"&&N},i),style:n,"data-shadow-visible":g||void 0,onClick:R,children:O.jsx(F.Checkbox,{classNames:N?{input:Mr}:void 0,onChange:p,...A,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:u,selectionTrigger:p,selectionVisible:g,selectionChecked:d,onSelectionChange:S,isRecordSelectable:A,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:R,onDoubleClick:L,onContextMenu:$,onCellClick:B,onCellDoubleClick:H,onCellContextMenu:se,expansion:le,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J,selectorCellShadowVisible:V,selectionColumnClassName:de,selectionColumnStyle:he,rowFactory:re}){let Ae=O.jsxs(O.Fragment,{children:[g&&O.jsx(M1,{className:de,style:he,record:i,index:n,trigger:p,withRightShadow:V,checked:d,disabled:!S||(A?!A(i,n):!1),onChange:S,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:P,hiddenContent:D,...v},f)=>{if(P||D)return null;let{accessor:w,visibleMediaQuery:h,textAlign:m,noWrap:C,ellipsis:T,width:G,render:oe,cellsClassName:ue,cellsStyle:we,customCellAttributes:X}={...s,...v};return O.jsx(T1,{className:typeof ue=="function"?ue(i,n):ue,style:we?.(i,n),visibleMediaQuery:h,record:i,index:n,onClick:B?be=>B({event:be,record:i,index:n,column:v,columnIndex:f}):void 0,onDoubleClick:H?be=>H({event:be,record:i,index:n,column:v,columnIndex:f}):void 0,onContextMenu:se?be=>se({event:be,record:i,index:n,column:v,columnIndex:f}):void 0,accessor:w,textAlign:m,noWrap:C,ellipsis:T,width:G,render:oe,defaultRender:u,customCellAttributes:X},w)})]}),Oe=le&&O.jsx(P1,{colSpan:r.filter(({hidden:P})=>!P).length+(g?1:0),open:le.isRowExpanded(i),content:le.content({record:i,index:n}),collapseProps:le.collapseProps}),I=k1({record:i,index:n,selectionChecked:d,onClick:R,onDoubleClick:L,onContextMenu:$,expansion:le,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J});return re?re({record:i,index:n,rowProps:I,children:Ae,expandedElement:Oe}):O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{...I,children:Ae}),Oe]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:u,onContextMenu:p,expansion:g,customAttributes:d,color:S,backgroundColor:A,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Mr]:s||u||g?.isExpandable({record:i,index:n})&&g?.expandOnClick},{[qu]:p},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:R=>{if(g){let{isExpandable:L,isRowExpanded:$,expandOnClick:B,expandRow:H,collapseRow:se}=g;L({record:i,index:n})&&B&&($(i)?se(i):H(i))}s?.({event:R,record:i,index:n})},onDoubleClick:u?R=>u({event:R,record:i,index:n}):void 0,onContextMenu:p?R=>p({event:R,record:i,index:n}):void 0,style:[S||A?R=>{let L=S?.(i,n),$=A?.(i,n);return A1({theme:R,color:L,backgroundColor:$})}:void 0,N?.(i,n)],...d?.(i,n)??{}}}function L1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:u,scrollAreaProps:p}){return O.jsxs(F.ScrollArea,{...p,viewportRef:u,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:r,children:[s,O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow")})]})}function N1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:u,maxHeight:p,shadow:g,verticalAlign:d="center",fetching:S,columns:A,storeColumnsKey:E,groups:N,pinFirstColumn:R,pinLastColumn:L,defaultColumnProps:$,defaultColumnRender:B,idAccessor:H="id",records:se,selectionTrigger:le="checkbox",selectedRecords:ae,onSelectedRecordsChange:ce,selectionColumnClassName:Q,selectionColumnStyle:ne,isRecordSelectable:J,selectionCheckboxProps:V,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(_t,Ze)=>({"aria-label":`Select record ${Ze+1}`}),sortStatus:re,sortIcons:Ae,onSortStatusChange:Oe,horizontalSpacing:I,page:P,onPageChange:D,totalRecords:v,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m="Records per page",paginationWithEdges:C,paginationWithControls:T,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:ue="sm",paginationText:we=({from:_t,to:Ze,totalRecords:ct})=>`${_t} - ${Ze} / ${ct}`,paginationWrapBreakpoint:X="sm",getPaginationControlProps:be=_t=>_t==="previous"?{"aria-label":"Previous page"}:_t==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:_e,customLoader:ve,loaderSize:j,loaderType:Z,loaderColor:W,loadingText:K="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:c,striped:_,noHeader:k,onRowClick:U,onRowDoubleClick:te,onRowContextMenu:De,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:me,onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe,c:nt,backgroundColor:Et,borderColor:pt,rowBorderColor:rt,stripedColor:An,highlightOnHoverColor:St,rowColor:Dn,rowBackgroundColor:At,rowExpansion:jt,rowClassName:On,rowStyle:yt,customRowAttributes:an,scrollViewportRef:ln,scrollAreaProps:Yt,tableRef:Lt,bodyRef:Ft,m:Wt,my:Kt,mx:Ut,mt:ze,mb:at,ml:Nt,mr:Zt,className:Rn,classNames:un,style:yr,styles:cn,rowFactory:kn,tableWrapper:fn,...hn}){let _t=ye.useMemo(()=>N?.flatMap(Ve=>Ve.columns)??A,[A,N]),Ze=ye.useMemo(()=>_t.some(Ve=>Ve.resizable),[_t]),ct=Qg({key:E,columns:_t}),{refs:zt,onScroll:Yn}=Jg({scrollCallbacks:{onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe},withRowBorders:hn.withRowBorders}),Rr=Mt.useMergedRef(zt.table,Lt),Fn=Mt.useMergedRef(zt.scrollViewport,ln),kr=o1({rowExpansion:jt,records:se,idAccessor:H}),Wn=ye.useCallback(Ve=>{zt.scrollViewport.current?.scrollTo({top:0,left:0}),D(Ve)},[D,zt.scrollViewport]),Lr=se?.length,po=se?.map(Ve=>kt(Ve,H)),or=!!ae,sr=ae?.map(Ve=>kt(Ve,H)),vi=po!==void 0&&sr!==void 0&&sr.length>0,Nr=J?se?.filter(J):se,Ir=Nr?.map(Ve=>kt(Ve,H)),$r=vi&&Ir.every(Ve=>sr.includes(Ve)),Ws=vi&&Ir.some(Ve=>sr.includes(Ve)),Us=ye.useCallback(()=>{ae&&ce&&ce($r?ae.filter(Ve=>!Ir.includes(kt(Ve,H))):js([...ae,...Nr],Ve=>kt(Ve,H)))},[$r,H,ce,Ir,Nr,ae]),{lastSelectionChangeIndex:_r,setLastSelectionChangeIndex:go}=Xg(po),Br=or&&!R,mi={m:Wt,my:Kt,mx:Ut,mt:ze,mb:at,ml:Nt,mr:Zt},zs=ye.useCallback(({children:Ve})=>fn?fn({children:Ve}):Ve,[fn]);return O.jsx($u,{...ct,children:O.jsxs(F.Box,{ref:zt.root,...mi,className:ht("mantine-datatable",{"mantine-datatable-with-border":i},Rn,un?.root),style:[Ve=>({...S1({theme:Ve,c:nt,backgroundColor:Et,borderColor:pt,rowBorderColor:rt,stripedColor:An,highlightOnHoverColor:St}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[g]||g,height:s,minHeight:u,maxHeight:p}),yr,cn?.root,{position:"relative"}],children:[O.jsx(L1,{viewportRef:Fn,leftShadowBehind:or||!!R,rightShadowBehind:L,onScrollPositionChange:Yn,scrollAreaProps:Yt,children:O.jsx(zs,{children:O.jsxs(F.Table,{ref:Rr,horizontalSpacing:I,className:ht("mantine-datatable-table",{[a1]:r,"mantine-datatable-vertical-align-top":d==="top","mantine-datatable-vertical-align-bottom":d==="bottom","mantine-datatable-pin-last-column":L,"mantine-datatable-selection-column-visible":or,"mantine-datatable-pin-first-column":R,"mantine-datatable-resizable-columns":Ze},un?.table),style:{...cn?.table},"data-striped":Lr&&_||void 0,"data-highlight-on-hover":c||void 0,...hn,children:[k?null:O.jsx($u,{...ct,children:O.jsx(x1,{ref:zt.header,selectionColumnHeaderRef:zt.selectionColumnHeader,className:un?.header,style:cn?.header,columns:_t,defaultColumnProps:$,groups:N,sortStatus:re,sortIcons:Ae,onSortStatusChange:Oe,selectionTrigger:le,selectionVisible:or,selectionChecked:$r,selectionIndeterminate:Ws&&!$r,onSelectionChange:Us,selectionCheckboxProps:{...V,...de},selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:ne})}),O.jsx("tbody",{ref:Ft,children:Lr?se.map((Ve,Ln)=>{let jr=kt(Ve,H),yi=sr?.includes(jr)||!1,_i;return ce&&ae&&(_i=vo=>{if(vo.nativeEvent.shiftKey&&_r!==null){let Nn=se.filter(Ln>_r?(Un,In)=>In>=_r&&In<=Ln&&(J?J(Un,In):!0):(Un,In)=>In>=Ln&&In<=_r&&(J?J(Un,In):!0));ce(yi?i1(ae,Nn,Un=>kt(Un,H)):js([...ae,...Nn],Un=>kt(Un,H)))}else ce(yi?ae.filter(Nn=>kt(Nn,H)!==jr):js([...ae,Ve],Nn=>kt(Nn,H)));go(Ln)}),O.jsx(R1,{record:Ve,index:Ln,columns:_t,defaultColumnProps:$,defaultColumnRender:B,selectionTrigger:le,selectionVisible:or,selectionChecked:yi,onSelectionChange:_i,isRecordSelectable:J,selectionCheckboxProps:V,getSelectionCheckboxProps:he,onClick:U,onDoubleClick:te,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:De,onCellContextMenu:me,expansion:kr,color:Dn,backgroundColor:At,className:On,style:yt,customAttributes:an,selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:ne,idAccessor:H,rowFactory:kn},jr)}):O.jsx(Vg,{})}),_t.some(({footer:Ve})=>Ve)&&O.jsx(c1,{ref:zt.footer,className:un?.footer,style:cn?.footer,columns:_t,defaultColumnProps:$,selectionVisible:or,selectorCellShadowVisible:Br})]})})}),P&&O.jsx(E1,{className:un?.pagination,style:cn?.pagination,horizontalSpacing:I,fetching:S,page:P,onPageChange:Wn,totalRecords:v,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m,paginationWithEdges:C,paginationWithControls:T,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:ue,paginationText:we,paginationWrapBreakpoint:X,getPaginationControlProps:be,noRecordsText:Se,loadingText:K,recordsLength:Lr}),O.jsx(C1,{fetching:S,backgroundBlur:_e,customContent:ve,size:j,type:Z,color:W}),O.jsx(Zg,{icon:l,text:Se,active:!S&&!Lr,children:ee})]})})}var gi={exports:{}};/**
|
|
117
|
+
`+m,S(`data:${Oe(f)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else S(h.toDataURL(Oe(f)),`${w}.${f}`)}}const P=I})(),p.default})())}(Os)),Os.exports}Bp();const su=ye.createContext(void 0);function jp(i){const n=bn.c(9),{children:r,baseUrl:s,queryClient:u}=i;let p;n[0]!==s||n[1]!==u?(p={baseUrl:s,queryClient:u},n[0]=s,n[1]=u,n[2]=p):p=n[2];let g;n[3]!==r||n[4]!==u?(g=O.jsx(yl,{client:u,children:r}),n[3]=r,n[4]=u,n[5]=g):g=n[5];let d;return n[6]!==p||n[7]!==g?(d=O.jsx(su.Provider,{value:p,children:g}),n[6]=p,n[7]=g,n[8]=d):d=n[8],d}function tr(){const i=ye.useContext(su);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Yp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function mr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await mr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function lu(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await mr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function uu(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await mr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function cu(i,n){return fetch(i,{method:"POST",headers:await mr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Fp(i,n,r){return fetch(n,{method:i,headers:await mr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function fu(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await mr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function hu(i,n,r){const s=bn.c(13),{baseUrl:u}=tr();let p;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r?.toString(),s[3]=r,s[4]=A):A=s[4],p=[...n.map(Wp),String(A)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let g;s[5]!==i||s[6]!==u||s[7]!==r?(g=()=>lu(`${u}${i}`,r),s[5]=i,s[6]=u,s[7]=r,s[8]=g):g=s[8];const d=!!r;let S;return s[9]!==p||s[10]!==g||s[11]!==d?(S={queryKey:p,queryFn:g,enabled:d},s[9]=p,s[10]=g,s[11]=d,s[12]=S):S=s[12],bl(S)}function Wp(i){return i.toString()}function du(i,n){const r=bn.c(8),{baseUrl:s}=tr();let u;r[0]!==n?(u=[...n.map(Up)],r[0]=n,r[1]=u):u=r[1];let p;r[2]!==i||r[3]!==s?(p=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let g;return r[5]!==u||r[6]!==p?(g={queryKey:u,queryFn:p},r[5]=u,r[6]=p,r[7]=g):g=r[7],bl(g)}function Up(i){return i.toString()}function pu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(qp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>cu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let d;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(d={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,r[9]=d):d=r[9],ls(d)}function zp(i){return i.toString()}function qp(i){return i.toString()}function Es(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(Gp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>fu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let d;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(d={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,r[9]=d):d=r[9],ls(d)}function Hp(i){return i.toString()}function Gp(i){return i.toString()}function gu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(Kp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>uu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let d;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(d={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,r[9]=d):d=r[9],ls(d)}function Vp(i){return i.toString()}function Kp(i){return i.toString()}var Ki={exports:{}},Zp=Ki.exports,vu;function Qp(){return vu||(vu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,u=36e5,p="millisecond",g="second",d="minute",S="hour",A="day",E="week",N="month",R="quarter",L="year",$="date",B="Invalid Date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,le={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var P=["th","st","nd","rd"],D=I%100;return"["+I+(P[(D-20)%10]||P[D]||P[0])+"]"}},ae=function(I,P,D){var v=String(I);return!v||v.length>=P?I:""+Array(P+1-v.length).join(D)+I},ce={s:ae,z:function(I){var P=-I.utcOffset(),D=Math.abs(P),v=Math.floor(D/60),f=D%60;return(P<=0?"+":"-")+ae(v,2,"0")+":"+ae(f,2,"0")},m:function I(P,D){if(P.date()<D.date())return-I(D,P);var v=12*(D.year()-P.year())+(D.month()-P.month()),f=P.clone().add(v,N),w=D-f<0,h=P.clone().add(v+(w?-1:1),N);return+(-(v+(D-f)/(w?f-h:h-f))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:N,y:L,w:E,d:A,D:$,h:S,m:d,s:g,ms:p,Q:R}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},Q="en",ne={};ne[Q]=le;var J="$isDayjsObject",V=function(I){return I instanceof De||!(!I||!I[J])},de=function I(P,D,v){var f;if(!P)return Q;if(typeof P=="string"){var w=P.toLowerCase();ne[w]&&(f=w),D&&(ne[w]=D,f=w);var h=P.split("-");if(!f&&h.length>1)return I(h[0])}else{var m=P.name;ne[m]=P,f=m}return!v&&f&&(Q=f),f||!v&&Q},he=function(I,P){if(V(I))return I.clone();var D=typeof P=="object"?P:{};return D.date=I,D.args=arguments,new De(D)},re=ce;re.l=de,re.i=V,re.w=function(I,P){return he(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var De=function(){function I(D){this.$L=de(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[J]=!0}var P=I.prototype;return P.parse=function(D){this.$d=function(v){var f=v.date,w=v.utc;if(f===null)return new Date(NaN);if(re.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var h=f.match(H);if(h){var m=h[2]-1||0,C=(h[7]||"0").substring(0,3);return w?new Date(Date.UTC(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,C)):new Date(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,C)}}return new Date(f)}(D),this.init()},P.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},P.$utils=function(){return re},P.isValid=function(){return this.$d.toString()!==B},P.isSame=function(D,v){var f=he(D);return this.startOf(v)<=f&&f<=this.endOf(v)},P.isAfter=function(D,v){return he(D)<this.startOf(v)},P.isBefore=function(D,v){return this.endOf(v)<he(D)},P.$g=function(D,v,f){return re.u(D)?this[v]:this.set(f,D)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(D,v){var f=this,w=!!re.u(v)||v,h=re.p(D),m=function(be,_e){var ve=re.w(f.$u?Date.UTC(f.$y,_e,be):new Date(f.$y,_e,be),f);return w?ve:ve.endOf(A)},C=function(be,_e){return re.w(f.toDate()[be].apply(f.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(_e)),f)},T=this.$W,G=this.$M,oe=this.$D,ue="set"+(this.$u?"UTC":"");switch(h){case L:return w?m(1,0):m(31,11);case N:return w?m(1,G):m(0,G+1);case E:var we=this.$locale().weekStart||0,X=(T<we?T+7:T)-we;return m(w?oe-X:oe+(6-X),G);case A:case $:return C(ue+"Hours",0);case S:return C(ue+"Minutes",1);case d:return C(ue+"Seconds",2);case g:return C(ue+"Milliseconds",3);default:return this.clone()}},P.endOf=function(D){return this.startOf(D,!1)},P.$set=function(D,v){var f,w=re.p(D),h="set"+(this.$u?"UTC":""),m=(f={},f[A]=h+"Date",f[$]=h+"Date",f[N]=h+"Month",f[L]=h+"FullYear",f[S]=h+"Hours",f[d]=h+"Minutes",f[g]=h+"Seconds",f[p]=h+"Milliseconds",f)[w],C=w===A?this.$D+(v-this.$W):v;if(w===N||w===L){var T=this.clone().set($,1);T.$d[m](C),T.init(),this.$d=T.set($,Math.min(this.$D,T.daysInMonth())).$d}else m&&this.$d[m](C);return this.init(),this},P.set=function(D,v){return this.clone().$set(D,v)},P.get=function(D){return this[re.p(D)]()},P.add=function(D,v){var f,w=this;D=Number(D);var h=re.p(v),m=function(G){var oe=he(w);return re.w(oe.date(oe.date()+Math.round(G*D)),w)};if(h===N)return this.set(N,this.$M+D);if(h===L)return this.set(L,this.$y+D);if(h===A)return m(1);if(h===E)return m(7);var C=(f={},f[d]=s,f[S]=u,f[g]=r,f)[h]||1,T=this.$d.getTime()+D*C;return re.w(T,this)},P.subtract=function(D,v){return this.add(-1*D,v)},P.format=function(D){var v=this,f=this.$locale();if(!this.isValid())return f.invalidDate||B;var w=D||"YYYY-MM-DDTHH:mm:ssZ",h=re.z(this),m=this.$H,C=this.$m,T=this.$M,G=f.weekdays,oe=f.months,ue=f.meridiem,we=function(_e,ve,j,Z){return _e&&(_e[ve]||_e(v,w))||j[ve].slice(0,Z)},X=function(_e){return re.s(m%12||12,_e,"0")},be=ue||function(_e,ve,j){var Z=_e<12?"AM":"PM";return j?Z.toLowerCase():Z};return w.replace(se,function(_e,ve){return ve||function(j){switch(j){case"YY":return String(v.$y).slice(-2);case"YYYY":return re.s(v.$y,4,"0");case"M":return T+1;case"MM":return re.s(T+1,2,"0");case"MMM":return we(f.monthsShort,T,oe,3);case"MMMM":return we(oe,T);case"D":return v.$D;case"DD":return re.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return we(f.weekdaysMin,v.$W,G,2);case"ddd":return we(f.weekdaysShort,v.$W,G,3);case"dddd":return G[v.$W];case"H":return String(m);case"HH":return re.s(m,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return be(m,C,!0);case"A":return be(m,C,!1);case"m":return String(C);case"mm":return re.s(C,2,"0");case"s":return String(v.$s);case"ss":return re.s(v.$s,2,"0");case"SSS":return re.s(v.$ms,3,"0");case"Z":return h}return null}(_e)||h.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(D,v,f){var w,h=this,m=re.p(v),C=he(D),T=(C.utcOffset()-this.utcOffset())*s,G=this-C,oe=function(){return re.m(h,C)};switch(m){case L:w=oe()/12;break;case N:w=oe();break;case R:w=oe()/3;break;case E:w=(G-T)/6048e5;break;case A:w=(G-T)/864e5;break;case S:w=G/u;break;case d:w=G/s;break;case g:w=G/r;break;default:w=G}return f?w:re.a(w)},P.daysInMonth=function(){return this.endOf(N).$D},P.$locale=function(){return ne[this.$L]},P.locale=function(D,v){if(!D)return this.$L;var f=this.clone(),w=de(D,v,!0);return w&&(f.$L=w),f},P.clone=function(){return re.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},I}(),Oe=De.prototype;return he.prototype=Oe,[["$ms",p],["$s",g],["$m",d],["$H",S],["$W",A],["$M",N],["$y",L],["$D",$]].forEach(function(I){Oe[I[1]]=function(P){return this.$g(P,I[0],I[1])}}),he.extend=function(I,P){return I.$i||(I(P,De,he),I.$i=!0),he},he.locale=de,he.isDayjs=V,he.unix=function(I){return he(1e3*I)},he.en=ne[Q],he.Ls=ne,he.p={},he})}(Ki)),Ki.exports}var Jp=Qp();const Te=el(Jp);function Xp({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:u}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=u[n-1][u[n-1].length-1]-1?u[n-1].length-1:u[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===u[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===u[n].length-2&&s>=u[n][u[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:u[n-1].length-1,cellIndex:u[n-1][u[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:u[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===u[n].length-1&&s===u[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===u[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function mu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:u,size:p}){const g=Xp({direction:n,size:p,rowIndex:s,cellIndex:u,levelIndex:r});if(!g)return;const d=i.current?.[g.levelIndex]?.[g.rowIndex]?.[g.cellIndex];d&&(d.disabled||d.getAttribute("data-hidden")||d.getAttribute("data-outside")?mu({controlsRef:i,direction:n,levelIndex:g.levelIndex,cellIndex:g.cellIndex,rowIndex:g.rowIndex,size:p}):d.focus())}function eg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function tg(i){return i.current?.map(n=>n.map(r=>r.length))}function Ts({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:u}){const p=eg(u.key);if(p){u.preventDefault();const g=tg(i);mu({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:g})}}function sn(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function yu(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ng={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},rg=ye.createContext(ng);function nr(){const i=ye.useContext(rg),n=ye.useCallback(p=>p||i.locale,[i.locale]),r=ye.useCallback(p=>typeof p=="number"?p:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(p=>Array.isArray(p)?p:i.weekendDays,[i.weekendDays]),u=ye.useCallback(p=>typeof p=="string"?p:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:u}}function ig({value:i,type:n,withTime:r}){const s=r?yu:sn;if(n==="range"&&Array.isArray(i)){const u=s(i[0]),p=s(i[1]);return u?p?`${u} – ${p}`:`${u} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function _u({value:i,type:n,name:r,form:s,withTime:u=!1}){return O.jsx("input",{type:"hidden",value:ig({value:i,type:n,withTime:u}),name:r,form:s})}_u.displayName="@mantine/dates/HiddenDatesInput";function wu(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var u=i.length;for(n=0;n<u;n++)i[n]&&(r=wu(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ht(){for(var i,n,r=0,s="",u=arguments.length;r<u;r++)(i=arguments[r])&&(n=wu(i))&&(s&&(s+=" "),s+=n);return s}var bu={day:"m_396ce5cb"};const og=F.createVarsResolver((i,{size:n})=>({day:{"--day-size":F.getSize(n,"day-size")}})),Ps=F.factory((i,n)=>{const r=F.useProps("Day",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,date:A,disabled:E,__staticSelector:N,weekend:R,outside:L,selected:$,renderDay:B,inRange:H,firstInRange:se,lastInRange:le,hidden:ae,static:ce,highlightToday:Q,attributes:ne,...J}=r,V=F.useStyles({name:N||"Day",classes:bu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:ne,vars:S,varsResolver:og,rootSelector:"day"});return O.jsx(F.UnstyledButton,{...V("day",{style:ae?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:E,"data-today":Te(A).isSame(new Date,"day")||void 0,"data-hidden":ae||void 0,"data-highlight-today":Q||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&R||void 0,"data-outside":!E&&L||void 0,"data-selected":!E&&$||void 0,"data-in-range":H&&!E||void 0,"data-first-in-range":se&&!E||void 0,"data-last-in-range":le&&!E||void 0,"data-static":ce||void 0,unstyled:d,...J,children:B?.(A)||Te(A).date()})});Ps.classes=bu,Ps.displayName="@mantine/dates/Day";function sg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),u=[];for(let p=0;p<7;p+=1)typeof n=="string"?u.push(Te(s).add(p,"days").locale(i).format(n)):u.push(n(Te(s).add(p,"days").format("YYYY-MM-DD")));return u}var xu={weekday:"m_18a3eca"};const ag=F.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":F.getFontSize(n),"--wr-spacing":F.getSpacing(n)}})),Ms=F.factory((i,n)=>{const r=F.useProps("WeekdaysRow",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,locale:A,firstDayOfWeek:E,weekdayFormat:N,cellComponent:R="th",__staticSelector:L,withWeekNumbers:$,attributes:B,...H}=r,se=F.useStyles({name:L||"WeekdaysRow",classes:xu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:B,vars:S,varsResolver:ag,rootSelector:"weekdaysRow"}),le=nr(),ae=sg({locale:le.getLocale(A),format:N,firstDayOfWeek:le.getFirstDayOfWeek(E)}).map((ce,Q)=>O.jsx(R,{...se("weekday"),children:ce},Q));return O.jsxs(F.Box,{component:"tr",ref:n,...se("weekdaysRow"),...H,children:[$&&O.jsx(R,{...se("weekday"),children:"#"}),ae]})});Ms.classes=xu,Ms.displayName="@mantine/dates/WeekdaysRow";function lg(i,n=1){let r=Te(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function ug(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function cg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),u=Te(s.format("YYYY-M-D")),p=u.format("YYYY-MM-DD"),g=u.add(+u.daysInMonth()-1,"day").format("YYYY-MM-DD"),d=lg(g,n),S=[];let A=Te(ug(p,n));for(;Te(A).isBefore(d,"day");){const E=[];for(let N=0;N<7;N+=1)E.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");S.push(E)}if(r&&S.length<6){const E=S[S.length-1],N=E[E.length-1];let R=Te(N).add(1,"day");for(;S.length<6;){const L=[];for(let $=0;$<7;$+=1)L.push(R.format("YYYY-MM-DD")),R=R.add(1,"day");S.push(L)}}return S}function Rs(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Cu(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Su(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function fg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:u,hideOutsideDates:p,month:g}){const d=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!u?.(E)&&!s?.(E)?.disabled&&(!p||Rs(E,g))),S=d.find(E=>s?.(E)?.selected);if(S)return S;const A=d.find(E=>Te().isSame(E,"date"));return A||d[0]}var Zi={exports:{}},hg=Zi.exports,Au;function dg(){return Au||(Au=1,function(i,n){(function(r,s){i.exports=s()})(hg,function(){var r="day";return function(s,u,p){var g=function(A){return A.add(4-A.isoWeekday(),r)},d=u.prototype;d.isoWeekYear=function(){return g(this).year()},d.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var E,N,R,L,$=g(this),B=(E=this.isoWeekYear(),N=this.$u,R=(N?p.utc:p)().year(E).startOf("year"),L=4-R.isoWeekday(),R.isoWeekday()>4&&(L+=7),R.add(L,r));return $.diff(B,"week")+1},d.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var S=d.startOf;d.startOf=function(A,E){var N=this.$utils(),R=!!N.u(E)||E;return N.p(A)==="isoweek"?R?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(A,E)}}})}(Zi)),Zi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function vg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var Du={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const mg={withCellSpacing:!0},yg=F.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":F.getFontSize(n),"--wn-size":F.getSize(n,"wn-size")}})),Qi=F.factory((i,n)=>{const r=F.useProps("Month",mg,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,__staticSelector:A,locale:E,firstDayOfWeek:N,weekdayFormat:R,month:L,weekendDays:$,getDayProps:B,excludeDate:H,minDate:se,maxDate:le,renderDay:ae,hideOutsideDates:ce,hideWeekdays:Q,getDayAriaLabel:ne,static:J,__getDayRef:V,__onDayKeyDown:de,__onDayClick:he,__onDayMouseEnter:re,__preventFocus:De,__stopPropagation:Oe,withCellSpacing:I,size:P,highlightToday:D,withWeekNumbers:v,attributes:f,...w}=r,h=F.useStyles({name:A||"Month",classes:Du,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:f,vars:S,varsResolver:yg,rootSelector:"month"}),m=nr(),C=cg({month:L,firstDayOfWeek:m.getFirstDayOfWeek(N),consistentWeeks:m.consistentWeeks}),T=fg({dates:C,minDate:sn(se),maxDate:sn(le),getDayProps:B,excludeDate:H,hideOutsideDates:ce,month:L}),{resolvedClassNames:G,resolvedStyles:oe}=F.useResolvedStylesApi({classNames:s,styles:g,props:r}),ue=C.map((we,X)=>{const be=we.map((_e,ve)=>{const j=!Rs(_e,L),Z=ne?.(_e)||Te(_e).locale(E||m.locale).format("D MMMM YYYY"),W=B?.(_e),K=Te(_e).isSame(T,"date");return O.jsx("td",{...h("monthCell"),"data-with-spacing":I||void 0,children:O.jsx(Ps,{__staticSelector:A||"Month",classNames:G,styles:oe,unstyled:d,"data-mantine-stop-propagation":Oe||void 0,highlightToday:D,renderDay:ae,date:_e,size:P,weekend:m.getWeekendDays($).includes(Te(_e).get("day")),outside:j,hidden:ce?j:!1,"aria-label":Z,static:J,disabled:H?.(_e)||!Su(_e,sn(le))||!Cu(_e,sn(se)),ref:ee=>{ee&&V?.(X,ve,ee)},...W,onKeyDown:ee=>{W?.onKeyDown?.(ee),de?.(ee,{rowIndex:X,cellIndex:ve,date:_e})},onMouseEnter:ee=>{W?.onMouseEnter?.(ee),re?.(ee,_e)},onClick:ee=>{W?.onClick?.(ee),he?.(ee,_e)},onMouseDown:ee=>{W?.onMouseDown?.(ee),De&&ee.preventDefault()},tabIndex:De||!K?-1:0})},_e.toString())});return O.jsxs("tr",{...h("monthRow"),children:[v&&O.jsx("td",{...h("weekNumber"),children:vg(we)}),be]},X)});return O.jsxs(F.Box,{component:"table",...h("month"),size:P,ref:n,...w,children:[!Q&&O.jsx("thead",{...h("monthThead"),children:O.jsx(Ms,{__staticSelector:A||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:R,size:P,classNames:G,styles:oe,unstyled:d,withWeekNumbers:v})}),O.jsx("tbody",{...h("monthTbody"),children:ue})]})});Qi.classes=Du,Qi.displayName="@mantine/dates/Month";var Ou={pickerControl:"m_dc6a3c71"};const _g=F.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":F.getFontSize(n),"--dpc-size":F.getSize(n,"dpc-size")}})),Ji=F.factory((i,n)=>{const r=F.useProps("PickerControl",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,firstInRange:A,lastInRange:E,inRange:N,__staticSelector:R,selected:L,disabled:$,attributes:B,...H}=r,se=F.useStyles({name:R||"PickerControl",classes:Ou,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:B,vars:S,varsResolver:_g,rootSelector:"pickerControl"});return O.jsx(F.UnstyledButton,{...se("pickerControl"),ref:n,unstyled:d,"data-picker-control":!0,"data-selected":L&&!$||void 0,"data-disabled":$||void 0,"data-in-range":N&&!$&&!L||void 0,"data-first-in-range":A&&!$||void 0,"data-last-in-range":E&&!$||void 0,disabled:$,...H})});Ji.classes=Ou,Ji.displayName="@mantine/dates/PickerControl";function Eu({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function wg({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const u=i.flat().filter(d=>!Eu({year:d,minDate:n,maxDate:r})&&!s?.(d)?.disabled),p=u.find(d=>s?.(d)?.selected);if(p)return p;const g=u.find(d=>Te().isSame(d,"year"));return g||u[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const u=[[],[],[],[]];for(let p=0;p<4;p+=1){const g=p===3?1:3;for(let d=0;d<g;d+=1)u[p].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return u}var Pu={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const bg={yearsListFormat:"YYYY",withCellSpacing:!0},Xi=F.factory((i,n)=>{const r=F.useProps("YearsList",bg,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,decade:A,yearsListFormat:E,locale:N,minDate:R,maxDate:L,getYearControlProps:$,__staticSelector:B,__getControlRef:H,__onControlKeyDown:se,__onControlClick:le,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:B||"YearsList",classes:Pu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:V,vars:S,rootSelector:"yearsList"}),re=nr(),De=Tu(A),Oe=wg({years:De,minDate:R,maxDate:L,getYearControlProps:$}),I=De.map((P,D)=>{const v=P.map((f,w)=>{const h=$?.(f),m=Te(f).isSame(Oe,"year");return O.jsx("td",{...he("yearsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Ji,{...he("yearsListControl"),size:J,unstyled:d,"data-mantine-stop-propagation":Q||void 0,disabled:Eu({year:f,minDate:R,maxDate:L}),ref:C=>{C&&H?.(D,w,C)},...h,onKeyDown:C=>{h?.onKeyDown?.(C),se?.(C,{rowIndex:D,cellIndex:w,date:f})},onClick:C=>{h?.onClick?.(C),le?.(C,f)},onMouseEnter:C=>{h?.onMouseEnter?.(C),ae?.(C,f)},onMouseDown:C=>{h?.onMouseDown?.(C),ce&&C.preventDefault()},tabIndex:ce||!m?-1:0,children:Te(f).locale(re.getLocale(N)).format(E)})},w)});return O.jsx("tr",{...he("yearsListRow"),children:v},D)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("yearsList"),...de,children:O.jsx("tbody",{children:I})})});Xi.classes=Pu,Xi.displayName="@mantine/dates/YearsList";function Mu({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function xg({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const u=i.flat().filter(d=>!Mu({month:d,minDate:n,maxDate:r})&&!s?.(d)?.disabled),p=u.find(d=>s?.(d)?.selected);if(p)return p;const g=u.find(d=>Te().isSame(d,"month"));return g||u[0]}function Cg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let u=0;u<4;u+=1)for(let p=0;p<3;p+=1)r[u].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ru={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Sg={monthsListFormat:"MMM",withCellSpacing:!0},eo=F.factory((i,n)=>{const r=F.useProps("MonthsList",Sg,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,__staticSelector:A,year:E,monthsListFormat:N,locale:R,minDate:L,maxDate:$,getMonthControlProps:B,__getControlRef:H,__onControlKeyDown:se,__onControlClick:le,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:A||"MonthsList",classes:Ru,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:V,vars:S,rootSelector:"monthsList"}),re=nr(),De=Cg(E),Oe=xg({months:De,minDate:sn(L),maxDate:sn($),getMonthControlProps:B}),I=De.map((P,D)=>{const v=P.map((f,w)=>{const h=B?.(f),m=Te(f).isSame(Oe,"month");return O.jsx("td",{...he("monthsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Ji,{...he("monthsListControl"),size:J,unstyled:d,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:Mu({month:f,minDate:sn(L),maxDate:sn($)}),ref:C=>{C&&H?.(D,w,C)},...h,onKeyDown:C=>{h?.onKeyDown?.(C),se?.(C,{rowIndex:D,cellIndex:w,date:f})},onClick:C=>{h?.onClick?.(C),le?.(C,f)},onMouseEnter:C=>{h?.onMouseEnter?.(C),ae?.(C,f)},onMouseDown:C=>{h?.onMouseDown?.(C),ce&&C.preventDefault()},tabIndex:ce||!m?-1:0,children:Te(f).locale(re.getLocale(R)).format(N)})},w)});return O.jsx("tr",{...he("monthsListRow"),children:v},D)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("monthsList"),...de,children:O.jsx("tbody",{children:I})})});eo.classes=Ru,eo.displayName="@mantine/dates/MonthsList";var ku={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Ag={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Dg=F.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":F.getSize(n,"dch-control-size"),"--dch-fz":F.getFontSize(n)}})),rr=F.factory((i,n)=>{const r=F.useProps("CalendarHeader",Ag,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,nextIcon:A,previousIcon:E,nextLabel:N,previousLabel:R,onNext:L,onPrevious:$,onLevelClick:B,label:H,nextDisabled:se,previousDisabled:le,hasNextLevel:ae,levelControlAriaLabel:ce,withNext:Q,withPrevious:ne,headerControlsOrder:J,__staticSelector:V,__preventFocus:de,__stopPropagation:he,attributes:re,...De}=r,Oe=F.useStyles({name:V||"CalendarHeader",classes:ku,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:re,vars:S,varsResolver:Dg,rootSelector:"calendarHeader"}),I=de?w=>w.preventDefault():void 0,P=ne&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":R,onClick:$,unstyled:d,onMouseDown:I,disabled:le,"data-disabled":le||void 0,tabIndex:de||le?-1:0,"data-mantine-stop-propagation":he||void 0},E||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),D=ye.createElement(F.UnstyledButton,{component:ae?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:ae?B:void 0,unstyled:d,onMouseDown:ae?I:void 0,disabled:!ae,"data-static":!ae||void 0,"aria-label":ce,tabIndex:de||!ae?-1:0,"data-mantine-stop-propagation":he||void 0},H),v=Q&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:d,onMouseDown:I,disabled:se,"data-disabled":se||void 0,tabIndex:de||se?-1:0,"data-mantine-stop-propagation":he||void 0},A||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),f=J.map(w=>w==="previous"?P:w==="level"?D:w==="next"?v:null);return O.jsx(F.Box,{...Oe("calendarHeader"),ref:n,...De,children:f})});rr.classes=ku,rr.displayName="@mantine/dates/CalendarHeader";function Og(i){const n=Tu(i);return[n[0][0],n[3][0]]}const Eg={decadeLabelFormat:"YYYY"},to=F.factory((i,n)=>{const r=F.useProps("DecadeLevel",Eg,i),{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:d,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:$,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,nextDisabled:Q,previousDisabled:ne,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,decadeLabelFormat:re,classNames:De,styles:Oe,unstyled:I,__staticSelector:P,__stopPropagation:D,size:v,attributes:f,...w}=r,h=nr(),[m,C]=Og(s),T={__staticSelector:P||"DecadeLevel",classNames:De,styles:Oe,unstyled:I,size:v,attributes:f},G=typeof Q=="boolean"?Q:g?!Te(C).endOf("year").isBefore(g):!1,oe=typeof ne=="boolean"?ne:p?!Te(m).startOf("year").isAfter(p):!1,ue=(we,X)=>Te(we).locale(u||h.locale).format(X);return O.jsxs(F.Box,{"data-decade-level":!0,size:v,ref:n,...w,children:[O.jsx(rr,{label:typeof re=="function"?re(m,C):`${ue(m,re)} – ${ue(C,re)}`,__preventFocus:$,__stopPropagation:D,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,nextDisabled:G,previousDisabled:oe,hasNextLevel:!1,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,...T}),O.jsx(Xi,{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:d,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:$,__stopPropagation:D,withCellSpacing:L,...T})]})});to.classes={...Xi.classes,...rr.classes},to.displayName="@mantine/dates/DecadeLevel";const Tg={yearLabelFormat:"YYYY"},no=F.factory((i,n)=>{const r=F.useProps("YearLevel",Tg,i),{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:d,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:$,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:ne,previousDisabled:J,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:De,yearLabelFormat:Oe,__staticSelector:I,__stopPropagation:P,size:D,classNames:v,styles:f,unstyled:w,attributes:h,...m}=r,C=nr(),T={__staticSelector:I||"YearLevel",classNames:v,styles:f,unstyled:w,size:D,attributes:h},G=typeof ne=="boolean"?ne:g?!Te(s).endOf("year").isBefore(g):!1,oe=typeof J=="boolean"?J:p?!Te(s).startOf("year").isAfter(p):!1;return O.jsxs(F.Box,{"data-year-level":!0,size:D,ref:n,...m,children:[O.jsx(rr,{label:typeof Oe=="function"?Oe(s):Te(s).locale(u||C.locale).format(Oe),__preventFocus:$,__stopPropagation:P,nextIcon:B,previousIcon:H,nextLabel:se,previousLabel:le,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:G,previousDisabled:oe,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:De,...T}),O.jsx(eo,{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:d,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:$,__stopPropagation:P,withCellSpacing:L,...T})]})});no.classes={...rr.classes,...eo.classes},no.displayName="@mantine/dates/YearLevel";const Pg={monthLabelFormat:"MMMM YYYY"},ro=F.factory((i,n)=>{const r=F.useProps("MonthLevel",Pg,i),{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__getDayRef:H,__onDayKeyDown:se,__onDayClick:le,__onDayMouseEnter:ae,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:I,onLevelClick:P,nextDisabled:D,previousDisabled:v,hasNextLevel:f,levelControlAriaLabel:w,withNext:h,withPrevious:m,headerControlsOrder:C,monthLabelFormat:T,classNames:G,styles:oe,unstyled:ue,__staticSelector:we,size:X,static:be,attributes:_e,...ve}=r,j=nr(),Z={__staticSelector:we||"MonthLevel",classNames:G,styles:oe,unstyled:ue,size:X,attributes:_e},W=typeof D=="boolean"?D:N?!Te(s).endOf("month").isBefore(N):!1,K=typeof v=="boolean"?v:E?!Te(s).startOf("month").isAfter(E):!1;return O.jsxs(F.Box,{"data-month-level":!0,size:X,ref:n,...ve,children:[O.jsx(rr,{label:typeof T=="function"?T(s):Te(s).locale(u||j.locale).format(T),__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:I,onLevelClick:P,nextDisabled:W,previousDisabled:K,hasNextLevel:f,levelControlAriaLabel:w,withNext:h,withPrevious:m,headerControlsOrder:C,...Z}),O.jsx(Qi,{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__getDayRef:H,__onDayKeyDown:se,__onDayClick:le,__onDayMouseEnter:ae,__preventFocus:J,__stopPropagation:V,static:be,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,...Z})]})});ro.classes={...Qi.classes,...rr.classes},ro.displayName="@mantine/dates/MonthLevel";var Lu={levelsGroup:"m_30b26e33"};const ir=F.factory((i,n)=>{const r=F.useProps("LevelsGroup",null,i),{classNames:s,className:u,style:p,styles:g,unstyled:d,vars:S,__staticSelector:A,attributes:E,...N}=r,R=F.useStyles({name:A||"LevelsGroup",classes:Lu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:d,attributes:E,vars:S,rootSelector:"levelsGroup"});return O.jsx(F.Box,{ref:n,...R("levelsGroup"),...N})});ir.classes=Lu,ir.displayName="@mantine/dates/LevelsGroup";const Mg={numberOfColumns:1},io=F.factory((i,n)=>{const r=F.useProps("DecadeLevelGroup",Mg,i),{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:d,getYearControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,nextDisabled:ae,previousDisabled:ce,headerControlsOrder:Q,classNames:ne,styles:J,unstyled:V,__staticSelector:de,__stopPropagation:he,numberOfColumns:re,levelControlAriaLabel:De,decadeLabelFormat:Oe,size:I,vars:P,attributes:D,...v}=r,f=ye.useRef([]),w=Array(re).fill(0).map((h,m)=>{const C=Te(s).add(m*10,"years").format("YYYY-MM-DD");return O.jsx(to,{size:I,yearsListFormat:d,decade:C,withNext:m===re-1,withPrevious:m===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(T,G)=>Ts({levelIndex:m,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:T,controlsRef:f}),__getControlRef:(T,G,oe)=>{Array.isArray(f.current[m])||(f.current[m]=[]),Array.isArray(f.current[m][T])||(f.current[m][T]=[]),f.current[m][T][G]=oe},levelControlAriaLabel:typeof De=="function"?De(C):De,locale:u,minDate:p,maxDate:g,__preventFocus:R,__stopPropagation:he,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,nextDisabled:ae,previousDisabled:ce,getYearControlProps:S,__staticSelector:de||"DecadeLevelGroup",classNames:ne,styles:J,unstyled:V,withCellSpacing:N,headerControlsOrder:Q,attributes:D},m)});return O.jsx(ir,{classNames:ne,styles:J,__staticSelector:de||"DecadeLevelGroup",ref:n,size:I,unstyled:V,attributes:D,...v,children:w})});io.classes={...ir.classes,...to.classes},io.displayName="@mantine/dates/DecadeLevelGroup";const Rg={numberOfColumns:1},oo=F.factory((i,n)=>{const r=F.useProps("YearLevelGroup",Rg,i),{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:d,getMonthControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,headerControlsOrder:J,classNames:V,styles:de,unstyled:he,__staticSelector:re,__stopPropagation:De,numberOfColumns:Oe,levelControlAriaLabel:I,yearLabelFormat:P,size:D,vars:v,attributes:f,...w}=r,h=ye.useRef([]),m=Array(Oe).fill(0).map((C,T)=>{const G=Te(s).add(T,"years").format("YYYY-MM-DD");return O.jsx(no,{size:D,monthsListFormat:d,year:G,withNext:T===Oe-1,withPrevious:T===0,yearLabelFormat:P,__stopPropagation:De,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(oe,ue)=>Ts({levelIndex:T,rowIndex:ue.rowIndex,cellIndex:ue.cellIndex,event:oe,controlsRef:h}),__getControlRef:(oe,ue,we)=>{Array.isArray(h.current[T])||(h.current[T]=[]),Array.isArray(h.current[T][oe])||(h.current[T][oe]=[]),h.current[T][oe][ue]=we},levelControlAriaLabel:typeof I=="function"?I(G):I,locale:u,minDate:p,maxDate:g,__preventFocus:R,nextIcon:L,previousIcon:$,nextLabel:B,previousLabel:H,onNext:se,onPrevious:le,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,getMonthControlProps:S,classNames:V,styles:de,unstyled:he,__staticSelector:re||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:J,attributes:f},T)});return O.jsx(ir,{classNames:V,styles:de,__staticSelector:re||"YearLevelGroup",ref:n,size:D,unstyled:he,attributes:f,...w,children:m})});oo.classes={...no.classes,...ir.classes},oo.displayName="@mantine/dates/YearLevelGroup";const kg={numberOfColumns:1},so=F.factory((i,n)=>{const r=F.useProps("MonthLevelGroup",kg,i),{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__onDayClick:H,__onDayMouseEnter:se,withCellSpacing:le,highlightToday:ae,withWeekNumbers:ce,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:I,hasNextLevel:P,headerControlsOrder:D,classNames:v,styles:f,unstyled:w,numberOfColumns:h,levelControlAriaLabel:m,monthLabelFormat:C,__staticSelector:T,__stopPropagation:G,size:oe,static:ue,vars:we,attributes:X,...be}=r,_e=ye.useRef([]),ve=Array(h).fill(0).map((j,Z)=>{const W=Te(s).add(Z,"months").format("YYYY-MM-DD");return O.jsx(ro,{month:W,withNext:Z===h-1,withPrevious:Z===0,monthLabelFormat:C,__stopPropagation:G,__onDayClick:H,__onDayMouseEnter:se,__onDayKeyDown:(K,ee)=>Ts({levelIndex:Z,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:K,controlsRef:_e}),__getDayRef:(K,ee,Se)=>{Array.isArray(_e.current[Z])||(_e.current[Z]=[]),Array.isArray(_e.current[Z][K])||(_e.current[Z][K]=[]),_e.current[Z][K][ee]=Se},levelControlAriaLabel:typeof m=="function"?m(W):m,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:d,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:B,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:I,hasNextLevel:P,classNames:v,styles:f,unstyled:w,__staticSelector:T||"MonthLevelGroup",size:oe,static:ue,withCellSpacing:le,highlightToday:ae,withWeekNumbers:ce,headerControlsOrder:D,attributes:X},Z)});return O.jsx(ir,{classNames:v,styles:f,__staticSelector:T||"MonthLevelGroup",ref:n,size:oe,attributes:X,...be,children:ve})});so.classes={...ir.classes,...ro.classes},so.displayName="@mantine/dates/MonthLevelGroup";const Nu=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Iu=(i,n)=>{const r=n?yu:sn;return Array.isArray(i)?i.map(r):r(i)};function ks({type:i,value:n,defaultValue:r,onChange:s,withTime:u=!1}){const p=ye.useRef(i),[g,d,S]=Mt.useUncontrolled({value:Iu(n,u),defaultValue:Iu(r,u),finalValue:Nu(i),onChange:s});let A=g;return p.current!==i&&(p.current=i,n===void 0&&(A=r!==void 0?r:Nu(i),d(A))),[A,d,S]}function Ls(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function Lg(i){return i===0?"month":i===1?"year":"decade"}function pi(i,n,r){return Lg(Mt.clamp(Ls(i,0),Ls(n,0),Ls(r,2)))}const Ng={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},ao=F.factory((i,n)=>{const r=F.useProps("Calendar",Ng,i),{vars:s,maxLevel:u,minLevel:p,defaultLevel:g,level:d,onLevelChange:S,date:A,defaultDate:E,onDateChange:N,numberOfColumns:R,columnsToScroll:L,ariaLabels:$,nextLabel:B,previousLabel:H,onYearSelect:se,onMonthSelect:le,onYearMouseEnter:ae,onMonthMouseEnter:ce,headerControlsOrder:Q,__updateDateOnYearSelect:ne,__updateDateOnMonthSelect:J,__setDateRef:V,__setLevelRef:de,firstDayOfWeek:he,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:I,renderDay:P,hideOutsideDates:D,hideWeekdays:v,getDayAriaLabel:f,monthLabelFormat:w,nextIcon:h,previousIcon:m,__onDayClick:C,__onDayMouseEnter:T,withCellSpacing:G,highlightToday:oe,withWeekNumbers:ue,monthsListFormat:we,getMonthControlProps:X,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:ve,decadeLabelFormat:j,classNames:Z,styles:W,unstyled:K,minDate:ee,maxDate:Se,locale:l,__staticSelector:c,size:_,__preventFocus:k,__stopPropagation:U,onNextDecade:te,onPreviousDecade:Ae,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:me,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Xe,...Qe}=r,{resolvedClassNames:nt,resolvedStyles:Et}=F.useResolvedStylesApi({classNames:Z,styles:W,props:r}),[pt,rt]=Mt.useUncontrolled({value:d?pi(d,p,u):void 0,defaultValue:g?pi(g,p,u):void 0,finalValue:pi(void 0,p,u),onChange:S}),[An,St]=ks({type:"default",value:sn(A),defaultValue:sn(E),onChange:N});ye.useImperativeHandle(V,()=>ze=>{St(ze)}),ye.useImperativeHandle(de,()=>ze=>{rt(ze)});const Dn={__staticSelector:c||"Calendar",styles:Et,classNames:nt,unstyled:K,size:_,attributes:Xe},At=L||R||1,jt=new Date,On=ee&&Te(jt).isAfter(ee)?ee:Te(jt).format("YYYY-MM-DD"),yt=An||On,an=()=>{const ze=Te(yt).add(At,"month").format("YYYY-MM-DD");me?.(ze),St(ze)},ln=()=>{const ze=Te(yt).subtract(At,"month").format("YYYY-MM-DD");Re?.(ze),St(ze)},Yt=()=>{const ze=Te(yt).add(At,"year").format("YYYY-MM-DD");Ce?.(ze),St(ze)},Lt=()=>{const ze=Te(yt).subtract(At,"year").format("YYYY-MM-DD");Pe?.(ze),St(ze)},Ft=()=>{const ze=Te(yt).add(10*At,"year").format("YYYY-MM-DD");te?.(ze),St(ze)},Wt=()=>{const ze=Te(yt).subtract(10*At,"year").format("YYYY-MM-DD");Ae?.(ze),St(ze)},Kt=ye.useRef(null);ye.useEffect(()=>{if(!ke||Ie)return;const ze=at=>{if(!Kt.current?.contains(document.activeElement))return;const Nt=at.ctrlKey||at.metaKey,Zt=at.shiftKey;switch(at.key){case"ArrowUp":Nt&&Zt?(at.preventDefault(),Wt()):Nt&&(at.preventDefault(),Lt());break;case"ArrowDown":Nt&&Zt?(at.preventDefault(),Ft()):Nt&&(at.preventDefault(),Yt());break;case"y":case"Y":pt==="month"&&(at.preventDefault(),rt("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[ke,Ie,pt,Yt,Lt,Ft,Wt]);const Ut=ze=>{Kt.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(F.Box,{ref:Ut,size:_,"data-calendar":!0,...Qe,children:[pt==="month"&&O.jsx(so,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:he,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:I,renderDay:P,hideOutsideDates:D,hideWeekdays:v,getDayAriaLabel:f,onNext:an,onPrevious:ln,hasNextLevel:u!=="month",onLevelClick:()=>rt("year"),numberOfColumns:R,locale:l,levelControlAriaLabel:$?.monthLevelControl,nextLabel:$?.nextMonth??B,nextIcon:h,previousLabel:$?.previousMonth??H,previousIcon:m,monthLabelFormat:w,__onDayClick:C,__onDayMouseEnter:T,__preventFocus:k,__stopPropagation:U,static:Ie,withCellSpacing:G,highlightToday:oe,withWeekNumbers:ue,headerControlsOrder:Q,...Dn}),pt==="year"&&O.jsx(oo,{year:yt,numberOfColumns:R,minDate:ee,maxDate:Se,monthsListFormat:we,getMonthControlProps:X,locale:l,onNext:Yt,onPrevious:Lt,hasNextLevel:u!=="month"&&u!=="year",onLevelClick:()=>rt("decade"),levelControlAriaLabel:$?.yearLevelControl,nextLabel:$?.nextYear??B,nextIcon:h,previousLabel:$?.previousYear??H,previousIcon:m,yearLabelFormat:be,__onControlMouseEnter:ce,__onControlClick:(ze,at)=>{J&&St(at),rt(pi("month",p,u)),le?.(at)},__preventFocus:k,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Dn}),pt==="decade"&&O.jsx(io,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:_e,getYearControlProps:ve,locale:l,onNext:Ft,onPrevious:Wt,numberOfColumns:R,nextLabel:$?.nextDecade??B,nextIcon:h,previousLabel:$?.previousDecade??H,previousIcon:m,decadeLabelFormat:j,__onControlMouseEnter:ae,__onControlClick:(ze,at)=>{ne&&St(at),rt(pi("year",p,u)),se?.(at)},__preventFocus:k,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Dn})]})});ao.classes={...io.classes,...oo.classes,...so.classes},ao.displayName="@mantine/dates/Calendar";function Ig(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:p,nextIcon:g,previousIcon:d,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:$,previousLabel:B,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:I,__setLevelRef:P,withWeekNumbers:D,headerControlsOrder:v,firstDayOfWeek:f,weekdayFormat:w,weekendDays:h,getDayProps:m,excludeDate:C,renderDay:T,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:ue,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:j,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:l,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:p,nextIcon:g,previousIcon:d,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:$,previousLabel:B,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:I,withWeekNumbers:D,headerControlsOrder:v,firstDayOfWeek:f,weekdayFormat:w,weekendDays:h,getDayProps:m,excludeDate:C,renderDay:T,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:ue,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:j,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:l},others:c}}function $g(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Te(n).format("YYYY-MM-DD")}function Bg({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Te(i).isAfter(n,"date")||r&&Te(i).isBefore(r,"date"))}const jg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},lo=F.factory((i,n)=>{const r=F.useInputProps("DateInput",jg,i),{inputProps:s,wrapperProps:u,value:p,defaultValue:g,onChange:d,clearable:S,clearButtonProps:A,popoverProps:E,getDayProps:N,locale:R,valueFormat:L,dateParser:$,minDate:B,maxDate:H,fixOnBlur:se,onFocus:le,onBlur:ae,onClick:ce,onKeyDown:Q,readOnly:ne,name:J,form:V,rightSection:de,unstyled:he,classNames:re,styles:De,allowDeselect:Oe,date:I,defaultDate:P,onDateChange:D,getMonthControlProps:v,getYearControlProps:f,...w}=r,h=ye.useRef(null),m=ye.useRef(null),[C,T]=ye.useState(!1),{calendarProps:G,others:oe}=Ig(w),ue=nr(),X=$||(Ce=>{const Pe=Te(Ce,L,ue.getLocale(R)).toDate();return Number.isNaN(Pe.getTime())?$g(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:S,_e=Ce=>Ce?Te(Ce).locale(ue.getLocale(R)).format(L):"",[ve,j,Z]=ks({type:"default",value:p,defaultValue:g,onChange:d}),[W,K]=ks({type:"default",value:I,defaultValue:g||P,onChange:D});ye.useEffect(()=>{Z&&p!==null&&K(p)},[Z,p]);const[ee,Se]=ye.useState(_e(ve));ye.useEffect(()=>{Se(_e(ve))},[ue.getLocale(R)]);const l=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),T(!0),Pe.trim()===""&&S)j(null);else{const me=X(Pe);me&&Bg({date:me,minDate:B,maxDate:H})&&(j(me),K(me))}},c=Ce=>{ae?.(Ce),T(!1),se&&Se(_e(ve))},_=Ce=>{le?.(Ce),T(!0)},k=Ce=>{ce?.(Ce),T(!0)},U=Ce=>{Ce.key==="Escape"&&T(!1),Q?.(Ce)},te=Ce=>({...N?.(Ce),selected:Te(ve).isSame(Ce,"day"),onClick:Pe=>{N?.(Ce).onClick?.(Pe);const me=S&&be&&Te(ve).isSame(Ce,"day")?null:Ce;j(me),!Z&&me&&Se(_e(me)),T(!1)}}),Ae=de||(S&&ve&&!ne?O.jsx(F.CloseButton,{variant:"transparent",onMouseDown:Ce=>Ce.preventDefault(),tabIndex:-1,onClick:()=>{j(null),!Z&&Se(""),T(!1)},unstyled:he,size:s.size||"sm",...A}):null);return Mt.useDidUpdate(()=>{ve!==void 0&&!C&&Se(_e(ve))},[ve]),Mt.useClickOutside(()=>T(!1),void 0,[h.current,m.current]),O.jsxs(O.Fragment,{children:[O.jsx(F.Input.Wrapper,{...u,__staticSelector:"DateInput",ref:h,children:O.jsxs(F.Popover,{opened:C,trapFocus:!1,position:"bottom-start",disabled:ne,withRoles:!1,unstyled:he,...E,children:[O.jsx(F.Popover.Target,{children:O.jsx(F.Input,{"data-dates-input":!0,"data-read-only":ne||void 0,autoComplete:"off",ref:n,value:ee,onChange:l,onBlur:c,onFocus:_,onClick:k,onKeyDown:U,readOnly:ne,rightSection:Ae,...s,...oe,__staticSelector:"DateInput"})}),O.jsx(F.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:m,children:O.jsx(ao,{__staticSelector:"DateInput",...G,classNames:re,styles:De,unstyled:he,__preventFocus:!0,minDate:B,maxDate:H,locale:R,getDayProps:te,size:s.size,date:W,onDateChange:K,getMonthControlProps:Ce=>({selected:typeof ve=="string"?Rs(Ce,ve):!1,...v?.(Ce)}),getYearControlProps:Ce=>({selected:typeof ve=="string"?Te(Ce).isSame(ve,"year"):!1,...f?.(Ce)}),attributes:u.attributes})})]})}),O.jsx(_u,{name:J,form:V,value:ve,type:"default"})]})});lo.classes={...F.Input.classes,...ao.classes},lo.displayName="@mantine/dates/DateInput";function Yg(i){const n=bn.c(50),{fields:r,onClose:s,queryKey:u,apiPath:p,steps:g,onCreated:d}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1),[R,L]=ye.useState(),{mutateAsync:$,isError:B,error:H,isPending:se}=pu(p,u),{mutateAsync:le,isPending:ae}=Es(p,u),ce=se||ae;let Q;n[0]!==r?(Q=new Set(r.filter(Hg).map(qg)),n[0]=r,n[1]=Q):Q=n[1];let ne;n[2]!==Q?(ne=[...Q],n[2]=Q,n[3]=ne):ne=n[3];const J=ne;let V;n[4]!==r?(V=r.reduce(zg,{}),n[4]=r,n[5]=V):V=n[5];let de;n[6]!==r?(de=r.filter(Ug).reduce(Fg,{}),n[6]=r,n[7]=de):de=n[7];let he;n[8]!==V||n[9]!==de?(he={mode:"uncontrolled",initialValues:V,validate:de},n[8]=V,n[9]=de,n[10]=he):he=n[10];const re=Xa.useForm(he);let De;n[11]!==re?(De=function(T){return T.conditional?T.conditional(re.getValues()):!0},n[11]=re,n[12]=De):De=n[12];const Oe=De;let I;n[13]!==re||n[14]!==R||n[15]!==Oe?(I=function(T){return Oe(T)?O.jsxs(ye.Fragment,{children:[(T.type===void 0||T.type=="text")&&O.jsx(F.TextInput,{label:T.column.title,placeholder:T.placeholder??"",...re.getInputProps(T.id),type:T.id.includes("email")?"email":void 0},re.key(T.id)),T.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:T.column.title,placeholder:T.placeholder??"",...re.getInputProps(T.id)},re.key(T.id)),T.type==="date"&&O.jsx(lo,{label:T.column.title,placeholder:T.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(T.id)},re.key(T.id)),T.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:T.column.title,...re.getInputProps(T.id,{type:"checkbox"})},re.key(T.id)),T.type==="textarea"&&O.jsx(F.Textarea,{label:T.column.title,placeholder:T.placeholder??"",...re.getInputProps(T.id),minRows:3,autosize:!0},re.key(T.id)),T.type==="custom"&&T.render&&T.render({...re.getValues(),...R&&{id:R}},re.setValues,N)]},T.id):null},n[13]=re,n[14]=R,n[15]=Oe,n[16]=I):I=n[16];const P=I;let D;n[17]!==H?.message||n[18]!==H?.name||n[19]!==B?(D=B&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[17]=H?.message,n[18]=H?.name,n[19]=B,n[20]=D):D=n[20];let v;n[21]!==S||n[22]!==$||n[23]!==re||n[24]!==B||n[25]!==s||n[26]!==d||n[27]!==R||n[28]!==J.length||n[29]!==le?(v=re.onSubmit(async C=>{if(R)await le({...C,id:R});else{const T=await $(C);L(T.id),d?.(T.id)}J.length&&S<J.length-1?B||A(S+1):B||(re.setInitialValues(C),re.reset(),s())}),n[21]=S,n[22]=$,n[23]=re,n[24]=B,n[25]=s,n[26]=d,n[27]=R,n[28]=J.length,n[29]=le,n[30]=v):v=n[30];let f;n[31]!==S||n[32]!==r||n[33]!==P||n[34]!==g||n[35]!==J?(f=J.length?O.jsx(F.Stepper,{active:S,size:"sm",children:J.map(C=>O.jsx(F.Stepper.Step,{...g&&g[C-1]?{label:g[C-1].label}:{},children:r.filter(T=>T.step===C).map(T=>P(T))},C))}):r.map(C=>P(C)),n[31]=S,n[32]=r,n[33]=P,n[34]=g,n[35]=J,n[36]=f):f=n[36];let w;n[37]!==S||n[38]!==E||n[39]!==ce||n[40]!==s||n[41]!==J.length?(w=!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>J.length?S===0?s():A(S-1):s(),variant:"outline",children:J.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:ce,children:J.length?S===J.length-1?"Speichern":"Weiter":"Speichern"})]}),n[37]=S,n[38]=E,n[39]=ce,n[40]=s,n[41]=J.length,n[42]=w):w=n[42];let h;n[43]!==f||n[44]!==w||n[45]!==v?(h=O.jsxs("form",{onSubmit:v,children:[f,w]}),n[43]=f,n[44]=w,n[45]=v,n[46]=h):h=n[46];let m;return n[47]!==h||n[48]!==D?(m=O.jsxs(O.Fragment,{children:[D,h]}),n[47]=h,n[48]=D,n[49]=m):m=n[49],m}function Fg(i,n){return i[n.id]=Wg,i}function Wg(i){return i?null:"Pflichtfeld"}function Ug(i){return i.required}function zg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function qg(i){return i.step}function Hg(i){return typeof i.step=="number"}var[Gg,Ns]=F.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),$u=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:u,setColumnsToggle:p,resetColumnsOrder:g,resetColumnsToggle:d,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E}=i,[N,R]=ye.useState(""),[L,$]=ye.useState("");return O.jsx(Gg,{value:{sourceColumn:N,setSourceColumn:R,targetColumn:L,setTargetColumn:$,columnsToggle:u,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!N||!L)return;let B=r.indexOf(N),H=r.indexOf(L);if(B!==-1&&H!==-1){let se=r.splice(B,1)[0];r.splice(H,0,se),s([...r])}},resetColumnsOrder:g,resetColumnsToggle:d,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E},children:n})};function Vg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Kg(){return O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),O.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),O.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),O.jsx("path",{d:"M3 3l18 18"})]})}function Zg({icon:i,text:n,active:r,children:s}){return O.jsx(F.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||O.jsxs(O.Fragment,{children:[i||O.jsx("div",{className:"mantine-datatable-empty-state-icon",children:O.jsx(Kg,{})}),O.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V)&&J.push(V)}),ne.forEach(V=>{J.includes(V.accessor)||J.push(V.accessor)}),J}function u(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V.accessor)&&J.push(V)}),ne.forEach(V=>{J.find(de=>de.accessor===V.accessor)||J.push({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})}),J}function p(Q,ne){let J=[];return Q.forEach(V=>{let de=Object.keys(V)[0];ne.find(he=>he.accessor===de)&&J.push(V)}),ne.forEach(V=>{let de=V.accessor;if(!J.find(he=>Object.keys(he)[0]===de)){let he={};he[de]="",J.push(he)}}),J}function g(){let[Q,ne]=Mt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=s(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[V,J]}function d(){let[Q,ne]=Mt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?N:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=u(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[u(Q,n),J]}function S(){let[Q,ne]=Mt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=p(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[p(Q,n),J]}let A=n&&n.map(Q=>Q.accessor)||[],E=n&&n.map(Q=>({[Q.accessor]:Q.width??"initial"}))||[],N=n&&n.map(Q=>({accessor:Q.accessor,defaultToggle:Q.defaultToggle||!0,toggleable:Q.toggleable,toggled:Q.defaultToggle===void 0?!0:Q.defaultToggle})),[R,L]=g(),[$,B]=d(),[H,se]=S(),le=()=>L(A),ae=()=>{B(N)},ce=()=>se(E);return{effectiveColumns:ye.useMemo(()=>R?R.map(Q=>n.find(ne=>ne.accessor===Q)).map(Q=>({...Q,hidden:Q?.hidden||!$.find(ne=>ne.accessor===Q?.accessor)?.toggled})).map(Q=>({...Q,width:H.find(ne=>ne[Q?.accessor])?.[Q?.accessor]})):n,[n,R,$,H]),setColumnsOrder:L,columnsOrder:R,resetColumnsOrder:le,columnsToggle:$,setColumnsToggle:B,resetColumnsToggle:ae,columnsWidth:H,setColumnsWidth:se,setColumnWidth:(Q,ne)=>{let J=H.map(V=>V[Q]?{[Q]:ne}:V);se(J)},setMultipleColumnWidths:Q=>{let ne=H.map(J=>{let V=Object.keys(J)[0],de=Q.find(he=>he.accessor===V);return de?{[V]:de.width}:J});se(ne)},resetColumnsWidth:ce}},Bu=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function ju(i){let n=ye.useRef(i);return n.current=i,n}var Yu="--mantine-datatable-header-height",Fu="--mantine-datatable-footer-height",Wu="--mantine-datatable-selection-column-width",Uu="--mantine-datatable-last-row-border-bottom";function Sn(i,n,r){i?.style.setProperty(n,r)}function Is(i){let n=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];return n?{width:n.inlineSize,height:n.blockSize}:{width:i.contentRect.width,height:i.contentRect.height}}function $s(i,n,r){if(i){let s=new ResizeObserver(u=>{let p=u[0];p&&n(Is(p))});return s.observe(i),()=>{s.disconnect(),r()}}}function Jg({scrollCallbacks:i,withRowBorders:n}){let r={root:ye.useRef(null),table:ye.useRef(null),scrollViewport:ye.useRef(null),header:ye.useRef(null),footer:ye.useRef(null),selectionColumnHeader:ye.useRef(null)},{root:s,table:u,scrollViewport:p,header:g,footer:d,selectionColumnHeader:S}=r,A=ju({withRowBorders:n}),E=ju(i),N=ye.useRef(()=>{}),R=ye.useRef(()=>{}),L=ye.useCallback($=>{E.current.onScroll?.($),N.current()},[]);return ye.useEffect(()=>$s(g.current,$=>{Sn(s.current,Yu,`${$.height}px`)},()=>Sn(s.current,Yu,"0")),[g.current]),ye.useEffect(()=>$s(d.current,$=>{Sn(s.current,Fu,`${$.height}px`)},()=>Sn(s.current,Fu,"0")),[d.current]),ye.useEffect(()=>$s(S.current,$=>{Sn(s.current,Wu,`${$.width}px`)},()=>Sn(s.current,Wu,"0")),[S.current]),Bu(()=>{if(typeof window===void 0)return;let $={top:!0,bottom:!0,left:!0,right:!0},B={width:0,height:0},H={width:0,height:0};function se(ne,J){let V=$[ne];return $[ne]=J,Sn(s.current,`--mantine-datatable-${ne}-shadow-opacity`,J?"0":"1"),V}function le(){let ne=B.height-H.height,J=ne<0;Sn(s.current,"--mantine-datatable-footer-position",J?"relative":"sticky"),Sn(s.current,"--mantine-datatable-footer-bottom",J?`${ne}px`:"0")}function ae(){A.current.withRowBorders&&B.height<H.height?Sn(s.current,Uu,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):Sn(s.current,Uu,"unset")}R.current=ae;function ce(){let ne=E.current,J=p.current?.scrollTop??0,V=p.current?.scrollLeft??0,de=J===0,he=B.height-J-H.height<1,re=se("top",de),De=se("bottom",he);de&&de!==re&&ne.onScrollToTop?.(),he&&he!==De&&ne.onScrollToBottom?.();let Oe=V===0,I=B.width-V-H.width<1,P=se("left",Oe),D=se("right",I);Oe&&Oe!==P&&ne.onScrollToLeft?.(),I&&I!==D&&ne.onScrollToRight?.()}N.current=ce;let Q=new ResizeObserver(ne=>{for(let J of ne)switch(J.target.tagName){case"TABLE":{B=Is(J);break}case"DIV":{H=Is(J);break}}ce(),le(),ae()});return Q.observe(u.current),Q.observe(p.current),()=>{Q.disconnect()}},[]),Bu(()=>{R.current()},[n]),{refs:r,onScroll:L}}function Xg(i){let[n,r]=ye.useState(null),s=i?.join(":")||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function e1(i,n){let r=()=>{n(i.map(u=>u.matches))},s=i.map(u=>{try{return u.addEventListener("change",r),()=>u.removeEventListener("change",r)}catch{return u.addListener(r),()=>u.removeListener(r)}});return()=>{s.forEach(u=>u())}}function t1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function n1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,u]=ye.useState(r?n:t1(i,n)),p=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(g=>window.matchMedia(g)),u(p.current.map(g=>g.matches)),e1(p.current,g=>{u(g)})},[i]),s}function r1(i){let n=F.useMantineTheme(),r=ye.useMemo(()=>i.map(u=>(typeof u=="function"?u(n):u)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return n1(r,s)}function uo(i){let n=F.useMantineTheme(),r=typeof i=="function"?i(n):i;return Mt.useMediaQuery(r||"",!0)}function Bs(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function i1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function js(i,n){return i.filter((r,s,u)=>s===u.findIndex(p=>n(r)===n(p)))}function zu(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function kt(i,n){return typeof n=="string"?zu(i,n):n(i)}function o1({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:d,allowMultiple:S,initiallyExpanded:A}=i;n&&d==="always"?s=n.map(E=>kt(E,r)):A&&(s=n.filter((E,N)=>A({record:E,index:N})).map(E=>kt(E,r)),S||(s=[s[0]]))}let u,p,g=ye.useState(s);if(i){let{expandable:d,trigger:S,allowMultiple:A,collapseProps:E,content:N}=i;i.expanded?{recordIds:u,onRecordIdsChange:p}=i.expanded:[u,p]=g;let R=L=>p?.(u.filter($=>$!==kt(L,r)));return{expandOnClick:S!=="always"&&S!=="never",isRowExpanded:L=>S==="always"?!0:u.includes(kt(L,r)),isExpandable:({record:L,index:$})=>d?d({record:L,index:$}):!0,expandRow:L=>{let $=kt(L,r);p?.(A?[...u,$]:[$])},collapseRow:R,collapseProps:E,content:({record:L,index:$})=>()=>N({record:L,index:$,collapse:()=>R(L)})}}}function s1(i,n){let[r,s]=ye.useState(i),[u,p]=ye.useState(i),g=Mt.useTimeout(()=>s(!0),0),d=Mt.useTimeout(()=>p(!1),n||200);return ye.useEffect(()=>{i?(d.clear(),p(!0),g.start()):(g.clear(),s(!1),d.start())},[g,d,i]),{expanded:r,visible:u}}var Ys="mantine-datatable-nowrap",Fs="mantine-datatable-ellipsis",Mr="mantine-datatable-pointer-cursor",qu="mantine-datatable-context-menu-cursor",a1="mantine-datatable-text-selection-disabled",co="mantine-datatable-text-align-left",fo="mantine-datatable-text-align-center",ho="mantine-datatable-text-align-right";function l1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:u,ellipsis:p,textAlign:g,width:d}){return uo(r)?O.jsx(F.TableTh,{className:ht({[Ys]:u||p,[Fs]:p,[co]:g==="left",[fo]:g==="center",[ho]:g==="right"},i),style:[{width:d,minWidth:d,maxWidth:d},n],children:s}):null}function u1({shadowVisible:i}){return O.jsx(F.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function c1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:u,selectorCellShadowVisible:p,ref:g}){return O.jsx(F.TableTfoot,{ref:g,className:ht("mantine-datatable-footer",i),style:n,children:O.jsxs(F.TableTr,{children:[u&&O.jsx(u1,{shadowVisible:p}),r.map(({hidden:d,...S})=>{if(d)return null;let{accessor:A,visibleMediaQuery:E,textAlign:N,width:R,footer:L,footerClassName:$,footerStyle:B,noWrap:H,ellipsis:se}={...s,...S};return O.jsx(l1,{className:$,style:B,visibleMediaQuery:E,textAlign:N,width:R,title:L,noWrap:H,ellipsis:se},A)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:u,style:p}}){let g=ye.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),d=r1(g),S=ye.useMemo(()=>n.filter(({hidden:A},E)=>!A&&d?.[E]).length,[n,d]);return S>0?O.jsx(F.TableTh,{colSpan:S,className:ht("mantine-datatable-column-group-header-cell",{[co]:s==="left",[fo]:s==="center",[ho]:s==="right"},u),style:p,children:r??Bs(i)}):null}function h1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function d1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function p1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[u,{close:p,toggle:g}]=Mt.useDisclosure(!1),d=n?d1:h1,S=Mt.useClickOutside(p);return s&&(S=void 0),O.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:u,onClose:p,trapFocus:!0,...r,children:[O.jsx(F.PopoverTarget,{children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:A=>{A.preventDefault(),g()},onKeyDown:A=>A.stopPropagation(),children:O.jsx(d,{})})}),O.jsx(F.PopoverDropdown,{ref:S,onClick:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),children:typeof i=="function"?i({close:p}):i})]})}var g1=i=>{let{accessor:n,columnRef:r}=i,[s,u]=ye.useState(!1),p=ye.useRef(0),g=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:d}=Ns(),S=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,R=N.nextElementSibling;for(;R;){let ae=R.getAttribute("data-accessor");if(ae&&ae!=="__selection__")break;R=R.nextElementSibling}if(!R)return;let L=R.getAttribute("data-accessor");if(!L)return;let $=L==="__selection__";u(!0),p.current=E.clientX;let B=N.offsetWidth,H=R.offsetWidth;g.current={current:B,next:H};let se=ae=>{if(!r.current)return;let ce=r.current,Q=ce.nextElementSibling;if(!Q)return;let ne=ae.clientX-p.current,J=50,V=g.current.current-J,de=g.current.next-J,he=Math.max(-V,Math.min(ne,de)),re=g.current.current+he,De=g.current.next-he;ce.style.width=`${re}px`,Q.style.width=`${De}px`,ce.style.minWidth=`${re}px`,ce.style.maxWidth=`${re}px`,Q.style.minWidth=`${De}px`,Q.style.maxWidth=`${De}px`},le=()=>{if(!r.current)return;let ae=r.current,ce=ae.nextElementSibling;u(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(ae.style.width)||ae.offsetWidth,ne=ce?parseInt(ce.style.width)||ce.offsetWidth:0,J=[{accessor:n,width:`${Q}px`}];if(ce&&!$){let V=ce.getAttribute("data-accessor");V&&J.push({accessor:V,width:`${ne}px`})}setTimeout(()=>{d(J)},0),document.removeEventListener("mousemove",se),document.removeEventListener("mouseup",le)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",se),document.addEventListener("mouseup",le)},[n,d]),A=ye.useCallback(()=>{if(!r.current)return;let E=r.current,N=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let R=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&R.push({accessor:L,width:"initial"})}setTimeout(()=>{d(R)},0)},[n,d]);return O.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:S,onDoubleClick:A,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function v1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function m1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 7l4 -4l4 4"}),O.jsx("path",{d:"M8 17l4 4l4 -4"}),O.jsx("path",{d:"M12 3l0 18"})]})}function y1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function _1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:u,sortable:p,draggable:g,toggleable:d,resizable:S,sortIcons:A,textAlign:E,width:N,sortStatus:R,onSortStatusChange:L,filter:$,filterPopoverProps:B,filterPopoverDisableClickOutside:H,filtering:se,sortKey:le}){let{setSourceColumn:ae,setTargetColumn:ce,swapColumns:Q,setColumnsToggle:ne}=Ns(),[J,V]=ye.useState(!1),de=ye.useRef(null);if(!uo(s))return null;let he=u??Bs(r),re=typeof he=="string"?he:void 0,De=p&&L?w=>{w?.defaultPrevented||L({sortKey:le,columnAccessor:r,direction:R?.columnAccessor===r?R.direction==="asc"?"desc":"asc":R?.direction??"asc"})}:void 0,Oe=w=>{w.stopPropagation(),ae(r),V(!1)},I=w=>{w.preventDefault(),ce(r),V(!0)},P=()=>{ce(r),V(!1),Q()},D=()=>{V(!0)},v=()=>{V(!1)},f=w=>{w.stopPropagation(),ne(h=>h.map(m=>m.accessor===r?{...m,toggled:!1}:m))};return O.jsxs(F.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":d,"mantine-datatable-header-cell-resizable":S},i),style:[{width:N,...S?{minWidth:"1px"}:{minWidth:N,maxWidth:N}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:De,onKeyDown:w=>w.key==="Enter"&&De?.(),ref:de,children:[O.jsxs(F.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O.jsxs(F.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":g,"mantine-datatable-header-cell-drag-over":J}),draggable:g,onDragStart:g?Oe:void 0,onDragEnter:g?D:void 0,onDragOver:g?I:void 0,onDrop:g?P:void 0,onDragLeave:g?v:void 0,children:[g?O.jsx(F.Center,{role:"img","aria-label":"Drag column",children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:w=>{w.stopPropagation()},children:O.jsx(y1,{})})}):null,O.jsx(F.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},Ys,Fs),title:re,children:he})]}),d?O.jsx(F.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:O.jsx(F.ActionIcon,{size:"xs",variant:"light",onClick:f,children:O.jsx(_1,{})})}):null,p||R?.columnAccessor===r?O.jsx(O.Fragment,{children:R?.columnAccessor===r?O.jsx(F.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":R.direction==="desc"}),role:"img","aria-label":`Sorted ${R.direction==="desc"?"descending":"ascending"}`,children:A?.sorted||O.jsx(v1,{})}):O.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:A?.unsorted||O.jsx(m1,{})})}):null,$?O.jsx(p1,{filterPopoverProps:B,isActive:!!se,filterPopoverDisableClickOutside:H,children:$}):null]}),S&&r!=="__selection__"?O.jsx(g1,{accessor:r,columnRef:de}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:u,indeterminate:p,checkboxProps:g,onChange:d,rowSpan:S,ref:A}){let E=!g.disabled;return O.jsx(F.TableTh,{ref:A,className:ht("mantine-datatable-header-selector-cell",{[Mr]:r==="cell"&&E},i),style:n,rowSpan:S,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?d:void 0,children:O.jsx(F.Checkbox,{classNames:E?{input:Mr}:void 0,checked:u,indeterminate:p,onChange:d,...g,disabled:!(d||g.onChange)||g.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:u,onSortStatusChange:p,columns:g,defaultColumnProps:d,groups:S,selectionTrigger:A,selectionVisible:E,selectionChecked:N,selectionIndeterminate:R,onSelectionChange:L,selectionCheckboxProps:$,selectorCellShadowVisible:B,selectionColumnClassName:H,selectionColumnStyle:se,ref:le}){let ae=E?O.jsx(b1,{ref:i,className:H,style:se,trigger:A,shadowVisible:B,checked:N,indeterminate:R,checkboxProps:$,onChange:L,rowSpan:S?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:Q}=Ns(),[ne,J]=ye.useState(!1),V=g.some(re=>re.toggleable),de=V?Object.fromEntries(g.map(({accessor:re,title:De})=>[re,De??Bs(String(re))])):void 0,he=O.jsxs(F.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:le,onContextMenu:V?re=>{re.preventDefault(),J(De=>!De)}:void 0,children:[S&&O.jsxs(F.TableTr,{children:[ae,S.map(re=>O.jsx(f1,{group:re},re.id))]}),O.jsxs(F.TableTr,{children:[!S&&ae,g.map(({hidden:re,...De},Oe)=>{if(re)return null;let{accessor:I,visibleMediaQuery:P,textAlign:D,width:v,title:f,sortable:w,draggable:h,toggleable:m,resizable:C,titleClassName:T,titleStyle:G,filter:oe,filterPopoverProps:ue,filterPopoverDisableClickOutside:we,filtering:X,sortKey:be}={...d,...De};return O.jsx(w1,{accessor:I,className:T,style:G,visibleMediaQuery:P,textAlign:D,width:v,title:f,sortable:w,draggable:h,toggleable:m,resizable:C&&Oe<g.length-1,sortStatus:s,sortIcons:u,sortKey:be,onSortStatusChange:p,filter:oe,filterPopoverProps:ue,filterPopoverDisableClickOutside:we,filtering:X},I)})]})]});return V?O.jsxs(F.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ne,onChange:J,children:[O.jsx(F.PopoverTarget,{children:he}),O.jsx(F.PopoverDropdown,{children:O.jsx(F.Stack,{children:ce.filter(re=>re.toggleable).map(re=>O.jsx(F.Group,{children:O.jsx(F.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[re.accessor],checked:re.toggled,onChange:De=>{Q(ce.map(Oe=>Oe.accessor===re.accessor?{...Oe,toggled:De.currentTarget.checked}:Oe))}})},re.accessor))})})]}):he}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:u,color:p}){return O.jsx(F.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||O.jsx(F.Loader,{size:s,type:u,color:p}))})}function mt(i,n,r){return i?F.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function S1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:u,stripedColor:p,highlightOnHoverColor:g}){return{"--mantine-datatable-color-light":mt(n,i,"light"),"--mantine-datatable-color-dark":mt(n,i,"dark"),"--mantine-datatable-background-color-light":mt(r,i,"light"),"--mantine-datatable-background-color-dark":mt(r,i,"dark"),"--mantine-datatable-border-color-light":mt(s,i,"light"),"--mantine-datatable-border-color-dark":mt(s,i,"dark"),"--mantine-datatable-row-border-color-light":mt(u,i,"light"),"--mantine-datatable-row-border-color-dark":mt(u,i,"dark"),"--mantine-datatable-striped-color-light":mt(p,i,"light"),"--mantine-datatable-striped-color-dark":mt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":mt(g,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":mt(g,i,"dark")}}function Hu({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":mt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":mt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":mt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":mt(r,i,"dark")}}function A1({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":mt(n,i,"light"),"--mantine-datatable-row-color-dark":mt(n,i,"dark"),"--mantine-datatable-row-background-color-light":mt(r,i,"light"),"--mantine-datatable-row-background-color-dark":mt(r,i,"dark")}}function D1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 9l4 -4l4 4"}),O.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Gu={xs:F.rem(22),sm:F.rem(26),md:F.rem(32),lg:F.rem(38),xl:F.rem(44)};function O1({size:i,label:n,values:r,value:s,activeTextColor:u,activeBackgroundColor:p,onChange:g}){return O.jsxs(F.Group,{gap:"xs",children:[O.jsx(F.Text,{component:"div",size:i,children:n}),O.jsxs(F.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[O.jsx(F.MenuTarget,{children:O.jsx(F.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:O.jsx(D1,{}),style:[{fontWeight:"normal"},d=>({height:Gu[i],paddingLeft:d.spacing[i],paddingRight:d.spacing[i]})],children:s})}),O.jsx(F.MenuDropdown,{children:r.map(d=>{let S=d===s;return O.jsx(F.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":S}),style:[{height:Gu[i]},S&&(u||p)?A=>Hu({theme:A,paginationActiveTextColor:u,paginationActiveBackgroundColor:p}):void 0],disabled:S,onClick:()=>g(d),children:O.jsx(F.Text,{component:"div",size:i,children:d})},d)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:u,paginationWithEdges:p,paginationWithControls:g,paginationActiveTextColor:d,paginationActiveBackgroundColor:S,paginationSize:A,loadingText:E,noRecordsText:N,paginationText:R,totalRecords:L,recordsPerPage:$,onRecordsPerPageChange:B,recordsPerPageLabel:H,recordsPerPageOptions:se,recordsLength:le,horizontalSpacing:ae,paginationWrapBreakpoint:ce,getPaginationControlProps:Q}){let ne;if(L){let V=(s-1)*$+1,de=V+(le||0)-1;ne=R({from:V,to:de,totalRecords:L})}else ne=r?E:N;let J=uo(({breakpoints:V})=>`(min-width: ${typeof ce=="number"?`${F.rem(ce)}rem`:V[ce]||ce})`);return O.jsxs(F.Box,{px:ae??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[O.jsx(F.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ne}),se&&O.jsx(O1,{activeTextColor:d,activeBackgroundColor:S,size:A,label:H,values:se,value:$,onChange:B}),O.jsx(F.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!le}),control:"mantine-datatable-pagination-pages-control"},style:d||S?V=>Hu({theme:V,paginationActiveTextColor:d,paginationActiveBackgroundColor:S}):void 0,withEdges:p,withControls:g,value:s,onChange:u,size:A,total:Math.ceil(L/$),getControlProps:Q})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:u,onClick:p,onDoubleClick:g,onContextMenu:d,noWrap:S,ellipsis:A,textAlign:E,width:N,accessor:R,render:L,defaultRender:$,customCellAttributes:B}){return uo(r)?O.jsx(F.TableTd,{className:ht({[Ys]:S||A,[Fs]:A,[Mr]:p||g,[qu]:d,[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:p,onDoubleClick:g,onContextMenu:d,...B?.(s,u),children:L?L(s,u):$?$(s,u,R):zu(s,R)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:u,visible:p}=s1(i,s?.transitionDuration);return p?O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{}),O.jsx(F.TableTr,{children:O.jsx(F.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:O.jsx(F.Collapse,{in:u,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function M1({className:i,style:n,record:r,index:s,trigger:u,onChange:p,withRightShadow:g,checkboxProps:d,getCheckboxProps:S,...A}){let E={...d,...S(r,s)},N=!A.disabled&&!E.disabled,R=L=>{L.stopPropagation(),u==="cell"&&N&&p?.(L)};return O.jsx(F.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Mr]:u==="cell"&&N},i),style:n,"data-shadow-visible":g||void 0,onClick:R,children:O.jsx(F.Checkbox,{classNames:N?{input:Mr}:void 0,onChange:p,...A,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:u,selectionTrigger:p,selectionVisible:g,selectionChecked:d,onSelectionChange:S,isRecordSelectable:A,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:R,onDoubleClick:L,onContextMenu:$,onCellClick:B,onCellDoubleClick:H,onCellContextMenu:se,expansion:le,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J,selectorCellShadowVisible:V,selectionColumnClassName:de,selectionColumnStyle:he,rowFactory:re}){let De=O.jsxs(O.Fragment,{children:[g&&O.jsx(M1,{className:de,style:he,record:i,index:n,trigger:p,withRightShadow:V,checked:d,disabled:!S||(A?!A(i,n):!1),onChange:S,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:P,hiddenContent:D,...v},f)=>{if(P||D)return null;let{accessor:w,visibleMediaQuery:h,textAlign:m,noWrap:C,ellipsis:T,width:G,render:oe,cellsClassName:ue,cellsStyle:we,customCellAttributes:X}={...s,...v};return O.jsx(T1,{className:typeof ue=="function"?ue(i,n):ue,style:we?.(i,n),visibleMediaQuery:h,record:i,index:n,onClick:B?be=>B({event:be,record:i,index:n,column:v,columnIndex:f}):void 0,onDoubleClick:H?be=>H({event:be,record:i,index:n,column:v,columnIndex:f}):void 0,onContextMenu:se?be=>se({event:be,record:i,index:n,column:v,columnIndex:f}):void 0,accessor:w,textAlign:m,noWrap:C,ellipsis:T,width:G,render:oe,defaultRender:u,customCellAttributes:X},w)})]}),Oe=le&&O.jsx(P1,{colSpan:r.filter(({hidden:P})=>!P).length+(g?1:0),open:le.isRowExpanded(i),content:le.content({record:i,index:n}),collapseProps:le.collapseProps}),I=k1({record:i,index:n,selectionChecked:d,onClick:R,onDoubleClick:L,onContextMenu:$,expansion:le,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J});return re?re({record:i,index:n,rowProps:I,children:De,expandedElement:Oe}):O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{...I,children:De}),Oe]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:u,onContextMenu:p,expansion:g,customAttributes:d,color:S,backgroundColor:A,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Mr]:s||u||g?.isExpandable({record:i,index:n})&&g?.expandOnClick},{[qu]:p},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:R=>{if(g){let{isExpandable:L,isRowExpanded:$,expandOnClick:B,expandRow:H,collapseRow:se}=g;L({record:i,index:n})&&B&&($(i)?se(i):H(i))}s?.({event:R,record:i,index:n})},onDoubleClick:u?R=>u({event:R,record:i,index:n}):void 0,onContextMenu:p?R=>p({event:R,record:i,index:n}):void 0,style:[S||A?R=>{let L=S?.(i,n),$=A?.(i,n);return A1({theme:R,color:L,backgroundColor:$})}:void 0,N?.(i,n)],...d?.(i,n)??{}}}function L1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:u,scrollAreaProps:p}){return O.jsxs(F.ScrollArea,{...p,viewportRef:u,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:r,children:[s,O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow")})]})}function N1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:u,maxHeight:p,shadow:g,verticalAlign:d="center",fetching:S,columns:A,storeColumnsKey:E,groups:N,pinFirstColumn:R,pinLastColumn:L,defaultColumnProps:$,defaultColumnRender:B,idAccessor:H="id",records:se,selectionTrigger:le="checkbox",selectedRecords:ae,onSelectedRecordsChange:ce,selectionColumnClassName:Q,selectionColumnStyle:ne,isRecordSelectable:J,selectionCheckboxProps:V,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(_t,Ze)=>({"aria-label":`Select record ${Ze+1}`}),sortStatus:re,sortIcons:De,onSortStatusChange:Oe,horizontalSpacing:I,page:P,onPageChange:D,totalRecords:v,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m="Records per page",paginationWithEdges:C,paginationWithControls:T,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:ue="sm",paginationText:we=({from:_t,to:Ze,totalRecords:ct})=>`${_t} - ${Ze} / ${ct}`,paginationWrapBreakpoint:X="sm",getPaginationControlProps:be=_t=>_t==="previous"?{"aria-label":"Previous page"}:_t==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:_e,customLoader:ve,loaderSize:j,loaderType:Z,loaderColor:W,loadingText:K="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:c,striped:_,noHeader:k,onRowClick:U,onRowDoubleClick:te,onRowContextMenu:Ae,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:me,onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe,c:nt,backgroundColor:Et,borderColor:pt,rowBorderColor:rt,stripedColor:An,highlightOnHoverColor:St,rowColor:Dn,rowBackgroundColor:At,rowExpansion:jt,rowClassName:On,rowStyle:yt,customRowAttributes:an,scrollViewportRef:ln,scrollAreaProps:Yt,tableRef:Lt,bodyRef:Ft,m:Wt,my:Kt,mx:Ut,mt:ze,mb:at,ml:Nt,mr:Zt,className:Rn,classNames:un,style:yr,styles:cn,rowFactory:kn,tableWrapper:fn,...hn}){let _t=ye.useMemo(()=>N?.flatMap(Ve=>Ve.columns)??A,[A,N]),Ze=ye.useMemo(()=>_t.some(Ve=>Ve.resizable),[_t]),ct=Qg({key:E,columns:_t}),{refs:zt,onScroll:Yn}=Jg({scrollCallbacks:{onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe},withRowBorders:hn.withRowBorders}),Rr=Mt.useMergedRef(zt.table,Lt),Fn=Mt.useMergedRef(zt.scrollViewport,ln),kr=o1({rowExpansion:jt,records:se,idAccessor:H}),Wn=ye.useCallback(Ve=>{zt.scrollViewport.current?.scrollTo({top:0,left:0}),D(Ve)},[D,zt.scrollViewport]),Lr=se?.length,po=se?.map(Ve=>kt(Ve,H)),or=!!ae,sr=ae?.map(Ve=>kt(Ve,H)),vi=po!==void 0&&sr!==void 0&&sr.length>0,Nr=J?se?.filter(J):se,Ir=Nr?.map(Ve=>kt(Ve,H)),$r=vi&&Ir.every(Ve=>sr.includes(Ve)),Ws=vi&&Ir.some(Ve=>sr.includes(Ve)),Us=ye.useCallback(()=>{ae&&ce&&ce($r?ae.filter(Ve=>!Ir.includes(kt(Ve,H))):js([...ae,...Nr],Ve=>kt(Ve,H)))},[$r,H,ce,Ir,Nr,ae]),{lastSelectionChangeIndex:_r,setLastSelectionChangeIndex:go}=Xg(po),Br=or&&!R,mi={m:Wt,my:Kt,mx:Ut,mt:ze,mb:at,ml:Nt,mr:Zt},zs=ye.useCallback(({children:Ve})=>fn?fn({children:Ve}):Ve,[fn]);return O.jsx($u,{...ct,children:O.jsxs(F.Box,{ref:zt.root,...mi,className:ht("mantine-datatable",{"mantine-datatable-with-border":i},Rn,un?.root),style:[Ve=>({...S1({theme:Ve,c:nt,backgroundColor:Et,borderColor:pt,rowBorderColor:rt,stripedColor:An,highlightOnHoverColor:St}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[g]||g,height:s,minHeight:u,maxHeight:p}),yr,cn?.root,{position:"relative"}],children:[O.jsx(L1,{viewportRef:Fn,leftShadowBehind:or||!!R,rightShadowBehind:L,onScrollPositionChange:Yn,scrollAreaProps:Yt,children:O.jsx(zs,{children:O.jsxs(F.Table,{ref:Rr,horizontalSpacing:I,className:ht("mantine-datatable-table",{[a1]:r,"mantine-datatable-vertical-align-top":d==="top","mantine-datatable-vertical-align-bottom":d==="bottom","mantine-datatable-pin-last-column":L,"mantine-datatable-selection-column-visible":or,"mantine-datatable-pin-first-column":R,"mantine-datatable-resizable-columns":Ze},un?.table),style:{...cn?.table},"data-striped":Lr&&_||void 0,"data-highlight-on-hover":c||void 0,...hn,children:[k?null:O.jsx($u,{...ct,children:O.jsx(x1,{ref:zt.header,selectionColumnHeaderRef:zt.selectionColumnHeader,className:un?.header,style:cn?.header,columns:_t,defaultColumnProps:$,groups:N,sortStatus:re,sortIcons:De,onSortStatusChange:Oe,selectionTrigger:le,selectionVisible:or,selectionChecked:$r,selectionIndeterminate:Ws&&!$r,onSelectionChange:Us,selectionCheckboxProps:{...V,...de},selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:ne})}),O.jsx("tbody",{ref:Ft,children:Lr?se.map((Ve,Ln)=>{let jr=kt(Ve,H),yi=sr?.includes(jr)||!1,_i;return ce&&ae&&(_i=vo=>{if(vo.nativeEvent.shiftKey&&_r!==null){let Nn=se.filter(Ln>_r?(Un,In)=>In>=_r&&In<=Ln&&(J?J(Un,In):!0):(Un,In)=>In>=Ln&&In<=_r&&(J?J(Un,In):!0));ce(yi?i1(ae,Nn,Un=>kt(Un,H)):js([...ae,...Nn],Un=>kt(Un,H)))}else ce(yi?ae.filter(Nn=>kt(Nn,H)!==jr):js([...ae,Ve],Nn=>kt(Nn,H)));go(Ln)}),O.jsx(R1,{record:Ve,index:Ln,columns:_t,defaultColumnProps:$,defaultColumnRender:B,selectionTrigger:le,selectionVisible:or,selectionChecked:yi,onSelectionChange:_i,isRecordSelectable:J,selectionCheckboxProps:V,getSelectionCheckboxProps:he,onClick:U,onDoubleClick:te,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:Ae,onCellContextMenu:me,expansion:kr,color:Dn,backgroundColor:At,className:On,style:yt,customAttributes:an,selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:ne,idAccessor:H,rowFactory:kn},jr)}):O.jsx(Vg,{})}),_t.some(({footer:Ve})=>Ve)&&O.jsx(c1,{ref:zt.footer,className:un?.footer,style:cn?.footer,columns:_t,defaultColumnProps:$,selectionVisible:or,selectorCellShadowVisible:Br})]})})}),P&&O.jsx(E1,{className:un?.pagination,style:cn?.pagination,horizontalSpacing:I,fetching:S,page:P,onPageChange:Wn,totalRecords:v,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m,paginationWithEdges:C,paginationWithControls:T,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:ue,paginationText:we,paginationWrapBreakpoint:X,getPaginationControlProps:be,noRecordsText:Se,loadingText:K,recordsLength:Lr}),O.jsx(C1,{fetching:S,backgroundBlur:_e,customContent:ve,size:j,type:Z,color:W}),O.jsx(Zg,{icon:l,text:Se,active:!S&&!Lr,children:ee})]})})}var gi={exports:{}};/**
|
|
118
118
|
* @license
|
|
119
119
|
* Lodash <https://lodash.com/>
|
|
120
120
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
121
121
|
* Released under MIT license <https://lodash.com/license>
|
|
122
122
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
123
123
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
124
|
-
*/var I1=gi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",d="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",N=1,R=2,L=4,$=1,B=2,H=1,se=2,le=4,ae=8,ce=16,Q=32,ne=64,J=128,V=256,de=512,he=30,re="...",Ae=800,Oe=16,I=1,P=2,D=3,v=1/0,f=9007199254740991,w=17976931348623157e292,h=NaN,m=4294967295,C=m-1,T=m>>>1,G=[["ary",J],["bind",H],["bindKey",se],["curry",ae],["curryRight",ce],["flip",de],["partial",Q],["partialRight",ne],["rearg",V]],oe="[object Arguments]",ue="[object Array]",we="[object AsyncFunction]",X="[object Boolean]",be="[object Date]",_e="[object DOMException]",ve="[object Error]",j="[object Function]",Z="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ee="[object Null]",Se="[object Object]",l="[object Promise]",c="[object Proxy]",_="[object RegExp]",k="[object Set]",U="[object String]",te="[object Symbol]",De="[object Undefined]",Ce="[object WeakMap]",Pe="[object WeakSet]",me="[object ArrayBuffer]",Re="[object DataView]",Ie="[object Float32Array]",ke="[object Float64Array]",Xe="[object Int8Array]",Qe="[object Int16Array]",nt="[object Int32Array]",Et="[object Uint8Array]",pt="[object Uint8ClampedArray]",rt="[object Uint16Array]",An="[object Uint32Array]",St=/\b__p \+= '';/g,Dn=/\b(__p \+=) '' \+/g,At=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jt=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,yt=RegExp(jt.source),an=RegExp(On.source),ln=/<%-([\s\S]+?)%>/g,Yt=/<%([\s\S]+?)%>/g,Lt=/<%=([\s\S]+?)%>/g,Ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ut=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ut.source),at=/^\s+/,Nt=/\s/,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rn=/\{\n\/\* \[wrapped with (.+)\] \*/,un=/,? & /,yr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cn=/[()=,{}\[\]\/\s]/,kn=/\\(\\)?/g,fn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hn=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,ct=/^\[object .+?Constructor\]$/,zt=/^0o[0-7]+$/i,Yn=/^(?:0|[1-9]\d*)$/,Rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fn=/($^)/,kr=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",Lr="\\u0300-\\u036f",po="\\ufe20-\\ufe2f",or="\\u20d0-\\u20ff",sr=Lr+po+or,vi="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",Ir="\\xac\\xb1\\xd7\\xf7",$r="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_r="A-Z\\xc0-\\xd6\\xd8-\\xde",go="\\ufe0e\\ufe0f",Br=Ir+$r+Ws+Us,mi="['’]",zs="["+Wn+"]",Ve="["+Br+"]",Ln="["+sr+"]",jr="\\d+",yi="["+vi+"]",_i="["+Nr+"]",vo="[^"+Wn+Br+jr+vi+Nr+_r+"]",Nn="\\ud83c[\\udffb-\\udfff]",Un="(?:"+Ln+"|"+Nn+")",In="[^"+Wn+"]",qs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",Yr="["+_r+"]",Ju="\\u200d",Xu="(?:"+_i+"|"+vo+")",s0="(?:"+Yr+"|"+vo+")",ec="(?:"+mi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+mi+"(?:D|LL|M|RE|S|T|VE))?",nc=Un+"?",rc="["+go+"]?",a0="(?:"+Ju+"(?:"+[In,qs,Hs].join("|")+")"+rc+nc+")*",l0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ic=rc+nc+a0,c0="(?:"+[yi,qs,Hs].join("|")+")"+ic,f0="(?:"+[In+Ln+"?",Ln,qs,Hs,zs].join("|")+")",h0=RegExp(mi,"g"),d0=RegExp(Ln,"g"),Gs=RegExp(Nn+"(?="+Nn+")|"+f0+ic,"g"),p0=RegExp([Yr+"?"+_i+"+"+ec+"(?="+[Ve,Yr,"$"].join("|")+")",s0+"+"+tc+"(?="+[Ve,Yr+Xu,"$"].join("|")+")",Yr+"?"+Xu+"+"+ec,Yr+"+"+tc,u0,l0,jr,c0].join("|"),"g"),g0=RegExp("["+Ju+Wn+sr+go+"]"),v0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y0=-1,lt={};lt[Ie]=lt[ke]=lt[Xe]=lt[Qe]=lt[nt]=lt[Et]=lt[pt]=lt[rt]=lt[An]=!0,lt[oe]=lt[ue]=lt[me]=lt[X]=lt[Re]=lt[be]=lt[ve]=lt[j]=lt[W]=lt[K]=lt[Se]=lt[_]=lt[k]=lt[U]=lt[Ce]=!1;var st={};st[oe]=st[ue]=st[me]=st[Re]=st[X]=st[be]=st[Ie]=st[ke]=st[Xe]=st[Qe]=st[nt]=st[W]=st[K]=st[Se]=st[_]=st[k]=st[U]=st[te]=st[Et]=st[pt]=st[rt]=st[An]=!0,st[ve]=st[j]=st[Ce]=!1;var _0={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w0={"&":"&","<":"<",">":">",'"':""","'":"'"},b0={"&":"&","<":"<",">":">",""":'"',"'":"'"},x0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C0=parseFloat,S0=parseInt,oc=typeof Ni=="object"&&Ni&&Ni.Object===Object&&Ni,A0=typeof self=="object"&&self&&self.Object===Object&&self,Dt=oc||A0||Function("return this")(),Vs=n&&!n.nodeType&&n,wr=Vs&&!0&&i&&!i.nodeType&&i,sc=wr&&wr.exports===Vs,Ks=sc&&oc.process,dn=function(){try{var z=wr&&wr.require&&wr.require("util").types;return z||Ks&&Ks.binding&&Ks.binding("util")}catch{}}(),ac=dn&&dn.isArrayBuffer,lc=dn&&dn.isDate,uc=dn&&dn.isMap,cc=dn&&dn.isRegExp,fc=dn&&dn.isSet,hc=dn&&dn.isTypedArray;function Qt(z,fe,ie){switch(ie.length){case 0:return z.call(fe);case 1:return z.call(fe,ie[0]);case 2:return z.call(fe,ie[0],ie[1]);case 3:return z.call(fe,ie[0],ie[1],ie[2])}return z.apply(fe,ie)}function D0(z,fe,ie,Me){for(var Ye=-1,Je=z==null?0:z.length;++Ye<Je;){var wt=z[Ye];fe(Me,wt,ie(wt),z)}return Me}function pn(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me&&fe(z[ie],ie,z)!==!1;);return z}function O0(z,fe){for(var ie=z==null?0:z.length;ie--&&fe(z[ie],ie,z)!==!1;);return z}function dc(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(!fe(z[ie],ie,z))return!1;return!0}function ar(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=0,Je=[];++ie<Me;){var wt=z[ie];fe(wt,ie,z)&&(Je[Ye++]=wt)}return Je}function mo(z,fe){var ie=z==null?0:z.length;return!!ie&&Fr(z,fe,0)>-1}function Zs(z,fe,ie){for(var Me=-1,Ye=z==null?0:z.length;++Me<Ye;)if(ie(fe,z[Me]))return!0;return!1}function ut(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=Array(Me);++ie<Me;)Ye[ie]=fe(z[ie],ie,z);return Ye}function lr(z,fe){for(var ie=-1,Me=fe.length,Ye=z.length;++ie<Me;)z[Ye+ie]=fe[ie];return z}function Qs(z,fe,ie,Me){var Ye=-1,Je=z==null?0:z.length;for(Me&&Je&&(ie=z[++Ye]);++Ye<Je;)ie=fe(ie,z[Ye],Ye,z);return ie}function E0(z,fe,ie,Me){var Ye=z==null?0:z.length;for(Me&&Ye&&(ie=z[--Ye]);Ye--;)ie=fe(ie,z[Ye],Ye,z);return ie}function Js(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(fe(z[ie],ie,z))return!0;return!1}var T0=Xs("length");function P0(z){return z.split("")}function M0(z){return z.match(yr)||[]}function pc(z,fe,ie){var Me;return ie(z,function(Ye,Je,wt){if(fe(Ye,Je,wt))return Me=Je,!1}),Me}function yo(z,fe,ie,Me){for(var Ye=z.length,Je=ie+(Me?1:-1);Me?Je--:++Je<Ye;)if(fe(z[Je],Je,z))return Je;return-1}function Fr(z,fe,ie){return fe===fe?U0(z,fe,ie):yo(z,gc,ie)}function R0(z,fe,ie,Me){for(var Ye=ie-1,Je=z.length;++Ye<Je;)if(Me(z[Ye],fe))return Ye;return-1}function gc(z){return z!==z}function vc(z,fe){var ie=z==null?0:z.length;return ie?ta(z,fe)/ie:h}function Xs(z){return function(fe){return fe==null?r:fe[z]}}function ea(z){return function(fe){return z==null?r:z[fe]}}function mc(z,fe,ie,Me,Ye){return Ye(z,function(Je,wt,it){ie=Me?(Me=!1,Je):fe(ie,Je,wt,it)}),ie}function k0(z,fe){var ie=z.length;for(z.sort(fe);ie--;)z[ie]=z[ie].value;return z}function ta(z,fe){for(var ie,Me=-1,Ye=z.length;++Me<Ye;){var Je=fe(z[Me]);Je!==r&&(ie=ie===r?Je:ie+Je)}return ie}function na(z,fe){for(var ie=-1,Me=Array(z);++ie<z;)Me[ie]=fe(ie);return Me}function L0(z,fe){return ut(fe,function(ie){return[ie,z[ie]]})}function yc(z){return z&&z.slice(0,xc(z)+1).replace(at,"")}function Jt(z){return function(fe){return z(fe)}}function ra(z,fe){return ut(fe,function(ie){return z[ie]})}function wi(z,fe){return z.has(fe)}function _c(z,fe){for(var ie=-1,Me=z.length;++ie<Me&&Fr(fe,z[ie],0)>-1;);return ie}function wc(z,fe){for(var ie=z.length;ie--&&Fr(fe,z[ie],0)>-1;);return ie}function N0(z,fe){for(var ie=z.length,Me=0;ie--;)z[ie]===fe&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(z){return"\\"+x0[z]}function j0(z,fe){return z==null?r:z[fe]}function Wr(z){return g0.test(z)}function Y0(z){return v0.test(z)}function F0(z){for(var fe,ie=[];!(fe=z.next()).done;)ie.push(fe.value);return ie}function ia(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me,Ye){ie[++fe]=[Ye,Me]}),ie}function bc(z,fe){return function(ie){return z(fe(ie))}}function ur(z,fe){for(var ie=-1,Me=z.length,Ye=0,Je=[];++ie<Me;){var wt=z[ie];(wt===fe||wt===E)&&(z[ie]=E,Je[Ye++]=ie)}return Je}function _o(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=Me}),ie}function W0(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=[Me,Me]}),ie}function U0(z,fe,ie){for(var Me=ie-1,Ye=z.length;++Me<Ye;)if(z[Me]===fe)return Me;return-1}function z0(z,fe,ie){for(var Me=ie+1;Me--;)if(z[Me]===fe)return Me;return Me}function Ur(z){return Wr(z)?H0(z):T0(z)}function En(z){return Wr(z)?G0(z):P0(z)}function xc(z){for(var fe=z.length;fe--&&Nt.test(z.charAt(fe)););return fe}var q0=ea(b0);function H0(z){for(var fe=Gs.lastIndex=0;Gs.test(z);)++fe;return fe}function G0(z){return z.match(Gs)||[]}function V0(z){return z.match(p0)||[]}var K0=function z(fe){fe=fe==null?Dt:zr.defaults(Dt.Object(),fe,zr.pick(Dt,m0));var ie=fe.Array,Me=fe.Date,Ye=fe.Error,Je=fe.Function,wt=fe.Math,it=fe.Object,oa=fe.RegExp,Z0=fe.String,gn=fe.TypeError,wo=ie.prototype,Q0=Je.prototype,qr=it.prototype,bo=fe["__core-js_shared__"],xo=Q0.toString,tt=qr.hasOwnProperty,J0=0,Cc=function(){var e=/[^.]+$/.exec(bo&&bo.keys&&bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Co=qr.toString,X0=xo.call(it),ev=Dt._,tv=oa("^"+xo.call(tt).replace(Ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),So=sc?fe.Buffer:r,cr=fe.Symbol,Ao=fe.Uint8Array,Sc=So?So.allocUnsafe:r,Do=bc(it.getPrototypeOf,it),Ac=it.create,Dc=qr.propertyIsEnumerable,Oo=wo.splice,Oc=cr?cr.isConcatSpreadable:r,bi=cr?cr.iterator:r,br=cr?cr.toStringTag:r,Eo=function(){try{var e=Dr(it,"defineProperty");return e({},"",{}),e}catch{}}(),nv=fe.clearTimeout!==Dt.clearTimeout&&fe.clearTimeout,rv=Me&&Me.now!==Dt.Date.now&&Me.now,iv=fe.setTimeout!==Dt.setTimeout&&fe.setTimeout,To=wt.ceil,Po=wt.floor,sa=it.getOwnPropertySymbols,ov=So?So.isBuffer:r,Ec=fe.isFinite,sv=wo.join,av=bc(it.keys,it),bt=wt.max,Tt=wt.min,lv=Me.now,uv=fe.parseInt,Tc=wt.random,cv=wo.reverse,aa=Dr(fe,"DataView"),xi=Dr(fe,"Map"),la=Dr(fe,"Promise"),Hr=Dr(fe,"Set"),Ci=Dr(fe,"WeakMap"),Si=Dr(it,"create"),Mo=Ci&&new Ci,Gr={},fv=Or(aa),hv=Or(xi),dv=Or(la),pv=Or(Hr),gv=Or(Ci),Ro=cr?cr.prototype:r,Ai=Ro?Ro.valueOf:r,Pc=Ro?Ro.toString:r;function b(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof vn)return e;if(tt.call(e,"__wrapped__"))return Rf(e)}return new vn(e)}var Vr=function(){function e(){}return function(t){if(!ft(t))return{};if(Ac)return Ac(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function ko(){}function vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:ln,evaluate:Yt,interpolate:Lt,variable:"",imports:{_:b}},b.prototype=ko.prototype,b.prototype.constructor=b,vn.prototype=Vr(ko.prototype),vn.prototype.constructor=vn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function vv(){var e=new Ge(this.__wrapped__);return e.__actions__=qt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qt(this.__views__),e}function mv(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yv(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,x=Pm(0,y,this.__views__),M=x.start,Y=x.end,q=Y-M,pe=a?Y:M-1,ge=this.__iteratees__,xe=ge.length,Ee=0,Le=Tt(q,this.__takeCount__);if(!o||!a&&y==q&&Le==q)return ef(e,this.__actions__);var $e=[];e:for(;q--&&Ee<Le;){pe+=t;for(var Ue=-1,Be=e[pe];++Ue<xe;){var He=ge[Ue],Ke=He.iteratee,tn=He.type,Bt=Ke(Be);if(tn==P)Be=Bt;else if(!Bt){if(tn==I)continue e;break e}}$e[Ee++]=Be}return $e}Ge.prototype=Vr(ko.prototype),Ge.prototype.constructor=Ge;function xr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function _v(){this.__data__=Si?Si(null):{},this.size=0}function wv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bv(e){var t=this.__data__;if(Si){var o=t[e];return o===S?r:o}return tt.call(t,e)?t[e]:r}function xv(e){var t=this.__data__;return Si?t[e]!==r:tt.call(t,e)}function Cv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Si&&t===r?S:t,this}xr.prototype.clear=_v,xr.prototype.delete=wv,xr.prototype.get=bv,xr.prototype.has=xv,xr.prototype.set=Cv;function zn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Sv(){this.__data__=[],this.size=0}function Av(e){var t=this.__data__,o=Lo(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():Oo.call(t,o,1),--this.size,!0}function Dv(e){var t=this.__data__,o=Lo(t,e);return o<0?r:t[o][1]}function Ov(e){return Lo(this.__data__,e)>-1}function Ev(e,t){var o=this.__data__,a=Lo(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}zn.prototype.clear=Sv,zn.prototype.delete=Av,zn.prototype.get=Dv,zn.prototype.has=Ov,zn.prototype.set=Ev;function qn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Tv(){this.size=0,this.__data__={hash:new xr,map:new(xi||zn),string:new xr}}function Pv(e){var t=Ho(this,e).delete(e);return this.size-=t?1:0,t}function Mv(e){return Ho(this,e).get(e)}function Rv(e){return Ho(this,e).has(e)}function kv(e,t){var o=Ho(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}qn.prototype.clear=Tv,qn.prototype.delete=Pv,qn.prototype.get=Mv,qn.prototype.has=Rv,qn.prototype.set=kv;function Cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new qn;++t<o;)this.add(e[t])}function Lv(e){return this.__data__.set(e,S),this}function Nv(e){return this.__data__.has(e)}Cr.prototype.add=Cr.prototype.push=Lv,Cr.prototype.has=Nv;function Tn(e){var t=this.__data__=new zn(e);this.size=t.size}function Iv(){this.__data__=new zn,this.size=0}function $v(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bv(e){return this.__data__.get(e)}function jv(e){return this.__data__.has(e)}function Yv(e,t){var o=this.__data__;if(o instanceof zn){var a=o.__data__;if(!xi||a.length<u-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new qn(a)}return o.set(e,t),this.size=o.size,this}Tn.prototype.clear=Iv,Tn.prototype.delete=$v,Tn.prototype.get=Bv,Tn.prototype.has=jv,Tn.prototype.set=Yv;function Mc(e,t){var o=Fe(e),a=!o&&Er(e),y=!o&&!a&&gr(e),x=!o&&!a&&!y&&Jr(e),M=o||a||y||x,Y=M?na(e.length,Z0):[],q=Y.length;for(var pe in e)(t||tt.call(e,pe))&&!(M&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||x&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Kn(pe,q)))&&Y.push(pe);return Y}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fv(e,t){return Go(qt(e),Sr(t,0,e.length))}function Wv(e){return Go(qt(e))}function ua(e,t,o){(o!==r&&!Pn(e[t],o)||o===r&&!(t in e))&&Hn(e,t,o)}function Di(e,t,o){var a=e[t];(!(tt.call(e,t)&&Pn(a,o))||o===r&&!(t in e))&&Hn(e,t,o)}function Lo(e,t){for(var o=e.length;o--;)if(Pn(e[o][0],t))return o;return-1}function Uv(e,t,o,a){return fr(e,function(y,x,M){t(a,y,o(y),M)}),a}function kc(e,t){return e&&Bn(t,xt(t),e)}function zv(e,t){return e&&Bn(t,Gt(t),e)}function Hn(e,t,o){t=="__proto__"&&Eo?Eo(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ca(e,t){for(var o=-1,a=t.length,y=ie(a),x=e==null;++o<a;)y[o]=x?r:za(e,t[o]);return y}function Sr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function mn(e,t,o,a,y,x){var M,Y=t&N,q=t&R,pe=t&L;if(o&&(M=y?o(e,a,y,x):o(e)),M!==r)return M;if(!ft(e))return e;var ge=Fe(e);if(ge){if(M=Rm(e),!Y)return qt(e,M)}else{var xe=Pt(e),Ee=xe==j||xe==Z;if(gr(e))return rf(e,Y);if(xe==Se||xe==oe||Ee&&!y){if(M=q||Ee?{}:Cf(e),!Y)return q?bm(e,zv(M,e)):wm(e,kc(M,e))}else{if(!st[xe])return y?e:{};M=km(e,xe,Y)}}x||(x=new Tn);var Le=x.get(e);if(Le)return Le;x.set(e,M),Jf(e)?e.forEach(function(Be){M.add(mn(Be,t,o,Be,e,x))}):Zf(e)&&e.forEach(function(Be,He){M.set(He,mn(Be,t,o,He,e,x))});var $e=pe?q?Pa:Ta:q?Gt:xt,Ue=ge?r:$e(e);return pn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Di(M,He,mn(Be,t,o,He,e,x))}),M}function qv(e){var t=xt(e);return function(o){return Lc(o,e,t)}}function Lc(e,t,o){var a=o.length;if(e==null)return!a;for(e=it(e);a--;){var y=o[a],x=t[y],M=e[y];if(M===r&&!(y in e)||!x(M))return!1}return!0}function Nc(e,t,o){if(typeof e!="function")throw new gn(g);return ki(function(){e.apply(r,o)},t)}function Oi(e,t,o,a){var y=-1,x=mo,M=!0,Y=e.length,q=[],pe=t.length;if(!Y)return q;o&&(t=ut(t,Jt(o))),a?(x=Zs,M=!1):t.length>=u&&(x=wi,M=!1,t=new Cr(t));e:for(;++y<Y;){var ge=e[y],xe=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,M&&xe===xe){for(var Ee=pe;Ee--;)if(t[Ee]===xe)continue e;q.push(ge)}else x(t,xe,a)||q.push(ge)}return q}var fr=uf($n),Ic=uf(ha,!0);function Hv(e,t){var o=!0;return fr(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function No(e,t,o){for(var a=-1,y=e.length;++a<y;){var x=e[a],M=t(x);if(M!=null&&(Y===r?M===M&&!en(M):o(M,Y)))var Y=M,q=x}return q}function Gv(e,t,o,a){var y=e.length;for(o=We(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:We(a),a<0&&(a+=y),a=o>a?0:eh(a);o<a;)e[o++]=t;return e}function $c(e,t){var o=[];return fr(e,function(a,y,x){t(a,y,x)&&o.push(a)}),o}function Ot(e,t,o,a,y){var x=-1,M=e.length;for(o||(o=Nm),y||(y=[]);++x<M;){var Y=e[x];t>0&&o(Y)?t>1?Ot(Y,t-1,o,a,y):lr(y,Y):a||(y[y.length]=Y)}return y}var fa=cf(),Bc=cf(!0);function $n(e,t){return e&&fa(e,t,xt)}function ha(e,t){return e&&Bc(e,t,xt)}function Io(e,t){return ar(t,function(o){return Zn(e[o])})}function Ar(e,t){t=dr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[jn(t[o++])];return o&&o==a?e:r}function jc(e,t,o){var a=t(e);return Fe(e)?a:lr(a,o(e))}function It(e){return e==null?e===r?De:ee:br&&br in it(e)?Tm(e):Wm(e)}function da(e,t){return e>t}function Vv(e,t){return e!=null&&tt.call(e,t)}function Kv(e,t){return e!=null&&t in it(e)}function Zv(e,t,o){return e>=Tt(t,o)&&e<bt(t,o)}function pa(e,t,o){for(var a=o?Zs:mo,y=e[0].length,x=e.length,M=x,Y=ie(x),q=1/0,pe=[];M--;){var ge=e[M];M&&t&&(ge=ut(ge,Jt(t))),q=Tt(ge.length,q),Y[M]=!o&&(t||y>=120&&ge.length>=120)?new Cr(M&&ge):r}ge=e[0];var xe=-1,Ee=Y[0];e:for(;++xe<y&&pe.length<q;){var Le=ge[xe],$e=t?t(Le):Le;if(Le=o||Le!==0?Le:0,!(Ee?wi(Ee,$e):a(pe,$e,o))){for(M=x;--M;){var Ue=Y[M];if(!(Ue?wi(Ue,$e):a(e[M],$e,o)))continue e}Ee&&Ee.push($e),pe.push(Le)}}return pe}function Qv(e,t,o,a){return $n(e,function(y,x,M){t(a,o(y),x,M)}),a}function Ei(e,t,o){t=dr(t,e),e=Of(e,t);var a=e==null?e:e[jn(_n(t))];return a==null?r:Qt(a,e,o)}function Yc(e){return dt(e)&&It(e)==oe}function Jv(e){return dt(e)&&It(e)==me}function Xv(e){return dt(e)&&It(e)==be}function Ti(e,t,o,a,y){return e===t?!0:e==null||t==null||!dt(e)&&!dt(t)?e!==e&&t!==t:em(e,t,o,a,Ti,y)}function em(e,t,o,a,y,x){var M=Fe(e),Y=Fe(t),q=M?ue:Pt(e),pe=Y?ue:Pt(t);q=q==oe?Se:q,pe=pe==oe?Se:pe;var ge=q==Se,xe=pe==Se,Ee=q==pe;if(Ee&&gr(e)){if(!gr(t))return!1;M=!0,ge=!1}if(Ee&&!ge)return x||(x=new Tn),M||Jr(e)?wf(e,t,o,a,y,x):Om(e,t,q,o,a,y,x);if(!(o&$)){var Le=ge&&tt.call(e,"__wrapped__"),$e=xe&&tt.call(t,"__wrapped__");if(Le||$e){var Ue=Le?e.value():e,Be=$e?t.value():t;return x||(x=new Tn),y(Ue,Be,o,a,x)}}return Ee?(x||(x=new Tn),Em(e,t,o,a,y,x)):!1}function tm(e){return dt(e)&&Pt(e)==W}function ga(e,t,o,a){var y=o.length,x=y,M=!a;if(e==null)return!x;for(e=it(e);y--;){var Y=o[y];if(M&&Y[2]?Y[1]!==e[Y[0]]:!(Y[0]in e))return!1}for(;++y<x;){Y=o[y];var q=Y[0],pe=e[q],ge=Y[1];if(M&&Y[2]){if(pe===r&&!(q in e))return!1}else{var xe=new Tn;if(a)var Ee=a(pe,ge,q,e,t,xe);if(!(Ee===r?Ti(ge,pe,$|B,a,xe):Ee))return!1}}return!0}function Fc(e){if(!ft(e)||$m(e))return!1;var t=Zn(e)?tv:ct;return t.test(Or(e))}function nm(e){return dt(e)&&It(e)==_}function rm(e){return dt(e)&&Pt(e)==k}function im(e){return dt(e)&&Xo(e.length)&&!!lt[It(e)]}function Wc(e){return typeof e=="function"?e:e==null?Vt:typeof e=="object"?Fe(e)?qc(e[0],e[1]):zc(e):fh(e)}function va(e){if(!Ri(e))return av(e);var t=[];for(var o in it(e))tt.call(e,o)&&o!="constructor"&&t.push(o);return t}function om(e){if(!ft(e))return Fm(e);var t=Ri(e),o=[];for(var a in e)a=="constructor"&&(t||!tt.call(e,a))||o.push(a);return o}function ma(e,t){return e<t}function Uc(e,t){var o=-1,a=Ht(e)?ie(e.length):[];return fr(e,function(y,x,M){a[++o]=t(y,x,M)}),a}function zc(e){var t=Ra(e);return t.length==1&&t[0][2]?Af(t[0][0],t[0][1]):function(o){return o===e||ga(o,e,t)}}function qc(e,t){return La(e)&&Sf(t)?Af(jn(e),t):function(o){var a=za(o,e);return a===r&&a===t?qa(o,e):Ti(t,a,$|B)}}function $o(e,t,o,a,y){e!==t&&fa(t,function(x,M){if(y||(y=new Tn),ft(x))sm(e,t,M,o,$o,a,y);else{var Y=a?a(Ia(e,M),x,M+"",e,t,y):r;Y===r&&(Y=x),ua(e,M,Y)}},Gt)}function sm(e,t,o,a,y,x,M){var Y=Ia(e,o),q=Ia(t,o),pe=M.get(q);if(pe){ua(e,o,pe);return}var ge=x?x(Y,q,o+"",e,t,M):r,xe=ge===r;if(xe){var Ee=Fe(q),Le=!Ee&&gr(q),$e=!Ee&&!Le&&Jr(q);ge=q,Ee||Le||$e?Fe(Y)?ge=Y:gt(Y)?ge=qt(Y):Le?(xe=!1,ge=rf(q,!0)):$e?(xe=!1,ge=of(q,!0)):ge=[]:Li(q)||Er(q)?(ge=Y,Er(Y)?ge=th(Y):(!ft(Y)||Zn(Y))&&(ge=Cf(q))):xe=!1}xe&&(M.set(q,ge),y(ge,q,a,x,M),M.delete(q)),ua(e,o,ge)}function Hc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Kn(t,o)?e[t]:r}function Gc(e,t,o){t.length?t=ut(t,function(x){return Fe(x)?function(M){return Ar(M,x.length===1?x[0]:x)}:x}):t=[Vt];var a=-1;t=ut(t,Jt(Ne()));var y=Uc(e,function(x,M,Y){var q=ut(t,function(pe){return pe(x)});return{criteria:q,index:++a,value:x}});return k0(y,function(x,M){return _m(x,M,o)})}function am(e,t){return Vc(e,t,function(o,a){return qa(e,a)})}function Vc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var M=t[a],Y=Ar(e,M);o(Y,M)&&Pi(x,dr(M,e),Y)}return x}function lm(e){return function(t){return Ar(t,e)}}function ya(e,t,o,a){var y=a?R0:Fr,x=-1,M=t.length,Y=e;for(e===t&&(t=qt(t)),o&&(Y=ut(e,Jt(o)));++x<M;)for(var q=0,pe=t[x],ge=o?o(pe):pe;(q=y(Y,ge,q,a))>-1;)Y!==e&&Oo.call(Y,q,1),Oo.call(e,q,1);return e}function Kc(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==x){var x=y;Kn(y)?Oo.call(e,y,1):xa(e,y)}}return e}function _a(e,t){return e+Po(Tc()*(t-e+1))}function um(e,t,o,a){for(var y=-1,x=bt(To((t-e)/(o||1)),0),M=ie(x);x--;)M[a?x:++y]=e,e+=o;return M}function wa(e,t){var o="";if(!e||t<1||t>f)return o;do t%2&&(o+=e),t=Po(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return $a(Df(e,t,Vt),e+"")}function cm(e){return Rc(Xr(e))}function fm(e,t){var o=Xr(e);return Go(o,Sr(t,0,o.length))}function Pi(e,t,o,a){if(!ft(e))return e;t=dr(t,e);for(var y=-1,x=t.length,M=x-1,Y=e;Y!=null&&++y<x;){var q=jn(t[y]),pe=o;if(q==="__proto__"||q==="constructor"||q==="prototype")return e;if(y!=M){var ge=Y[q];pe=a?a(ge,q,Y):r,pe===r&&(pe=ft(ge)?ge:Kn(t[y+1])?[]:{})}Di(Y,q,pe),Y=Y[q]}return e}var Zc=Mo?function(e,t){return Mo.set(e,t),e}:Vt,hm=Eo?function(e,t){return Eo(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Vt;function dm(e){return Go(Xr(e))}function yn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var x=ie(y);++a<y;)x[a]=e[a+t];return x}function pm(e,t){var o;return fr(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function Bo(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=T){for(;a<y;){var x=a+y>>>1,M=e[x];M!==null&&!en(M)&&(o?M<=t:M<t)?a=x+1:y=x}return y}return ba(e,t,Vt,o)}function ba(e,t,o,a){var y=0,x=e==null?0:e.length;if(x===0)return 0;t=o(t);for(var M=t!==t,Y=t===null,q=en(t),pe=t===r;y<x;){var ge=Po((y+x)/2),xe=o(e[ge]),Ee=xe!==r,Le=xe===null,$e=xe===xe,Ue=en(xe);if(M)var Be=a||$e;else pe?Be=$e&&(a||Ee):Y?Be=$e&&Ee&&(a||!Le):q?Be=$e&&Ee&&!Le&&(a||!Ue):Le||Ue?Be=!1:Be=a?xe<=t:xe<t;Be?y=ge+1:x=ge}return Tt(x,C)}function Qc(e,t){for(var o=-1,a=e.length,y=0,x=[];++o<a;){var M=e[o],Y=t?t(M):M;if(!o||!Pn(Y,q)){var q=Y;x[y++]=M===0?0:M}}return x}function Jc(e){return typeof e=="number"?e:en(e)?h:+e}function Xt(e){if(typeof e=="string")return e;if(Fe(e))return ut(e,Xt)+"";if(en(e))return Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-v?"-0":t}function hr(e,t,o){var a=-1,y=mo,x=e.length,M=!0,Y=[],q=Y;if(o)M=!1,y=Zs;else if(x>=u){var pe=t?null:Am(e);if(pe)return _o(pe);M=!1,y=wi,q=new Cr}else q=t?[]:Y;e:for(;++a<x;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,M&&xe===xe){for(var Ee=q.length;Ee--;)if(q[Ee]===xe)continue e;t&&q.push(xe),Y.push(ge)}else y(q,xe,o)||(q!==Y&&q.push(xe),Y.push(ge))}return Y}function xa(e,t){return t=dr(t,e),e=Of(e,t),e==null||delete e[jn(_n(t))]}function Xc(e,t,o,a){return Pi(e,t,o(Ar(e,t)),a)}function jo(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?yn(e,a?0:x,a?x+1:y):yn(e,a?x+1:0,a?y:x)}function ef(e,t){var o=e;return o instanceof Ge&&(o=o.value()),Qs(t,function(a,y){return y.func.apply(y.thisArg,lr([a],y.args))},o)}function Ca(e,t,o){var a=e.length;if(a<2)return a?hr(e[0]):[];for(var y=-1,x=ie(a);++y<a;)for(var M=e[y],Y=-1;++Y<a;)Y!=y&&(x[y]=Oi(x[y]||M,e[Y],t,o));return hr(Ot(x,1),t,o)}function tf(e,t,o){for(var a=-1,y=e.length,x=t.length,M={};++a<y;){var Y=a<x?t[a]:r;o(M,e[a],Y)}return M}function Sa(e){return gt(e)?e:[]}function Aa(e){return typeof e=="function"?e:Vt}function dr(e,t){return Fe(e)?e:La(e,t)?[e]:Mf(et(e))}var gm=qe;function pr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:yn(e,t,o)}var nf=nv||function(e){return Dt.clearTimeout(e)};function rf(e,t){if(t)return e.slice();var o=e.length,a=Sc?Sc(o):new e.constructor(o);return e.copy(a),a}function Da(e){var t=new e.constructor(e.byteLength);return new Ao(t).set(new Ao(e)),t}function vm(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function mm(e){var t=new e.constructor(e.source,hn.exec(e));return t.lastIndex=e.lastIndex,t}function ym(e){return Ai?it(Ai.call(e)):{}}function of(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function sf(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=en(e),M=t!==r,Y=t===null,q=t===t,pe=en(t);if(!Y&&!pe&&!x&&e>t||x&&M&&q&&!Y&&!pe||a&&M&&q||!o&&q||!y)return 1;if(!a&&!x&&!pe&&e<t||pe&&o&&y&&!a&&!x||Y&&o&&y||!M&&y||!q)return-1}return 0}function _m(e,t,o){for(var a=-1,y=e.criteria,x=t.criteria,M=y.length,Y=o.length;++a<M;){var q=sf(y[a],x[a]);if(q){if(a>=Y)return q;var pe=o[a];return q*(pe=="desc"?-1:1)}}return e.index-t.index}function af(e,t,o,a){for(var y=-1,x=e.length,M=o.length,Y=-1,q=t.length,pe=bt(x-M,0),ge=ie(q+pe),xe=!a;++Y<q;)ge[Y]=t[Y];for(;++y<M;)(xe||y<x)&&(ge[o[y]]=e[y]);for(;pe--;)ge[Y++]=e[y++];return ge}function lf(e,t,o,a){for(var y=-1,x=e.length,M=-1,Y=o.length,q=-1,pe=t.length,ge=bt(x-Y,0),xe=ie(ge+pe),Ee=!a;++y<ge;)xe[y]=e[y];for(var Le=y;++q<pe;)xe[Le+q]=t[q];for(;++M<Y;)(Ee||y<x)&&(xe[Le+o[M]]=e[y++]);return xe}function qt(e,t){var o=-1,a=e.length;for(t||(t=ie(a));++o<a;)t[o]=e[o];return t}function Bn(e,t,o,a){var y=!o;o||(o={});for(var x=-1,M=t.length;++x<M;){var Y=t[x],q=a?a(o[Y],e[Y],Y,o,e):r;q===r&&(q=e[Y]),y?Hn(o,Y,q):Di(o,Y,q)}return o}function wm(e,t){return Bn(e,ka(e),t)}function bm(e,t){return Bn(e,bf(e),t)}function Yo(e,t){return function(o,a){var y=Fe(o)?D0:Uv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Kr(e){return qe(function(t,o){var a=-1,y=o.length,x=y>1?o[y-1]:r,M=y>2?o[2]:r;for(x=e.length>3&&typeof x=="function"?(y--,x):r,M&&$t(o[0],o[1],M)&&(x=y<3?r:x,y=1),t=it(t);++a<y;){var Y=o[a];Y&&e(t,Y,a,x)}return t})}function uf(e,t){return function(o,a){if(o==null)return o;if(!Ht(o))return e(o,a);for(var y=o.length,x=t?y:-1,M=it(o);(t?x--:++x<y)&&a(M[x],x,M)!==!1;);return o}}function cf(e){return function(t,o,a){for(var y=-1,x=it(t),M=a(t),Y=M.length;Y--;){var q=M[e?Y:++y];if(o(x[q],q,x)===!1)break}return t}}function xm(e,t,o){var a=t&H,y=Mi(e);function x(){var M=this&&this!==Dt&&this instanceof x?y:e;return M.apply(a?o:this,arguments)}return x}function ff(e){return function(t){t=et(t);var o=Wr(t)?En(t):r,a=o?o[0]:t.charAt(0),y=o?pr(o,1).join(""):t.slice(1);return a[e]()+y}}function Zr(e){return function(t){return Qs(uh(lh(t).replace(h0,"")),e,"")}}function Mi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Vr(e.prototype),a=e.apply(o,t);return ft(a)?a:o}}function Cm(e,t,o){var a=Mi(e);function y(){for(var x=arguments.length,M=ie(x),Y=x,q=Qr(y);Y--;)M[Y]=arguments[Y];var pe=x<3&&M[0]!==q&&M[x-1]!==q?[]:ur(M,q);if(x-=pe.length,x<o)return vf(e,t,Fo,y.placeholder,r,M,pe,r,r,o-x);var ge=this&&this!==Dt&&this instanceof y?a:e;return Qt(ge,this,M)}return y}function hf(e){return function(t,o,a){var y=it(t);if(!Ht(t)){var x=Ne(o,3);t=xt(t),o=function(Y){return x(y[Y],Y,y)}}var M=e(t,o,a);return M>-1?y[x?t[M]:M]:r}}function df(e){return Vn(function(t){var o=t.length,a=o,y=vn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new gn(g);if(y&&!M&&qo(x)=="wrapper")var M=new vn([],!0)}for(a=M?a:o;++a<o;){x=t[a];var Y=qo(x),q=Y=="wrapper"?Ma(x):r;q&&Na(q[0])&&q[1]==(J|ae|Q|V)&&!q[4].length&&q[9]==1?M=M[qo(q[0])].apply(M,q[3]):M=x.length==1&&Na(x)?M[Y]():M.thru(x)}return function(){var pe=arguments,ge=pe[0];if(M&&pe.length==1&&Fe(ge))return M.plant(ge).value();for(var xe=0,Ee=o?t[xe].apply(this,pe):ge;++xe<o;)Ee=t[xe].call(this,Ee);return Ee}})}function Fo(e,t,o,a,y,x,M,Y,q,pe){var ge=t&J,xe=t&H,Ee=t&se,Le=t&(ae|ce),$e=t&de,Ue=Ee?r:Mi(e);function Be(){for(var He=arguments.length,Ke=ie(He),tn=He;tn--;)Ke[tn]=arguments[tn];if(Le)var Bt=Qr(Be),nn=N0(Ke,Bt);if(a&&(Ke=af(Ke,a,y,Le)),x&&(Ke=lf(Ke,x,M,Le)),He-=nn,Le&&He<pe){var vt=ur(Ke,Bt);return vf(e,t,Fo,Be.placeholder,o,Ke,vt,Y,q,pe-He)}var Mn=xe?o:this,Jn=Ee?Mn[e]:e;return He=Ke.length,Y?Ke=Um(Ke,Y):$e&&He>1&&Ke.reverse(),ge&&q<He&&(Ke.length=q),this&&this!==Dt&&this instanceof Be&&(Jn=Ue||Mi(Jn)),Jn.apply(Mn,Ke)}return Be}function pf(e,t){return function(o,a){return Qv(o,e,t(a),{})}}function Wo(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=Xt(o),a=Xt(a)):(o=Jc(o),a=Jc(a)),y=e(o,a)}return y}}function Oa(e){return Vn(function(t){return t=ut(t,Jt(Ne())),qe(function(o){var a=this;return e(t,function(y){return Qt(y,a,o)})})})}function Uo(e,t){t=t===r?" ":Xt(t);var o=t.length;if(o<2)return o?wa(t,e):t;var a=wa(t,To(e/Ur(t)));return Wr(t)?pr(En(a),0,e).join(""):a.slice(0,e)}function Sm(e,t,o,a){var y=t&H,x=Mi(e);function M(){for(var Y=-1,q=arguments.length,pe=-1,ge=a.length,xe=ie(ge+q),Ee=this&&this!==Dt&&this instanceof M?x:e;++pe<ge;)xe[pe]=a[pe];for(;q--;)xe[pe++]=arguments[++Y];return Qt(Ee,y?o:this,xe)}return M}function gf(e){return function(t,o,a){return a&&typeof a!="number"&&$t(t,o,a)&&(o=a=r),t=Qn(t),o===r?(o=t,t=0):o=Qn(o),a=a===r?t<o?1:-1:Qn(a),um(t,o,a,e)}}function zo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=wn(t),o=wn(o)),e(t,o)}}function vf(e,t,o,a,y,x,M,Y,q,pe){var ge=t&ae,xe=ge?M:r,Ee=ge?r:M,Le=ge?x:r,$e=ge?r:x;t|=ge?Q:ne,t&=~(ge?ne:Q),t&le||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,Y,q,pe],Be=o.apply(r,Ue);return Na(e)&&Ef(Be,Ue),Be.placeholder=a,Tf(Be,e,t)}function Ea(e){var t=wt[e];return function(o,a){if(o=wn(o),a=a==null?0:Tt(We(a),292),a&&Ec(o)){var y=(et(o)+"e").split("e"),x=t(y[0]+"e"+(+y[1]+a));return y=(et(x)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Am=Hr&&1/_o(new Hr([,-0]))[1]==v?function(e){return new Hr(e)}:Za;function mf(e){return function(t){var o=Pt(t);return o==W?ia(t):o==k?W0(t):L0(t,e(t))}}function Gn(e,t,o,a,y,x,M,Y){var q=t&se;if(!q&&typeof e!="function")throw new gn(g);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),M=M===r?M:bt(We(M),0),Y=Y===r?Y:We(Y),pe-=y?y.length:0,t&ne){var ge=a,xe=y;a=y=r}var Ee=q?r:Ma(e),Le=[e,t,o,a,y,ge,xe,x,M,Y];if(Ee&&Ym(Le,Ee),e=Le[0],t=Le[1],o=Le[2],a=Le[3],y=Le[4],Y=Le[9]=Le[9]===r?q?0:e.length:bt(Le[9]-pe,0),!Y&&t&(ae|ce)&&(t&=-25),!t||t==H)var $e=xm(e,t,o);else t==ae||t==ce?$e=Cm(e,t,Y):(t==Q||t==(H|Q))&&!y.length?$e=Sm(e,t,o,a):$e=Fo.apply(r,Le);var Ue=Ee?Zc:Ef;return Tf(Ue($e,Le),e,t)}function yf(e,t,o,a){return e===r||Pn(e,qr[o])&&!tt.call(a,o)?t:e}function _f(e,t,o,a,y,x){return ft(e)&&ft(t)&&(x.set(t,e),$o(e,t,r,_f,x),x.delete(t)),e}function Dm(e){return Li(e)?r:e}function wf(e,t,o,a,y,x){var M=o&$,Y=e.length,q=t.length;if(Y!=q&&!(M&&q>Y))return!1;var pe=x.get(e),ge=x.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Ee=!0,Le=o&B?new Cr:r;for(x.set(e,t),x.set(t,e);++xe<Y;){var $e=e[xe],Ue=t[xe];if(a)var Be=M?a(Ue,$e,xe,t,e,x):a($e,Ue,xe,e,t,x);if(Be!==r){if(Be)continue;Ee=!1;break}if(Le){if(!Js(t,function(He,Ke){if(!wi(Le,Ke)&&($e===He||y($e,He,o,a,x)))return Le.push(Ke)})){Ee=!1;break}}else if(!($e===Ue||y($e,Ue,o,a,x))){Ee=!1;break}}return x.delete(e),x.delete(t),Ee}function Om(e,t,o,a,y,x,M){switch(o){case Re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case me:return!(e.byteLength!=t.byteLength||!x(new Ao(e),new Ao(t)));case X:case be:case K:return Pn(+e,+t);case ve:return e.name==t.name&&e.message==t.message;case _:case U:return e==t+"";case W:var Y=ia;case k:var q=a&$;if(Y||(Y=_o),e.size!=t.size&&!q)return!1;var pe=M.get(e);if(pe)return pe==t;a|=B,M.set(e,t);var ge=wf(Y(e),Y(t),a,y,x,M);return M.delete(e),ge;case te:if(Ai)return Ai.call(e)==Ai.call(t)}return!1}function Em(e,t,o,a,y,x){var M=o&$,Y=Ta(e),q=Y.length,pe=Ta(t),ge=pe.length;if(q!=ge&&!M)return!1;for(var xe=q;xe--;){var Ee=Y[xe];if(!(M?Ee in t:tt.call(t,Ee)))return!1}var Le=x.get(e),$e=x.get(t);if(Le&&$e)return Le==t&&$e==e;var Ue=!0;x.set(e,t),x.set(t,e);for(var Be=M;++xe<q;){Ee=Y[xe];var He=e[Ee],Ke=t[Ee];if(a)var tn=M?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(tn===r?He===Ke||y(He,Ke,o,a,x):tn)){Ue=!1;break}Be||(Be=Ee=="constructor")}if(Ue&&!Be){var Bt=e.constructor,nn=t.constructor;Bt!=nn&&"constructor"in e&&"constructor"in t&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof nn=="function"&&nn instanceof nn)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function Vn(e){return $a(Df(e,r,Nf),e+"")}function Ta(e){return jc(e,xt,ka)}function Pa(e){return jc(e,Gt,bf)}var Ma=Mo?function(e){return Mo.get(e)}:Za;function qo(e){for(var t=e.name+"",o=Gr[t],a=tt.call(Gr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Qr(e){var t=tt.call(b,"placeholder")?b:e;return t.placeholder}function Ne(){var e=b.iteratee||Va;return e=e===Va?Wc:e,arguments.length?e(arguments[0],arguments[1]):e}function Ho(e,t){var o=e.__data__;return Im(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ra(e){for(var t=xt(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Sf(y)]}return t}function Dr(e,t){var o=j0(e,t);return Fc(o)?o:r}function Tm(e){var t=tt.call(e,br),o=e[br];try{e[br]=r;var a=!0}catch{}var y=Co.call(e);return a&&(t?e[br]=o:delete e[br]),y}var ka=sa?function(e){return e==null?[]:(e=it(e),ar(sa(e),function(t){return Dc.call(e,t)}))}:Qa,bf=sa?function(e){for(var t=[];e;)lr(t,ka(e)),e=Do(e);return t}:Qa,Pt=It;(aa&&Pt(new aa(new ArrayBuffer(1)))!=Re||xi&&Pt(new xi)!=W||la&&Pt(la.resolve())!=l||Hr&&Pt(new Hr)!=k||Ci&&Pt(new Ci)!=Ce)&&(Pt=function(e){var t=It(e),o=t==Se?e.constructor:r,a=o?Or(o):"";if(a)switch(a){case fv:return Re;case hv:return W;case dv:return l;case pv:return k;case gv:return Ce}return t});function Pm(e,t,o){for(var a=-1,y=o.length;++a<y;){var x=o[a],M=x.size;switch(x.type){case"drop":e+=M;break;case"dropRight":t-=M;break;case"take":t=Tt(t,e+M);break;case"takeRight":e=bt(e,t-M);break}}return{start:e,end:t}}function Mm(e){var t=e.match(Rn);return t?t[1].split(un):[]}function xf(e,t,o){t=dr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var M=jn(t[a]);if(!(x=e!=null&&o(e,M)))break;e=e[M]}return x||++a!=y?x:(y=e==null?0:e.length,!!y&&Xo(y)&&Kn(M,y)&&(Fe(e)||Er(e)))}function Rm(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&tt.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Cf(e){return typeof e.constructor=="function"&&!Ri(e)?Vr(Do(e)):{}}function km(e,t,o){var a=e.constructor;switch(t){case me:return Da(e);case X:case be:return new a(+e);case Re:return vm(e,o);case Ie:case ke:case Xe:case Qe:case nt:case Et:case pt:case rt:case An:return of(e,o);case W:return new a;case K:case U:return new a(e);case _:return mm(e);case k:return new a;case te:return ym(e)}}function Lm(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Zt,`{
|
|
124
|
+
*/var I1=gi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",d="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",N=1,R=2,L=4,$=1,B=2,H=1,se=2,le=4,ae=8,ce=16,Q=32,ne=64,J=128,V=256,de=512,he=30,re="...",De=800,Oe=16,I=1,P=2,D=3,v=1/0,f=9007199254740991,w=17976931348623157e292,h=NaN,m=4294967295,C=m-1,T=m>>>1,G=[["ary",J],["bind",H],["bindKey",se],["curry",ae],["curryRight",ce],["flip",de],["partial",Q],["partialRight",ne],["rearg",V]],oe="[object Arguments]",ue="[object Array]",we="[object AsyncFunction]",X="[object Boolean]",be="[object Date]",_e="[object DOMException]",ve="[object Error]",j="[object Function]",Z="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ee="[object Null]",Se="[object Object]",l="[object Promise]",c="[object Proxy]",_="[object RegExp]",k="[object Set]",U="[object String]",te="[object Symbol]",Ae="[object Undefined]",Ce="[object WeakMap]",Pe="[object WeakSet]",me="[object ArrayBuffer]",Re="[object DataView]",Ie="[object Float32Array]",ke="[object Float64Array]",Xe="[object Int8Array]",Qe="[object Int16Array]",nt="[object Int32Array]",Et="[object Uint8Array]",pt="[object Uint8ClampedArray]",rt="[object Uint16Array]",An="[object Uint32Array]",St=/\b__p \+= '';/g,Dn=/\b(__p \+=) '' \+/g,At=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jt=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,yt=RegExp(jt.source),an=RegExp(On.source),ln=/<%-([\s\S]+?)%>/g,Yt=/<%([\s\S]+?)%>/g,Lt=/<%=([\s\S]+?)%>/g,Ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ut=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ut.source),at=/^\s+/,Nt=/\s/,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rn=/\{\n\/\* \[wrapped with (.+)\] \*/,un=/,? & /,yr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cn=/[()=,{}\[\]\/\s]/,kn=/\\(\\)?/g,fn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hn=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,ct=/^\[object .+?Constructor\]$/,zt=/^0o[0-7]+$/i,Yn=/^(?:0|[1-9]\d*)$/,Rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fn=/($^)/,kr=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",Lr="\\u0300-\\u036f",po="\\ufe20-\\ufe2f",or="\\u20d0-\\u20ff",sr=Lr+po+or,vi="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",Ir="\\xac\\xb1\\xd7\\xf7",$r="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_r="A-Z\\xc0-\\xd6\\xd8-\\xde",go="\\ufe0e\\ufe0f",Br=Ir+$r+Ws+Us,mi="['’]",zs="["+Wn+"]",Ve="["+Br+"]",Ln="["+sr+"]",jr="\\d+",yi="["+vi+"]",_i="["+Nr+"]",vo="[^"+Wn+Br+jr+vi+Nr+_r+"]",Nn="\\ud83c[\\udffb-\\udfff]",Un="(?:"+Ln+"|"+Nn+")",In="[^"+Wn+"]",qs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",Yr="["+_r+"]",Ju="\\u200d",Xu="(?:"+_i+"|"+vo+")",s0="(?:"+Yr+"|"+vo+")",ec="(?:"+mi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+mi+"(?:D|LL|M|RE|S|T|VE))?",nc=Un+"?",rc="["+go+"]?",a0="(?:"+Ju+"(?:"+[In,qs,Hs].join("|")+")"+rc+nc+")*",l0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ic=rc+nc+a0,c0="(?:"+[yi,qs,Hs].join("|")+")"+ic,f0="(?:"+[In+Ln+"?",Ln,qs,Hs,zs].join("|")+")",h0=RegExp(mi,"g"),d0=RegExp(Ln,"g"),Gs=RegExp(Nn+"(?="+Nn+")|"+f0+ic,"g"),p0=RegExp([Yr+"?"+_i+"+"+ec+"(?="+[Ve,Yr,"$"].join("|")+")",s0+"+"+tc+"(?="+[Ve,Yr+Xu,"$"].join("|")+")",Yr+"?"+Xu+"+"+ec,Yr+"+"+tc,u0,l0,jr,c0].join("|"),"g"),g0=RegExp("["+Ju+Wn+sr+go+"]"),v0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y0=-1,lt={};lt[Ie]=lt[ke]=lt[Xe]=lt[Qe]=lt[nt]=lt[Et]=lt[pt]=lt[rt]=lt[An]=!0,lt[oe]=lt[ue]=lt[me]=lt[X]=lt[Re]=lt[be]=lt[ve]=lt[j]=lt[W]=lt[K]=lt[Se]=lt[_]=lt[k]=lt[U]=lt[Ce]=!1;var st={};st[oe]=st[ue]=st[me]=st[Re]=st[X]=st[be]=st[Ie]=st[ke]=st[Xe]=st[Qe]=st[nt]=st[W]=st[K]=st[Se]=st[_]=st[k]=st[U]=st[te]=st[Et]=st[pt]=st[rt]=st[An]=!0,st[ve]=st[j]=st[Ce]=!1;var _0={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w0={"&":"&","<":"<",">":">",'"':""","'":"'"},b0={"&":"&","<":"<",">":">",""":'"',"'":"'"},x0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C0=parseFloat,S0=parseInt,oc=typeof Ni=="object"&&Ni&&Ni.Object===Object&&Ni,A0=typeof self=="object"&&self&&self.Object===Object&&self,Dt=oc||A0||Function("return this")(),Vs=n&&!n.nodeType&&n,wr=Vs&&!0&&i&&!i.nodeType&&i,sc=wr&&wr.exports===Vs,Ks=sc&&oc.process,dn=function(){try{var z=wr&&wr.require&&wr.require("util").types;return z||Ks&&Ks.binding&&Ks.binding("util")}catch{}}(),ac=dn&&dn.isArrayBuffer,lc=dn&&dn.isDate,uc=dn&&dn.isMap,cc=dn&&dn.isRegExp,fc=dn&&dn.isSet,hc=dn&&dn.isTypedArray;function Qt(z,fe,ie){switch(ie.length){case 0:return z.call(fe);case 1:return z.call(fe,ie[0]);case 2:return z.call(fe,ie[0],ie[1]);case 3:return z.call(fe,ie[0],ie[1],ie[2])}return z.apply(fe,ie)}function D0(z,fe,ie,Me){for(var Ye=-1,Je=z==null?0:z.length;++Ye<Je;){var wt=z[Ye];fe(Me,wt,ie(wt),z)}return Me}function pn(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me&&fe(z[ie],ie,z)!==!1;);return z}function O0(z,fe){for(var ie=z==null?0:z.length;ie--&&fe(z[ie],ie,z)!==!1;);return z}function dc(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(!fe(z[ie],ie,z))return!1;return!0}function ar(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=0,Je=[];++ie<Me;){var wt=z[ie];fe(wt,ie,z)&&(Je[Ye++]=wt)}return Je}function mo(z,fe){var ie=z==null?0:z.length;return!!ie&&Fr(z,fe,0)>-1}function Zs(z,fe,ie){for(var Me=-1,Ye=z==null?0:z.length;++Me<Ye;)if(ie(fe,z[Me]))return!0;return!1}function ut(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=Array(Me);++ie<Me;)Ye[ie]=fe(z[ie],ie,z);return Ye}function lr(z,fe){for(var ie=-1,Me=fe.length,Ye=z.length;++ie<Me;)z[Ye+ie]=fe[ie];return z}function Qs(z,fe,ie,Me){var Ye=-1,Je=z==null?0:z.length;for(Me&&Je&&(ie=z[++Ye]);++Ye<Je;)ie=fe(ie,z[Ye],Ye,z);return ie}function E0(z,fe,ie,Me){var Ye=z==null?0:z.length;for(Me&&Ye&&(ie=z[--Ye]);Ye--;)ie=fe(ie,z[Ye],Ye,z);return ie}function Js(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(fe(z[ie],ie,z))return!0;return!1}var T0=Xs("length");function P0(z){return z.split("")}function M0(z){return z.match(yr)||[]}function pc(z,fe,ie){var Me;return ie(z,function(Ye,Je,wt){if(fe(Ye,Je,wt))return Me=Je,!1}),Me}function yo(z,fe,ie,Me){for(var Ye=z.length,Je=ie+(Me?1:-1);Me?Je--:++Je<Ye;)if(fe(z[Je],Je,z))return Je;return-1}function Fr(z,fe,ie){return fe===fe?U0(z,fe,ie):yo(z,gc,ie)}function R0(z,fe,ie,Me){for(var Ye=ie-1,Je=z.length;++Ye<Je;)if(Me(z[Ye],fe))return Ye;return-1}function gc(z){return z!==z}function vc(z,fe){var ie=z==null?0:z.length;return ie?ta(z,fe)/ie:h}function Xs(z){return function(fe){return fe==null?r:fe[z]}}function ea(z){return function(fe){return z==null?r:z[fe]}}function mc(z,fe,ie,Me,Ye){return Ye(z,function(Je,wt,it){ie=Me?(Me=!1,Je):fe(ie,Je,wt,it)}),ie}function k0(z,fe){var ie=z.length;for(z.sort(fe);ie--;)z[ie]=z[ie].value;return z}function ta(z,fe){for(var ie,Me=-1,Ye=z.length;++Me<Ye;){var Je=fe(z[Me]);Je!==r&&(ie=ie===r?Je:ie+Je)}return ie}function na(z,fe){for(var ie=-1,Me=Array(z);++ie<z;)Me[ie]=fe(ie);return Me}function L0(z,fe){return ut(fe,function(ie){return[ie,z[ie]]})}function yc(z){return z&&z.slice(0,xc(z)+1).replace(at,"")}function Jt(z){return function(fe){return z(fe)}}function ra(z,fe){return ut(fe,function(ie){return z[ie]})}function wi(z,fe){return z.has(fe)}function _c(z,fe){for(var ie=-1,Me=z.length;++ie<Me&&Fr(fe,z[ie],0)>-1;);return ie}function wc(z,fe){for(var ie=z.length;ie--&&Fr(fe,z[ie],0)>-1;);return ie}function N0(z,fe){for(var ie=z.length,Me=0;ie--;)z[ie]===fe&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(z){return"\\"+x0[z]}function j0(z,fe){return z==null?r:z[fe]}function Wr(z){return g0.test(z)}function Y0(z){return v0.test(z)}function F0(z){for(var fe,ie=[];!(fe=z.next()).done;)ie.push(fe.value);return ie}function ia(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me,Ye){ie[++fe]=[Ye,Me]}),ie}function bc(z,fe){return function(ie){return z(fe(ie))}}function ur(z,fe){for(var ie=-1,Me=z.length,Ye=0,Je=[];++ie<Me;){var wt=z[ie];(wt===fe||wt===E)&&(z[ie]=E,Je[Ye++]=ie)}return Je}function _o(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=Me}),ie}function W0(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=[Me,Me]}),ie}function U0(z,fe,ie){for(var Me=ie-1,Ye=z.length;++Me<Ye;)if(z[Me]===fe)return Me;return-1}function z0(z,fe,ie){for(var Me=ie+1;Me--;)if(z[Me]===fe)return Me;return Me}function Ur(z){return Wr(z)?H0(z):T0(z)}function En(z){return Wr(z)?G0(z):P0(z)}function xc(z){for(var fe=z.length;fe--&&Nt.test(z.charAt(fe)););return fe}var q0=ea(b0);function H0(z){for(var fe=Gs.lastIndex=0;Gs.test(z);)++fe;return fe}function G0(z){return z.match(Gs)||[]}function V0(z){return z.match(p0)||[]}var K0=function z(fe){fe=fe==null?Dt:zr.defaults(Dt.Object(),fe,zr.pick(Dt,m0));var ie=fe.Array,Me=fe.Date,Ye=fe.Error,Je=fe.Function,wt=fe.Math,it=fe.Object,oa=fe.RegExp,Z0=fe.String,gn=fe.TypeError,wo=ie.prototype,Q0=Je.prototype,qr=it.prototype,bo=fe["__core-js_shared__"],xo=Q0.toString,tt=qr.hasOwnProperty,J0=0,Cc=function(){var e=/[^.]+$/.exec(bo&&bo.keys&&bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Co=qr.toString,X0=xo.call(it),ev=Dt._,tv=oa("^"+xo.call(tt).replace(Ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),So=sc?fe.Buffer:r,cr=fe.Symbol,Ao=fe.Uint8Array,Sc=So?So.allocUnsafe:r,Do=bc(it.getPrototypeOf,it),Ac=it.create,Dc=qr.propertyIsEnumerable,Oo=wo.splice,Oc=cr?cr.isConcatSpreadable:r,bi=cr?cr.iterator:r,br=cr?cr.toStringTag:r,Eo=function(){try{var e=Dr(it,"defineProperty");return e({},"",{}),e}catch{}}(),nv=fe.clearTimeout!==Dt.clearTimeout&&fe.clearTimeout,rv=Me&&Me.now!==Dt.Date.now&&Me.now,iv=fe.setTimeout!==Dt.setTimeout&&fe.setTimeout,To=wt.ceil,Po=wt.floor,sa=it.getOwnPropertySymbols,ov=So?So.isBuffer:r,Ec=fe.isFinite,sv=wo.join,av=bc(it.keys,it),bt=wt.max,Tt=wt.min,lv=Me.now,uv=fe.parseInt,Tc=wt.random,cv=wo.reverse,aa=Dr(fe,"DataView"),xi=Dr(fe,"Map"),la=Dr(fe,"Promise"),Hr=Dr(fe,"Set"),Ci=Dr(fe,"WeakMap"),Si=Dr(it,"create"),Mo=Ci&&new Ci,Gr={},fv=Or(aa),hv=Or(xi),dv=Or(la),pv=Or(Hr),gv=Or(Ci),Ro=cr?cr.prototype:r,Ai=Ro?Ro.valueOf:r,Pc=Ro?Ro.toString:r;function b(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof vn)return e;if(tt.call(e,"__wrapped__"))return Rf(e)}return new vn(e)}var Vr=function(){function e(){}return function(t){if(!ft(t))return{};if(Ac)return Ac(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function ko(){}function vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:ln,evaluate:Yt,interpolate:Lt,variable:"",imports:{_:b}},b.prototype=ko.prototype,b.prototype.constructor=b,vn.prototype=Vr(ko.prototype),vn.prototype.constructor=vn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function vv(){var e=new Ge(this.__wrapped__);return e.__actions__=qt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qt(this.__views__),e}function mv(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yv(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,x=Pm(0,y,this.__views__),M=x.start,Y=x.end,q=Y-M,pe=a?Y:M-1,ge=this.__iteratees__,xe=ge.length,Ee=0,Le=Tt(q,this.__takeCount__);if(!o||!a&&y==q&&Le==q)return ef(e,this.__actions__);var $e=[];e:for(;q--&&Ee<Le;){pe+=t;for(var Ue=-1,Be=e[pe];++Ue<xe;){var He=ge[Ue],Ke=He.iteratee,tn=He.type,Bt=Ke(Be);if(tn==P)Be=Bt;else if(!Bt){if(tn==I)continue e;break e}}$e[Ee++]=Be}return $e}Ge.prototype=Vr(ko.prototype),Ge.prototype.constructor=Ge;function xr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function _v(){this.__data__=Si?Si(null):{},this.size=0}function wv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bv(e){var t=this.__data__;if(Si){var o=t[e];return o===S?r:o}return tt.call(t,e)?t[e]:r}function xv(e){var t=this.__data__;return Si?t[e]!==r:tt.call(t,e)}function Cv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Si&&t===r?S:t,this}xr.prototype.clear=_v,xr.prototype.delete=wv,xr.prototype.get=bv,xr.prototype.has=xv,xr.prototype.set=Cv;function zn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Sv(){this.__data__=[],this.size=0}function Av(e){var t=this.__data__,o=Lo(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():Oo.call(t,o,1),--this.size,!0}function Dv(e){var t=this.__data__,o=Lo(t,e);return o<0?r:t[o][1]}function Ov(e){return Lo(this.__data__,e)>-1}function Ev(e,t){var o=this.__data__,a=Lo(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}zn.prototype.clear=Sv,zn.prototype.delete=Av,zn.prototype.get=Dv,zn.prototype.has=Ov,zn.prototype.set=Ev;function qn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Tv(){this.size=0,this.__data__={hash:new xr,map:new(xi||zn),string:new xr}}function Pv(e){var t=Ho(this,e).delete(e);return this.size-=t?1:0,t}function Mv(e){return Ho(this,e).get(e)}function Rv(e){return Ho(this,e).has(e)}function kv(e,t){var o=Ho(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}qn.prototype.clear=Tv,qn.prototype.delete=Pv,qn.prototype.get=Mv,qn.prototype.has=Rv,qn.prototype.set=kv;function Cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new qn;++t<o;)this.add(e[t])}function Lv(e){return this.__data__.set(e,S),this}function Nv(e){return this.__data__.has(e)}Cr.prototype.add=Cr.prototype.push=Lv,Cr.prototype.has=Nv;function Tn(e){var t=this.__data__=new zn(e);this.size=t.size}function Iv(){this.__data__=new zn,this.size=0}function $v(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bv(e){return this.__data__.get(e)}function jv(e){return this.__data__.has(e)}function Yv(e,t){var o=this.__data__;if(o instanceof zn){var a=o.__data__;if(!xi||a.length<u-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new qn(a)}return o.set(e,t),this.size=o.size,this}Tn.prototype.clear=Iv,Tn.prototype.delete=$v,Tn.prototype.get=Bv,Tn.prototype.has=jv,Tn.prototype.set=Yv;function Mc(e,t){var o=Fe(e),a=!o&&Er(e),y=!o&&!a&&gr(e),x=!o&&!a&&!y&&Jr(e),M=o||a||y||x,Y=M?na(e.length,Z0):[],q=Y.length;for(var pe in e)(t||tt.call(e,pe))&&!(M&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||x&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Kn(pe,q)))&&Y.push(pe);return Y}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fv(e,t){return Go(qt(e),Sr(t,0,e.length))}function Wv(e){return Go(qt(e))}function ua(e,t,o){(o!==r&&!Pn(e[t],o)||o===r&&!(t in e))&&Hn(e,t,o)}function Di(e,t,o){var a=e[t];(!(tt.call(e,t)&&Pn(a,o))||o===r&&!(t in e))&&Hn(e,t,o)}function Lo(e,t){for(var o=e.length;o--;)if(Pn(e[o][0],t))return o;return-1}function Uv(e,t,o,a){return fr(e,function(y,x,M){t(a,y,o(y),M)}),a}function kc(e,t){return e&&Bn(t,xt(t),e)}function zv(e,t){return e&&Bn(t,Gt(t),e)}function Hn(e,t,o){t=="__proto__"&&Eo?Eo(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ca(e,t){for(var o=-1,a=t.length,y=ie(a),x=e==null;++o<a;)y[o]=x?r:za(e,t[o]);return y}function Sr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function mn(e,t,o,a,y,x){var M,Y=t&N,q=t&R,pe=t&L;if(o&&(M=y?o(e,a,y,x):o(e)),M!==r)return M;if(!ft(e))return e;var ge=Fe(e);if(ge){if(M=Rm(e),!Y)return qt(e,M)}else{var xe=Pt(e),Ee=xe==j||xe==Z;if(gr(e))return rf(e,Y);if(xe==Se||xe==oe||Ee&&!y){if(M=q||Ee?{}:Cf(e),!Y)return q?bm(e,zv(M,e)):wm(e,kc(M,e))}else{if(!st[xe])return y?e:{};M=km(e,xe,Y)}}x||(x=new Tn);var Le=x.get(e);if(Le)return Le;x.set(e,M),Jf(e)?e.forEach(function(Be){M.add(mn(Be,t,o,Be,e,x))}):Zf(e)&&e.forEach(function(Be,He){M.set(He,mn(Be,t,o,He,e,x))});var $e=pe?q?Pa:Ta:q?Gt:xt,Ue=ge?r:$e(e);return pn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Di(M,He,mn(Be,t,o,He,e,x))}),M}function qv(e){var t=xt(e);return function(o){return Lc(o,e,t)}}function Lc(e,t,o){var a=o.length;if(e==null)return!a;for(e=it(e);a--;){var y=o[a],x=t[y],M=e[y];if(M===r&&!(y in e)||!x(M))return!1}return!0}function Nc(e,t,o){if(typeof e!="function")throw new gn(g);return ki(function(){e.apply(r,o)},t)}function Oi(e,t,o,a){var y=-1,x=mo,M=!0,Y=e.length,q=[],pe=t.length;if(!Y)return q;o&&(t=ut(t,Jt(o))),a?(x=Zs,M=!1):t.length>=u&&(x=wi,M=!1,t=new Cr(t));e:for(;++y<Y;){var ge=e[y],xe=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,M&&xe===xe){for(var Ee=pe;Ee--;)if(t[Ee]===xe)continue e;q.push(ge)}else x(t,xe,a)||q.push(ge)}return q}var fr=uf($n),Ic=uf(ha,!0);function Hv(e,t){var o=!0;return fr(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function No(e,t,o){for(var a=-1,y=e.length;++a<y;){var x=e[a],M=t(x);if(M!=null&&(Y===r?M===M&&!en(M):o(M,Y)))var Y=M,q=x}return q}function Gv(e,t,o,a){var y=e.length;for(o=We(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:We(a),a<0&&(a+=y),a=o>a?0:eh(a);o<a;)e[o++]=t;return e}function $c(e,t){var o=[];return fr(e,function(a,y,x){t(a,y,x)&&o.push(a)}),o}function Ot(e,t,o,a,y){var x=-1,M=e.length;for(o||(o=Nm),y||(y=[]);++x<M;){var Y=e[x];t>0&&o(Y)?t>1?Ot(Y,t-1,o,a,y):lr(y,Y):a||(y[y.length]=Y)}return y}var fa=cf(),Bc=cf(!0);function $n(e,t){return e&&fa(e,t,xt)}function ha(e,t){return e&&Bc(e,t,xt)}function Io(e,t){return ar(t,function(o){return Zn(e[o])})}function Ar(e,t){t=dr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[jn(t[o++])];return o&&o==a?e:r}function jc(e,t,o){var a=t(e);return Fe(e)?a:lr(a,o(e))}function It(e){return e==null?e===r?Ae:ee:br&&br in it(e)?Tm(e):Wm(e)}function da(e,t){return e>t}function Vv(e,t){return e!=null&&tt.call(e,t)}function Kv(e,t){return e!=null&&t in it(e)}function Zv(e,t,o){return e>=Tt(t,o)&&e<bt(t,o)}function pa(e,t,o){for(var a=o?Zs:mo,y=e[0].length,x=e.length,M=x,Y=ie(x),q=1/0,pe=[];M--;){var ge=e[M];M&&t&&(ge=ut(ge,Jt(t))),q=Tt(ge.length,q),Y[M]=!o&&(t||y>=120&&ge.length>=120)?new Cr(M&&ge):r}ge=e[0];var xe=-1,Ee=Y[0];e:for(;++xe<y&&pe.length<q;){var Le=ge[xe],$e=t?t(Le):Le;if(Le=o||Le!==0?Le:0,!(Ee?wi(Ee,$e):a(pe,$e,o))){for(M=x;--M;){var Ue=Y[M];if(!(Ue?wi(Ue,$e):a(e[M],$e,o)))continue e}Ee&&Ee.push($e),pe.push(Le)}}return pe}function Qv(e,t,o,a){return $n(e,function(y,x,M){t(a,o(y),x,M)}),a}function Ei(e,t,o){t=dr(t,e),e=Of(e,t);var a=e==null?e:e[jn(_n(t))];return a==null?r:Qt(a,e,o)}function Yc(e){return dt(e)&&It(e)==oe}function Jv(e){return dt(e)&&It(e)==me}function Xv(e){return dt(e)&&It(e)==be}function Ti(e,t,o,a,y){return e===t?!0:e==null||t==null||!dt(e)&&!dt(t)?e!==e&&t!==t:em(e,t,o,a,Ti,y)}function em(e,t,o,a,y,x){var M=Fe(e),Y=Fe(t),q=M?ue:Pt(e),pe=Y?ue:Pt(t);q=q==oe?Se:q,pe=pe==oe?Se:pe;var ge=q==Se,xe=pe==Se,Ee=q==pe;if(Ee&&gr(e)){if(!gr(t))return!1;M=!0,ge=!1}if(Ee&&!ge)return x||(x=new Tn),M||Jr(e)?wf(e,t,o,a,y,x):Om(e,t,q,o,a,y,x);if(!(o&$)){var Le=ge&&tt.call(e,"__wrapped__"),$e=xe&&tt.call(t,"__wrapped__");if(Le||$e){var Ue=Le?e.value():e,Be=$e?t.value():t;return x||(x=new Tn),y(Ue,Be,o,a,x)}}return Ee?(x||(x=new Tn),Em(e,t,o,a,y,x)):!1}function tm(e){return dt(e)&&Pt(e)==W}function ga(e,t,o,a){var y=o.length,x=y,M=!a;if(e==null)return!x;for(e=it(e);y--;){var Y=o[y];if(M&&Y[2]?Y[1]!==e[Y[0]]:!(Y[0]in e))return!1}for(;++y<x;){Y=o[y];var q=Y[0],pe=e[q],ge=Y[1];if(M&&Y[2]){if(pe===r&&!(q in e))return!1}else{var xe=new Tn;if(a)var Ee=a(pe,ge,q,e,t,xe);if(!(Ee===r?Ti(ge,pe,$|B,a,xe):Ee))return!1}}return!0}function Fc(e){if(!ft(e)||$m(e))return!1;var t=Zn(e)?tv:ct;return t.test(Or(e))}function nm(e){return dt(e)&&It(e)==_}function rm(e){return dt(e)&&Pt(e)==k}function im(e){return dt(e)&&Xo(e.length)&&!!lt[It(e)]}function Wc(e){return typeof e=="function"?e:e==null?Vt:typeof e=="object"?Fe(e)?qc(e[0],e[1]):zc(e):fh(e)}function va(e){if(!Ri(e))return av(e);var t=[];for(var o in it(e))tt.call(e,o)&&o!="constructor"&&t.push(o);return t}function om(e){if(!ft(e))return Fm(e);var t=Ri(e),o=[];for(var a in e)a=="constructor"&&(t||!tt.call(e,a))||o.push(a);return o}function ma(e,t){return e<t}function Uc(e,t){var o=-1,a=Ht(e)?ie(e.length):[];return fr(e,function(y,x,M){a[++o]=t(y,x,M)}),a}function zc(e){var t=Ra(e);return t.length==1&&t[0][2]?Af(t[0][0],t[0][1]):function(o){return o===e||ga(o,e,t)}}function qc(e,t){return La(e)&&Sf(t)?Af(jn(e),t):function(o){var a=za(o,e);return a===r&&a===t?qa(o,e):Ti(t,a,$|B)}}function $o(e,t,o,a,y){e!==t&&fa(t,function(x,M){if(y||(y=new Tn),ft(x))sm(e,t,M,o,$o,a,y);else{var Y=a?a(Ia(e,M),x,M+"",e,t,y):r;Y===r&&(Y=x),ua(e,M,Y)}},Gt)}function sm(e,t,o,a,y,x,M){var Y=Ia(e,o),q=Ia(t,o),pe=M.get(q);if(pe){ua(e,o,pe);return}var ge=x?x(Y,q,o+"",e,t,M):r,xe=ge===r;if(xe){var Ee=Fe(q),Le=!Ee&&gr(q),$e=!Ee&&!Le&&Jr(q);ge=q,Ee||Le||$e?Fe(Y)?ge=Y:gt(Y)?ge=qt(Y):Le?(xe=!1,ge=rf(q,!0)):$e?(xe=!1,ge=of(q,!0)):ge=[]:Li(q)||Er(q)?(ge=Y,Er(Y)?ge=th(Y):(!ft(Y)||Zn(Y))&&(ge=Cf(q))):xe=!1}xe&&(M.set(q,ge),y(ge,q,a,x,M),M.delete(q)),ua(e,o,ge)}function Hc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Kn(t,o)?e[t]:r}function Gc(e,t,o){t.length?t=ut(t,function(x){return Fe(x)?function(M){return Ar(M,x.length===1?x[0]:x)}:x}):t=[Vt];var a=-1;t=ut(t,Jt(Ne()));var y=Uc(e,function(x,M,Y){var q=ut(t,function(pe){return pe(x)});return{criteria:q,index:++a,value:x}});return k0(y,function(x,M){return _m(x,M,o)})}function am(e,t){return Vc(e,t,function(o,a){return qa(e,a)})}function Vc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var M=t[a],Y=Ar(e,M);o(Y,M)&&Pi(x,dr(M,e),Y)}return x}function lm(e){return function(t){return Ar(t,e)}}function ya(e,t,o,a){var y=a?R0:Fr,x=-1,M=t.length,Y=e;for(e===t&&(t=qt(t)),o&&(Y=ut(e,Jt(o)));++x<M;)for(var q=0,pe=t[x],ge=o?o(pe):pe;(q=y(Y,ge,q,a))>-1;)Y!==e&&Oo.call(Y,q,1),Oo.call(e,q,1);return e}function Kc(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==x){var x=y;Kn(y)?Oo.call(e,y,1):xa(e,y)}}return e}function _a(e,t){return e+Po(Tc()*(t-e+1))}function um(e,t,o,a){for(var y=-1,x=bt(To((t-e)/(o||1)),0),M=ie(x);x--;)M[a?x:++y]=e,e+=o;return M}function wa(e,t){var o="";if(!e||t<1||t>f)return o;do t%2&&(o+=e),t=Po(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return $a(Df(e,t,Vt),e+"")}function cm(e){return Rc(Xr(e))}function fm(e,t){var o=Xr(e);return Go(o,Sr(t,0,o.length))}function Pi(e,t,o,a){if(!ft(e))return e;t=dr(t,e);for(var y=-1,x=t.length,M=x-1,Y=e;Y!=null&&++y<x;){var q=jn(t[y]),pe=o;if(q==="__proto__"||q==="constructor"||q==="prototype")return e;if(y!=M){var ge=Y[q];pe=a?a(ge,q,Y):r,pe===r&&(pe=ft(ge)?ge:Kn(t[y+1])?[]:{})}Di(Y,q,pe),Y=Y[q]}return e}var Zc=Mo?function(e,t){return Mo.set(e,t),e}:Vt,hm=Eo?function(e,t){return Eo(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Vt;function dm(e){return Go(Xr(e))}function yn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var x=ie(y);++a<y;)x[a]=e[a+t];return x}function pm(e,t){var o;return fr(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function Bo(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=T){for(;a<y;){var x=a+y>>>1,M=e[x];M!==null&&!en(M)&&(o?M<=t:M<t)?a=x+1:y=x}return y}return ba(e,t,Vt,o)}function ba(e,t,o,a){var y=0,x=e==null?0:e.length;if(x===0)return 0;t=o(t);for(var M=t!==t,Y=t===null,q=en(t),pe=t===r;y<x;){var ge=Po((y+x)/2),xe=o(e[ge]),Ee=xe!==r,Le=xe===null,$e=xe===xe,Ue=en(xe);if(M)var Be=a||$e;else pe?Be=$e&&(a||Ee):Y?Be=$e&&Ee&&(a||!Le):q?Be=$e&&Ee&&!Le&&(a||!Ue):Le||Ue?Be=!1:Be=a?xe<=t:xe<t;Be?y=ge+1:x=ge}return Tt(x,C)}function Qc(e,t){for(var o=-1,a=e.length,y=0,x=[];++o<a;){var M=e[o],Y=t?t(M):M;if(!o||!Pn(Y,q)){var q=Y;x[y++]=M===0?0:M}}return x}function Jc(e){return typeof e=="number"?e:en(e)?h:+e}function Xt(e){if(typeof e=="string")return e;if(Fe(e))return ut(e,Xt)+"";if(en(e))return Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-v?"-0":t}function hr(e,t,o){var a=-1,y=mo,x=e.length,M=!0,Y=[],q=Y;if(o)M=!1,y=Zs;else if(x>=u){var pe=t?null:Am(e);if(pe)return _o(pe);M=!1,y=wi,q=new Cr}else q=t?[]:Y;e:for(;++a<x;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,M&&xe===xe){for(var Ee=q.length;Ee--;)if(q[Ee]===xe)continue e;t&&q.push(xe),Y.push(ge)}else y(q,xe,o)||(q!==Y&&q.push(xe),Y.push(ge))}return Y}function xa(e,t){return t=dr(t,e),e=Of(e,t),e==null||delete e[jn(_n(t))]}function Xc(e,t,o,a){return Pi(e,t,o(Ar(e,t)),a)}function jo(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?yn(e,a?0:x,a?x+1:y):yn(e,a?x+1:0,a?y:x)}function ef(e,t){var o=e;return o instanceof Ge&&(o=o.value()),Qs(t,function(a,y){return y.func.apply(y.thisArg,lr([a],y.args))},o)}function Ca(e,t,o){var a=e.length;if(a<2)return a?hr(e[0]):[];for(var y=-1,x=ie(a);++y<a;)for(var M=e[y],Y=-1;++Y<a;)Y!=y&&(x[y]=Oi(x[y]||M,e[Y],t,o));return hr(Ot(x,1),t,o)}function tf(e,t,o){for(var a=-1,y=e.length,x=t.length,M={};++a<y;){var Y=a<x?t[a]:r;o(M,e[a],Y)}return M}function Sa(e){return gt(e)?e:[]}function Aa(e){return typeof e=="function"?e:Vt}function dr(e,t){return Fe(e)?e:La(e,t)?[e]:Mf(et(e))}var gm=qe;function pr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:yn(e,t,o)}var nf=nv||function(e){return Dt.clearTimeout(e)};function rf(e,t){if(t)return e.slice();var o=e.length,a=Sc?Sc(o):new e.constructor(o);return e.copy(a),a}function Da(e){var t=new e.constructor(e.byteLength);return new Ao(t).set(new Ao(e)),t}function vm(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function mm(e){var t=new e.constructor(e.source,hn.exec(e));return t.lastIndex=e.lastIndex,t}function ym(e){return Ai?it(Ai.call(e)):{}}function of(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function sf(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=en(e),M=t!==r,Y=t===null,q=t===t,pe=en(t);if(!Y&&!pe&&!x&&e>t||x&&M&&q&&!Y&&!pe||a&&M&&q||!o&&q||!y)return 1;if(!a&&!x&&!pe&&e<t||pe&&o&&y&&!a&&!x||Y&&o&&y||!M&&y||!q)return-1}return 0}function _m(e,t,o){for(var a=-1,y=e.criteria,x=t.criteria,M=y.length,Y=o.length;++a<M;){var q=sf(y[a],x[a]);if(q){if(a>=Y)return q;var pe=o[a];return q*(pe=="desc"?-1:1)}}return e.index-t.index}function af(e,t,o,a){for(var y=-1,x=e.length,M=o.length,Y=-1,q=t.length,pe=bt(x-M,0),ge=ie(q+pe),xe=!a;++Y<q;)ge[Y]=t[Y];for(;++y<M;)(xe||y<x)&&(ge[o[y]]=e[y]);for(;pe--;)ge[Y++]=e[y++];return ge}function lf(e,t,o,a){for(var y=-1,x=e.length,M=-1,Y=o.length,q=-1,pe=t.length,ge=bt(x-Y,0),xe=ie(ge+pe),Ee=!a;++y<ge;)xe[y]=e[y];for(var Le=y;++q<pe;)xe[Le+q]=t[q];for(;++M<Y;)(Ee||y<x)&&(xe[Le+o[M]]=e[y++]);return xe}function qt(e,t){var o=-1,a=e.length;for(t||(t=ie(a));++o<a;)t[o]=e[o];return t}function Bn(e,t,o,a){var y=!o;o||(o={});for(var x=-1,M=t.length;++x<M;){var Y=t[x],q=a?a(o[Y],e[Y],Y,o,e):r;q===r&&(q=e[Y]),y?Hn(o,Y,q):Di(o,Y,q)}return o}function wm(e,t){return Bn(e,ka(e),t)}function bm(e,t){return Bn(e,bf(e),t)}function Yo(e,t){return function(o,a){var y=Fe(o)?D0:Uv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Kr(e){return qe(function(t,o){var a=-1,y=o.length,x=y>1?o[y-1]:r,M=y>2?o[2]:r;for(x=e.length>3&&typeof x=="function"?(y--,x):r,M&&$t(o[0],o[1],M)&&(x=y<3?r:x,y=1),t=it(t);++a<y;){var Y=o[a];Y&&e(t,Y,a,x)}return t})}function uf(e,t){return function(o,a){if(o==null)return o;if(!Ht(o))return e(o,a);for(var y=o.length,x=t?y:-1,M=it(o);(t?x--:++x<y)&&a(M[x],x,M)!==!1;);return o}}function cf(e){return function(t,o,a){for(var y=-1,x=it(t),M=a(t),Y=M.length;Y--;){var q=M[e?Y:++y];if(o(x[q],q,x)===!1)break}return t}}function xm(e,t,o){var a=t&H,y=Mi(e);function x(){var M=this&&this!==Dt&&this instanceof x?y:e;return M.apply(a?o:this,arguments)}return x}function ff(e){return function(t){t=et(t);var o=Wr(t)?En(t):r,a=o?o[0]:t.charAt(0),y=o?pr(o,1).join(""):t.slice(1);return a[e]()+y}}function Zr(e){return function(t){return Qs(uh(lh(t).replace(h0,"")),e,"")}}function Mi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Vr(e.prototype),a=e.apply(o,t);return ft(a)?a:o}}function Cm(e,t,o){var a=Mi(e);function y(){for(var x=arguments.length,M=ie(x),Y=x,q=Qr(y);Y--;)M[Y]=arguments[Y];var pe=x<3&&M[0]!==q&&M[x-1]!==q?[]:ur(M,q);if(x-=pe.length,x<o)return vf(e,t,Fo,y.placeholder,r,M,pe,r,r,o-x);var ge=this&&this!==Dt&&this instanceof y?a:e;return Qt(ge,this,M)}return y}function hf(e){return function(t,o,a){var y=it(t);if(!Ht(t)){var x=Ne(o,3);t=xt(t),o=function(Y){return x(y[Y],Y,y)}}var M=e(t,o,a);return M>-1?y[x?t[M]:M]:r}}function df(e){return Vn(function(t){var o=t.length,a=o,y=vn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new gn(g);if(y&&!M&&qo(x)=="wrapper")var M=new vn([],!0)}for(a=M?a:o;++a<o;){x=t[a];var Y=qo(x),q=Y=="wrapper"?Ma(x):r;q&&Na(q[0])&&q[1]==(J|ae|Q|V)&&!q[4].length&&q[9]==1?M=M[qo(q[0])].apply(M,q[3]):M=x.length==1&&Na(x)?M[Y]():M.thru(x)}return function(){var pe=arguments,ge=pe[0];if(M&&pe.length==1&&Fe(ge))return M.plant(ge).value();for(var xe=0,Ee=o?t[xe].apply(this,pe):ge;++xe<o;)Ee=t[xe].call(this,Ee);return Ee}})}function Fo(e,t,o,a,y,x,M,Y,q,pe){var ge=t&J,xe=t&H,Ee=t&se,Le=t&(ae|ce),$e=t&de,Ue=Ee?r:Mi(e);function Be(){for(var He=arguments.length,Ke=ie(He),tn=He;tn--;)Ke[tn]=arguments[tn];if(Le)var Bt=Qr(Be),nn=N0(Ke,Bt);if(a&&(Ke=af(Ke,a,y,Le)),x&&(Ke=lf(Ke,x,M,Le)),He-=nn,Le&&He<pe){var vt=ur(Ke,Bt);return vf(e,t,Fo,Be.placeholder,o,Ke,vt,Y,q,pe-He)}var Mn=xe?o:this,Jn=Ee?Mn[e]:e;return He=Ke.length,Y?Ke=Um(Ke,Y):$e&&He>1&&Ke.reverse(),ge&&q<He&&(Ke.length=q),this&&this!==Dt&&this instanceof Be&&(Jn=Ue||Mi(Jn)),Jn.apply(Mn,Ke)}return Be}function pf(e,t){return function(o,a){return Qv(o,e,t(a),{})}}function Wo(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=Xt(o),a=Xt(a)):(o=Jc(o),a=Jc(a)),y=e(o,a)}return y}}function Oa(e){return Vn(function(t){return t=ut(t,Jt(Ne())),qe(function(o){var a=this;return e(t,function(y){return Qt(y,a,o)})})})}function Uo(e,t){t=t===r?" ":Xt(t);var o=t.length;if(o<2)return o?wa(t,e):t;var a=wa(t,To(e/Ur(t)));return Wr(t)?pr(En(a),0,e).join(""):a.slice(0,e)}function Sm(e,t,o,a){var y=t&H,x=Mi(e);function M(){for(var Y=-1,q=arguments.length,pe=-1,ge=a.length,xe=ie(ge+q),Ee=this&&this!==Dt&&this instanceof M?x:e;++pe<ge;)xe[pe]=a[pe];for(;q--;)xe[pe++]=arguments[++Y];return Qt(Ee,y?o:this,xe)}return M}function gf(e){return function(t,o,a){return a&&typeof a!="number"&&$t(t,o,a)&&(o=a=r),t=Qn(t),o===r?(o=t,t=0):o=Qn(o),a=a===r?t<o?1:-1:Qn(a),um(t,o,a,e)}}function zo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=wn(t),o=wn(o)),e(t,o)}}function vf(e,t,o,a,y,x,M,Y,q,pe){var ge=t&ae,xe=ge?M:r,Ee=ge?r:M,Le=ge?x:r,$e=ge?r:x;t|=ge?Q:ne,t&=~(ge?ne:Q),t&le||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,Y,q,pe],Be=o.apply(r,Ue);return Na(e)&&Ef(Be,Ue),Be.placeholder=a,Tf(Be,e,t)}function Ea(e){var t=wt[e];return function(o,a){if(o=wn(o),a=a==null?0:Tt(We(a),292),a&&Ec(o)){var y=(et(o)+"e").split("e"),x=t(y[0]+"e"+(+y[1]+a));return y=(et(x)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Am=Hr&&1/_o(new Hr([,-0]))[1]==v?function(e){return new Hr(e)}:Za;function mf(e){return function(t){var o=Pt(t);return o==W?ia(t):o==k?W0(t):L0(t,e(t))}}function Gn(e,t,o,a,y,x,M,Y){var q=t&se;if(!q&&typeof e!="function")throw new gn(g);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),M=M===r?M:bt(We(M),0),Y=Y===r?Y:We(Y),pe-=y?y.length:0,t&ne){var ge=a,xe=y;a=y=r}var Ee=q?r:Ma(e),Le=[e,t,o,a,y,ge,xe,x,M,Y];if(Ee&&Ym(Le,Ee),e=Le[0],t=Le[1],o=Le[2],a=Le[3],y=Le[4],Y=Le[9]=Le[9]===r?q?0:e.length:bt(Le[9]-pe,0),!Y&&t&(ae|ce)&&(t&=-25),!t||t==H)var $e=xm(e,t,o);else t==ae||t==ce?$e=Cm(e,t,Y):(t==Q||t==(H|Q))&&!y.length?$e=Sm(e,t,o,a):$e=Fo.apply(r,Le);var Ue=Ee?Zc:Ef;return Tf(Ue($e,Le),e,t)}function yf(e,t,o,a){return e===r||Pn(e,qr[o])&&!tt.call(a,o)?t:e}function _f(e,t,o,a,y,x){return ft(e)&&ft(t)&&(x.set(t,e),$o(e,t,r,_f,x),x.delete(t)),e}function Dm(e){return Li(e)?r:e}function wf(e,t,o,a,y,x){var M=o&$,Y=e.length,q=t.length;if(Y!=q&&!(M&&q>Y))return!1;var pe=x.get(e),ge=x.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Ee=!0,Le=o&B?new Cr:r;for(x.set(e,t),x.set(t,e);++xe<Y;){var $e=e[xe],Ue=t[xe];if(a)var Be=M?a(Ue,$e,xe,t,e,x):a($e,Ue,xe,e,t,x);if(Be!==r){if(Be)continue;Ee=!1;break}if(Le){if(!Js(t,function(He,Ke){if(!wi(Le,Ke)&&($e===He||y($e,He,o,a,x)))return Le.push(Ke)})){Ee=!1;break}}else if(!($e===Ue||y($e,Ue,o,a,x))){Ee=!1;break}}return x.delete(e),x.delete(t),Ee}function Om(e,t,o,a,y,x,M){switch(o){case Re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case me:return!(e.byteLength!=t.byteLength||!x(new Ao(e),new Ao(t)));case X:case be:case K:return Pn(+e,+t);case ve:return e.name==t.name&&e.message==t.message;case _:case U:return e==t+"";case W:var Y=ia;case k:var q=a&$;if(Y||(Y=_o),e.size!=t.size&&!q)return!1;var pe=M.get(e);if(pe)return pe==t;a|=B,M.set(e,t);var ge=wf(Y(e),Y(t),a,y,x,M);return M.delete(e),ge;case te:if(Ai)return Ai.call(e)==Ai.call(t)}return!1}function Em(e,t,o,a,y,x){var M=o&$,Y=Ta(e),q=Y.length,pe=Ta(t),ge=pe.length;if(q!=ge&&!M)return!1;for(var xe=q;xe--;){var Ee=Y[xe];if(!(M?Ee in t:tt.call(t,Ee)))return!1}var Le=x.get(e),$e=x.get(t);if(Le&&$e)return Le==t&&$e==e;var Ue=!0;x.set(e,t),x.set(t,e);for(var Be=M;++xe<q;){Ee=Y[xe];var He=e[Ee],Ke=t[Ee];if(a)var tn=M?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(tn===r?He===Ke||y(He,Ke,o,a,x):tn)){Ue=!1;break}Be||(Be=Ee=="constructor")}if(Ue&&!Be){var Bt=e.constructor,nn=t.constructor;Bt!=nn&&"constructor"in e&&"constructor"in t&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof nn=="function"&&nn instanceof nn)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function Vn(e){return $a(Df(e,r,Nf),e+"")}function Ta(e){return jc(e,xt,ka)}function Pa(e){return jc(e,Gt,bf)}var Ma=Mo?function(e){return Mo.get(e)}:Za;function qo(e){for(var t=e.name+"",o=Gr[t],a=tt.call(Gr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Qr(e){var t=tt.call(b,"placeholder")?b:e;return t.placeholder}function Ne(){var e=b.iteratee||Va;return e=e===Va?Wc:e,arguments.length?e(arguments[0],arguments[1]):e}function Ho(e,t){var o=e.__data__;return Im(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ra(e){for(var t=xt(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Sf(y)]}return t}function Dr(e,t){var o=j0(e,t);return Fc(o)?o:r}function Tm(e){var t=tt.call(e,br),o=e[br];try{e[br]=r;var a=!0}catch{}var y=Co.call(e);return a&&(t?e[br]=o:delete e[br]),y}var ka=sa?function(e){return e==null?[]:(e=it(e),ar(sa(e),function(t){return Dc.call(e,t)}))}:Qa,bf=sa?function(e){for(var t=[];e;)lr(t,ka(e)),e=Do(e);return t}:Qa,Pt=It;(aa&&Pt(new aa(new ArrayBuffer(1)))!=Re||xi&&Pt(new xi)!=W||la&&Pt(la.resolve())!=l||Hr&&Pt(new Hr)!=k||Ci&&Pt(new Ci)!=Ce)&&(Pt=function(e){var t=It(e),o=t==Se?e.constructor:r,a=o?Or(o):"";if(a)switch(a){case fv:return Re;case hv:return W;case dv:return l;case pv:return k;case gv:return Ce}return t});function Pm(e,t,o){for(var a=-1,y=o.length;++a<y;){var x=o[a],M=x.size;switch(x.type){case"drop":e+=M;break;case"dropRight":t-=M;break;case"take":t=Tt(t,e+M);break;case"takeRight":e=bt(e,t-M);break}}return{start:e,end:t}}function Mm(e){var t=e.match(Rn);return t?t[1].split(un):[]}function xf(e,t,o){t=dr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var M=jn(t[a]);if(!(x=e!=null&&o(e,M)))break;e=e[M]}return x||++a!=y?x:(y=e==null?0:e.length,!!y&&Xo(y)&&Kn(M,y)&&(Fe(e)||Er(e)))}function Rm(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&tt.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Cf(e){return typeof e.constructor=="function"&&!Ri(e)?Vr(Do(e)):{}}function km(e,t,o){var a=e.constructor;switch(t){case me:return Da(e);case X:case be:return new a(+e);case Re:return vm(e,o);case Ie:case ke:case Xe:case Qe:case nt:case Et:case pt:case rt:case An:return of(e,o);case W:return new a;case K:case U:return new a(e);case _:return mm(e);case k:return new a;case te:return ym(e)}}function Lm(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Zt,`{
|
|
125
125
|
/* [wrapped with `+t+`] */
|
|
126
|
-
`)}function Nm(e){return Fe(e)||Er(e)||!!(Oc&&e&&e[Oc])}function Kn(e,t){var o=typeof e;return t=t??f,!!t&&(o=="number"||o!="symbol"&&Yn.test(e))&&e>-1&&e%1==0&&e<t}function $t(e,t,o){if(!ft(o))return!1;var a=typeof t;return(a=="number"?Ht(o)&&Kn(t,o.length):a=="string"&&t in o)?Pn(o[t],e):!1}function La(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||en(e)?!0:Wt.test(e)||!Ft.test(e)||t!=null&&e in it(t)}function Im(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Na(e){var t=qo(e),o=b[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=Ma(o);return!!a&&e===a[0]}function $m(e){return!!Cc&&Cc in e}var Bm=bo?Zn:Ja;function Ri(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||qr;return e===o}function Sf(e){return e===e&&!ft(e)}function Af(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in it(o))}}function jm(e){var t=Qo(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Ym(e,t){var o=e[1],a=t[1],y=o|a,x=y<(H|se|J),M=a==J&&o==ae||a==J&&o==V&&e[7].length<=t[8]||a==(J|V)&&t[7].length<=t[8]&&o==ae;if(!(x||M))return e;a&H&&(e[2]=t[2],y|=o&H?0:le);var Y=t[3];if(Y){var q=e[3];e[3]=q?af(q,Y,t[4]):Y,e[4]=q?ur(e[3],E):t[4]}return Y=t[5],Y&&(q=e[5],e[5]=q?lf(q,Y,t[6]):Y,e[6]=q?ur(e[5],E):t[6]),Y=t[7],Y&&(e[7]=Y),a&J&&(e[8]=e[8]==null?t[8]:Tt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Fm(e){var t=[];if(e!=null)for(var o in it(e))t.push(o);return t}function Wm(e){return Co.call(e)}function Df(e,t,o){return t=bt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,x=bt(a.length-t,0),M=ie(x);++y<x;)M[y]=a[t+y];y=-1;for(var Y=ie(t+1);++y<t;)Y[y]=a[y];return Y[t]=o(M),Qt(e,this,Y)}}function Of(e,t){return t.length<2?e:Ar(e,yn(t,0,-1))}function Um(e,t){for(var o=e.length,a=Tt(t.length,o),y=qt(e);a--;){var x=t[a];e[a]=Kn(x,o)?y[x]:r}return e}function Ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ef=Pf(Zc),ki=iv||function(e,t){return Dt.setTimeout(e,t)},$a=Pf(hm);function Tf(e,t,o){var a=t+"";return $a(e,Lm(a,zm(Mm(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lv(),y=Oe-(a-o);if(o=a,y>0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Go(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=_a(o,y),M=e[x];e[x]=e[o],e[o]=M}return e.length=t,e}var Mf=jm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kt,function(o,a,y,x){t.push(y?x.replace(kn,"$1"):a||o)}),t});function jn(e){if(typeof e=="string"||en(e))return e;var t=e+"";return t=="0"&&1/e==-v?"-0":t}function Or(e){if(e!=null){try{return xo.call(e)}catch{}try{return e+""}catch{}}return""}function zm(e,t){return pn(G,function(o){var a="_."+o[0];t&o[1]&&!mo(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new vn(e.__wrapped__,e.__chain__);return t.__actions__=qt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qm(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=bt(We(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,x=0,M=ie(To(a/t));y<a;)M[x++]=yn(e,y,y+=t);return M}function Hm(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var x=e[t];x&&(y[a++]=x)}return y}function Gm(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return lr(Fe(o)?qt(o):[o],Ot(t,1))}var Vm=qe(function(e,t){return gt(e)?Oi(e,Ot(t,1,gt,!0)):[]}),Km=qe(function(e,t){var o=_n(t);return gt(o)&&(o=r),gt(e)?Oi(e,Ot(t,1,gt,!0),Ne(o,2)):[]}),Zm=qe(function(e,t){var o=_n(t);return gt(o)&&(o=r),gt(e)?Oi(e,Ot(t,1,gt,!0),r,o):[]});function Qm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),yn(e,t<0?0:t,a)):[]}function Jm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,yn(e,0,t<0?0:t)):[]}function Xm(e,t){return e&&e.length?jo(e,Ne(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?jo(e,Ne(t,3),!0):[]}function ty(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&$t(e,t,o)&&(o=0,a=y),Gv(e,t,o,a)):[]}function kf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=bt(a+y,0)),yo(e,Ne(t,3),y)}function Lf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=We(o),y=o<0?bt(a+y,0):Tt(y,a-1)),yo(e,Ne(t,3),y,!0)}function Nf(e){var t=e==null?0:e.length;return t?Ot(e,1):[]}function ny(e){var t=e==null?0:e.length;return t?Ot(e,v):[]}function ry(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:We(t),Ot(e,t)):[]}function iy(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function If(e){return e&&e.length?e[0]:r}function oy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=bt(a+y,0)),Fr(e,t,y)}function sy(e){var t=e==null?0:e.length;return t?yn(e,0,-1):[]}var ay=qe(function(e){var t=ut(e,Sa);return t.length&&t[0]===e[0]?pa(t):[]}),ly=qe(function(e){var t=_n(e),o=ut(e,Sa);return t===_n(o)?t=r:o.pop(),o.length&&o[0]===e[0]?pa(o,Ne(t,2)):[]}),uy=qe(function(e){var t=_n(e),o=ut(e,Sa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?pa(o,r,t):[]});function cy(e,t){return e==null?"":sv.call(e,t)}function _n(e){var t=e==null?0:e.length;return t?e[t-1]:r}function fy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=We(o),y=y<0?bt(a+y,0):Tt(y,a-1)),t===t?z0(e,t,y):yo(e,gc,y,!0)}function hy(e,t){return e&&e.length?Hc(e,We(t)):r}var dy=qe($f);function $f(e,t){return e&&e.length&&t&&t.length?ya(e,t):e}function py(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,Ne(o,2)):e}function gy(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,r,o):e}var vy=Vn(function(e,t){var o=e==null?0:e.length,a=ca(e,t);return Kc(e,ut(t,function(y){return Kn(y,o)?+y:y}).sort(sf)),a});function my(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],x=e.length;for(t=Ne(t,3);++a<x;){var M=e[a];t(M,a,e)&&(o.push(M),y.push(a))}return Kc(e,y),o}function Ba(e){return e==null?e:cv.call(e)}function yy(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&$t(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),yn(e,t,o)):[]}function _y(e,t){return Bo(e,t)}function wy(e,t,o){return ba(e,t,Ne(o,2))}function by(e,t){var o=e==null?0:e.length;if(o){var a=Bo(e,t);if(a<o&&Pn(e[a],t))return a}return-1}function xy(e,t){return Bo(e,t,!0)}function Cy(e,t,o){return ba(e,t,Ne(o,2),!0)}function Sy(e,t){var o=e==null?0:e.length;if(o){var a=Bo(e,t,!0)-1;if(Pn(e[a],t))return a}return-1}function Ay(e){return e&&e.length?Qc(e):[]}function Dy(e,t){return e&&e.length?Qc(e,Ne(t,2)):[]}function Oy(e){var t=e==null?0:e.length;return t?yn(e,1,t):[]}function Ey(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),yn(e,0,t<0?0:t)):[]}function Ty(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,yn(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?jo(e,Ne(t,3),!1,!0):[]}function My(e,t){return e&&e.length?jo(e,Ne(t,3)):[]}var Ry=qe(function(e){return hr(Ot(e,1,gt,!0))}),ky=qe(function(e){var t=_n(e);return gt(t)&&(t=r),hr(Ot(e,1,gt,!0),Ne(t,2))}),Ly=qe(function(e){var t=_n(e);return t=typeof t=="function"?t:r,hr(Ot(e,1,gt,!0),r,t)});function Ny(e){return e&&e.length?hr(e):[]}function Iy(e,t){return e&&e.length?hr(e,Ne(t,2)):[]}function $y(e,t){return t=typeof t=="function"?t:r,e&&e.length?hr(e,r,t):[]}function ja(e){if(!(e&&e.length))return[];var t=0;return e=ar(e,function(o){if(gt(o))return t=bt(o.length,t),!0}),na(t,function(o){return ut(e,Xs(o))})}function Bf(e,t){if(!(e&&e.length))return[];var o=ja(e);return t==null?o:ut(o,function(a){return Qt(t,r,a)})}var By=qe(function(e,t){return gt(e)?Oi(e,t):[]}),jy=qe(function(e){return Ca(ar(e,gt))}),Yy=qe(function(e){var t=_n(e);return gt(t)&&(t=r),Ca(ar(e,gt),Ne(t,2))}),Fy=qe(function(e){var t=_n(e);return t=typeof t=="function"?t:r,Ca(ar(e,gt),r,t)}),Wy=qe(ja);function Uy(e,t){return tf(e||[],t||[],Di)}function zy(e,t){return tf(e||[],t||[],Pi)}var qy=qe(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Bf(e,o)});function jf(e){var t=b(e);return t.__chain__=!0,t}function Hy(e,t){return t(e),e}function Vo(e,t){return t(e)}var Gy=Vn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return ca(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Kn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Vo,args:[y],thisArg:r}),new vn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return jf(this)}function Ky(){return new vn(this.value(),this.__chain__)}function Zy(){this.__values__===r&&(this.__values__=Xf(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Qy(){return this}function Jy(e){for(var t,o=this;o instanceof ko;){var a=Rf(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function Xy(){var e=this.__wrapped__;if(e instanceof Ge){var t=e;return this.__actions__.length&&(t=new Ge(this)),t=t.reverse(),t.__actions__.push({func:Vo,args:[Ba],thisArg:r}),new vn(t,this.__chain__)}return this.thru(Ba)}function e2(){return ef(this.__wrapped__,this.__actions__)}var t2=Yo(function(e,t,o){tt.call(e,o)?++e[o]:Hn(e,o,1)});function n2(e,t,o){var a=Fe(e)?dc:Hv;return o&&$t(e,t,o)&&(t=r),a(e,Ne(t,3))}function r2(e,t){var o=Fe(e)?ar:$c;return o(e,Ne(t,3))}var i2=hf(kf),o2=hf(Lf);function s2(e,t){return Ot(Ko(e,t),1)}function a2(e,t){return Ot(Ko(e,t),v)}function l2(e,t,o){return o=o===r?1:We(o),Ot(Ko(e,t),o)}function Yf(e,t){var o=Fe(e)?pn:fr;return o(e,Ne(t,3))}function Ff(e,t){var o=Fe(e)?O0:Ic;return o(e,Ne(t,3))}var u2=Yo(function(e,t,o){tt.call(e,o)?e[o].push(t):Hn(e,o,[t])});function c2(e,t,o,a){e=Ht(e)?e:Xr(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=bt(y+o,0)),es(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Fr(e,t,o)>-1}var f2=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=Ht(e)?ie(e.length):[];return fr(e,function(M){x[++a]=y?Qt(t,M,o):Ei(M,t,o)}),x}),h2=Yo(function(e,t,o){Hn(e,o,t)});function Ko(e,t){var o=Fe(e)?ut:Uc;return o(e,Ne(t,3))}function d2(e,t,o,a){return e==null?[]:(Fe(t)||(t=t==null?[]:[t]),o=a?r:o,Fe(o)||(o=o==null?[]:[o]),Gc(e,t,o))}var p2=Yo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function g2(e,t,o){var a=Fe(e)?Qs:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,fr)}function v2(e,t,o){var a=Fe(e)?E0:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function m2(e,t){var o=Fe(e)?ar:$c;return o(e,Jo(Ne(t,3)))}function y2(e){var t=Fe(e)?Rc:cm;return t(e)}function _2(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Fv:fm;return a(e,t)}function w2(e){var t=Fe(e)?Wv:dm;return t(e)}function b2(e){if(e==null)return 0;if(Ht(e))return es(e)?Ur(e):e.length;var t=Pt(e);return t==W||t==k?e.size:va(e).length}function x2(e,t,o){var a=Fe(e)?Js:pm;return o&&$t(e,t,o)&&(t=r),a(e,Ne(t,3))}var C2=qe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&$t(e,t[0],t[1])?t=[]:o>2&&$t(t[0],t[1],t[2])&&(t=[t[0]]),Gc(e,Ot(t,1),[])}),Zo=rv||function(){return Dt.Date.now()};function S2(e,t){if(typeof t!="function")throw new gn(g);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Gn(e,J,r,r,r,r,t)}function Uf(e,t){var o;if(typeof t!="function")throw new gn(g);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Ya=qe(function(e,t,o){var a=H;if(o.length){var y=ur(o,Qr(Ya));a|=Q}return Gn(e,a,t,o,y)}),zf=qe(function(e,t,o){var a=H|se;if(o.length){var y=ur(o,Qr(zf));a|=Q}return Gn(t,a,e,o,y)});function qf(e,t,o){t=o?r:t;var a=Gn(e,ae,r,r,r,r,r,t);return a.placeholder=qf.placeholder,a}function Hf(e,t,o){t=o?r:t;var a=Gn(e,ce,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,x,M,Y,q,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new gn(g);t=wn(t)||0,ft(o)&&(ge=!!o.leading,xe="maxWait"in o,x=xe?bt(wn(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function Le(vt){var Mn=a,Jn=y;return a=y=r,pe=vt,M=e.apply(Jn,Mn),M}function $e(vt){return pe=vt,Y=ki(He,t),ge?Le(vt):M}function Ue(vt){var Mn=vt-q,Jn=vt-pe,hh=t-Mn;return xe?Tt(hh,x-Jn):hh}function Be(vt){var Mn=vt-q,Jn=vt-pe;return q===r||Mn>=t||Mn<0||xe&&Jn>=x}function He(){var vt=Zo();if(Be(vt))return Ke(vt);Y=ki(He,Ue(vt))}function Ke(vt){return Y=r,Ee&&a?Le(vt):(a=y=r,M)}function tn(){Y!==r&&nf(Y),pe=0,a=q=y=Y=r}function Bt(){return Y===r?M:Ke(Zo())}function nn(){var vt=Zo(),Mn=Be(vt);if(a=arguments,y=this,q=vt,Mn){if(Y===r)return $e(q);if(xe)return nf(Y),Y=ki(He,t),Le(q)}return Y===r&&(Y=ki(He,t)),M}return nn.cancel=tn,nn.flush=Bt,nn}var A2=qe(function(e,t){return Nc(e,1,t)}),D2=qe(function(e,t,o){return Nc(e,wn(t)||0,o)});function O2(e){return Gn(e,de)}function Qo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new gn(g);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],x=o.cache;if(x.has(y))return x.get(y);var M=e.apply(this,a);return o.cache=x.set(y,M)||x,M};return o.cache=new(Qo.Cache||qn),o}Qo.Cache=qn;function Jo(e){if(typeof e!="function")throw new gn(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function E2(e){return Uf(2,e)}var T2=gm(function(e,t){t=t.length==1&&Fe(t[0])?ut(t[0],Jt(Ne())):ut(Ot(t,1),Jt(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Tt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return Qt(e,this,a)})}),Fa=qe(function(e,t){var o=ur(t,Qr(Fa));return Gn(e,Q,r,t,o)}),Vf=qe(function(e,t){var o=ur(t,Qr(Vf));return Gn(e,ne,r,t,o)}),P2=Vn(function(e,t){return Gn(e,V,r,r,r,t)});function M2(e,t){if(typeof e!="function")throw new gn(g);return t=t===r?t:We(t),qe(e,t)}function R2(e,t){if(typeof e!="function")throw new gn(g);return t=t==null?0:bt(We(t),0),qe(function(o){var a=o[t],y=pr(o,0,t);return a&&lr(y,a),Qt(e,this,y)})}function k2(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new gn(g);return ft(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Gf(e,t,{leading:a,maxWait:t,trailing:y})}function L2(e){return Wf(e,1)}function N2(e,t){return Fa(Aa(t),e)}function I2(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function $2(e){return mn(e,L)}function B2(e,t){return t=typeof t=="function"?t:r,mn(e,L,t)}function j2(e){return mn(e,N|L)}function Y2(e,t){return t=typeof t=="function"?t:r,mn(e,N|L,t)}function F2(e,t){return t==null||Lc(e,t,xt(t))}function Pn(e,t){return e===t||e!==e&&t!==t}var W2=zo(da),U2=zo(function(e,t){return e>=t}),Er=Yc(function(){return arguments}())?Yc:function(e){return dt(e)&&tt.call(e,"callee")&&!Dc.call(e,"callee")},Fe=ie.isArray,z2=ac?Jt(ac):Jv;function Ht(e){return e!=null&&Xo(e.length)&&!Zn(e)}function gt(e){return dt(e)&&Ht(e)}function q2(e){return e===!0||e===!1||dt(e)&&It(e)==X}var gr=ov||Ja,H2=lc?Jt(lc):Xv;function G2(e){return dt(e)&&e.nodeType===1&&!Li(e)}function V2(e){if(e==null)return!0;if(Ht(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||gr(e)||Jr(e)||Er(e)))return!e.length;var t=Pt(e);if(t==W||t==k)return!e.size;if(Ri(e))return!va(e).length;for(var o in e)if(tt.call(e,o))return!1;return!0}function K2(e,t){return Ti(e,t)}function Z2(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Ti(e,t,r,o):!!a}function Wa(e){if(!dt(e))return!1;var t=It(e);return t==ve||t==_e||typeof e.message=="string"&&typeof e.name=="string"&&!Li(e)}function Q2(e){return typeof e=="number"&&Ec(e)}function Zn(e){if(!ft(e))return!1;var t=It(e);return t==j||t==Z||t==we||t==c}function Kf(e){return typeof e=="number"&&e==We(e)}function Xo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var Zf=uc?Jt(uc):tm;function J2(e,t){return e===t||ga(e,t,Ra(t))}function X2(e,t,o){return o=typeof o=="function"?o:r,ga(e,t,Ra(t),o)}function e_(e){return Qf(e)&&e!=+e}function t_(e){if(Bm(e))throw new Ye(p);return Fc(e)}function n_(e){return e===null}function r_(e){return e==null}function Qf(e){return typeof e=="number"||dt(e)&&It(e)==K}function Li(e){if(!dt(e)||It(e)!=Se)return!1;var t=Do(e);if(t===null)return!0;var o=tt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&xo.call(o)==X0}var Ua=cc?Jt(cc):nm;function i_(e){return Kf(e)&&e>=-f&&e<=f}var Jf=fc?Jt(fc):rm;function es(e){return typeof e=="string"||!Fe(e)&&dt(e)&&It(e)==U}function en(e){return typeof e=="symbol"||dt(e)&&It(e)==te}var Jr=hc?Jt(hc):im;function o_(e){return e===r}function s_(e){return dt(e)&&Pt(e)==Ce}function a_(e){return dt(e)&&It(e)==Pe}var l_=zo(ma),u_=zo(function(e,t){return e<=t});function Xf(e){if(!e)return[];if(Ht(e))return es(e)?En(e):qt(e);if(bi&&e[bi])return F0(e[bi]());var t=Pt(e),o=t==W?ia:t==k?_o:Xr;return o(e)}function Qn(e){if(!e)return e===0?e:0;if(e=wn(e),e===v||e===-v){var t=e<0?-1:1;return t*w}return e===e?e:0}function We(e){var t=Qn(e),o=t%1;return t===t?o?t-o:t:0}function eh(e){return e?Sr(We(e),0,m):0}function wn(e){if(typeof e=="number")return e;if(en(e))return h;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yc(e);var o=Ze.test(e);return o||zt.test(e)?S0(e.slice(2),o?2:8):_t.test(e)?h:+e}function th(e){return Bn(e,Gt(e))}function c_(e){return e?Sr(We(e),-f,f):e===0?e:0}function et(e){return e==null?"":Xt(e)}var f_=Kr(function(e,t){if(Ri(t)||Ht(t)){Bn(t,xt(t),e);return}for(var o in t)tt.call(t,o)&&Di(e,o,t[o])}),nh=Kr(function(e,t){Bn(t,Gt(t),e)}),ts=Kr(function(e,t,o,a){Bn(t,Gt(t),e,a)}),h_=Kr(function(e,t,o,a){Bn(t,xt(t),e,a)}),d_=Vn(ca);function p_(e,t){var o=Vr(e);return t==null?o:kc(o,t)}var g_=qe(function(e,t){e=it(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&$t(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],M=Gt(x),Y=-1,q=M.length;++Y<q;){var pe=M[Y],ge=e[pe];(ge===r||Pn(ge,qr[pe])&&!tt.call(e,pe))&&(e[pe]=x[pe])}return e}),v_=qe(function(e){return e.push(r,_f),Qt(rh,r,e)});function m_(e,t){return pc(e,Ne(t,3),$n)}function y_(e,t){return pc(e,Ne(t,3),ha)}function __(e,t){return e==null?e:fa(e,Ne(t,3),Gt)}function w_(e,t){return e==null?e:Bc(e,Ne(t,3),Gt)}function b_(e,t){return e&&$n(e,Ne(t,3))}function x_(e,t){return e&&ha(e,Ne(t,3))}function C_(e){return e==null?[]:Io(e,xt(e))}function S_(e){return e==null?[]:Io(e,Gt(e))}function za(e,t,o){var a=e==null?r:Ar(e,t);return a===r?o:a}function A_(e,t){return e!=null&&xf(e,t,Vv)}function qa(e,t){return e!=null&&xf(e,t,Kv)}var D_=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Co.call(t)),e[t]=o},Ga(Vt)),O_=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Co.call(t)),tt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),E_=qe(Ei);function xt(e){return Ht(e)?Mc(e):va(e)}function Gt(e){return Ht(e)?Mc(e,!0):om(e)}function T_(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,x){Hn(o,t(a,y,x),a)}),o}function P_(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,x){Hn(o,y,t(a,y,x))}),o}var M_=Kr(function(e,t,o){$o(e,t,o)}),rh=Kr(function(e,t,o,a){$o(e,t,o,a)}),R_=Vn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ut(t,function(x){return x=dr(x,e),a||(a=x.length>1),x}),Bn(e,Pa(e),o),a&&(o=mn(o,N|R|L,Dm));for(var y=t.length;y--;)xa(o,t[y]);return o});function k_(e,t){return ih(e,Jo(Ne(t)))}var L_=Vn(function(e,t){return e==null?{}:am(e,t)});function ih(e,t){if(e==null)return{};var o=ut(Pa(e),function(a){return[a]});return t=Ne(t),Vc(e,o,function(a,y){return t(a,y[0])})}function N_(e,t,o){t=dr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[jn(t[a])];x===r&&(a=y,x=o),e=Zn(x)?x.call(e):x}return e}function I_(e,t,o){return e==null?e:Pi(e,t,o)}function $_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Pi(e,t,o,a)}var oh=mf(xt),sh=mf(Gt);function B_(e,t,o){var a=Fe(e),y=a||gr(e)||Jr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ft(e)?o=Zn(x)?Vr(Do(e)):{}:o={}}return(y?pn:$n)(e,function(M,Y,q){return t(o,M,Y,q)}),o}function j_(e,t){return e==null?!0:xa(e,t)}function Y_(e,t,o){return e==null?e:Xc(e,t,Aa(o))}function F_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Xc(e,t,Aa(o),a)}function Xr(e){return e==null?[]:ra(e,xt(e))}function W_(e){return e==null?[]:ra(e,Gt(e))}function U_(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=wn(o),o=o===o?o:0),t!==r&&(t=wn(t),t=t===t?t:0),Sr(wn(e),t,o)}function z_(e,t,o){return t=Qn(t),o===r?(o=t,t=0):o=Qn(o),e=wn(e),Zv(e,t,o)}function q_(e,t,o){if(o&&typeof o!="boolean"&&$t(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Qn(e),t===r?(t=e,e=0):t=Qn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Tc();return Tt(e+y*(t-e+C0("1e-"+((y+"").length-1))),t)}return _a(e,t)}var H_=Zr(function(e,t,o){return t=t.toLowerCase(),e+(o?ah(t):t)});function ah(e){return Ha(et(e).toLowerCase())}function lh(e){return e=et(e),e&&e.replace(Rr,I0).replace(d0,"")}function G_(e,t,o){e=et(e),t=Xt(t);var a=e.length;o=o===r?a:Sr(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function V_(e){return e=et(e),e&&an.test(e)?e.replace(On,$0):e}function K_(e){return e=et(e),e&&ze.test(e)?e.replace(Ut,"\\$&"):e}var Z_=Zr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Q_=Zr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),J_=ff("toLowerCase");function X_(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Uo(Po(y),o)+e+Uo(To(y),o)}function ew(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;return t&&a<t?e+Uo(t-a,o):e}function tw(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;return t&&a<t?Uo(t-a,o)+e:e}function nw(e,t,o){return o||t==null?t=0:t&&(t=+t),uv(et(e).replace(at,""),t||0)}function rw(e,t,o){return(o?$t(e,t,o):t===r)?t=1:t=We(t),wa(et(e),t)}function iw(){var e=arguments,t=et(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ow=Zr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function sw(e,t,o){return o&&typeof o!="number"&&$t(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=et(e),e&&(typeof t=="string"||t!=null&&!Ua(t))&&(t=Xt(t),!t&&Wr(e))?pr(En(e),0,o):e.split(t,o)):[]}var aw=Zr(function(e,t,o){return e+(o?" ":"")+Ha(t)});function lw(e,t,o){return e=et(e),o=o==null?0:Sr(We(o),0,e.length),t=Xt(t),e.slice(o,o+t.length)==t}function uw(e,t,o){var a=b.templateSettings;o&&$t(e,t,o)&&(t=r),e=et(e),t=ts({},t,a,yf);var y=ts({},t.imports,a.imports,yf),x=xt(y),M=ra(y,x),Y,q,pe=0,ge=t.interpolate||Fn,xe="__p += '",Ee=oa((t.escape||Fn).source+"|"+ge.source+"|"+(ge===Lt?fn:Fn).source+"|"+(t.evaluate||Fn).source+"|$","g"),Le="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y0+"]")+`
|
|
126
|
+
`)}function Nm(e){return Fe(e)||Er(e)||!!(Oc&&e&&e[Oc])}function Kn(e,t){var o=typeof e;return t=t??f,!!t&&(o=="number"||o!="symbol"&&Yn.test(e))&&e>-1&&e%1==0&&e<t}function $t(e,t,o){if(!ft(o))return!1;var a=typeof t;return(a=="number"?Ht(o)&&Kn(t,o.length):a=="string"&&t in o)?Pn(o[t],e):!1}function La(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||en(e)?!0:Wt.test(e)||!Ft.test(e)||t!=null&&e in it(t)}function Im(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Na(e){var t=qo(e),o=b[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=Ma(o);return!!a&&e===a[0]}function $m(e){return!!Cc&&Cc in e}var Bm=bo?Zn:Ja;function Ri(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||qr;return e===o}function Sf(e){return e===e&&!ft(e)}function Af(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in it(o))}}function jm(e){var t=Qo(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Ym(e,t){var o=e[1],a=t[1],y=o|a,x=y<(H|se|J),M=a==J&&o==ae||a==J&&o==V&&e[7].length<=t[8]||a==(J|V)&&t[7].length<=t[8]&&o==ae;if(!(x||M))return e;a&H&&(e[2]=t[2],y|=o&H?0:le);var Y=t[3];if(Y){var q=e[3];e[3]=q?af(q,Y,t[4]):Y,e[4]=q?ur(e[3],E):t[4]}return Y=t[5],Y&&(q=e[5],e[5]=q?lf(q,Y,t[6]):Y,e[6]=q?ur(e[5],E):t[6]),Y=t[7],Y&&(e[7]=Y),a&J&&(e[8]=e[8]==null?t[8]:Tt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Fm(e){var t=[];if(e!=null)for(var o in it(e))t.push(o);return t}function Wm(e){return Co.call(e)}function Df(e,t,o){return t=bt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,x=bt(a.length-t,0),M=ie(x);++y<x;)M[y]=a[t+y];y=-1;for(var Y=ie(t+1);++y<t;)Y[y]=a[y];return Y[t]=o(M),Qt(e,this,Y)}}function Of(e,t){return t.length<2?e:Ar(e,yn(t,0,-1))}function Um(e,t){for(var o=e.length,a=Tt(t.length,o),y=qt(e);a--;){var x=t[a];e[a]=Kn(x,o)?y[x]:r}return e}function Ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ef=Pf(Zc),ki=iv||function(e,t){return Dt.setTimeout(e,t)},$a=Pf(hm);function Tf(e,t,o){var a=t+"";return $a(e,Lm(a,zm(Mm(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lv(),y=Oe-(a-o);if(o=a,y>0){if(++t>=De)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Go(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=_a(o,y),M=e[x];e[x]=e[o],e[o]=M}return e.length=t,e}var Mf=jm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kt,function(o,a,y,x){t.push(y?x.replace(kn,"$1"):a||o)}),t});function jn(e){if(typeof e=="string"||en(e))return e;var t=e+"";return t=="0"&&1/e==-v?"-0":t}function Or(e){if(e!=null){try{return xo.call(e)}catch{}try{return e+""}catch{}}return""}function zm(e,t){return pn(G,function(o){var a="_."+o[0];t&o[1]&&!mo(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new vn(e.__wrapped__,e.__chain__);return t.__actions__=qt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qm(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=bt(We(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,x=0,M=ie(To(a/t));y<a;)M[x++]=yn(e,y,y+=t);return M}function Hm(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var x=e[t];x&&(y[a++]=x)}return y}function Gm(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return lr(Fe(o)?qt(o):[o],Ot(t,1))}var Vm=qe(function(e,t){return gt(e)?Oi(e,Ot(t,1,gt,!0)):[]}),Km=qe(function(e,t){var o=_n(t);return gt(o)&&(o=r),gt(e)?Oi(e,Ot(t,1,gt,!0),Ne(o,2)):[]}),Zm=qe(function(e,t){var o=_n(t);return gt(o)&&(o=r),gt(e)?Oi(e,Ot(t,1,gt,!0),r,o):[]});function Qm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),yn(e,t<0?0:t,a)):[]}function Jm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,yn(e,0,t<0?0:t)):[]}function Xm(e,t){return e&&e.length?jo(e,Ne(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?jo(e,Ne(t,3),!0):[]}function ty(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&$t(e,t,o)&&(o=0,a=y),Gv(e,t,o,a)):[]}function kf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=bt(a+y,0)),yo(e,Ne(t,3),y)}function Lf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=We(o),y=o<0?bt(a+y,0):Tt(y,a-1)),yo(e,Ne(t,3),y,!0)}function Nf(e){var t=e==null?0:e.length;return t?Ot(e,1):[]}function ny(e){var t=e==null?0:e.length;return t?Ot(e,v):[]}function ry(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:We(t),Ot(e,t)):[]}function iy(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function If(e){return e&&e.length?e[0]:r}function oy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=bt(a+y,0)),Fr(e,t,y)}function sy(e){var t=e==null?0:e.length;return t?yn(e,0,-1):[]}var ay=qe(function(e){var t=ut(e,Sa);return t.length&&t[0]===e[0]?pa(t):[]}),ly=qe(function(e){var t=_n(e),o=ut(e,Sa);return t===_n(o)?t=r:o.pop(),o.length&&o[0]===e[0]?pa(o,Ne(t,2)):[]}),uy=qe(function(e){var t=_n(e),o=ut(e,Sa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?pa(o,r,t):[]});function cy(e,t){return e==null?"":sv.call(e,t)}function _n(e){var t=e==null?0:e.length;return t?e[t-1]:r}function fy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=We(o),y=y<0?bt(a+y,0):Tt(y,a-1)),t===t?z0(e,t,y):yo(e,gc,y,!0)}function hy(e,t){return e&&e.length?Hc(e,We(t)):r}var dy=qe($f);function $f(e,t){return e&&e.length&&t&&t.length?ya(e,t):e}function py(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,Ne(o,2)):e}function gy(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,r,o):e}var vy=Vn(function(e,t){var o=e==null?0:e.length,a=ca(e,t);return Kc(e,ut(t,function(y){return Kn(y,o)?+y:y}).sort(sf)),a});function my(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],x=e.length;for(t=Ne(t,3);++a<x;){var M=e[a];t(M,a,e)&&(o.push(M),y.push(a))}return Kc(e,y),o}function Ba(e){return e==null?e:cv.call(e)}function yy(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&$t(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),yn(e,t,o)):[]}function _y(e,t){return Bo(e,t)}function wy(e,t,o){return ba(e,t,Ne(o,2))}function by(e,t){var o=e==null?0:e.length;if(o){var a=Bo(e,t);if(a<o&&Pn(e[a],t))return a}return-1}function xy(e,t){return Bo(e,t,!0)}function Cy(e,t,o){return ba(e,t,Ne(o,2),!0)}function Sy(e,t){var o=e==null?0:e.length;if(o){var a=Bo(e,t,!0)-1;if(Pn(e[a],t))return a}return-1}function Ay(e){return e&&e.length?Qc(e):[]}function Dy(e,t){return e&&e.length?Qc(e,Ne(t,2)):[]}function Oy(e){var t=e==null?0:e.length;return t?yn(e,1,t):[]}function Ey(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),yn(e,0,t<0?0:t)):[]}function Ty(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,yn(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?jo(e,Ne(t,3),!1,!0):[]}function My(e,t){return e&&e.length?jo(e,Ne(t,3)):[]}var Ry=qe(function(e){return hr(Ot(e,1,gt,!0))}),ky=qe(function(e){var t=_n(e);return gt(t)&&(t=r),hr(Ot(e,1,gt,!0),Ne(t,2))}),Ly=qe(function(e){var t=_n(e);return t=typeof t=="function"?t:r,hr(Ot(e,1,gt,!0),r,t)});function Ny(e){return e&&e.length?hr(e):[]}function Iy(e,t){return e&&e.length?hr(e,Ne(t,2)):[]}function $y(e,t){return t=typeof t=="function"?t:r,e&&e.length?hr(e,r,t):[]}function ja(e){if(!(e&&e.length))return[];var t=0;return e=ar(e,function(o){if(gt(o))return t=bt(o.length,t),!0}),na(t,function(o){return ut(e,Xs(o))})}function Bf(e,t){if(!(e&&e.length))return[];var o=ja(e);return t==null?o:ut(o,function(a){return Qt(t,r,a)})}var By=qe(function(e,t){return gt(e)?Oi(e,t):[]}),jy=qe(function(e){return Ca(ar(e,gt))}),Yy=qe(function(e){var t=_n(e);return gt(t)&&(t=r),Ca(ar(e,gt),Ne(t,2))}),Fy=qe(function(e){var t=_n(e);return t=typeof t=="function"?t:r,Ca(ar(e,gt),r,t)}),Wy=qe(ja);function Uy(e,t){return tf(e||[],t||[],Di)}function zy(e,t){return tf(e||[],t||[],Pi)}var qy=qe(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Bf(e,o)});function jf(e){var t=b(e);return t.__chain__=!0,t}function Hy(e,t){return t(e),e}function Vo(e,t){return t(e)}var Gy=Vn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return ca(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Kn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Vo,args:[y],thisArg:r}),new vn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return jf(this)}function Ky(){return new vn(this.value(),this.__chain__)}function Zy(){this.__values__===r&&(this.__values__=Xf(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Qy(){return this}function Jy(e){for(var t,o=this;o instanceof ko;){var a=Rf(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function Xy(){var e=this.__wrapped__;if(e instanceof Ge){var t=e;return this.__actions__.length&&(t=new Ge(this)),t=t.reverse(),t.__actions__.push({func:Vo,args:[Ba],thisArg:r}),new vn(t,this.__chain__)}return this.thru(Ba)}function e2(){return ef(this.__wrapped__,this.__actions__)}var t2=Yo(function(e,t,o){tt.call(e,o)?++e[o]:Hn(e,o,1)});function n2(e,t,o){var a=Fe(e)?dc:Hv;return o&&$t(e,t,o)&&(t=r),a(e,Ne(t,3))}function r2(e,t){var o=Fe(e)?ar:$c;return o(e,Ne(t,3))}var i2=hf(kf),o2=hf(Lf);function s2(e,t){return Ot(Ko(e,t),1)}function a2(e,t){return Ot(Ko(e,t),v)}function l2(e,t,o){return o=o===r?1:We(o),Ot(Ko(e,t),o)}function Yf(e,t){var o=Fe(e)?pn:fr;return o(e,Ne(t,3))}function Ff(e,t){var o=Fe(e)?O0:Ic;return o(e,Ne(t,3))}var u2=Yo(function(e,t,o){tt.call(e,o)?e[o].push(t):Hn(e,o,[t])});function c2(e,t,o,a){e=Ht(e)?e:Xr(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=bt(y+o,0)),es(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Fr(e,t,o)>-1}var f2=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=Ht(e)?ie(e.length):[];return fr(e,function(M){x[++a]=y?Qt(t,M,o):Ei(M,t,o)}),x}),h2=Yo(function(e,t,o){Hn(e,o,t)});function Ko(e,t){var o=Fe(e)?ut:Uc;return o(e,Ne(t,3))}function d2(e,t,o,a){return e==null?[]:(Fe(t)||(t=t==null?[]:[t]),o=a?r:o,Fe(o)||(o=o==null?[]:[o]),Gc(e,t,o))}var p2=Yo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function g2(e,t,o){var a=Fe(e)?Qs:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,fr)}function v2(e,t,o){var a=Fe(e)?E0:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function m2(e,t){var o=Fe(e)?ar:$c;return o(e,Jo(Ne(t,3)))}function y2(e){var t=Fe(e)?Rc:cm;return t(e)}function _2(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Fv:fm;return a(e,t)}function w2(e){var t=Fe(e)?Wv:dm;return t(e)}function b2(e){if(e==null)return 0;if(Ht(e))return es(e)?Ur(e):e.length;var t=Pt(e);return t==W||t==k?e.size:va(e).length}function x2(e,t,o){var a=Fe(e)?Js:pm;return o&&$t(e,t,o)&&(t=r),a(e,Ne(t,3))}var C2=qe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&$t(e,t[0],t[1])?t=[]:o>2&&$t(t[0],t[1],t[2])&&(t=[t[0]]),Gc(e,Ot(t,1),[])}),Zo=rv||function(){return Dt.Date.now()};function S2(e,t){if(typeof t!="function")throw new gn(g);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Gn(e,J,r,r,r,r,t)}function Uf(e,t){var o;if(typeof t!="function")throw new gn(g);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Ya=qe(function(e,t,o){var a=H;if(o.length){var y=ur(o,Qr(Ya));a|=Q}return Gn(e,a,t,o,y)}),zf=qe(function(e,t,o){var a=H|se;if(o.length){var y=ur(o,Qr(zf));a|=Q}return Gn(t,a,e,o,y)});function qf(e,t,o){t=o?r:t;var a=Gn(e,ae,r,r,r,r,r,t);return a.placeholder=qf.placeholder,a}function Hf(e,t,o){t=o?r:t;var a=Gn(e,ce,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,x,M,Y,q,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new gn(g);t=wn(t)||0,ft(o)&&(ge=!!o.leading,xe="maxWait"in o,x=xe?bt(wn(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function Le(vt){var Mn=a,Jn=y;return a=y=r,pe=vt,M=e.apply(Jn,Mn),M}function $e(vt){return pe=vt,Y=ki(He,t),ge?Le(vt):M}function Ue(vt){var Mn=vt-q,Jn=vt-pe,hh=t-Mn;return xe?Tt(hh,x-Jn):hh}function Be(vt){var Mn=vt-q,Jn=vt-pe;return q===r||Mn>=t||Mn<0||xe&&Jn>=x}function He(){var vt=Zo();if(Be(vt))return Ke(vt);Y=ki(He,Ue(vt))}function Ke(vt){return Y=r,Ee&&a?Le(vt):(a=y=r,M)}function tn(){Y!==r&&nf(Y),pe=0,a=q=y=Y=r}function Bt(){return Y===r?M:Ke(Zo())}function nn(){var vt=Zo(),Mn=Be(vt);if(a=arguments,y=this,q=vt,Mn){if(Y===r)return $e(q);if(xe)return nf(Y),Y=ki(He,t),Le(q)}return Y===r&&(Y=ki(He,t)),M}return nn.cancel=tn,nn.flush=Bt,nn}var A2=qe(function(e,t){return Nc(e,1,t)}),D2=qe(function(e,t,o){return Nc(e,wn(t)||0,o)});function O2(e){return Gn(e,de)}function Qo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new gn(g);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],x=o.cache;if(x.has(y))return x.get(y);var M=e.apply(this,a);return o.cache=x.set(y,M)||x,M};return o.cache=new(Qo.Cache||qn),o}Qo.Cache=qn;function Jo(e){if(typeof e!="function")throw new gn(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function E2(e){return Uf(2,e)}var T2=gm(function(e,t){t=t.length==1&&Fe(t[0])?ut(t[0],Jt(Ne())):ut(Ot(t,1),Jt(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Tt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return Qt(e,this,a)})}),Fa=qe(function(e,t){var o=ur(t,Qr(Fa));return Gn(e,Q,r,t,o)}),Vf=qe(function(e,t){var o=ur(t,Qr(Vf));return Gn(e,ne,r,t,o)}),P2=Vn(function(e,t){return Gn(e,V,r,r,r,t)});function M2(e,t){if(typeof e!="function")throw new gn(g);return t=t===r?t:We(t),qe(e,t)}function R2(e,t){if(typeof e!="function")throw new gn(g);return t=t==null?0:bt(We(t),0),qe(function(o){var a=o[t],y=pr(o,0,t);return a&&lr(y,a),Qt(e,this,y)})}function k2(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new gn(g);return ft(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Gf(e,t,{leading:a,maxWait:t,trailing:y})}function L2(e){return Wf(e,1)}function N2(e,t){return Fa(Aa(t),e)}function I2(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function $2(e){return mn(e,L)}function B2(e,t){return t=typeof t=="function"?t:r,mn(e,L,t)}function j2(e){return mn(e,N|L)}function Y2(e,t){return t=typeof t=="function"?t:r,mn(e,N|L,t)}function F2(e,t){return t==null||Lc(e,t,xt(t))}function Pn(e,t){return e===t||e!==e&&t!==t}var W2=zo(da),U2=zo(function(e,t){return e>=t}),Er=Yc(function(){return arguments}())?Yc:function(e){return dt(e)&&tt.call(e,"callee")&&!Dc.call(e,"callee")},Fe=ie.isArray,z2=ac?Jt(ac):Jv;function Ht(e){return e!=null&&Xo(e.length)&&!Zn(e)}function gt(e){return dt(e)&&Ht(e)}function q2(e){return e===!0||e===!1||dt(e)&&It(e)==X}var gr=ov||Ja,H2=lc?Jt(lc):Xv;function G2(e){return dt(e)&&e.nodeType===1&&!Li(e)}function V2(e){if(e==null)return!0;if(Ht(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||gr(e)||Jr(e)||Er(e)))return!e.length;var t=Pt(e);if(t==W||t==k)return!e.size;if(Ri(e))return!va(e).length;for(var o in e)if(tt.call(e,o))return!1;return!0}function K2(e,t){return Ti(e,t)}function Z2(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Ti(e,t,r,o):!!a}function Wa(e){if(!dt(e))return!1;var t=It(e);return t==ve||t==_e||typeof e.message=="string"&&typeof e.name=="string"&&!Li(e)}function Q2(e){return typeof e=="number"&&Ec(e)}function Zn(e){if(!ft(e))return!1;var t=It(e);return t==j||t==Z||t==we||t==c}function Kf(e){return typeof e=="number"&&e==We(e)}function Xo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var Zf=uc?Jt(uc):tm;function J2(e,t){return e===t||ga(e,t,Ra(t))}function X2(e,t,o){return o=typeof o=="function"?o:r,ga(e,t,Ra(t),o)}function e_(e){return Qf(e)&&e!=+e}function t_(e){if(Bm(e))throw new Ye(p);return Fc(e)}function n_(e){return e===null}function r_(e){return e==null}function Qf(e){return typeof e=="number"||dt(e)&&It(e)==K}function Li(e){if(!dt(e)||It(e)!=Se)return!1;var t=Do(e);if(t===null)return!0;var o=tt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&xo.call(o)==X0}var Ua=cc?Jt(cc):nm;function i_(e){return Kf(e)&&e>=-f&&e<=f}var Jf=fc?Jt(fc):rm;function es(e){return typeof e=="string"||!Fe(e)&&dt(e)&&It(e)==U}function en(e){return typeof e=="symbol"||dt(e)&&It(e)==te}var Jr=hc?Jt(hc):im;function o_(e){return e===r}function s_(e){return dt(e)&&Pt(e)==Ce}function a_(e){return dt(e)&&It(e)==Pe}var l_=zo(ma),u_=zo(function(e,t){return e<=t});function Xf(e){if(!e)return[];if(Ht(e))return es(e)?En(e):qt(e);if(bi&&e[bi])return F0(e[bi]());var t=Pt(e),o=t==W?ia:t==k?_o:Xr;return o(e)}function Qn(e){if(!e)return e===0?e:0;if(e=wn(e),e===v||e===-v){var t=e<0?-1:1;return t*w}return e===e?e:0}function We(e){var t=Qn(e),o=t%1;return t===t?o?t-o:t:0}function eh(e){return e?Sr(We(e),0,m):0}function wn(e){if(typeof e=="number")return e;if(en(e))return h;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yc(e);var o=Ze.test(e);return o||zt.test(e)?S0(e.slice(2),o?2:8):_t.test(e)?h:+e}function th(e){return Bn(e,Gt(e))}function c_(e){return e?Sr(We(e),-f,f):e===0?e:0}function et(e){return e==null?"":Xt(e)}var f_=Kr(function(e,t){if(Ri(t)||Ht(t)){Bn(t,xt(t),e);return}for(var o in t)tt.call(t,o)&&Di(e,o,t[o])}),nh=Kr(function(e,t){Bn(t,Gt(t),e)}),ts=Kr(function(e,t,o,a){Bn(t,Gt(t),e,a)}),h_=Kr(function(e,t,o,a){Bn(t,xt(t),e,a)}),d_=Vn(ca);function p_(e,t){var o=Vr(e);return t==null?o:kc(o,t)}var g_=qe(function(e,t){e=it(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&$t(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],M=Gt(x),Y=-1,q=M.length;++Y<q;){var pe=M[Y],ge=e[pe];(ge===r||Pn(ge,qr[pe])&&!tt.call(e,pe))&&(e[pe]=x[pe])}return e}),v_=qe(function(e){return e.push(r,_f),Qt(rh,r,e)});function m_(e,t){return pc(e,Ne(t,3),$n)}function y_(e,t){return pc(e,Ne(t,3),ha)}function __(e,t){return e==null?e:fa(e,Ne(t,3),Gt)}function w_(e,t){return e==null?e:Bc(e,Ne(t,3),Gt)}function b_(e,t){return e&&$n(e,Ne(t,3))}function x_(e,t){return e&&ha(e,Ne(t,3))}function C_(e){return e==null?[]:Io(e,xt(e))}function S_(e){return e==null?[]:Io(e,Gt(e))}function za(e,t,o){var a=e==null?r:Ar(e,t);return a===r?o:a}function A_(e,t){return e!=null&&xf(e,t,Vv)}function qa(e,t){return e!=null&&xf(e,t,Kv)}var D_=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Co.call(t)),e[t]=o},Ga(Vt)),O_=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Co.call(t)),tt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),E_=qe(Ei);function xt(e){return Ht(e)?Mc(e):va(e)}function Gt(e){return Ht(e)?Mc(e,!0):om(e)}function T_(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,x){Hn(o,t(a,y,x),a)}),o}function P_(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,x){Hn(o,y,t(a,y,x))}),o}var M_=Kr(function(e,t,o){$o(e,t,o)}),rh=Kr(function(e,t,o,a){$o(e,t,o,a)}),R_=Vn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ut(t,function(x){return x=dr(x,e),a||(a=x.length>1),x}),Bn(e,Pa(e),o),a&&(o=mn(o,N|R|L,Dm));for(var y=t.length;y--;)xa(o,t[y]);return o});function k_(e,t){return ih(e,Jo(Ne(t)))}var L_=Vn(function(e,t){return e==null?{}:am(e,t)});function ih(e,t){if(e==null)return{};var o=ut(Pa(e),function(a){return[a]});return t=Ne(t),Vc(e,o,function(a,y){return t(a,y[0])})}function N_(e,t,o){t=dr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[jn(t[a])];x===r&&(a=y,x=o),e=Zn(x)?x.call(e):x}return e}function I_(e,t,o){return e==null?e:Pi(e,t,o)}function $_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Pi(e,t,o,a)}var oh=mf(xt),sh=mf(Gt);function B_(e,t,o){var a=Fe(e),y=a||gr(e)||Jr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ft(e)?o=Zn(x)?Vr(Do(e)):{}:o={}}return(y?pn:$n)(e,function(M,Y,q){return t(o,M,Y,q)}),o}function j_(e,t){return e==null?!0:xa(e,t)}function Y_(e,t,o){return e==null?e:Xc(e,t,Aa(o))}function F_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Xc(e,t,Aa(o),a)}function Xr(e){return e==null?[]:ra(e,xt(e))}function W_(e){return e==null?[]:ra(e,Gt(e))}function U_(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=wn(o),o=o===o?o:0),t!==r&&(t=wn(t),t=t===t?t:0),Sr(wn(e),t,o)}function z_(e,t,o){return t=Qn(t),o===r?(o=t,t=0):o=Qn(o),e=wn(e),Zv(e,t,o)}function q_(e,t,o){if(o&&typeof o!="boolean"&&$t(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Qn(e),t===r?(t=e,e=0):t=Qn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Tc();return Tt(e+y*(t-e+C0("1e-"+((y+"").length-1))),t)}return _a(e,t)}var H_=Zr(function(e,t,o){return t=t.toLowerCase(),e+(o?ah(t):t)});function ah(e){return Ha(et(e).toLowerCase())}function lh(e){return e=et(e),e&&e.replace(Rr,I0).replace(d0,"")}function G_(e,t,o){e=et(e),t=Xt(t);var a=e.length;o=o===r?a:Sr(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function V_(e){return e=et(e),e&&an.test(e)?e.replace(On,$0):e}function K_(e){return e=et(e),e&&ze.test(e)?e.replace(Ut,"\\$&"):e}var Z_=Zr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Q_=Zr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),J_=ff("toLowerCase");function X_(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Uo(Po(y),o)+e+Uo(To(y),o)}function ew(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;return t&&a<t?e+Uo(t-a,o):e}function tw(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;return t&&a<t?Uo(t-a,o)+e:e}function nw(e,t,o){return o||t==null?t=0:t&&(t=+t),uv(et(e).replace(at,""),t||0)}function rw(e,t,o){return(o?$t(e,t,o):t===r)?t=1:t=We(t),wa(et(e),t)}function iw(){var e=arguments,t=et(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ow=Zr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function sw(e,t,o){return o&&typeof o!="number"&&$t(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=et(e),e&&(typeof t=="string"||t!=null&&!Ua(t))&&(t=Xt(t),!t&&Wr(e))?pr(En(e),0,o):e.split(t,o)):[]}var aw=Zr(function(e,t,o){return e+(o?" ":"")+Ha(t)});function lw(e,t,o){return e=et(e),o=o==null?0:Sr(We(o),0,e.length),t=Xt(t),e.slice(o,o+t.length)==t}function uw(e,t,o){var a=b.templateSettings;o&&$t(e,t,o)&&(t=r),e=et(e),t=ts({},t,a,yf);var y=ts({},t.imports,a.imports,yf),x=xt(y),M=ra(y,x),Y,q,pe=0,ge=t.interpolate||Fn,xe="__p += '",Ee=oa((t.escape||Fn).source+"|"+ge.source+"|"+(ge===Lt?fn:Fn).source+"|"+(t.evaluate||Fn).source+"|$","g"),Le="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y0+"]")+`
|
|
127
127
|
`;e.replace(Ee,function(Be,He,Ke,tn,Bt,nn){return Ke||(Ke=tn),xe+=e.slice(pe,nn).replace(kr,B0),He&&(Y=!0,xe+=`' +
|
|
128
128
|
__e(`+He+`) +
|
|
129
129
|
'`),Bt&&(q=!0,xe+=`';
|
|
@@ -140,5 +140,5 @@ __p += '`),Ke&&(xe+=`' +
|
|
|
140
140
|
function print() { __p += __j.call(arguments, '') }
|
|
141
141
|
`:`;
|
|
142
142
|
`)+xe+`return __p
|
|
143
|
-
}`;var Ue=ch(function(){return Je(x,Le+"return "+xe).apply(r,M)});if(Ue.source=xe,Wa(Ue))throw Ue;return Ue}function cw(e){return et(e).toLowerCase()}function fw(e){return et(e).toUpperCase()}function hw(e,t,o){if(e=et(e),e&&(o||t===r))return yc(e);if(!e||!(t=Xt(t)))return e;var a=En(e),y=En(t),x=_c(a,y),M=wc(a,y)+1;return pr(a,x,M).join("")}function dw(e,t,o){if(e=et(e),e&&(o||t===r))return e.slice(0,xc(e)+1);if(!e||!(t=Xt(t)))return e;var a=En(e),y=wc(a,En(t))+1;return pr(a,0,y).join("")}function pw(e,t,o){if(e=et(e),e&&(o||t===r))return e.replace(at,"");if(!e||!(t=Xt(t)))return e;var a=En(e),y=_c(a,En(t));return pr(a,y).join("")}function gw(e,t){var o=he,a=re;if(ft(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?Xt(t.omission):a}e=et(e);var x=e.length;if(Wr(e)){var M=En(e);x=M.length}if(o>=x)return e;var Y=o-Ur(a);if(Y<1)return a;var q=M?pr(M,0,Y).join(""):e.slice(0,Y);if(y===r)return q+a;if(M&&(Y+=q.length-Y),Ua(y)){if(e.slice(Y).search(y)){var pe,ge=q;for(y.global||(y=oa(y.source,et(hn.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;q=q.slice(0,xe===r?Y:xe)}}else if(e.indexOf(Xt(y),Y)!=Y){var Ee=q.lastIndexOf(y);Ee>-1&&(q=q.slice(0,Ee))}return q+a}function vw(e){return e=et(e),e&&yt.test(e)?e.replace(jt,q0):e}var mw=Zr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ha=ff("toUpperCase");function uh(e,t,o){return e=et(e),t=o?r:t,t===r?Y0(e)?V0(e):M0(e):e.match(t)||[]}var ch=qe(function(e,t){try{return Qt(e,r,t)}catch(o){return Wa(o)?o:new Ye(o)}}),yw=Vn(function(e,t){return pn(t,function(o){o=jn(o),Hn(e,o,Ya(e[o],e))}),e});function _w(e){var t=e==null?0:e.length,o=Ne();return e=t?ut(e,function(a){if(typeof a[1]!="function")throw new gn(g);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(Qt(x[0],this,a))return Qt(x[1],this,a)}})}function ww(e){return qv(mn(e,N))}function Ga(e){return function(){return e}}function bw(e,t){return e==null||e!==e?t:e}var xw=df(),Cw=df(!0);function Vt(e){return e}function Va(e){return Wc(typeof e=="function"?e:mn(e,N))}function Sw(e){return zc(mn(e,N))}function Aw(e,t){return qc(e,mn(t,N))}var Dw=qe(function(e,t){return function(o){return Ei(o,e,t)}}),Ow=qe(function(e,t){return function(o){return Ei(e,o,t)}});function Ka(e,t,o){var a=xt(t),y=Io(t,a);o==null&&!(ft(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Io(t,xt(t)));var x=!(ft(o)&&"chain"in o)||!!o.chain,M=Zn(e);return pn(y,function(Y){var q=t[Y];e[Y]=q,M&&(e.prototype[Y]=function(){var pe=this.__chain__;if(x||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=qt(this.__actions__);return xe.push({func:q,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return q.apply(e,lr([this.value()],arguments))})}),e}function Ew(){return Dt._===this&&(Dt._=ev),this}function Za(){}function Tw(e){return e=We(e),qe(function(t){return Hc(t,e)})}var Pw=Oa(ut),Mw=Oa(dc),Rw=Oa(Js);function fh(e){return La(e)?Xs(jn(e)):lm(e)}function kw(e){return function(t){return e==null?r:Ar(e,t)}}var Lw=gf(),Nw=gf(!0);function Qa(){return[]}function Ja(){return!1}function Iw(){return{}}function $w(){return""}function Bw(){return!0}function jw(e,t){if(e=We(e),e<1||e>f)return[];var o=m,a=Tt(e,m);t=Ne(t),e-=m;for(var y=na(a,t);++o<e;)t(o);return y}function Yw(e){return Fe(e)?ut(e,jn):en(e)?[e]:qt(Mf(et(e)))}function Fw(e){var t=++J0;return et(e)+t}var Ww=Wo(function(e,t){return e+t},0),Uw=Ea("ceil"),zw=Wo(function(e,t){return e/t},1),qw=Ea("floor");function Hw(e){return e&&e.length?No(e,Vt,da):r}function Gw(e,t){return e&&e.length?No(e,Ne(t,2),da):r}function Vw(e){return vc(e,Vt)}function Kw(e,t){return vc(e,Ne(t,2))}function Zw(e){return e&&e.length?No(e,Vt,ma):r}function Qw(e,t){return e&&e.length?No(e,Ne(t,2),ma):r}var Jw=Wo(function(e,t){return e*t},1),Xw=Ea("round"),eb=Wo(function(e,t){return e-t},0);function tb(e){return e&&e.length?ta(e,Vt):0}function nb(e,t){return e&&e.length?ta(e,Ne(t,2)):0}return b.after=S2,b.ary=Wf,b.assign=f_,b.assignIn=nh,b.assignInWith=ts,b.assignWith=h_,b.at=d_,b.before=Uf,b.bind=Ya,b.bindAll=yw,b.bindKey=zf,b.castArray=I2,b.chain=jf,b.chunk=qm,b.compact=Hm,b.concat=Gm,b.cond=_w,b.conforms=ww,b.constant=Ga,b.countBy=t2,b.create=p_,b.curry=qf,b.curryRight=Hf,b.debounce=Gf,b.defaults=g_,b.defaultsDeep=v_,b.defer=A2,b.delay=D2,b.difference=Vm,b.differenceBy=Km,b.differenceWith=Zm,b.drop=Qm,b.dropRight=Jm,b.dropRightWhile=Xm,b.dropWhile=ey,b.fill=ty,b.filter=r2,b.flatMap=s2,b.flatMapDeep=a2,b.flatMapDepth=l2,b.flatten=Nf,b.flattenDeep=ny,b.flattenDepth=ry,b.flip=O2,b.flow=xw,b.flowRight=Cw,b.fromPairs=iy,b.functions=C_,b.functionsIn=S_,b.groupBy=u2,b.initial=sy,b.intersection=ay,b.intersectionBy=ly,b.intersectionWith=uy,b.invert=D_,b.invertBy=O_,b.invokeMap=f2,b.iteratee=Va,b.keyBy=h2,b.keys=xt,b.keysIn=Gt,b.map=Ko,b.mapKeys=T_,b.mapValues=P_,b.matches=Sw,b.matchesProperty=Aw,b.memoize=Qo,b.merge=M_,b.mergeWith=rh,b.method=Dw,b.methodOf=Ow,b.mixin=Ka,b.negate=Jo,b.nthArg=Tw,b.omit=R_,b.omitBy=k_,b.once=E2,b.orderBy=d2,b.over=Pw,b.overArgs=T2,b.overEvery=Mw,b.overSome=Rw,b.partial=Fa,b.partialRight=Vf,b.partition=p2,b.pick=L_,b.pickBy=ih,b.property=fh,b.propertyOf=kw,b.pull=dy,b.pullAll=$f,b.pullAllBy=py,b.pullAllWith=gy,b.pullAt=vy,b.range=Lw,b.rangeRight=Nw,b.rearg=P2,b.reject=m2,b.remove=my,b.rest=M2,b.reverse=Ba,b.sampleSize=_2,b.set=I_,b.setWith=$_,b.shuffle=w2,b.slice=yy,b.sortBy=C2,b.sortedUniq=Ay,b.sortedUniqBy=Dy,b.split=sw,b.spread=R2,b.tail=Oy,b.take=Ey,b.takeRight=Ty,b.takeRightWhile=Py,b.takeWhile=My,b.tap=Hy,b.throttle=k2,b.thru=Vo,b.toArray=Xf,b.toPairs=oh,b.toPairsIn=sh,b.toPath=Yw,b.toPlainObject=th,b.transform=B_,b.unary=L2,b.union=Ry,b.unionBy=ky,b.unionWith=Ly,b.uniq=Ny,b.uniqBy=Iy,b.uniqWith=$y,b.unset=j_,b.unzip=ja,b.unzipWith=Bf,b.update=Y_,b.updateWith=F_,b.values=Xr,b.valuesIn=W_,b.without=By,b.words=uh,b.wrap=N2,b.xor=jy,b.xorBy=Yy,b.xorWith=Fy,b.zip=Wy,b.zipObject=Uy,b.zipObjectDeep=zy,b.zipWith=qy,b.entries=oh,b.entriesIn=sh,b.extend=nh,b.extendWith=ts,Ka(b,b),b.add=Ww,b.attempt=ch,b.camelCase=H_,b.capitalize=ah,b.ceil=Uw,b.clamp=U_,b.clone=$2,b.cloneDeep=j2,b.cloneDeepWith=Y2,b.cloneWith=B2,b.conformsTo=F2,b.deburr=lh,b.defaultTo=bw,b.divide=zw,b.endsWith=G_,b.eq=Pn,b.escape=V_,b.escapeRegExp=K_,b.every=n2,b.find=i2,b.findIndex=kf,b.findKey=m_,b.findLast=o2,b.findLastIndex=Lf,b.findLastKey=y_,b.floor=qw,b.forEach=Yf,b.forEachRight=Ff,b.forIn=__,b.forInRight=w_,b.forOwn=b_,b.forOwnRight=x_,b.get=za,b.gt=W2,b.gte=U2,b.has=A_,b.hasIn=qa,b.head=If,b.identity=Vt,b.includes=c2,b.indexOf=oy,b.inRange=z_,b.invoke=E_,b.isArguments=Er,b.isArray=Fe,b.isArrayBuffer=z2,b.isArrayLike=Ht,b.isArrayLikeObject=gt,b.isBoolean=q2,b.isBuffer=gr,b.isDate=H2,b.isElement=G2,b.isEmpty=V2,b.isEqual=K2,b.isEqualWith=Z2,b.isError=Wa,b.isFinite=Q2,b.isFunction=Zn,b.isInteger=Kf,b.isLength=Xo,b.isMap=Zf,b.isMatch=J2,b.isMatchWith=X2,b.isNaN=e_,b.isNative=t_,b.isNil=r_,b.isNull=n_,b.isNumber=Qf,b.isObject=ft,b.isObjectLike=dt,b.isPlainObject=Li,b.isRegExp=Ua,b.isSafeInteger=i_,b.isSet=Jf,b.isString=es,b.isSymbol=en,b.isTypedArray=Jr,b.isUndefined=o_,b.isWeakMap=s_,b.isWeakSet=a_,b.join=cy,b.kebabCase=Z_,b.last=_n,b.lastIndexOf=fy,b.lowerCase=Q_,b.lowerFirst=J_,b.lt=l_,b.lte=u_,b.max=Hw,b.maxBy=Gw,b.mean=Vw,b.meanBy=Kw,b.min=Zw,b.minBy=Qw,b.stubArray=Qa,b.stubFalse=Ja,b.stubObject=Iw,b.stubString=$w,b.stubTrue=Bw,b.multiply=Jw,b.nth=hy,b.noConflict=Ew,b.noop=Za,b.now=Zo,b.pad=X_,b.padEnd=ew,b.padStart=tw,b.parseInt=nw,b.random=q_,b.reduce=g2,b.reduceRight=v2,b.repeat=rw,b.replace=iw,b.result=N_,b.round=Xw,b.runInContext=z,b.sample=y2,b.size=b2,b.snakeCase=ow,b.some=x2,b.sortedIndex=_y,b.sortedIndexBy=wy,b.sortedIndexOf=by,b.sortedLastIndex=xy,b.sortedLastIndexBy=Cy,b.sortedLastIndexOf=Sy,b.startCase=aw,b.startsWith=lw,b.subtract=eb,b.sum=tb,b.sumBy=nb,b.template=uw,b.times=jw,b.toFinite=Qn,b.toInteger=We,b.toLength=eh,b.toLower=cw,b.toNumber=wn,b.toSafeInteger=c_,b.toString=et,b.toUpper=fw,b.trim=hw,b.trimEnd=dw,b.trimStart=pw,b.truncate=gw,b.unescape=vw,b.uniqueId=Fw,b.upperCase=mw,b.upperFirst=Ha,b.each=Yf,b.eachRight=Ff,b.first=If,Ka(b,function(){var e={};return $n(b,function(t,o){tt.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),pn(["drop","take"],function(e,t){Ge.prototype[e]=function(o){o=o===r?1:bt(We(o),0);var a=this.__filtered__&&!t?new Ge(this):this.clone();return a.__filtered__?a.__takeCount__=Tt(o,a.__takeCount__):a.__views__.push({size:Tt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),pn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==I||o==D;Ge.prototype[e]=function(y){var x=this.clone();return x.__iteratees__.push({iteratee:Ne(y,3),type:o}),x.__filtered__=x.__filtered__||a,x}}),pn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),pn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ge.prototype[e]=function(){return this.__filtered__?new Ge(this):this[o](1)}}),Ge.prototype.compact=function(){return this.filter(Vt)},Ge.prototype.find=function(e){return this.filter(e).head()},Ge.prototype.findLast=function(e){return this.reverse().find(e)},Ge.prototype.invokeMap=qe(function(e,t){return typeof e=="function"?new Ge(this):this.map(function(o){return Ei(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Jo(Ne(e)))},Ge.prototype.slice=function(e,t){e=We(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ge(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=We(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ge.prototype.toArray=function(){return this.take(m)},$n(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=b[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(b.prototype[t]=function(){var M=this.__wrapped__,Y=a?[1]:arguments,q=M instanceof Ge,pe=Y[0],ge=q||Fe(M),xe=function(He){var Ke=y.apply(b,lr([He],Y));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof pe=="function"&&pe.length!=1&&(q=ge=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,$e=x&&!Ee,Ue=q&&!Le;if(!x&&ge){M=Ue?M:new Ge(this);var Be=e.apply(M,Y);return Be.__actions__.push({func:Vo,args:[xe],thisArg:r}),new vn(Be,Ee)}return $e&&Ue?e.apply(this,Y):(Be=this.thru(xe),$e?a?Be.value()[0]:Be.value():Be)})}),pn(["pop","push","shift","sort","splice","unshift"],function(e){var t=wo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);b.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var x=this.value();return t.apply(Fe(x)?x:[],y)}return this[o](function(M){return t.apply(Fe(M)?M:[],y)})}}),$n(Ge.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";tt.call(Gr,a)||(Gr[a]=[]),Gr[a].push({name:t,func:o})}}),Gr[Fo(r,se).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=vv,Ge.prototype.reverse=mv,Ge.prototype.value=yv,b.prototype.at=Gy,b.prototype.chain=Vy,b.prototype.commit=Ky,b.prototype.next=Zy,b.prototype.plant=Jy,b.prototype.reverse=Xy,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=e2,b.prototype.first=b.prototype.head,bi&&(b.prototype[bi]=Qy),b},zr=K0();wr?((wr.exports=zr)._=zr,Vs._=zr):Dt._=zr}).call(I1)}(gi,gi.exports)),gi.exports}var Ku=$1();function B1(i){const n=bn.c(45),{fields:r,onClose:s,queryKey:u,apiPath:p,id:g,steps:d}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1),{data:R,isLoading:L}=hu(p,u,g),{mutateAsync:$,isError:B,error:H,isPending:se}=Es(p,u);let le;n[0]!==r?(le=new Set(r.filter(q1).map(z1)),n[0]=r,n[1]=le):le=n[1];let ae;n[2]!==le?(ae=[...le],n[2]=le,n[3]=ae):ae=n[3];const ce=ae;let Q;n[4]!==r?(Q=r.reduce(U1,{}),n[4]=r,n[5]=Q):Q=n[5];let ne;n[6]!==r?(ne=r.filter(W1).reduce(Y1,{}),n[6]=r,n[7]=ne):ne=n[7];let J;n[8]!==Q||n[9]!==ne?(J={mode:"uncontrolled",initialValues:Q,validate:ne},n[8]=Q,n[9]=ne,n[10]=J):J=n[10];const V=Xa.useForm(J);let de;n[11]!==R||n[12]!==r||n[13]!==V?(de=()=>{if(R){const f=r.reduce((w,h)=>{const m=h.id;return w[m]=Array.isArray(R[m])?R[m]:h.type==="boolean"?R[m]??!1:h.type==="date"?R[m]?new Date(R[m]):"":R[m]??"",w},{});V.initialize(f),V.setValues(f)}},n[11]=R,n[12]=r,n[13]=V,n[14]=de):de=n[14];let he;n[15]!==R?(he=[R],n[15]=R,n[16]=he):he=n[16],ye.useEffect(de,he);let re;n[17]!==V?(re=function(w){return w.conditional?w.conditional(V.getValues()):!0},n[17]=V,n[18]=re):re=n[18];const Ae=re;let Oe;n[19]!==V||n[20]!==g||n[21]!==Ae?(Oe=function(w){return Ae(w)?O.jsxs(ye.Fragment,{children:[(w.type===void 0||w.type=="text")&&O.jsx(F.TextInput,{label:w.column.title,placeholder:w.placeholder??"",...V.getInputProps(w.id),type:w.id.includes("email")?"email":void 0},V.key(w.id)),w.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:w.column.title,placeholder:w.placeholder??"",...V.getInputProps(w.id)},V.key(w.id)),w.type==="date"&&O.jsx(lo,{label:w.column.title,placeholder:w.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...V.getInputProps(w.id)},V.key(w.id)),w.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:w.column.title,...V.getInputProps(w.id,{type:"checkbox"})},V.key(w.id)),w.type==="textarea"&&O.jsx(F.Textarea,{label:w.column.title,placeholder:w.placeholder??"",...V.getInputProps(w.id),minRows:3,autosize:!0},V.key(w.id)),w.type==="custom"&&w.render&&w.render({...V.getValues(),id:g},V.setValues,N)]},w.id):null},n[19]=V,n[20]=g,n[21]=Ae,n[22]=Oe):Oe=n[22];const I=Oe;let P;n[23]!==B||n[24]!==H?.message||n[25]!==H?.name?(P=B&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[23]=B,n[24]=H?.message,n[25]=H?.name,n[26]=P):P=n[26];let D;n[27]!==S||n[28]!==r||n[29]!==V||n[30]!==E||n[31]!==g||n[32]!==L||n[33]!==se||n[34]!==B||n[35]!==s||n[36]!==I||n[37]!==Ae||n[38]!==d||n[39]!==ce||n[40]!==$?(D=L?O.jsxs(F.Stack,{gap:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(r.length).fill(0).map(j1),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Skeleton,{width:100,height:36}),O.jsx(F.Skeleton,{width:100,height:36})]})]}):O.jsxs("form",{onSubmit:V.onSubmit(async f=>{await $({...f,id:g}),ce.length&&S<ce.length-1?B||A(S+1):B||(V.setInitialValues(f),V.reset(),s())}),children:[ce.length?O.jsx(F.Stepper,{active:S,size:"sm",children:ce.map(f=>O.jsx(F.Stepper.Step,{...d&&d[f-1]?{label:d[f-1].label}:{},children:r.filter(w=>w.step===f&&Ae(w)).map(w=>I(w))},f))}):r.filter(Ae).map(f=>I(f)),!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>ce.length?S===0?s():A(S-1):s(),variant:"outline",children:ce.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:se,children:ce.length?S===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[27]=S,n[28]=r,n[29]=V,n[30]=E,n[31]=g,n[32]=L,n[33]=se,n[34]=B,n[35]=s,n[36]=I,n[37]=Ae,n[38]=d,n[39]=ce,n[40]=$,n[41]=D):D=n[41];let v;return n[42]!==P||n[43]!==D?(v=O.jsxs(O.Fragment,{children:[P,D]}),n[42]=P,n[43]=D,n[44]=v):v=n[44],v}function j1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-field-${n}`)}function Y1(i,n){return i[n.id]=F1,i}function F1(i){return i?null:"Pflichtfeld"}function W1(i){return i.required}function U1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function z1(i){return i.step}function q1(i){return typeof i.step=="number"}function H1({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:u,isError:p,error:g,isPending:d}=gu(n,i),[S,A]=ye.useState(s),[E,N]=ye.useState(!1),R=E||d;return ye.useEffect(()=>{S.length||r()},[r,S]),S.length?O.jsxs(O.Fragment,{children:[p&&g.message&&O.jsx(F.Alert,{variant:"outline",color:"red",title:g.name,children:g.message}),O.jsx(F.Text,{children:S.length===1?`Soll ${S.length} Eintrag wirklich gelöscht werden?`:`Sollen ${S.length} Einträge wirklich gelöscht werden?`}),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:r,variant:"outline",disabled:R,children:"Abbrechen"}),O.jsx(F.Button,{color:"red",loading:R,onClick:async()=>{N(!0);try{await Promise.all(S.map(L=>u(L.id))),A([])}finally{N(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function Zu(i,n){const r=bn.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const A=localStorage.getItem(`use_persistent_storage_${n}`);return A?JSON.parse(A):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[u,p]=ye.useState(s);let g;r[3]!==n?(g=A=>{p(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=g):g=r[4];const d=g;let S;return r[5]!==d||r[6]!==u?(S=[u,d],r[5]=d,r[6]=u,r[7]=S):S=r[7],S}const Qu=[10,15,20,50,100,500];function G1(i){const n=bn.c(147),{title:r,queryKey:s,connectedQueryKeys:u,apiPath:p,buttons:g,fields:d,selection:S,pagination:A,filters:E,actions:N,steps:R,defaultSort:L,createButtonText:$,queryParams:B,tabs:H,defaultTab:se,activeTab:le,onActiveTabChange:ae}=i,[ce,Q]=ye.useState(se||(H&&H.length>0?H[0].value:null)),ne=le!==void 0?le:ce;let J;n[0]!==le||n[1]!==ae?(J=Ze=>{le===void 0&&Q(Ze),ae&&ae(Ze)},n[0]=le,n[1]=ae,n[2]=J):J=n[2];const V=J;let de,he;if(n[3]!==ne||n[4]!==B||n[5]!==H){const Ze=H?.find(ct=>ct.value===ne)?.queryParams||{};de={...B,...Ze},he=de?"?"+Object.entries(de).filter(i0).map(r0).join("&"):"",n[3]=ne,n[4]=B,n[5]=H,n[6]=de,n[7]=he}else de=n[6],he=n[7];const re=he;let Ae;n[8]!==ne||n[9]!==s?(Ae=ne?[...s,ne]:s,n[8]=ne,n[9]=s,n[10]=Ae):Ae=n[10];const Oe=Ae,{data:I,isLoading:P,isError:D,isRefetching:v,refetch:f}=du(p+re,Oe);let w;n[11]===Symbol.for("react.memo_cache_sentinel")?(w=[],n[11]=w):w=n[11];const[h,m]=ye.useState(w),{queryClient:C}=tr();let T;n[12]!==I||n[13]!==u||n[14]!==E||n[15]!==C?(T=()=>{if(!(!I||!Array.isArray(I))){if(u?.forEach(Ze=>C.invalidateQueries({queryKey:Ze})),!E||E.length===0){m(I);return}m(I.filter(Ze=>E.every(ct=>{if(ct.value===void 0)return!0;const zt=ct.id;if(ct.type==="query"){const Yn=Ze[zt];return typeof Yn=="string"&&Yn.includes(ct.value)}else if(ct.type==="date"){const Yn=ct.value,[Rr,Fn]=Yn;if(Rr&&Fn){const kr=Ze[zt];if(typeof kr=="string"){const Wn=new Date(kr);return Wn>=Rr&&Wn<=Fn}}return!0}else if(ct.type==="boolean")return Ze[zt]===ct.value;return!0})))}},n[12]=I,n[13]=u,n[14]=E,n[15]=C,n[16]=T):T=n[16];let G;n[17]!==I||n[18]!==de||n[19]!==E?(G=[I,E,de],n[17]=I,n[18]=de,n[19]=E,n[20]=G):G=n[20],ye.useEffect(T,G);const oe=L?.field??d[0].id,ue=L?.direction??"desc";let we;n[21]!==oe||n[22]!==ue?(we={columnAccessor:oe,direction:ue},n[21]=oe,n[22]=ue,n[23]=we):we=n[23];const[X,be]=ye.useState(we);let _e;n[24]!==h||n[25]!==L?.direction||n[26]!==L?.field||n[27]!==d[0]?(_e=()=>{const Ze=Ku.sortBy(h,L?.field??d[0].id);return L?.direction==="asc"?Ze:Ze.reverse()},n[24]=h,n[25]=L?.direction,n[26]=L?.field,n[27]=d[0],n[28]=_e):_e=n[28];const[ve,j]=ye.useState(_e);let Z;n[29]!==h||n[30]!==X.columnAccessor||n[31]!==X.direction?(Z=()=>{const Ze=Ku.sortBy(h,X.columnAccessor);j(X.direction==="desc"?Ze.reverse():Ze)},n[29]=h,n[30]=X.columnAccessor,n[31]=X.direction,n[32]=Z):Z=n[32];let W;n[33]!==h||n[34]!==X?(W=[X,h],n[33]=h,n[34]=X,n[35]=W):W=n[35],ye.useEffect(Z,W);const[K,ee]=Zu(Qu[1],"mantine-table-page-size"),[Se,l]=ye.useState(1);let c;n[36]!==K||n[37]!==A||n[38]!==ve?(c=A?ve.slice(0,K):ve,n[36]=K,n[37]=A,n[38]=ve,n[39]=c):c=n[39];const[_,k]=ye.useState(c);let U;n[40]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{l(1)},n[40]=U):U=n[40];let te;n[41]!==K?(te=[K],n[41]=K,n[42]=te):te=n[42],ye.useEffect(U,te);let De,Ce;n[43]!==Se||n[44]!==K||n[45]!==A||n[46]!==ve?(De=()=>{if(A){const Ze=(Se-1)*K,ct=Ze+K;k(ve.slice(Ze,ct))}else k(ve)},Ce=[Se,ve,A,K],n[43]=Se,n[44]=K,n[45]=A,n[46]=ve,n[47]=De,n[48]=Ce):(De=n[47],Ce=n[48]),ye.useEffect(De,Ce);let Pe;n[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=[],n[49]=Pe):Pe=n[49];const[me,Re]=ye.useState(Pe);let Ie;n[50]!==me||n[51]!==S||n[52]!==ve?(Ie=()=>{S&&Re(ve.filter(Ze=>me.some(ct=>ct.id===Ze.id)))},n[50]=me,n[51]=S,n[52]=ve,n[53]=Ie):Ie=n[53];let ke;n[54]!==ve?(ke=[ve],n[54]=ve,n[55]=ke):ke=n[55],ye.useEffect(Ie,ke);let Xe;n[56]===Symbol.for("react.memo_cache_sentinel")?(Xe=()=>{Re([])},n[56]=Xe):Xe=n[56];let Qe;n[57]!==ne?(Qe=[ne],n[57]=ne,n[58]=Qe):Qe=n[58],ye.useEffect(Xe,Qe);const[nt,Et]=ye.useState(!1),[pt,rt]=ye.useState(!1),[An,St]=ye.useState(!1),Dn=r?"space-between":"end";let At;n[59]!==r?(At=r&&(typeof r=="string"?O.jsx(F.Title,{order:4,children:r}):r),n[59]=r,n[60]=At):At=n[60];let jt;n[61]!==f?(jt=()=>f(),n[61]=f,n[62]=jt):jt=n[62];let On;n[63]===Symbol.for("react.memo_cache_sentinel")?(On=O.jsx(ei.IconRefresh,{}),n[63]=On):On=n[63];let yt;n[64]!==jt?(yt=O.jsx(F.ActionIcon,{variant:"subtle",onClick:jt,"aria-label":"Neuladen",children:On}),n[64]=jt,n[65]=yt):yt=n[65];let an;n[66]!==N||n[67]!==d||n[68]!==me||n[69]!==S?(an=(d.some(n0)||S)&&O.jsxs(F.Menu,{shadow:"md",children:[O.jsx(F.Menu.Target,{children:O.jsx(F.Button,{variant:"outline",rightSection:O.jsx(ei.IconCaretDownFilled,{size:14}),disabled:!me.length,children:"Aktionen"})}),O.jsxs(F.Menu.Dropdown,{children:[d.find(t0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ei.IconPencil,{size:14}),onClick:()=>rt(!0),disabled:me.length!==1,children:"Bearbeiten"}),(N??[]).map((Ze,ct)=>ye.createElement(F.Menu.Item,{...Ze.icon&&{leftSection:Ze.icon},key:`custom_action_${ct}`,onClick:()=>Ze.onClick(me)},Ze.label)),d.find(e0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ei.IconTrash,{size:14}),onClick:()=>St(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=d,n[68]=me,n[69]=S,n[70]=an):an=n[70];let ln;n[71]!==$||n[72]!==d||n[73]!==P?(ln=d.find(X1)&&O.jsx(F.Button,{onClick:()=>Et(!0),disabled:P,children:$??"Erstellen"}),n[71]=$,n[72]=d,n[73]=P,n[74]=ln):ln=n[74];let Yt;n[75]!==g||n[76]!==yt||n[77]!==an||n[78]!==ln?(Yt=O.jsxs(F.Group,{align:"center",gap:"xs",children:[yt,an,ln,g]}),n[75]=g,n[76]=yt,n[77]=an,n[78]=ln,n[79]=Yt):Yt=n[79];let Lt;n[80]!==Dn||n[81]!==At||n[82]!==Yt?(Lt=O.jsxs(F.Group,{gap:"xs",justify:Dn,align:"center",children:[At,Yt]}),n[80]=Dn,n[81]=At,n[82]=Yt,n[83]=Lt):Lt=n[83];let Ft;n[84]!==ne||n[85]!==V||n[86]!==H?(Ft=H&&H.length>0&&O.jsx(F.Tabs,{value:ne,onChange:V,mt:"md",children:O.jsx(F.Tabs.List,{children:H.map(J1)})}),n[84]=ne,n[85]=V,n[86]=H,n[87]=Ft):Ft=n[87];let Wt;n[88]!==D?(Wt=D&&O.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(ei.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=D,n[89]=Wt):Wt=n[89];let Kt;n[90]!==P||n[91]!==v?(Kt=(P||v)&&O.jsxs(F.Stack,{my:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[90]=P,n[91]=v,n[92]=Kt):Kt=n[92];let Ut;n[93]!==d||n[94]!==D||n[95]!==P||n[96]!==v||n[97]!==Se||n[98]!==K||n[99]!==A||n[100]!==_||n[101]!==me||n[102]!==S||n[103]!==ee||n[104]!==X||n[105]!==ve?(Ut=!P&&!v&&O.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:D,records:_,sortStatus:X,onSortStatusChange:be,...S&&{selectedRecords:me,onSelectedRecordsChange:Re},...A&&_.length&&{totalRecords:ve.length,recordsPerPage:K,onPageChange:l,page:Se,recordsPerPageOptions:Qu,onRecordsPerPageChange:ee,recordsPerPageLabel:"Einträge pro Seite"},columns:d.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[93]=d,n[94]=D,n[95]=P,n[96]=v,n[97]=Se,n[98]=K,n[99]=A,n[100]=_,n[101]=me,n[102]=S,n[103]=ee,n[104]=X,n[105]=ve,n[106]=Ut):Ut=n[106];let ze;n[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{rt(!1),Re([])},n[107]=ze):ze=n[107];const at=r??"Bearbeiten";let Nt;n[108]!==p||n[109]!==d||n[110]!==s||n[111]!==me[0]||n[112]!==me.length||n[113]!==R?(Nt=me.length>0&&O.jsx(B1,{fields:d.filter(K1),queryKey:s,apiPath:p,id:me[0].id,onClose:()=>{rt(!1),Re([])},steps:R}),n[108]=p,n[109]=d,n[110]=s,n[111]=me[0],n[112]=me.length,n[113]=R,n[114]=Nt):Nt=n[114];let Zt;n[115]!==at||n[116]!==Nt||n[117]!==pt?(Zt=O.jsx(F.Modal,{opened:pt,onClose:ze,title:at,children:Nt}),n[115]=at,n[116]=Nt,n[117]=pt,n[118]=Zt):Zt=n[118];let Rn;n[119]!==p||n[120]!==An||n[121]!==s||n[122]!==me||n[123]!==r?(Rn=me.length>0&&O.jsx(F.Modal,{opened:An,onClose:()=>{St(!1),Re([])},title:r??"Löschen",children:O.jsx(H1,{onClose:()=>{St(!1),Re([])},queryKey:s,apiPath:p,selectedRecords:me})}),n[119]=p,n[120]=An,n[121]=s,n[122]=me,n[123]=r,n[124]=Rn):Rn=n[124];let un;n[125]===Symbol.for("react.memo_cache_sentinel")?(un=()=>{Et(!1)},n[125]=un):un=n[125];const yr=r??"Anlegen";let cn;n[126]===Symbol.for("react.memo_cache_sentinel")?(cn=()=>{Et(!1)},n[126]=cn):cn=n[126];let kn;n[127]!==d?(kn=d.filter(V1),n[127]=d,n[128]=kn):kn=n[128];let fn;n[129]!==p||n[130]!==s||n[131]!==R||n[132]!==kn?(fn=O.jsx(Yg,{queryKey:s,apiPath:p,onClose:cn,fields:kn,steps:R}),n[129]=p,n[130]=s,n[131]=R,n[132]=kn,n[133]=fn):fn=n[133];let hn;n[134]!==nt||n[135]!==yr||n[136]!==fn?(hn=O.jsx(F.Modal,{opened:nt,onClose:un,title:yr,children:fn}),n[134]=nt,n[135]=yr,n[136]=fn,n[137]=hn):hn=n[137];let _t;return n[138]!==Lt||n[139]!==Ft||n[140]!==Wt||n[141]!==Kt||n[142]!==Ut||n[143]!==Zt||n[144]!==Rn||n[145]!==hn?(_t=O.jsxs(O.Fragment,{children:[Lt,Ft,Wt,Kt,Ut,Zt,Rn,hn]}),n[138]=Lt,n[139]=Ft,n[140]=Wt,n[141]=Kt,n[142]=Ut,n[143]=Zt,n[144]=Rn,n[145]=hn,n[146]=_t):_t=n[146],_t}function V1(i){return i.create}function K1(i){return i.update}function Z1(i){return i.column}function Q1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-${n}`)}function J1(i){return O.jsx(F.Tabs.Tab,{value:i.value,leftSection:i.icon,children:i.label},i.value)}function X1(i){return i.create}function e0(i){return i.delete}function t0(i){return i.update}function n0(i){return i.update}function r0(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function i0(i){const[,n]=i;return n!=null}function o0(i){const n=bn.c(5),{queryClient:r}=tr();let s;n[0]!==i?(s=O.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let u;return n[2]!==r||n[3]!==s?(u=O.jsx(yl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=u):u=n[4],u}ot.DataTable=o0,ot.DataTableProvider=jp,ot.api=Fp,ot.createOne=cu,ot.deleteOne=uu,ot.getAll=au,ot.getApiHeaders=mr,ot.getOne=lu,ot.updateOne=fu,ot.useAddOne=pu,ot.useDataTable=tr,ot.useDeleteOne=gu,ot.useGetAll=du,ot.useGetOne=hu,ot.usePersistentState=Zu,ot.useUpdateOne=Es,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
|
|
143
|
+
}`;var Ue=ch(function(){return Je(x,Le+"return "+xe).apply(r,M)});if(Ue.source=xe,Wa(Ue))throw Ue;return Ue}function cw(e){return et(e).toLowerCase()}function fw(e){return et(e).toUpperCase()}function hw(e,t,o){if(e=et(e),e&&(o||t===r))return yc(e);if(!e||!(t=Xt(t)))return e;var a=En(e),y=En(t),x=_c(a,y),M=wc(a,y)+1;return pr(a,x,M).join("")}function dw(e,t,o){if(e=et(e),e&&(o||t===r))return e.slice(0,xc(e)+1);if(!e||!(t=Xt(t)))return e;var a=En(e),y=wc(a,En(t))+1;return pr(a,0,y).join("")}function pw(e,t,o){if(e=et(e),e&&(o||t===r))return e.replace(at,"");if(!e||!(t=Xt(t)))return e;var a=En(e),y=_c(a,En(t));return pr(a,y).join("")}function gw(e,t){var o=he,a=re;if(ft(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?Xt(t.omission):a}e=et(e);var x=e.length;if(Wr(e)){var M=En(e);x=M.length}if(o>=x)return e;var Y=o-Ur(a);if(Y<1)return a;var q=M?pr(M,0,Y).join(""):e.slice(0,Y);if(y===r)return q+a;if(M&&(Y+=q.length-Y),Ua(y)){if(e.slice(Y).search(y)){var pe,ge=q;for(y.global||(y=oa(y.source,et(hn.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;q=q.slice(0,xe===r?Y:xe)}}else if(e.indexOf(Xt(y),Y)!=Y){var Ee=q.lastIndexOf(y);Ee>-1&&(q=q.slice(0,Ee))}return q+a}function vw(e){return e=et(e),e&&yt.test(e)?e.replace(jt,q0):e}var mw=Zr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ha=ff("toUpperCase");function uh(e,t,o){return e=et(e),t=o?r:t,t===r?Y0(e)?V0(e):M0(e):e.match(t)||[]}var ch=qe(function(e,t){try{return Qt(e,r,t)}catch(o){return Wa(o)?o:new Ye(o)}}),yw=Vn(function(e,t){return pn(t,function(o){o=jn(o),Hn(e,o,Ya(e[o],e))}),e});function _w(e){var t=e==null?0:e.length,o=Ne();return e=t?ut(e,function(a){if(typeof a[1]!="function")throw new gn(g);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(Qt(x[0],this,a))return Qt(x[1],this,a)}})}function ww(e){return qv(mn(e,N))}function Ga(e){return function(){return e}}function bw(e,t){return e==null||e!==e?t:e}var xw=df(),Cw=df(!0);function Vt(e){return e}function Va(e){return Wc(typeof e=="function"?e:mn(e,N))}function Sw(e){return zc(mn(e,N))}function Aw(e,t){return qc(e,mn(t,N))}var Dw=qe(function(e,t){return function(o){return Ei(o,e,t)}}),Ow=qe(function(e,t){return function(o){return Ei(e,o,t)}});function Ka(e,t,o){var a=xt(t),y=Io(t,a);o==null&&!(ft(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Io(t,xt(t)));var x=!(ft(o)&&"chain"in o)||!!o.chain,M=Zn(e);return pn(y,function(Y){var q=t[Y];e[Y]=q,M&&(e.prototype[Y]=function(){var pe=this.__chain__;if(x||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=qt(this.__actions__);return xe.push({func:q,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return q.apply(e,lr([this.value()],arguments))})}),e}function Ew(){return Dt._===this&&(Dt._=ev),this}function Za(){}function Tw(e){return e=We(e),qe(function(t){return Hc(t,e)})}var Pw=Oa(ut),Mw=Oa(dc),Rw=Oa(Js);function fh(e){return La(e)?Xs(jn(e)):lm(e)}function kw(e){return function(t){return e==null?r:Ar(e,t)}}var Lw=gf(),Nw=gf(!0);function Qa(){return[]}function Ja(){return!1}function Iw(){return{}}function $w(){return""}function Bw(){return!0}function jw(e,t){if(e=We(e),e<1||e>f)return[];var o=m,a=Tt(e,m);t=Ne(t),e-=m;for(var y=na(a,t);++o<e;)t(o);return y}function Yw(e){return Fe(e)?ut(e,jn):en(e)?[e]:qt(Mf(et(e)))}function Fw(e){var t=++J0;return et(e)+t}var Ww=Wo(function(e,t){return e+t},0),Uw=Ea("ceil"),zw=Wo(function(e,t){return e/t},1),qw=Ea("floor");function Hw(e){return e&&e.length?No(e,Vt,da):r}function Gw(e,t){return e&&e.length?No(e,Ne(t,2),da):r}function Vw(e){return vc(e,Vt)}function Kw(e,t){return vc(e,Ne(t,2))}function Zw(e){return e&&e.length?No(e,Vt,ma):r}function Qw(e,t){return e&&e.length?No(e,Ne(t,2),ma):r}var Jw=Wo(function(e,t){return e*t},1),Xw=Ea("round"),eb=Wo(function(e,t){return e-t},0);function tb(e){return e&&e.length?ta(e,Vt):0}function nb(e,t){return e&&e.length?ta(e,Ne(t,2)):0}return b.after=S2,b.ary=Wf,b.assign=f_,b.assignIn=nh,b.assignInWith=ts,b.assignWith=h_,b.at=d_,b.before=Uf,b.bind=Ya,b.bindAll=yw,b.bindKey=zf,b.castArray=I2,b.chain=jf,b.chunk=qm,b.compact=Hm,b.concat=Gm,b.cond=_w,b.conforms=ww,b.constant=Ga,b.countBy=t2,b.create=p_,b.curry=qf,b.curryRight=Hf,b.debounce=Gf,b.defaults=g_,b.defaultsDeep=v_,b.defer=A2,b.delay=D2,b.difference=Vm,b.differenceBy=Km,b.differenceWith=Zm,b.drop=Qm,b.dropRight=Jm,b.dropRightWhile=Xm,b.dropWhile=ey,b.fill=ty,b.filter=r2,b.flatMap=s2,b.flatMapDeep=a2,b.flatMapDepth=l2,b.flatten=Nf,b.flattenDeep=ny,b.flattenDepth=ry,b.flip=O2,b.flow=xw,b.flowRight=Cw,b.fromPairs=iy,b.functions=C_,b.functionsIn=S_,b.groupBy=u2,b.initial=sy,b.intersection=ay,b.intersectionBy=ly,b.intersectionWith=uy,b.invert=D_,b.invertBy=O_,b.invokeMap=f2,b.iteratee=Va,b.keyBy=h2,b.keys=xt,b.keysIn=Gt,b.map=Ko,b.mapKeys=T_,b.mapValues=P_,b.matches=Sw,b.matchesProperty=Aw,b.memoize=Qo,b.merge=M_,b.mergeWith=rh,b.method=Dw,b.methodOf=Ow,b.mixin=Ka,b.negate=Jo,b.nthArg=Tw,b.omit=R_,b.omitBy=k_,b.once=E2,b.orderBy=d2,b.over=Pw,b.overArgs=T2,b.overEvery=Mw,b.overSome=Rw,b.partial=Fa,b.partialRight=Vf,b.partition=p2,b.pick=L_,b.pickBy=ih,b.property=fh,b.propertyOf=kw,b.pull=dy,b.pullAll=$f,b.pullAllBy=py,b.pullAllWith=gy,b.pullAt=vy,b.range=Lw,b.rangeRight=Nw,b.rearg=P2,b.reject=m2,b.remove=my,b.rest=M2,b.reverse=Ba,b.sampleSize=_2,b.set=I_,b.setWith=$_,b.shuffle=w2,b.slice=yy,b.sortBy=C2,b.sortedUniq=Ay,b.sortedUniqBy=Dy,b.split=sw,b.spread=R2,b.tail=Oy,b.take=Ey,b.takeRight=Ty,b.takeRightWhile=Py,b.takeWhile=My,b.tap=Hy,b.throttle=k2,b.thru=Vo,b.toArray=Xf,b.toPairs=oh,b.toPairsIn=sh,b.toPath=Yw,b.toPlainObject=th,b.transform=B_,b.unary=L2,b.union=Ry,b.unionBy=ky,b.unionWith=Ly,b.uniq=Ny,b.uniqBy=Iy,b.uniqWith=$y,b.unset=j_,b.unzip=ja,b.unzipWith=Bf,b.update=Y_,b.updateWith=F_,b.values=Xr,b.valuesIn=W_,b.without=By,b.words=uh,b.wrap=N2,b.xor=jy,b.xorBy=Yy,b.xorWith=Fy,b.zip=Wy,b.zipObject=Uy,b.zipObjectDeep=zy,b.zipWith=qy,b.entries=oh,b.entriesIn=sh,b.extend=nh,b.extendWith=ts,Ka(b,b),b.add=Ww,b.attempt=ch,b.camelCase=H_,b.capitalize=ah,b.ceil=Uw,b.clamp=U_,b.clone=$2,b.cloneDeep=j2,b.cloneDeepWith=Y2,b.cloneWith=B2,b.conformsTo=F2,b.deburr=lh,b.defaultTo=bw,b.divide=zw,b.endsWith=G_,b.eq=Pn,b.escape=V_,b.escapeRegExp=K_,b.every=n2,b.find=i2,b.findIndex=kf,b.findKey=m_,b.findLast=o2,b.findLastIndex=Lf,b.findLastKey=y_,b.floor=qw,b.forEach=Yf,b.forEachRight=Ff,b.forIn=__,b.forInRight=w_,b.forOwn=b_,b.forOwnRight=x_,b.get=za,b.gt=W2,b.gte=U2,b.has=A_,b.hasIn=qa,b.head=If,b.identity=Vt,b.includes=c2,b.indexOf=oy,b.inRange=z_,b.invoke=E_,b.isArguments=Er,b.isArray=Fe,b.isArrayBuffer=z2,b.isArrayLike=Ht,b.isArrayLikeObject=gt,b.isBoolean=q2,b.isBuffer=gr,b.isDate=H2,b.isElement=G2,b.isEmpty=V2,b.isEqual=K2,b.isEqualWith=Z2,b.isError=Wa,b.isFinite=Q2,b.isFunction=Zn,b.isInteger=Kf,b.isLength=Xo,b.isMap=Zf,b.isMatch=J2,b.isMatchWith=X2,b.isNaN=e_,b.isNative=t_,b.isNil=r_,b.isNull=n_,b.isNumber=Qf,b.isObject=ft,b.isObjectLike=dt,b.isPlainObject=Li,b.isRegExp=Ua,b.isSafeInteger=i_,b.isSet=Jf,b.isString=es,b.isSymbol=en,b.isTypedArray=Jr,b.isUndefined=o_,b.isWeakMap=s_,b.isWeakSet=a_,b.join=cy,b.kebabCase=Z_,b.last=_n,b.lastIndexOf=fy,b.lowerCase=Q_,b.lowerFirst=J_,b.lt=l_,b.lte=u_,b.max=Hw,b.maxBy=Gw,b.mean=Vw,b.meanBy=Kw,b.min=Zw,b.minBy=Qw,b.stubArray=Qa,b.stubFalse=Ja,b.stubObject=Iw,b.stubString=$w,b.stubTrue=Bw,b.multiply=Jw,b.nth=hy,b.noConflict=Ew,b.noop=Za,b.now=Zo,b.pad=X_,b.padEnd=ew,b.padStart=tw,b.parseInt=nw,b.random=q_,b.reduce=g2,b.reduceRight=v2,b.repeat=rw,b.replace=iw,b.result=N_,b.round=Xw,b.runInContext=z,b.sample=y2,b.size=b2,b.snakeCase=ow,b.some=x2,b.sortedIndex=_y,b.sortedIndexBy=wy,b.sortedIndexOf=by,b.sortedLastIndex=xy,b.sortedLastIndexBy=Cy,b.sortedLastIndexOf=Sy,b.startCase=aw,b.startsWith=lw,b.subtract=eb,b.sum=tb,b.sumBy=nb,b.template=uw,b.times=jw,b.toFinite=Qn,b.toInteger=We,b.toLength=eh,b.toLower=cw,b.toNumber=wn,b.toSafeInteger=c_,b.toString=et,b.toUpper=fw,b.trim=hw,b.trimEnd=dw,b.trimStart=pw,b.truncate=gw,b.unescape=vw,b.uniqueId=Fw,b.upperCase=mw,b.upperFirst=Ha,b.each=Yf,b.eachRight=Ff,b.first=If,Ka(b,function(){var e={};return $n(b,function(t,o){tt.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),pn(["drop","take"],function(e,t){Ge.prototype[e]=function(o){o=o===r?1:bt(We(o),0);var a=this.__filtered__&&!t?new Ge(this):this.clone();return a.__filtered__?a.__takeCount__=Tt(o,a.__takeCount__):a.__views__.push({size:Tt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),pn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==I||o==D;Ge.prototype[e]=function(y){var x=this.clone();return x.__iteratees__.push({iteratee:Ne(y,3),type:o}),x.__filtered__=x.__filtered__||a,x}}),pn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),pn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ge.prototype[e]=function(){return this.__filtered__?new Ge(this):this[o](1)}}),Ge.prototype.compact=function(){return this.filter(Vt)},Ge.prototype.find=function(e){return this.filter(e).head()},Ge.prototype.findLast=function(e){return this.reverse().find(e)},Ge.prototype.invokeMap=qe(function(e,t){return typeof e=="function"?new Ge(this):this.map(function(o){return Ei(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Jo(Ne(e)))},Ge.prototype.slice=function(e,t){e=We(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ge(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=We(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ge.prototype.toArray=function(){return this.take(m)},$n(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=b[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(b.prototype[t]=function(){var M=this.__wrapped__,Y=a?[1]:arguments,q=M instanceof Ge,pe=Y[0],ge=q||Fe(M),xe=function(He){var Ke=y.apply(b,lr([He],Y));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof pe=="function"&&pe.length!=1&&(q=ge=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,$e=x&&!Ee,Ue=q&&!Le;if(!x&&ge){M=Ue?M:new Ge(this);var Be=e.apply(M,Y);return Be.__actions__.push({func:Vo,args:[xe],thisArg:r}),new vn(Be,Ee)}return $e&&Ue?e.apply(this,Y):(Be=this.thru(xe),$e?a?Be.value()[0]:Be.value():Be)})}),pn(["pop","push","shift","sort","splice","unshift"],function(e){var t=wo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);b.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var x=this.value();return t.apply(Fe(x)?x:[],y)}return this[o](function(M){return t.apply(Fe(M)?M:[],y)})}}),$n(Ge.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";tt.call(Gr,a)||(Gr[a]=[]),Gr[a].push({name:t,func:o})}}),Gr[Fo(r,se).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=vv,Ge.prototype.reverse=mv,Ge.prototype.value=yv,b.prototype.at=Gy,b.prototype.chain=Vy,b.prototype.commit=Ky,b.prototype.next=Zy,b.prototype.plant=Jy,b.prototype.reverse=Xy,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=e2,b.prototype.first=b.prototype.head,bi&&(b.prototype[bi]=Qy),b},zr=K0();wr?((wr.exports=zr)._=zr,Vs._=zr):Dt._=zr}).call(I1)}(gi,gi.exports)),gi.exports}var Ku=$1();function B1(i){const n=bn.c(44),{fields:r,onClose:s,queryKey:u,apiPath:p,id:g,steps:d}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1),{data:R,isLoading:L}=hu(p,u,g),{mutateAsync:$,isError:B,error:H,isPending:se}=Es(p,u);let le;n[0]!==r?(le=new Set(r.filter(q1).map(z1)),n[0]=r,n[1]=le):le=n[1];let ae;n[2]!==le?(ae=[...le],n[2]=le,n[3]=ae):ae=n[3];const ce=ae;let Q;n[4]!==r?(Q=r.reduce(U1,{}),n[4]=r,n[5]=Q):Q=n[5];let ne;n[6]!==r?(ne=r.filter(W1).reduce(Y1,{}),n[6]=r,n[7]=ne):ne=n[7];let J;n[8]!==Q||n[9]!==ne?(J={mode:"uncontrolled",initialValues:Q,validate:ne},n[8]=Q,n[9]=ne,n[10]=J):J=n[10];const V=Xa.useForm(J);let de;n[11]!==R||n[12]!==r||n[13]!==V?(de=()=>{if(R){const f=r.reduce((w,h)=>{const m=h.id;return w[m]=Array.isArray(R[m])?R[m]:h.type==="boolean"?R[m]??!1:h.type==="date"?R[m]?new Date(R[m]):"":R[m]??"",w},{});V.initialize(f),V.setValues(f)}},n[11]=R,n[12]=r,n[13]=V,n[14]=de):de=n[14];let he;n[15]!==R?(he=[R],n[15]=R,n[16]=he):he=n[16],ye.useEffect(de,he);let re;n[17]!==V?(re=function(w){return w.conditional?w.conditional(V.getValues()):!0},n[17]=V,n[18]=re):re=n[18];const De=re;let Oe;n[19]!==V||n[20]!==g||n[21]!==De?(Oe=function(w){return De(w)?O.jsxs(ye.Fragment,{children:[(w.type===void 0||w.type=="text")&&O.jsx(F.TextInput,{label:w.column.title,placeholder:w.placeholder??"",...V.getInputProps(w.id),type:w.id.includes("email")?"email":void 0},V.key(w.id)),w.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:w.column.title,placeholder:w.placeholder??"",...V.getInputProps(w.id)},V.key(w.id)),w.type==="date"&&O.jsx(lo,{label:w.column.title,placeholder:w.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...V.getInputProps(w.id)},V.key(w.id)),w.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:w.column.title,...V.getInputProps(w.id,{type:"checkbox"})},V.key(w.id)),w.type==="textarea"&&O.jsx(F.Textarea,{label:w.column.title,placeholder:w.placeholder??"",...V.getInputProps(w.id),minRows:3,autosize:!0},V.key(w.id)),w.type==="custom"&&w.render&&w.render({...V.getValues(),id:g},V.setValues,N)]},w.id):null},n[19]=V,n[20]=g,n[21]=De,n[22]=Oe):Oe=n[22];const I=Oe;let P;n[23]!==B||n[24]!==H?.message||n[25]!==H?.name?(P=B&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[23]=B,n[24]=H?.message,n[25]=H?.name,n[26]=P):P=n[26];let D;n[27]!==S||n[28]!==r||n[29]!==V||n[30]!==E||n[31]!==g||n[32]!==L||n[33]!==se||n[34]!==B||n[35]!==s||n[36]!==I||n[37]!==d||n[38]!==ce||n[39]!==$?(D=L?O.jsxs(F.Stack,{gap:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(r.length).fill(0).map(j1),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Skeleton,{width:100,height:36}),O.jsx(F.Skeleton,{width:100,height:36})]})]}):O.jsxs("form",{onSubmit:V.onSubmit(async f=>{await $({...f,id:g}),ce.length&&S<ce.length-1?B||A(S+1):B||(V.setInitialValues(f),V.reset(),s())}),children:[ce.length?O.jsx(F.Stepper,{active:S,size:"sm",children:ce.map(f=>O.jsx(F.Stepper.Step,{...d&&d[f-1]?{label:d[f-1].label}:{},children:r.filter(w=>w.step===f).map(w=>I(w))},f))}):r.map(f=>I(f)),!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>ce.length?S===0?s():A(S-1):s(),variant:"outline",children:ce.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:se,children:ce.length?S===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[27]=S,n[28]=r,n[29]=V,n[30]=E,n[31]=g,n[32]=L,n[33]=se,n[34]=B,n[35]=s,n[36]=I,n[37]=d,n[38]=ce,n[39]=$,n[40]=D):D=n[40];let v;return n[41]!==P||n[42]!==D?(v=O.jsxs(O.Fragment,{children:[P,D]}),n[41]=P,n[42]=D,n[43]=v):v=n[43],v}function j1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-field-${n}`)}function Y1(i,n){return i[n.id]=F1,i}function F1(i){return i?null:"Pflichtfeld"}function W1(i){return i.required}function U1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function z1(i){return i.step}function q1(i){return typeof i.step=="number"}function H1({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:u,isError:p,error:g,isPending:d}=gu(n,i),[S,A]=ye.useState(s),[E,N]=ye.useState(!1),R=E||d;return ye.useEffect(()=>{S.length||r()},[r,S]),S.length?O.jsxs(O.Fragment,{children:[p&&g.message&&O.jsx(F.Alert,{variant:"outline",color:"red",title:g.name,children:g.message}),O.jsx(F.Text,{children:S.length===1?`Soll ${S.length} Eintrag wirklich gelöscht werden?`:`Sollen ${S.length} Einträge wirklich gelöscht werden?`}),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:r,variant:"outline",disabled:R,children:"Abbrechen"}),O.jsx(F.Button,{color:"red",loading:R,onClick:async()=>{N(!0);try{await Promise.all(S.map(L=>u(L.id))),A([])}finally{N(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function Zu(i,n){const r=bn.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const A=localStorage.getItem(`use_persistent_storage_${n}`);return A?JSON.parse(A):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[u,p]=ye.useState(s);let g;r[3]!==n?(g=A=>{p(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=g):g=r[4];const d=g;let S;return r[5]!==d||r[6]!==u?(S=[u,d],r[5]=d,r[6]=u,r[7]=S):S=r[7],S}const Qu=[10,15,20,50,100,500];function G1(i){const n=bn.c(147),{title:r,queryKey:s,connectedQueryKeys:u,apiPath:p,buttons:g,fields:d,selection:S,pagination:A,filters:E,actions:N,steps:R,defaultSort:L,createButtonText:$,queryParams:B,tabs:H,defaultTab:se,activeTab:le,onActiveTabChange:ae}=i,[ce,Q]=ye.useState(se||(H&&H.length>0?H[0].value:null)),ne=le!==void 0?le:ce;let J;n[0]!==le||n[1]!==ae?(J=Ze=>{le===void 0&&Q(Ze),ae&&ae(Ze)},n[0]=le,n[1]=ae,n[2]=J):J=n[2];const V=J;let de,he;if(n[3]!==ne||n[4]!==B||n[5]!==H){const Ze=H?.find(ct=>ct.value===ne)?.queryParams||{};de={...B,...Ze},he=de?"?"+Object.entries(de).filter(i0).map(r0).join("&"):"",n[3]=ne,n[4]=B,n[5]=H,n[6]=de,n[7]=he}else de=n[6],he=n[7];const re=he;let De;n[8]!==ne||n[9]!==s?(De=ne?[...s,ne]:s,n[8]=ne,n[9]=s,n[10]=De):De=n[10];const Oe=De,{data:I,isLoading:P,isError:D,isRefetching:v,refetch:f}=du(p+re,Oe);let w;n[11]===Symbol.for("react.memo_cache_sentinel")?(w=[],n[11]=w):w=n[11];const[h,m]=ye.useState(w),{queryClient:C}=tr();let T;n[12]!==I||n[13]!==u||n[14]!==E||n[15]!==C?(T=()=>{if(!(!I||!Array.isArray(I))){if(u?.forEach(Ze=>C.invalidateQueries({queryKey:Ze})),!E||E.length===0){m(I);return}m(I.filter(Ze=>E.every(ct=>{if(ct.value===void 0)return!0;const zt=ct.id;if(ct.type==="query"){const Yn=Ze[zt];return typeof Yn=="string"&&Yn.includes(ct.value)}else if(ct.type==="date"){const Yn=ct.value,[Rr,Fn]=Yn;if(Rr&&Fn){const kr=Ze[zt];if(typeof kr=="string"){const Wn=new Date(kr);return Wn>=Rr&&Wn<=Fn}}return!0}else if(ct.type==="boolean")return Ze[zt]===ct.value;return!0})))}},n[12]=I,n[13]=u,n[14]=E,n[15]=C,n[16]=T):T=n[16];let G;n[17]!==I||n[18]!==de||n[19]!==E?(G=[I,E,de],n[17]=I,n[18]=de,n[19]=E,n[20]=G):G=n[20],ye.useEffect(T,G);const oe=L?.field??d[0].id,ue=L?.direction??"desc";let we;n[21]!==oe||n[22]!==ue?(we={columnAccessor:oe,direction:ue},n[21]=oe,n[22]=ue,n[23]=we):we=n[23];const[X,be]=ye.useState(we);let _e;n[24]!==h||n[25]!==L?.direction||n[26]!==L?.field||n[27]!==d[0]?(_e=()=>{const Ze=Ku.sortBy(h,L?.field??d[0].id);return L?.direction==="asc"?Ze:Ze.reverse()},n[24]=h,n[25]=L?.direction,n[26]=L?.field,n[27]=d[0],n[28]=_e):_e=n[28];const[ve,j]=ye.useState(_e);let Z;n[29]!==h||n[30]!==X.columnAccessor||n[31]!==X.direction?(Z=()=>{const Ze=Ku.sortBy(h,X.columnAccessor);j(X.direction==="desc"?Ze.reverse():Ze)},n[29]=h,n[30]=X.columnAccessor,n[31]=X.direction,n[32]=Z):Z=n[32];let W;n[33]!==h||n[34]!==X?(W=[X,h],n[33]=h,n[34]=X,n[35]=W):W=n[35],ye.useEffect(Z,W);const[K,ee]=Zu(Qu[1],"mantine-table-page-size"),[Se,l]=ye.useState(1);let c;n[36]!==K||n[37]!==A||n[38]!==ve?(c=A?ve.slice(0,K):ve,n[36]=K,n[37]=A,n[38]=ve,n[39]=c):c=n[39];const[_,k]=ye.useState(c);let U;n[40]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{l(1)},n[40]=U):U=n[40];let te;n[41]!==K?(te=[K],n[41]=K,n[42]=te):te=n[42],ye.useEffect(U,te);let Ae,Ce;n[43]!==Se||n[44]!==K||n[45]!==A||n[46]!==ve?(Ae=()=>{if(A){const Ze=(Se-1)*K,ct=Ze+K;k(ve.slice(Ze,ct))}else k(ve)},Ce=[Se,ve,A,K],n[43]=Se,n[44]=K,n[45]=A,n[46]=ve,n[47]=Ae,n[48]=Ce):(Ae=n[47],Ce=n[48]),ye.useEffect(Ae,Ce);let Pe;n[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=[],n[49]=Pe):Pe=n[49];const[me,Re]=ye.useState(Pe);let Ie;n[50]!==me||n[51]!==S||n[52]!==ve?(Ie=()=>{S&&Re(ve.filter(Ze=>me.some(ct=>ct.id===Ze.id)))},n[50]=me,n[51]=S,n[52]=ve,n[53]=Ie):Ie=n[53];let ke;n[54]!==ve?(ke=[ve],n[54]=ve,n[55]=ke):ke=n[55],ye.useEffect(Ie,ke);let Xe;n[56]===Symbol.for("react.memo_cache_sentinel")?(Xe=()=>{Re([])},n[56]=Xe):Xe=n[56];let Qe;n[57]!==ne?(Qe=[ne],n[57]=ne,n[58]=Qe):Qe=n[58],ye.useEffect(Xe,Qe);const[nt,Et]=ye.useState(!1),[pt,rt]=ye.useState(!1),[An,St]=ye.useState(!1),Dn=r?"space-between":"end";let At;n[59]!==r?(At=r&&(typeof r=="string"?O.jsx(F.Title,{order:4,children:r}):r),n[59]=r,n[60]=At):At=n[60];let jt;n[61]!==f?(jt=()=>f(),n[61]=f,n[62]=jt):jt=n[62];let On;n[63]===Symbol.for("react.memo_cache_sentinel")?(On=O.jsx(ei.IconRefresh,{}),n[63]=On):On=n[63];let yt;n[64]!==jt?(yt=O.jsx(F.ActionIcon,{variant:"subtle",onClick:jt,"aria-label":"Neuladen",children:On}),n[64]=jt,n[65]=yt):yt=n[65];let an;n[66]!==N||n[67]!==d||n[68]!==me||n[69]!==S?(an=(d.some(n0)||S)&&O.jsxs(F.Menu,{shadow:"md",children:[O.jsx(F.Menu.Target,{children:O.jsx(F.Button,{variant:"outline",rightSection:O.jsx(ei.IconCaretDownFilled,{size:14}),disabled:!me.length,children:"Aktionen"})}),O.jsxs(F.Menu.Dropdown,{children:[d.find(t0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ei.IconPencil,{size:14}),onClick:()=>rt(!0),disabled:me.length!==1,children:"Bearbeiten"}),(N??[]).map((Ze,ct)=>ye.createElement(F.Menu.Item,{...Ze.icon&&{leftSection:Ze.icon},key:`custom_action_${ct}`,onClick:()=>Ze.onClick(me)},Ze.label)),d.find(e0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ei.IconTrash,{size:14}),onClick:()=>St(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=d,n[68]=me,n[69]=S,n[70]=an):an=n[70];let ln;n[71]!==$||n[72]!==d||n[73]!==P?(ln=d.find(X1)&&O.jsx(F.Button,{onClick:()=>Et(!0),disabled:P,children:$??"Erstellen"}),n[71]=$,n[72]=d,n[73]=P,n[74]=ln):ln=n[74];let Yt;n[75]!==g||n[76]!==yt||n[77]!==an||n[78]!==ln?(Yt=O.jsxs(F.Group,{align:"center",gap:"xs",children:[yt,an,ln,g]}),n[75]=g,n[76]=yt,n[77]=an,n[78]=ln,n[79]=Yt):Yt=n[79];let Lt;n[80]!==Dn||n[81]!==At||n[82]!==Yt?(Lt=O.jsxs(F.Group,{gap:"xs",justify:Dn,align:"center",children:[At,Yt]}),n[80]=Dn,n[81]=At,n[82]=Yt,n[83]=Lt):Lt=n[83];let Ft;n[84]!==ne||n[85]!==V||n[86]!==H?(Ft=H&&H.length>0&&O.jsx(F.Tabs,{value:ne,onChange:V,mt:"md",children:O.jsx(F.Tabs.List,{children:H.map(J1)})}),n[84]=ne,n[85]=V,n[86]=H,n[87]=Ft):Ft=n[87];let Wt;n[88]!==D?(Wt=D&&O.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(ei.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=D,n[89]=Wt):Wt=n[89];let Kt;n[90]!==P||n[91]!==v?(Kt=(P||v)&&O.jsxs(F.Stack,{my:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[90]=P,n[91]=v,n[92]=Kt):Kt=n[92];let Ut;n[93]!==d||n[94]!==D||n[95]!==P||n[96]!==v||n[97]!==Se||n[98]!==K||n[99]!==A||n[100]!==_||n[101]!==me||n[102]!==S||n[103]!==ee||n[104]!==X||n[105]!==ve?(Ut=!P&&!v&&O.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:D,records:_,sortStatus:X,onSortStatusChange:be,...S&&{selectedRecords:me,onSelectedRecordsChange:Re},...A&&_.length&&{totalRecords:ve.length,recordsPerPage:K,onPageChange:l,page:Se,recordsPerPageOptions:Qu,onRecordsPerPageChange:ee,recordsPerPageLabel:"Einträge pro Seite"},columns:d.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[93]=d,n[94]=D,n[95]=P,n[96]=v,n[97]=Se,n[98]=K,n[99]=A,n[100]=_,n[101]=me,n[102]=S,n[103]=ee,n[104]=X,n[105]=ve,n[106]=Ut):Ut=n[106];let ze;n[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{rt(!1),Re([])},n[107]=ze):ze=n[107];const at=r??"Bearbeiten";let Nt;n[108]!==p||n[109]!==d||n[110]!==s||n[111]!==me[0]||n[112]!==me.length||n[113]!==R?(Nt=me.length>0&&O.jsx(B1,{fields:d.filter(K1),queryKey:s,apiPath:p,id:me[0].id,onClose:()=>{rt(!1),Re([])},steps:R}),n[108]=p,n[109]=d,n[110]=s,n[111]=me[0],n[112]=me.length,n[113]=R,n[114]=Nt):Nt=n[114];let Zt;n[115]!==at||n[116]!==Nt||n[117]!==pt?(Zt=O.jsx(F.Modal,{opened:pt,onClose:ze,title:at,children:Nt}),n[115]=at,n[116]=Nt,n[117]=pt,n[118]=Zt):Zt=n[118];let Rn;n[119]!==p||n[120]!==An||n[121]!==s||n[122]!==me||n[123]!==r?(Rn=me.length>0&&O.jsx(F.Modal,{opened:An,onClose:()=>{St(!1),Re([])},title:r??"Löschen",children:O.jsx(H1,{onClose:()=>{St(!1),Re([])},queryKey:s,apiPath:p,selectedRecords:me})}),n[119]=p,n[120]=An,n[121]=s,n[122]=me,n[123]=r,n[124]=Rn):Rn=n[124];let un;n[125]===Symbol.for("react.memo_cache_sentinel")?(un=()=>{Et(!1)},n[125]=un):un=n[125];const yr=r??"Anlegen";let cn;n[126]===Symbol.for("react.memo_cache_sentinel")?(cn=()=>{Et(!1)},n[126]=cn):cn=n[126];let kn;n[127]!==d?(kn=d.filter(V1),n[127]=d,n[128]=kn):kn=n[128];let fn;n[129]!==p||n[130]!==s||n[131]!==R||n[132]!==kn?(fn=O.jsx(Yg,{queryKey:s,apiPath:p,onClose:cn,fields:kn,steps:R}),n[129]=p,n[130]=s,n[131]=R,n[132]=kn,n[133]=fn):fn=n[133];let hn;n[134]!==nt||n[135]!==yr||n[136]!==fn?(hn=O.jsx(F.Modal,{opened:nt,onClose:un,title:yr,children:fn}),n[134]=nt,n[135]=yr,n[136]=fn,n[137]=hn):hn=n[137];let _t;return n[138]!==Lt||n[139]!==Ft||n[140]!==Wt||n[141]!==Kt||n[142]!==Ut||n[143]!==Zt||n[144]!==Rn||n[145]!==hn?(_t=O.jsxs(O.Fragment,{children:[Lt,Ft,Wt,Kt,Ut,Zt,Rn,hn]}),n[138]=Lt,n[139]=Ft,n[140]=Wt,n[141]=Kt,n[142]=Ut,n[143]=Zt,n[144]=Rn,n[145]=hn,n[146]=_t):_t=n[146],_t}function V1(i){return i.create}function K1(i){return i.update}function Z1(i){return i.column}function Q1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-${n}`)}function J1(i){return O.jsx(F.Tabs.Tab,{value:i.value,leftSection:i.icon,children:i.label},i.value)}function X1(i){return i.create}function e0(i){return i.delete}function t0(i){return i.update}function n0(i){return i.update}function r0(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function i0(i){const[,n]=i;return n!=null}function o0(i){const n=bn.c(5),{queryClient:r}=tr();let s;n[0]!==i?(s=O.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let u;return n[2]!==r||n[3]!==s?(u=O.jsx(yl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=u):u=n[4],u}ot.DataTable=o0,ot.DataTableProvider=jp,ot.api=Fp,ot.createOne=cu,ot.deleteOne=uu,ot.getAll=au,ot.getApiHeaders=mr,ot.getOne=lu,ot.updateOne=fu,ot.useAddOne=pu,ot.useDataTable=tr,ot.useDeleteOne=gu,ot.useGetAll=du,ot.useGetOne=hu,ot.usePersistentState=Zu,ot.useUpdateOne=Es,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
|
|
144
144
|
//# sourceMappingURL=index.umd.js.map
|