@espresso-lab/mantine-data-table 1.5.8 → 1.5.9
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 +1350 -1355
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Ue,me){typeof exports=="object"&&typeof module<"u"?me(exports,require("react"),require("@mantine/core"),require("@mantine/form"),require("@tabler/icons-react"),require("@mantine/hooks")):typeof define=="function"&&define.amd?define(["exports","react","@mantine/core","@mantine/form","@tabler/icons-react","@mantine/hooks"],me):(Ue=typeof globalThis<"u"?globalThis:Ue||self,me(Ue.MantineDataTable={},Ue.React,Ue.MantineCore,Ue.MantineForm,Ue.TablerIconsReact,Ue.MantineHooks))})(this,function(Ue,me,$,
|
|
1
|
+
(function(Ue,me){typeof exports=="object"&&typeof module<"u"?me(exports,require("react"),require("@mantine/core"),require("@mantine/form"),require("@tabler/icons-react"),require("@mantine/hooks")):typeof define=="function"&&define.amd?define(["exports","react","@mantine/core","@mantine/form","@tabler/icons-react","@mantine/hooks"],me):(Ue=typeof globalThis<"u"?globalThis:Ue||self,me(Ue.MantineDataTable={},Ue.React,Ue.MantineCore,Ue.MantineForm,Ue.TablerIconsReact,Ue.MantineHooks))})(this,function(Ue,me,$,Ti,Mi,Dt){"use strict";var ud=Ue=>{throw TypeError(Ue)};var Zu=(Ue,me,$)=>me.has(Ue)||ud("Cannot "+$);var ye=(Ue,me,$)=>(Zu(Ue,me,"read from private field"),$?$.call(Ue):me.get(Ue)),at=(Ue,me,$)=>me.has(Ue)?ud("Cannot add the same private member more than once"):me instanceof WeakSet?me.add(Ue):me.set(Ue,$),Ke=(Ue,me,$,Ti)=>(Zu(Ue,me,"write to private field"),Ti?Ti.call(Ue,$):me.set(Ue,$),$),pt=(Ue,me,$)=>(Zu(Ue,me,"access private method"),$);var Lr,ar,ni,Kc,ri,ur,ii,Qc,Wt,et,qi,jt,kr,oi,lr,cr,Hi,si,ai,Ir,Pr,fr,ui,rt,wo,Ku,Qu,Ju,Xu,el,tl,nl,ld,Jc,hr,dr,zt,$n,Bn,Gs,rl,Xc;function cd(i){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return n.default=i,Object.freeze(n)}const Mt=cd(me);var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function il(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var xo={exports:{}},Vs={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-compiler-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ol;function fd(){if(ol)return
|
|
9
|
+
*/var ol;function fd(){if(ol)return Vs;ol=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Vs.c=function(n){return i.H.useMemoCache(n)},Vs}var Zs={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-compiler-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var sl;function hd(){return sl||(sl=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
17
|
+
*/var sl;function hd(){return sl||(sl=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Zs.c=function(n){var r=i.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
18
18
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
19
|
2. You might be breaking the Rules of Hooks
|
|
20
20
|
3. You might have more than one copy of React in the same app
|
|
21
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Qs}var al;function dd(){return al||(al=1,process.env.NODE_ENV==="production"?Co.exports=fd():Co.exports=hd()),Co.exports}var wn=dd(),Ao=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Li=typeof window>"u"||"Deno"in globalThis;function Do(){}function ul(i){return typeof i=="number"&&i>=0&&i!==1/0}function pd(i,n){return Math.max(i+(n||0)-Date.now(),0)}function ki(i,n){return typeof i=="function"?i(n):i}function Mn(i,n){return typeof i=="function"?i(n):i}function ll(i){return JSON.stringify(i,(n,r)=>Xs(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Js(i,n){if(i===n)return i;const r=cl(i)&&cl(n);if(r||Xs(i)&&Xs(n)){const s=r?i:Object.keys(i),l=s.length,p=r?n:Object.keys(n),v=p.length,c=r?[]:{};let x=0;for(let A=0;A<v;A++){const T=r?A:p[A];(!r&&s.includes(T)||r)&&i[T]===void 0&&n[T]===void 0?(c[T]=void 0,x++):(c[T]=Js(i[T],n[T]),c[T]===i[T]&&i[T]!==void 0&&x++)}return l===v&&x===l?i:c}return n}function Oo(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function cl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function Xs(i){if(!fl(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!fl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function fl(i){return Object.prototype.toString.call(i)==="[object Object]"}function hl(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Js(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return Js(i,n)}return n}function dl(i,n){return typeof i=="function"?i(...n):!!i}var gd=(Kc=class extends Ao{constructor(){super();st(this,Pr);st(this,cr);st(this,ii);Ke(this,ii,n=>{if(!Li&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ye(this,cr)||this.setEventListener(ye(this,ii))}onUnsubscribe(){var n;this.hasListeners()||((n=ye(this,cr))==null||n.call(this),Ke(this,cr,void 0))}setEventListener(n){var r;Ke(this,ii,n),(r=ye(this,cr))==null||r.call(this),Ke(this,cr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){ye(this,Pr)!==n&&(Ke(this,Pr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof ye(this,Pr)=="boolean"?ye(this,Pr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Pr=new WeakMap,cr=new WeakMap,ii=new WeakMap,Kc),md=new gd,vd=(Qc=class extends Ao{constructor(){super();st(this,oi,!0);st(this,fr);st(this,si);Ke(this,si,n=>{if(!Li&&window.addEventListener){const r=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){ye(this,fr)||this.setEventListener(ye(this,si))}onUnsubscribe(){var n;this.hasListeners()||((n=ye(this,fr))==null||n.call(this),Ke(this,fr,void 0))}setEventListener(n){var r;Ke(this,si,n),(r=ye(this,fr))==null||r.call(this),Ke(this,fr,n(this.setOnline.bind(this)))}setOnline(n){ye(this,oi)!==n&&(Ke(this,oi,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return ye(this,oi)}},oi=new WeakMap,fr=new WeakMap,si=new WeakMap,Qc),yd=new vd;function pl(){let i,n;const r=new Promise((l,p)=>{i=l,n=p});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),i(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}function _d(i){return(i??"online")==="online"?yd.isOnline():!0}var wd=i=>setTimeout(i,0);function bd(){let i=[],n=0,r=c=>{c()},s=c=>{c()},l=wd;const p=c=>{n?i.push(c):l(()=>{r(c)})},v=()=>{const c=i;i=[],c.length&&l(()=>{s(()=>{c.forEach(x=>{r(x)})})})};return{batch:c=>{let x;n++;try{x=c()}finally{n--,n||v()}return x},batchCalls:c=>(...x)=>{p(()=>{c(...x)})},schedule:p,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{l=c}}}var To=bd();function xd(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_d(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Sd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cd=(Jc=class extends Ao{constructor(n,r){super();st(this,rt);st(this,Ft);st(this,et);st(this,Gi);st(this,Bt);st(this,Nr);st(this,ai);st(this,hr);st(this,dr);st(this,Vi);st(this,ui);st(this,li);st(this,$r);st(this,Br);st(this,pr);st(this,ci,new Set);this.options=r,Ke(this,Ft,n),Ke(this,dr,null),Ke(this,hr,pl()),this.options.experimental_prefetchInRender||ye(this,hr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ye(this,et).addObserver(this),gl(ye(this,et),this.options)?pt(this,rt,xo).call(this):this.updateResult(),pt(this,rt,Xu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ea(ye(this,et),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ea(ye(this,et),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,rt,el).call(this),pt(this,rt,tl).call(this),ye(this,et).removeObserver(this)}setOptions(n){const r=this.options,s=ye(this,et);if(this.options=ye(this,Ft).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mn(this.options.enabled,ye(this,et))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,rt,nl).call(this),ye(this,et).setOptions(this.options),r._defaulted&&!Oo(this.options,r)&&ye(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:ye(this,et),observer:this});const l=this.hasListeners();l&&ml(ye(this,et),s,this.options,r)&&pt(this,rt,xo).call(this),this.updateResult(),l&&(ye(this,et)!==s||Mn(this.options.enabled,ye(this,et))!==Mn(r.enabled,ye(this,et))||ki(this.options.staleTime,ye(this,et))!==ki(r.staleTime,ye(this,et)))&&pt(this,rt,Ku).call(this);const p=pt(this,rt,Qu).call(this);l&&(ye(this,et)!==s||Mn(this.options.enabled,ye(this,et))!==Mn(r.enabled,ye(this,et))||p!==ye(this,pr))&&pt(this,rt,Ju).call(this,p)}getOptimisticResult(n){const r=ye(this,Ft).getQueryCache().build(ye(this,Ft),n),s=this.createResult(r,n);return Dd(this,s)&&(Ke(this,Bt,s),Ke(this,ai,this.options),Ke(this,Nr,ye(this,et).state)),s}getCurrentResult(){return ye(this,Bt)}trackResult(n,r){return new Proxy(n,{get:(s,l)=>(this.trackProp(l),r==null||r(l),Reflect.get(s,l))})}trackProp(n){ye(this,ci).add(n)}getCurrentQuery(){return ye(this,et)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=ye(this,Ft).defaultQueryOptions(n),s=ye(this,Ft).getQueryCache().build(ye(this,Ft),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return pt(this,rt,xo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),ye(this,Bt)))}createResult(n,r){var ve;const s=ye(this,et),l=this.options,p=ye(this,Bt),v=ye(this,Nr),c=ye(this,ai),A=n!==s?n.state:ye(this,Gi),{state:T}=n;let R={...T},P=!1,M;if(r._optimisticResults){const he=this.hasListeners(),te=!he&&gl(n,r),Oe=he&&ml(n,s,r,l);(te||Oe)&&(R={...R,...xd(T.data,n.options)}),r._optimisticResults==="isRestoring"&&(R.fetchStatus="idle")}let{error:I,errorUpdatedAt:j,status:F}=R;M=R.data;let X=!1;if(r.placeholderData!==void 0&&M===void 0&&F==="pending"){let he;p!=null&&p.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(he=p.data,X=!0):he=typeof r.placeholderData=="function"?r.placeholderData((ve=ye(this,li))==null?void 0:ve.state.data,ye(this,li)):r.placeholderData,he!==void 0&&(F="success",M=hl(p==null?void 0:p.data,he,r),P=!0)}if(r.select&&M!==void 0&&!X)if(p&&M===(v==null?void 0:v.data)&&r.select===ye(this,Vi))M=ye(this,ui);else try{Ke(this,Vi,r.select),M=r.select(M),M=hl(p==null?void 0:p.data,M,r),Ke(this,ui,M),Ke(this,dr,null)}catch(he){Ke(this,dr,he)}ye(this,dr)&&(I=ye(this,dr),M=ye(this,ui),j=Date.now(),F="error");const ie=R.fetchStatus==="fetching",oe=F==="pending",ce=F==="error",K=oe&&ie,fe=M!==void 0,J={status:F,fetchStatus:R.fetchStatus,isPending:oe,isSuccess:F==="success",isError:ce,isInitialLoading:K,isLoading:K,data:M,dataUpdatedAt:R.dataUpdatedAt,error:I,errorUpdatedAt:j,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>A.dataUpdateCount||R.errorUpdateCount>A.errorUpdateCount,isFetching:ie,isRefetching:ie&&!oe,isLoadingError:ce&&!fe,isPaused:R.fetchStatus==="paused",isPlaceholderData:P,isRefetchError:ce&&fe,isStale:ta(n,r),refetch:this.refetch,promise:ye(this,hr)};if(this.options.experimental_prefetchInRender){const he=Te=>{J.status==="error"?Te.reject(J.error):J.data!==void 0&&Te.resolve(J.data)},te=()=>{const Te=Ke(this,hr,J.promise=pl());he(Te)},Oe=ye(this,hr);switch(Oe.status){case"pending":n.queryHash===s.queryHash&&he(Oe);break;case"fulfilled":(J.status==="error"||J.data!==Oe.value)&&te();break;case"rejected":(J.status!=="error"||J.error!==Oe.reason)&&te();break}}return J}updateResult(){const n=ye(this,Bt),r=this.createResult(ye(this,et),this.options);if(Ke(this,Nr,ye(this,et).state),Ke(this,ai,this.options),ye(this,Nr).data!==void 0&&Ke(this,li,ye(this,et)),Oo(r,n))return;Ke(this,Bt,r);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,p=typeof l=="function"?l():l;if(p==="all"||!p&&!ye(this,ci).size)return!0;const v=new Set(p??ye(this,ci));return this.options.throwOnError&&v.add("error"),Object.keys(ye(this,Bt)).some(c=>{const x=c;return ye(this,Bt)[x]!==n[x]&&v.has(x)})};pt(this,rt,ld).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,rt,Xu).call(this)}},Ft=new WeakMap,et=new WeakMap,Gi=new WeakMap,Bt=new WeakMap,Nr=new WeakMap,ai=new WeakMap,hr=new WeakMap,dr=new WeakMap,Vi=new WeakMap,ui=new WeakMap,li=new WeakMap,$r=new WeakMap,Br=new WeakMap,pr=new WeakMap,ci=new WeakMap,rt=new WeakSet,xo=function(n){pt(this,rt,nl).call(this);let r=ye(this,et).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(Do)),r},Ku=function(){pt(this,rt,el).call(this);const n=ki(this.options.staleTime,ye(this,et));if(Li||ye(this,Bt).isStale||!ul(n))return;const s=pd(ye(this,Bt).dataUpdatedAt,n)+1;Ke(this,$r,setTimeout(()=>{ye(this,Bt).isStale||this.updateResult()},s))},Qu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ye(this,et)):this.options.refetchInterval)??!1},Ju=function(n){pt(this,rt,tl).call(this),Ke(this,pr,n),!(Li||Mn(this.options.enabled,ye(this,et))===!1||!ul(ye(this,pr))||ye(this,pr)===0)&&Ke(this,Br,setInterval(()=>{(this.options.refetchIntervalInBackground||md.isFocused())&&pt(this,rt,xo).call(this)},ye(this,pr)))},Xu=function(){pt(this,rt,Ku).call(this),pt(this,rt,Ju).call(this,pt(this,rt,Qu).call(this))},el=function(){ye(this,$r)&&(clearTimeout(ye(this,$r)),Ke(this,$r,void 0))},tl=function(){ye(this,Br)&&(clearInterval(ye(this,Br)),Ke(this,Br,void 0))},nl=function(){const n=ye(this,Ft).getQueryCache().build(ye(this,Ft),this.options);if(n===ye(this,et))return;const r=ye(this,et);Ke(this,et,n),Ke(this,Gi,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},ld=function(n){To.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(ye(this,Bt))}),ye(this,Ft).getQueryCache().notify({query:ye(this,et),type:"observerResultsUpdated"})})},Jc);function Ad(i,n){return Mn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function gl(i,n){return Ad(i,n)||i.state.data!==void 0&&ea(i,n,n.refetchOnMount)}function ea(i,n,r){if(Mn(n.enabled,i)!==!1&&ki(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&ta(i,n)}return!1}function ml(i,n,r,s){return(i!==n||Mn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&ta(i,r)}function ta(i,n){return Mn(n.enabled,i)!==!1&&i.isStaleByTime(ki(n.staleTime,i))}function Dd(i,n){return!Oo(i.getCurrentResult(),n)}var Od=(Xc=class extends Ao{constructor(n,r){super();st(this,Yn);st(this,gr);st(this,mr);st(this,Wt);st(this,jn);Ke(this,gr,n),this.setOptions(r),this.bindMethods(),pt(this,Yn,Zs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=ye(this,gr).defaultMutationOptions(n),Oo(this.options,r)||ye(this,gr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ye(this,Wt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ll(r.mutationKey)!==ll(this.options.mutationKey)?this.reset():((s=ye(this,Wt))==null?void 0:s.state.status)==="pending"&&ye(this,Wt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ye(this,Wt))==null||n.removeObserver(this)}onMutationUpdate(n){pt(this,Yn,Zs).call(this),pt(this,Yn,rl).call(this,n)}getCurrentResult(){return ye(this,mr)}reset(){var n;(n=ye(this,Wt))==null||n.removeObserver(this),Ke(this,Wt,void 0),pt(this,Yn,Zs).call(this),pt(this,Yn,rl).call(this)}mutate(n,r){var s;return Ke(this,jn,r),(s=ye(this,Wt))==null||s.removeObserver(this),Ke(this,Wt,ye(this,gr).getMutationCache().build(ye(this,gr),this.options)),ye(this,Wt).addObserver(this),ye(this,Wt).execute(n)}},gr=new WeakMap,mr=new WeakMap,Wt=new WeakMap,jn=new WeakMap,Yn=new WeakSet,Zs=function(){var r;const n=((r=ye(this,Wt))==null?void 0:r.state)??Sd();Ke(this,mr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},rl=function(n){To.batch(()=>{var r,s,l,p,v,c,x,A;if(ye(this,jn)&&this.hasListeners()){const T=ye(this,mr).variables,R=ye(this,mr).context;(n==null?void 0:n.type)==="success"?((s=(r=ye(this,jn)).onSuccess)==null||s.call(r,n.data,T,R),(p=(l=ye(this,jn)).onSettled)==null||p.call(l,n.data,null,T,R)):(n==null?void 0:n.type)==="error"&&((c=(v=ye(this,jn)).onError)==null||c.call(v,n.error,T,R),(A=(x=ye(this,jn)).onSettled)==null||A.call(x,void 0,n.error,T,R))}this.listeners.forEach(T=>{T(ye(this,mr))})})},Xc),Mo={exports:{}},Ii={};/**
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Zs}var al;function dd(){return al||(al=1,process.env.NODE_ENV==="production"?xo.exports=fd():xo.exports=hd()),xo.exports}var wn=dd(),So=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ei=typeof window>"u"||"Deno"in globalThis;function Co(){}function ul(i){return typeof i=="number"&&i>=0&&i!==1/0}function pd(i,n){return Math.max(i+(n||0)-Date.now(),0)}function Ri(i,n){return typeof i=="function"?i(n):i}function En(i,n){return typeof i=="function"?i(n):i}function ll(i){return JSON.stringify(i,(n,r)=>Qs(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Ks(i,n){if(i===n)return i;const r=cl(i)&&cl(n);if(r||Qs(i)&&Qs(n)){const s=r?i:Object.keys(i),l=s.length,p=r?n:Object.keys(n),v=p.length,c=r?[]:{};let x=0;for(let A=0;A<v;A++){const T=r?A:p[A];(!r&&s.includes(T)||r)&&i[T]===void 0&&n[T]===void 0?(c[T]=void 0,x++):(c[T]=Ks(i[T],n[T]),c[T]===i[T]&&i[T]!==void 0&&x++)}return l===v&&x===l?i:c}return n}function Ao(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function cl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function Qs(i){if(!fl(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!fl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function fl(i){return Object.prototype.toString.call(i)==="[object Object]"}function hl(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Ks(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return Ks(i,n)}return n}function dl(i,n){return typeof i=="function"?i(...n):!!i}var gd=(Kc=class extends So{constructor(){super();at(this,Lr);at(this,ar);at(this,ni);Ke(this,ni,n=>{if(!Ei&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ye(this,ar)||this.setEventListener(ye(this,ni))}onUnsubscribe(){var n;this.hasListeners()||((n=ye(this,ar))==null||n.call(this),Ke(this,ar,void 0))}setEventListener(n){var r;Ke(this,ni,n),(r=ye(this,ar))==null||r.call(this),Ke(this,ar,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){ye(this,Lr)!==n&&(Ke(this,Lr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof ye(this,Lr)=="boolean"?ye(this,Lr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Lr=new WeakMap,ar=new WeakMap,ni=new WeakMap,Kc),md=new gd,vd=(Qc=class extends So{constructor(){super();at(this,ri,!0);at(this,ur);at(this,ii);Ke(this,ii,n=>{if(!Ei&&window.addEventListener){const r=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){ye(this,ur)||this.setEventListener(ye(this,ii))}onUnsubscribe(){var n;this.hasListeners()||((n=ye(this,ur))==null||n.call(this),Ke(this,ur,void 0))}setEventListener(n){var r;Ke(this,ii,n),(r=ye(this,ur))==null||r.call(this),Ke(this,ur,n(this.setOnline.bind(this)))}setOnline(n){ye(this,ri)!==n&&(Ke(this,ri,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return ye(this,ri)}},ri=new WeakMap,ur=new WeakMap,ii=new WeakMap,Qc),yd=new vd;function pl(){let i,n;const r=new Promise((l,p)=>{i=l,n=p});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),i(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}function _d(i){return(i??"online")==="online"?yd.isOnline():!0}var wd=i=>setTimeout(i,0);function bd(){let i=[],n=0,r=c=>{c()},s=c=>{c()},l=wd;const p=c=>{n?i.push(c):l(()=>{r(c)})},v=()=>{const c=i;i=[],c.length&&l(()=>{s(()=>{c.forEach(x=>{r(x)})})})};return{batch:c=>{let x;n++;try{x=c()}finally{n--,n||v()}return x},batchCalls:c=>(...x)=>{p(()=>{c(...x)})},schedule:p,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{l=c}}}var Do=bd();function xd(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_d(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Sd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cd=(Jc=class extends So{constructor(n,r){super();at(this,rt);at(this,Wt);at(this,et);at(this,qi);at(this,jt);at(this,kr);at(this,oi);at(this,lr);at(this,cr);at(this,Hi);at(this,si);at(this,ai);at(this,Ir);at(this,Pr);at(this,fr);at(this,ui,new Set);this.options=r,Ke(this,Wt,n),Ke(this,cr,null),Ke(this,lr,pl()),this.options.experimental_prefetchInRender||ye(this,lr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ye(this,et).addObserver(this),gl(ye(this,et),this.options)?pt(this,rt,wo).call(this):this.updateResult(),pt(this,rt,Xu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Js(ye(this,et),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Js(ye(this,et),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,rt,el).call(this),pt(this,rt,tl).call(this),ye(this,et).removeObserver(this)}setOptions(n){const r=this.options,s=ye(this,et);if(this.options=ye(this,Wt).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(this.options.enabled,ye(this,et))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,rt,nl).call(this),ye(this,et).setOptions(this.options),r._defaulted&&!Ao(this.options,r)&&ye(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:ye(this,et),observer:this});const l=this.hasListeners();l&&ml(ye(this,et),s,this.options,r)&&pt(this,rt,wo).call(this),this.updateResult(),l&&(ye(this,et)!==s||En(this.options.enabled,ye(this,et))!==En(r.enabled,ye(this,et))||Ri(this.options.staleTime,ye(this,et))!==Ri(r.staleTime,ye(this,et)))&&pt(this,rt,Ku).call(this);const p=pt(this,rt,Qu).call(this);l&&(ye(this,et)!==s||En(this.options.enabled,ye(this,et))!==En(r.enabled,ye(this,et))||p!==ye(this,fr))&&pt(this,rt,Ju).call(this,p)}getOptimisticResult(n){const r=ye(this,Wt).getQueryCache().build(ye(this,Wt),n),s=this.createResult(r,n);return Dd(this,s)&&(Ke(this,jt,s),Ke(this,oi,this.options),Ke(this,kr,ye(this,et).state)),s}getCurrentResult(){return ye(this,jt)}trackResult(n,r){return new Proxy(n,{get:(s,l)=>(this.trackProp(l),r==null||r(l),Reflect.get(s,l))})}trackProp(n){ye(this,ui).add(n)}getCurrentQuery(){return ye(this,et)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=ye(this,Wt).defaultQueryOptions(n),s=ye(this,Wt).getQueryCache().build(ye(this,Wt),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return pt(this,rt,wo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),ye(this,jt)))}createResult(n,r){var ve;const s=ye(this,et),l=this.options,p=ye(this,jt),v=ye(this,kr),c=ye(this,oi),A=n!==s?n.state:ye(this,qi),{state:T}=n;let R={...T},P=!1,M;if(r._optimisticResults){const he=this.hasListeners(),te=!he&&gl(n,r),Oe=he&&ml(n,s,r,l);(te||Oe)&&(R={...R,...xd(T.data,n.options)}),r._optimisticResults==="isRestoring"&&(R.fetchStatus="idle")}let{error:I,errorUpdatedAt:j,status:F}=R;M=R.data;let X=!1;if(r.placeholderData!==void 0&&M===void 0&&F==="pending"){let he;p!=null&&p.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(he=p.data,X=!0):he=typeof r.placeholderData=="function"?r.placeholderData((ve=ye(this,ai))==null?void 0:ve.state.data,ye(this,ai)):r.placeholderData,he!==void 0&&(F="success",M=hl(p==null?void 0:p.data,he,r),P=!0)}if(r.select&&M!==void 0&&!X)if(p&&M===(v==null?void 0:v.data)&&r.select===ye(this,Hi))M=ye(this,si);else try{Ke(this,Hi,r.select),M=r.select(M),M=hl(p==null?void 0:p.data,M,r),Ke(this,si,M),Ke(this,cr,null)}catch(he){Ke(this,cr,he)}ye(this,cr)&&(I=ye(this,cr),M=ye(this,si),j=Date.now(),F="error");const ie=R.fetchStatus==="fetching",oe=F==="pending",ce=F==="error",K=oe&&ie,fe=M!==void 0,J={status:F,fetchStatus:R.fetchStatus,isPending:oe,isSuccess:F==="success",isError:ce,isInitialLoading:K,isLoading:K,data:M,dataUpdatedAt:R.dataUpdatedAt,error:I,errorUpdatedAt:j,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>A.dataUpdateCount||R.errorUpdateCount>A.errorUpdateCount,isFetching:ie,isRefetching:ie&&!oe,isLoadingError:ce&&!fe,isPaused:R.fetchStatus==="paused",isPlaceholderData:P,isRefetchError:ce&&fe,isStale:Xs(n,r),refetch:this.refetch,promise:ye(this,lr)};if(this.options.experimental_prefetchInRender){const he=Te=>{J.status==="error"?Te.reject(J.error):J.data!==void 0&&Te.resolve(J.data)},te=()=>{const Te=Ke(this,lr,J.promise=pl());he(Te)},Oe=ye(this,lr);switch(Oe.status){case"pending":n.queryHash===s.queryHash&&he(Oe);break;case"fulfilled":(J.status==="error"||J.data!==Oe.value)&&te();break;case"rejected":(J.status!=="error"||J.error!==Oe.reason)&&te();break}}return J}updateResult(){const n=ye(this,jt),r=this.createResult(ye(this,et),this.options);if(Ke(this,kr,ye(this,et).state),Ke(this,oi,this.options),ye(this,kr).data!==void 0&&Ke(this,ai,ye(this,et)),Ao(r,n))return;Ke(this,jt,r);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,p=typeof l=="function"?l():l;if(p==="all"||!p&&!ye(this,ui).size)return!0;const v=new Set(p??ye(this,ui));return this.options.throwOnError&&v.add("error"),Object.keys(ye(this,jt)).some(c=>{const x=c;return ye(this,jt)[x]!==n[x]&&v.has(x)})};pt(this,rt,ld).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,rt,Xu).call(this)}},Wt=new WeakMap,et=new WeakMap,qi=new WeakMap,jt=new WeakMap,kr=new WeakMap,oi=new WeakMap,lr=new WeakMap,cr=new WeakMap,Hi=new WeakMap,si=new WeakMap,ai=new WeakMap,Ir=new WeakMap,Pr=new WeakMap,fr=new WeakMap,ui=new WeakMap,rt=new WeakSet,wo=function(n){pt(this,rt,nl).call(this);let r=ye(this,et).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(Co)),r},Ku=function(){pt(this,rt,el).call(this);const n=Ri(this.options.staleTime,ye(this,et));if(Ei||ye(this,jt).isStale||!ul(n))return;const s=pd(ye(this,jt).dataUpdatedAt,n)+1;Ke(this,Ir,setTimeout(()=>{ye(this,jt).isStale||this.updateResult()},s))},Qu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ye(this,et)):this.options.refetchInterval)??!1},Ju=function(n){pt(this,rt,tl).call(this),Ke(this,fr,n),!(Ei||En(this.options.enabled,ye(this,et))===!1||!ul(ye(this,fr))||ye(this,fr)===0)&&Ke(this,Pr,setInterval(()=>{(this.options.refetchIntervalInBackground||md.isFocused())&&pt(this,rt,wo).call(this)},ye(this,fr)))},Xu=function(){pt(this,rt,Ku).call(this),pt(this,rt,Ju).call(this,pt(this,rt,Qu).call(this))},el=function(){ye(this,Ir)&&(clearTimeout(ye(this,Ir)),Ke(this,Ir,void 0))},tl=function(){ye(this,Pr)&&(clearInterval(ye(this,Pr)),Ke(this,Pr,void 0))},nl=function(){const n=ye(this,Wt).getQueryCache().build(ye(this,Wt),this.options);if(n===ye(this,et))return;const r=ye(this,et);Ke(this,et,n),Ke(this,qi,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},ld=function(n){Do.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(ye(this,jt))}),ye(this,Wt).getQueryCache().notify({query:ye(this,et),type:"observerResultsUpdated"})})},Jc);function Ad(i,n){return En(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function gl(i,n){return Ad(i,n)||i.state.data!==void 0&&Js(i,n,n.refetchOnMount)}function Js(i,n,r){if(En(n.enabled,i)!==!1&&Ri(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&Xs(i,n)}return!1}function ml(i,n,r,s){return(i!==n||En(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&Xs(i,r)}function Xs(i,n){return En(n.enabled,i)!==!1&&i.isStaleByTime(Ri(n.staleTime,i))}function Dd(i,n){return!Ao(i.getCurrentResult(),n)}var Od=(Xc=class extends So{constructor(n,r){super();at(this,Bn);at(this,hr);at(this,dr);at(this,zt);at(this,$n);Ke(this,hr,n),this.setOptions(r),this.bindMethods(),pt(this,Bn,Gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=ye(this,hr).defaultMutationOptions(n),Ao(this.options,r)||ye(this,hr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ye(this,zt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ll(r.mutationKey)!==ll(this.options.mutationKey)?this.reset():((s=ye(this,zt))==null?void 0:s.state.status)==="pending"&&ye(this,zt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ye(this,zt))==null||n.removeObserver(this)}onMutationUpdate(n){pt(this,Bn,Gs).call(this),pt(this,Bn,rl).call(this,n)}getCurrentResult(){return ye(this,dr)}reset(){var n;(n=ye(this,zt))==null||n.removeObserver(this),Ke(this,zt,void 0),pt(this,Bn,Gs).call(this),pt(this,Bn,rl).call(this)}mutate(n,r){var s;return Ke(this,$n,r),(s=ye(this,zt))==null||s.removeObserver(this),Ke(this,zt,ye(this,hr).getMutationCache().build(ye(this,hr),this.options)),ye(this,zt).addObserver(this),ye(this,zt).execute(n)}},hr=new WeakMap,dr=new WeakMap,zt=new WeakMap,$n=new WeakMap,Bn=new WeakSet,Gs=function(){var r;const n=((r=ye(this,zt))==null?void 0:r.state)??Sd();Ke(this,dr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},rl=function(n){Do.batch(()=>{var r,s,l,p,v,c,x,A;if(ye(this,$n)&&this.hasListeners()){const T=ye(this,dr).variables,R=ye(this,dr).context;(n==null?void 0:n.type)==="success"?((s=(r=ye(this,$n)).onSuccess)==null||s.call(r,n.data,T,R),(p=(l=ye(this,$n)).onSettled)==null||p.call(l,n.data,null,T,R)):(n==null?void 0:n.type)==="error"&&((c=(v=ye(this,$n)).onError)==null||c.call(v,n.error,T,R),(A=(x=ye(this,$n)).onSettled)==null||A.call(x,void 0,n.error,T,R))}this.listeners.forEach(T=>{T(ye(this,dr))})})},Xc),Oo={exports:{}},Li={};/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-runtime.production.js
|
|
24
24
|
*
|
|
@@ -26,7 +26,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var vl;function Td(){if(vl)return
|
|
29
|
+
*/var vl;function Td(){if(vl)return Li;vl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,p){var v=null;if(p!==void 0&&(v=""+p),l.key!==void 0&&(v=""+l.key),"key"in l){p={};for(var c in l)c!=="key"&&(p[c]=l[c])}else p=l;return l=p.ref,{$$typeof:i,type:s,key:v,ref:l!==void 0?l:null,props:p}}return Li.Fragment=n,Li.jsx=r,Li.jsxs=r,Li}var ki={};/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
32
32
|
*
|
|
@@ -39,7 +39,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
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} />`,W,ne,de,ne),w[ne+W]=!0)}if(ne=null,C!==void 0&&(r(C),ne=""+C),v(m)&&(r(m.key),ne=""+m.key),"key"in m){C={};for(var Ce in m)Ce!=="key"&&(C[Ce]=m[Ce])}else C=m;return ne&&c(C,typeof g=="function"?g.displayName||g.name||"Unknown":g),A(g,ne,ae,V,l(),C,ue,be)}function R(g){typeof g=="object"&&g!==null&&g.$$typeof===M&&g._store&&(g._store.validated=1)}var P=me,M=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),te=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe=Object.prototype.hasOwnProperty,Te=Array.isArray,N=console.createTask?console.createTask:function(){return null};P={"react-stack-bottom-frame":function(g){return g()}};var E,O={},d=P["react-stack-bottom-frame"].bind(P,p)(),f=N(s(p)),w={};
|
|
42
|
+
<%s key={someKey} {...props} />`,W,ne,de,ne),w[ne+W]=!0)}if(ne=null,C!==void 0&&(r(C),ne=""+C),v(m)&&(r(m.key),ne=""+m.key),"key"in m){C={};for(var Ce in m)Ce!=="key"&&(C[Ce]=m[Ce])}else C=m;return ne&&c(C,typeof g=="function"?g.displayName||g.name||"Unknown":g),A(g,ne,ae,V,l(),C,ue,be)}function R(g){typeof g=="object"&&g!==null&&g.$$typeof===M&&g._store&&(g._store.validated=1)}var P=me,M=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),te=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe=Object.prototype.hasOwnProperty,Te=Array.isArray,N=console.createTask?console.createTask:function(){return null};P={"react-stack-bottom-frame":function(g){return g()}};var E,O={},d=P["react-stack-bottom-frame"].bind(P,p)(),f=N(s(p)),w={};ki.Fragment=j,ki.jsx=function(g,m,C,W,V){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(g,m,C,!1,W,V,ae?Error("react-stack-top-frame"):d,ae?N(s(g)):f)},ki.jsxs=function(g,m,C,W,V){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(g,m,C,!0,W,V,ae?Error("react-stack-top-frame"):d,ae?N(s(g)):f)}}()),ki}var _l;function Ed(){return _l||(_l=1,process.env.NODE_ENV==="production"?Oo.exports=Td():Oo.exports=Md()),Oo.exports}var D=Ed(),wl=Mt.createContext(void 0),bl=i=>{const n=Mt.useContext(wl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},xl=({client:i,children:n})=>(Mt.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),D.jsx(wl.Provider,{value:i,children:n})),Sl=Mt.createContext(!1),Rd=()=>Mt.useContext(Sl);Sl.Provider;function Ld(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var kd=Mt.createContext(Ld()),Id=()=>Mt.useContext(kd),Pd=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},Nd=i=>{Mt.useEffect(()=>{i.clearReset()},[i])},$d=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||dl(r,[i.error,s])),Bd=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))}},jd=(i,n)=>i.isLoading&&i.isFetching&&!n,Yd=(i,n)=>(i==null?void 0:i.suspense)&&n.isPending,Cl=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function Ud(i,n,r){var R,P,M,I,j;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=bl(),l=Rd(),p=Id(),v=s.defaultQueryOptions(i);(P=(R=s.getDefaultOptions().queries)==null?void 0:R._experimental_beforeQuery)==null||P.call(R,v),process.env.NODE_ENV!=="production"&&(v.queryFn||console.error(`[${v.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`)),v._optimisticResults=l?"isRestoring":"optimistic",Bd(v),Pd(v,p),Nd(p);const c=!s.getQueryCache().get(v.queryHash),[x]=Mt.useState(()=>new n(s,v)),A=x.getOptimisticResult(v),T=!l&&i.subscribed!==!1;if(Mt.useSyncExternalStore(Mt.useCallback(F=>{const X=T?x.subscribe(Do.batchCalls(F)):Co;return x.updateResult(),X},[x,T]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),Mt.useEffect(()=>{x.setOptions(v)},[v,x]),Yd(v,A))throw Cl(v,x,p);if($d({result:A,errorResetBoundary:p,throwOnError:v.throwOnError,query:s.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw A.error;if((I=(M=s.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||I.call(M,v,A),v.experimental_prefetchInRender&&!Ei&&jd(A,l)){const F=c?Cl(v,x,p):(j=s.getQueryCache().get(v.queryHash))==null?void 0:j.promise;F==null||F.catch(Co).finally(()=>{x.updateResult()})}return v.notifyOnChangeProps?A:x.trackResult(A)}function Al(i,n){return Ud(i,Cd)}function ea(i,n){const r=bl(),[s]=Mt.useState(()=>new Od(r,i));Mt.useEffect(()=>{s.setOptions(i)},[s,i]);const l=Mt.useSyncExternalStore(Mt.useCallback(v=>s.subscribe(Do.batchCalls(v)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),p=Mt.useCallback((v,c)=>{s.mutate(v,c).catch(Co)},[s]);if(l.error&&dl(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:p,mutateAsync:l.mutate}}var Dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(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 l=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,l.get?l:{enumerable:!0,get:function(){return i[s]}})}),r}var na={exports:{}},Ii={};/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-runtime.production.js
|
|
45
45
|
*
|
|
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var Ol;function Fd(){if(Ol)return
|
|
50
|
+
*/var Ol;function Fd(){if(Ol)return Ii;Ol=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,p){var v=null;if(p!==void 0&&(v=""+p),l.key!==void 0&&(v=""+l.key),"key"in l){p={};for(var c in l)c!=="key"&&(p[c]=l[c])}else p=l;return l=p.ref,{$$typeof:i,type:s,key:v,ref:l!==void 0?l:null,props:p}}return Ii.Fragment=n,Ii.jsx=r,Ii.jsxs=r,Ii}var To={};/**
|
|
51
51
|
* @license React
|
|
52
52
|
* react-jsx-runtime.development.js
|
|
53
53
|
*
|
|
@@ -60,7 +60,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
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} />`,W,ne,de,ne),w[ne+W]=!0)}if(ne=null,C!==void 0&&(r(C),ne=""+C),v(m)&&(r(m.key),ne=""+m.key),"key"in m){C={};for(var Ce in m)Ce!=="key"&&(C[Ce]=m[Ce])}else C=m;return ne&&c(C,typeof g=="function"?g.displayName||g.name||"Unknown":g),A(g,ne,ae,V,l(),C,ue,be)}function R(g){typeof g=="object"&&g!==null&&g.$$typeof===M&&g._store&&(g._store.validated=1)}var P=me,M=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),te=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe=Object.prototype.hasOwnProperty,Te=Array.isArray,N=console.createTask?console.createTask:function(){return null};P={"react-stack-bottom-frame":function(g){return g()}};var E,O={},d=P["react-stack-bottom-frame"].bind(P,p)(),f=N(s(p)),w={};
|
|
63
|
+
<%s key={someKey} {...props} />`,W,ne,de,ne),w[ne+W]=!0)}if(ne=null,C!==void 0&&(r(C),ne=""+C),v(m)&&(r(m.key),ne=""+m.key),"key"in m){C={};for(var Ce in m)Ce!=="key"&&(C[Ce]=m[Ce])}else C=m;return ne&&c(C,typeof g=="function"?g.displayName||g.name||"Unknown":g),A(g,ne,ae,V,l(),C,ue,be)}function R(g){typeof g=="object"&&g!==null&&g.$$typeof===M&&g._store&&(g._store.validated=1)}var P=me,M=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),te=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe=Object.prototype.hasOwnProperty,Te=Array.isArray,N=console.createTask?console.createTask:function(){return null};P={"react-stack-bottom-frame":function(g){return g()}};var E,O={},d=P["react-stack-bottom-frame"].bind(P,p)(),f=N(s(p)),w={};To.Fragment=j,To.jsx=function(g,m,C,W,V){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(g,m,C,!1,W,V,ae?Error("react-stack-top-frame"):d,ae?N(s(g)):f)},To.jsxs=function(g,m,C,W,V){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(g,m,C,!0,W,V,ae?Error("react-stack-top-frame"):d,ae?N(s(g)):f)}}()),To}var Ml;function zd(){return Ml||(Ml=1,process.env.NODE_ENV==="production"?na.exports=Fd():na.exports=Wd()),na.exports}zd();var ra={exports:{}},ia={};/**
|
|
64
64
|
* @license React
|
|
65
65
|
* react-compiler-runtime.production.js
|
|
66
66
|
*
|
|
@@ -68,7 +68,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the MIT license found in the
|
|
70
70
|
* LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/var El;function qd(){if(El)return
|
|
71
|
+
*/var El;function qd(){if(El)return ia;El=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ia.c=function(n){return i.H.useMemoCache(n)},ia}var Rl={};/**
|
|
72
72
|
* @license React
|
|
73
73
|
* react-compiler-runtime.development.js
|
|
74
74
|
*
|
|
@@ -80,15 +80,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
80
80
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
81
81
|
2. You might be breaking the Rules of Hooks
|
|
82
82
|
3. You might have more than one copy of React in the same app
|
|
83
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Rl}var kl;function Gd(){return kl||(kl=1,process.env.NODE_ENV==="production"?
|
|
83
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Rl}var kl;function Gd(){return kl||(kl=1,process.env.NODE_ENV==="production"?ra.exports=qd():ra.exports=Hd()),ra.exports}Gd();/*!
|
|
84
84
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
85
85
|
* SPDX-License-Identifier: Apache-2.0
|
|
86
|
-
*/var Il={}
|
|
86
|
+
*/var Il={},Pi={},Pl;function Vd(){if(Pl)return Pi;Pl=1,Pi.byteLength=c,Pi.toByteArray=A,Pi.fromByteArray=P;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,p=s.length;l<p;++l)i[l]=s[l],n[s.charCodeAt(l)]=l;n[45]=62,n[95]=63;function v(M){var I=M.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=M.indexOf("=");j===-1&&(j=I);var F=j===I?0:4-j%4;return[j,F]}function c(M){var I=v(M),j=I[0],F=I[1];return(j+F)*3/4-F}function x(M,I,j){return(I+j)*3/4-j}function A(M){var I,j=v(M),F=j[0],X=j[1],ie=new r(x(M,F,X)),oe=0,ce=X>0?F-4:F,K;for(K=0;K<ce;K+=4)I=n[M.charCodeAt(K)]<<18|n[M.charCodeAt(K+1)]<<12|n[M.charCodeAt(K+2)]<<6|n[M.charCodeAt(K+3)],ie[oe++]=I>>16&255,ie[oe++]=I>>8&255,ie[oe++]=I&255;return X===2&&(I=n[M.charCodeAt(K)]<<2|n[M.charCodeAt(K+1)]>>4,ie[oe++]=I&255),X===1&&(I=n[M.charCodeAt(K)]<<10|n[M.charCodeAt(K+1)]<<4|n[M.charCodeAt(K+2)]>>2,ie[oe++]=I>>8&255,ie[oe++]=I&255),ie}function T(M){return i[M>>18&63]+i[M>>12&63]+i[M>>6&63]+i[M&63]}function R(M,I,j){for(var F,X=[],ie=I;ie<j;ie+=3)F=(M[ie]<<16&16711680)+(M[ie+1]<<8&65280)+(M[ie+2]&255),X.push(T(F));return X.join("")}function P(M){for(var I,j=M.length,F=j%3,X=[],ie=16383,oe=0,ce=j-F;oe<ce;oe+=ie)X.push(R(M,oe,oe+ie>ce?ce:oe+ie));return F===1?(I=M[j-1],X.push(i[I>>2]+i[I<<4&63]+"==")):F===2&&(I=(M[j-2]<<8)+M[j-1],X.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),X.join("")}return Pi}var oa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Nl;function Zd(){return Nl||(Nl=1,oa.read=function(i,n,r,s,l){var p,v,c=l*8-s-1,x=(1<<c)-1,A=x>>1,T=-7,R=r?l-1:0,P=r?-1:1,M=i[n+R];for(R+=P,p=M&(1<<-T)-1,M>>=-T,T+=c;T>0;p=p*256+i[n+R],R+=P,T-=8);for(v=p&(1<<-T)-1,p>>=-T,T+=s;T>0;v=v*256+i[n+R],R+=P,T-=8);if(p===0)p=1-A;else{if(p===x)return v?NaN:(M?-1:1)*(1/0);v=v+Math.pow(2,s),p=p-A}return(M?-1:1)*v*Math.pow(2,p-s)},oa.write=function(i,n,r,s,l,p){var v,c,x,A=p*8-l-1,T=(1<<A)-1,R=T>>1,P=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=s?0:p-1,I=s?1:-1,j=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(c=isNaN(n)?1:0,v=T):(v=Math.floor(Math.log(n)/Math.LN2),n*(x=Math.pow(2,-v))<1&&(v--,x*=2),v+R>=1?n+=P/x:n+=P*Math.pow(2,1-R),n*x>=2&&(v++,x/=2),v+R>=T?(c=0,v=T):v+R>=1?(c=(n*x-1)*Math.pow(2,l),v=v+R):(c=n*Math.pow(2,R-1)*Math.pow(2,l),v=0));l>=8;i[r+M]=c&255,M+=I,c/=256,l-=8);for(v=v<<l|c,A+=l;A>0;i[r+M]=v&255,M+=I,v/=256,A-=8);i[r+M-I]|=j*128}),oa}var sa,$l;function Kd(){if($l)return sa;$l=1;var i={}.toString;return sa=Array.isArray||function(n){return i.call(n)=="[object Array]"},sa}/*!
|
|
87
87
|
* The buffer module from node.js, for the browser.
|
|
88
88
|
*
|
|
89
89
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
90
90
|
* @license MIT
|
|
91
|
-
*/var Bl;function Qd(){return Bl||(Bl=1,function(i){var n=Vd(),r=Zd(),s=Kd();i.Buffer=c,i.SlowBuffer=X,i.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=Dl.TYPED_ARRAY_SUPPORT!==void 0?Dl.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=p();function l(){try{var u=new Uint8Array(1);return u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},u.foo()===42&&typeof u.subarray=="function"&&u.subarray(1,1).byteLength===0}catch{return!1}}function p(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(u,h){if(p()<h)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(h),u.__proto__=c.prototype):(u===null&&(u=new c(h)),u.length=h),u}function c(u,h,_){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(u,h,_);if(typeof u=="number"){if(typeof h=="string")throw new Error("If encoding is specified then the first argument must be a string");return R(this,u)}return x(this,u,h,_)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function x(u,h,_,k){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&h instanceof ArrayBuffer?I(u,h,_,k):typeof h=="string"?P(u,h,_):j(u,h)}c.from=function(u,h,_){return x(null,u,h,_)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function A(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function T(u,h,_,k){return A(h),h<=0?v(u,h):_!==void 0?typeof k=="string"?v(u,h).fill(_,k):v(u,h).fill(_):v(u,h)}c.alloc=function(u,h,_){return T(null,u,h,_)};function R(u,h){if(A(h),u=v(u,h<0?0:F(h)|0),!c.TYPED_ARRAY_SUPPORT)for(var _=0;_<h;++_)u[_]=0;return u}c.allocUnsafe=function(u){return R(null,u)},c.allocUnsafeSlow=function(u){return R(null,u)};function P(u,h,_){if((typeof _!="string"||_==="")&&(_="utf8"),!c.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var k=ie(h,_)|0;u=v(u,k);var q=u.write(h,_);return q!==k&&(u=u.slice(0,q)),u}function M(u,h){var _=h.length<0?0:F(h.length)|0;u=v(u,_);for(var k=0;k<_;k+=1)u[k]=h[k]&255;return u}function I(u,h,_,k){if(h.byteLength,_<0||h.byteLength<_)throw new RangeError("'offset' is out of bounds");if(h.byteLength<_+(k||0))throw new RangeError("'length' is out of bounds");return _===void 0&&k===void 0?h=new Uint8Array(h):k===void 0?h=new Uint8Array(h,_):h=new Uint8Array(h,_,k),c.TYPED_ARRAY_SUPPORT?(u=h,u.__proto__=c.prototype):u=M(u,h),u}function j(u,h){if(c.isBuffer(h)){var _=F(h.length)|0;return u=v(u,_),u.length===0||h.copy(u,0,0,_),u}if(h){if(typeof ArrayBuffer<"u"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||De(h.length)?v(u,0):M(u,h);if(h.type==="Buffer"&&s(h.data))return M(u,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function F(u){if(u>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return u|0}function X(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,h){if(!c.isBuffer(u)||!c.isBuffer(h))throw new TypeError("Arguments must be Buffers");if(u===h)return 0;for(var _=u.length,k=h.length,q=0,Q=Math.min(_,k);q<Q;++q)if(u[q]!==h[q]){_=u[q],k=h[q];break}return _<k?-1:k<_?1:0},c.isEncoding=function(u){switch(String(u).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}},c.concat=function(u,h){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);var _;if(h===void 0)for(h=0,_=0;_<u.length;++_)h+=u[_].length;var k=c.allocUnsafe(h),q=0;for(_=0;_<u.length;++_){var Q=u[_];if(!c.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(k,q),q+=Q.length}return k};function ie(u,h){if(c.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var _=u.length;if(_===0)return 0;for(var k=!1;;)switch(h){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return B(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Z(u).length;default:if(k)return B(u).length;h=(""+h).toLowerCase(),k=!0}}c.byteLength=ie;function oe(u,h,_){var k=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,h>>>=0,_<=h))return"";for(u||(u="utf8");;)switch(u){case"hex":return w(this,h,_);case"utf8":case"utf-8":return N(this,h,_);case"ascii":return d(this,h,_);case"latin1":case"binary":return f(this,h,_);case"base64":return Te(this,h,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,h,_);default:if(k)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),k=!0}}c.prototype._isBuffer=!0;function ce(u,h,_){var k=u[h];u[h]=u[_],u[_]=k}c.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)ce(this,h,h+1);return this},c.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)ce(this,h,h+3),ce(this,h+1,h+2);return this},c.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)ce(this,h,h+7),ce(this,h+1,h+6),ce(this,h+2,h+5),ce(this,h+3,h+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?N(this,0,u):oe.apply(this,arguments)},c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){var u="",h=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,h).match(/.{2}/g).join(" "),this.length>h&&(u+=" ... ")),"<Buffer "+u+">"},c.prototype.compare=function(u,h,_,k,q){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(h===void 0&&(h=0),_===void 0&&(_=u?u.length:0),k===void 0&&(k=0),q===void 0&&(q=this.length),h<0||_>u.length||k<0||q>this.length)throw new RangeError("out of range index");if(k>=q&&h>=_)return 0;if(k>=q)return-1;if(h>=_)return 1;if(h>>>=0,_>>>=0,k>>>=0,q>>>=0,this===u)return 0;for(var Q=q-k,Ae=_-h,we=Math.min(Q,Ae),Re=this.slice(k,q),Se=u.slice(h,_),Le=0;Le<we;++Le)if(Re[Le]!==Se[Le]){Q=Re[Le],Ae=Se[Le];break}return Q<Ae?-1:Ae<Q?1:0};function K(u,h,_,k,q){if(u.length===0)return-1;if(typeof _=="string"?(k=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=q?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(q)return-1;_=u.length-1}else if(_<0)if(q)_=0;else return-1;if(typeof h=="string"&&(h=c.from(h,k)),c.isBuffer(h))return h.length===0?-1:fe(u,h,_,k,q);if(typeof h=="number")return h=h&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(u,h,_):Uint8Array.prototype.lastIndexOf.call(u,h,_):fe(u,[h],_,k,q);throw new TypeError("val must be string, number or Buffer")}function fe(u,h,_,k,q){var Q=1,Ae=u.length,we=h.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(u.length<2||h.length<2)return-1;Q=2,Ae/=2,we/=2,_/=2}function Re(Ge,Je){return Q===1?Ge[Je]:Ge.readUInt16BE(Je*Q)}var Se;if(q){var Le=-1;for(Se=_;Se<Ae;Se++)if(Re(u,Se)===Re(h,Le===-1?0:Se-Le)){if(Le===-1&&(Le=Se),Se-Le+1===we)return Le*Q}else Le!==-1&&(Se-=Se-Le),Le=-1}else for(_+we>Ae&&(_=Ae-we),Se=_;Se>=0;Se--){for(var Ne=!0,ke=0;ke<we;ke++)if(Re(u,Se+ke)!==Re(h,ke)){Ne=!1;break}if(Ne)return Se}return-1}c.prototype.includes=function(u,h,_){return this.indexOf(u,h,_)!==-1},c.prototype.indexOf=function(u,h,_){return K(this,u,h,_,!0)},c.prototype.lastIndexOf=function(u,h,_){return K(this,u,h,_,!1)};function ee(u,h,_,k){_=Number(_)||0;var q=u.length-_;k?(k=Number(k),k>q&&(k=q)):k=q;var Q=h.length;if(Q%2!==0)throw new TypeError("Invalid hex string");k>Q/2&&(k=Q/2);for(var Ae=0;Ae<k;++Ae){var we=parseInt(h.substr(Ae*2,2),16);if(isNaN(we))return Ae;u[_+Ae]=we}return Ae}function J(u,h,_,k){return se(B(h,u.length-_),u,_,k)}function ve(u,h,_,k){return se(z(h),u,_,k)}function he(u,h,_,k){return ve(u,h,_,k)}function te(u,h,_,k){return se(Z(h),u,_,k)}function Oe(u,h,_,k){return se(Y(h,u.length-_),u,_,k)}c.prototype.write=function(u,h,_,k){if(h===void 0)k="utf8",_=this.length,h=0;else if(_===void 0&&typeof h=="string")k=h,_=this.length,h=0;else if(isFinite(h))h=h|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 q=this.length-h;if((_===void 0||_>q)&&(_=q),u.length>0&&(_<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var Q=!1;;)switch(k){case"hex":return ee(this,u,h,_);case"utf8":case"utf-8":return J(this,u,h,_);case"ascii":return ve(this,u,h,_);case"latin1":case"binary":return he(this,u,h,_);case"base64":return te(this,u,h,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,u,h,_);default:if(Q)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),Q=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Te(u,h,_){return h===0&&_===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(h,_))}function N(u,h,_){_=Math.min(u.length,_);for(var k=[],q=h;q<_;){var Q=u[q],Ae=null,we=Q>239?4:Q>223?3:Q>191?2:1;if(q+we<=_){var Re,Se,Le,Ne;switch(we){case 1:Q<128&&(Ae=Q);break;case 2:Re=u[q+1],(Re&192)===128&&(Ne=(Q&31)<<6|Re&63,Ne>127&&(Ae=Ne));break;case 3:Re=u[q+1],Se=u[q+2],(Re&192)===128&&(Se&192)===128&&(Ne=(Q&15)<<12|(Re&63)<<6|Se&63,Ne>2047&&(Ne<55296||Ne>57343)&&(Ae=Ne));break;case 4:Re=u[q+1],Se=u[q+2],Le=u[q+3],(Re&192)===128&&(Se&192)===128&&(Le&192)===128&&(Ne=(Q&15)<<18|(Re&63)<<12|(Se&63)<<6|Le&63,Ne>65535&&Ne<1114112&&(Ae=Ne))}}Ae===null?(Ae=65533,we=1):Ae>65535&&(Ae-=65536,k.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),k.push(Ae),q+=we}return O(k)}var E=4096;function O(u){var h=u.length;if(h<=E)return String.fromCharCode.apply(String,u);for(var _="",k=0;k<h;)_+=String.fromCharCode.apply(String,u.slice(k,k+=E));return _}function d(u,h,_){var k="";_=Math.min(u.length,_);for(var q=h;q<_;++q)k+=String.fromCharCode(u[q]&127);return k}function f(u,h,_){var k="";_=Math.min(u.length,_);for(var q=h;q<_;++q)k+=String.fromCharCode(u[q]);return k}function w(u,h,_){var k=u.length;(!h||h<0)&&(h=0),(!_||_<0||_>k)&&(_=k);for(var q="",Q=h;Q<_;++Q)q+=_e(u[Q]);return q}function g(u,h,_){for(var k=u.slice(h,_),q="",Q=0;Q<k.length;Q+=2)q+=String.fromCharCode(k[Q]+k[Q+1]*256);return q}c.prototype.slice=function(u,h){var _=this.length;u=~~u,h=h===void 0?_:~~h,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),h<0?(h+=_,h<0&&(h=0)):h>_&&(h=_),h<u&&(h=u);var k;if(c.TYPED_ARRAY_SUPPORT)k=this.subarray(u,h),k.__proto__=c.prototype;else{var q=h-u;k=new c(q,void 0);for(var Q=0;Q<q;++Q)k[Q]=this[Q+u]}return k};function m(u,h,_){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+h>_)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=this[u],q=1,Q=0;++Q<h&&(q*=256);)k+=this[u+Q]*q;return k},c.prototype.readUIntBE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=this[u+--h],q=1;h>0&&(q*=256);)k+=this[u+--h]*q;return k},c.prototype.readUInt8=function(u,h){return h||m(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,h){return h||m(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,h){return h||m(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,h){return h||m(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUInt32BE=function(u,h){return h||m(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readIntLE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=this[u],q=1,Q=0;++Q<h&&(q*=256);)k+=this[u+Q]*q;return q*=128,k>=q&&(k-=Math.pow(2,8*h)),k},c.prototype.readIntBE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=h,q=1,Q=this[u+--k];k>0&&(q*=256);)Q+=this[u+--k]*q;return q*=128,Q>=q&&(Q-=Math.pow(2,8*h)),Q},c.prototype.readInt8=function(u,h){return h||m(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,h){h||m(u,2,this.length);var _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},c.prototype.readInt16BE=function(u,h){h||m(u,2,this.length);var _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},c.prototype.readInt32LE=function(u,h){return h||m(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,h){return h||m(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readFloatLE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!1,52,8)};function C(u,h,_,k,q,Q){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>q||h<Q)throw new RangeError('"value" argument is out of bounds');if(_+k>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,h,_,k){if(u=+u,h=h|0,_=_|0,!k){var q=Math.pow(2,8*_)-1;C(this,u,h,_,q,0)}var Q=1,Ae=0;for(this[h]=u&255;++Ae<_&&(Q*=256);)this[h+Ae]=u/Q&255;return h+_},c.prototype.writeUIntBE=function(u,h,_,k){if(u=+u,h=h|0,_=_|0,!k){var q=Math.pow(2,8*_)-1;C(this,u,h,_,q,0)}var Q=_-1,Ae=1;for(this[h+Q]=u&255;--Q>=0&&(Ae*=256);)this[h+Q]=u/Ae&255;return h+_},c.prototype.writeUInt8=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[h]=u&255,h+1};function W(u,h,_,k){h<0&&(h=65535+h+1);for(var q=0,Q=Math.min(u.length-_,2);q<Q;++q)u[_+q]=(h&255<<8*(k?q:1-q))>>>(k?q:1-q)*8}c.prototype.writeUInt16LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):W(this,u,h,!0),h+2},c.prototype.writeUInt16BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):W(this,u,h,!1),h+2};function V(u,h,_,k){h<0&&(h=4294967295+h+1);for(var q=0,Q=Math.min(u.length-_,4);q<Q;++q)u[_+q]=h>>>(k?q:3-q)*8&255}c.prototype.writeUInt32LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255):V(this,u,h,!0),h+4},c.prototype.writeUInt32BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):V(this,u,h,!1),h+4},c.prototype.writeIntLE=function(u,h,_,k){if(u=+u,h=h|0,!k){var q=Math.pow(2,8*_-1);C(this,u,h,_,q-1,-q)}var Q=0,Ae=1,we=0;for(this[h]=u&255;++Q<_&&(Ae*=256);)u<0&&we===0&&this[h+Q-1]!==0&&(we=1),this[h+Q]=(u/Ae>>0)-we&255;return h+_},c.prototype.writeIntBE=function(u,h,_,k){if(u=+u,h=h|0,!k){var q=Math.pow(2,8*_-1);C(this,u,h,_,q-1,-q)}var Q=_-1,Ae=1,we=0;for(this[h+Q]=u&255;--Q>=0&&(Ae*=256);)u<0&&we===0&&this[h+Q+1]!==0&&(we=1),this[h+Q]=(u/Ae>>0)-we&255;return h+_},c.prototype.writeInt8=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,1,127,-128),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[h]=u&255,h+1},c.prototype.writeInt16LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):W(this,u,h,!0),h+2},c.prototype.writeInt16BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):W(this,u,h,!1),h+2},c.prototype.writeInt32LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24):V(this,u,h,!0),h+4},c.prototype.writeInt32BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):V(this,u,h,!1),h+4};function ae(u,h,_,k,q,Q){if(_+k>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ue(u,h,_,k,q){return q||ae(u,h,_,4),r.write(u,h,_,k,23,4),_+4}c.prototype.writeFloatLE=function(u,h,_){return ue(this,u,h,!0,_)},c.prototype.writeFloatBE=function(u,h,_){return ue(this,u,h,!1,_)};function be(u,h,_,k,q){return q||ae(u,h,_,8),r.write(u,h,_,k,52,8),_+8}c.prototype.writeDoubleLE=function(u,h,_){return be(this,u,h,!0,_)},c.prototype.writeDoubleBE=function(u,h,_){return be(this,u,h,!1,_)},c.prototype.copy=function(u,h,_,k){if(_||(_=0),!k&&k!==0&&(k=this.length),h>=u.length&&(h=u.length),h||(h=0),k>0&&k<_&&(k=_),k===_||u.length===0||this.length===0)return 0;if(h<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),u.length-h<k-_&&(k=u.length-h+_);var q=k-_,Q;if(this===u&&_<h&&h<k)for(Q=q-1;Q>=0;--Q)u[Q+h]=this[Q+_];else if(q<1e3||!c.TYPED_ARRAY_SUPPORT)for(Q=0;Q<q;++Q)u[Q+h]=this[Q+_];else Uint8Array.prototype.set.call(u,this.subarray(_,_+q),h);return q},c.prototype.fill=function(u,h,_,k){if(typeof u=="string"){if(typeof h=="string"?(k=h,h=0,_=this.length):typeof _=="string"&&(k=_,_=this.length),u.length===1){var q=u.charCodeAt(0);q<256&&(u=q)}if(k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!c.isEncoding(k))throw new TypeError("Unknown encoding: "+k)}else typeof u=="number"&&(u=u&255);if(h<0||this.length<h||this.length<_)throw new RangeError("Out of range index");if(_<=h)return this;h=h>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);var Q;if(typeof u=="number")for(Q=h;Q<_;++Q)this[Q]=u;else{var Ae=c.isBuffer(u)?u:B(new c(u,k).toString()),we=Ae.length;for(Q=0;Q<_-h;++Q)this[Q+h]=Ae[Q%we]}return this};var ne=/[^+\/0-9A-Za-z-_]/g;function de(u){if(u=Ce(u).replace(ne,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ce(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function _e(u){return u<16?"0"+u.toString(16):u.toString(16)}function B(u,h){h=h||1/0;for(var _,k=u.length,q=null,Q=[],Ae=0;Ae<k;++Ae){if(_=u.charCodeAt(Ae),_>55295&&_<57344){if(!q){if(_>56319){(h-=3)>-1&&Q.push(239,191,189);continue}else if(Ae+1===k){(h-=3)>-1&&Q.push(239,191,189);continue}q=_;continue}if(_<56320){(h-=3)>-1&&Q.push(239,191,189),q=_;continue}_=(q-55296<<10|_-56320)+65536}else q&&(h-=3)>-1&&Q.push(239,191,189);if(q=null,_<128){if((h-=1)<0)break;Q.push(_)}else if(_<2048){if((h-=2)<0)break;Q.push(_>>6|192,_&63|128)}else if(_<65536){if((h-=3)<0)break;Q.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((h-=4)<0)break;Q.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Q}function z(u){for(var h=[],_=0;_<u.length;++_)h.push(u.charCodeAt(_)&255);return h}function Y(u,h){for(var _,k,q,Q=[],Ae=0;Ae<u.length&&!((h-=2)<0);++Ae)_=u.charCodeAt(Ae),k=_>>8,q=_%256,Q.push(q),Q.push(k);return Q}function Z(u){return n.toByteArray(de(u))}function se(u,h,_,k){for(var q=0;q<k&&!(q+_>=h.length||q>=u.length);++q)h[q+_]=u[q];return q}function De(u){return u!==u}}(Il)),Il}Qd();var kr;if(typeof window<"u"&&window.crypto&&(kr=window.crypto),!kr&&typeof window<"u"&&window.msCrypto&&(kr=window.msCrypto),!kr&&typeof global<"u"&&global.crypto&&(kr=global.crypto),!kr&&typeof require=="function")try{kr=require("crypto")}catch{}var jl={};/*! *****************************************************************************
|
|
91
|
+
*/var Bl;function Qd(){return Bl||(Bl=1,function(i){var n=Vd(),r=Zd(),s=Kd();i.Buffer=c,i.SlowBuffer=X,i.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=Dl.TYPED_ARRAY_SUPPORT!==void 0?Dl.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=p();function l(){try{var u=new Uint8Array(1);return u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},u.foo()===42&&typeof u.subarray=="function"&&u.subarray(1,1).byteLength===0}catch{return!1}}function p(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(u,h){if(p()<h)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(h),u.__proto__=c.prototype):(u===null&&(u=new c(h)),u.length=h),u}function c(u,h,_){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(u,h,_);if(typeof u=="number"){if(typeof h=="string")throw new Error("If encoding is specified then the first argument must be a string");return R(this,u)}return x(this,u,h,_)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function x(u,h,_,k){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&h instanceof ArrayBuffer?I(u,h,_,k):typeof h=="string"?P(u,h,_):j(u,h)}c.from=function(u,h,_){return x(null,u,h,_)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function A(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function T(u,h,_,k){return A(h),h<=0?v(u,h):_!==void 0?typeof k=="string"?v(u,h).fill(_,k):v(u,h).fill(_):v(u,h)}c.alloc=function(u,h,_){return T(null,u,h,_)};function R(u,h){if(A(h),u=v(u,h<0?0:F(h)|0),!c.TYPED_ARRAY_SUPPORT)for(var _=0;_<h;++_)u[_]=0;return u}c.allocUnsafe=function(u){return R(null,u)},c.allocUnsafeSlow=function(u){return R(null,u)};function P(u,h,_){if((typeof _!="string"||_==="")&&(_="utf8"),!c.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var k=ie(h,_)|0;u=v(u,k);var q=u.write(h,_);return q!==k&&(u=u.slice(0,q)),u}function M(u,h){var _=h.length<0?0:F(h.length)|0;u=v(u,_);for(var k=0;k<_;k+=1)u[k]=h[k]&255;return u}function I(u,h,_,k){if(h.byteLength,_<0||h.byteLength<_)throw new RangeError("'offset' is out of bounds");if(h.byteLength<_+(k||0))throw new RangeError("'length' is out of bounds");return _===void 0&&k===void 0?h=new Uint8Array(h):k===void 0?h=new Uint8Array(h,_):h=new Uint8Array(h,_,k),c.TYPED_ARRAY_SUPPORT?(u=h,u.__proto__=c.prototype):u=M(u,h),u}function j(u,h){if(c.isBuffer(h)){var _=F(h.length)|0;return u=v(u,_),u.length===0||h.copy(u,0,0,_),u}if(h){if(typeof ArrayBuffer<"u"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||De(h.length)?v(u,0):M(u,h);if(h.type==="Buffer"&&s(h.data))return M(u,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function F(u){if(u>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return u|0}function X(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,h){if(!c.isBuffer(u)||!c.isBuffer(h))throw new TypeError("Arguments must be Buffers");if(u===h)return 0;for(var _=u.length,k=h.length,q=0,Q=Math.min(_,k);q<Q;++q)if(u[q]!==h[q]){_=u[q],k=h[q];break}return _<k?-1:k<_?1:0},c.isEncoding=function(u){switch(String(u).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}},c.concat=function(u,h){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);var _;if(h===void 0)for(h=0,_=0;_<u.length;++_)h+=u[_].length;var k=c.allocUnsafe(h),q=0;for(_=0;_<u.length;++_){var Q=u[_];if(!c.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(k,q),q+=Q.length}return k};function ie(u,h){if(c.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var _=u.length;if(_===0)return 0;for(var k=!1;;)switch(h){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return B(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Z(u).length;default:if(k)return B(u).length;h=(""+h).toLowerCase(),k=!0}}c.byteLength=ie;function oe(u,h,_){var k=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,h>>>=0,_<=h))return"";for(u||(u="utf8");;)switch(u){case"hex":return w(this,h,_);case"utf8":case"utf-8":return N(this,h,_);case"ascii":return d(this,h,_);case"latin1":case"binary":return f(this,h,_);case"base64":return Te(this,h,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,h,_);default:if(k)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),k=!0}}c.prototype._isBuffer=!0;function ce(u,h,_){var k=u[h];u[h]=u[_],u[_]=k}c.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)ce(this,h,h+1);return this},c.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)ce(this,h,h+3),ce(this,h+1,h+2);return this},c.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)ce(this,h,h+7),ce(this,h+1,h+6),ce(this,h+2,h+5),ce(this,h+3,h+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?N(this,0,u):oe.apply(this,arguments)},c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){var u="",h=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,h).match(/.{2}/g).join(" "),this.length>h&&(u+=" ... ")),"<Buffer "+u+">"},c.prototype.compare=function(u,h,_,k,q){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(h===void 0&&(h=0),_===void 0&&(_=u?u.length:0),k===void 0&&(k=0),q===void 0&&(q=this.length),h<0||_>u.length||k<0||q>this.length)throw new RangeError("out of range index");if(k>=q&&h>=_)return 0;if(k>=q)return-1;if(h>=_)return 1;if(h>>>=0,_>>>=0,k>>>=0,q>>>=0,this===u)return 0;for(var Q=q-k,Ae=_-h,we=Math.min(Q,Ae),Re=this.slice(k,q),Se=u.slice(h,_),Le=0;Le<we;++Le)if(Re[Le]!==Se[Le]){Q=Re[Le],Ae=Se[Le];break}return Q<Ae?-1:Ae<Q?1:0};function K(u,h,_,k,q){if(u.length===0)return-1;if(typeof _=="string"?(k=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=q?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(q)return-1;_=u.length-1}else if(_<0)if(q)_=0;else return-1;if(typeof h=="string"&&(h=c.from(h,k)),c.isBuffer(h))return h.length===0?-1:fe(u,h,_,k,q);if(typeof h=="number")return h=h&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(u,h,_):Uint8Array.prototype.lastIndexOf.call(u,h,_):fe(u,[h],_,k,q);throw new TypeError("val must be string, number or Buffer")}function fe(u,h,_,k,q){var Q=1,Ae=u.length,we=h.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(u.length<2||h.length<2)return-1;Q=2,Ae/=2,we/=2,_/=2}function Re(Ge,Je){return Q===1?Ge[Je]:Ge.readUInt16BE(Je*Q)}var Se;if(q){var Le=-1;for(Se=_;Se<Ae;Se++)if(Re(u,Se)===Re(h,Le===-1?0:Se-Le)){if(Le===-1&&(Le=Se),Se-Le+1===we)return Le*Q}else Le!==-1&&(Se-=Se-Le),Le=-1}else for(_+we>Ae&&(_=Ae-we),Se=_;Se>=0;Se--){for(var Ne=!0,ke=0;ke<we;ke++)if(Re(u,Se+ke)!==Re(h,ke)){Ne=!1;break}if(Ne)return Se}return-1}c.prototype.includes=function(u,h,_){return this.indexOf(u,h,_)!==-1},c.prototype.indexOf=function(u,h,_){return K(this,u,h,_,!0)},c.prototype.lastIndexOf=function(u,h,_){return K(this,u,h,_,!1)};function ee(u,h,_,k){_=Number(_)||0;var q=u.length-_;k?(k=Number(k),k>q&&(k=q)):k=q;var Q=h.length;if(Q%2!==0)throw new TypeError("Invalid hex string");k>Q/2&&(k=Q/2);for(var Ae=0;Ae<k;++Ae){var we=parseInt(h.substr(Ae*2,2),16);if(isNaN(we))return Ae;u[_+Ae]=we}return Ae}function J(u,h,_,k){return se(B(h,u.length-_),u,_,k)}function ve(u,h,_,k){return se(z(h),u,_,k)}function he(u,h,_,k){return ve(u,h,_,k)}function te(u,h,_,k){return se(Z(h),u,_,k)}function Oe(u,h,_,k){return se(Y(h,u.length-_),u,_,k)}c.prototype.write=function(u,h,_,k){if(h===void 0)k="utf8",_=this.length,h=0;else if(_===void 0&&typeof h=="string")k=h,_=this.length,h=0;else if(isFinite(h))h=h|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 q=this.length-h;if((_===void 0||_>q)&&(_=q),u.length>0&&(_<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var Q=!1;;)switch(k){case"hex":return ee(this,u,h,_);case"utf8":case"utf-8":return J(this,u,h,_);case"ascii":return ve(this,u,h,_);case"latin1":case"binary":return he(this,u,h,_);case"base64":return te(this,u,h,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,u,h,_);default:if(Q)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),Q=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Te(u,h,_){return h===0&&_===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(h,_))}function N(u,h,_){_=Math.min(u.length,_);for(var k=[],q=h;q<_;){var Q=u[q],Ae=null,we=Q>239?4:Q>223?3:Q>191?2:1;if(q+we<=_){var Re,Se,Le,Ne;switch(we){case 1:Q<128&&(Ae=Q);break;case 2:Re=u[q+1],(Re&192)===128&&(Ne=(Q&31)<<6|Re&63,Ne>127&&(Ae=Ne));break;case 3:Re=u[q+1],Se=u[q+2],(Re&192)===128&&(Se&192)===128&&(Ne=(Q&15)<<12|(Re&63)<<6|Se&63,Ne>2047&&(Ne<55296||Ne>57343)&&(Ae=Ne));break;case 4:Re=u[q+1],Se=u[q+2],Le=u[q+3],(Re&192)===128&&(Se&192)===128&&(Le&192)===128&&(Ne=(Q&15)<<18|(Re&63)<<12|(Se&63)<<6|Le&63,Ne>65535&&Ne<1114112&&(Ae=Ne))}}Ae===null?(Ae=65533,we=1):Ae>65535&&(Ae-=65536,k.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),k.push(Ae),q+=we}return O(k)}var E=4096;function O(u){var h=u.length;if(h<=E)return String.fromCharCode.apply(String,u);for(var _="",k=0;k<h;)_+=String.fromCharCode.apply(String,u.slice(k,k+=E));return _}function d(u,h,_){var k="";_=Math.min(u.length,_);for(var q=h;q<_;++q)k+=String.fromCharCode(u[q]&127);return k}function f(u,h,_){var k="";_=Math.min(u.length,_);for(var q=h;q<_;++q)k+=String.fromCharCode(u[q]);return k}function w(u,h,_){var k=u.length;(!h||h<0)&&(h=0),(!_||_<0||_>k)&&(_=k);for(var q="",Q=h;Q<_;++Q)q+=_e(u[Q]);return q}function g(u,h,_){for(var k=u.slice(h,_),q="",Q=0;Q<k.length;Q+=2)q+=String.fromCharCode(k[Q]+k[Q+1]*256);return q}c.prototype.slice=function(u,h){var _=this.length;u=~~u,h=h===void 0?_:~~h,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),h<0?(h+=_,h<0&&(h=0)):h>_&&(h=_),h<u&&(h=u);var k;if(c.TYPED_ARRAY_SUPPORT)k=this.subarray(u,h),k.__proto__=c.prototype;else{var q=h-u;k=new c(q,void 0);for(var Q=0;Q<q;++Q)k[Q]=this[Q+u]}return k};function m(u,h,_){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+h>_)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=this[u],q=1,Q=0;++Q<h&&(q*=256);)k+=this[u+Q]*q;return k},c.prototype.readUIntBE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=this[u+--h],q=1;h>0&&(q*=256);)k+=this[u+--h]*q;return k},c.prototype.readUInt8=function(u,h){return h||m(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,h){return h||m(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,h){return h||m(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,h){return h||m(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUInt32BE=function(u,h){return h||m(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readIntLE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=this[u],q=1,Q=0;++Q<h&&(q*=256);)k+=this[u+Q]*q;return q*=128,k>=q&&(k-=Math.pow(2,8*h)),k},c.prototype.readIntBE=function(u,h,_){u=u|0,h=h|0,_||m(u,h,this.length);for(var k=h,q=1,Q=this[u+--k];k>0&&(q*=256);)Q+=this[u+--k]*q;return q*=128,Q>=q&&(Q-=Math.pow(2,8*h)),Q},c.prototype.readInt8=function(u,h){return h||m(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,h){h||m(u,2,this.length);var _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},c.prototype.readInt16BE=function(u,h){h||m(u,2,this.length);var _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},c.prototype.readInt32LE=function(u,h){return h||m(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,h){return h||m(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readFloatLE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!1,52,8)};function C(u,h,_,k,q,Q){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>q||h<Q)throw new RangeError('"value" argument is out of bounds');if(_+k>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,h,_,k){if(u=+u,h=h|0,_=_|0,!k){var q=Math.pow(2,8*_)-1;C(this,u,h,_,q,0)}var Q=1,Ae=0;for(this[h]=u&255;++Ae<_&&(Q*=256);)this[h+Ae]=u/Q&255;return h+_},c.prototype.writeUIntBE=function(u,h,_,k){if(u=+u,h=h|0,_=_|0,!k){var q=Math.pow(2,8*_)-1;C(this,u,h,_,q,0)}var Q=_-1,Ae=1;for(this[h+Q]=u&255;--Q>=0&&(Ae*=256);)this[h+Q]=u/Ae&255;return h+_},c.prototype.writeUInt8=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[h]=u&255,h+1};function W(u,h,_,k){h<0&&(h=65535+h+1);for(var q=0,Q=Math.min(u.length-_,2);q<Q;++q)u[_+q]=(h&255<<8*(k?q:1-q))>>>(k?q:1-q)*8}c.prototype.writeUInt16LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):W(this,u,h,!0),h+2},c.prototype.writeUInt16BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):W(this,u,h,!1),h+2};function V(u,h,_,k){h<0&&(h=4294967295+h+1);for(var q=0,Q=Math.min(u.length-_,4);q<Q;++q)u[_+q]=h>>>(k?q:3-q)*8&255}c.prototype.writeUInt32LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255):V(this,u,h,!0),h+4},c.prototype.writeUInt32BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):V(this,u,h,!1),h+4},c.prototype.writeIntLE=function(u,h,_,k){if(u=+u,h=h|0,!k){var q=Math.pow(2,8*_-1);C(this,u,h,_,q-1,-q)}var Q=0,Ae=1,we=0;for(this[h]=u&255;++Q<_&&(Ae*=256);)u<0&&we===0&&this[h+Q-1]!==0&&(we=1),this[h+Q]=(u/Ae>>0)-we&255;return h+_},c.prototype.writeIntBE=function(u,h,_,k){if(u=+u,h=h|0,!k){var q=Math.pow(2,8*_-1);C(this,u,h,_,q-1,-q)}var Q=_-1,Ae=1,we=0;for(this[h+Q]=u&255;--Q>=0&&(Ae*=256);)u<0&&we===0&&this[h+Q+1]!==0&&(we=1),this[h+Q]=(u/Ae>>0)-we&255;return h+_},c.prototype.writeInt8=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,1,127,-128),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[h]=u&255,h+1},c.prototype.writeInt16LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):W(this,u,h,!0),h+2},c.prototype.writeInt16BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):W(this,u,h,!1),h+2},c.prototype.writeInt32LE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24):V(this,u,h,!0),h+4},c.prototype.writeInt32BE=function(u,h,_){return u=+u,h=h|0,_||C(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):V(this,u,h,!1),h+4};function ae(u,h,_,k,q,Q){if(_+k>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ue(u,h,_,k,q){return q||ae(u,h,_,4),r.write(u,h,_,k,23,4),_+4}c.prototype.writeFloatLE=function(u,h,_){return ue(this,u,h,!0,_)},c.prototype.writeFloatBE=function(u,h,_){return ue(this,u,h,!1,_)};function be(u,h,_,k,q){return q||ae(u,h,_,8),r.write(u,h,_,k,52,8),_+8}c.prototype.writeDoubleLE=function(u,h,_){return be(this,u,h,!0,_)},c.prototype.writeDoubleBE=function(u,h,_){return be(this,u,h,!1,_)},c.prototype.copy=function(u,h,_,k){if(_||(_=0),!k&&k!==0&&(k=this.length),h>=u.length&&(h=u.length),h||(h=0),k>0&&k<_&&(k=_),k===_||u.length===0||this.length===0)return 0;if(h<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),u.length-h<k-_&&(k=u.length-h+_);var q=k-_,Q;if(this===u&&_<h&&h<k)for(Q=q-1;Q>=0;--Q)u[Q+h]=this[Q+_];else if(q<1e3||!c.TYPED_ARRAY_SUPPORT)for(Q=0;Q<q;++Q)u[Q+h]=this[Q+_];else Uint8Array.prototype.set.call(u,this.subarray(_,_+q),h);return q},c.prototype.fill=function(u,h,_,k){if(typeof u=="string"){if(typeof h=="string"?(k=h,h=0,_=this.length):typeof _=="string"&&(k=_,_=this.length),u.length===1){var q=u.charCodeAt(0);q<256&&(u=q)}if(k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!c.isEncoding(k))throw new TypeError("Unknown encoding: "+k)}else typeof u=="number"&&(u=u&255);if(h<0||this.length<h||this.length<_)throw new RangeError("Out of range index");if(_<=h)return this;h=h>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);var Q;if(typeof u=="number")for(Q=h;Q<_;++Q)this[Q]=u;else{var Ae=c.isBuffer(u)?u:B(new c(u,k).toString()),we=Ae.length;for(Q=0;Q<_-h;++Q)this[Q+h]=Ae[Q%we]}return this};var ne=/[^+\/0-9A-Za-z-_]/g;function de(u){if(u=Ce(u).replace(ne,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ce(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function _e(u){return u<16?"0"+u.toString(16):u.toString(16)}function B(u,h){h=h||1/0;for(var _,k=u.length,q=null,Q=[],Ae=0;Ae<k;++Ae){if(_=u.charCodeAt(Ae),_>55295&&_<57344){if(!q){if(_>56319){(h-=3)>-1&&Q.push(239,191,189);continue}else if(Ae+1===k){(h-=3)>-1&&Q.push(239,191,189);continue}q=_;continue}if(_<56320){(h-=3)>-1&&Q.push(239,191,189),q=_;continue}_=(q-55296<<10|_-56320)+65536}else q&&(h-=3)>-1&&Q.push(239,191,189);if(q=null,_<128){if((h-=1)<0)break;Q.push(_)}else if(_<2048){if((h-=2)<0)break;Q.push(_>>6|192,_&63|128)}else if(_<65536){if((h-=3)<0)break;Q.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((h-=4)<0)break;Q.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Q}function z(u){for(var h=[],_=0;_<u.length;++_)h.push(u.charCodeAt(_)&255);return h}function Y(u,h){for(var _,k,q,Q=[],Ae=0;Ae<u.length&&!((h-=2)<0);++Ae)_=u.charCodeAt(Ae),k=_>>8,q=_%256,Q.push(q),Q.push(k);return Q}function Z(u){return n.toByteArray(de(u))}function se(u,h,_,k){for(var q=0;q<k&&!(q+_>=h.length||q>=u.length);++q)h[q+_]=u[q];return q}function De(u){return u!==u}}(Il)),Il}Qd();var Er;if(typeof window<"u"&&window.crypto&&(Er=window.crypto),!Er&&typeof window<"u"&&window.msCrypto&&(Er=window.msCrypto),!Er&&typeof global<"u"&&global.crypto&&(Er=global.crypto),!Er&&typeof require=="function")try{Er=require("crypto")}catch{}var jl={};/*! *****************************************************************************
|
|
92
92
|
Copyright (c) Microsoft Corporation.
|
|
93
93
|
|
|
94
94
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -101,7 +101,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
101
101
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
102
102
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
103
103
|
PERFORMANCE OF THIS SOFTWARE.
|
|
104
|
-
***************************************************************************** */var la=function(i,n){return la=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])},la(i,n)};function Jd(i,n){la(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ca=function(){return ca=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},ca.apply(this,arguments)};function Xd(i,n){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&n.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(i);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function ep(i,n,r,s){var l=arguments.length,p=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,n,r,s);else for(var c=i.length-1;c>=0;c--)(v=i[c])&&(p=(l<3?v(p):l>3?v(n,r,p):v(n,r))||p);return l>3&&p&&Object.defineProperty(n,r,p),p}function tp(i,n){return function(r,s){n(r,s,i)}}function np(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function rp(i,n,r,s){function l(p){return p instanceof r?p:new r(function(v){v(p)})}return new(r||(r=Promise))(function(p,v){function c(T){try{A(s.next(T))}catch(R){v(R)}}function x(T){try{A(s.throw(T))}catch(R){v(R)}}function A(T){T.done?p(T.value):l(T.value).then(c,x)}A((s=s.apply(i,n||[])).next())})}function ip(i,n){var r={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},s,l,p,v;return v={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function c(A){return function(T){return x([A,T])}}function x(A){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(p=A[0]&2?l.return:A[0]?l.throw||((p=l.return)&&p.call(l),0):l.next)&&!(p=p.call(l,A[1])).done)return p;switch(l=0,p&&(A=[A[0]&2,p.value]),A[0]){case 0:case 1:p=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,l=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(p=r.trys,!(p=p.length>0&&p[p.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!p||A[1]>p[0]&&A[1]<p[3])){r.label=A[1];break}if(A[0]===6&&r.label<p[1]){r.label=p[1],p=A;break}if(p&&r.label<p[2]){r.label=p[2],r.ops.push(A);break}p[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(i,r)}catch(T){A=[6,T],l=0}finally{s=p=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}function op(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function sp(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function fa(i){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&i[n],s=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yl(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,p=[],v;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)p.push(l.value)}catch(c){v={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(v)throw v.error}}return p}function ap(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Yl(arguments[n]));return i}function up(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),l=0,n=0;n<r;n++)for(var p=arguments[n],v=0,c=p.length;v<c;v++,l++)s[l]=p[v];return s}function Bi(i){return this instanceof Bi?(this.v=i,this):new Bi(i)}function lp(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,p=[];return l={},v("next"),v("throw"),v("return"),l[Symbol.asyncIterator]=function(){return this},l;function v(P){s[P]&&(l[P]=function(M){return new Promise(function(I,j){p.push([P,M,I,j])>1||c(P,M)})})}function c(P,M){try{x(s[P](M))}catch(I){R(p[0][3],I)}}function x(P){P.value instanceof Bi?Promise.resolve(P.value.v).then(A,T):R(p[0][2],P)}function A(P){c("next",P)}function T(P){c("throw",P)}function R(P,M){P(M),p.shift(),p.length&&c(p[0][0],p[0][1])}}function cp(i){var n,r;return n={},s("next"),s("throw",function(l){throw l}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(l,p){n[l]=i[l]?function(v){return(r=!r)?{value:Bi(i[l](v)),done:l==="return"}:p?p(v):v}:p}}function fp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],r;return n?n.call(i):(i=typeof fa=="function"?fa(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(p){r[p]=i[p]&&function(v){return new Promise(function(c,x){v=i[p](v),l(c,x,v.done,v.value)})}}function l(p,v,c,x){Promise.resolve(x).then(function(A){p({value:A,done:c})},v)}}function hp(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function dp(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function pp(i){return i&&i.__esModule?i:{default:i}}function gp(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function mp(i,n,r){if(!n.has(i))throw new TypeError("attempted to set private field on non-instance");return n.set(i,r),r}const vp=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ca},__asyncDelegator:cp,__asyncGenerator:lp,__asyncValues:fp,__await:Bi,__awaiter:rp,__classPrivateFieldGet:gp,__classPrivateFieldSet:mp,__createBinding:op,__decorate:ep,__exportStar:sp,__extends:Jd,__generator:ip,__importDefault:pp,__importStar:dp,__makeTemplateObject:hp,__metadata:np,__param:tp,__read:Yl,__rest:Xd,__spread:ap,__spreadArrays:up,__values:fa},Symbol.toStringTag,{value:"Module"})),Ul=ra(vp);var ji={},sn={},Fl;function Wl(){return Fl||(Fl=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.MAX_HASHABLE_LENGTH=sn.INIT=sn.KEY=sn.DIGEST_LENGTH=sn.BLOCK_SIZE=void 0,sn.BLOCK_SIZE=64,sn.DIGEST_LENGTH=32,sn.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),sn.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],sn.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),sn}var Yi={},zl;function yp(){if(zl)return Yi;zl=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.RawSha256=void 0;var i=Wl(),n=function(){function r(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(s){if(this.finished)throw new Error("Attempted to update an already finished hash.");var l=0,p=s.byteLength;if(this.bytesHashed+=p,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;p>0;)this.buffer[this.bufferLength++]=s[l++],p--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,l=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),p=this.bufferLength;if(l.setUint8(this.bufferLength++,128),p%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var v=this.bufferLength;v<i.BLOCK_SIZE;v++)l.setUint8(v,0);this.hashBuffer(),this.bufferLength=0}for(var v=this.bufferLength;v<i.BLOCK_SIZE-8;v++)l.setUint8(v,0);l.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),l.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var c=new Uint8Array(i.DIGEST_LENGTH),v=0;v<8;v++)c[v*4]=this.state[v]>>>24&255,c[v*4+1]=this.state[v]>>>16&255,c[v*4+2]=this.state[v]>>>8&255,c[v*4+3]=this.state[v]>>>0&255;return c},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,p=s.state,v=p[0],c=p[1],x=p[2],A=p[3],T=p[4],R=p[5],P=p[6],M=p[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(l[I*4]&255)<<24|(l[I*4+1]&255)<<16|(l[I*4+2]&255)<<8|l[I*4+3]&255;else{var j=this.temp[I-2],F=(j>>>17|j<<15)^(j>>>19|j<<13)^j>>>10;j=this.temp[I-15];var X=(j>>>7|j<<25)^(j>>>18|j<<14)^j>>>3;this.temp[I]=(F+this.temp[I-7]|0)+(X+this.temp[I-16]|0)}var ie=(((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&R^~T&P)|0)+(M+(i.KEY[I]+this.temp[I]|0)|0)|0,oe=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&c^v&x^c&x)|0;M=P,P=R,R=T,T=A+ie|0,A=x,x=c,c=v,v=ie+oe|0}p[0]+=v,p[1]+=c,p[2]+=x,p[3]+=A,p[4]+=T,p[5]+=R,p[6]+=P,p[7]+=M},r}();return Yi.RawSha256=n,Yi}var ql={},Ui={};const _p=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)n.push(l);else if(l<2048)n.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const p=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},wp=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)n+=String.fromCharCode(l);else if(192<=l&&l<224){const p=i[++r];n+=String.fromCharCode((l&31)<<6|p&63)}else if(240<=l&&l<365){const p="%"+[l,i[++r],i[++r],i[++r]].map(v=>v.toString(16)).join("%");n+=decodeURIComponent(p)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function bp(i){return new TextEncoder().encode(i)}function xp(i){return new TextDecoder("utf-8").decode(i)}const Sp=i=>typeof TextEncoder=="function"?bp(i):_p(i),Cp=i=>typeof TextDecoder=="function"?xp(i):wp(i),Ap=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Sp,toUtf8:Cp},Symbol.toStringTag,{value:"Module"})),Dp=ra(Ap);var Hl;function Op(){if(Hl)return Ui;Hl=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.convertToBuffer=void 0;var i=Dp,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return Ui.convertToBuffer=r,Ui}var Fi={},Gl;function Tp(){if(Gl)return Fi;Gl=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return Fi.isEmptyData=i,Fi}var Wi={},Vl;function Mp(){if(Vl)return Wi;Vl=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return Wi.numToUint8=i,Wi}var zi={},Zl;function Ep(){if(Zl)return zi;Zl=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return zi.uint32ArrayFrom=i,zi}var Kl;function Rp(){return Kl||(Kl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Op();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Tp();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Mp();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Ep();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(ql)),ql}var Ql;function Lp(){if(Ql)return ji;Ql=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.Sha256=void 0;var i=Ul,n=Wl(),r=yp(),s=Rp(),l=function(){function v(c){if(this.hash=new r.RawSha256,c){this.outer=new r.RawSha256;var x=p(c),A=new Uint8Array(n.BLOCK_SIZE);A.set(x);for(var T=0;T<n.BLOCK_SIZE;T++)x[T]^=54,A[T]^=92;this.hash.update(x),this.outer.update(A);for(var T=0;T<x.byteLength;T++)x[T]=0}}return v.prototype.update=function(c){if(!((0,s.isEmptyData)(c)||this.error))try{this.hash.update((0,s.convertToBuffer)(c))}catch(x){this.error=x}},v.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},v.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(c){return[2,this.digestSync()]})})},v}();ji.Sha256=l;function p(v){var c=(0,s.convertToBuffer)(v);if(c.byteLength>n.BLOCK_SIZE){var x=new r.RawSha256;x.update(c),c=x.digest()}var A=new Uint8Array(n.BLOCK_SIZE);return A.set(c),A}return ji}var Jl;function kp(){return Jl||(Jl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=Ul;(0,n.__exportStar)(Lp(),i)}(jl)),jl}kp();function Ye(i,n){i!=null&&this.fromString(i,n)}function Nt(){return new Ye(null)}var ir,Ip=0xdeadbeefcafe,Xl=(Ip&16777215)==15715070;function Pp(i,n,r,s,l,p){for(;--p>=0;){var v=n*this[i++]+r[s]+l;l=Math.floor(v/67108864),r[s++]=v&67108863}return l}function Np(i,n,r,s,l,p){for(var v=n&32767,c=n>>15;--p>=0;){var x=this[i]&32767,A=this[i++]>>15,T=c*x+A*v;x=v*x+((T&32767)<<15)+r[s]+(l&1073741823),l=(x>>>30)+(T>>>15)+c*A+(l>>>30),r[s++]=x&1073741823}return l}function $p(i,n,r,s,l,p){for(var v=n&16383,c=n>>14;--p>=0;){var x=this[i]&16383,A=this[i++]>>14,T=c*x+A*v;x=v*x+((T&16383)<<14)+r[s]+l,l=(x>>28)+(T>>14)+c*A,r[s++]=x&268435455}return l}var ec=typeof navigator<"u";ec&&Xl&&navigator.appName=="Microsoft Internet Explorer"?(Ye.prototype.am=Np,ir=30):ec&&Xl&&navigator.appName!="Netscape"?(Ye.prototype.am=Pp,ir=26):(Ye.prototype.am=$p,ir=28),Ye.prototype.DB=ir,Ye.prototype.DM=(1<<ir)-1,Ye.prototype.DV=1<<ir;var ha=52;Ye.prototype.FV=Math.pow(2,ha),Ye.prototype.F1=ha-ir,Ye.prototype.F2=2*ir-ha;var Bp="0123456789abcdefghijklmnopqrstuvwxyz",Ro=new Array,ei,an;for(ei=48,an=0;an<=9;++an)Ro[ei++]=an;for(ei=97,an=10;an<36;++an)Ro[ei++]=an;for(ei=65,an=10;an<36;++an)Ro[ei++]=an;function tc(i){return Bp.charAt(i)}function jp(i,n){var r=Ro[i.charCodeAt(n)];return r??-1}function Yp(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Up(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function da(i){var n=Nt();return n.fromInt(i),n}function Fp(i,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s=i.length,l=!1,p=0;--s>=0;){var v=jp(i,s);if(v<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,p==0?this[this.t++]=v:p+r>this.DB?(this[this.t-1]|=(v&(1<<this.DB-p)-1)<<p,this[this.t++]=v>>this.DB-p):this[this.t-1]|=v<<p,p+=r,p>=this.DB&&(p-=this.DB)}this.clamp(),l&&Ye.ZERO.subTo(this,this)}function Wp(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function zp(i){if(this.s<0)return"-"+this.negate().toString(i);var n;if(i==16)n=4;else if(i==8)n=3;else if(i==2)n=1;else if(i==32)n=5;else if(i==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<n)-1,s,l=!1,p="",v=this.t,c=this.DB-v*this.DB%n;if(v-- >0)for(c<this.DB&&(s=this[v]>>c)>0&&(l=!0,p=tc(s));v>=0;)c<n?(s=(this[v]&(1<<c)-1)<<n-c,s|=this[--v]>>(c+=this.DB-n)):(s=this[v]>>(c-=n)&r,c<=0&&(c+=this.DB,--v)),s>0&&(l=!0),l&&(p+=tc(s));return l?p:"0"}function qp(){var i=Nt();return Ye.ZERO.subTo(this,i),i}function Hp(){return this.s<0?this.negate():this}function Gp(i){var n=this.s-i.s;if(n!=0)return n;var r=this.t;if(n=r-i.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-i[r])!=0)return n;return 0}function pa(i){var n=1,r;return(r=i>>>16)!=0&&(i=r,n+=16),(r=i>>8)!=0&&(i=r,n+=8),(r=i>>4)!=0&&(i=r,n+=4),(r=i>>2)!=0&&(i=r,n+=2),(r=i>>1)!=0&&(i=r,n+=1),n}function Vp(){return this.t<=0?0:this.DB*(this.t-1)+pa(this[this.t-1]^this.s&this.DM)}function Zp(i,n){var r;for(r=this.t-1;r>=0;--r)n[r+i]=this[r];for(r=i-1;r>=0;--r)n[r]=0;n.t=this.t+i,n.s=this.s}function Kp(i,n){for(var r=i;r<this.t;++r)n[r-i]=this[r];n.t=Math.max(this.t-i,0),n.s=this.s}function Qp(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,p=Math.floor(i/this.DB),v=this.s<<r&this.DM,c;for(c=this.t-1;c>=0;--c)n[c+p+1]=this[c]>>s|v,v=(this[c]&l)<<r;for(c=p-1;c>=0;--c)n[c]=0;n[p]=v,n.t=this.t+p+1,n.s=this.s,n.clamp()}function Jp(i,n){n.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){n.t=0;return}var s=i%this.DB,l=this.DB-s,p=(1<<s)-1;n[0]=this[r]>>s;for(var v=r+1;v<this.t;++v)n[v-r-1]|=(this[v]&p)<<l,n[v-r]=this[v]>>s;s>0&&(n[this.t-r-1]|=(this.s&p)<<l),n.t=this.t-r,n.clamp()}function Xp(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],n[r++]=s&this.DM,s>>=this.DB;s-=i.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()}function eg(i,n){var r=this.abs(),s=i.abs(),l=r.t;for(n.t=l+s.t;--l>=0;)n[l]=0;for(l=0;l<s.t;++l)n[l+r.t]=r.am(0,s[l],n,l,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&Ye.ZERO.subTo(n,n)}function tg(i){for(var n=this.abs(),r=i.t=2*n.t;--r>=0;)i[r]=0;for(r=0;r<n.t-1;++r){var s=n.am(r,n[r],i,2*r,0,1);(i[r+n.t]+=n.am(r+1,2*n[r],i,2*r+1,s,n.t-r-1))>=n.DV&&(i[r+n.t]-=n.DV,i[r+n.t+1]=1)}i.t>0&&(i[i.t-1]+=n.am(r,n[r],i,2*r,0,1)),i.s=0,i.clamp()}function ng(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Nt());var p=Nt(),v=this.s,c=i.s,x=this.DB-pa(s[s.t-1]);x>0?(s.lShiftTo(x,p),l.lShiftTo(x,r)):(s.copyTo(p),l.copyTo(r));var A=p.t,T=p[A-1];if(T!=0){var R=T*(1<<this.F1)+(A>1?p[A-2]>>this.F2:0),P=this.FV/R,M=(1<<this.F1)/R,I=1<<this.F2,j=r.t,F=j-A,X=n??Nt();for(p.dlShiftTo(F,X),r.compareTo(X)>=0&&(r[r.t++]=1,r.subTo(X,r)),Ye.ONE.dlShiftTo(A,X),X.subTo(p,p);p.t<A;)p[p.t++]=0;for(;--F>=0;){var ie=r[--j]==T?this.DM:Math.floor(r[j]*P+(r[j-1]+I)*M);if((r[j]+=p.am(0,ie,r,F,0,A))<ie)for(p.dlShiftTo(F,X),r.subTo(X,r);r[j]<--ie;)r.subTo(X,r)}n!=null&&(r.drShiftTo(A,n),v!=c&&Ye.ZERO.subTo(n,n)),r.t=A,r.clamp(),x>0&&r.rShiftTo(x,r),v<0&&Ye.ZERO.subTo(r,r)}}}function rg(i){var n=Nt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(Ye.ZERO)>0&&i.subTo(n,n),n}function ig(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var n=i&3;return n=n*(2-(i&15)*n)&15,n=n*(2-(i&255)*n)&255,n=n*(2-((i&65535)*n&65535))&65535,n=n*(2-i*n%this.DV)%this.DV,n>0?this.DV-n:-n}function og(i){return this.compareTo(i)==0}function sg(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],n[r++]=s&this.DM,s>>=this.DB;s+=i.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),n.t=r,n.clamp()}function ag(i){var n=Nt();return this.addTo(i,n),n}function ug(i){var n=Nt();return this.subTo(i,n),n}function lg(i){var n=Nt();return this.multiplyTo(i,n),n}function cg(i){var n=Nt();return this.divRemTo(i,n,null),n}function ti(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function fg(i){var n=Nt();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(Ye.ZERO)>0&&this.m.subTo(n,n),n}function hg(i){var n=Nt();return i.copyTo(n),this.reduce(n),n}function dg(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var n=0;n<this.m.t;++n){var r=i[n]&32767,s=r*this.mpl+((r*this.mph+(i[n]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=n+this.m.t,i[r]+=this.m.am(0,s,i,n,0,this.m.t);i[r]>=i.DV;)i[r]-=i.DV,i[++r]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function pg(i,n){i.squareTo(n),this.reduce(n)}function gg(i,n,r){i.multiplyTo(n,r),this.reduce(r)}ti.prototype.convert=fg,ti.prototype.revert=hg,ti.prototype.reduce=dg,ti.prototype.mulTo=gg,ti.prototype.sqrTo=pg;function mg(i,n,r){var s=i.bitLength(),l,p=da(1),v=new ti(n);if(s<=0)return p;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var c=new Array,x=3,A=l-1,T=(1<<l)-1;if(c[1]=v.convert(this),l>1){var R=Nt();for(v.sqrTo(c[1],R);x<=T;)c[x]=Nt(),v.mulTo(R,c[x-2],c[x]),x+=2}var P=i.t-1,M,I=!0,j=Nt(),F;for(s=pa(i[P])-1;P>=0;){for(s>=A?M=i[P]>>s-A&T:(M=(i[P]&(1<<s+1)-1)<<A-s,P>0&&(M|=i[P-1]>>this.DB+s-A)),x=l;(M&1)==0;)M>>=1,--x;if((s-=x)<0&&(s+=this.DB,--P),I)c[M].copyTo(p),I=!1;else{for(;x>1;)v.sqrTo(p,j),v.sqrTo(j,p),x-=2;x>0?v.sqrTo(p,j):(F=p,p=j,j=F),v.mulTo(j,c[M],p)}for(;P>=0&&(i[P]&1<<s)==0;)v.sqrTo(p,j),F=p,p=j,j=F,--s<0&&(s=this.DB-1,--P)}var X=v.revert(p);return r(null,X),X}Ye.prototype.copyTo=Yp,Ye.prototype.fromInt=Up,Ye.prototype.fromString=Fp,Ye.prototype.clamp=Wp,Ye.prototype.dlShiftTo=Zp,Ye.prototype.drShiftTo=Kp,Ye.prototype.lShiftTo=Qp,Ye.prototype.rShiftTo=Jp,Ye.prototype.subTo=Xp,Ye.prototype.multiplyTo=eg,Ye.prototype.squareTo=tg,Ye.prototype.divRemTo=ng,Ye.prototype.invDigit=ig,Ye.prototype.addTo=sg,Ye.prototype.toString=zp,Ye.prototype.negate=qp,Ye.prototype.abs=Hp,Ye.prototype.compareTo=Gp,Ye.prototype.bitLength=Vp,Ye.prototype.mod=rg,Ye.prototype.equals=og,Ye.prototype.add=ag,Ye.prototype.subtract=ug,Ye.prototype.multiply=lg,Ye.prototype.divide=cg,Ye.prototype.modPow=mg,Ye.ZERO=da(0),Ye.ONE=da(1);function vg(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,p=[],v=[],c={},x=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:x,headers:{keys:function(){return p},entries:function(){return v},get:function(T){return c[T.toLowerCase()]},has:function(T){return T.toLowerCase()in c}}}};for(var A in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(T,R,P){p.push(R=R.toLowerCase()),v.push([R,P]),c[R]=c[R]?c[R]+","+P:P}),r(x())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(A,n.headers[A]);l.send(n.body||null)})}const yg=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),nc=ra(yg);var rc,ic;function _g(){return ic||(ic=1,rc=self.fetch||(self.fetch=nc.default||nc)),rc}_g();/*!
|
|
104
|
+
***************************************************************************** */var aa=function(i,n){return aa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])},aa(i,n)};function Jd(i,n){aa(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ua=function(){return ua=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},ua.apply(this,arguments)};function Xd(i,n){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&n.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(i);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function ep(i,n,r,s){var l=arguments.length,p=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,n,r,s);else for(var c=i.length-1;c>=0;c--)(v=i[c])&&(p=(l<3?v(p):l>3?v(n,r,p):v(n,r))||p);return l>3&&p&&Object.defineProperty(n,r,p),p}function tp(i,n){return function(r,s){n(r,s,i)}}function np(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function rp(i,n,r,s){function l(p){return p instanceof r?p:new r(function(v){v(p)})}return new(r||(r=Promise))(function(p,v){function c(T){try{A(s.next(T))}catch(R){v(R)}}function x(T){try{A(s.throw(T))}catch(R){v(R)}}function A(T){T.done?p(T.value):l(T.value).then(c,x)}A((s=s.apply(i,n||[])).next())})}function ip(i,n){var r={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},s,l,p,v;return v={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function c(A){return function(T){return x([A,T])}}function x(A){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(p=A[0]&2?l.return:A[0]?l.throw||((p=l.return)&&p.call(l),0):l.next)&&!(p=p.call(l,A[1])).done)return p;switch(l=0,p&&(A=[A[0]&2,p.value]),A[0]){case 0:case 1:p=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,l=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(p=r.trys,!(p=p.length>0&&p[p.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!p||A[1]>p[0]&&A[1]<p[3])){r.label=A[1];break}if(A[0]===6&&r.label<p[1]){r.label=p[1],p=A;break}if(p&&r.label<p[2]){r.label=p[2],r.ops.push(A);break}p[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(i,r)}catch(T){A=[6,T],l=0}finally{s=p=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}function op(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function sp(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function la(i){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&i[n],s=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yl(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,p=[],v;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)p.push(l.value)}catch(c){v={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(v)throw v.error}}return p}function ap(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Yl(arguments[n]));return i}function up(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),l=0,n=0;n<r;n++)for(var p=arguments[n],v=0,c=p.length;v<c;v++,l++)s[l]=p[v];return s}function Ni(i){return this instanceof Ni?(this.v=i,this):new Ni(i)}function lp(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,p=[];return l={},v("next"),v("throw"),v("return"),l[Symbol.asyncIterator]=function(){return this},l;function v(P){s[P]&&(l[P]=function(M){return new Promise(function(I,j){p.push([P,M,I,j])>1||c(P,M)})})}function c(P,M){try{x(s[P](M))}catch(I){R(p[0][3],I)}}function x(P){P.value instanceof Ni?Promise.resolve(P.value.v).then(A,T):R(p[0][2],P)}function A(P){c("next",P)}function T(P){c("throw",P)}function R(P,M){P(M),p.shift(),p.length&&c(p[0][0],p[0][1])}}function cp(i){var n,r;return n={},s("next"),s("throw",function(l){throw l}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(l,p){n[l]=i[l]?function(v){return(r=!r)?{value:Ni(i[l](v)),done:l==="return"}:p?p(v):v}:p}}function fp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],r;return n?n.call(i):(i=typeof la=="function"?la(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(p){r[p]=i[p]&&function(v){return new Promise(function(c,x){v=i[p](v),l(c,x,v.done,v.value)})}}function l(p,v,c,x){Promise.resolve(x).then(function(A){p({value:A,done:c})},v)}}function hp(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function dp(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function pp(i){return i&&i.__esModule?i:{default:i}}function gp(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function mp(i,n,r){if(!n.has(i))throw new TypeError("attempted to set private field on non-instance");return n.set(i,r),r}const vp=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ua},__asyncDelegator:cp,__asyncGenerator:lp,__asyncValues:fp,__await:Ni,__awaiter:rp,__classPrivateFieldGet:gp,__classPrivateFieldSet:mp,__createBinding:op,__decorate:ep,__exportStar:sp,__extends:Jd,__generator:ip,__importDefault:pp,__importStar:dp,__makeTemplateObject:hp,__metadata:np,__param:tp,__read:Yl,__rest:Xd,__spread:ap,__spreadArrays:up,__values:la},Symbol.toStringTag,{value:"Module"})),Ul=ta(vp);var $i={},on={},Fl;function Wl(){return Fl||(Fl=1,Object.defineProperty(on,"__esModule",{value:!0}),on.MAX_HASHABLE_LENGTH=on.INIT=on.KEY=on.DIGEST_LENGTH=on.BLOCK_SIZE=void 0,on.BLOCK_SIZE=64,on.DIGEST_LENGTH=32,on.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),on.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],on.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),on}var Bi={},zl;function yp(){if(zl)return Bi;zl=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.RawSha256=void 0;var i=Wl(),n=function(){function r(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(s){if(this.finished)throw new Error("Attempted to update an already finished hash.");var l=0,p=s.byteLength;if(this.bytesHashed+=p,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;p>0;)this.buffer[this.bufferLength++]=s[l++],p--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,l=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),p=this.bufferLength;if(l.setUint8(this.bufferLength++,128),p%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var v=this.bufferLength;v<i.BLOCK_SIZE;v++)l.setUint8(v,0);this.hashBuffer(),this.bufferLength=0}for(var v=this.bufferLength;v<i.BLOCK_SIZE-8;v++)l.setUint8(v,0);l.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),l.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var c=new Uint8Array(i.DIGEST_LENGTH),v=0;v<8;v++)c[v*4]=this.state[v]>>>24&255,c[v*4+1]=this.state[v]>>>16&255,c[v*4+2]=this.state[v]>>>8&255,c[v*4+3]=this.state[v]>>>0&255;return c},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,p=s.state,v=p[0],c=p[1],x=p[2],A=p[3],T=p[4],R=p[5],P=p[6],M=p[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(l[I*4]&255)<<24|(l[I*4+1]&255)<<16|(l[I*4+2]&255)<<8|l[I*4+3]&255;else{var j=this.temp[I-2],F=(j>>>17|j<<15)^(j>>>19|j<<13)^j>>>10;j=this.temp[I-15];var X=(j>>>7|j<<25)^(j>>>18|j<<14)^j>>>3;this.temp[I]=(F+this.temp[I-7]|0)+(X+this.temp[I-16]|0)}var ie=(((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&R^~T&P)|0)+(M+(i.KEY[I]+this.temp[I]|0)|0)|0,oe=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&c^v&x^c&x)|0;M=P,P=R,R=T,T=A+ie|0,A=x,x=c,c=v,v=ie+oe|0}p[0]+=v,p[1]+=c,p[2]+=x,p[3]+=A,p[4]+=T,p[5]+=R,p[6]+=P,p[7]+=M},r}();return Bi.RawSha256=n,Bi}var ql={},ji={};const _p=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)n.push(l);else if(l<2048)n.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const p=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},wp=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)n+=String.fromCharCode(l);else if(192<=l&&l<224){const p=i[++r];n+=String.fromCharCode((l&31)<<6|p&63)}else if(240<=l&&l<365){const p="%"+[l,i[++r],i[++r],i[++r]].map(v=>v.toString(16)).join("%");n+=decodeURIComponent(p)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function bp(i){return new TextEncoder().encode(i)}function xp(i){return new TextDecoder("utf-8").decode(i)}const Sp=i=>typeof TextEncoder=="function"?bp(i):_p(i),Cp=i=>typeof TextDecoder=="function"?xp(i):wp(i),Ap=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Sp,toUtf8:Cp},Symbol.toStringTag,{value:"Module"})),Dp=ta(Ap);var Hl;function Op(){if(Hl)return ji;Hl=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.convertToBuffer=void 0;var i=Dp,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return ji.convertToBuffer=r,ji}var Yi={},Gl;function Tp(){if(Gl)return Yi;Gl=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return Yi.isEmptyData=i,Yi}var Ui={},Vl;function Mp(){if(Vl)return Ui;Vl=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return Ui.numToUint8=i,Ui}var Fi={},Zl;function Ep(){if(Zl)return Fi;Zl=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return Fi.uint32ArrayFrom=i,Fi}var Kl;function Rp(){return Kl||(Kl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Op();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Tp();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Mp();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Ep();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(ql)),ql}var Ql;function Lp(){if(Ql)return $i;Ql=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.Sha256=void 0;var i=Ul,n=Wl(),r=yp(),s=Rp(),l=function(){function v(c){if(this.hash=new r.RawSha256,c){this.outer=new r.RawSha256;var x=p(c),A=new Uint8Array(n.BLOCK_SIZE);A.set(x);for(var T=0;T<n.BLOCK_SIZE;T++)x[T]^=54,A[T]^=92;this.hash.update(x),this.outer.update(A);for(var T=0;T<x.byteLength;T++)x[T]=0}}return v.prototype.update=function(c){if(!((0,s.isEmptyData)(c)||this.error))try{this.hash.update((0,s.convertToBuffer)(c))}catch(x){this.error=x}},v.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},v.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(c){return[2,this.digestSync()]})})},v}();$i.Sha256=l;function p(v){var c=(0,s.convertToBuffer)(v);if(c.byteLength>n.BLOCK_SIZE){var x=new r.RawSha256;x.update(c),c=x.digest()}var A=new Uint8Array(n.BLOCK_SIZE);return A.set(c),A}return $i}var Jl;function kp(){return Jl||(Jl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=Ul;(0,n.__exportStar)(Lp(),i)}(jl)),jl}kp();function Ye(i,n){i!=null&&this.fromString(i,n)}function $t(){return new Ye(null)}var tr,Ip=0xdeadbeefcafe,Xl=(Ip&16777215)==15715070;function Pp(i,n,r,s,l,p){for(;--p>=0;){var v=n*this[i++]+r[s]+l;l=Math.floor(v/67108864),r[s++]=v&67108863}return l}function Np(i,n,r,s,l,p){for(var v=n&32767,c=n>>15;--p>=0;){var x=this[i]&32767,A=this[i++]>>15,T=c*x+A*v;x=v*x+((T&32767)<<15)+r[s]+(l&1073741823),l=(x>>>30)+(T>>>15)+c*A+(l>>>30),r[s++]=x&1073741823}return l}function $p(i,n,r,s,l,p){for(var v=n&16383,c=n>>14;--p>=0;){var x=this[i]&16383,A=this[i++]>>14,T=c*x+A*v;x=v*x+((T&16383)<<14)+r[s]+l,l=(x>>28)+(T>>14)+c*A,r[s++]=x&268435455}return l}var ec=typeof navigator<"u";ec&&Xl&&navigator.appName=="Microsoft Internet Explorer"?(Ye.prototype.am=Np,tr=30):ec&&Xl&&navigator.appName!="Netscape"?(Ye.prototype.am=Pp,tr=26):(Ye.prototype.am=$p,tr=28),Ye.prototype.DB=tr,Ye.prototype.DM=(1<<tr)-1,Ye.prototype.DV=1<<tr;var ca=52;Ye.prototype.FV=Math.pow(2,ca),Ye.prototype.F1=ca-tr,Ye.prototype.F2=2*tr-ca;var Bp="0123456789abcdefghijklmnopqrstuvwxyz",Mo=new Array,Jr,sn;for(Jr=48,sn=0;sn<=9;++sn)Mo[Jr++]=sn;for(Jr=97,sn=10;sn<36;++sn)Mo[Jr++]=sn;for(Jr=65,sn=10;sn<36;++sn)Mo[Jr++]=sn;function tc(i){return Bp.charAt(i)}function jp(i,n){var r=Mo[i.charCodeAt(n)];return r??-1}function Yp(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Up(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function fa(i){var n=$t();return n.fromInt(i),n}function Fp(i,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s=i.length,l=!1,p=0;--s>=0;){var v=jp(i,s);if(v<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,p==0?this[this.t++]=v:p+r>this.DB?(this[this.t-1]|=(v&(1<<this.DB-p)-1)<<p,this[this.t++]=v>>this.DB-p):this[this.t-1]|=v<<p,p+=r,p>=this.DB&&(p-=this.DB)}this.clamp(),l&&Ye.ZERO.subTo(this,this)}function Wp(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function zp(i){if(this.s<0)return"-"+this.negate().toString(i);var n;if(i==16)n=4;else if(i==8)n=3;else if(i==2)n=1;else if(i==32)n=5;else if(i==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<n)-1,s,l=!1,p="",v=this.t,c=this.DB-v*this.DB%n;if(v-- >0)for(c<this.DB&&(s=this[v]>>c)>0&&(l=!0,p=tc(s));v>=0;)c<n?(s=(this[v]&(1<<c)-1)<<n-c,s|=this[--v]>>(c+=this.DB-n)):(s=this[v]>>(c-=n)&r,c<=0&&(c+=this.DB,--v)),s>0&&(l=!0),l&&(p+=tc(s));return l?p:"0"}function qp(){var i=$t();return Ye.ZERO.subTo(this,i),i}function Hp(){return this.s<0?this.negate():this}function Gp(i){var n=this.s-i.s;if(n!=0)return n;var r=this.t;if(n=r-i.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-i[r])!=0)return n;return 0}function ha(i){var n=1,r;return(r=i>>>16)!=0&&(i=r,n+=16),(r=i>>8)!=0&&(i=r,n+=8),(r=i>>4)!=0&&(i=r,n+=4),(r=i>>2)!=0&&(i=r,n+=2),(r=i>>1)!=0&&(i=r,n+=1),n}function Vp(){return this.t<=0?0:this.DB*(this.t-1)+ha(this[this.t-1]^this.s&this.DM)}function Zp(i,n){var r;for(r=this.t-1;r>=0;--r)n[r+i]=this[r];for(r=i-1;r>=0;--r)n[r]=0;n.t=this.t+i,n.s=this.s}function Kp(i,n){for(var r=i;r<this.t;++r)n[r-i]=this[r];n.t=Math.max(this.t-i,0),n.s=this.s}function Qp(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,p=Math.floor(i/this.DB),v=this.s<<r&this.DM,c;for(c=this.t-1;c>=0;--c)n[c+p+1]=this[c]>>s|v,v=(this[c]&l)<<r;for(c=p-1;c>=0;--c)n[c]=0;n[p]=v,n.t=this.t+p+1,n.s=this.s,n.clamp()}function Jp(i,n){n.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){n.t=0;return}var s=i%this.DB,l=this.DB-s,p=(1<<s)-1;n[0]=this[r]>>s;for(var v=r+1;v<this.t;++v)n[v-r-1]|=(this[v]&p)<<l,n[v-r]=this[v]>>s;s>0&&(n[this.t-r-1]|=(this.s&p)<<l),n.t=this.t-r,n.clamp()}function Xp(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],n[r++]=s&this.DM,s>>=this.DB;s-=i.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()}function eg(i,n){var r=this.abs(),s=i.abs(),l=r.t;for(n.t=l+s.t;--l>=0;)n[l]=0;for(l=0;l<s.t;++l)n[l+r.t]=r.am(0,s[l],n,l,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&Ye.ZERO.subTo(n,n)}function tg(i){for(var n=this.abs(),r=i.t=2*n.t;--r>=0;)i[r]=0;for(r=0;r<n.t-1;++r){var s=n.am(r,n[r],i,2*r,0,1);(i[r+n.t]+=n.am(r+1,2*n[r],i,2*r+1,s,n.t-r-1))>=n.DV&&(i[r+n.t]-=n.DV,i[r+n.t+1]=1)}i.t>0&&(i[i.t-1]+=n.am(r,n[r],i,2*r,0,1)),i.s=0,i.clamp()}function ng(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=$t());var p=$t(),v=this.s,c=i.s,x=this.DB-ha(s[s.t-1]);x>0?(s.lShiftTo(x,p),l.lShiftTo(x,r)):(s.copyTo(p),l.copyTo(r));var A=p.t,T=p[A-1];if(T!=0){var R=T*(1<<this.F1)+(A>1?p[A-2]>>this.F2:0),P=this.FV/R,M=(1<<this.F1)/R,I=1<<this.F2,j=r.t,F=j-A,X=n??$t();for(p.dlShiftTo(F,X),r.compareTo(X)>=0&&(r[r.t++]=1,r.subTo(X,r)),Ye.ONE.dlShiftTo(A,X),X.subTo(p,p);p.t<A;)p[p.t++]=0;for(;--F>=0;){var ie=r[--j]==T?this.DM:Math.floor(r[j]*P+(r[j-1]+I)*M);if((r[j]+=p.am(0,ie,r,F,0,A))<ie)for(p.dlShiftTo(F,X),r.subTo(X,r);r[j]<--ie;)r.subTo(X,r)}n!=null&&(r.drShiftTo(A,n),v!=c&&Ye.ZERO.subTo(n,n)),r.t=A,r.clamp(),x>0&&r.rShiftTo(x,r),v<0&&Ye.ZERO.subTo(r,r)}}}function rg(i){var n=$t();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(Ye.ZERO)>0&&i.subTo(n,n),n}function ig(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var n=i&3;return n=n*(2-(i&15)*n)&15,n=n*(2-(i&255)*n)&255,n=n*(2-((i&65535)*n&65535))&65535,n=n*(2-i*n%this.DV)%this.DV,n>0?this.DV-n:-n}function og(i){return this.compareTo(i)==0}function sg(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],n[r++]=s&this.DM,s>>=this.DB;s+=i.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),n.t=r,n.clamp()}function ag(i){var n=$t();return this.addTo(i,n),n}function ug(i){var n=$t();return this.subTo(i,n),n}function lg(i){var n=$t();return this.multiplyTo(i,n),n}function cg(i){var n=$t();return this.divRemTo(i,n,null),n}function Xr(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function fg(i){var n=$t();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(Ye.ZERO)>0&&this.m.subTo(n,n),n}function hg(i){var n=$t();return i.copyTo(n),this.reduce(n),n}function dg(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var n=0;n<this.m.t;++n){var r=i[n]&32767,s=r*this.mpl+((r*this.mph+(i[n]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=n+this.m.t,i[r]+=this.m.am(0,s,i,n,0,this.m.t);i[r]>=i.DV;)i[r]-=i.DV,i[++r]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function pg(i,n){i.squareTo(n),this.reduce(n)}function gg(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Xr.prototype.convert=fg,Xr.prototype.revert=hg,Xr.prototype.reduce=dg,Xr.prototype.mulTo=gg,Xr.prototype.sqrTo=pg;function mg(i,n,r){var s=i.bitLength(),l,p=fa(1),v=new Xr(n);if(s<=0)return p;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var c=new Array,x=3,A=l-1,T=(1<<l)-1;if(c[1]=v.convert(this),l>1){var R=$t();for(v.sqrTo(c[1],R);x<=T;)c[x]=$t(),v.mulTo(R,c[x-2],c[x]),x+=2}var P=i.t-1,M,I=!0,j=$t(),F;for(s=ha(i[P])-1;P>=0;){for(s>=A?M=i[P]>>s-A&T:(M=(i[P]&(1<<s+1)-1)<<A-s,P>0&&(M|=i[P-1]>>this.DB+s-A)),x=l;(M&1)==0;)M>>=1,--x;if((s-=x)<0&&(s+=this.DB,--P),I)c[M].copyTo(p),I=!1;else{for(;x>1;)v.sqrTo(p,j),v.sqrTo(j,p),x-=2;x>0?v.sqrTo(p,j):(F=p,p=j,j=F),v.mulTo(j,c[M],p)}for(;P>=0&&(i[P]&1<<s)==0;)v.sqrTo(p,j),F=p,p=j,j=F,--s<0&&(s=this.DB-1,--P)}var X=v.revert(p);return r(null,X),X}Ye.prototype.copyTo=Yp,Ye.prototype.fromInt=Up,Ye.prototype.fromString=Fp,Ye.prototype.clamp=Wp,Ye.prototype.dlShiftTo=Zp,Ye.prototype.drShiftTo=Kp,Ye.prototype.lShiftTo=Qp,Ye.prototype.rShiftTo=Jp,Ye.prototype.subTo=Xp,Ye.prototype.multiplyTo=eg,Ye.prototype.squareTo=tg,Ye.prototype.divRemTo=ng,Ye.prototype.invDigit=ig,Ye.prototype.addTo=sg,Ye.prototype.toString=zp,Ye.prototype.negate=qp,Ye.prototype.abs=Hp,Ye.prototype.compareTo=Gp,Ye.prototype.bitLength=Vp,Ye.prototype.mod=rg,Ye.prototype.equals=og,Ye.prototype.add=ag,Ye.prototype.subtract=ug,Ye.prototype.multiply=lg,Ye.prototype.divide=cg,Ye.prototype.modPow=mg,Ye.ZERO=fa(0),Ye.ONE=fa(1);function vg(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,p=[],v=[],c={},x=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:x,headers:{keys:function(){return p},entries:function(){return v},get:function(T){return c[T.toLowerCase()]},has:function(T){return T.toLowerCase()in c}}}};for(var A in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(T,R,P){p.push(R=R.toLowerCase()),v.push([R,P]),c[R]=c[R]?c[R]+","+P:P}),r(x())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(A,n.headers[A]);l.send(n.body||null)})}const yg=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),nc=ta(yg);var rc,ic;function _g(){return ic||(ic=1,rc=self.fetch||(self.fetch=nc.default||nc)),rc}_g();/*!
|
|
105
105
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
106
106
|
* SPDX-License-Identifier: Apache-2.0
|
|
107
107
|
*/var oc={exports:{}};/*!
|
|
@@ -110,35 +110,35 @@ 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 sc;function wg(){return sc||(sc=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,p=window.Cookies=r();p.noConflict=function(){return window.Cookies=l,p}}})(function(){function r(){for(var p=0,v={};p<arguments.length;p++){var c=arguments[p];for(var x in c)v[x]=c[x]}return v}function s(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(p){function v(){}function c(A,T,R){if(!(typeof document>"u")){R=r({path:"/"},v.defaults,R),typeof R.expires=="number"&&(R.expires=new Date(new Date*1+R.expires*864e5)),R.expires=R.expires?R.expires.toUTCString():"";try{var P=JSON.stringify(T);/^[\{\[]/.test(P)&&(T=P)}catch{}T=p.write?p.write(T,A):encodeURIComponent(String(T)).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 M="";for(var I in R)R[I]&&(M+="; "+I,R[I]!==!0&&(M+="="+R[I].split(";")[0]));return document.cookie=A+"="+T+M}}function x(A,T){if(!(typeof document>"u")){for(var R={},P=document.cookie?document.cookie.split("; "):[],M=0;M<P.length;M++){var I=P[M].split("="),j=I.slice(1).join("=");!T&&j.charAt(0)==='"'&&(j=j.slice(1,-1));try{var F=s(I[0]);if(j=(p.read||p)(j,F)||s(j),T)try{j=JSON.parse(j)}catch{}if(R[F]=j,A===F)break}catch{}}return A?R[A]:R}}return v.set=c,v.get=function(A){return x(A,!1)},v.getJSON=function(A){return x(A,!0)},v.remove=function(A,T){c(A,"",r(T,{expires:-1}))},v.defaults={},v.withConverter=l,v}return l(function(){})})}(oc)),oc.exports}wg();function bg(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function xg(){return bg().getCurrentUser()}function Sg(){return new Promise((i,n)=>{const r=xg();r===null&&n(null),r==null||r.getSession((s,l)=>{if(s!==null||l===null)return n(null);i({session:l,authenticatedUser:r})})})}async function Cg(){const{session:i}=await Sg();return i==null?void 0:i.getIdToken().getJwtToken()}me.createContext(void 0);var Ag="undefined",Dg="object",
|
|
114
|
-
`}return Ge%2&&we>0?
|
|
113
|
+
*/var sc;function wg(){return sc||(sc=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,p=window.Cookies=r();p.noConflict=function(){return window.Cookies=l,p}}})(function(){function r(){for(var p=0,v={};p<arguments.length;p++){var c=arguments[p];for(var x in c)v[x]=c[x]}return v}function s(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(p){function v(){}function c(A,T,R){if(!(typeof document>"u")){R=r({path:"/"},v.defaults,R),typeof R.expires=="number"&&(R.expires=new Date(new Date*1+R.expires*864e5)),R.expires=R.expires?R.expires.toUTCString():"";try{var P=JSON.stringify(T);/^[\{\[]/.test(P)&&(T=P)}catch{}T=p.write?p.write(T,A):encodeURIComponent(String(T)).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 M="";for(var I in R)R[I]&&(M+="; "+I,R[I]!==!0&&(M+="="+R[I].split(";")[0]));return document.cookie=A+"="+T+M}}function x(A,T){if(!(typeof document>"u")){for(var R={},P=document.cookie?document.cookie.split("; "):[],M=0;M<P.length;M++){var I=P[M].split("="),j=I.slice(1).join("=");!T&&j.charAt(0)==='"'&&(j=j.slice(1,-1));try{var F=s(I[0]);if(j=(p.read||p)(j,F)||s(j),T)try{j=JSON.parse(j)}catch{}if(R[F]=j,A===F)break}catch{}}return A?R[A]:R}}return v.set=c,v.get=function(A){return x(A,!1)},v.getJSON=function(A){return x(A,!0)},v.remove=function(A,T){c(A,"",r(T,{expires:-1}))},v.defaults={},v.withConverter=l,v}return l(function(){})})}(oc)),oc.exports}wg();function bg(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function xg(){return bg().getCurrentUser()}function Sg(){return new Promise((i,n)=>{const r=xg();r===null&&n(null),r==null||r.getSession((s,l)=>{if(s!==null||l===null)return n(null);i({session:l,authenticatedUser:r})})})}async function Cg(){const{session:i}=await Sg();return i==null?void 0:i.getIdToken().getJwtToken()}me.createContext(void 0);var Ag="undefined",Dg="object",Eo="browser",ac="cpu",uc="device",da="engine",Ro="os",nr="name",Lo="type",pa="vendor",bn="version",ga="architecture",ma="major",va="model",Og="console",Tg="mobile",Mg="tablet",Eg="smarttv",Rg="wearable",Lg="embedded",kg=typeof window!==Ag,ya=kg&&window.navigator?window.navigator:void 0;ya&&ya.userAgentData&&ya.userAgentData;var ko=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Io=function(i){for(var n in i){var r=i[n];typeof r==Dg&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Io.call(i.init,[[Eo,[nr,bn,ma,Lo]],[ac,[ga]],[uc,[Lo,va,pa]],[da,[nr,bn]],[Ro,[nr,bn]]]),Io.call(i.isIgnore,[[Eo,[bn,ma]],[da,[bn]],[Ro,[bn]]]),Io.call(i.isIgnoreRgx,[[Eo,/ ?browser$/i],[Ro,/ ?os$/i]]),Io.call(i.toString,[[Eo,[nr,bn]],[ac,[ga]],[uc,[pa,va]],[da,[nr,bn]],[Ro,[nr,bn]]]),i})(),ko([nr,bn,ma,Lo]),ko([ga]),ko([va,pa,Lo,Og,Tg,Eg,Mg,Rg,Lg]),ko([nr,bn]);var _a={exports:{}},Ig=_a.exports,lc;function Pg(){return lc||(lc=1,function(i,n){(function(r,s){i.exports=s()})(Ig,()=>(()=>{var r={873:(v,c)=>{var x,A,T=function(){var R=function(N,E){var O=N,d=X[E],f=null,w=0,g=null,m=[],C={},W=function(B,z){f=function(Y){for(var Z=new Array(Y),se=0;se<Y;se+=1){Z[se]=new Array(Y);for(var De=0;De<Y;De+=1)Z[se][De]=null}return Z}(w=4*O+17),V(0,0),V(w-7,0),V(0,w-7),ue(),ae(),ne(B,z),O>=7&&be(B),g==null&&(g=Ce(O,d,m)),de(g,z)},V=function(B,z){for(var Y=-1;Y<=7;Y+=1)if(!(B+Y<=-1||w<=B+Y))for(var Z=-1;Z<=7;Z+=1)z+Z<=-1||w<=z+Z||(f[B+Y][z+Z]=0<=Y&&Y<=6&&(Z==0||Z==6)||0<=Z&&Z<=6&&(Y==0||Y==6)||2<=Y&&Y<=4&&2<=Z&&Z<=4)},ae=function(){for(var B=8;B<w-8;B+=1)f[B][6]==null&&(f[B][6]=B%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 B=ie.getPatternPosition(O),z=0;z<B.length;z+=1)for(var Y=0;Y<B.length;Y+=1){var Z=B[z],se=B[Y];if(f[Z][se]==null)for(var De=-2;De<=2;De+=1)for(var u=-2;u<=2;u+=1)f[Z+De][se+u]=De==-2||De==2||u==-2||u==2||De==0&&u==0}},be=function(B){for(var z=ie.getBCHTypeNumber(O),Y=0;Y<18;Y+=1){var Z=!B&&(z>>Y&1)==1;f[Math.floor(Y/3)][Y%3+w-8-3]=Z}for(Y=0;Y<18;Y+=1)Z=!B&&(z>>Y&1)==1,f[Y%3+w-8-3][Math.floor(Y/3)]=Z},ne=function(B,z){for(var Y=d<<3|z,Z=ie.getBCHTypeInfo(Y),se=0;se<15;se+=1){var De=!B&&(Z>>se&1)==1;se<6?f[se][8]=De:se<8?f[se+1][8]=De:f[w-15+se][8]=De}for(se=0;se<15;se+=1)De=!B&&(Z>>se&1)==1,se<8?f[8][w-se-1]=De:se<9?f[8][15-se-1+1]=De:f[8][15-se-1]=De;f[w-8][8]=!B},de=function(B,z){for(var Y=-1,Z=w-1,se=7,De=0,u=ie.getMaskFunction(z),h=w-1;h>0;h-=2)for(h==6&&(h-=1);;){for(var _=0;_<2;_+=1)if(f[Z][h-_]==null){var k=!1;De<B.length&&(k=(B[De]>>>se&1)==1),u(Z,h-_)&&(k=!k),f[Z][h-_]=k,(se-=1)==-1&&(De+=1,se=7)}if((Z+=Y)<0||w<=Z){Z-=Y,Y=-Y;break}}},Ce=function(B,z,Y){for(var Z=K.getRSBlocks(B,z),se=fe(),De=0;De<Y.length;De+=1){var u=Y[De];se.put(u.getMode(),4),se.put(u.getLength(),ie.getLengthInBits(u.getMode(),B)),u.write(se)}var h=0;for(De=0;De<Z.length;De+=1)h+=Z[De].dataCount;if(se.getLengthInBits()>8*h)throw"code length overflow. ("+se.getLengthInBits()+">"+8*h+")";for(se.getLengthInBits()+4<=8*h&&se.put(0,4);se.getLengthInBits()%8!=0;)se.putBit(!1);for(;!(se.getLengthInBits()>=8*h||(se.put(236,8),se.getLengthInBits()>=8*h));)se.put(17,8);return function(_,k){for(var q=0,Q=0,Ae=0,we=new Array(k.length),Re=new Array(k.length),Se=0;Se<k.length;Se+=1){var Le=k[Se].dataCount,Ne=k[Se].totalCount-Le;Q=Math.max(Q,Le),Ae=Math.max(Ae,Ne),we[Se]=new Array(Le);for(var ke=0;ke<we[Se].length;ke+=1)we[Se][ke]=255&_.getBuffer()[ke+q];q+=Le;var Ge=ie.getErrorCorrectPolynomial(Ne),Je=ce(we[Se],Ge.getLength()-1).mod(Ge);for(Re[Se]=new Array(Ge.getLength()-1),ke=0;ke<Re[Se].length;ke+=1){var Ve=ke+Je.getLength()-Re[Se].length;Re[Se][ke]=Ve>=0?Je.getAt(Ve):0}}var _t=0;for(ke=0;ke<k.length;ke+=1)_t+=k[ke].totalCount;var ct=new Array(_t),ft=0;for(ke=0;ke<Q;ke+=1)for(Se=0;Se<k.length;Se+=1)ke<we[Se].length&&(ct[ft]=we[Se][ke],ft+=1);for(ke=0;ke<Ae;ke+=1)for(Se=0;Se<k.length;Se+=1)ke<Re[Se].length&&(ct[ft]=Re[Se][ke],ft+=1);return ct}(se,Z)};C.addData=function(B,z){var Y=null;switch(z=z||"Byte"){case"Numeric":Y=ee(B);break;case"Alphanumeric":Y=J(B);break;case"Byte":Y=ve(B);break;case"Kanji":Y=he(B);break;default:throw"mode:"+z}m.push(Y),g=null},C.isDark=function(B,z){if(B<0||w<=B||z<0||w<=z)throw B+","+z;return f[B][z]},C.getModuleCount=function(){return w},C.make=function(){if(O<1){for(var B=1;B<40;B++){for(var z=K.getRSBlocks(B,d),Y=fe(),Z=0;Z<m.length;Z++){var se=m[Z];Y.put(se.getMode(),4),Y.put(se.getLength(),ie.getLengthInBits(se.getMode(),B)),se.write(Y)}var De=0;for(Z=0;Z<z.length;Z++)De+=z[Z].dataCount;if(Y.getLengthInBits()<=8*De)break}O=B}W(!1,function(){for(var u=0,h=0,_=0;_<8;_+=1){W(!0,_);var k=ie.getLostPoint(C);(_==0||u>k)&&(u=k,h=_)}return h}())},C.createTableTag=function(B,z){B=B||2;var Y="";Y+='<table style="',Y+=" border-width: 0px; border-style: none;",Y+=" border-collapse: collapse;",Y+=" padding: 0px; margin: "+(z=z===void 0?4*B:z)+"px;",Y+='">',Y+="<tbody>";for(var Z=0;Z<C.getModuleCount();Z+=1){Y+="<tr>";for(var se=0;se<C.getModuleCount();se+=1)Y+='<td style="',Y+=" border-width: 0px; border-style: none;",Y+=" border-collapse: collapse;",Y+=" padding: 0px; margin: 0px;",Y+=" width: "+B+"px;",Y+=" height: "+B+"px;",Y+=" background-color: ",Y+=C.isDark(Z,se)?"#000000":"#ffffff",Y+=";",Y+='"/>';Y+="</tr>"}return(Y+="</tbody>")+"</table>"},C.createSvgTag=function(B,z,Y,Z){var se={};typeof arguments[0]=="object"&&(B=(se=arguments[0]).cellSize,z=se.margin,Y=se.alt,Z=se.title),B=B||2,z=z===void 0?4*B:z,(Y=typeof Y=="string"?{text:Y}:Y||{}).text=Y.text||null,Y.id=Y.text?Y.id||"qrcode-description":null,(Z=typeof Z=="string"?{text:Z}:Z||{}).text=Z.text||null,Z.id=Z.text?Z.id||"qrcode-title":null;var De,u,h,_,k=C.getModuleCount()*B+2*z,q="";for(_="l"+B+",0 0,"+B+" -"+B+",0 0,-"+B+"z ",q+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',q+=se.scalable?"":' width="'+k+'px" height="'+k+'px"',q+=' viewBox="0 0 '+k+" "+k+'" ',q+=' preserveAspectRatio="xMinYMin meet"',q+=Z.text||Y.text?' role="img" aria-labelledby="'+_e([Z.id,Y.id].join(" ").trim())+'"':"",q+=">",q+=Z.text?'<title id="'+_e(Z.id)+'">'+_e(Z.text)+"</title>":"",q+=Y.text?'<description id="'+_e(Y.id)+'">'+_e(Y.text)+"</description>":"",q+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',q+='<path d="',u=0;u<C.getModuleCount();u+=1)for(h=u*B+z,De=0;De<C.getModuleCount();De+=1)C.isDark(u,De)&&(q+="M"+(De*B+z)+","+h+_);return(q+='" stroke="transparent" fill="black"/>')+"</svg>"},C.createDataURL=function(B,z){B=B||2,z=z===void 0?4*B:z;var Y=C.getModuleCount()*B+2*z,Z=z,se=Y-z;return Te(Y,Y,function(De,u){if(Z<=De&&De<se&&Z<=u&&u<se){var h=Math.floor((De-Z)/B),_=Math.floor((u-Z)/B);return C.isDark(_,h)?0:1}return 1})},C.createImgTag=function(B,z,Y){B=B||2,z=z===void 0?4*B:z;var Z=C.getModuleCount()*B+2*z,se="";return se+="<img",se+=' src="',se+=C.createDataURL(B,z),se+='"',se+=' width="',se+=Z,se+='"',se+=' height="',se+=Z,se+='"',Y&&(se+=' alt="',se+=_e(Y),se+='"'),se+"/>"};var _e=function(B){for(var z="",Y=0;Y<B.length;Y+=1){var Z=B.charAt(Y);switch(Z){case"<":z+="<";break;case">":z+=">";break;case"&":z+="&";break;case'"':z+=""";break;default:z+=Z}}return z};return C.createASCII=function(B,z){if((B=B||1)<2)return function(we){we=we===void 0?2:we;var Re,Se,Le,Ne,ke,Ge=1*C.getModuleCount()+2*we,Je=we,Ve=Ge-we,_t={"██":"█","█ ":"▀"," █":"▄"," ":" "},ct={"██":"▀","█ ":"▀"," █":" "," ":" "},ft="";for(Re=0;Re<Ge;Re+=2){for(Le=Math.floor((Re-Je)/1),Ne=Math.floor((Re+1-Je)/1),Se=0;Se<Ge;Se+=1)ke="█",Je<=Se&&Se<Ve&&Je<=Re&&Re<Ve&&C.isDark(Le,Math.floor((Se-Je)/1))&&(ke=" "),Je<=Se&&Se<Ve&&Je<=Re+1&&Re+1<Ve&&C.isDark(Ne,Math.floor((Se-Je)/1))?ke+=" ":ke+="█",ft+=we<1&&Re+1>=Ve?ct[ke]:_t[ke];ft+=`
|
|
114
|
+
`}return Ge%2&&we>0?ft.substring(0,ft.length-Ge-1)+Array(Ge+1).join("▀"):ft.substring(0,ft.length-1)}(z);B-=1,z=z===void 0?2*B:z;var Y,Z,se,De,u=C.getModuleCount()*B+2*z,h=z,_=u-z,k=Array(B+1).join("██"),q=Array(B+1).join(" "),Q="",Ae="";for(Y=0;Y<u;Y+=1){for(se=Math.floor((Y-h)/B),Ae="",Z=0;Z<u;Z+=1)De=1,h<=Z&&Z<_&&h<=Y&&Y<_&&C.isDark(se,Math.floor((Z-h)/B))&&(De=0),Ae+=De?k:q;for(se=0;se<B;se+=1)Q+=Ae+`
|
|
115
115
|
`}return Q.substring(0,Q.length-1)},C.renderTo2dContext=function(B,z){z=z||2;for(var Y=C.getModuleCount(),Z=0;Z<Y;Z++)for(var se=0;se<Y;se++)B.fillStyle=C.isDark(Z,se)?"black":"white",B.fillRect(Z*z,se*z,z,z)},C};R.stringToBytes=(R.stringToBytesFuncs={default:function(N){for(var E=[],O=0;O<N.length;O+=1){var d=N.charCodeAt(O);E.push(255&d)}return E}}).default,R.createStringToBytes=function(N,E){var O=function(){for(var f=Oe(N),w=function(){var ae=f.read();if(ae==-1)throw"eof";return ae},g=0,m={};;){var C=f.read();if(C==-1)break;var W=w(),V=w()<<8|w();m[String.fromCharCode(C<<8|W)]=V,g+=1}if(g!=E)throw g+" != "+E;return m}(),d=63;return function(f){for(var w=[],g=0;g<f.length;g+=1){var m=f.charCodeAt(g);if(m<128)w.push(m);else{var C=O[f.charAt(g)];typeof C=="number"?(255&C)==C?w.push(C):(w.push(C>>>8),w.push(255&C)):w.push(d)}}return w}};var P,M,I,j,F,X={L:1,M:0,Q:3,H:2},ie=(P=[[],[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]],M=1335,I=7973,F=function(N){for(var E=0;N!=0;)E+=1,N>>>=1;return E},(j={}).getBCHTypeInfo=function(N){for(var E=N<<10;F(E)-F(M)>=0;)E^=M<<F(E)-F(M);return 21522^(N<<10|E)},j.getBCHTypeNumber=function(N){for(var E=N<<12;F(E)-F(I)>=0;)E^=I<<F(E)-F(I);return N<<12|E},j.getPatternPosition=function(N){return P[N-1]},j.getMaskFunction=function(N){switch(N){case 0:return function(E,O){return(E+O)%2==0};case 1:return function(E,O){return E%2==0};case 2:return function(E,O){return O%3==0};case 3:return function(E,O){return(E+O)%3==0};case 4:return function(E,O){return(Math.floor(E/2)+Math.floor(O/3))%2==0};case 5:return function(E,O){return E*O%2+E*O%3==0};case 6:return function(E,O){return(E*O%2+E*O%3)%2==0};case 7:return function(E,O){return(E*O%3+(E+O)%2)%2==0};default:throw"bad maskPattern:"+N}},j.getErrorCorrectPolynomial=function(N){for(var E=ce([1],0),O=0;O<N;O+=1)E=E.multiply(ce([1,oe.gexp(O)],0));return E},j.getLengthInBits=function(N,E){if(1<=E&&E<10)switch(N){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+N}else if(E<27)switch(N){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+N}else{if(!(E<41))throw"type:"+E;switch(N){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+N}}},j.getLostPoint=function(N){for(var E=N.getModuleCount(),O=0,d=0;d<E;d+=1)for(var f=0;f<E;f+=1){for(var w=0,g=N.isDark(d,f),m=-1;m<=1;m+=1)if(!(d+m<0||E<=d+m))for(var C=-1;C<=1;C+=1)f+C<0||E<=f+C||m==0&&C==0||g==N.isDark(d+m,f+C)&&(w+=1);w>5&&(O+=3+w-5)}for(d=0;d<E-1;d+=1)for(f=0;f<E-1;f+=1){var W=0;N.isDark(d,f)&&(W+=1),N.isDark(d+1,f)&&(W+=1),N.isDark(d,f+1)&&(W+=1),N.isDark(d+1,f+1)&&(W+=1),W!=0&&W!=4||(O+=3)}for(d=0;d<E;d+=1)for(f=0;f<E-6;f+=1)N.isDark(d,f)&&!N.isDark(d,f+1)&&N.isDark(d,f+2)&&N.isDark(d,f+3)&&N.isDark(d,f+4)&&!N.isDark(d,f+5)&&N.isDark(d,f+6)&&(O+=40);for(f=0;f<E;f+=1)for(d=0;d<E-6;d+=1)N.isDark(d,f)&&!N.isDark(d+1,f)&&N.isDark(d+2,f)&&N.isDark(d+3,f)&&N.isDark(d+4,f)&&!N.isDark(d+5,f)&&N.isDark(d+6,f)&&(O+=40);var V=0;for(f=0;f<E;f+=1)for(d=0;d<E;d+=1)N.isDark(d,f)&&(V+=1);return O+Math.abs(100*V/E/E-50)/5*10},j),oe=function(){for(var N=new Array(256),E=new Array(256),O=0;O<8;O+=1)N[O]=1<<O;for(O=8;O<256;O+=1)N[O]=N[O-4]^N[O-5]^N[O-6]^N[O-8];for(O=0;O<255;O+=1)E[N[O]]=O;return{glog:function(d){if(d<1)throw"glog("+d+")";return E[d]},gexp:function(d){for(;d<0;)d+=255;for(;d>=256;)d-=255;return N[d]}}}();function ce(N,E){if(N.length===void 0)throw N.length+"/"+E;var O=function(){for(var f=0;f<N.length&&N[f]==0;)f+=1;for(var w=new Array(N.length-f+E),g=0;g<N.length-f;g+=1)w[g]=N[g+f];return w}(),d={getAt:function(f){return O[f]},getLength:function(){return O.length},multiply:function(f){for(var w=new Array(d.getLength()+f.getLength()-1),g=0;g<d.getLength();g+=1)for(var m=0;m<f.getLength();m+=1)w[g+m]^=oe.gexp(oe.glog(d.getAt(g))+oe.glog(f.getAt(m)));return ce(w,0)},mod:function(f){if(d.getLength()-f.getLength()<0)return d;for(var w=oe.glog(d.getAt(0))-oe.glog(f.getAt(0)),g=new Array(d.getLength()),m=0;m<d.getLength();m+=1)g[m]=d.getAt(m);for(m=0;m<f.getLength();m+=1)g[m]^=oe.gexp(oe.glog(f.getAt(m))+w);return ce(g,0).mod(f)}};return d}var K=function(){var N=[[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]],E=function(d,f){var w={};return w.totalCount=d,w.dataCount=f,w},O={getRSBlocks:function(d,f){var w=function(be,ne){switch(ne){case X.L:return N[4*(be-1)+0];case X.M:return N[4*(be-1)+1];case X.Q:return N[4*(be-1)+2];case X.H:return N[4*(be-1)+3];default:return}}(d,f);if(w===void 0)throw"bad rs block @ typeNumber:"+d+"/errorCorrectionLevel:"+f;for(var g=w.length/3,m=[],C=0;C<g;C+=1)for(var W=w[3*C+0],V=w[3*C+1],ae=w[3*C+2],ue=0;ue<W;ue+=1)m.push(E(V,ae));return m}};return O}(),fe=function(){var N=[],E=0,O={getBuffer:function(){return N},getAt:function(d){var f=Math.floor(d/8);return(N[f]>>>7-d%8&1)==1},put:function(d,f){for(var w=0;w<f;w+=1)O.putBit((d>>>f-w-1&1)==1)},getLengthInBits:function(){return E},putBit:function(d){var f=Math.floor(E/8);N.length<=f&&N.push(0),d&&(N[f]|=128>>>E%8),E+=1}};return O},ee=function(N){var E=N,O={getMode:function(){return 1},getLength:function(w){return E.length},write:function(w){for(var g=E,m=0;m+2<g.length;)w.put(d(g.substring(m,m+3)),10),m+=3;m<g.length&&(g.length-m==1?w.put(d(g.substring(m,m+1)),4):g.length-m==2&&w.put(d(g.substring(m,m+2)),7))}},d=function(w){for(var g=0,m=0;m<w.length;m+=1)g=10*g+f(w.charAt(m));return g},f=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return O},J=function(N){var E=N,O={getMode:function(){return 2},getLength:function(f){return E.length},write:function(f){for(var w=E,g=0;g+1<w.length;)f.put(45*d(w.charAt(g))+d(w.charAt(g+1)),11),g+=2;g<w.length&&f.put(d(w.charAt(g)),6)}},d=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 O},ve=function(N){var E=R.stringToBytes(N);return{getMode:function(){return 4},getLength:function(O){return E.length},write:function(O){for(var d=0;d<E.length;d+=1)O.put(E[d],8)}}},he=function(N){var E=R.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(){var f=E("友");if(f.length!=2||(f[0]<<8|f[1])!=38726)throw"sjis not supported."})();var O=E(N),d={getMode:function(){return 8},getLength:function(f){return~~(O.length/2)},write:function(f){for(var w=O,g=0;g+1<w.length;){var m=(255&w[g])<<8|255&w[g+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(g+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),f.put(m,13),g+=2}if(g<w.length)throw"illegal char at "+(g+1)}};return d},te=function(){var N=[],E={writeByte:function(O){N.push(255&O)},writeShort:function(O){E.writeByte(O),E.writeByte(O>>>8)},writeBytes:function(O,d,f){d=d||0,f=f||O.length;for(var w=0;w<f;w+=1)E.writeByte(O[w+d])},writeString:function(O){for(var d=0;d<O.length;d+=1)E.writeByte(O.charCodeAt(d))},toByteArray:function(){return N},toString:function(){var O="";O+="[";for(var d=0;d<N.length;d+=1)d>0&&(O+=","),O+=N[d];return O+"]"}};return E},Oe=function(N){var E=N,O=0,d=0,f=0,w={read:function(){for(;f<8;){if(O>=E.length){if(f==0)return-1;throw"unexpected end of file./"+f}var m=E.charAt(O);if(O+=1,m=="=")return f=0,-1;m.match(/^\s$/)||(d=d<<6|g(m.charCodeAt(0)),f+=6)}var C=d>>>f-8&255;return f-=8,C}},g=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},Te=function(N,E,O){for(var d=function(V,ae){var ue=V,be=ae,ne=new Array(V*ae),de={setPixel:function(B,z,Y){ne[z*ue+B]=Y},write:function(B){B.writeString("GIF87a"),B.writeShort(ue),B.writeShort(be),B.writeByte(128),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(255),B.writeByte(255),B.writeByte(255),B.writeString(","),B.writeShort(0),B.writeShort(0),B.writeShort(ue),B.writeShort(be),B.writeByte(0);var z=Ce(2);B.writeByte(2);for(var Y=0;z.length-Y>255;)B.writeByte(255),B.writeBytes(z,Y,255),Y+=255;B.writeByte(z.length-Y),B.writeBytes(z,Y,z.length-Y),B.writeByte(0),B.writeString(";")}},Ce=function(B){for(var z=1<<B,Y=1+(1<<B),Z=B+1,se=_e(),De=0;De<z;De+=1)se.add(String.fromCharCode(De));se.add(String.fromCharCode(z)),se.add(String.fromCharCode(Y));var u,h,_,k=te(),q=(u=k,h=0,_=0,{write:function(Re,Se){if(Re>>>Se)throw"length over";for(;h+Se>=8;)u.writeByte(255&(Re<<h|_)),Se-=8-h,Re>>>=8-h,_=0,h=0;_|=Re<<h,h+=Se},flush:function(){h>0&&u.writeByte(_)}});q.write(z,Z);var Q=0,Ae=String.fromCharCode(ne[Q]);for(Q+=1;Q<ne.length;){var we=String.fromCharCode(ne[Q]);Q+=1,se.contains(Ae+we)?Ae+=we:(q.write(se.indexOf(Ae),Z),se.size()<4095&&(se.size()==1<<Z&&(Z+=1),se.add(Ae+we)),Ae=we)}return q.write(se.indexOf(Ae),Z),q.write(Y,Z),q.flush(),k.toByteArray()},_e=function(){var B={},z=0,Y={add:function(Z){if(Y.contains(Z))throw"dup key:"+Z;B[Z]=z,z+=1},size:function(){return z},indexOf:function(Z){return B[Z]},contains:function(Z){return B[Z]!==void 0}};return Y};return de}(N,E),f=0;f<E;f+=1)for(var w=0;w<N;w+=1)d.setPixel(w,f,O(w,f));var g=te();d.write(g);for(var m=function(){var V=0,ae=0,ue=0,be="",ne={},de=function(_e){be+=String.fromCharCode(Ce(63&_e))},Ce=function(_e){if(!(_e<0)){if(_e<26)return 65+_e;if(_e<52)return _e-26+97;if(_e<62)return _e-52+48;if(_e==62)return 43;if(_e==63)return 47}throw"n:"+_e};return ne.writeByte=function(_e){for(V=V<<8|255&_e,ae+=8,ue+=1;ae>=6;)de(V>>>ae-6),ae-=6},ne.flush=function(){if(ae>0&&(de(V<<6-ae),V=0,ae=0),ue%3!=0)for(var _e=3-ue%3,B=0;B<_e;B+=1)be+="="},ne.toString=function(){return be},ne}(),C=g.toByteArray(),W=0;W<C.length;W+=1)m.writeByte(C[W]);return m.flush(),"data:image/gif;base64,"+m};return R}();T.stringToBytesFuncs["UTF-8"]=function(R){return function(P){for(var M=[],I=0;I<P.length;I++){var j=P.charCodeAt(I);j<128?M.push(j):j<2048?M.push(192|j>>6,128|63&j):j<55296||j>=57344?M.push(224|j>>12,128|j>>6&63,128|63&j):(I++,j=65536+((1023&j)<<10|1023&P.charCodeAt(I)),M.push(240|j>>18,128|j>>12&63,128|j>>6&63,128|63&j))}return M}(R)},(A=typeof(x=function(){return T})=="function"?x.apply(c,[]):x)===void 0||(v.exports=A)}},s={};function l(v){var c=s[v];if(c!==void 0)return c.exports;var x=s[v]={exports:{}};return r[v](x,x.exports,l),x.exports}l.n=v=>{var c=v&&v.__esModule?()=>v.default:()=>v;return l.d(c,{a:c}),c},l.d=(v,c)=>{for(var x in c)l.o(c,x)&&!l.o(v,x)&&Object.defineProperty(v,x,{enumerable:!0,get:c[x]})},l.o=(v,c)=>Object.prototype.hasOwnProperty.call(v,c);var p={};return(()=>{l.d(p,{default:()=>E});const v=O=>!!O&&typeof O=="object"&&!Array.isArray(O);function c(O,...d){if(!d.length)return O;const f=d.shift();return f!==void 0&&v(O)&&v(f)?(O=Object.assign({},O),Object.keys(f).forEach(w=>{const g=O[w],m=f[w];Array.isArray(g)&&Array.isArray(m)?O[w]=m:v(g)&&v(m)?O[w]=c(Object.assign({},g),m):O[w]=m}),c(O,...d)):O}function x(O,d){const f=document.createElement("a");f.download=d,f.href=O,document.body.appendChild(f),f.click(),document.body.removeChild(f)}const A={L:.07,M:.15,Q:.25,H:.3};class T{constructor({svg:d,type:f,window:w}){this._svg=d,this._type=f,this._window=w}draw(d,f,w,g){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:d,y:f,size:w,getNeighbor:g})}_rotateFigure({x:d,y:f,size:w,rotation:g=0,draw:m}){var C;const W=d+w/2,V=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*g/Math.PI},${W},${V})`)}_basicDot(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{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(g+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{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(g)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_basicSideRounded(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${g}v ${f}h `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, 0 ${-f}`)}}))}_basicCornerRounded(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${g}v ${f}h ${f}v `+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_basicCornerExtraRounded(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${g}v ${f}h ${f}a ${f} ${f}, 0, 0, 0, ${-f} ${-f}`)}}))}_basicCornersRounded(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${g}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:d,y:f,size:w}){this._basicDot({x:d,y:f,size:w,rotation:0})}_drawSquare({x:d,y:f,size:w}){this._basicSquare({x:d,y:f,size:w,rotation:0})}_drawRounded({x:d,y:f,size:w,getNeighbor:g}){const m=g?+g(-1,0):0,C=g?+g(1,0):0,W=g?+g(0,-1):0,V=g?+g(0,1):0,ae=m+C+W+V;if(ae!==0)if(ae>2||m&&C||W&&V)this._basicSquare({x:d,y:f,size:w,rotation:0});else{if(ae===2){let ue=0;return m&&W?ue=Math.PI/2:W&&C?ue=Math.PI:C&&V&&(ue=-Math.PI/2),void this._basicCornerRounded({x:d,y:f,size:w,rotation:ue})}if(ae===1){let ue=0;return W?ue=Math.PI/2:C?ue=Math.PI:V&&(ue=-Math.PI/2),void this._basicSideRounded({x:d,y:f,size:w,rotation:ue})}}else this._basicDot({x:d,y:f,size:w,rotation:0})}_drawExtraRounded({x:d,y:f,size:w,getNeighbor:g}){const m=g?+g(-1,0):0,C=g?+g(1,0):0,W=g?+g(0,-1):0,V=g?+g(0,1):0,ae=m+C+W+V;if(ae!==0)if(ae>2||m&&C||W&&V)this._basicSquare({x:d,y:f,size:w,rotation:0});else{if(ae===2){let ue=0;return m&&W?ue=Math.PI/2:W&&C?ue=Math.PI:C&&V&&(ue=-Math.PI/2),void this._basicCornerExtraRounded({x:d,y:f,size:w,rotation:ue})}if(ae===1){let ue=0;return W?ue=Math.PI/2:C?ue=Math.PI:V&&(ue=-Math.PI/2),void this._basicSideRounded({x:d,y:f,size:w,rotation:ue})}}else this._basicDot({x:d,y:f,size:w,rotation:0})}_drawClassy({x:d,y:f,size:w,getNeighbor:g}){const m=g?+g(-1,0):0,C=g?+g(1,0):0,W=g?+g(0,-1):0,V=g?+g(0,1):0;m+C+W+V!==0?m||W?C||V?this._basicSquare({x:d,y:f,size:w,rotation:0}):this._basicCornerRounded({x:d,y:f,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:d,y:f,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:f,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:d,y:f,size:w,getNeighbor:g}){const m=g?+g(-1,0):0,C=g?+g(1,0):0,W=g?+g(0,-1):0,V=g?+g(0,1):0;m+C+W+V!==0?m||W?C||V?this._basicSquare({x:d,y:f,size:w,rotation:0}):this._basicCornerExtraRounded({x:d,y:f,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:d,y:f,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:f,size:w,rotation:Math.PI/2})}}const R={dot:"dot",square:"square",extraRounded:"extra-rounded"},P=Object.values(R);class M{constructor({svg:d,type:f,window:w}){this._svg=d,this._type=f,this._window=w}draw(d,f,w,g){let m;switch(this._type){case R.square:m=this._drawSquare;break;case R.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:d,y:f,size:w,rotation:g})}_rotateFigure({x:d,y:f,size:w,rotation:g=0,draw:m}){var C;const W=d+w/2,V=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*g/Math.PI},${W},${V})`)}_basicDot(d){const{size:f,x:w,y:g}=d,m=f/7;this._rotateFigure(Object.assign(Object.assign({},d),{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} ${g}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(d){const{size:f,x:w,y:g}=d,m=f/7;this._rotateFigure(Object.assign(Object.assign({},d),{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} ${g}v ${f}h ${f}v `+-f+`zM ${w+m} ${g+m}h `+(f-2*m)+"v "+(f-2*m)+"h "+(2*m-f)+"z")}}))}_basicExtraRounded(d){const{size:f,x:w,y:g}=d,m=f/7;this._rotateFigure(Object.assign(Object.assign({},d),{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} ${g+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} ${g+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:d,y:f,size:w,rotation:g}){this._basicDot({x:d,y:f,size:w,rotation:g})}_drawSquare({x:d,y:f,size:w,rotation:g}){this._basicSquare({x:d,y:f,size:w,rotation:g})}_drawExtraRounded({x:d,y:f,size:w,rotation:g}){this._basicExtraRounded({x:d,y:f,size:w,rotation:g})}}const I={dot:"dot",square:"square"},j=Object.values(I);class F{constructor({svg:d,type:f,window:w}){this._svg=d,this._type=f,this._window=w}draw(d,f,w,g){let m;m=this._type===I.square?this._drawSquare:this._drawDot,m.call(this,{x:d,y:f,size:w,rotation:g})}_rotateFigure({x:d,y:f,size:w,rotation:g=0,draw:m}){var C;const W=d+w/2,V=f+w/2;m(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*g/Math.PI},${W},${V})`)}_basicDot(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{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(g+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(d){const{size:f,x:w,y:g}=d;this._rotateFigure(Object.assign(Object.assign({},d),{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(g)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_drawDot({x:d,y:f,size:w,rotation:g}){this._basicDot({x:d,y:f,size:w,rotation:g})}_drawSquare({x:d,y:f,size:w,rotation:g}){this._basicSquare({x:d,y:f,size:w,rotation:g})}}const X="circle",ie=[[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]],oe=[[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(d,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(d.width)),this._element.setAttribute("height",String(d.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),d.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${d.width} ${d.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=d.image,this._instanceId=ce.instanceCount++,this._options=d}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(d){const f=d.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,g=this._options.shape===X?w/Math.sqrt(2):w,m=this._roundSize(g/f);let C={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=d,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:W,qrOptions:V}=this._options,ae=W.imageSize*A[V.errorCorrectionLevel],ue=Math.floor(ae*f*f);C=function({originalHeight:be,originalWidth:ne,maxHiddenDots:de,maxHiddenAxisDots:Ce,dotSize:_e}){const B={x:0,y:0},z={x:0,y:0};if(be<=0||ne<=0||de<=0||_e<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const Y=be/ne;return B.x=Math.floor(Math.sqrt(de/Y)),B.x<=0&&(B.x=1),Ce&&Ce<B.x&&(B.x=Ce),B.x%2==0&&B.x--,z.x=B.x*_e,B.y=1+2*Math.ceil((B.x*Y-1)/2),z.y=Math.round(z.x*Y),(B.y*B.x>de||Ce&&Ce<B.y)&&(Ce&&Ce<B.y?(B.y=Ce,B.y%2==0&&B.x--):B.y-=2,z.y=B.y*_e,B.x=1+2*Math.ceil((B.y/Y-1)/2),z.x=Math.round(z.y/Y)),{height:z.y,width:z.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ue,maxHiddenAxisDots:f-14,dotSize:m})}this.drawBackground(),this.drawDots((W,V)=>{var ae,ue,be,ne,de,Ce;return!(this._options.imageOptions.hideBackgroundDots&&W>=(f-C.hideYDots)/2&&W<(f+C.hideYDots)/2&&V>=(f-C.hideXDots)/2&&V<(f+C.hideXDots)/2||!((ae=ie[W])===null||ae===void 0)&&ae[V]||!((ue=ie[W-f+7])===null||ue===void 0)&&ue[V]||!((be=ie[W])===null||be===void 0)&&be[V-f+7]||!((ne=oe[W])===null||ne===void 0)&&ne[V]||!((de=oe[W-f+7])===null||de===void 0)&&de[V]||!((Ce=oe[W])===null||Ce===void 0)&&Ce[V-f+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:C.width,height:C.height,count:f,dotSize:m})}drawBackground(){var d,f,w;const g=this._element,m=this._options;if(g){const C=(d=m.backgroundOptions)===null||d===void 0?void 0:d.gradient,W=(f=m.backgroundOptions)===null||f===void 0?void 0:f.color;let V=m.height,ae=m.width;if(C||W){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&&(V=ae=Math.min(m.width,m.height),ue.setAttribute("rx",String(V/2*m.backgroundOptions.round))),ue.setAttribute("x",String(this._roundSize((m.width-ae)/2))),ue.setAttribute("y",String(this._roundSize((m.height-V)/2))),ue.setAttribute("width",String(ae)),ue.setAttribute("height",String(V)),this._backgroundClipPath.appendChild(ue),this._createColor({options:C,color:W,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(d){var f,w;if(!this._qr)throw"QR code is not defined";const g=this._options,m=this._qr.getModuleCount();if(m>g.width||m>g.height)throw"The canvas is too small.";const C=Math.min(g.width,g.height)-2*g.margin,W=g.shape===X?C/Math.sqrt(2):C,V=this._roundSize(W/m),ae=this._roundSize((g.width-m*V)/2),ue=this._roundSize((g.height-m*V)/2),be=new T({svg:this._element,type:g.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=g.dotsOptions)===null||f===void 0?void 0:f.gradient,color:g.dotsOptions.color,additionalRotation:0,x:0,y:0,height:g.height,width:g.width,name:`dot-color-${this._instanceId}`});for(let ne=0;ne<m;ne++)for(let de=0;de<m;de++)d&&!d(ne,de)||!((w=this._qr)===null||w===void 0)&&w.isDark(ne,de)&&(be.draw(ae+de*V,ue+ne*V,V,(Ce,_e)=>!(de+Ce<0||ne+_e<0||de+Ce>=m||ne+_e>=m)&&!(d&&!d(ne+_e,de+Ce))&&!!this._qr&&this._qr.isDark(ne+_e,de+Ce)),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element));if(g.shape===X){const ne=this._roundSize((C/V-m)/2),de=m+2*ne,Ce=ae-ne*V,_e=ue-ne*V,B=[],z=this._roundSize(de/2);for(let Y=0;Y<de;Y++){B[Y]=[];for(let Z=0;Z<de;Z++)Y>=ne-1&&Y<=de-ne&&Z>=ne-1&&Z<=de-ne||Math.sqrt((Y-z)*(Y-z)+(Z-z)*(Z-z))>z?B[Y][Z]=0:B[Y][Z]=this._qr.isDark(Z-2*ne<0?Z:Z>=m?Z-2*ne:Z-ne,Y-2*ne<0?Y:Y>=m?Y-2*ne:Y-ne)?1:0}for(let Y=0;Y<de;Y++)for(let Z=0;Z<de;Z++)B[Y][Z]&&(be.draw(Ce+Z*V,_e+Y*V,V,(se,De)=>{var u;return!!(!((u=B[Y+De])===null||u===void 0)&&u[Z+se])}),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const d=this._element,f=this._options;if(!d)throw"Element code is not defined";const w=this._qr.getModuleCount(),g=Math.min(f.width,f.height)-2*f.margin,m=f.shape===X?g/Math.sqrt(2):g,C=this._roundSize(m/w),W=7*C,V=3*C,ae=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(([be,ne,de])=>{var Ce,_e,B,z,Y,Z,se,De,u,h,_,k,q,Q;const Ae=ae+be*C*(w-7),we=ue+ne*C*(w-7);let Re=this._dotsClipPath,Se=this._dotsClipPath;if((!((Ce=f.cornersSquareOptions)===null||Ce===void 0)&&Ce.gradient||!((_e=f.cornersSquareOptions)===null||_e===void 0)&&_e.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${be}-${ne}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Se=Re,this._createColor({options:(B=f.cornersSquareOptions)===null||B===void 0?void 0:B.gradient,color:(z=f.cornersSquareOptions)===null||z===void 0?void 0:z.color,additionalRotation:de,x:Ae,y:we,height:W,width:W,name:`corners-square-color-${be}-${ne}-${this._instanceId}`})),((Y=f.cornersSquareOptions)===null||Y===void 0?void 0:Y.type)&&P.includes(f.cornersSquareOptions.type)){const Le=new M({svg:this._element,type:f.cornersSquareOptions.type,window:this._window});Le.draw(Ae,we,W,de),Le._element&&Re&&Re.appendChild(Le._element)}else{const Le=new T({svg:this._element,type:((Z=f.cornersSquareOptions)===null||Z===void 0?void 0:Z.type)||f.dotsOptions.type,window:this._window});for(let Ne=0;Ne<ie.length;Ne++)for(let ke=0;ke<ie[Ne].length;ke++)!((se=ie[Ne])===null||se===void 0)&&se[ke]&&(Le.draw(Ae+ke*C,we+Ne*C,C,(Ge,Je)=>{var Ve;return!!(!((Ve=ie[Ne+Je])===null||Ve===void 0)&&Ve[ke+Ge])}),Le._element&&Re&&Re.appendChild(Le._element))}if((!((De=f.cornersDotOptions)===null||De===void 0)&&De.gradient||!((u=f.cornersDotOptions)===null||u===void 0)&&u.color)&&(Se=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Se.setAttribute("id",`clip-path-corners-dot-color-${be}-${ne}-${this._instanceId}`),this._defs.appendChild(Se),this._cornersDotClipPath=Se,this._createColor({options:(h=f.cornersDotOptions)===null||h===void 0?void 0:h.gradient,color:(_=f.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:de,x:Ae+2*C,y:we+2*C,height:V,width:V,name:`corners-dot-color-${be}-${ne}-${this._instanceId}`})),((k=f.cornersDotOptions)===null||k===void 0?void 0:k.type)&&j.includes(f.cornersDotOptions.type)){const Le=new F({svg:this._element,type:f.cornersDotOptions.type,window:this._window});Le.draw(Ae+2*C,we+2*C,V,de),Le._element&&Se&&Se.appendChild(Le._element)}else{const Le=new T({svg:this._element,type:((q=f.cornersDotOptions)===null||q===void 0?void 0:q.type)||f.dotsOptions.type,window:this._window});for(let Ne=0;Ne<oe.length;Ne++)for(let ke=0;ke<oe[Ne].length;ke++)!((Q=oe[Ne])===null||Q===void 0)&&Q[ke]&&(Le.draw(Ae+ke*C,we+Ne*C,C,(Ge,Je)=>{var Ve;return!!(!((Ve=oe[Ne+Je])===null||Ve===void 0)&&Ve[ke+Ge])}),Le._element&&Se&&Se.appendChild(Le._element))}})}loadImage(){return new Promise((d,f)=>{var w;const g=this._options;if(!g.image)return f("Image is not defined");if(!((w=g.nodeCanvas)===null||w===void 0)&&w.loadImage)g.nodeCanvas.loadImage(g.image).then(m=>{var C,W;if(this._image=m,this._options.imageOptions.saveAsBlob){const V=(C=g.nodeCanvas)===null||C===void 0?void 0:C.createCanvas(this._image.width,this._image.height);(W=V==null?void 0:V.getContext("2d"))===null||W===void 0||W.drawImage(m,0,0),this._imageUri=V==null?void 0:V.toDataURL()}d()}).catch(f);else{const m=new this._window.Image;typeof g.imageOptions.crossOrigin=="string"&&(m.crossOrigin=g.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(C,W){return new Promise(V=>{const ae=new W.XMLHttpRequest;ae.onload=function(){const ue=new W.FileReader;ue.onloadend=function(){V(ue.result)},ue.readAsDataURL(ae.response)},ae.open("GET",C),ae.responseType="blob",ae.send()})}(g.image||"",this._window)),d()},m.src=g.image}})}async drawImage({width:d,height:f,count:w,dotSize:g}){const m=this._options,C=this._roundSize((m.width-w*g)/2),W=this._roundSize((m.height-w*g)/2),V=C+this._roundSize(m.imageOptions.margin+(w*g-d)/2),ae=W+this._roundSize(m.imageOptions.margin+(w*g-f)/2),ue=d-2*m.imageOptions.margin,be=f-2*m.imageOptions.margin,ne=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");ne.setAttribute("href",this._imageUri||""),ne.setAttribute("xlink:href",this._imageUri||""),ne.setAttribute("x",String(V)),ne.setAttribute("y",String(ae)),ne.setAttribute("width",`${ue}px`),ne.setAttribute("height",`${be}px`),this._element.appendChild(ne)}_createColor({options:d,color:f,additionalRotation:w,x:g,y:m,height:C,width:W,name:V}){const ae=W>C?W:C,ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ue.setAttribute("x",String(g)),ue.setAttribute("y",String(m)),ue.setAttribute("height",String(C)),ue.setAttribute("width",String(W)),ue.setAttribute("clip-path",`url('#clip-path-${V}')`),d){let be;if(d.type==="radial")be=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),be.setAttribute("id",V),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("fx",String(g+W/2)),be.setAttribute("fy",String(m+C/2)),be.setAttribute("cx",String(g+W/2)),be.setAttribute("cy",String(m+C/2)),be.setAttribute("r",String(ae/2));else{const ne=((d.rotation||0)+w)%(2*Math.PI),de=(ne+2*Math.PI)%(2*Math.PI);let Ce=g+W/2,_e=m+C/2,B=g+W/2,z=m+C/2;de>=0&&de<=.25*Math.PI||de>1.75*Math.PI&&de<=2*Math.PI?(Ce-=W/2,_e-=C/2*Math.tan(ne),B+=W/2,z+=C/2*Math.tan(ne)):de>.25*Math.PI&&de<=.75*Math.PI?(_e-=C/2,Ce-=W/2/Math.tan(ne),z+=C/2,B+=W/2/Math.tan(ne)):de>.75*Math.PI&&de<=1.25*Math.PI?(Ce+=W/2,_e+=C/2*Math.tan(ne),B-=W/2,z-=C/2*Math.tan(ne)):de>1.25*Math.PI&&de<=1.75*Math.PI&&(_e+=C/2,Ce+=W/2/Math.tan(ne),z-=C/2,B-=W/2/Math.tan(ne)),be=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),be.setAttribute("id",V),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("x1",String(Math.round(Ce))),be.setAttribute("y1",String(Math.round(_e))),be.setAttribute("x2",String(Math.round(B))),be.setAttribute("y2",String(Math.round(z)))}d.colorStops.forEach(({offset:ne,color:de})=>{const Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Ce.setAttribute("offset",100*ne+"%"),Ce.setAttribute("stop-color",de),be.appendChild(Ce)}),ue.setAttribute("fill",`url('#${V}')`),this._defs.appendChild(be)}else f&&ue.setAttribute("fill",f);this._element.appendChild(ue)}}ce.instanceCount=0;const K=ce,fe="canvas",ee={};for(let O=0;O<=40;O++)ee[O]=O;const J={type:fe,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ee[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 ve(O){const d=Object.assign({},O);if(!d.colorStops||!d.colorStops.length)throw"Field 'colorStops' is required in gradient";return d.rotation?d.rotation=Number(d.rotation):d.rotation=0,d.colorStops=d.colorStops.map(f=>Object.assign(Object.assign({},f),{offset:Number(f.offset)})),d}function he(O){const d=Object.assign({},O);return d.width=Number(d.width),d.height=Number(d.height),d.margin=Number(d.margin),d.imageOptions=Object.assign(Object.assign({},d.imageOptions),{hideBackgroundDots:!!d.imageOptions.hideBackgroundDots,imageSize:Number(d.imageOptions.imageSize),margin:Number(d.imageOptions.margin)}),d.margin>Math.min(d.width,d.height)&&(d.margin=Math.min(d.width,d.height)),d.dotsOptions=Object.assign({},d.dotsOptions),d.dotsOptions.gradient&&(d.dotsOptions.gradient=ve(d.dotsOptions.gradient)),d.cornersSquareOptions&&(d.cornersSquareOptions=Object.assign({},d.cornersSquareOptions),d.cornersSquareOptions.gradient&&(d.cornersSquareOptions.gradient=ve(d.cornersSquareOptions.gradient))),d.cornersDotOptions&&(d.cornersDotOptions=Object.assign({},d.cornersDotOptions),d.cornersDotOptions.gradient&&(d.cornersDotOptions.gradient=ve(d.cornersDotOptions.gradient))),d.backgroundOptions&&(d.backgroundOptions=Object.assign({},d.backgroundOptions),d.backgroundOptions.gradient&&(d.backgroundOptions.gradient=ve(d.backgroundOptions.gradient))),d}var te=l(873),Oe=l.n(te);function Te(O){if(!O)throw new Error("Extension must be defined");O[0]==="."&&(O=O.substring(1));const d={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"}[O.toLowerCase()];if(!d)throw new Error(`Extension "${O}" is not supported`);return d}class N{constructor(d){d!=null&&d.jsdom?this._window=new d.jsdom("",{resources:"usable"}).window:this._window=window,this._options=d?he(c(J,d)):J,this.update()}static _clearContainer(d){d&&(d.innerHTML="")}_setupSvg(){if(!this._qr)return;const d=new K(this._options,this._window);this._svg=d.getElement(),this._svgDrawingPromise=d.drawQR(this._qr).then(()=>{var f;this._svg&&((f=this._extension)===null||f===void 0||f.call(this,d.getElement(),this._options))})}_setupCanvas(){var d,f;this._qr&&(!((d=this._options.nodeCanvas)===null||d===void 0)&&d.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 g=this._svg,m=new this._window.XMLSerializer().serializeToString(g),C=btoa(m),W=`data:${Te("svg")};base64,${C}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(W).then(V=>{var ae,ue;V.width=this._options.width,V.height=this._options.height,(ue=(ae=this._nodeCanvas)===null||ae===void 0?void 0:ae.getContext("2d"))===null||ue===void 0||ue.drawImage(V,0,0)});{const V=new this._window.Image;return new Promise(ae=>{V.onload=()=>{var ue,be;(be=(ue=this._domCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||be===void 0||be.drawImage(V,0,0),ae()},V.src=W})}}))}async _getElement(d="png"){if(!this._qr)throw"QR code is empty";return d.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(d){N._clearContainer(this._container),this._options=d?he(c(this._options,d)):this._options,this._options.data&&(this._qr=Oe()(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===fe?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(d){if(d){if(typeof d.appendChild!="function")throw"Container should be a single DOM node";this._options.type===fe?this._domCanvas&&d.appendChild(this._domCanvas):this._svg&&d.appendChild(this._svg),this._container=d}}applyExtension(d){if(!d)throw"Extension function should be defined.";this._extension=d,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(d="png"){if(!this._qr)throw"QR code is empty";const f=await this._getElement(d),w=Te(d);if(!f)return null;if(d.toLowerCase()==="svg"){const g=`<?xml version="1.0" standalone="no"?>\r
|
|
116
116
|
${new this._window.XMLSerializer().serializeToString(f)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(g):new Blob([g],{type:w})}return new Promise(g=>{const m=f;if("toBuffer"in m)if(w==="image/png")g(m.toBuffer(w));else if(w==="image/jpeg")g(m.toBuffer(w));else{if(w!=="application/pdf")throw Error("Unsupported extension");g(m.toBuffer(w))}else"toBlob"in m&&m.toBlob(g,w,1)})}async download(d){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 d=="string"?(f=d,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof d=="object"&&d!==null&&(d.name&&(w=d.name),d.extension&&(f=d.extension));const g=await this._getElement(f);if(g)if(f.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(g);m=`<?xml version="1.0" standalone="no"?>\r
|
|
117
|
-
`+m,x(`data:${Te(f)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else x(g.toDataURL(Te(f)),`${w}.${f}`)}}const E=N})(),p.default})())}(ba)),ba.exports}Pg();const cc=me.createContext(void 0);function Ng(i){const n=wn.c(9),{children:r,baseUrl:s,queryClient:l}=i;let p;n[0]!==s||n[1]!==l?(p={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=p):p=n[2];let v;n[3]!==r||n[4]!==l?(v=D.jsx(xl,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=v):v=n[5];let c;return n[6]!==p||n[7]!==v?(c=D.jsx(cc.Provider,{value:p,children:v}),n[6]=p,n[7]=v,n[8]=c):c=n[8],c}function sr(){const i=me.useContext(cc);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function $g(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function Ir(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Cg()??""}`,...$g()}}async function fc(i){return fetch(i,{method:"GET",headers:await Ir()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function hc(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await Ir()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function dc(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await Ir()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function pc(i,n){return fetch(i,{method:"POST",headers:await Ir(),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 Bg(i,n,r){return fetch(n,{method:i,headers:await Ir(),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 gc(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await Ir(),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 mc(i,n,r){const s=wn.c(13),{baseUrl:l}=sr();let p;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r==null?void 0:r.toString(),s[3]=r,s[4]=A):A=s[4],p=[...n.map(jg),String(A)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let v;s[5]!==i||s[6]!==l||s[7]!==r?(v=()=>hc(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=v):v=s[8];const c=!!r;let x;return s[9]!==p||s[10]!==v||s[11]!==c?(x={queryKey:p,queryFn:v,enabled:c},s[9]=p,s[10]=v,s[11]=c,s[12]=x):x=s[12],Al(x)}function jg(i){return i.toString()}function vc(i,n){const r=wn.c(8),{baseUrl:s}=sr();let l;r[0]!==n?(l=[...n.map(Yg)],r[0]=n,r[1]=l):l=r[1];let p;r[2]!==i||r[3]!==s?(p=()=>fc(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let v;return r[5]!==l||r[6]!==p?(v={queryKey:l,queryFn:p},r[5]=l,r[6]=p,r[7]=v):v=r[7],Al(v)}function Yg(i){return i.toString()}function yc(i,n){const r=wn.c(10),{baseUrl:s,queryClient:l}=sr();let p;r[0]!==n?(p=[...n.map(Fg)],r[0]=n,r[1]=p):p=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>pc(`${s}${i}`,x),r[2]=i,r[3]=s,r[4]=v):v=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==v?(c={mutationKey:p,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Ug)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=v,r[9]=c):c=r[9],na(c)}function Ug(i){return i.toString()}function Fg(i){return i.toString()}function xa(i,n){const r=wn.c(10),{baseUrl:s,queryClient:l}=sr();let p;r[0]!==n?(p=[...n.map(zg)],r[0]=n,r[1]=p):p=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>gc(`${s}${i}`,x),r[2]=i,r[3]=s,r[4]=v):v=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==v?(c={mutationKey:p,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Wg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=v,r[9]=c):c=r[9],na(c)}function Wg(i){return i.toString()}function zg(i){return i.toString()}function _c(i,n){const r=wn.c(10),{baseUrl:s,queryClient:l}=sr();let p;r[0]!==n?(p=[...n.map(Hg)],r[0]=n,r[1]=p):p=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>dc(`${s}${i}`,x),r[2]=i,r[3]=s,r[4]=v):v=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==v?(c={mutationKey:p,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(qg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=v,r[9]=c):c=r[9],na(c)}function qg(i){return i.toString()}function Hg(i){return i.toString()}var $o={exports:{}},Gg=$o.exports,wc;function Vg(){return wc||(wc=1,function(i,n){(function(r,s){i.exports=s()})(Gg,function(){var r=1e3,s=6e4,l=36e5,p="millisecond",v="second",c="minute",x="hour",A="day",T="week",R="month",P="quarter",M="year",I="date",j="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|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,ie={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(N){var E=["th","st","nd","rd"],O=N%100;return"["+N+(E[(O-20)%10]||E[O]||E[0])+"]"}},oe=function(N,E,O){var d=String(N);return!d||d.length>=E?N:""+Array(E+1-d.length).join(O)+N},ce={s:oe,z:function(N){var E=-N.utcOffset(),O=Math.abs(E),d=Math.floor(O/60),f=O%60;return(E<=0?"+":"-")+oe(d,2,"0")+":"+oe(f,2,"0")},m:function N(E,O){if(E.date()<O.date())return-N(O,E);var d=12*(O.year()-E.year())+(O.month()-E.month()),f=E.clone().add(d,R),w=O-f<0,g=E.clone().add(d+(w?-1:1),R);return+(-(d+(O-f)/(w?f-g:g-f))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:R,y:M,w:T,d:A,D:I,h:x,m:c,s:v,ms:p,Q:P}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},K="en",fe={};fe[K]=ie;var ee="$isDayjsObject",J=function(N){return N instanceof Oe||!(!N||!N[ee])},ve=function N(E,O,d){var f;if(!E)return K;if(typeof E=="string"){var w=E.toLowerCase();fe[w]&&(f=w),O&&(fe[w]=O,f=w);var g=E.split("-");if(!f&&g.length>1)return N(g[0])}else{var m=E.name;fe[m]=E,f=m}return!d&&f&&(K=f),f||!d&&K},he=function(N,E){if(J(N))return N.clone();var O=typeof E=="object"?E:{};return O.date=N,O.args=arguments,new Oe(O)},te=ce;te.l=ve,te.i=J,te.w=function(N,E){return he(N,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var Oe=function(){function N(O){this.$L=ve(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[ee]=!0}var E=N.prototype;return E.parse=function(O){this.$d=function(d){var f=d.date,w=d.utc;if(f===null)return new Date(NaN);if(te.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var g=f.match(F);if(g){var m=g[2]-1||0,C=(g[7]||"0").substring(0,3);return w?new Date(Date.UTC(g[1],m,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)):new Date(g[1],m,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)}}return new Date(f)}(O),this.init()},E.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},E.$utils=function(){return te},E.isValid=function(){return this.$d.toString()!==j},E.isSame=function(O,d){var f=he(O);return this.startOf(d)<=f&&f<=this.endOf(d)},E.isAfter=function(O,d){return he(O)<this.startOf(d)},E.isBefore=function(O,d){return this.endOf(d)<he(O)},E.$g=function(O,d,f){return te.u(O)?this[d]:this.set(f,O)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(O,d){var f=this,w=!!te.u(d)||d,g=te.p(O),m=function(de,Ce){var _e=te.w(f.$u?Date.UTC(f.$y,Ce,de):new Date(f.$y,Ce,de),f);return w?_e:_e.endOf(A)},C=function(de,Ce){return te.w(f.toDate()[de].apply(f.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(Ce)),f)},W=this.$W,V=this.$M,ae=this.$D,ue="set"+(this.$u?"UTC":"");switch(g){case M:return w?m(1,0):m(31,11);case R:return w?m(1,V):m(0,V+1);case T:var be=this.$locale().weekStart||0,ne=(W<be?W+7:W)-be;return m(w?ae-ne:ae+(6-ne),V);case A:case I:return C(ue+"Hours",0);case x:return C(ue+"Minutes",1);case c:return C(ue+"Seconds",2);case v:return C(ue+"Milliseconds",3);default:return this.clone()}},E.endOf=function(O){return this.startOf(O,!1)},E.$set=function(O,d){var f,w=te.p(O),g="set"+(this.$u?"UTC":""),m=(f={},f[A]=g+"Date",f[I]=g+"Date",f[R]=g+"Month",f[M]=g+"FullYear",f[x]=g+"Hours",f[c]=g+"Minutes",f[v]=g+"Seconds",f[p]=g+"Milliseconds",f)[w],C=w===A?this.$D+(d-this.$W):d;if(w===R||w===M){var W=this.clone().set(I,1);W.$d[m](C),W.init(),this.$d=W.set(I,Math.min(this.$D,W.daysInMonth())).$d}else m&&this.$d[m](C);return this.init(),this},E.set=function(O,d){return this.clone().$set(O,d)},E.get=function(O){return this[te.p(O)]()},E.add=function(O,d){var f,w=this;O=Number(O);var g=te.p(d),m=function(V){var ae=he(w);return te.w(ae.date(ae.date()+Math.round(V*O)),w)};if(g===R)return this.set(R,this.$M+O);if(g===M)return this.set(M,this.$y+O);if(g===A)return m(1);if(g===T)return m(7);var C=(f={},f[c]=s,f[x]=l,f[v]=r,f)[g]||1,W=this.$d.getTime()+O*C;return te.w(W,this)},E.subtract=function(O,d){return this.add(-1*O,d)},E.format=function(O){var d=this,f=this.$locale();if(!this.isValid())return f.invalidDate||j;var w=O||"YYYY-MM-DDTHH:mm:ssZ",g=te.z(this),m=this.$H,C=this.$m,W=this.$M,V=f.weekdays,ae=f.months,ue=f.meridiem,be=function(Ce,_e,B,z){return Ce&&(Ce[_e]||Ce(d,w))||B[_e].slice(0,z)},ne=function(Ce){return te.s(m%12||12,Ce,"0")},de=ue||function(Ce,_e,B){var z=Ce<12?"AM":"PM";return B?z.toLowerCase():z};return w.replace(X,function(Ce,_e){return _e||function(B){switch(B){case"YY":return String(d.$y).slice(-2);case"YYYY":return te.s(d.$y,4,"0");case"M":return W+1;case"MM":return te.s(W+1,2,"0");case"MMM":return be(f.monthsShort,W,ae,3);case"MMMM":return be(ae,W);case"D":return d.$D;case"DD":return te.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return be(f.weekdaysMin,d.$W,V,2);case"ddd":return be(f.weekdaysShort,d.$W,V,3);case"dddd":return V[d.$W];case"H":return String(m);case"HH":return te.s(m,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return de(m,C,!0);case"A":return de(m,C,!1);case"m":return String(C);case"mm":return te.s(C,2,"0");case"s":return String(d.$s);case"ss":return te.s(d.$s,2,"0");case"SSS":return te.s(d.$ms,3,"0");case"Z":return g}return null}(Ce)||g.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(O,d,f){var w,g=this,m=te.p(d),C=he(O),W=(C.utcOffset()-this.utcOffset())*s,V=this-C,ae=function(){return te.m(g,C)};switch(m){case M:w=ae()/12;break;case R:w=ae();break;case P:w=ae()/3;break;case T:w=(V-W)/6048e5;break;case A:w=(V-W)/864e5;break;case x:w=V/l;break;case c:w=V/s;break;case v:w=V/r;break;default:w=V}return f?w:te.a(w)},E.daysInMonth=function(){return this.endOf(R).$D},E.$locale=function(){return fe[this.$L]},E.locale=function(O,d){if(!O)return this.$L;var f=this.clone(),w=ve(O,d,!0);return w&&(f.$L=w),f},E.clone=function(){return te.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},N}(),Te=Oe.prototype;return he.prototype=Te,[["$ms",p],["$s",v],["$m",c],["$H",x],["$W",A],["$M",R],["$y",M],["$D",I]].forEach(function(N){Te[N[1]]=function(E){return this.$g(E,N[0],N[1])}}),he.extend=function(N,E){return N.$i||(N(E,Oe,he),N.$i=!0),he},he.locale=ve,he.isDayjs=J,he.unix=function(N){return he(1e3*N)},he.en=fe[K],he.Ls=fe,he.p={},he})}($o)),$o.exports}var Zg=Vg();const Ee=il(Zg);function Kg({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=l[n-1][l[n-1].length-1]-1?l[n-1].length-1:l[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===l[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===l[n].length-2&&s>=l[n][l[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:l[n-1].length-1,cellIndex:l[n-1][l[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:l[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===l[n].length-1&&s===l[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===l[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 bc({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:p}){var x,A,T;const v=Kg({direction:n,size:p,rowIndex:s,cellIndex:l,levelIndex:r});if(!v)return;const c=(T=(A=(x=i.current)==null?void 0:x[v.levelIndex])==null?void 0:A[v.rowIndex])==null?void 0:T[v.cellIndex];c&&(c.disabled||c.getAttribute("data-hidden")||c.getAttribute("data-outside")?bc({controlsRef:i,direction:n,levelIndex:v.levelIndex,cellIndex:v.cellIndex,rowIndex:v.rowIndex,size:p}):c.focus())}function Qg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function Jg(i){var n;return(n=i.current)==null?void 0:n.map(r=>r.map(s=>s.length))}function Sa({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const p=Qg(l.key);if(p){l.preventDefault();const v=Jg(i);bc({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:v})}}function un(i){return i==null||i===""?i:Ee(i).format("YYYY-MM-DD")}function xc(i){return i==null||i===""?i:Ee(i).format("YYYY-MM-DD HH:mm:ss")}const Xg={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},e1=me.createContext(Xg);function ar(){const i=me.useContext(e1),n=me.useCallback(p=>p||i.locale,[i.locale]),r=me.useCallback(p=>typeof p=="number"?p:i.firstDayOfWeek,[i.firstDayOfWeek]),s=me.useCallback(p=>Array.isArray(p)?p:i.weekendDays,[i.weekendDays]),l=me.useCallback(p=>typeof p=="string"?p:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:l}}function t1({value:i,type:n,withTime:r}){const s=r?xc:un;if(n==="range"&&Array.isArray(i)){const l=s(i[0]),p=s(i[1]);return l?p?`${l} – ${p}`:`${l} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function Sc({value:i,type:n,name:r,form:s,withTime:l=!1}){return D.jsx("input",{type:"hidden",value:t1({value:i,type:n,withTime:l}),name:r,form:s})}Sc.displayName="@mantine/dates/HiddenDatesInput";function Cc(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var l=i.length;for(n=0;n<l;n++)i[n]&&(r=Cc(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function vt(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=Cc(i))&&(s&&(s+=" "),s+=n);return s}var Ac={day:"m_396ce5cb"};const n1={},r1=$.createVarsResolver((i,{size:n})=>({day:{"--day-size":$.getSize(n,"day-size")}})),Ca=$.factory((i,n)=>{const r=$.useProps("Day",n1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,date:A,disabled:T,__staticSelector:R,weekend:P,outside:M,selected:I,renderDay:j,inRange:F,firstInRange:X,lastInRange:ie,hidden:oe,static:ce,highlightToday:K,...fe}=r,ee=$.useStyles({name:R||"Day",classes:Ac,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:r1,rootSelector:"day"});return D.jsx($.UnstyledButton,{...ee("day",{style:oe?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:T,"data-today":Ee(A).isSame(new Date,"day")||void 0,"data-hidden":oe||void 0,"data-highlight-today":K||void 0,"data-disabled":T||void 0,"data-weekend":!T&&!M&&P||void 0,"data-outside":!T&&M||void 0,"data-selected":!T&&I||void 0,"data-in-range":F&&!T||void 0,"data-first-in-range":X&&!T||void 0,"data-last-in-range":ie&&!T||void 0,"data-static":ce||void 0,unstyled:c,...fe,children:(j==null?void 0:j(A))||Ee(A).date()})});Ca.classes=Ac,Ca.displayName="@mantine/dates/Day";function i1({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Ee().day(r),l=[];for(let p=0;p<7;p+=1)typeof n=="string"?l.push(Ee(s).add(p,"days").locale(i).format(n)):l.push(n(Ee(s).add(p,"days").format("YYYY-MM-DD")));return l}var Dc={weekday:"m_18a3eca"};const o1={},s1=$.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":$.getFontSize(n),"--wr-spacing":$.getSpacing(n)}})),Aa=$.factory((i,n)=>{const r=$.useProps("WeekdaysRow",o1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,locale:A,firstDayOfWeek:T,weekdayFormat:R,cellComponent:P="th",__staticSelector:M,withWeekNumbers:I,...j}=r,F=$.useStyles({name:M||"WeekdaysRow",classes:Dc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:s1,rootSelector:"weekdaysRow"}),X=ar(),ie=i1({locale:X.getLocale(A),format:R,firstDayOfWeek:X.getFirstDayOfWeek(T)}).map((oe,ce)=>D.jsx(P,{...F("weekday"),children:oe},ce));return D.jsxs($.Box,{component:"tr",ref:n,...F("weekdaysRow"),...j,children:[I&&D.jsx(P,{...F("weekday"),children:"#"}),ie]})});Aa.classes=Dc,Aa.displayName="@mantine/dates/WeekdaysRow";function a1(i,n=1){let r=Ee(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function u1(i,n=1){let r=Ee(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function l1({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Ee(i).subtract(Ee(i).date()-1,"day"),l=Ee(s.format("YYYY-M-D")),p=l.format("YYYY-MM-DD"),v=l.add(+l.daysInMonth()-1,"day").format("YYYY-MM-DD"),c=a1(v,n),x=[];let A=Ee(u1(p,n));for(;Ee(A).isBefore(c,"day");){const T=[];for(let R=0;R<7;R+=1)T.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");x.push(T)}if(r&&x.length<6){const T=x[x.length-1],R=T[T.length-1];let P=Ee(R).add(1,"day");for(;x.length<6;){const M=[];for(let I=0;I<7;I+=1)M.push(P.format("YYYY-MM-DD")),P=P.add(1,"day");x.push(M)}}return x}function Da(i,n){return Ee(i).format("YYYY-MM")===Ee(n).format("YYYY-MM")}function Oc(i,n){return n?Ee(i).isAfter(Ee(n).subtract(1,"day"),"day"):!0}function Tc(i,n){return n?Ee(i).isBefore(Ee(n).add(1,"day"),"day"):!0}function c1({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:l,hideOutsideDates:p,month:v}){const c=i.flat().filter(T=>{var R;return Tc(T,r)&&Oc(T,n)&&!(l!=null&&l(T))&&!((R=s==null?void 0:s(T))!=null&&R.disabled)&&(!p||Da(T,v))}),x=c.find(T=>{var R;return(R=s==null?void 0:s(T))==null?void 0:R.selected});if(x)return x;const A=c.find(T=>Ee().isSame(T,"date"));return A||c[0]}var Bo={exports:{}},f1=Bo.exports,Mc;function h1(){return Mc||(Mc=1,function(i,n){(function(r,s){i.exports=s()})(f1,function(){var r="day";return function(s,l,p){var v=function(A){return A.add(4-A.isoWeekday(),r)},c=l.prototype;c.isoWeekYear=function(){return v(this).year()},c.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var T,R,P,M,I=v(this),j=(T=this.isoWeekYear(),R=this.$u,P=(R?p.utc:p)().year(T).startOf("year"),M=4-P.isoWeekday(),P.isoWeekday()>4&&(M+=7),P.add(M,r));return I.diff(j,"week")+1},c.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var x=c.startOf;c.startOf=function(A,T){var R=this.$utils(),P=!!R.u(T)||T;return R.p(A)==="isoweek"?P?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):x.bind(this)(A,T)}}})}(Bo)),Bo.exports}var d1=h1();const p1=il(d1);Ee.extend(p1);function g1(i){const n=i.find(r=>Ee(r).day()===1);return Ee(n).isoWeek()}var Ec={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const m1={withCellSpacing:!0},v1=$.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":$.getFontSize(n),"--wn-size":$.getSize(n,"wn-size")}})),jo=$.factory((i,n)=>{const r=$.useProps("Month",m1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:A,locale:T,firstDayOfWeek:R,weekdayFormat:P,month:M,weekendDays:I,getDayProps:j,excludeDate:F,minDate:X,maxDate:ie,renderDay:oe,hideOutsideDates:ce,hideWeekdays:K,getDayAriaLabel:fe,static:ee,__getDayRef:J,__onDayKeyDown:ve,__onDayClick:he,__onDayMouseEnter:te,__preventFocus:Oe,__stopPropagation:Te,withCellSpacing:N,size:E,highlightToday:O,withWeekNumbers:d,...f}=r,w=$.useStyles({name:A||"Month",classes:Ec,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:v1,rootSelector:"month"}),g=ar(),m=l1({month:M,firstDayOfWeek:g.getFirstDayOfWeek(R),consistentWeeks:g.consistentWeeks}),C=c1({dates:m,minDate:un(X),maxDate:un(ie),getDayProps:j,excludeDate:F,hideOutsideDates:ce,month:M}),{resolvedClassNames:W,resolvedStyles:V}=$.useResolvedStylesApi({classNames:s,styles:v,props:r}),ae=m.map((ue,be)=>{const ne=ue.map((de,Ce)=>{const _e=!Da(de,M),B=(fe==null?void 0:fe(de))||Ee(de).locale(T||g.locale).format("D MMMM YYYY"),z=j==null?void 0:j(de),Y=Ee(de).isSame(C,"date");return D.jsx("td",{...w("monthCell"),"data-with-spacing":N||void 0,children:D.jsx(Ca,{__staticSelector:A||"Month",classNames:W,styles:V,unstyled:c,"data-mantine-stop-propagation":Te||void 0,highlightToday:O,renderDay:oe,date:de,size:E,weekend:g.getWeekendDays(I).includes(Ee(de).get("day")),outside:_e,hidden:ce?_e:!1,"aria-label":B,static:ee,disabled:(F==null?void 0:F(de))||!Tc(de,un(ie))||!Oc(de,un(X)),ref:Z=>J==null?void 0:J(be,Ce,Z),...z,onKeyDown:Z=>{var se;(se=z==null?void 0:z.onKeyDown)==null||se.call(z,Z),ve==null||ve(Z,{rowIndex:be,cellIndex:Ce,date:de})},onMouseEnter:Z=>{var se;(se=z==null?void 0:z.onMouseEnter)==null||se.call(z,Z),te==null||te(Z,de)},onClick:Z=>{var se;(se=z==null?void 0:z.onClick)==null||se.call(z,Z),he==null||he(Z,de)},onMouseDown:Z=>{var se;(se=z==null?void 0:z.onMouseDown)==null||se.call(z,Z),Oe&&Z.preventDefault()},tabIndex:Oe||!Y?-1:0})},de.toString())});return D.jsxs("tr",{...w("monthRow"),children:[d&&D.jsx("td",{...w("weekNumber"),children:g1(ue)}),ne]},be)});return D.jsxs($.Box,{component:"table",...w("month"),size:E,ref:n,...f,children:[!K&&D.jsx("thead",{...w("monthThead"),children:D.jsx(Aa,{__staticSelector:A||"Month",locale:T,firstDayOfWeek:R,weekdayFormat:P,size:E,classNames:W,styles:V,unstyled:c,withWeekNumbers:d})}),D.jsx("tbody",{...w("monthTbody"),children:ae})]})});jo.classes=Ec,jo.displayName="@mantine/dates/Month";var Rc={pickerControl:"m_dc6a3c71"};const y1={},_1=$.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":$.getFontSize(n),"--dpc-size":$.getSize(n,"dpc-size")}})),Yo=$.factory((i,n)=>{const r=$.useProps("PickerControl",y1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,firstInRange:A,lastInRange:T,inRange:R,__staticSelector:P,selected:M,disabled:I,...j}=r,F=$.useStyles({name:P||"PickerControl",classes:Rc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:_1,rootSelector:"pickerControl"});return D.jsx($.UnstyledButton,{...F("pickerControl"),ref:n,unstyled:c,"data-picker-control":!0,"data-selected":M&&!I||void 0,"data-disabled":I||void 0,"data-in-range":R&&!I&&!M||void 0,"data-first-in-range":A&&!I||void 0,"data-last-in-range":T&&!I||void 0,disabled:I,...j})});Yo.classes=Rc,Yo.displayName="@mantine/dates/PickerControl";function Lc({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Ee(i).isBefore(n,"year")||r&&Ee(i).isAfter(r,"year"))}function w1({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const l=i.flat().filter(c=>{var x;return!Lc({year:c,minDate:n,maxDate:r})&&!((x=s==null?void 0:s(c))!=null&&x.disabled)}),p=l.find(c=>{var x;return(x=s==null?void 0:s(c))==null?void 0:x.selected});if(p)return p;const v=l.find(c=>Ee().isSame(c,"year"));return v||l[0]}function kc(i){const n=Ee(i).year(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let p=0;p<4;p+=1){const v=p===3?1:3;for(let c=0;c<v;c+=1)l[p].push(Ee(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return l}var Ic={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const b1={yearsListFormat:"YYYY",withCellSpacing:!0},Uo=$.factory((i,n)=>{const r=$.useProps("YearsList",b1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,decade:A,yearsListFormat:T,locale:R,minDate:P,maxDate:M,getYearControlProps:I,__staticSelector:j,__getControlRef:F,__onControlKeyDown:X,__onControlClick:ie,__onControlMouseEnter:oe,__preventFocus:ce,__stopPropagation:K,withCellSpacing:fe,size:ee,...J}=r,ve=$.useStyles({name:j||"YearsList",classes:Ic,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"yearsList"}),he=ar(),te=kc(A),Oe=w1({years:te,minDate:P,maxDate:M,getYearControlProps:I}),Te=te.map((N,E)=>{const O=N.map((d,f)=>{const w=I==null?void 0:I(d),g=Ee(d).isSame(Oe,"year");return D.jsx("td",{...ve("yearsListCell"),"data-with-spacing":fe||void 0,children:D.jsx(Yo,{...ve("yearsListControl"),size:ee,unstyled:c,"data-mantine-stop-propagation":K||void 0,disabled:Lc({year:d,minDate:P,maxDate:M}),ref:m=>F==null?void 0:F(E,f,m),...w,onKeyDown:m=>{var C;(C=w==null?void 0:w.onKeyDown)==null||C.call(w,m),X==null||X(m,{rowIndex:E,cellIndex:f,date:d})},onClick:m=>{var C;(C=w==null?void 0:w.onClick)==null||C.call(w,m),ie==null||ie(m,d)},onMouseEnter:m=>{var C;(C=w==null?void 0:w.onMouseEnter)==null||C.call(w,m),oe==null||oe(m,d)},onMouseDown:m=>{var C;(C=w==null?void 0:w.onMouseDown)==null||C.call(w,m),ce&&m.preventDefault()},tabIndex:ce||!g?-1:0,children:Ee(d).locale(he.getLocale(R)).format(T)})},f)});return D.jsx("tr",{...ve("yearsListRow"),children:O},E)});return D.jsx($.Box,{component:"table",ref:n,size:ee,...ve("yearsList"),...J,children:D.jsx("tbody",{children:Te})})});Uo.classes=Ic,Uo.displayName="@mantine/dates/YearsList";function Pc({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Ee(i).isBefore(n,"month")||r&&Ee(i).isAfter(r,"month"))}function x1({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const l=i.flat().filter(c=>{var x;return!Pc({month:c,minDate:n,maxDate:r})&&!((x=s==null?void 0:s(c))!=null&&x.disabled)}),p=l.find(c=>{var x;return(x=s==null?void 0:s(c))==null?void 0:x.selected});if(p)return p;const v=l.find(c=>Ee().isSame(c,"month"));return v||l[0]}function S1(i){const n=Ee(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let p=0;p<3;p+=1)r[l].push(Ee(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Nc={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const C1={monthsListFormat:"MMM",withCellSpacing:!0},Fo=$.factory((i,n)=>{const r=$.useProps("MonthsList",C1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:A,year:T,monthsListFormat:R,locale:P,minDate:M,maxDate:I,getMonthControlProps:j,__getControlRef:F,__onControlKeyDown:X,__onControlClick:ie,__onControlMouseEnter:oe,__preventFocus:ce,__stopPropagation:K,withCellSpacing:fe,size:ee,...J}=r,ve=$.useStyles({name:A||"MonthsList",classes:Nc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"monthsList"}),he=ar(),te=S1(T),Oe=x1({months:te,minDate:un(M),maxDate:un(I),getMonthControlProps:j}),Te=te.map((N,E)=>{const O=N.map((d,f)=>{const w=j==null?void 0:j(d),g=Ee(d).isSame(Oe,"month");return D.jsx("td",{...ve("monthsListCell"),"data-with-spacing":fe||void 0,children:D.jsx(Yo,{...ve("monthsListControl"),size:ee,unstyled:c,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":K||void 0,disabled:Pc({month:d,minDate:un(M),maxDate:un(I)}),ref:m=>F==null?void 0:F(E,f,m),...w,onKeyDown:m=>{var C;(C=w==null?void 0:w.onKeyDown)==null||C.call(w,m),X==null||X(m,{rowIndex:E,cellIndex:f,date:d})},onClick:m=>{var C;(C=w==null?void 0:w.onClick)==null||C.call(w,m),ie==null||ie(m,d)},onMouseEnter:m=>{var C;(C=w==null?void 0:w.onMouseEnter)==null||C.call(w,m),oe==null||oe(m,d)},onMouseDown:m=>{var C;(C=w==null?void 0:w.onMouseDown)==null||C.call(w,m),ce&&m.preventDefault()},tabIndex:ce||!g?-1:0,children:Ee(d).locale(he.getLocale(P)).format(R)})},f)});return D.jsx("tr",{...ve("monthsListRow"),children:O},E)});return D.jsx($.Box,{component:"table",ref:n,size:ee,...ve("monthsList"),...J,children:D.jsx("tbody",{children:Te})})});Fo.classes=Nc,Fo.displayName="@mantine/dates/MonthsList";var $c={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const A1={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},D1=$.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":$.getSize(n,"dch-control-size"),"--dch-fz":$.getFontSize(n)}})),ur=$.factory((i,n)=>{const r=$.useProps("CalendarHeader",A1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,nextIcon:A,previousIcon:T,nextLabel:R,previousLabel:P,onNext:M,onPrevious:I,onLevelClick:j,label:F,nextDisabled:X,previousDisabled:ie,hasNextLevel:oe,levelControlAriaLabel:ce,withNext:K,withPrevious:fe,__staticSelector:ee,__preventFocus:J,__stopPropagation:ve,...he}=r,te=$.useStyles({name:ee||"CalendarHeader",classes:$c,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:D1,rootSelector:"calendarHeader"}),Oe=J?Te=>Te.preventDefault():void 0;return D.jsxs($.Box,{...te("calendarHeader"),ref:n,...he,children:[fe&&D.jsx($.UnstyledButton,{...te("calendarHeaderControl"),"data-direction":"previous","aria-label":P,onClick:I,unstyled:c,onMouseDown:Oe,disabled:ie,"data-disabled":ie||void 0,tabIndex:J||ie?-1:0,"data-mantine-stop-propagation":ve||void 0,children:T||D.jsx($.AccordionChevron,{...te("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),D.jsx($.UnstyledButton,{component:oe?"button":"div",...te("calendarHeaderLevel"),onClick:oe?j:void 0,unstyled:c,onMouseDown:oe?Oe:void 0,disabled:!oe,"data-static":!oe||void 0,"aria-label":ce,tabIndex:J||!oe?-1:0,"data-mantine-stop-propagation":ve||void 0,children:F}),K&&D.jsx($.UnstyledButton,{...te("calendarHeaderControl"),"data-direction":"next","aria-label":R,onClick:M,unstyled:c,onMouseDown:Oe,disabled:X,"data-disabled":X||void 0,tabIndex:J||X?-1:0,"data-mantine-stop-propagation":ve||void 0,children:A||D.jsx($.AccordionChevron,{...te("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});ur.classes=$c,ur.displayName="@mantine/dates/CalendarHeader";function O1(i){const n=kc(i);return[n[0][0],n[3][0]]}const T1={decadeLabelFormat:"YYYY"},Wo=$.factory((i,n)=>{const r=$.useProps("DecadeLevel",T1,i),{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,withCellSpacing:M,__preventFocus:I,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,nextDisabled:K,previousDisabled:fe,levelControlAriaLabel:ee,withNext:J,withPrevious:ve,decadeLabelFormat:he,classNames:te,styles:Oe,unstyled:Te,__staticSelector:N,__stopPropagation:E,size:O,...d}=r,f=ar(),[w,g]=O1(s),m={__staticSelector:N||"DecadeLevel",classNames:te,styles:Oe,unstyled:Te,size:O},C=typeof K=="boolean"?K:v?!Ee(g).endOf("year").isBefore(v):!1,W=typeof fe=="boolean"?fe:p?!Ee(w).startOf("year").isAfter(p):!1,V=(ae,ue)=>Ee(ae).locale(l||f.locale).format(ue);return D.jsxs($.Box,{"data-decade-level":!0,size:O,ref:n,...d,children:[D.jsx(ur,{label:typeof he=="function"?he(w,g):`${V(w,he)} – ${V(g,he)}`,__preventFocus:I,__stopPropagation:E,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,nextDisabled:C,previousDisabled:W,hasNextLevel:!1,levelControlAriaLabel:ee,withNext:J,withPrevious:ve,...m}),D.jsx(Uo,{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,__preventFocus:I,__stopPropagation:E,withCellSpacing:M,...m})]})});Wo.classes={...Uo.classes,...ur.classes},Wo.displayName="@mantine/dates/DecadeLevel";const M1={yearLabelFormat:"YYYY"},zo=$.factory((i,n)=>{const r=$.useProps("YearLevel",M1,i),{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,withCellSpacing:M,__preventFocus:I,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,onLevelClick:K,nextDisabled:fe,previousDisabled:ee,hasNextLevel:J,levelControlAriaLabel:ve,withNext:he,withPrevious:te,yearLabelFormat:Oe,__staticSelector:Te,__stopPropagation:N,size:E,classNames:O,styles:d,unstyled:f,...w}=r,g=ar(),m={__staticSelector:Te||"YearLevel",classNames:O,styles:d,unstyled:f,size:E},C=typeof fe=="boolean"?fe:v?!Ee(s).endOf("year").isBefore(v):!1,W=typeof ee=="boolean"?ee:p?!Ee(s).startOf("year").isAfter(p):!1;return D.jsxs($.Box,{"data-year-level":!0,size:E,ref:n,...w,children:[D.jsx(ur,{label:typeof Oe=="function"?Oe(s):Ee(s).locale(l||g.locale).format(Oe),__preventFocus:I,__stopPropagation:N,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,onLevelClick:K,nextDisabled:C,previousDisabled:W,hasNextLevel:J,levelControlAriaLabel:ve,withNext:he,withPrevious:te,...m}),D.jsx(Fo,{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,__preventFocus:I,__stopPropagation:N,withCellSpacing:M,...m})]})});zo.classes={...ur.classes,...Fo.classes},zo.displayName="@mantine/dates/YearLevel";const E1={monthLabelFormat:"MMMM YYYY"},qo=$.factory((i,n)=>{const r=$.useProps("MonthLevel",E1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__getDayRef:F,__onDayKeyDown:X,__onDayClick:ie,__onDayMouseEnter:oe,withCellSpacing:ce,highlightToday:K,withWeekNumbers:fe,__preventFocus:ee,__stopPropagation:J,nextIcon:ve,previousIcon:he,nextLabel:te,previousLabel:Oe,onNext:Te,onPrevious:N,onLevelClick:E,nextDisabled:O,previousDisabled:d,hasNextLevel:f,levelControlAriaLabel:w,withNext:g,withPrevious:m,monthLabelFormat:C,classNames:W,styles:V,unstyled:ae,__staticSelector:ue,size:be,static:ne,...de}=r,Ce=ar(),_e={__staticSelector:ue||"MonthLevel",classNames:W,styles:V,unstyled:ae,size:be},B=typeof O=="boolean"?O:R?!Ee(s).endOf("month").isBefore(R):!1,z=typeof d=="boolean"?d:T?!Ee(s).startOf("month").isAfter(T):!1;return D.jsxs($.Box,{"data-month-level":!0,size:be,ref:n,...de,children:[D.jsx(ur,{label:typeof C=="function"?C(s):Ee(s).locale(l||Ce.locale).format(C),__preventFocus:ee,__stopPropagation:J,nextIcon:ve,previousIcon:he,nextLabel:te,previousLabel:Oe,onNext:Te,onPrevious:N,onLevelClick:E,nextDisabled:B,previousDisabled:z,hasNextLevel:f,levelControlAriaLabel:w,withNext:g,withPrevious:m,..._e}),D.jsx(jo,{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__getDayRef:F,__onDayKeyDown:X,__onDayClick:ie,__onDayMouseEnter:oe,__preventFocus:ee,__stopPropagation:J,static:ne,withCellSpacing:ce,highlightToday:K,withWeekNumbers:fe,..._e})]})});qo.classes={...jo.classes,...ur.classes},qo.displayName="@mantine/dates/MonthLevel";var Bc={levelsGroup:"m_30b26e33"};const R1={},lr=$.factory((i,n)=>{const r=$.useProps("LevelsGroup",R1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:A,...T}=r,R=$.useStyles({name:A||"LevelsGroup",classes:Bc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"levelsGroup"});return D.jsx($.Box,{ref:n,...R("levelsGroup"),...T})});lr.classes=Bc,lr.displayName="@mantine/dates/LevelsGroup";const L1={numberOfColumns:1},Ho=$.factory((i,n)=>{const r=$.useProps("DecadeLevelGroup",L1,i),{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__onControlClick:A,__onControlMouseEnter:T,withCellSpacing:R,__preventFocus:P,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,nextDisabled:oe,previousDisabled:ce,classNames:K,styles:fe,unstyled:ee,__staticSelector:J,__stopPropagation:ve,numberOfColumns:he,levelControlAriaLabel:te,decadeLabelFormat:Oe,size:Te,vars:N,...E}=r,O=me.useRef([]),d=Array(he).fill(0).map((f,w)=>{const g=Ee(s).add(w*10,"years").format("YYYY-MM-DD");return D.jsx(Wo,{size:Te,yearsListFormat:c,decade:g,withNext:w===he-1,withPrevious:w===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:T,__onControlKeyDown:(m,C)=>Sa({levelIndex:w,rowIndex:C.rowIndex,cellIndex:C.cellIndex,event:m,controlsRef:O}),__getControlRef:(m,C,W)=>{Array.isArray(O.current[w])||(O.current[w]=[]),Array.isArray(O.current[w][m])||(O.current[w][m]=[]),O.current[w][m][C]=W},levelControlAriaLabel:typeof te=="function"?te(g):te,locale:l,minDate:p,maxDate:v,__preventFocus:P,__stopPropagation:ve,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,nextDisabled:oe,previousDisabled:ce,getYearControlProps:x,__staticSelector:J||"DecadeLevelGroup",classNames:K,styles:fe,unstyled:ee,withCellSpacing:R},w)});return D.jsx(lr,{classNames:K,styles:fe,__staticSelector:J||"DecadeLevelGroup",ref:n,size:Te,unstyled:ee,...E,children:d})});Ho.classes={...lr.classes,...Wo.classes},Ho.displayName="@mantine/dates/DecadeLevelGroup";const k1={numberOfColumns:1},Go=$.factory((i,n)=>{const r=$.useProps("YearLevelGroup",k1,i),{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__onControlClick:A,__onControlMouseEnter:T,withCellSpacing:R,__preventFocus:P,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,onLevelClick:oe,nextDisabled:ce,previousDisabled:K,hasNextLevel:fe,classNames:ee,styles:J,unstyled:ve,__staticSelector:he,__stopPropagation:te,numberOfColumns:Oe,levelControlAriaLabel:Te,yearLabelFormat:N,size:E,vars:O,...d}=r,f=me.useRef([]),w=Array(Oe).fill(0).map((g,m)=>{const C=Ee(s).add(m,"years").format("YYYY-MM-DD");return D.jsx(zo,{size:E,monthsListFormat:c,year:C,withNext:m===Oe-1,withPrevious:m===0,yearLabelFormat:N,__stopPropagation:te,__onControlClick:A,__onControlMouseEnter:T,__onControlKeyDown:(W,V)=>Sa({levelIndex:m,rowIndex:V.rowIndex,cellIndex:V.cellIndex,event:W,controlsRef:f}),__getControlRef:(W,V,ae)=>{Array.isArray(f.current[m])||(f.current[m]=[]),Array.isArray(f.current[m][W])||(f.current[m][W]=[]),f.current[m][W][V]=ae},levelControlAriaLabel:typeof Te=="function"?Te(C):Te,locale:l,minDate:p,maxDate:v,__preventFocus:P,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,onLevelClick:oe,nextDisabled:ce,previousDisabled:K,hasNextLevel:fe,getMonthControlProps:x,classNames:ee,styles:J,unstyled:ve,__staticSelector:he||"YearLevelGroup",withCellSpacing:R},m)});return D.jsx(lr,{classNames:ee,styles:J,__staticSelector:he||"YearLevelGroup",ref:n,size:E,unstyled:ve,...d,children:w})});Go.classes={...zo.classes,...lr.classes},Go.displayName="@mantine/dates/YearLevelGroup";const I1={numberOfColumns:1},Vo=$.factory((i,n)=>{const r=$.useProps("MonthLevelGroup",I1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__onDayClick:F,__onDayMouseEnter:X,withCellSpacing:ie,highlightToday:oe,withWeekNumbers:ce,__preventFocus:K,nextIcon:fe,previousIcon:ee,nextLabel:J,previousLabel:ve,onNext:he,onPrevious:te,onLevelClick:Oe,nextDisabled:Te,previousDisabled:N,hasNextLevel:E,classNames:O,styles:d,unstyled:f,numberOfColumns:w,levelControlAriaLabel:g,monthLabelFormat:m,__staticSelector:C,__stopPropagation:W,size:V,static:ae,vars:ue,...be}=r,ne=me.useRef([]),de=Array(w).fill(0).map((Ce,_e)=>{const B=Ee(s).add(_e,"months").format("YYYY-MM-DD");return D.jsx(qo,{month:B,withNext:_e===w-1,withPrevious:_e===0,monthLabelFormat:m,__stopPropagation:W,__onDayClick:F,__onDayMouseEnter:X,__onDayKeyDown:(z,Y)=>Sa({levelIndex:_e,rowIndex:Y.rowIndex,cellIndex:Y.cellIndex,event:z,controlsRef:ne}),__getDayRef:(z,Y,Z)=>{Array.isArray(ne.current[_e])||(ne.current[_e]=[]),Array.isArray(ne.current[_e][z])||(ne.current[_e][z]=[]),ne.current[_e][z][Y]=Z},levelControlAriaLabel:typeof g=="function"?g(B):g,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__preventFocus:K,nextIcon:fe,previousIcon:ee,nextLabel:J,previousLabel:ve,onNext:he,onPrevious:te,onLevelClick:Oe,nextDisabled:Te,previousDisabled:N,hasNextLevel:E,classNames:O,styles:d,unstyled:f,__staticSelector:C||"MonthLevelGroup",size:V,static:ae,withCellSpacing:ie,highlightToday:oe,withWeekNumbers:ce},_e)});return D.jsx(lr,{classNames:O,styles:d,__staticSelector:C||"MonthLevelGroup",ref:n,size:V,...be,children:de})});Vo.classes={...lr.classes,...qo.classes},Vo.displayName="@mantine/dates/MonthLevelGroup";const jc=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Yc=(i,n)=>{const r=n?xc:un;return Array.isArray(i)?i.map(r):r(i)};function Oa({type:i,value:n,defaultValue:r,onChange:s,withTime:l=!1}){const p=me.useRef(i),[v,c,x]=Ot.useUncontrolled({value:Yc(n,l),defaultValue:Yc(r,l),finalValue:jc(i),onChange:s});let A=v;return p.current!==i&&(p.current=i,n===void 0&&(A=r!==void 0?r:jc(i),c(A))),[A,c,x]}function Ta(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function P1(i){return i===0?"month":i===1?"year":"decade"}function qi(i,n,r){return P1(Ot.clamp(Ta(i,0),Ta(n,0),Ta(r,2)))}const N1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Zo=$.factory((i,n)=>{const r=$.useProps("Calendar",N1,i),{vars:s,maxLevel:l,minLevel:p,defaultLevel:v,level:c,onLevelChange:x,date:A,defaultDate:T,onDateChange:R,numberOfColumns:P,columnsToScroll:M,ariaLabels:I,nextLabel:j,previousLabel:F,onYearSelect:X,onMonthSelect:ie,onYearMouseEnter:oe,onMonthMouseEnter:ce,__updateDateOnYearSelect:K,__updateDateOnMonthSelect:fe,firstDayOfWeek:ee,weekdayFormat:J,weekendDays:ve,getDayProps:he,excludeDate:te,renderDay:Oe,hideOutsideDates:Te,hideWeekdays:N,getDayAriaLabel:E,monthLabelFormat:O,nextIcon:d,previousIcon:f,__onDayClick:w,__onDayMouseEnter:g,withCellSpacing:m,highlightToday:C,withWeekNumbers:W,monthsListFormat:V,getMonthControlProps:ae,yearLabelFormat:ue,yearsListFormat:be,getYearControlProps:ne,decadeLabelFormat:de,classNames:Ce,styles:_e,unstyled:B,minDate:z,maxDate:Y,locale:Z,__staticSelector:se,size:De,__preventFocus:u,__stopPropagation:h,onNextDecade:_,onPreviousDecade:k,onNextYear:q,onPreviousYear:Q,onNextMonth:Ae,onPreviousMonth:we,static:Re,...Se}=r,{resolvedClassNames:Le,resolvedStyles:Ne}=$.useResolvedStylesApi({classNames:Ce,styles:_e,props:r}),[ke,Ge]=Ot.useUncontrolled({value:c?qi(c,p,l):void 0,defaultValue:v?qi(v,p,l):void 0,finalValue:qi(void 0,p,l),onChange:x}),[Je,Ve]=Oa({type:"default",value:un(A),defaultValue:un(T),onChange:R}),_t={__staticSelector:se||"Calendar",styles:Ne,classNames:Le,unstyled:B,size:De},ft=M||P||1,ht=new Date,xn=z&&Ee(ht).isAfter(z)?z:Ee(ht).format("YYYY-MM-DD"),St=Je||xn,ln=()=>{const at=Ee(St).add(ft,"month").format("YYYY-MM-DD");Ae==null||Ae(at),Ve(at)},En=()=>{const at=Ee(St).subtract(ft,"month").format("YYYY-MM-DD");we==null||we(at),Ve(at)},Rn=()=>{const at=Ee(St).add(ft,"year").format("YYYY-MM-DD");q==null||q(at),Ve(at)},Kt=()=>{const at=Ee(St).subtract(ft,"year").format("YYYY-MM-DD");Q==null||Q(at),Ve(at)},cn=()=>{const at=Ee(St).add(10*ft,"year").format("YYYY-MM-DD");_==null||_(at),Ve(at)},Ln=()=>{const at=Ee(St).subtract(10*ft,"year").format("YYYY-MM-DD");k==null||k(at),Ve(at)};return D.jsxs($.Box,{ref:n,size:De,"data-calendar":!0,...Se,children:[ke==="month"&&D.jsx(Vo,{month:St,minDate:z,maxDate:Y,firstDayOfWeek:ee,weekdayFormat:J,weekendDays:ve,getDayProps:he,excludeDate:te,renderDay:Oe,hideOutsideDates:Te,hideWeekdays:N,getDayAriaLabel:E,onNext:ln,onPrevious:En,hasNextLevel:l!=="month",onLevelClick:()=>Ge("year"),numberOfColumns:P,locale:Z,levelControlAriaLabel:I==null?void 0:I.monthLevelControl,nextLabel:(I==null?void 0:I.nextMonth)??j,nextIcon:d,previousLabel:(I==null?void 0:I.previousMonth)??F,previousIcon:f,monthLabelFormat:O,__onDayClick:w,__onDayMouseEnter:g,__preventFocus:u,__stopPropagation:h,static:Re,withCellSpacing:m,highlightToday:C,withWeekNumbers:W,..._t}),ke==="year"&&D.jsx(Go,{year:St,numberOfColumns:P,minDate:z,maxDate:Y,monthsListFormat:V,getMonthControlProps:ae,locale:Z,onNext:Rn,onPrevious:Kt,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>Ge("decade"),levelControlAriaLabel:I==null?void 0:I.yearLevelControl,nextLabel:(I==null?void 0:I.nextYear)??j,nextIcon:d,previousLabel:(I==null?void 0:I.previousYear)??F,previousIcon:f,yearLabelFormat:ue,__onControlMouseEnter:ce,__onControlClick:(at,zt)=>{fe&&Ve(zt),Ge(qi("month",p,l)),ie==null||ie(zt)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,..._t}),ke==="decade"&&D.jsx(Ho,{decade:St,minDate:z,maxDate:Y,yearsListFormat:be,getYearControlProps:ne,locale:Z,onNext:cn,onPrevious:Ln,numberOfColumns:P,nextLabel:(I==null?void 0:I.nextDecade)??j,nextIcon:d,previousLabel:(I==null?void 0:I.previousDecade)??F,previousIcon:f,decadeLabelFormat:de,__onControlMouseEnter:oe,__onControlClick:(at,zt)=>{K&&Ve(zt),Ge(qi("year",p,l)),X==null||X(zt)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,..._t})]})});Zo.classes={...Ho.classes,...Go.classes,...Vo.classes},Zo.displayName="@mantine/dates/Calendar";function $1(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:v,previousIcon:c,date:x,defaultDate:A,onDateChange:T,numberOfColumns:R,columnsToScroll:P,ariaLabels:M,nextLabel:I,previousLabel:j,onYearSelect:F,onMonthSelect:X,onYearMouseEnter:ie,onMonthMouseEnter:oe,onNextMonth:ce,onPreviousMonth:K,onNextYear:fe,onPreviousYear:ee,onNextDecade:J,onPreviousDecade:ve,withCellSpacing:he,highlightToday:te,__updateDateOnYearSelect:Oe,__updateDateOnMonthSelect:Te,withWeekNumbers:N,firstDayOfWeek:E,weekdayFormat:O,weekendDays:d,getDayProps:f,excludeDate:w,renderDay:g,hideOutsideDates:m,hideWeekdays:C,getDayAriaLabel:W,monthLabelFormat:V,monthsListFormat:ae,getMonthControlProps:ue,yearLabelFormat:be,yearsListFormat:ne,getYearControlProps:de,decadeLabelFormat:Ce,allowSingleDateInRange:_e,allowDeselect:B,minDate:z,maxDate:Y,locale:Z,...se}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:v,previousIcon:c,date:x,defaultDate:A,onDateChange:T,numberOfColumns:R,columnsToScroll:P,ariaLabels:M,nextLabel:I,previousLabel:j,onYearSelect:F,onMonthSelect:X,onYearMouseEnter:ie,onMonthMouseEnter:oe,onNextMonth:ce,onPreviousMonth:K,onNextYear:fe,onPreviousYear:ee,onNextDecade:J,onPreviousDecade:ve,withCellSpacing:he,highlightToday:te,__updateDateOnYearSelect:Oe,__updateDateOnMonthSelect:Te,withWeekNumbers:N,firstDayOfWeek:E,weekdayFormat:O,weekendDays:d,getDayProps:f,excludeDate:w,renderDay:g,hideOutsideDates:m,hideWeekdays:C,getDayAriaLabel:W,monthLabelFormat:V,monthsListFormat:ae,getMonthControlProps:ue,yearLabelFormat:be,yearsListFormat:ne,getYearControlProps:de,decadeLabelFormat:Ce,allowSingleDateInRange:_e,allowDeselect:B,minDate:z,maxDate:Y,locale:Z},others:se}}function B1(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Ee(n).format("YYYY-MM-DD")}function j1({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Ee(i).isAfter(n,"date")||r&&Ee(i).isBefore(r,"date"))}const Y1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},Ko=$.factory((i,n)=>{const r=$.useInputProps("DateInput",Y1,i),{inputProps:s,wrapperProps:l,value:p,defaultValue:v,onChange:c,clearable:x,clearButtonProps:A,popoverProps:T,getDayProps:R,locale:P,valueFormat:M,dateParser:I,minDate:j,maxDate:F,fixOnBlur:X,onFocus:ie,onBlur:oe,onClick:ce,onKeyDown:K,readOnly:fe,name:ee,form:J,rightSection:ve,unstyled:he,classNames:te,styles:Oe,allowDeselect:Te,date:N,defaultDate:E,onDateChange:O,getMonthControlProps:d,getYearControlProps:f,...w}=r,g=me.useRef(null),m=me.useRef(null),[C,W]=me.useState(!1),{calendarProps:V,others:ae}=$1(w),ue=ar(),ne=I||(we=>{const Re=Ee(we,M,ue.getLocale(P)).toDate();return Number.isNaN(Re.getTime())?B1(we):Ee(Re).format("YYYY-MM-DD")}),de=Te!==void 0?Te:x,Ce=we=>we?Ee(we).locale(ue.getLocale(P)).format(M):"",[_e,B,z]=Oa({type:"default",value:p,defaultValue:v,onChange:c}),[Y,Z]=Oa({type:"default",value:N,defaultValue:v||E,onChange:O});me.useEffect(()=>{z&&p!==null&&Z(p)},[z,p]);const[se,De]=me.useState(Ce(_e));me.useEffect(()=>{De(Ce(_e))},[ue.getLocale(P)]);const u=we=>{const Re=we.currentTarget.value;if(De(Re),W(!0),Re.trim()===""&&x)B(null);else{const Se=ne(Re);j1({date:Se,minDate:j,maxDate:F})&&(B(Se),Z(Se))}},h=we=>{oe==null||oe(we),W(!1),X&&De(Ce(_e))},_=we=>{ie==null||ie(we),W(!0)},k=we=>{ce==null||ce(we),W(!0)},q=we=>{we.key==="Escape"&&W(!1),K==null||K(we)},Q=we=>({...R==null?void 0:R(we),selected:Ee(_e).isSame(we,"day"),onClick:Re=>{var Le,Ne;(Ne=R==null?void 0:(Le=R(we)).onClick)==null||Ne.call(Le,Re);const Se=x&&de&&Ee(_e).isSame(we,"day")?null:we;B(Se),!z&&De(Ce(Se)),W(!1)}}),Ae=ve||(x&&_e&&!fe?D.jsx($.CloseButton,{variant:"transparent",onMouseDown:we=>we.preventDefault(),tabIndex:-1,onClick:()=>{B(null),!z&&De(""),W(!1)},unstyled:he,size:s.size||"sm",...A}):null);return Ot.useDidUpdate(()=>{_e!==void 0&&!C&&De(Ce(_e))},[_e]),Ot.useClickOutside(()=>W(!1),void 0,[g.current,m.current]),D.jsxs(D.Fragment,{children:[D.jsx($.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:g,children:D.jsxs($.Popover,{opened:C,trapFocus:!1,position:"bottom-start",disabled:fe,withRoles:!1,unstyled:he,...T,children:[D.jsx($.Popover.Target,{children:D.jsx($.Input,{"data-dates-input":!0,"data-read-only":fe||void 0,autoComplete:"off",ref:n,value:se,onChange:u,onBlur:h,onFocus:_,onClick:k,onKeyDown:q,readOnly:fe,rightSection:Ae,...s,...ae,__staticSelector:"DateInput"})}),D.jsx($.Popover.Dropdown,{onMouseDown:we=>we.preventDefault(),"data-dates-dropdown":!0,ref:m,children:D.jsx(Zo,{__staticSelector:"DateInput",...V,classNames:te,styles:Oe,unstyled:he,__preventFocus:!0,minDate:j,maxDate:F,locale:P,getDayProps:Q,size:s.size,date:Y,onDateChange:Z,getMonthControlProps:we=>({selected:typeof _e=="string"?Da(we,_e):!1,...d==null?void 0:d(we)}),getYearControlProps:we=>({selected:typeof _e=="string"?Ee(we).isSame(_e,"year"):!1,...f==null?void 0:f(we)})})})]})}),D.jsx(Sc,{name:ee,form:J,value:_e,type:"default"})]})});Ko.classes={...$.Input.classes,...Zo.classes},Ko.displayName="@mantine/dates/DateInput";function U1(i){const n=wn.c(47),{fields:r,onClose:s,queryKey:l,apiPath:p,steps:v,onCreated:c}=i,[x,A]=me.useState(0),[T,R]=me.useState(!1),[P,M]=me.useState(),{mutateAsync:I,isError:j,error:F,isPending:X}=yc(p,l),{mutateAsync:ie,isPending:oe}=xa(p,l),ce=X||oe;let K;n[0]!==r?(K=new Set(r.filter(G1).map(H1)),n[0]=r,n[1]=K):K=n[1];let fe;n[2]!==K?(fe=[...K],n[2]=K,n[3]=fe):fe=n[3];const ee=fe;let J;n[4]!==r?(J=r.reduce(q1,{}),n[4]=r,n[5]=J):J=n[5];let ve;n[6]!==r?(ve=r.filter(z1).reduce(F1,{}),n[6]=r,n[7]=ve):ve=n[7];let he;n[8]!==J||n[9]!==ve?(he={mode:"uncontrolled",initialValues:J,validate:ve},n[8]=J,n[9]=ve,n[10]=he):he=n[10];const te=Ei.useForm(he);let Oe;n[11]!==te||n[12]!==P?(Oe=function(m){return D.jsxs(me.Fragment,{children:[(m.type===void 0||m.type=="text")&&D.jsx($.TextInput,{label:m.column.title,placeholder:m.placeholder??"",...te.getInputProps(m.id),type:m.id.includes("email")?"email":void 0},te.key(m.id)),m.type==="number"&&D.jsx($.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...te.getInputProps(m.id)},te.key(m.id)),m.type==="date"&&D.jsx(Ko,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...te.getInputProps(m.id)},te.key(m.id)),m.type==="boolean"&&D.jsx($.Checkbox,{mt:"md",label:m.column.title,...te.getInputProps(m.id,{type:"checkbox"})},te.key(m.id)),m.type==="custom"&&m.render&&m.render({...te.getValues(),...P&&{id:P}},te.setValues,R)]},m.id)},n[11]=te,n[12]=P,n[13]=Oe):Oe=n[13];const Te=Oe;let N;n[14]!==(F==null?void 0:F.message)||n[15]!==(F==null?void 0:F.name)||n[16]!==j?(N=j&&D.jsx($.Alert,{variant:"outline",color:"red",title:(F==null?void 0:F.name)??"Fehler aufgetreten",mb:"lg",children:(F==null?void 0:F.message)??"Fehler aufgetreten"}),n[14]=F==null?void 0:F.message,n[15]=F==null?void 0:F.name,n[16]=j,n[17]=N):N=n[17];let E;n[18]!==x||n[19]!==I||n[20]!==te||n[21]!==j||n[22]!==s||n[23]!==c||n[24]!==P||n[25]!==ee.length||n[26]!==ie?(E=te.onSubmit(async g=>{if(P)await ie({...g,id:P});else{const m=await I(g);M(m.id),c==null||c(m.id)}ee.length&&x<ee.length-1?j||A(x+1):j||(te.setInitialValues(g),te.reset(),s())}),n[18]=x,n[19]=I,n[20]=te,n[21]=j,n[22]=s,n[23]=c,n[24]=P,n[25]=ee.length,n[26]=ie,n[27]=E):E=n[27];let O;n[28]!==x||n[29]!==r||n[30]!==Te||n[31]!==v||n[32]!==ee?(O=ee.length?D.jsx($.Stepper,{active:x,size:"sm",children:ee.map(g=>D.jsx($.Stepper.Step,{...v&&v[g-1]?{label:v[g-1].label}:{},children:r.filter(m=>m.step===g).map(m=>Te(m))},g))}):r.map(g=>Te(g)),n[28]=x,n[29]=r,n[30]=Te,n[31]=v,n[32]=ee,n[33]=O):O=n[33];let d;n[34]!==x||n[35]!==T||n[36]!==ce||n[37]!==s||n[38]!==ee.length?(d=!T&&D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Button,{onClick:()=>ee.length?x===0?s():A(x-1):s(),variant:"outline",children:ee.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx($.Button,{type:"submit",loading:ce,children:ee.length?x===ee.length-1?"Speichern":"Weiter":"Speichern"})]}),n[34]=x,n[35]=T,n[36]=ce,n[37]=s,n[38]=ee.length,n[39]=d):d=n[39];let f;n[40]!==d||n[41]!==E||n[42]!==O?(f=D.jsxs("form",{onSubmit:E,children:[O,d]}),n[40]=d,n[41]=E,n[42]=O,n[43]=f):f=n[43];let w;return n[44]!==f||n[45]!==N?(w=D.jsxs(D.Fragment,{children:[N,f]}),n[44]=f,n[45]=N,n[46]=w):w=n[46],w}function F1(i,n){return i[n.id]=W1,i}function W1(i){return i?null:"Pflichtfeld"}function z1(i){return i.required}function q1(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function H1(i){return i.step}function G1(i){return typeof i.step=="number"}var[V1,Ma]=$.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Uc=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:p,resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:A}=i,[T,R]=me.useState(""),[P,M]=me.useState("");return D.jsx(V1,{value:{sourceColumn:T,setSourceColumn:R,targetColumn:P,setTargetColumn:M,columnsToggle:l,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!T||!P)return;let I=r.indexOf(T),j=r.indexOf(P);if(I!==-1&&j!==-1){let F=r.splice(I,1)[0];r.splice(j,0,F),s([...r])}},resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:A},children:n})};function Z1(){return D.jsx("tr",{className:"mantine-datatable-empty-row",children:D.jsx("td",{})})}function K1(){return D.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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"}),D.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"}),D.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"}),D.jsx("path",{d:"M3 3l18 18"})]})}function Q1({icon:i,text:n,pt:r,pb:s,active:l,children:p}){return D.jsx($.Center,{pt:r,pb:s,className:"mantine-datatable-empty-state","data-active":l||void 0,children:p||D.jsxs(D.Fragment,{children:[i||D.jsx("div",{className:"mantine-datatable-empty-state-icon",children:D.jsx(K1,{})}),D.jsx($.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var J1=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(K,fe){let ee=[];return K.forEach(J=>{fe.find(ve=>ve.accessor===J)&&ee.push(J)}),fe.forEach(J=>{ee.includes(J.accessor)||ee.push(J.accessor)}),ee}function l(K,fe){let ee=[];return K.forEach(J=>{fe.find(ve=>ve.accessor===J.accessor)&&ee.push(J)}),fe.forEach(J=>{ee.find(ve=>ve.accessor===J.accessor)||ee.push({accessor:J.accessor,defaultToggle:J.defaultToggle||!0,toggleable:J.toggleable,toggled:J.defaultToggle===void 0?!0:J.defaultToggle})}),ee}function p(K,fe){let ee=[];return K.forEach(J=>{let ve=Object.keys(J)[0];fe.find(he=>he.accessor===ve)&&ee.push(J)}),fe.forEach(J=>{let ve=J.accessor;if(!ee.find(he=>Object.keys(he)[0]===ve)){let he={};he[ve]="",ee.push(he)}}),ee}function v(){let[K,fe]=Ot.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function ee(he){i&&fe(he)}if(!i)return[K,ee];let J=s(K,n),ve=JSON.stringify(K);return JSON.stringify(J)!==ve&&ee(J),[J,ee]}function c(){let[K,fe]=Ot.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?R:void 0,getInitialValueInEffect:r});function ee(he){i&&fe(he)}if(!i)return[K,ee];let J=l(K,n),ve=JSON.stringify(K);return JSON.stringify(J)!==ve&&ee(J),[l(K,n),ee]}function x(){let[K,fe]=Ot.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?T:void 0,getInitialValueInEffect:r});function ee(he){i&&fe(he)}if(!i)return[K,ee];let J=p(K,n),ve=JSON.stringify(K);return JSON.stringify(J)!==ve&&ee(J),[p(K,n),ee]}let A=n&&n.map(K=>K.accessor)||[],T=n&&n.map(K=>({[K.accessor]:K.width??"initial"}))||[],R=n&&n.map(K=>({accessor:K.accessor,defaultToggle:K.defaultToggle||!0,toggleable:K.toggleable,toggled:K.defaultToggle===void 0?!0:K.defaultToggle})),[P,M]=v(),[I,j]=c(),[F,X]=x(),ie=()=>M(A),oe=()=>{j(R)},ce=()=>X(T);return{effectiveColumns:me.useMemo(()=>P?P.map(K=>n.find(fe=>fe.accessor===K)).map(K=>{var fe;return{...K,hidden:(K==null?void 0:K.hidden)||!((fe=I.find(ee=>ee.accessor===(K==null?void 0:K.accessor)))!=null&&fe.toggled)}}).map(K=>{var fe;return{...K,width:(fe=F.find(ee=>ee[K==null?void 0:K.accessor]))==null?void 0:fe[K==null?void 0:K.accessor]}}):n,[n,P,I,F]),setColumnsOrder:M,columnsOrder:P,resetColumnsOrder:ie,columnsToggle:I,setColumnsToggle:j,resetColumnsToggle:oe,columnsWidth:F,setColumnsWidth:X,setColumnWidth:(K,fe)=>{let ee=F.map(J=>J[K]?{[K]:fe}:J);X(ee)},resetColumnsWidth:ce}};function ni(){var s;let[i]=Ot.useResizeObserver(),{width:n,height:r}=((s=i.current)==null?void 0:s.getBoundingClientRect())||{width:0,height:0};return{ref:i,width:n,height:r}}var X1=typeof window<"u"?me.useLayoutEffect:me.useEffect;function e0(i){let[n,r]=me.useState(null),s=(i==null?void 0:i.join(":"))||"";return me.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function t0(i,n){let r=()=>{n(i.map(l=>l.matches))},s=i.map(l=>{try{return l.addEventListener("change",r),()=>l.removeEventListener("change",r)}catch{return l.addListener(r),()=>l.removeListener(r)}});return()=>{s.forEach(l=>l())}}function n0(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function r0(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=me.useState(r?n:n0(i,n)),p=me.useRef(null);return me.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(v=>window.matchMedia(v)),l(p.current.map(v=>v.matches)),t0(p.current,v=>{l(v)})},[i]),s}function i0(i){let n=$.useMantineTheme(),r=me.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=me.useMemo(()=>i.map(()=>!0),[i]);return r0(r,s)}function Qo(i){let n=$.useMantineTheme(),r=typeof i=="function"?i(n):i;return Ot.useMediaQuery(r||"",!0)}function Ea(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 o0(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Ra(i,n){return i.filter((r,s,l)=>s===l.findIndex(p=>n(r)===n(p)))}function Fc(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function $t(i,n){return typeof n=="string"?Fc(i,n):n(i)}function s0({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:c,allowMultiple:x,initiallyExpanded:A}=i;n&&c==="always"?s=n.map(T=>$t(T,r)):A&&(s=n.filter((T,R)=>A({record:T,index:R})).map(T=>$t(T,r)),x||(s=[s[0]]))}let l,p,v=me.useState(s);if(i){let{expandable:c,trigger:x,allowMultiple:A,collapseProps:T,content:R}=i;i.expanded?{recordIds:l,onRecordIdsChange:p}=i.expanded:[l,p]=v;let P=M=>p==null?void 0:p(l.filter(I=>I!==$t(M,r)));return{expandOnClick:x!=="always"&&x!=="never",isRowExpanded:M=>x==="always"?!0:l.includes($t(M,r)),isExpandable:({record:M,index:I})=>c?c({record:M,index:I}):!0,expandRow:M=>{let I=$t(M,r);p==null||p(A?[...l,I]:[I])},collapseRow:P,collapseProps:T,content:({record:M,index:I})=>()=>R({record:M,index:I,collapse:()=>P(M)})}}}function a0(i,n){let[r,s]=me.useState(i),[l,p]=me.useState(i),v=Ot.useTimeout(()=>s(!0),0),c=Ot.useTimeout(()=>p(!1),n||200);return me.useEffect(()=>{i?(c.clear(),p(!0),v.start()):(v.clear(),s(!1),c.start())},[v,c,i]),{expanded:r,visible:l}}var La="mantine-datatable-nowrap",ka="mantine-datatable-ellipsis",ri="mantine-datatable-pointer-cursor",Wc="mantine-datatable-context-menu-cursor",u0="mantine-datatable-text-selection-disabled",Jo="mantine-datatable-text-align-left",Xo="mantine-datatable-text-align-center",es="mantine-datatable-text-align-right";function l0({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:p,textAlign:v,width:c}){return Qo(r)?D.jsx($.TableTh,{className:vt({[La]:l||p,[ka]:p,[Jo]:v==="left",[Xo]:v==="center",[es]:v==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},n],children:s}):null}function c0({shadowVisible:i}){return D.jsx($.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}var f0=me.forwardRef(function({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:p,scrollDiff:v},c){let x=v<0;return D.jsx($.TableTfoot,{ref:c,className:vt("mantine-datatable-footer",i),style:[{position:x?"relative":"sticky",bottom:$.rem(x?v:0)},n],children:D.jsxs($.TableTr,{children:[l&&D.jsx(c0,{shadowVisible:p}),r.map(({hidden:A,...T})=>{if(A)return null;let{accessor:R,visibleMediaQuery:P,textAlign:M,width:I,footer:j,footerClassName:F,footerStyle:X,noWrap:ie,ellipsis:oe}={...s,...T};return D.jsx(l0,{className:F,style:X,visibleMediaQuery:P,textAlign:M,width:I,title:j,noWrap:ie,ellipsis:oe},R)})]})})});function h0({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:p}}){let v=me.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),c=i0(v),x=me.useMemo(()=>n.filter(({hidden:A},T)=>!A&&(c==null?void 0:c[T])).length,[n,c]);return x>0?D.jsx($.TableTh,{colSpan:x,className:vt("mantine-datatable-column-group-header-cell",{[Jo]:s==="left",[Xo]:s==="center",[es]:s==="right"},l),style:p,children:r??Ea(i)}):null}function d0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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 p0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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 g0({children:i,isActive:n,filterPopoverProps:r}){let[s,{close:l,toggle:p}]=Ot.useDisclosure(!1),v=n?p0:d0,c=Ot.useClickOutside(l);return D.jsxs($.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[D.jsx($.PopoverTarget,{children:D.jsx($.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:x=>{x.preventDefault(),p()},onKeyDown:x=>x.stopPropagation(),children:D.jsx(v,{})})}),D.jsx($.PopoverDropdown,{ref:c,onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),children:typeof i=="function"?i({close:l}):i})]})}var m0=i=>{let{accessor:n,columnRef:r}=i,s=me.useRef(null),[l,p]=me.useState(0),{setColumnWidth:v}=Ma(),c=T=>{T.preventDefault(),T.stopPropagation(),document.addEventListener("mousemove",x),document.addEventListener("mouseup",A),document.body.style.cursor="col-resize"},x=T=>{if(!r.current)return;let R=T.clientX-r.current.getBoundingClientRect().right,P=`${r.current.getBoundingClientRect().width+R}px`;r.current.style.width=P,v(n,r.current.style.width),p(-R)},A=()=>{r.current&&(document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",A),document.body.style.cursor="initial",v(n,r.current.style.width),p(0))};return D.jsx("div",{ref:s,onClick:T=>T.stopPropagation(),onMouseDown:c,onDoubleClick:()=>{r.current&&(r.current.style.maxWidth="initial",r.current.style.minWidth="initial",r.current.style.width="initial",v(n,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:$.rem(l)}})};function v0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M12 5l0 14"}),D.jsx("path",{d:"M16 9l-4 -4"}),D.jsx("path",{d:"M8 9l4 -4"})]})}function y0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 7l4 -4l4 4"}),D.jsx("path",{d:"M8 17l4 4l4 -4"}),D.jsx("path",{d:"M12 3l0 18"})]})}function _0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function w0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M18 6l-12 12"}),D.jsx("path",{d:"M6 6l12 12"})]})}function b0({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:p,draggable:v,toggleable:c,resizable:x,sortIcons:A,textAlign:T,width:R,sortStatus:P,onSortStatusChange:M,filter:I,filterPopoverProps:j,filtering:F,sortKey:X}){let{setSourceColumn:ie,setTargetColumn:oe,swapColumns:ce,setColumnsToggle:K}=Ma(),[fe,ee]=me.useState(!1),J=me.useRef(null);if(!Qo(s))return null;let ve=l??Ea(r),he=typeof ve=="string"?ve:void 0,te=p&&M?f=>{f!=null&&f.defaultPrevented||M({sortKey:X,columnAccessor:r,direction:(P==null?void 0:P.columnAccessor)===r?P.direction==="asc"?"desc":"asc":(P==null?void 0:P.direction)??"asc"})}:void 0,Oe=f=>{f.stopPropagation(),ie(r),ee(!1)},Te=f=>{f.preventDefault(),oe(r),ee(!0)},N=()=>{oe(r),ee(!1),ce()},E=()=>{ee(!0)},O=()=>{ee(!1)},d=f=>{f.stopPropagation(),K(w=>w.map(g=>g.accessor===r?{...g,toggled:!1}:g))};return D.jsxs($.TableTh,{className:vt({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":x},i),style:[{width:R,...x?{minWidth:"1px"}:{minWidth:R,maxWidth:R}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:te,onKeyDown:f=>f.key==="Enter"&&(te==null?void 0:te()),ref:J,children:[D.jsxs($.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs($.Flex,{align:"center",w:"100%",className:vt({"mantine-datatable-header-cell-draggable":v,"mantine-datatable-header-cell-drag-over":fe}),draggable:v,onDragStart:v?Oe:void 0,onDragEnter:v?E:void 0,onDragOver:v?Te:void 0,onDrop:v?N:void 0,onDragLeave:v?O:void 0,children:[v?D.jsx($.Center,{role:"img","aria-label":"Drag column",children:D.jsx($.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:f=>{f.stopPropagation()},children:D.jsx(_0,{})})}):null,D.jsx($.Box,{className:vt("mantine-datatable-header-cell-sortable-text",{[Jo]:T==="left",[Xo]:T==="center",[es]:T==="right"},La,ka),title:he,children:ve})]}),c?D.jsx($.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx($.ActionIcon,{size:"xs",variant:"light",onClick:d,children:D.jsx(w0,{})})}):null,p||(P==null?void 0:P.columnAccessor)===r?D.jsx(D.Fragment,{children:(P==null?void 0:P.columnAccessor)===r?D.jsx($.Center,{className:vt("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":P.direction==="desc"}),role:"img","aria-label":`Sorted ${P.direction==="desc"?"descending":"ascending"}`,children:(A==null?void 0:A.sorted)||D.jsx(v0,{})}):D.jsx($.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(A==null?void 0:A.unsorted)||D.jsx(y0,{})})}):null,I?D.jsx(g0,{filterPopoverProps:j,isActive:!!F,children:I}):null]}),x?D.jsx(m0,{accessor:r,columnRef:J}):null]})}var x0=me.forwardRef(function({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:p,checkboxProps:v,onChange:c,rowSpan:x},A){let T=!v.disabled;return D.jsx($.TableTh,{ref:A,className:vt("mantine-datatable-header-selector-cell",{[ri]:r==="cell"&&T},i),style:n,rowSpan:x,"data-shadow-visible":s||void 0,onClick:r==="cell"&&T?c:void 0,children:D.jsx($.Checkbox,{classNames:T?{input:ri}:void 0,checked:l,indeterminate:p,onChange:c,...v,disabled:!(c||v.onChange)||v.disabled})})}),S0=me.forwardRef(function({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:p,columns:v,defaultColumnProps:c,groups:x,selectionTrigger:A,selectionVisible:T,selectionChecked:R,selectionIndeterminate:P,onSelectionChange:M,selectionCheckboxProps:I,selectorCellShadowVisible:j,selectionColumnClassName:F,selectionColumnStyle:X},ie){let oe=T?D.jsx(x0,{ref:i,className:F,style:X,trigger:A,shadowVisible:j,checked:R,indeterminate:P,checkboxProps:I,onChange:M,rowSpan:x?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:K}=Ma(),[fe,ee]=me.useState(!1),J=v.some(te=>te.toggleable),ve=J?Object.fromEntries(v.map(({accessor:te,title:Oe})=>[te,Oe??Ea(String(te))])):void 0,he=D.jsxs($.TableThead,{className:vt("mantine-datatable-header",n),style:r,ref:ie,onContextMenu:J?te=>{te.preventDefault(),ee(Oe=>!Oe)}:void 0,children:[x&&D.jsxs($.TableTr,{children:[oe,x.map(te=>D.jsx(h0,{group:te},te.id))]}),D.jsxs($.TableTr,{children:[!x&&oe,v.map(({hidden:te,...Oe},Te)=>{if(te)return null;let{accessor:N,visibleMediaQuery:E,textAlign:O,width:d,title:f,sortable:w,draggable:g,toggleable:m,resizable:C,titleClassName:W,titleStyle:V,filter:ae,filterPopoverProps:ue,filtering:be,sortKey:ne}={...c,...Oe};return D.jsx(b0,{accessor:N,className:W,style:V,visibleMediaQuery:E,textAlign:O,width:d,title:f,sortable:w,draggable:g,toggleable:m,resizable:C&&Te<v.length-1,sortStatus:s,sortIcons:l,sortKey:ne,onSortStatusChange:p,filter:ae,filterPopoverProps:ue,filtering:be},N)})]})]});return J?D.jsxs($.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:fe,onChange:ee,children:[D.jsx($.PopoverTarget,{children:he}),D.jsx($.PopoverDropdown,{children:D.jsx($.Stack,{children:ce.filter(te=>te.toggleable).map(te=>D.jsx($.Group,{children:D.jsx($.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:ve[te.accessor],checked:te.toggled,onChange:Oe=>{K(ce.map(Te=>Te.accessor===te.accessor?{...Te,toggled:Oe.currentTarget.checked}:Te))}})},te.accessor))})})]}):he});function C0({pt:i,pb:n,fetching:r,customContent:s,backgroundBlur:l,size:p,type:v,color:c}){return D.jsx($.Center,{pt:i,pb:n,className:vt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||D.jsx($.Loader,{size:p,type:v,color:c}))})}function xt(i,n,r){return i?$.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function A0({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:p,highlightOnHoverColor:v}){return{"--mantine-datatable-color-light":xt(n,i,"light"),"--mantine-datatable-color-dark":xt(n,i,"dark"),"--mantine-datatable-background-color-light":xt(r,i,"light"),"--mantine-datatable-background-color-dark":xt(r,i,"dark"),"--mantine-datatable-border-color-light":xt(s,i,"light"),"--mantine-datatable-border-color-dark":xt(s,i,"dark"),"--mantine-datatable-row-border-color-light":xt(l,i,"light"),"--mantine-datatable-row-border-color-dark":xt(l,i,"dark"),"--mantine-datatable-striped-color-light":xt(p,i,"light"),"--mantine-datatable-striped-color-dark":xt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":xt(v,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":xt(v,i,"dark")}}function zc({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":xt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":xt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":xt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":xt(r,i,"dark")}}function D0({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":xt(n,i,"light"),"--mantine-datatable-row-color-dark":xt(n,i,"dark"),"--mantine-datatable-row-background-color-light":xt(r,i,"light"),"--mantine-datatable-row-background-color-dark":xt(r,i,"dark")}}function O0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 9l4 -4l4 4"}),D.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var qc={xs:$.rem(22),sm:$.rem(26),md:$.rem(32),lg:$.rem(38),xl:$.rem(44)};function T0({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:p,onChange:v}){return D.jsxs($.Group,{gap:"xs",children:[D.jsx($.Text,{component:"div",size:i,children:n}),D.jsxs($.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx($.MenuTarget,{children:D.jsx($.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:D.jsx(O0,{}),style:[{fontWeight:"normal"},c=>({height:qc[i],paddingLeft:c.spacing[i],paddingRight:c.spacing[i]})],children:s})}),D.jsx($.MenuDropdown,{children:r.map(c=>{let x=c===s;return D.jsx($.MenuItem,{className:vt({"mantine-datatable-page-size-selector-active":x}),style:[{height:qc[i]},x&&(l||p)?A=>zc({theme:A,paginationActiveTextColor:l,paginationActiveBackgroundColor:p}):void 0],disabled:x,onClick:()=>v(c),children:D.jsx($.Text,{component:"div",size:i,children:c})},c)})})]})]})}var M0=me.forwardRef(function({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:p,paginationWithControls:v,paginationActiveTextColor:c,paginationActiveBackgroundColor:x,paginationSize:A,loadingText:T,noRecordsText:R,paginationText:P,totalRecords:M,recordsPerPage:I,onRecordsPerPageChange:j,recordsPerPageLabel:F,recordsPerPageOptions:X,recordsLength:ie,horizontalSpacing:oe,paginationWrapBreakpoint:ce,getPaginationControlProps:K},fe){let ee;if(M){let ve=(s-1)*I+1,he=ve+(ie||0)-1;ee=P({from:ve,to:he,totalRecords:M})}else ee=r?T:R;let J=Qo(({breakpoints:ve})=>`(min-width: ${typeof ce=="number"?`${$.rem(ce)}rem`:ve[ce]||ce})`);return D.jsxs($.Box,{ref:fe,px:oe??"xs",py:"xs",className:vt("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[D.jsx($.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ee}),X&&D.jsx(T0,{activeTextColor:c,activeBackgroundColor:x,size:A,label:F,values:X,value:I,onChange:j}),D.jsx($.Pagination,{classNames:{root:vt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!ie}),control:"mantine-datatable-pagination-pages-control"},style:c||x?ve=>zc({theme:ve,paginationActiveTextColor:c,paginationActiveBackgroundColor:x}):void 0,withEdges:p,withControls:v,value:s,onChange:l,size:A,total:Math.ceil(M/I),getControlProps:K})]})});function E0({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:p,onDoubleClick:v,onContextMenu:c,noWrap:x,ellipsis:A,textAlign:T,width:R,accessor:P,render:M,defaultRender:I,customCellAttributes:j}){return Qo(r)?D.jsx($.TableTd,{className:vt({[La]:x||A,[ka]:A,[ri]:p||v,[Wc]:c,[Jo]:T==="left",[Xo]:T==="center",[es]:T==="right"},i),style:[{width:R,minWidth:R,maxWidth:R},n],onClick:p,onDoubleClick:v,onContextMenu:c,...j==null?void 0:j(s,l),children:M?M(s,l):I?I(s,l,P):Fc(s,P)}):null}function R0({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:p}=a0(i,s==null?void 0:s.transitionDuration);return p?D.jsxs(D.Fragment,{children:[D.jsx($.TableTr,{}),D.jsx($.TableTr,{children:D.jsx($.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:D.jsx($.Collapse,{in:l,...s,children:D.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function L0({className:i,style:n,record:r,index:s,trigger:l,onChange:p,withRightShadow:v,checkboxProps:c,getCheckboxProps:x,...A}){let T={...c,...x(r,s)},R=!A.disabled&&!T.disabled,P=M=>{M.stopPropagation(),l==="cell"&&R&&(p==null||p(M))};return D.jsx($.TableTd,{className:vt("mantine-datatable-row-selector-cell",{[ri]:l==="cell"&&R},i),style:n,"data-shadow-visible":v||void 0,onClick:P,children:D.jsx($.Checkbox,{classNames:R?{input:ri}:void 0,onChange:p,...A,...T})})}function k0({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:p,selectionVisible:v,selectionChecked:c,onSelectionChange:x,isRecordSelectable:A,selectionCheckboxProps:T,getSelectionCheckboxProps:R,onClick:P,onDoubleClick:M,onContextMenu:I,onCellClick:j,onCellDoubleClick:F,onCellContextMenu:X,expansion:ie,customAttributes:oe,color:ce,backgroundColor:K,className:fe,style:ee,selectorCellShadowVisible:J,selectionColumnClassName:ve,selectionColumnStyle:he,rowFactory:te}){let Oe=D.jsxs(D.Fragment,{children:[v&&D.jsx(L0,{className:ve,style:he,record:i,index:n,trigger:p,withRightShadow:J,checked:c,disabled:!x||(A?!A(i,n):!1),onChange:x,checkboxProps:T,getCheckboxProps:R}),r.map(({hidden:E,hiddenContent:O,...d},f)=>{if(E||O)return null;let{accessor:w,visibleMediaQuery:g,textAlign:m,noWrap:C,ellipsis:W,width:V,render:ae,cellsClassName:ue,cellsStyle:be,customCellAttributes:ne}={...s,...d};return D.jsx(E0,{className:typeof ue=="function"?ue(i,n):ue,style:be==null?void 0:be(i,n),visibleMediaQuery:g,record:i,index:n,onClick:j?de=>j({event:de,record:i,index:n,column:d,columnIndex:f}):void 0,onDoubleClick:F?de=>F({event:de,record:i,index:n,column:d,columnIndex:f}):void 0,onContextMenu:X?de=>X({event:de,record:i,index:n,column:d,columnIndex:f}):void 0,accessor:w,textAlign:m,noWrap:C,ellipsis:W,width:V,render:ae,defaultRender:l,customCellAttributes:ne},w)})]}),Te=ie&&D.jsx(R0,{colSpan:r.filter(({hidden:E})=>!E).length+(v?1:0),open:ie.isRowExpanded(i),content:ie.content({record:i,index:n}),collapseProps:ie.collapseProps}),N=I0({record:i,index:n,selectionChecked:c,onClick:P,onDoubleClick:M,onContextMenu:I,expansion:ie,customAttributes:oe,color:ce,backgroundColor:K,className:fe,style:ee});return te?te({record:i,index:n,rowProps:N,children:Oe,expandedElement:Te}):D.jsxs(D.Fragment,{children:[D.jsx($.TableTr,{...N,children:Oe}),Te]})}function I0({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:p,expansion:v,customAttributes:c,color:x,backgroundColor:A,className:T,style:R}){return{className:vt("mantine-datatable-row",{[ri]:s||l||(v==null?void 0:v.isExpandable({record:i,index:n}))&&(v==null?void 0:v.expandOnClick)},{[Wc]:p},typeof T=="function"?T(i,n):T),"data-selected":r||void 0,onClick:P=>{if(v){let{isExpandable:M,isRowExpanded:I,expandOnClick:j,expandRow:F,collapseRow:X}=v;M({record:i,index:n})&&j&&(I(i)?X(i):F(i))}s==null||s({event:P,record:i,index:n})},onDoubleClick:l?P=>l({event:P,record:i,index:n}):void 0,onContextMenu:p?P=>p({event:P,record:i,index:n}):void 0,style:[x||A?P=>{let M=x==null?void 0:x(i,n),I=A==null?void 0:A(i,n);return D0({theme:P,color:M,backgroundColor:I})}:void 0,R==null?void 0:R(i,n)],...(c==null?void 0:c(i,n))??{}}}function P0({topShadowVisible:i,leftShadowVisible:n,leftShadowBehind:r,rightShadowVisible:s,rightShadowBehind:l,bottomShadowVisible:p,headerHeight:v,footerHeight:c,onScrollPositionChange:x,children:A,viewportRef:T,scrollAreaProps:R}){return D.jsxs($.ScrollArea,{...R,viewportRef:T,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:x,children:[A,D.jsx($.Box,{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:v?$.rem(v):0}}),D.jsx("div",{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":n,"mantine-datatable-scroll-area-shadow-behind":r})}),D.jsx("div",{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":s,"mantine-datatable-scroll-area-shadow-behind":l})}),D.jsx($.Box,{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":p}),style:{bottom:c?$.rem(c+1):0}})]})}function N0({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:p,shadow:v,verticalAlign:c="center",fetching:x,columns:A,storeColumnsKey:T,groups:R,pinFirstColumn:P,pinLastColumn:M,defaultColumnProps:I,defaultColumnRender:j,idAccessor:F="id",records:X,selectionTrigger:ie="checkbox",selectedRecords:oe,onSelectedRecordsChange:ce,selectionColumnClassName:K,selectionColumnStyle:fe,isRecordSelectable:ee,selectionCheckboxProps:J,allRecordsSelectionCheckboxProps:ve={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(qt,Wn)=>({"aria-label":`Select record ${Wn+1}`}),sortStatus:te,sortIcons:Oe,onSortStatusChange:Te,horizontalSpacing:N,page:E,onPageChange:O,totalRecords:d,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:g,recordsPerPageLabel:m="Records per page",paginationWithEdges:C,paginationWithControls:W,paginationActiveTextColor:V,paginationActiveBackgroundColor:ae,paginationSize:ue="sm",paginationText:be=({from:qt,to:Wn,totalRecords:zn})=>`${qt} - ${Wn} / ${zn}`,paginationWrapBreakpoint:ne="sm",getPaginationControlProps:de=qt=>qt==="previous"?{"aria-label":"Previous page"}:qt==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:Ce,customLoader:_e,loaderSize:B,loaderType:z,loaderColor:Y,loadingText:Z="...",emptyState:se,noRecordsText:De="No records",noRecordsIcon:u,highlightOnHover:h,striped:_,noHeader:k,onRowClick:q,onRowDoubleClick:Q,onRowContextMenu:Ae,onCellClick:we,onCellDoubleClick:Re,onCellContextMenu:Se,onScroll:Le,onScrollToTop:Ne,onScrollToBottom:ke,onScrollToLeft:Ge,onScrollToRight:Je,c:Ve,backgroundColor:_t,borderColor:ft,rowBorderColor:ht,stripedColor:xn,highlightOnHoverColor:St,rowColor:ln,rowBackgroundColor:En,rowExpansion:Rn,rowClassName:Kt,rowStyle:cn,customRowAttributes:Ln,scrollViewportRef:at,scrollAreaProps:zt,tableRef:Sn,bodyRef:kn,m:In,my:vr,mx:ut,mt:Tt,mb:Un,ml:Fn,mr:fi,className:hi,classNames:Ct,style:di,styles:Rt,rowFactory:Ia,tableWrapper:Zi,...Ki}){let{ref:qt,width:Wn,height:zn}=ni(),jr=me.useMemo(()=>(R==null?void 0:R.flatMap(Ze=>Ze.columns))??A,[A,R]),ts=J1({key:T,columns:jr}),{ref:Pa,height:yr}=ni(),{ref:Na,width:_r,height:Yr}=ni(),{ref:$a,height:Ba}=ni(),{ref:ns,height:Qi}=ni(),{ref:rs,width:ja}=ni(),Ya=Ot.useMergedRef(Na,Sn),Ua=Ot.useMergedRef(qt,at),[Ji,Xi]=me.useState(!0),[pi,eo]=me.useState(!0),[qn,is]=me.useState(!0),[Ur,Fr]=me.useState(!0),os=s0({rowExpansion:Rn,records:X,idAccessor:F}),to=me.useCallback(()=>{var br,xr;let Ze=((br=qt.current)==null?void 0:br.scrollTop)??0,Qt=((xr=qt.current)==null?void 0:xr.scrollLeft)??0;if(x||Yr<=zn)Xi(!0),eo(!0);else{let fn=Ze===0,Jt=Yr-Ze-zn<1;Xi(fn),eo(Jt),fn&&fn!==Ji&&(Ne==null||Ne()),Jt&&Jt!==pi&&(ke==null||ke())}if(x||_r===Wn)is(!0),Fr(!0);else{let fn=Qt===0,Jt=_r-Qt-Wn<1;is(fn),Fr(Jt),fn&&fn!==qn&&(Ge==null||Ge()),Jt&&Jt!==Ur&&(Je==null||Je())}},[x,ke,Ge,Je,Ne,zn,qt,Wn,pi,qn,Ur,Ji,Yr,_r]);X1(to,[to]);let no=Ot.useDebouncedCallback(to,50),ss=me.useCallback(Ze=>{Le==null||Le(Ze),no()},[no,Le]),ro=me.useCallback(Ze=>{var Qt;(Qt=qt.current)==null||Qt.scrollTo({top:0,left:0}),O(Ze)},[O,qt]),gi=X==null?void 0:X.length,io=X==null?void 0:X.map(Ze=>$t(Ze,F)),Pn=!!oe,Cn=oe==null?void 0:oe.map(Ze=>$t(Ze,F)),Hn=io!==void 0&&Cn!==void 0&&Cn.length>0,wr=ee?X==null?void 0:X.filter(ee):X,Wr=wr==null?void 0:wr.map(Ze=>$t(Ze,F)),mi=Hn&&Wr.every(Ze=>Cn.includes(Ze)),as=Hn&&Wr.some(Ze=>Cn.includes(Ze)),us=me.useCallback(()=>{oe&&ce&&ce(mi?oe.filter(Ze=>!Wr.includes($t(Ze,F))):Ra([...oe,...wr],Ze=>$t(Ze,F)))},[mi,F,ce,Wr,wr,oe]),{lastSelectionChangeIndex:zr,setLastSelectionChangeIndex:ls}=e0(io),oo=Pn&&!qn&&!P,Fa={m:In,my:vr,mx:ut,mt:Tt,mb:Un,ml:Fn,mr:fi},Wa=me.useCallback(({children:Ze})=>Zi?Zi({children:Ze}):Ze,[Zi]);return D.jsx(Uc,{...ts,children:D.jsxs($.Box,{...Fa,className:vt("mantine-datatable",{"mantine-datatable-with-border":i},hi,Ct==null?void 0:Ct.root),style:[Ze=>({...A0({theme:Ze,c:Ve,backgroundColor:_t,borderColor:ft,rowBorderColor:ht,stripedColor:xn,highlightOnHoverColor:St}),borderRadius:Ze.radius[n]||n,boxShadow:Ze.shadows[v]||v,height:s,minHeight:l,maxHeight:p}),di,Rt==null?void 0:Rt.root,{position:"relative"}],children:[D.jsx(P0,{viewportRef:Ua,topShadowVisible:!Ji,leftShadowVisible:!qn,leftShadowBehind:Pn||!!P,rightShadowVisible:!Ur,rightShadowBehind:M,bottomShadowVisible:!pi,headerHeight:yr,footerHeight:Ba,onScrollPositionChange:ss,scrollAreaProps:zt,children:D.jsx(Wa,{children:D.jsxs($.Table,{ref:Ya,horizontalSpacing:N,className:vt("mantine-datatable-table",{[u0]:r,"mantine-datatable-vertical-align-top":c==="top","mantine-datatable-vertical-align-bottom":c==="bottom","mantine-datatable-last-row-border-bottom-visible":Ki.withRowBorders&&Yr<zn,"mantine-datatable-pin-last-column":M,"mantine-datatable-pin-last-column-scrolled":!Ur&&M,"mantine-datatable-selection-column-visible":Pn,"mantine-datatable-pin-first-column":P,"mantine-datatable-pin-first-column-scrolled":!qn&&P},Ct==null?void 0:Ct.table),style:{...Rt==null?void 0:Rt.table,"--mantine-datatable-selection-column-width":`${ja}px`},"data-striped":gi&&_||void 0,"data-highlight-on-hover":h||void 0,...Ki,children:[k?null:D.jsx(Uc,{...ts,children:D.jsx(S0,{ref:Pa,selectionColumnHeaderRef:rs,className:Ct==null?void 0:Ct.header,style:Rt==null?void 0:Rt.header,columns:jr,defaultColumnProps:I,groups:R,sortStatus:te,sortIcons:Oe,onSortStatusChange:Te,selectionTrigger:ie,selectionVisible:Pn,selectionChecked:mi,selectionIndeterminate:as&&!mi,onSelectionChange:us,selectionCheckboxProps:{...J,...ve},selectorCellShadowVisible:oo,selectionColumnClassName:K,selectionColumnStyle:fe})}),D.jsx("tbody",{ref:kn,children:gi?X.map((Ze,Qt)=>{let br=$t(Ze,F),xr=(Cn==null?void 0:Cn.includes(br))||!1,fn;return ce&&oe&&(fn=Jt=>{if(Jt.nativeEvent.shiftKey&&zr!==null){let Sr=X.filter(Qt>zr?(Gn,Vn)=>Vn>=zr&&Vn<=Qt&&(ee?ee(Gn,Vn):!0):(Gn,Vn)=>Vn>=Qt&&Vn<=zr&&(ee?ee(Gn,Vn):!0));ce(xr?o0(oe,Sr,Gn=>$t(Gn,F)):Ra([...oe,...Sr],Gn=>$t(Gn,F)))}else ce(xr?oe.filter(Sr=>$t(Sr,F)!==br):Ra([...oe,Ze],Sr=>$t(Sr,F)));ls(Qt)}),D.jsx(k0,{record:Ze,index:Qt,columns:jr,defaultColumnProps:I,defaultColumnRender:j,selectionTrigger:ie,selectionVisible:Pn,selectionChecked:xr,onSelectionChange:fn,isRecordSelectable:ee,selectionCheckboxProps:J,getSelectionCheckboxProps:he,onClick:q,onDoubleClick:Q,onCellClick:we,onCellDoubleClick:Re,onContextMenu:Ae,onCellContextMenu:Se,expansion:os,color:ln,backgroundColor:En,className:Kt,style:cn,customAttributes:Ln,selectorCellShadowVisible:oo,selectionColumnClassName:K,selectionColumnStyle:fe,idAccessor:F,rowFactory:Ia},br)}):D.jsx(Z1,{})}),jr.some(({footer:Ze})=>Ze)&&D.jsx(f0,{ref:$a,className:Ct==null?void 0:Ct.footer,style:Rt==null?void 0:Rt.footer,columns:jr,defaultColumnProps:I,selectionVisible:Pn,selectorCellShadowVisible:oo,scrollDiff:Yr-zn})]})})}),E&&D.jsx(M0,{ref:ns,className:Ct==null?void 0:Ct.pagination,style:Rt==null?void 0:Rt.pagination,horizontalSpacing:N,fetching:x,page:E,onPageChange:ro,totalRecords:d,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:g,recordsPerPageLabel:m,paginationWithEdges:C,paginationWithControls:W,paginationActiveTextColor:V,paginationActiveBackgroundColor:ae,paginationSize:ue,paginationText:be,paginationWrapBreakpoint:ne,getPaginationControlProps:de,noRecordsText:De,loadingText:Z,recordsLength:gi}),D.jsx(C0,{pt:yr,pb:Qi,fetching:x,backgroundBlur:Ce,customContent:_e,size:B,type:z,color:Y}),D.jsx(Q1,{pt:yr,pb:Qi,icon:u,text:De,active:!x&&!gi,children:se})]})})}var $0=me.forwardRef(function({children:i,isDragging:n,...r},s){let l=me.useRef(null),p=Ot.useMergedRef(l,s);return me.useEffect(()=>{if(!l.current||!n)return;let v=l.current.parentElement.parentElement.children[0].children[0];for(let c=0;c<v.children.length;c++){let x=v.children[c].getBoundingClientRect(),A=l.current.children[c];A.style.height=x.height+"px",A.style.width=x.width+"px",A.style.minWidth=x.width+"px",A.style.maxWidth=x.width+"px"}},[n,i]),D.jsx($.TableTr,{"data-is-dragging":n,ref:p,...r,children:i})});$0.displayName="DataTableDraggableRow";var Hi={exports:{}};/**
|
|
117
|
+
`+m,x(`data:${Te(f)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else x(g.toDataURL(Te(f)),`${w}.${f}`)}}const E=N})(),p.default})())}(_a)),_a.exports}Pg();const cc=me.createContext(void 0);function Ng(i){const n=wn.c(9),{children:r,baseUrl:s,queryClient:l}=i;let p;n[0]!==s||n[1]!==l?(p={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=p):p=n[2];let v;n[3]!==r||n[4]!==l?(v=D.jsx(xl,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=v):v=n[5];let c;return n[6]!==p||n[7]!==v?(c=D.jsx(cc.Provider,{value:p,children:v}),n[6]=p,n[7]=v,n[8]=c):c=n[8],c}function rr(){const i=me.useContext(cc);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function $g(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function Rr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Cg()??""}`,...$g()}}async function fc(i){return fetch(i,{method:"GET",headers:await Rr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function hc(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await Rr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function dc(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await Rr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function pc(i,n){return fetch(i,{method:"POST",headers:await Rr(),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 Bg(i,n,r){return fetch(n,{method:i,headers:await Rr(),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 gc(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await Rr(),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 mc(i,n,r){const s=wn.c(13),{baseUrl:l}=rr();let p;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r==null?void 0:r.toString(),s[3]=r,s[4]=A):A=s[4],p=[...n.map(jg),String(A)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let v;s[5]!==i||s[6]!==l||s[7]!==r?(v=()=>hc(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=v):v=s[8];const c=!!r;let x;return s[9]!==p||s[10]!==v||s[11]!==c?(x={queryKey:p,queryFn:v,enabled:c},s[9]=p,s[10]=v,s[11]=c,s[12]=x):x=s[12],Al(x)}function jg(i){return i.toString()}function vc(i,n){const r=wn.c(8),{baseUrl:s}=rr();let l;r[0]!==n?(l=[...n.map(Yg)],r[0]=n,r[1]=l):l=r[1];let p;r[2]!==i||r[3]!==s?(p=()=>fc(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let v;return r[5]!==l||r[6]!==p?(v={queryKey:l,queryFn:p},r[5]=l,r[6]=p,r[7]=v):v=r[7],Al(v)}function Yg(i){return i.toString()}function yc(i,n){const r=wn.c(10),{baseUrl:s,queryClient:l}=rr();let p;r[0]!==n?(p=[...n.map(Fg)],r[0]=n,r[1]=p):p=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>pc(`${s}${i}`,x),r[2]=i,r[3]=s,r[4]=v):v=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==v?(c={mutationKey:p,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Ug)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=v,r[9]=c):c=r[9],ea(c)}function Ug(i){return i.toString()}function Fg(i){return i.toString()}function wa(i,n){const r=wn.c(10),{baseUrl:s,queryClient:l}=rr();let p;r[0]!==n?(p=[...n.map(zg)],r[0]=n,r[1]=p):p=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>gc(`${s}${i}`,x),r[2]=i,r[3]=s,r[4]=v):v=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==v?(c={mutationKey:p,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Wg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=v,r[9]=c):c=r[9],ea(c)}function Wg(i){return i.toString()}function zg(i){return i.toString()}function _c(i,n){const r=wn.c(10),{baseUrl:s,queryClient:l}=rr();let p;r[0]!==n?(p=[...n.map(Hg)],r[0]=n,r[1]=p):p=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>dc(`${s}${i}`,x),r[2]=i,r[3]=s,r[4]=v):v=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==v?(c={mutationKey:p,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(qg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=v,r[9]=c):c=r[9],ea(c)}function qg(i){return i.toString()}function Hg(i){return i.toString()}var Po={exports:{}},Gg=Po.exports,wc;function Vg(){return wc||(wc=1,function(i,n){(function(r,s){i.exports=s()})(Gg,function(){var r=1e3,s=6e4,l=36e5,p="millisecond",v="second",c="minute",x="hour",A="day",T="week",R="month",P="quarter",M="year",I="date",j="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|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,ie={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(N){var E=["th","st","nd","rd"],O=N%100;return"["+N+(E[(O-20)%10]||E[O]||E[0])+"]"}},oe=function(N,E,O){var d=String(N);return!d||d.length>=E?N:""+Array(E+1-d.length).join(O)+N},ce={s:oe,z:function(N){var E=-N.utcOffset(),O=Math.abs(E),d=Math.floor(O/60),f=O%60;return(E<=0?"+":"-")+oe(d,2,"0")+":"+oe(f,2,"0")},m:function N(E,O){if(E.date()<O.date())return-N(O,E);var d=12*(O.year()-E.year())+(O.month()-E.month()),f=E.clone().add(d,R),w=O-f<0,g=E.clone().add(d+(w?-1:1),R);return+(-(d+(O-f)/(w?f-g:g-f))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:R,y:M,w:T,d:A,D:I,h:x,m:c,s:v,ms:p,Q:P}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},K="en",fe={};fe[K]=ie;var ee="$isDayjsObject",J=function(N){return N instanceof Oe||!(!N||!N[ee])},ve=function N(E,O,d){var f;if(!E)return K;if(typeof E=="string"){var w=E.toLowerCase();fe[w]&&(f=w),O&&(fe[w]=O,f=w);var g=E.split("-");if(!f&&g.length>1)return N(g[0])}else{var m=E.name;fe[m]=E,f=m}return!d&&f&&(K=f),f||!d&&K},he=function(N,E){if(J(N))return N.clone();var O=typeof E=="object"?E:{};return O.date=N,O.args=arguments,new Oe(O)},te=ce;te.l=ve,te.i=J,te.w=function(N,E){return he(N,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var Oe=function(){function N(O){this.$L=ve(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[ee]=!0}var E=N.prototype;return E.parse=function(O){this.$d=function(d){var f=d.date,w=d.utc;if(f===null)return new Date(NaN);if(te.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var g=f.match(F);if(g){var m=g[2]-1||0,C=(g[7]||"0").substring(0,3);return w?new Date(Date.UTC(g[1],m,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)):new Date(g[1],m,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)}}return new Date(f)}(O),this.init()},E.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},E.$utils=function(){return te},E.isValid=function(){return this.$d.toString()!==j},E.isSame=function(O,d){var f=he(O);return this.startOf(d)<=f&&f<=this.endOf(d)},E.isAfter=function(O,d){return he(O)<this.startOf(d)},E.isBefore=function(O,d){return this.endOf(d)<he(O)},E.$g=function(O,d,f){return te.u(O)?this[d]:this.set(f,O)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(O,d){var f=this,w=!!te.u(d)||d,g=te.p(O),m=function(de,Ce){var _e=te.w(f.$u?Date.UTC(f.$y,Ce,de):new Date(f.$y,Ce,de),f);return w?_e:_e.endOf(A)},C=function(de,Ce){return te.w(f.toDate()[de].apply(f.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(Ce)),f)},W=this.$W,V=this.$M,ae=this.$D,ue="set"+(this.$u?"UTC":"");switch(g){case M:return w?m(1,0):m(31,11);case R:return w?m(1,V):m(0,V+1);case T:var be=this.$locale().weekStart||0,ne=(W<be?W+7:W)-be;return m(w?ae-ne:ae+(6-ne),V);case A:case I:return C(ue+"Hours",0);case x:return C(ue+"Minutes",1);case c:return C(ue+"Seconds",2);case v:return C(ue+"Milliseconds",3);default:return this.clone()}},E.endOf=function(O){return this.startOf(O,!1)},E.$set=function(O,d){var f,w=te.p(O),g="set"+(this.$u?"UTC":""),m=(f={},f[A]=g+"Date",f[I]=g+"Date",f[R]=g+"Month",f[M]=g+"FullYear",f[x]=g+"Hours",f[c]=g+"Minutes",f[v]=g+"Seconds",f[p]=g+"Milliseconds",f)[w],C=w===A?this.$D+(d-this.$W):d;if(w===R||w===M){var W=this.clone().set(I,1);W.$d[m](C),W.init(),this.$d=W.set(I,Math.min(this.$D,W.daysInMonth())).$d}else m&&this.$d[m](C);return this.init(),this},E.set=function(O,d){return this.clone().$set(O,d)},E.get=function(O){return this[te.p(O)]()},E.add=function(O,d){var f,w=this;O=Number(O);var g=te.p(d),m=function(V){var ae=he(w);return te.w(ae.date(ae.date()+Math.round(V*O)),w)};if(g===R)return this.set(R,this.$M+O);if(g===M)return this.set(M,this.$y+O);if(g===A)return m(1);if(g===T)return m(7);var C=(f={},f[c]=s,f[x]=l,f[v]=r,f)[g]||1,W=this.$d.getTime()+O*C;return te.w(W,this)},E.subtract=function(O,d){return this.add(-1*O,d)},E.format=function(O){var d=this,f=this.$locale();if(!this.isValid())return f.invalidDate||j;var w=O||"YYYY-MM-DDTHH:mm:ssZ",g=te.z(this),m=this.$H,C=this.$m,W=this.$M,V=f.weekdays,ae=f.months,ue=f.meridiem,be=function(Ce,_e,B,z){return Ce&&(Ce[_e]||Ce(d,w))||B[_e].slice(0,z)},ne=function(Ce){return te.s(m%12||12,Ce,"0")},de=ue||function(Ce,_e,B){var z=Ce<12?"AM":"PM";return B?z.toLowerCase():z};return w.replace(X,function(Ce,_e){return _e||function(B){switch(B){case"YY":return String(d.$y).slice(-2);case"YYYY":return te.s(d.$y,4,"0");case"M":return W+1;case"MM":return te.s(W+1,2,"0");case"MMM":return be(f.monthsShort,W,ae,3);case"MMMM":return be(ae,W);case"D":return d.$D;case"DD":return te.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return be(f.weekdaysMin,d.$W,V,2);case"ddd":return be(f.weekdaysShort,d.$W,V,3);case"dddd":return V[d.$W];case"H":return String(m);case"HH":return te.s(m,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return de(m,C,!0);case"A":return de(m,C,!1);case"m":return String(C);case"mm":return te.s(C,2,"0");case"s":return String(d.$s);case"ss":return te.s(d.$s,2,"0");case"SSS":return te.s(d.$ms,3,"0");case"Z":return g}return null}(Ce)||g.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(O,d,f){var w,g=this,m=te.p(d),C=he(O),W=(C.utcOffset()-this.utcOffset())*s,V=this-C,ae=function(){return te.m(g,C)};switch(m){case M:w=ae()/12;break;case R:w=ae();break;case P:w=ae()/3;break;case T:w=(V-W)/6048e5;break;case A:w=(V-W)/864e5;break;case x:w=V/l;break;case c:w=V/s;break;case v:w=V/r;break;default:w=V}return f?w:te.a(w)},E.daysInMonth=function(){return this.endOf(R).$D},E.$locale=function(){return fe[this.$L]},E.locale=function(O,d){if(!O)return this.$L;var f=this.clone(),w=ve(O,d,!0);return w&&(f.$L=w),f},E.clone=function(){return te.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},N}(),Te=Oe.prototype;return he.prototype=Te,[["$ms",p],["$s",v],["$m",c],["$H",x],["$W",A],["$M",R],["$y",M],["$D",I]].forEach(function(N){Te[N[1]]=function(E){return this.$g(E,N[0],N[1])}}),he.extend=function(N,E){return N.$i||(N(E,Oe,he),N.$i=!0),he},he.locale=ve,he.isDayjs=J,he.unix=function(N){return he(1e3*N)},he.en=fe[K],he.Ls=fe,he.p={},he})}(Po)),Po.exports}var Zg=Vg();const Ee=il(Zg);function Kg({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=l[n-1][l[n-1].length-1]-1?l[n-1].length-1:l[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===l[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===l[n].length-2&&s>=l[n][l[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:l[n-1].length-1,cellIndex:l[n-1][l[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:l[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===l[n].length-1&&s===l[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===l[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 bc({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:p}){var x,A,T;const v=Kg({direction:n,size:p,rowIndex:s,cellIndex:l,levelIndex:r});if(!v)return;const c=(T=(A=(x=i.current)==null?void 0:x[v.levelIndex])==null?void 0:A[v.rowIndex])==null?void 0:T[v.cellIndex];c&&(c.disabled||c.getAttribute("data-hidden")||c.getAttribute("data-outside")?bc({controlsRef:i,direction:n,levelIndex:v.levelIndex,cellIndex:v.cellIndex,rowIndex:v.rowIndex,size:p}):c.focus())}function Qg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function Jg(i){var n;return(n=i.current)==null?void 0:n.map(r=>r.map(s=>s.length))}function ba({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const p=Qg(l.key);if(p){l.preventDefault();const v=Jg(i);bc({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:v})}}function an(i){return i==null||i===""?i:Ee(i).format("YYYY-MM-DD")}function xc(i){return i==null||i===""?i:Ee(i).format("YYYY-MM-DD HH:mm:ss")}const Xg={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},e1=me.createContext(Xg);function ir(){const i=me.useContext(e1),n=me.useCallback(p=>p||i.locale,[i.locale]),r=me.useCallback(p=>typeof p=="number"?p:i.firstDayOfWeek,[i.firstDayOfWeek]),s=me.useCallback(p=>Array.isArray(p)?p:i.weekendDays,[i.weekendDays]),l=me.useCallback(p=>typeof p=="string"?p:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:l}}function t1({value:i,type:n,withTime:r}){const s=r?xc:an;if(n==="range"&&Array.isArray(i)){const l=s(i[0]),p=s(i[1]);return l?p?`${l} – ${p}`:`${l} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function Sc({value:i,type:n,name:r,form:s,withTime:l=!1}){return D.jsx("input",{type:"hidden",value:t1({value:i,type:n,withTime:l}),name:r,form:s})}Sc.displayName="@mantine/dates/HiddenDatesInput";function Cc(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var l=i.length;for(n=0;n<l;n++)i[n]&&(r=Cc(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function vt(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=Cc(i))&&(s&&(s+=" "),s+=n);return s}var Ac={day:"m_396ce5cb"};const n1={},r1=$.createVarsResolver((i,{size:n})=>({day:{"--day-size":$.getSize(n,"day-size")}})),xa=$.factory((i,n)=>{const r=$.useProps("Day",n1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,date:A,disabled:T,__staticSelector:R,weekend:P,outside:M,selected:I,renderDay:j,inRange:F,firstInRange:X,lastInRange:ie,hidden:oe,static:ce,highlightToday:K,...fe}=r,ee=$.useStyles({name:R||"Day",classes:Ac,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:r1,rootSelector:"day"});return D.jsx($.UnstyledButton,{...ee("day",{style:oe?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:T,"data-today":Ee(A).isSame(new Date,"day")||void 0,"data-hidden":oe||void 0,"data-highlight-today":K||void 0,"data-disabled":T||void 0,"data-weekend":!T&&!M&&P||void 0,"data-outside":!T&&M||void 0,"data-selected":!T&&I||void 0,"data-in-range":F&&!T||void 0,"data-first-in-range":X&&!T||void 0,"data-last-in-range":ie&&!T||void 0,"data-static":ce||void 0,unstyled:c,...fe,children:(j==null?void 0:j(A))||Ee(A).date()})});xa.classes=Ac,xa.displayName="@mantine/dates/Day";function i1({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Ee().day(r),l=[];for(let p=0;p<7;p+=1)typeof n=="string"?l.push(Ee(s).add(p,"days").locale(i).format(n)):l.push(n(Ee(s).add(p,"days").format("YYYY-MM-DD")));return l}var Dc={weekday:"m_18a3eca"};const o1={},s1=$.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":$.getFontSize(n),"--wr-spacing":$.getSpacing(n)}})),Sa=$.factory((i,n)=>{const r=$.useProps("WeekdaysRow",o1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,locale:A,firstDayOfWeek:T,weekdayFormat:R,cellComponent:P="th",__staticSelector:M,withWeekNumbers:I,...j}=r,F=$.useStyles({name:M||"WeekdaysRow",classes:Dc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:s1,rootSelector:"weekdaysRow"}),X=ir(),ie=i1({locale:X.getLocale(A),format:R,firstDayOfWeek:X.getFirstDayOfWeek(T)}).map((oe,ce)=>D.jsx(P,{...F("weekday"),children:oe},ce));return D.jsxs($.Box,{component:"tr",ref:n,...F("weekdaysRow"),...j,children:[I&&D.jsx(P,{...F("weekday"),children:"#"}),ie]})});Sa.classes=Dc,Sa.displayName="@mantine/dates/WeekdaysRow";function a1(i,n=1){let r=Ee(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function u1(i,n=1){let r=Ee(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function l1({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Ee(i).subtract(Ee(i).date()-1,"day"),l=Ee(s.format("YYYY-M-D")),p=l.format("YYYY-MM-DD"),v=l.add(+l.daysInMonth()-1,"day").format("YYYY-MM-DD"),c=a1(v,n),x=[];let A=Ee(u1(p,n));for(;Ee(A).isBefore(c,"day");){const T=[];for(let R=0;R<7;R+=1)T.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");x.push(T)}if(r&&x.length<6){const T=x[x.length-1],R=T[T.length-1];let P=Ee(R).add(1,"day");for(;x.length<6;){const M=[];for(let I=0;I<7;I+=1)M.push(P.format("YYYY-MM-DD")),P=P.add(1,"day");x.push(M)}}return x}function Ca(i,n){return Ee(i).format("YYYY-MM")===Ee(n).format("YYYY-MM")}function Oc(i,n){return n?Ee(i).isAfter(Ee(n).subtract(1,"day"),"day"):!0}function Tc(i,n){return n?Ee(i).isBefore(Ee(n).add(1,"day"),"day"):!0}function c1({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:l,hideOutsideDates:p,month:v}){const c=i.flat().filter(T=>{var R;return Tc(T,r)&&Oc(T,n)&&!(l!=null&&l(T))&&!((R=s==null?void 0:s(T))!=null&&R.disabled)&&(!p||Ca(T,v))}),x=c.find(T=>{var R;return(R=s==null?void 0:s(T))==null?void 0:R.selected});if(x)return x;const A=c.find(T=>Ee().isSame(T,"date"));return A||c[0]}var No={exports:{}},f1=No.exports,Mc;function h1(){return Mc||(Mc=1,function(i,n){(function(r,s){i.exports=s()})(f1,function(){var r="day";return function(s,l,p){var v=function(A){return A.add(4-A.isoWeekday(),r)},c=l.prototype;c.isoWeekYear=function(){return v(this).year()},c.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var T,R,P,M,I=v(this),j=(T=this.isoWeekYear(),R=this.$u,P=(R?p.utc:p)().year(T).startOf("year"),M=4-P.isoWeekday(),P.isoWeekday()>4&&(M+=7),P.add(M,r));return I.diff(j,"week")+1},c.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var x=c.startOf;c.startOf=function(A,T){var R=this.$utils(),P=!!R.u(T)||T;return R.p(A)==="isoweek"?P?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):x.bind(this)(A,T)}}})}(No)),No.exports}var d1=h1();const p1=il(d1);Ee.extend(p1);function g1(i){const n=i.find(r=>Ee(r).day()===1);return Ee(n).isoWeek()}var Ec={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const m1={withCellSpacing:!0},v1=$.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":$.getFontSize(n),"--wn-size":$.getSize(n,"wn-size")}})),$o=$.factory((i,n)=>{const r=$.useProps("Month",m1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:A,locale:T,firstDayOfWeek:R,weekdayFormat:P,month:M,weekendDays:I,getDayProps:j,excludeDate:F,minDate:X,maxDate:ie,renderDay:oe,hideOutsideDates:ce,hideWeekdays:K,getDayAriaLabel:fe,static:ee,__getDayRef:J,__onDayKeyDown:ve,__onDayClick:he,__onDayMouseEnter:te,__preventFocus:Oe,__stopPropagation:Te,withCellSpacing:N,size:E,highlightToday:O,withWeekNumbers:d,...f}=r,w=$.useStyles({name:A||"Month",classes:Ec,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:v1,rootSelector:"month"}),g=ir(),m=l1({month:M,firstDayOfWeek:g.getFirstDayOfWeek(R),consistentWeeks:g.consistentWeeks}),C=c1({dates:m,minDate:an(X),maxDate:an(ie),getDayProps:j,excludeDate:F,hideOutsideDates:ce,month:M}),{resolvedClassNames:W,resolvedStyles:V}=$.useResolvedStylesApi({classNames:s,styles:v,props:r}),ae=m.map((ue,be)=>{const ne=ue.map((de,Ce)=>{const _e=!Ca(de,M),B=(fe==null?void 0:fe(de))||Ee(de).locale(T||g.locale).format("D MMMM YYYY"),z=j==null?void 0:j(de),Y=Ee(de).isSame(C,"date");return D.jsx("td",{...w("monthCell"),"data-with-spacing":N||void 0,children:D.jsx(xa,{__staticSelector:A||"Month",classNames:W,styles:V,unstyled:c,"data-mantine-stop-propagation":Te||void 0,highlightToday:O,renderDay:oe,date:de,size:E,weekend:g.getWeekendDays(I).includes(Ee(de).get("day")),outside:_e,hidden:ce?_e:!1,"aria-label":B,static:ee,disabled:(F==null?void 0:F(de))||!Tc(de,an(ie))||!Oc(de,an(X)),ref:Z=>J==null?void 0:J(be,Ce,Z),...z,onKeyDown:Z=>{var se;(se=z==null?void 0:z.onKeyDown)==null||se.call(z,Z),ve==null||ve(Z,{rowIndex:be,cellIndex:Ce,date:de})},onMouseEnter:Z=>{var se;(se=z==null?void 0:z.onMouseEnter)==null||se.call(z,Z),te==null||te(Z,de)},onClick:Z=>{var se;(se=z==null?void 0:z.onClick)==null||se.call(z,Z),he==null||he(Z,de)},onMouseDown:Z=>{var se;(se=z==null?void 0:z.onMouseDown)==null||se.call(z,Z),Oe&&Z.preventDefault()},tabIndex:Oe||!Y?-1:0})},de.toString())});return D.jsxs("tr",{...w("monthRow"),children:[d&&D.jsx("td",{...w("weekNumber"),children:g1(ue)}),ne]},be)});return D.jsxs($.Box,{component:"table",...w("month"),size:E,ref:n,...f,children:[!K&&D.jsx("thead",{...w("monthThead"),children:D.jsx(Sa,{__staticSelector:A||"Month",locale:T,firstDayOfWeek:R,weekdayFormat:P,size:E,classNames:W,styles:V,unstyled:c,withWeekNumbers:d})}),D.jsx("tbody",{...w("monthTbody"),children:ae})]})});$o.classes=Ec,$o.displayName="@mantine/dates/Month";var Rc={pickerControl:"m_dc6a3c71"};const y1={},_1=$.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":$.getFontSize(n),"--dpc-size":$.getSize(n,"dpc-size")}})),Bo=$.factory((i,n)=>{const r=$.useProps("PickerControl",y1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,firstInRange:A,lastInRange:T,inRange:R,__staticSelector:P,selected:M,disabled:I,...j}=r,F=$.useStyles({name:P||"PickerControl",classes:Rc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:_1,rootSelector:"pickerControl"});return D.jsx($.UnstyledButton,{...F("pickerControl"),ref:n,unstyled:c,"data-picker-control":!0,"data-selected":M&&!I||void 0,"data-disabled":I||void 0,"data-in-range":R&&!I&&!M||void 0,"data-first-in-range":A&&!I||void 0,"data-last-in-range":T&&!I||void 0,disabled:I,...j})});Bo.classes=Rc,Bo.displayName="@mantine/dates/PickerControl";function Lc({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Ee(i).isBefore(n,"year")||r&&Ee(i).isAfter(r,"year"))}function w1({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const l=i.flat().filter(c=>{var x;return!Lc({year:c,minDate:n,maxDate:r})&&!((x=s==null?void 0:s(c))!=null&&x.disabled)}),p=l.find(c=>{var x;return(x=s==null?void 0:s(c))==null?void 0:x.selected});if(p)return p;const v=l.find(c=>Ee().isSame(c,"year"));return v||l[0]}function kc(i){const n=Ee(i).year(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let p=0;p<4;p+=1){const v=p===3?1:3;for(let c=0;c<v;c+=1)l[p].push(Ee(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return l}var Ic={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const b1={yearsListFormat:"YYYY",withCellSpacing:!0},jo=$.factory((i,n)=>{const r=$.useProps("YearsList",b1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,decade:A,yearsListFormat:T,locale:R,minDate:P,maxDate:M,getYearControlProps:I,__staticSelector:j,__getControlRef:F,__onControlKeyDown:X,__onControlClick:ie,__onControlMouseEnter:oe,__preventFocus:ce,__stopPropagation:K,withCellSpacing:fe,size:ee,...J}=r,ve=$.useStyles({name:j||"YearsList",classes:Ic,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"yearsList"}),he=ir(),te=kc(A),Oe=w1({years:te,minDate:P,maxDate:M,getYearControlProps:I}),Te=te.map((N,E)=>{const O=N.map((d,f)=>{const w=I==null?void 0:I(d),g=Ee(d).isSame(Oe,"year");return D.jsx("td",{...ve("yearsListCell"),"data-with-spacing":fe||void 0,children:D.jsx(Bo,{...ve("yearsListControl"),size:ee,unstyled:c,"data-mantine-stop-propagation":K||void 0,disabled:Lc({year:d,minDate:P,maxDate:M}),ref:m=>F==null?void 0:F(E,f,m),...w,onKeyDown:m=>{var C;(C=w==null?void 0:w.onKeyDown)==null||C.call(w,m),X==null||X(m,{rowIndex:E,cellIndex:f,date:d})},onClick:m=>{var C;(C=w==null?void 0:w.onClick)==null||C.call(w,m),ie==null||ie(m,d)},onMouseEnter:m=>{var C;(C=w==null?void 0:w.onMouseEnter)==null||C.call(w,m),oe==null||oe(m,d)},onMouseDown:m=>{var C;(C=w==null?void 0:w.onMouseDown)==null||C.call(w,m),ce&&m.preventDefault()},tabIndex:ce||!g?-1:0,children:Ee(d).locale(he.getLocale(R)).format(T)})},f)});return D.jsx("tr",{...ve("yearsListRow"),children:O},E)});return D.jsx($.Box,{component:"table",ref:n,size:ee,...ve("yearsList"),...J,children:D.jsx("tbody",{children:Te})})});jo.classes=Ic,jo.displayName="@mantine/dates/YearsList";function Pc({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Ee(i).isBefore(n,"month")||r&&Ee(i).isAfter(r,"month"))}function x1({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const l=i.flat().filter(c=>{var x;return!Pc({month:c,minDate:n,maxDate:r})&&!((x=s==null?void 0:s(c))!=null&&x.disabled)}),p=l.find(c=>{var x;return(x=s==null?void 0:s(c))==null?void 0:x.selected});if(p)return p;const v=l.find(c=>Ee().isSame(c,"month"));return v||l[0]}function S1(i){const n=Ee(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let p=0;p<3;p+=1)r[l].push(Ee(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Nc={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const C1={monthsListFormat:"MMM",withCellSpacing:!0},Yo=$.factory((i,n)=>{const r=$.useProps("MonthsList",C1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:A,year:T,monthsListFormat:R,locale:P,minDate:M,maxDate:I,getMonthControlProps:j,__getControlRef:F,__onControlKeyDown:X,__onControlClick:ie,__onControlMouseEnter:oe,__preventFocus:ce,__stopPropagation:K,withCellSpacing:fe,size:ee,...J}=r,ve=$.useStyles({name:A||"MonthsList",classes:Nc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"monthsList"}),he=ir(),te=S1(T),Oe=x1({months:te,minDate:an(M),maxDate:an(I),getMonthControlProps:j}),Te=te.map((N,E)=>{const O=N.map((d,f)=>{const w=j==null?void 0:j(d),g=Ee(d).isSame(Oe,"month");return D.jsx("td",{...ve("monthsListCell"),"data-with-spacing":fe||void 0,children:D.jsx(Bo,{...ve("monthsListControl"),size:ee,unstyled:c,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":K||void 0,disabled:Pc({month:d,minDate:an(M),maxDate:an(I)}),ref:m=>F==null?void 0:F(E,f,m),...w,onKeyDown:m=>{var C;(C=w==null?void 0:w.onKeyDown)==null||C.call(w,m),X==null||X(m,{rowIndex:E,cellIndex:f,date:d})},onClick:m=>{var C;(C=w==null?void 0:w.onClick)==null||C.call(w,m),ie==null||ie(m,d)},onMouseEnter:m=>{var C;(C=w==null?void 0:w.onMouseEnter)==null||C.call(w,m),oe==null||oe(m,d)},onMouseDown:m=>{var C;(C=w==null?void 0:w.onMouseDown)==null||C.call(w,m),ce&&m.preventDefault()},tabIndex:ce||!g?-1:0,children:Ee(d).locale(he.getLocale(P)).format(R)})},f)});return D.jsx("tr",{...ve("monthsListRow"),children:O},E)});return D.jsx($.Box,{component:"table",ref:n,size:ee,...ve("monthsList"),...J,children:D.jsx("tbody",{children:Te})})});Yo.classes=Nc,Yo.displayName="@mantine/dates/MonthsList";var $c={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const A1={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},D1=$.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":$.getSize(n,"dch-control-size"),"--dch-fz":$.getFontSize(n)}})),or=$.factory((i,n)=>{const r=$.useProps("CalendarHeader",A1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,nextIcon:A,previousIcon:T,nextLabel:R,previousLabel:P,onNext:M,onPrevious:I,onLevelClick:j,label:F,nextDisabled:X,previousDisabled:ie,hasNextLevel:oe,levelControlAriaLabel:ce,withNext:K,withPrevious:fe,__staticSelector:ee,__preventFocus:J,__stopPropagation:ve,...he}=r,te=$.useStyles({name:ee||"CalendarHeader",classes:$c,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:D1,rootSelector:"calendarHeader"}),Oe=J?Te=>Te.preventDefault():void 0;return D.jsxs($.Box,{...te("calendarHeader"),ref:n,...he,children:[fe&&D.jsx($.UnstyledButton,{...te("calendarHeaderControl"),"data-direction":"previous","aria-label":P,onClick:I,unstyled:c,onMouseDown:Oe,disabled:ie,"data-disabled":ie||void 0,tabIndex:J||ie?-1:0,"data-mantine-stop-propagation":ve||void 0,children:T||D.jsx($.AccordionChevron,{...te("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),D.jsx($.UnstyledButton,{component:oe?"button":"div",...te("calendarHeaderLevel"),onClick:oe?j:void 0,unstyled:c,onMouseDown:oe?Oe:void 0,disabled:!oe,"data-static":!oe||void 0,"aria-label":ce,tabIndex:J||!oe?-1:0,"data-mantine-stop-propagation":ve||void 0,children:F}),K&&D.jsx($.UnstyledButton,{...te("calendarHeaderControl"),"data-direction":"next","aria-label":R,onClick:M,unstyled:c,onMouseDown:Oe,disabled:X,"data-disabled":X||void 0,tabIndex:J||X?-1:0,"data-mantine-stop-propagation":ve||void 0,children:A||D.jsx($.AccordionChevron,{...te("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});or.classes=$c,or.displayName="@mantine/dates/CalendarHeader";function O1(i){const n=kc(i);return[n[0][0],n[3][0]]}const T1={decadeLabelFormat:"YYYY"},Uo=$.factory((i,n)=>{const r=$.useProps("DecadeLevel",T1,i),{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,withCellSpacing:M,__preventFocus:I,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,nextDisabled:K,previousDisabled:fe,levelControlAriaLabel:ee,withNext:J,withPrevious:ve,decadeLabelFormat:he,classNames:te,styles:Oe,unstyled:Te,__staticSelector:N,__stopPropagation:E,size:O,...d}=r,f=ir(),[w,g]=O1(s),m={__staticSelector:N||"DecadeLevel",classNames:te,styles:Oe,unstyled:Te,size:O},C=typeof K=="boolean"?K:v?!Ee(g).endOf("year").isBefore(v):!1,W=typeof fe=="boolean"?fe:p?!Ee(w).startOf("year").isAfter(p):!1,V=(ae,ue)=>Ee(ae).locale(l||f.locale).format(ue);return D.jsxs($.Box,{"data-decade-level":!0,size:O,ref:n,...d,children:[D.jsx(or,{label:typeof he=="function"?he(w,g):`${V(w,he)} – ${V(g,he)}`,__preventFocus:I,__stopPropagation:E,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,nextDisabled:C,previousDisabled:W,hasNextLevel:!1,levelControlAriaLabel:ee,withNext:J,withPrevious:ve,...m}),D.jsx(jo,{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,__preventFocus:I,__stopPropagation:E,withCellSpacing:M,...m})]})});Uo.classes={...jo.classes,...or.classes},Uo.displayName="@mantine/dates/DecadeLevel";const M1={yearLabelFormat:"YYYY"},Fo=$.factory((i,n)=>{const r=$.useProps("YearLevel",M1,i),{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,withCellSpacing:M,__preventFocus:I,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,onLevelClick:K,nextDisabled:fe,previousDisabled:ee,hasNextLevel:J,levelControlAriaLabel:ve,withNext:he,withPrevious:te,yearLabelFormat:Oe,__staticSelector:Te,__stopPropagation:N,size:E,classNames:O,styles:d,unstyled:f,...w}=r,g=ir(),m={__staticSelector:Te||"YearLevel",classNames:O,styles:d,unstyled:f,size:E},C=typeof fe=="boolean"?fe:v?!Ee(s).endOf("year").isBefore(v):!1,W=typeof ee=="boolean"?ee:p?!Ee(s).startOf("year").isAfter(p):!1;return D.jsxs($.Box,{"data-year-level":!0,size:E,ref:n,...w,children:[D.jsx(or,{label:typeof Oe=="function"?Oe(s):Ee(s).locale(l||g.locale).format(Oe),__preventFocus:I,__stopPropagation:N,nextIcon:j,previousIcon:F,nextLabel:X,previousLabel:ie,onNext:oe,onPrevious:ce,onLevelClick:K,nextDisabled:C,previousDisabled:W,hasNextLevel:J,levelControlAriaLabel:ve,withNext:he,withPrevious:te,...m}),D.jsx(Yo,{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:A,__onControlKeyDown:T,__onControlClick:R,__onControlMouseEnter:P,__preventFocus:I,__stopPropagation:N,withCellSpacing:M,...m})]})});Fo.classes={...or.classes,...Yo.classes},Fo.displayName="@mantine/dates/YearLevel";const E1={monthLabelFormat:"MMMM YYYY"},Wo=$.factory((i,n)=>{const r=$.useProps("MonthLevel",E1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__getDayRef:F,__onDayKeyDown:X,__onDayClick:ie,__onDayMouseEnter:oe,withCellSpacing:ce,highlightToday:K,withWeekNumbers:fe,__preventFocus:ee,__stopPropagation:J,nextIcon:ve,previousIcon:he,nextLabel:te,previousLabel:Oe,onNext:Te,onPrevious:N,onLevelClick:E,nextDisabled:O,previousDisabled:d,hasNextLevel:f,levelControlAriaLabel:w,withNext:g,withPrevious:m,monthLabelFormat:C,classNames:W,styles:V,unstyled:ae,__staticSelector:ue,size:be,static:ne,...de}=r,Ce=ir(),_e={__staticSelector:ue||"MonthLevel",classNames:W,styles:V,unstyled:ae,size:be},B=typeof O=="boolean"?O:R?!Ee(s).endOf("month").isBefore(R):!1,z=typeof d=="boolean"?d:T?!Ee(s).startOf("month").isAfter(T):!1;return D.jsxs($.Box,{"data-month-level":!0,size:be,ref:n,...de,children:[D.jsx(or,{label:typeof C=="function"?C(s):Ee(s).locale(l||Ce.locale).format(C),__preventFocus:ee,__stopPropagation:J,nextIcon:ve,previousIcon:he,nextLabel:te,previousLabel:Oe,onNext:Te,onPrevious:N,onLevelClick:E,nextDisabled:B,previousDisabled:z,hasNextLevel:f,levelControlAriaLabel:w,withNext:g,withPrevious:m,..._e}),D.jsx($o,{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__getDayRef:F,__onDayKeyDown:X,__onDayClick:ie,__onDayMouseEnter:oe,__preventFocus:ee,__stopPropagation:J,static:ne,withCellSpacing:ce,highlightToday:K,withWeekNumbers:fe,..._e})]})});Wo.classes={...$o.classes,...or.classes},Wo.displayName="@mantine/dates/MonthLevel";var Bc={levelsGroup:"m_30b26e33"};const R1={},sr=$.factory((i,n)=>{const r=$.useProps("LevelsGroup",R1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:A,...T}=r,R=$.useStyles({name:A||"LevelsGroup",classes:Bc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"levelsGroup"});return D.jsx($.Box,{ref:n,...R("levelsGroup"),...T})});sr.classes=Bc,sr.displayName="@mantine/dates/LevelsGroup";const L1={numberOfColumns:1},zo=$.factory((i,n)=>{const r=$.useProps("DecadeLevelGroup",L1,i),{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__onControlClick:A,__onControlMouseEnter:T,withCellSpacing:R,__preventFocus:P,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,nextDisabled:oe,previousDisabled:ce,classNames:K,styles:fe,unstyled:ee,__staticSelector:J,__stopPropagation:ve,numberOfColumns:he,levelControlAriaLabel:te,decadeLabelFormat:Oe,size:Te,vars:N,...E}=r,O=me.useRef([]),d=Array(he).fill(0).map((f,w)=>{const g=Ee(s).add(w*10,"years").format("YYYY-MM-DD");return D.jsx(Uo,{size:Te,yearsListFormat:c,decade:g,withNext:w===he-1,withPrevious:w===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:T,__onControlKeyDown:(m,C)=>ba({levelIndex:w,rowIndex:C.rowIndex,cellIndex:C.cellIndex,event:m,controlsRef:O}),__getControlRef:(m,C,W)=>{Array.isArray(O.current[w])||(O.current[w]=[]),Array.isArray(O.current[w][m])||(O.current[w][m]=[]),O.current[w][m][C]=W},levelControlAriaLabel:typeof te=="function"?te(g):te,locale:l,minDate:p,maxDate:v,__preventFocus:P,__stopPropagation:ve,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,nextDisabled:oe,previousDisabled:ce,getYearControlProps:x,__staticSelector:J||"DecadeLevelGroup",classNames:K,styles:fe,unstyled:ee,withCellSpacing:R},w)});return D.jsx(sr,{classNames:K,styles:fe,__staticSelector:J||"DecadeLevelGroup",ref:n,size:Te,unstyled:ee,...E,children:d})});zo.classes={...sr.classes,...Uo.classes},zo.displayName="@mantine/dates/DecadeLevelGroup";const k1={numberOfColumns:1},qo=$.factory((i,n)=>{const r=$.useProps("YearLevelGroup",k1,i),{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__onControlClick:A,__onControlMouseEnter:T,withCellSpacing:R,__preventFocus:P,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,onLevelClick:oe,nextDisabled:ce,previousDisabled:K,hasNextLevel:fe,classNames:ee,styles:J,unstyled:ve,__staticSelector:he,__stopPropagation:te,numberOfColumns:Oe,levelControlAriaLabel:Te,yearLabelFormat:N,size:E,vars:O,...d}=r,f=me.useRef([]),w=Array(Oe).fill(0).map((g,m)=>{const C=Ee(s).add(m,"years").format("YYYY-MM-DD");return D.jsx(Fo,{size:E,monthsListFormat:c,year:C,withNext:m===Oe-1,withPrevious:m===0,yearLabelFormat:N,__stopPropagation:te,__onControlClick:A,__onControlMouseEnter:T,__onControlKeyDown:(W,V)=>ba({levelIndex:m,rowIndex:V.rowIndex,cellIndex:V.cellIndex,event:W,controlsRef:f}),__getControlRef:(W,V,ae)=>{Array.isArray(f.current[m])||(f.current[m]=[]),Array.isArray(f.current[m][W])||(f.current[m][W]=[]),f.current[m][W][V]=ae},levelControlAriaLabel:typeof Te=="function"?Te(C):Te,locale:l,minDate:p,maxDate:v,__preventFocus:P,nextIcon:M,previousIcon:I,nextLabel:j,previousLabel:F,onNext:X,onPrevious:ie,onLevelClick:oe,nextDisabled:ce,previousDisabled:K,hasNextLevel:fe,getMonthControlProps:x,classNames:ee,styles:J,unstyled:ve,__staticSelector:he||"YearLevelGroup",withCellSpacing:R},m)});return D.jsx(sr,{classNames:ee,styles:J,__staticSelector:he||"YearLevelGroup",ref:n,size:E,unstyled:ve,...d,children:w})});qo.classes={...Fo.classes,...sr.classes},qo.displayName="@mantine/dates/YearLevelGroup";const I1={numberOfColumns:1},Ho=$.factory((i,n)=>{const r=$.useProps("MonthLevelGroup",I1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__onDayClick:F,__onDayMouseEnter:X,withCellSpacing:ie,highlightToday:oe,withWeekNumbers:ce,__preventFocus:K,nextIcon:fe,previousIcon:ee,nextLabel:J,previousLabel:ve,onNext:he,onPrevious:te,onLevelClick:Oe,nextDisabled:Te,previousDisabled:N,hasNextLevel:E,classNames:O,styles:d,unstyled:f,numberOfColumns:w,levelControlAriaLabel:g,monthLabelFormat:m,__staticSelector:C,__stopPropagation:W,size:V,static:ae,vars:ue,...be}=r,ne=me.useRef([]),de=Array(w).fill(0).map((Ce,_e)=>{const B=Ee(s).add(_e,"months").format("YYYY-MM-DD");return D.jsx(Wo,{month:B,withNext:_e===w-1,withPrevious:_e===0,monthLabelFormat:m,__stopPropagation:W,__onDayClick:F,__onDayMouseEnter:X,__onDayKeyDown:(z,Y)=>ba({levelIndex:_e,rowIndex:Y.rowIndex,cellIndex:Y.cellIndex,event:z,controlsRef:ne}),__getDayRef:(z,Y,Z)=>{Array.isArray(ne.current[_e])||(ne.current[_e]=[]),Array.isArray(ne.current[_e][z])||(ne.current[_e][z]=[]),ne.current[_e][z][Y]=Z},levelControlAriaLabel:typeof g=="function"?g(B):g,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:A,minDate:T,maxDate:R,renderDay:P,hideOutsideDates:M,hideWeekdays:I,getDayAriaLabel:j,__preventFocus:K,nextIcon:fe,previousIcon:ee,nextLabel:J,previousLabel:ve,onNext:he,onPrevious:te,onLevelClick:Oe,nextDisabled:Te,previousDisabled:N,hasNextLevel:E,classNames:O,styles:d,unstyled:f,__staticSelector:C||"MonthLevelGroup",size:V,static:ae,withCellSpacing:ie,highlightToday:oe,withWeekNumbers:ce},_e)});return D.jsx(sr,{classNames:O,styles:d,__staticSelector:C||"MonthLevelGroup",ref:n,size:V,...be,children:de})});Ho.classes={...sr.classes,...Wo.classes},Ho.displayName="@mantine/dates/MonthLevelGroup";const jc=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Yc=(i,n)=>{const r=n?xc:an;return Array.isArray(i)?i.map(r):r(i)};function Aa({type:i,value:n,defaultValue:r,onChange:s,withTime:l=!1}){const p=me.useRef(i),[v,c,x]=Dt.useUncontrolled({value:Yc(n,l),defaultValue:Yc(r,l),finalValue:jc(i),onChange:s});let A=v;return p.current!==i&&(p.current=i,n===void 0&&(A=r!==void 0?r:jc(i),c(A))),[A,c,x]}function Da(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function P1(i){return i===0?"month":i===1?"year":"decade"}function Wi(i,n,r){return P1(Dt.clamp(Da(i,0),Da(n,0),Da(r,2)))}const N1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Go=$.factory((i,n)=>{const r=$.useProps("Calendar",N1,i),{vars:s,maxLevel:l,minLevel:p,defaultLevel:v,level:c,onLevelChange:x,date:A,defaultDate:T,onDateChange:R,numberOfColumns:P,columnsToScroll:M,ariaLabels:I,nextLabel:j,previousLabel:F,onYearSelect:X,onMonthSelect:ie,onYearMouseEnter:oe,onMonthMouseEnter:ce,__updateDateOnYearSelect:K,__updateDateOnMonthSelect:fe,firstDayOfWeek:ee,weekdayFormat:J,weekendDays:ve,getDayProps:he,excludeDate:te,renderDay:Oe,hideOutsideDates:Te,hideWeekdays:N,getDayAriaLabel:E,monthLabelFormat:O,nextIcon:d,previousIcon:f,__onDayClick:w,__onDayMouseEnter:g,withCellSpacing:m,highlightToday:C,withWeekNumbers:W,monthsListFormat:V,getMonthControlProps:ae,yearLabelFormat:ue,yearsListFormat:be,getYearControlProps:ne,decadeLabelFormat:de,classNames:Ce,styles:_e,unstyled:B,minDate:z,maxDate:Y,locale:Z,__staticSelector:se,size:De,__preventFocus:u,__stopPropagation:h,onNextDecade:_,onPreviousDecade:k,onNextYear:q,onPreviousYear:Q,onNextMonth:Ae,onPreviousMonth:we,static:Re,...Se}=r,{resolvedClassNames:Le,resolvedStyles:Ne}=$.useResolvedStylesApi({classNames:Ce,styles:_e,props:r}),[ke,Ge]=Dt.useUncontrolled({value:c?Wi(c,p,l):void 0,defaultValue:v?Wi(v,p,l):void 0,finalValue:Wi(void 0,p,l),onChange:x}),[Je,Ve]=Aa({type:"default",value:an(A),defaultValue:an(T),onChange:R}),_t={__staticSelector:se||"Calendar",styles:Ne,classNames:Le,unstyled:B,size:De},ct=M||P||1,ft=new Date,xn=z&&Ee(ft).isAfter(z)?z:Ee(ft).format("YYYY-MM-DD"),St=Je||xn,un=()=>{const it=Ee(St).add(ct,"month").format("YYYY-MM-DD");Ae==null||Ae(it),Ve(it)},ln=()=>{const it=Ee(St).subtract(ct,"month").format("YYYY-MM-DD");we==null||we(it),Ve(it)},Sn=()=>{const it=Ee(St).add(ct,"year").format("YYYY-MM-DD");q==null||q(it),Ve(it)},Rn=()=>{const it=Ee(St).subtract(ct,"year").format("YYYY-MM-DD");Q==null||Q(it),Ve(it)},Ln=()=>{const it=Ee(St).add(10*ct,"year").format("YYYY-MM-DD");_==null||_(it),Ve(it)},cn=()=>{const it=Ee(St).subtract(10*ct,"year").format("YYYY-MM-DD");k==null||k(it),Ve(it)};return D.jsxs($.Box,{ref:n,size:De,"data-calendar":!0,...Se,children:[ke==="month"&&D.jsx(Ho,{month:St,minDate:z,maxDate:Y,firstDayOfWeek:ee,weekdayFormat:J,weekendDays:ve,getDayProps:he,excludeDate:te,renderDay:Oe,hideOutsideDates:Te,hideWeekdays:N,getDayAriaLabel:E,onNext:un,onPrevious:ln,hasNextLevel:l!=="month",onLevelClick:()=>Ge("year"),numberOfColumns:P,locale:Z,levelControlAriaLabel:I==null?void 0:I.monthLevelControl,nextLabel:(I==null?void 0:I.nextMonth)??j,nextIcon:d,previousLabel:(I==null?void 0:I.previousMonth)??F,previousIcon:f,monthLabelFormat:O,__onDayClick:w,__onDayMouseEnter:g,__preventFocus:u,__stopPropagation:h,static:Re,withCellSpacing:m,highlightToday:C,withWeekNumbers:W,..._t}),ke==="year"&&D.jsx(qo,{year:St,numberOfColumns:P,minDate:z,maxDate:Y,monthsListFormat:V,getMonthControlProps:ae,locale:Z,onNext:Sn,onPrevious:Rn,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>Ge("decade"),levelControlAriaLabel:I==null?void 0:I.yearLevelControl,nextLabel:(I==null?void 0:I.nextYear)??j,nextIcon:d,previousLabel:(I==null?void 0:I.previousYear)??F,previousIcon:f,yearLabelFormat:ue,__onControlMouseEnter:ce,__onControlClick:(it,It)=>{fe&&Ve(It),Ge(Wi("month",p,l)),ie==null||ie(It)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,..._t}),ke==="decade"&&D.jsx(zo,{decade:St,minDate:z,maxDate:Y,yearsListFormat:be,getYearControlProps:ne,locale:Z,onNext:Ln,onPrevious:cn,numberOfColumns:P,nextLabel:(I==null?void 0:I.nextDecade)??j,nextIcon:d,previousLabel:(I==null?void 0:I.previousDecade)??F,previousIcon:f,decadeLabelFormat:de,__onControlMouseEnter:oe,__onControlClick:(it,It)=>{K&&Ve(It),Ge(Wi("year",p,l)),X==null||X(It)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,..._t})]})});Go.classes={...zo.classes,...qo.classes,...Ho.classes},Go.displayName="@mantine/dates/Calendar";function $1(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:v,previousIcon:c,date:x,defaultDate:A,onDateChange:T,numberOfColumns:R,columnsToScroll:P,ariaLabels:M,nextLabel:I,previousLabel:j,onYearSelect:F,onMonthSelect:X,onYearMouseEnter:ie,onMonthMouseEnter:oe,onNextMonth:ce,onPreviousMonth:K,onNextYear:fe,onPreviousYear:ee,onNextDecade:J,onPreviousDecade:ve,withCellSpacing:he,highlightToday:te,__updateDateOnYearSelect:Oe,__updateDateOnMonthSelect:Te,withWeekNumbers:N,firstDayOfWeek:E,weekdayFormat:O,weekendDays:d,getDayProps:f,excludeDate:w,renderDay:g,hideOutsideDates:m,hideWeekdays:C,getDayAriaLabel:W,monthLabelFormat:V,monthsListFormat:ae,getMonthControlProps:ue,yearLabelFormat:be,yearsListFormat:ne,getYearControlProps:de,decadeLabelFormat:Ce,allowSingleDateInRange:_e,allowDeselect:B,minDate:z,maxDate:Y,locale:Z,...se}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:v,previousIcon:c,date:x,defaultDate:A,onDateChange:T,numberOfColumns:R,columnsToScroll:P,ariaLabels:M,nextLabel:I,previousLabel:j,onYearSelect:F,onMonthSelect:X,onYearMouseEnter:ie,onMonthMouseEnter:oe,onNextMonth:ce,onPreviousMonth:K,onNextYear:fe,onPreviousYear:ee,onNextDecade:J,onPreviousDecade:ve,withCellSpacing:he,highlightToday:te,__updateDateOnYearSelect:Oe,__updateDateOnMonthSelect:Te,withWeekNumbers:N,firstDayOfWeek:E,weekdayFormat:O,weekendDays:d,getDayProps:f,excludeDate:w,renderDay:g,hideOutsideDates:m,hideWeekdays:C,getDayAriaLabel:W,monthLabelFormat:V,monthsListFormat:ae,getMonthControlProps:ue,yearLabelFormat:be,yearsListFormat:ne,getYearControlProps:de,decadeLabelFormat:Ce,allowSingleDateInRange:_e,allowDeselect:B,minDate:z,maxDate:Y,locale:Z},others:se}}function B1(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Ee(n).format("YYYY-MM-DD")}function j1({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Ee(i).isAfter(n,"date")||r&&Ee(i).isBefore(r,"date"))}const Y1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},Vo=$.factory((i,n)=>{const r=$.useInputProps("DateInput",Y1,i),{inputProps:s,wrapperProps:l,value:p,defaultValue:v,onChange:c,clearable:x,clearButtonProps:A,popoverProps:T,getDayProps:R,locale:P,valueFormat:M,dateParser:I,minDate:j,maxDate:F,fixOnBlur:X,onFocus:ie,onBlur:oe,onClick:ce,onKeyDown:K,readOnly:fe,name:ee,form:J,rightSection:ve,unstyled:he,classNames:te,styles:Oe,allowDeselect:Te,date:N,defaultDate:E,onDateChange:O,getMonthControlProps:d,getYearControlProps:f,...w}=r,g=me.useRef(null),m=me.useRef(null),[C,W]=me.useState(!1),{calendarProps:V,others:ae}=$1(w),ue=ir(),ne=I||(we=>{const Re=Ee(we,M,ue.getLocale(P)).toDate();return Number.isNaN(Re.getTime())?B1(we):Ee(Re).format("YYYY-MM-DD")}),de=Te!==void 0?Te:x,Ce=we=>we?Ee(we).locale(ue.getLocale(P)).format(M):"",[_e,B,z]=Aa({type:"default",value:p,defaultValue:v,onChange:c}),[Y,Z]=Aa({type:"default",value:N,defaultValue:v||E,onChange:O});me.useEffect(()=>{z&&p!==null&&Z(p)},[z,p]);const[se,De]=me.useState(Ce(_e));me.useEffect(()=>{De(Ce(_e))},[ue.getLocale(P)]);const u=we=>{const Re=we.currentTarget.value;if(De(Re),W(!0),Re.trim()===""&&x)B(null);else{const Se=ne(Re);j1({date:Se,minDate:j,maxDate:F})&&(B(Se),Z(Se))}},h=we=>{oe==null||oe(we),W(!1),X&&De(Ce(_e))},_=we=>{ie==null||ie(we),W(!0)},k=we=>{ce==null||ce(we),W(!0)},q=we=>{we.key==="Escape"&&W(!1),K==null||K(we)},Q=we=>({...R==null?void 0:R(we),selected:Ee(_e).isSame(we,"day"),onClick:Re=>{var Le,Ne;(Ne=R==null?void 0:(Le=R(we)).onClick)==null||Ne.call(Le,Re);const Se=x&&de&&Ee(_e).isSame(we,"day")?null:we;B(Se),!z&&De(Ce(Se)),W(!1)}}),Ae=ve||(x&&_e&&!fe?D.jsx($.CloseButton,{variant:"transparent",onMouseDown:we=>we.preventDefault(),tabIndex:-1,onClick:()=>{B(null),!z&&De(""),W(!1)},unstyled:he,size:s.size||"sm",...A}):null);return Dt.useDidUpdate(()=>{_e!==void 0&&!C&&De(Ce(_e))},[_e]),Dt.useClickOutside(()=>W(!1),void 0,[g.current,m.current]),D.jsxs(D.Fragment,{children:[D.jsx($.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:g,children:D.jsxs($.Popover,{opened:C,trapFocus:!1,position:"bottom-start",disabled:fe,withRoles:!1,unstyled:he,...T,children:[D.jsx($.Popover.Target,{children:D.jsx($.Input,{"data-dates-input":!0,"data-read-only":fe||void 0,autoComplete:"off",ref:n,value:se,onChange:u,onBlur:h,onFocus:_,onClick:k,onKeyDown:q,readOnly:fe,rightSection:Ae,...s,...ae,__staticSelector:"DateInput"})}),D.jsx($.Popover.Dropdown,{onMouseDown:we=>we.preventDefault(),"data-dates-dropdown":!0,ref:m,children:D.jsx(Go,{__staticSelector:"DateInput",...V,classNames:te,styles:Oe,unstyled:he,__preventFocus:!0,minDate:j,maxDate:F,locale:P,getDayProps:Q,size:s.size,date:Y,onDateChange:Z,getMonthControlProps:we=>({selected:typeof _e=="string"?Ca(we,_e):!1,...d==null?void 0:d(we)}),getYearControlProps:we=>({selected:typeof _e=="string"?Ee(we).isSame(_e,"year"):!1,...f==null?void 0:f(we)})})})]})}),D.jsx(Sc,{name:ee,form:J,value:_e,type:"default"})]})});Vo.classes={...$.Input.classes,...Go.classes},Vo.displayName="@mantine/dates/DateInput";function U1(i){const n=wn.c(47),{fields:r,onClose:s,queryKey:l,apiPath:p,steps:v,onCreated:c}=i,[x,A]=me.useState(0),[T,R]=me.useState(!1),[P,M]=me.useState(),{mutateAsync:I,isError:j,error:F,isPending:X}=yc(p,l),{mutateAsync:ie,isPending:oe}=wa(p,l),ce=X||oe;let K;n[0]!==r?(K=new Set(r.filter(G1).map(H1)),n[0]=r,n[1]=K):K=n[1];let fe;n[2]!==K?(fe=[...K],n[2]=K,n[3]=fe):fe=n[3];const ee=fe;let J;n[4]!==r?(J=r.reduce(q1,{}),n[4]=r,n[5]=J):J=n[5];let ve;n[6]!==r?(ve=r.filter(z1).reduce(F1,{}),n[6]=r,n[7]=ve):ve=n[7];let he;n[8]!==J||n[9]!==ve?(he={mode:"uncontrolled",initialValues:J,validate:ve},n[8]=J,n[9]=ve,n[10]=he):he=n[10];const te=Ti.useForm(he);let Oe;n[11]!==te||n[12]!==P?(Oe=function(m){return D.jsxs(me.Fragment,{children:[(m.type===void 0||m.type=="text")&&D.jsx($.TextInput,{label:m.column.title,placeholder:m.placeholder??"",...te.getInputProps(m.id),type:m.id.includes("email")?"email":void 0},te.key(m.id)),m.type==="number"&&D.jsx($.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...te.getInputProps(m.id)},te.key(m.id)),m.type==="date"&&D.jsx(Vo,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...te.getInputProps(m.id)},te.key(m.id)),m.type==="boolean"&&D.jsx($.Checkbox,{mt:"md",label:m.column.title,...te.getInputProps(m.id,{type:"checkbox"})},te.key(m.id)),m.type==="custom"&&m.render&&m.render({...te.getValues(),...P&&{id:P}},te.setValues,R)]},m.id)},n[11]=te,n[12]=P,n[13]=Oe):Oe=n[13];const Te=Oe;let N;n[14]!==(F==null?void 0:F.message)||n[15]!==(F==null?void 0:F.name)||n[16]!==j?(N=j&&D.jsx($.Alert,{variant:"outline",color:"red",title:(F==null?void 0:F.name)??"Fehler aufgetreten",mb:"lg",children:(F==null?void 0:F.message)??"Fehler aufgetreten"}),n[14]=F==null?void 0:F.message,n[15]=F==null?void 0:F.name,n[16]=j,n[17]=N):N=n[17];let E;n[18]!==x||n[19]!==I||n[20]!==te||n[21]!==j||n[22]!==s||n[23]!==c||n[24]!==P||n[25]!==ee.length||n[26]!==ie?(E=te.onSubmit(async g=>{if(P)await ie({...g,id:P});else{const m=await I(g);M(m.id),c==null||c(m.id)}ee.length&&x<ee.length-1?j||A(x+1):j||(te.setInitialValues(g),te.reset(),s())}),n[18]=x,n[19]=I,n[20]=te,n[21]=j,n[22]=s,n[23]=c,n[24]=P,n[25]=ee.length,n[26]=ie,n[27]=E):E=n[27];let O;n[28]!==x||n[29]!==r||n[30]!==Te||n[31]!==v||n[32]!==ee?(O=ee.length?D.jsx($.Stepper,{active:x,size:"sm",children:ee.map(g=>D.jsx($.Stepper.Step,{...v&&v[g-1]?{label:v[g-1].label}:{},children:r.filter(m=>m.step===g).map(m=>Te(m))},g))}):r.map(g=>Te(g)),n[28]=x,n[29]=r,n[30]=Te,n[31]=v,n[32]=ee,n[33]=O):O=n[33];let d;n[34]!==x||n[35]!==T||n[36]!==ce||n[37]!==s||n[38]!==ee.length?(d=!T&&D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Button,{onClick:()=>ee.length?x===0?s():A(x-1):s(),variant:"outline",children:ee.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx($.Button,{type:"submit",loading:ce,children:ee.length?x===ee.length-1?"Speichern":"Weiter":"Speichern"})]}),n[34]=x,n[35]=T,n[36]=ce,n[37]=s,n[38]=ee.length,n[39]=d):d=n[39];let f;n[40]!==d||n[41]!==E||n[42]!==O?(f=D.jsxs("form",{onSubmit:E,children:[O,d]}),n[40]=d,n[41]=E,n[42]=O,n[43]=f):f=n[43];let w;return n[44]!==f||n[45]!==N?(w=D.jsxs(D.Fragment,{children:[N,f]}),n[44]=f,n[45]=N,n[46]=w):w=n[46],w}function F1(i,n){return i[n.id]=W1,i}function W1(i){return i?null:"Pflichtfeld"}function z1(i){return i.required}function q1(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function H1(i){return i.step}function G1(i){return typeof i.step=="number"}var[V1,Oa]=$.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Uc=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:p,resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:A}=i,[T,R]=me.useState(""),[P,M]=me.useState("");return D.jsx(V1,{value:{sourceColumn:T,setSourceColumn:R,targetColumn:P,setTargetColumn:M,columnsToggle:l,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!T||!P)return;let I=r.indexOf(T),j=r.indexOf(P);if(I!==-1&&j!==-1){let F=r.splice(I,1)[0];r.splice(j,0,F),s([...r])}},resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:A},children:n})};function Z1(){return D.jsx("tr",{className:"mantine-datatable-empty-row",children:D.jsx("td",{})})}function K1(){return D.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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"}),D.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"}),D.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"}),D.jsx("path",{d:"M3 3l18 18"})]})}function Q1({icon:i,text:n,pt:r,pb:s,active:l,children:p}){return D.jsx($.Center,{pt:r,pb:s,className:"mantine-datatable-empty-state","data-active":l||void 0,children:p||D.jsxs(D.Fragment,{children:[i||D.jsx("div",{className:"mantine-datatable-empty-state-icon",children:D.jsx(K1,{})}),D.jsx($.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var J1=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(K,fe){let ee=[];return K.forEach(J=>{fe.find(ve=>ve.accessor===J)&&ee.push(J)}),fe.forEach(J=>{ee.includes(J.accessor)||ee.push(J.accessor)}),ee}function l(K,fe){let ee=[];return K.forEach(J=>{fe.find(ve=>ve.accessor===J.accessor)&&ee.push(J)}),fe.forEach(J=>{ee.find(ve=>ve.accessor===J.accessor)||ee.push({accessor:J.accessor,defaultToggle:J.defaultToggle||!0,toggleable:J.toggleable,toggled:J.defaultToggle===void 0?!0:J.defaultToggle})}),ee}function p(K,fe){let ee=[];return K.forEach(J=>{let ve=Object.keys(J)[0];fe.find(he=>he.accessor===ve)&&ee.push(J)}),fe.forEach(J=>{let ve=J.accessor;if(!ee.find(he=>Object.keys(he)[0]===ve)){let he={};he[ve]="",ee.push(he)}}),ee}function v(){let[K,fe]=Dt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function ee(he){i&&fe(he)}if(!i)return[K,ee];let J=s(K,n),ve=JSON.stringify(K);return JSON.stringify(J)!==ve&&ee(J),[J,ee]}function c(){let[K,fe]=Dt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?R:void 0,getInitialValueInEffect:r});function ee(he){i&&fe(he)}if(!i)return[K,ee];let J=l(K,n),ve=JSON.stringify(K);return JSON.stringify(J)!==ve&&ee(J),[l(K,n),ee]}function x(){let[K,fe]=Dt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?T:void 0,getInitialValueInEffect:r});function ee(he){i&&fe(he)}if(!i)return[K,ee];let J=p(K,n),ve=JSON.stringify(K);return JSON.stringify(J)!==ve&&ee(J),[p(K,n),ee]}let A=n&&n.map(K=>K.accessor)||[],T=n&&n.map(K=>({[K.accessor]:K.width??"initial"}))||[],R=n&&n.map(K=>({accessor:K.accessor,defaultToggle:K.defaultToggle||!0,toggleable:K.toggleable,toggled:K.defaultToggle===void 0?!0:K.defaultToggle})),[P,M]=v(),[I,j]=c(),[F,X]=x(),ie=()=>M(A),oe=()=>{j(R)},ce=()=>X(T);return{effectiveColumns:me.useMemo(()=>P?P.map(K=>n.find(fe=>fe.accessor===K)).map(K=>{var fe;return{...K,hidden:(K==null?void 0:K.hidden)||!((fe=I.find(ee=>ee.accessor===(K==null?void 0:K.accessor)))!=null&&fe.toggled)}}).map(K=>{var fe;return{...K,width:(fe=F.find(ee=>ee[K==null?void 0:K.accessor]))==null?void 0:fe[K==null?void 0:K.accessor]}}):n,[n,P,I,F]),setColumnsOrder:M,columnsOrder:P,resetColumnsOrder:ie,columnsToggle:I,setColumnsToggle:j,resetColumnsToggle:oe,columnsWidth:F,setColumnsWidth:X,setColumnWidth:(K,fe)=>{let ee=F.map(J=>J[K]?{[K]:fe}:J);X(ee)},resetColumnsWidth:ce}};function ei(){var s;let[i]=Dt.useResizeObserver(),{width:n,height:r}=((s=i.current)==null?void 0:s.getBoundingClientRect())||{width:0,height:0};return{ref:i,width:n,height:r}}var X1=typeof window<"u"?me.useLayoutEffect:me.useEffect;function e0(i){let[n,r]=me.useState(null),s=(i==null?void 0:i.join(":"))||"";return me.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function t0(i,n){let r=()=>{n(i.map(l=>l.matches))},s=i.map(l=>{try{return l.addEventListener("change",r),()=>l.removeEventListener("change",r)}catch{return l.addListener(r),()=>l.removeListener(r)}});return()=>{s.forEach(l=>l())}}function n0(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function r0(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=me.useState(r?n:n0(i,n)),p=me.useRef(null);return me.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(v=>window.matchMedia(v)),l(p.current.map(v=>v.matches)),t0(p.current,v=>{l(v)})},[i]),s}function i0(i){let n=$.useMantineTheme(),r=me.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=me.useMemo(()=>i.map(()=>!0),[i]);return r0(r,s)}function Zo(i){let n=$.useMantineTheme(),r=typeof i=="function"?i(n):i;return Dt.useMediaQuery(r||"",!0)}function Ta(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 o0(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Ma(i,n){return i.filter((r,s,l)=>s===l.findIndex(p=>n(r)===n(p)))}function Fc(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Bt(i,n){return typeof n=="string"?Fc(i,n):n(i)}function s0({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:c,allowMultiple:x,initiallyExpanded:A}=i;n&&c==="always"?s=n.map(T=>Bt(T,r)):A&&(s=n.filter((T,R)=>A({record:T,index:R})).map(T=>Bt(T,r)),x||(s=[s[0]]))}let l,p,v=me.useState(s);if(i){let{expandable:c,trigger:x,allowMultiple:A,collapseProps:T,content:R}=i;i.expanded?{recordIds:l,onRecordIdsChange:p}=i.expanded:[l,p]=v;let P=M=>p==null?void 0:p(l.filter(I=>I!==Bt(M,r)));return{expandOnClick:x!=="always"&&x!=="never",isRowExpanded:M=>x==="always"?!0:l.includes(Bt(M,r)),isExpandable:({record:M,index:I})=>c?c({record:M,index:I}):!0,expandRow:M=>{let I=Bt(M,r);p==null||p(A?[...l,I]:[I])},collapseRow:P,collapseProps:T,content:({record:M,index:I})=>()=>R({record:M,index:I,collapse:()=>P(M)})}}}function a0(i,n){let[r,s]=me.useState(i),[l,p]=me.useState(i),v=Dt.useTimeout(()=>s(!0),0),c=Dt.useTimeout(()=>p(!1),n||200);return me.useEffect(()=>{i?(c.clear(),p(!0),v.start()):(v.clear(),s(!1),c.start())},[v,c,i]),{expanded:r,visible:l}}var Ea="mantine-datatable-nowrap",Ra="mantine-datatable-ellipsis",ti="mantine-datatable-pointer-cursor",Wc="mantine-datatable-context-menu-cursor",u0="mantine-datatable-text-selection-disabled",Ko="mantine-datatable-text-align-left",Qo="mantine-datatable-text-align-center",Jo="mantine-datatable-text-align-right";function l0({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:p,textAlign:v,width:c}){return Zo(r)?D.jsx($.TableTh,{className:vt({[Ea]:l||p,[Ra]:p,[Ko]:v==="left",[Qo]:v==="center",[Jo]:v==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},n],children:s}):null}function c0({shadowVisible:i}){return D.jsx($.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}var f0=me.forwardRef(function({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:p,scrollDiff:v},c){let x=v<0;return D.jsx($.TableTfoot,{ref:c,className:vt("mantine-datatable-footer",i),style:[{position:x?"relative":"sticky",bottom:$.rem(x?v:0)},n],children:D.jsxs($.TableTr,{children:[l&&D.jsx(c0,{shadowVisible:p}),r.map(({hidden:A,...T})=>{if(A)return null;let{accessor:R,visibleMediaQuery:P,textAlign:M,width:I,footer:j,footerClassName:F,footerStyle:X,noWrap:ie,ellipsis:oe}={...s,...T};return D.jsx(l0,{className:F,style:X,visibleMediaQuery:P,textAlign:M,width:I,title:j,noWrap:ie,ellipsis:oe},R)})]})})});function h0({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:p}}){let v=me.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),c=i0(v),x=me.useMemo(()=>n.filter(({hidden:A},T)=>!A&&(c==null?void 0:c[T])).length,[n,c]);return x>0?D.jsx($.TableTh,{colSpan:x,className:vt("mantine-datatable-column-group-header-cell",{[Ko]:s==="left",[Qo]:s==="center",[Jo]:s==="right"},l),style:p,children:r??Ta(i)}):null}function d0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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 p0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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 g0({children:i,isActive:n,filterPopoverProps:r}){let[s,{close:l,toggle:p}]=Dt.useDisclosure(!1),v=n?p0:d0,c=Dt.useClickOutside(l);return D.jsxs($.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[D.jsx($.PopoverTarget,{children:D.jsx($.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:x=>{x.preventDefault(),p()},onKeyDown:x=>x.stopPropagation(),children:D.jsx(v,{})})}),D.jsx($.PopoverDropdown,{ref:c,onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),children:typeof i=="function"?i({close:l}):i})]})}var m0=i=>{let{accessor:n,columnRef:r}=i,s=me.useRef(null),[l,p]=me.useState(0),{setColumnWidth:v}=Oa(),c=T=>{T.preventDefault(),T.stopPropagation(),document.addEventListener("mousemove",x),document.addEventListener("mouseup",A),document.body.style.cursor="col-resize"},x=T=>{if(!r.current)return;let R=T.clientX-r.current.getBoundingClientRect().right,P=`${r.current.getBoundingClientRect().width+R}px`;r.current.style.width=P,v(n,r.current.style.width),p(-R)},A=()=>{r.current&&(document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",A),document.body.style.cursor="initial",v(n,r.current.style.width),p(0))};return D.jsx("div",{ref:s,onClick:T=>T.stopPropagation(),onMouseDown:c,onDoubleClick:()=>{r.current&&(r.current.style.maxWidth="initial",r.current.style.minWidth="initial",r.current.style.width="initial",v(n,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:$.rem(l)}})};function v0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M12 5l0 14"}),D.jsx("path",{d:"M16 9l-4 -4"}),D.jsx("path",{d:"M8 9l4 -4"})]})}function y0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 7l4 -4l4 4"}),D.jsx("path",{d:"M8 17l4 4l4 -4"}),D.jsx("path",{d:"M12 3l0 18"})]})}function _0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function w0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M18 6l-12 12"}),D.jsx("path",{d:"M6 6l12 12"})]})}function b0({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:p,draggable:v,toggleable:c,resizable:x,sortIcons:A,textAlign:T,width:R,sortStatus:P,onSortStatusChange:M,filter:I,filterPopoverProps:j,filtering:F,sortKey:X}){let{setSourceColumn:ie,setTargetColumn:oe,swapColumns:ce,setColumnsToggle:K}=Oa(),[fe,ee]=me.useState(!1),J=me.useRef(null);if(!Zo(s))return null;let ve=l??Ta(r),he=typeof ve=="string"?ve:void 0,te=p&&M?f=>{f!=null&&f.defaultPrevented||M({sortKey:X,columnAccessor:r,direction:(P==null?void 0:P.columnAccessor)===r?P.direction==="asc"?"desc":"asc":(P==null?void 0:P.direction)??"asc"})}:void 0,Oe=f=>{f.stopPropagation(),ie(r),ee(!1)},Te=f=>{f.preventDefault(),oe(r),ee(!0)},N=()=>{oe(r),ee(!1),ce()},E=()=>{ee(!0)},O=()=>{ee(!1)},d=f=>{f.stopPropagation(),K(w=>w.map(g=>g.accessor===r?{...g,toggled:!1}:g))};return D.jsxs($.TableTh,{className:vt({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":x},i),style:[{width:R,...x?{minWidth:"1px"}:{minWidth:R,maxWidth:R}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:te,onKeyDown:f=>f.key==="Enter"&&(te==null?void 0:te()),ref:J,children:[D.jsxs($.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs($.Flex,{align:"center",w:"100%",className:vt({"mantine-datatable-header-cell-draggable":v,"mantine-datatable-header-cell-drag-over":fe}),draggable:v,onDragStart:v?Oe:void 0,onDragEnter:v?E:void 0,onDragOver:v?Te:void 0,onDrop:v?N:void 0,onDragLeave:v?O:void 0,children:[v?D.jsx($.Center,{role:"img","aria-label":"Drag column",children:D.jsx($.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:f=>{f.stopPropagation()},children:D.jsx(_0,{})})}):null,D.jsx($.Box,{className:vt("mantine-datatable-header-cell-sortable-text",{[Ko]:T==="left",[Qo]:T==="center",[Jo]:T==="right"},Ea,Ra),title:he,children:ve})]}),c?D.jsx($.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx($.ActionIcon,{size:"xs",variant:"light",onClick:d,children:D.jsx(w0,{})})}):null,p||(P==null?void 0:P.columnAccessor)===r?D.jsx(D.Fragment,{children:(P==null?void 0:P.columnAccessor)===r?D.jsx($.Center,{className:vt("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":P.direction==="desc"}),role:"img","aria-label":`Sorted ${P.direction==="desc"?"descending":"ascending"}`,children:(A==null?void 0:A.sorted)||D.jsx(v0,{})}):D.jsx($.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(A==null?void 0:A.unsorted)||D.jsx(y0,{})})}):null,I?D.jsx(g0,{filterPopoverProps:j,isActive:!!F,children:I}):null]}),x?D.jsx(m0,{accessor:r,columnRef:J}):null]})}var x0=me.forwardRef(function({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:p,checkboxProps:v,onChange:c,rowSpan:x},A){let T=!v.disabled;return D.jsx($.TableTh,{ref:A,className:vt("mantine-datatable-header-selector-cell",{[ti]:r==="cell"&&T},i),style:n,rowSpan:x,"data-shadow-visible":s||void 0,onClick:r==="cell"&&T?c:void 0,children:D.jsx($.Checkbox,{classNames:T?{input:ti}:void 0,checked:l,indeterminate:p,onChange:c,...v,disabled:!(c||v.onChange)||v.disabled})})}),S0=me.forwardRef(function({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:p,columns:v,defaultColumnProps:c,groups:x,selectionTrigger:A,selectionVisible:T,selectionChecked:R,selectionIndeterminate:P,onSelectionChange:M,selectionCheckboxProps:I,selectorCellShadowVisible:j,selectionColumnClassName:F,selectionColumnStyle:X},ie){let oe=T?D.jsx(x0,{ref:i,className:F,style:X,trigger:A,shadowVisible:j,checked:R,indeterminate:P,checkboxProps:I,onChange:M,rowSpan:x?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:K}=Oa(),[fe,ee]=me.useState(!1),J=v.some(te=>te.toggleable),ve=J?Object.fromEntries(v.map(({accessor:te,title:Oe})=>[te,Oe??Ta(String(te))])):void 0,he=D.jsxs($.TableThead,{className:vt("mantine-datatable-header",n),style:r,ref:ie,onContextMenu:J?te=>{te.preventDefault(),ee(Oe=>!Oe)}:void 0,children:[x&&D.jsxs($.TableTr,{children:[oe,x.map(te=>D.jsx(h0,{group:te},te.id))]}),D.jsxs($.TableTr,{children:[!x&&oe,v.map(({hidden:te,...Oe},Te)=>{if(te)return null;let{accessor:N,visibleMediaQuery:E,textAlign:O,width:d,title:f,sortable:w,draggable:g,toggleable:m,resizable:C,titleClassName:W,titleStyle:V,filter:ae,filterPopoverProps:ue,filtering:be,sortKey:ne}={...c,...Oe};return D.jsx(b0,{accessor:N,className:W,style:V,visibleMediaQuery:E,textAlign:O,width:d,title:f,sortable:w,draggable:g,toggleable:m,resizable:C&&Te<v.length-1,sortStatus:s,sortIcons:l,sortKey:ne,onSortStatusChange:p,filter:ae,filterPopoverProps:ue,filtering:be},N)})]})]});return J?D.jsxs($.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:fe,onChange:ee,children:[D.jsx($.PopoverTarget,{children:he}),D.jsx($.PopoverDropdown,{children:D.jsx($.Stack,{children:ce.filter(te=>te.toggleable).map(te=>D.jsx($.Group,{children:D.jsx($.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:ve[te.accessor],checked:te.toggled,onChange:Oe=>{K(ce.map(Te=>Te.accessor===te.accessor?{...Te,toggled:Oe.currentTarget.checked}:Te))}})},te.accessor))})})]}):he});function C0({pt:i,pb:n,fetching:r,customContent:s,backgroundBlur:l,size:p,type:v,color:c}){return D.jsx($.Center,{pt:i,pb:n,className:vt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||D.jsx($.Loader,{size:p,type:v,color:c}))})}function xt(i,n,r){return i?$.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function A0({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:p,highlightOnHoverColor:v}){return{"--mantine-datatable-color-light":xt(n,i,"light"),"--mantine-datatable-color-dark":xt(n,i,"dark"),"--mantine-datatable-background-color-light":xt(r,i,"light"),"--mantine-datatable-background-color-dark":xt(r,i,"dark"),"--mantine-datatable-border-color-light":xt(s,i,"light"),"--mantine-datatable-border-color-dark":xt(s,i,"dark"),"--mantine-datatable-row-border-color-light":xt(l,i,"light"),"--mantine-datatable-row-border-color-dark":xt(l,i,"dark"),"--mantine-datatable-striped-color-light":xt(p,i,"light"),"--mantine-datatable-striped-color-dark":xt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":xt(v,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":xt(v,i,"dark")}}function zc({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":xt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":xt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":xt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":xt(r,i,"dark")}}function D0({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":xt(n,i,"light"),"--mantine-datatable-row-color-dark":xt(n,i,"dark"),"--mantine-datatable-row-background-color-light":xt(r,i,"light"),"--mantine-datatable-row-background-color-dark":xt(r,i,"dark")}}function O0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 9l4 -4l4 4"}),D.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var qc={xs:$.rem(22),sm:$.rem(26),md:$.rem(32),lg:$.rem(38),xl:$.rem(44)};function T0({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:p,onChange:v}){return D.jsxs($.Group,{gap:"xs",children:[D.jsx($.Text,{component:"div",size:i,children:n}),D.jsxs($.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx($.MenuTarget,{children:D.jsx($.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:D.jsx(O0,{}),style:[{fontWeight:"normal"},c=>({height:qc[i],paddingLeft:c.spacing[i],paddingRight:c.spacing[i]})],children:s})}),D.jsx($.MenuDropdown,{children:r.map(c=>{let x=c===s;return D.jsx($.MenuItem,{className:vt({"mantine-datatable-page-size-selector-active":x}),style:[{height:qc[i]},x&&(l||p)?A=>zc({theme:A,paginationActiveTextColor:l,paginationActiveBackgroundColor:p}):void 0],disabled:x,onClick:()=>v(c),children:D.jsx($.Text,{component:"div",size:i,children:c})},c)})})]})]})}var M0=me.forwardRef(function({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:p,paginationWithControls:v,paginationActiveTextColor:c,paginationActiveBackgroundColor:x,paginationSize:A,loadingText:T,noRecordsText:R,paginationText:P,totalRecords:M,recordsPerPage:I,onRecordsPerPageChange:j,recordsPerPageLabel:F,recordsPerPageOptions:X,recordsLength:ie,horizontalSpacing:oe,paginationWrapBreakpoint:ce,getPaginationControlProps:K},fe){let ee;if(M){let ve=(s-1)*I+1,he=ve+(ie||0)-1;ee=P({from:ve,to:he,totalRecords:M})}else ee=r?T:R;let J=Zo(({breakpoints:ve})=>`(min-width: ${typeof ce=="number"?`${$.rem(ce)}rem`:ve[ce]||ce})`);return D.jsxs($.Box,{ref:fe,px:oe??"xs",py:"xs",className:vt("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[D.jsx($.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ee}),X&&D.jsx(T0,{activeTextColor:c,activeBackgroundColor:x,size:A,label:F,values:X,value:I,onChange:j}),D.jsx($.Pagination,{classNames:{root:vt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!ie}),control:"mantine-datatable-pagination-pages-control"},style:c||x?ve=>zc({theme:ve,paginationActiveTextColor:c,paginationActiveBackgroundColor:x}):void 0,withEdges:p,withControls:v,value:s,onChange:l,size:A,total:Math.ceil(M/I),getControlProps:K})]})});function E0({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:p,onDoubleClick:v,onContextMenu:c,noWrap:x,ellipsis:A,textAlign:T,width:R,accessor:P,render:M,defaultRender:I,customCellAttributes:j}){return Zo(r)?D.jsx($.TableTd,{className:vt({[Ea]:x||A,[Ra]:A,[ti]:p||v,[Wc]:c,[Ko]:T==="left",[Qo]:T==="center",[Jo]:T==="right"},i),style:[{width:R,minWidth:R,maxWidth:R},n],onClick:p,onDoubleClick:v,onContextMenu:c,...j==null?void 0:j(s,l),children:M?M(s,l):I?I(s,l,P):Fc(s,P)}):null}function R0({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:p}=a0(i,s==null?void 0:s.transitionDuration);return p?D.jsxs(D.Fragment,{children:[D.jsx($.TableTr,{}),D.jsx($.TableTr,{children:D.jsx($.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:D.jsx($.Collapse,{in:l,...s,children:D.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function L0({className:i,style:n,record:r,index:s,trigger:l,onChange:p,withRightShadow:v,checkboxProps:c,getCheckboxProps:x,...A}){let T={...c,...x(r,s)},R=!A.disabled&&!T.disabled,P=M=>{M.stopPropagation(),l==="cell"&&R&&(p==null||p(M))};return D.jsx($.TableTd,{className:vt("mantine-datatable-row-selector-cell",{[ti]:l==="cell"&&R},i),style:n,"data-shadow-visible":v||void 0,onClick:P,children:D.jsx($.Checkbox,{classNames:R?{input:ti}:void 0,onChange:p,...A,...T})})}function k0({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:p,selectionVisible:v,selectionChecked:c,onSelectionChange:x,isRecordSelectable:A,selectionCheckboxProps:T,getSelectionCheckboxProps:R,onClick:P,onDoubleClick:M,onContextMenu:I,onCellClick:j,onCellDoubleClick:F,onCellContextMenu:X,expansion:ie,customAttributes:oe,color:ce,backgroundColor:K,className:fe,style:ee,selectorCellShadowVisible:J,selectionColumnClassName:ve,selectionColumnStyle:he,rowFactory:te}){let Oe=D.jsxs(D.Fragment,{children:[v&&D.jsx(L0,{className:ve,style:he,record:i,index:n,trigger:p,withRightShadow:J,checked:c,disabled:!x||(A?!A(i,n):!1),onChange:x,checkboxProps:T,getCheckboxProps:R}),r.map(({hidden:E,hiddenContent:O,...d},f)=>{if(E||O)return null;let{accessor:w,visibleMediaQuery:g,textAlign:m,noWrap:C,ellipsis:W,width:V,render:ae,cellsClassName:ue,cellsStyle:be,customCellAttributes:ne}={...s,...d};return D.jsx(E0,{className:typeof ue=="function"?ue(i,n):ue,style:be==null?void 0:be(i,n),visibleMediaQuery:g,record:i,index:n,onClick:j?de=>j({event:de,record:i,index:n,column:d,columnIndex:f}):void 0,onDoubleClick:F?de=>F({event:de,record:i,index:n,column:d,columnIndex:f}):void 0,onContextMenu:X?de=>X({event:de,record:i,index:n,column:d,columnIndex:f}):void 0,accessor:w,textAlign:m,noWrap:C,ellipsis:W,width:V,render:ae,defaultRender:l,customCellAttributes:ne},w)})]}),Te=ie&&D.jsx(R0,{colSpan:r.filter(({hidden:E})=>!E).length+(v?1:0),open:ie.isRowExpanded(i),content:ie.content({record:i,index:n}),collapseProps:ie.collapseProps}),N=I0({record:i,index:n,selectionChecked:c,onClick:P,onDoubleClick:M,onContextMenu:I,expansion:ie,customAttributes:oe,color:ce,backgroundColor:K,className:fe,style:ee});return te?te({record:i,index:n,rowProps:N,children:Oe,expandedElement:Te}):D.jsxs(D.Fragment,{children:[D.jsx($.TableTr,{...N,children:Oe}),Te]})}function I0({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:p,expansion:v,customAttributes:c,color:x,backgroundColor:A,className:T,style:R}){return{className:vt("mantine-datatable-row",{[ti]:s||l||(v==null?void 0:v.isExpandable({record:i,index:n}))&&(v==null?void 0:v.expandOnClick)},{[Wc]:p},typeof T=="function"?T(i,n):T),"data-selected":r||void 0,onClick:P=>{if(v){let{isExpandable:M,isRowExpanded:I,expandOnClick:j,expandRow:F,collapseRow:X}=v;M({record:i,index:n})&&j&&(I(i)?X(i):F(i))}s==null||s({event:P,record:i,index:n})},onDoubleClick:l?P=>l({event:P,record:i,index:n}):void 0,onContextMenu:p?P=>p({event:P,record:i,index:n}):void 0,style:[x||A?P=>{let M=x==null?void 0:x(i,n),I=A==null?void 0:A(i,n);return D0({theme:P,color:M,backgroundColor:I})}:void 0,R==null?void 0:R(i,n)],...(c==null?void 0:c(i,n))??{}}}function P0({topShadowVisible:i,leftShadowVisible:n,leftShadowBehind:r,rightShadowVisible:s,rightShadowBehind:l,bottomShadowVisible:p,headerHeight:v,footerHeight:c,onScrollPositionChange:x,children:A,viewportRef:T,scrollAreaProps:R}){return D.jsxs($.ScrollArea,{...R,viewportRef:T,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:x,children:[A,D.jsx($.Box,{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:v?$.rem(v):0}}),D.jsx("div",{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":n,"mantine-datatable-scroll-area-shadow-behind":r})}),D.jsx("div",{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":s,"mantine-datatable-scroll-area-shadow-behind":l})}),D.jsx($.Box,{className:vt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":p}),style:{bottom:c?$.rem(c+1):0}})]})}function N0({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:p,shadow:v,verticalAlign:c="center",fetching:x,columns:A,storeColumnsKey:T,groups:R,pinFirstColumn:P,pinLastColumn:M,defaultColumnProps:I,defaultColumnRender:j,idAccessor:F="id",records:X,selectionTrigger:ie="checkbox",selectedRecords:oe,onSelectedRecordsChange:ce,selectionColumnClassName:K,selectionColumnStyle:fe,isRecordSelectable:ee,selectionCheckboxProps:J,allRecordsSelectionCheckboxProps:ve={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(qt,Yn)=>({"aria-label":`Select record ${Yn+1}`}),sortStatus:te,sortIcons:Oe,onSortStatusChange:Te,horizontalSpacing:N,page:E,onPageChange:O,totalRecords:d,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:g,recordsPerPageLabel:m="Records per page",paginationWithEdges:C,paginationWithControls:W,paginationActiveTextColor:V,paginationActiveBackgroundColor:ae,paginationSize:ue="sm",paginationText:be=({from:qt,to:Yn,totalRecords:Un})=>`${qt} - ${Yn} / ${Un}`,paginationWrapBreakpoint:ne="sm",getPaginationControlProps:de=qt=>qt==="previous"?{"aria-label":"Previous page"}:qt==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:Ce,customLoader:_e,loaderSize:B,loaderType:z,loaderColor:Y,loadingText:Z="...",emptyState:se,noRecordsText:De="No records",noRecordsIcon:u,highlightOnHover:h,striped:_,noHeader:k,onRowClick:q,onRowDoubleClick:Q,onRowContextMenu:Ae,onCellClick:we,onCellDoubleClick:Re,onCellContextMenu:Se,onScroll:Le,onScrollToTop:Ne,onScrollToBottom:ke,onScrollToLeft:Ge,onScrollToRight:Je,c:Ve,backgroundColor:_t,borderColor:ct,rowBorderColor:ft,stripedColor:xn,highlightOnHoverColor:St,rowColor:un,rowBackgroundColor:ln,rowExpansion:Sn,rowClassName:Rn,rowStyle:Ln,customRowAttributes:cn,scrollViewportRef:it,scrollAreaProps:It,tableRef:jn,bodyRef:ht,m:Ot,my:Nr,mx:Cn,mt:li,mb:pr,ml:ci,mr:fi,className:La,classNames:Et,style:ka,styles:Rt,rowFactory:Ia,tableWrapper:Gi,...Vi}){let{ref:qt,width:Yn,height:Un}=ei(),$r=me.useMemo(()=>(R==null?void 0:R.flatMap(Ze=>Ze.columns))??A,[A,R]),Xo=J1({key:T,columns:$r}),{ref:Pa,height:gr}=ei(),{ref:Na,width:mr,height:Br}=ei(),{ref:$a,height:Ba}=ei(),{ref:es,height:Zi}=ei(),{ref:ts,width:ja}=ei(),Ya=Dt.useMergedRef(Na,jn),Ua=Dt.useMergedRef(qt,it),[Ki,Qi]=me.useState(!0),[hi,Ji]=me.useState(!0),[Fn,ns]=me.useState(!0),[jr,Yr]=me.useState(!0),rs=s0({rowExpansion:Sn,records:X,idAccessor:F}),Xi=me.useCallback(()=>{var yr,_r;let Ze=((yr=qt.current)==null?void 0:yr.scrollTop)??0,Kt=((_r=qt.current)==null?void 0:_r.scrollLeft)??0;if(x||Br<=Un)Qi(!0),Ji(!0);else{let fn=Ze===0,Qt=Br-Ze-Un<1;Qi(fn),Ji(Qt),fn&&fn!==Ki&&(Ne==null||Ne()),Qt&&Qt!==hi&&(ke==null||ke())}if(x||mr===Yn)ns(!0),Yr(!0);else{let fn=Kt===0,Qt=mr-Kt-Yn<1;ns(fn),Yr(Qt),fn&&fn!==Fn&&(Ge==null||Ge()),Qt&&Qt!==jr&&(Je==null||Je())}},[x,ke,Ge,Je,Ne,Un,qt,Yn,hi,Fn,jr,Ki,Br,mr]);X1(Xi,[Xi]);let eo=Dt.useDebouncedCallback(Xi,50),is=me.useCallback(Ze=>{Le==null||Le(Ze),eo()},[eo,Le]),to=me.useCallback(Ze=>{var Kt;(Kt=qt.current)==null||Kt.scrollTo({top:0,left:0}),O(Ze)},[O,qt]),di=X==null?void 0:X.length,no=X==null?void 0:X.map(Ze=>Bt(Ze,F)),kn=!!oe,An=oe==null?void 0:oe.map(Ze=>Bt(Ze,F)),Wn=no!==void 0&&An!==void 0&&An.length>0,vr=ee?X==null?void 0:X.filter(ee):X,Ur=vr==null?void 0:vr.map(Ze=>Bt(Ze,F)),pi=Wn&&Ur.every(Ze=>An.includes(Ze)),os=Wn&&Ur.some(Ze=>An.includes(Ze)),ss=me.useCallback(()=>{oe&&ce&&ce(pi?oe.filter(Ze=>!Ur.includes(Bt(Ze,F))):Ma([...oe,...vr],Ze=>Bt(Ze,F)))},[pi,F,ce,Ur,vr,oe]),{lastSelectionChangeIndex:Fr,setLastSelectionChangeIndex:as}=e0(no),ro=kn&&!Fn&&!P,Fa={m:Ot,my:Nr,mx:Cn,mt:li,mb:pr,ml:ci,mr:fi},Wa=me.useCallback(({children:Ze})=>Gi?Gi({children:Ze}):Ze,[Gi]);return D.jsx(Uc,{...Xo,children:D.jsxs($.Box,{...Fa,className:vt("mantine-datatable",{"mantine-datatable-with-border":i},La,Et==null?void 0:Et.root),style:[Ze=>({...A0({theme:Ze,c:Ve,backgroundColor:_t,borderColor:ct,rowBorderColor:ft,stripedColor:xn,highlightOnHoverColor:St}),borderRadius:Ze.radius[n]||n,boxShadow:Ze.shadows[v]||v,height:s,minHeight:l,maxHeight:p}),ka,Rt==null?void 0:Rt.root,{position:"relative"}],children:[D.jsx(P0,{viewportRef:Ua,topShadowVisible:!Ki,leftShadowVisible:!Fn,leftShadowBehind:kn||!!P,rightShadowVisible:!jr,rightShadowBehind:M,bottomShadowVisible:!hi,headerHeight:gr,footerHeight:Ba,onScrollPositionChange:is,scrollAreaProps:It,children:D.jsx(Wa,{children:D.jsxs($.Table,{ref:Ya,horizontalSpacing:N,className:vt("mantine-datatable-table",{[u0]:r,"mantine-datatable-vertical-align-top":c==="top","mantine-datatable-vertical-align-bottom":c==="bottom","mantine-datatable-last-row-border-bottom-visible":Vi.withRowBorders&&Br<Un,"mantine-datatable-pin-last-column":M,"mantine-datatable-pin-last-column-scrolled":!jr&&M,"mantine-datatable-selection-column-visible":kn,"mantine-datatable-pin-first-column":P,"mantine-datatable-pin-first-column-scrolled":!Fn&&P},Et==null?void 0:Et.table),style:{...Rt==null?void 0:Rt.table,"--mantine-datatable-selection-column-width":`${ja}px`},"data-striped":di&&_||void 0,"data-highlight-on-hover":h||void 0,...Vi,children:[k?null:D.jsx(Uc,{...Xo,children:D.jsx(S0,{ref:Pa,selectionColumnHeaderRef:ts,className:Et==null?void 0:Et.header,style:Rt==null?void 0:Rt.header,columns:$r,defaultColumnProps:I,groups:R,sortStatus:te,sortIcons:Oe,onSortStatusChange:Te,selectionTrigger:ie,selectionVisible:kn,selectionChecked:pi,selectionIndeterminate:os&&!pi,onSelectionChange:ss,selectionCheckboxProps:{...J,...ve},selectorCellShadowVisible:ro,selectionColumnClassName:K,selectionColumnStyle:fe})}),D.jsx("tbody",{ref:ht,children:di?X.map((Ze,Kt)=>{let yr=Bt(Ze,F),_r=(An==null?void 0:An.includes(yr))||!1,fn;return ce&&oe&&(fn=Qt=>{if(Qt.nativeEvent.shiftKey&&Fr!==null){let wr=X.filter(Kt>Fr?(zn,qn)=>qn>=Fr&&qn<=Kt&&(ee?ee(zn,qn):!0):(zn,qn)=>qn>=Kt&&qn<=Fr&&(ee?ee(zn,qn):!0));ce(_r?o0(oe,wr,zn=>Bt(zn,F)):Ma([...oe,...wr],zn=>Bt(zn,F)))}else ce(_r?oe.filter(wr=>Bt(wr,F)!==yr):Ma([...oe,Ze],wr=>Bt(wr,F)));as(Kt)}),D.jsx(k0,{record:Ze,index:Kt,columns:$r,defaultColumnProps:I,defaultColumnRender:j,selectionTrigger:ie,selectionVisible:kn,selectionChecked:_r,onSelectionChange:fn,isRecordSelectable:ee,selectionCheckboxProps:J,getSelectionCheckboxProps:he,onClick:q,onDoubleClick:Q,onCellClick:we,onCellDoubleClick:Re,onContextMenu:Ae,onCellContextMenu:Se,expansion:rs,color:un,backgroundColor:ln,className:Rn,style:Ln,customAttributes:cn,selectorCellShadowVisible:ro,selectionColumnClassName:K,selectionColumnStyle:fe,idAccessor:F,rowFactory:Ia},yr)}):D.jsx(Z1,{})}),$r.some(({footer:Ze})=>Ze)&&D.jsx(f0,{ref:$a,className:Et==null?void 0:Et.footer,style:Rt==null?void 0:Rt.footer,columns:$r,defaultColumnProps:I,selectionVisible:kn,selectorCellShadowVisible:ro,scrollDiff:Br-Un})]})})}),E&&D.jsx(M0,{ref:es,className:Et==null?void 0:Et.pagination,style:Rt==null?void 0:Rt.pagination,horizontalSpacing:N,fetching:x,page:E,onPageChange:to,totalRecords:d,recordsPerPage:f,onRecordsPerPageChange:w,recordsPerPageOptions:g,recordsPerPageLabel:m,paginationWithEdges:C,paginationWithControls:W,paginationActiveTextColor:V,paginationActiveBackgroundColor:ae,paginationSize:ue,paginationText:be,paginationWrapBreakpoint:ne,getPaginationControlProps:de,noRecordsText:De,loadingText:Z,recordsLength:di}),D.jsx(C0,{pt:gr,pb:Zi,fetching:x,backgroundBlur:Ce,customContent:_e,size:B,type:z,color:Y}),D.jsx(Q1,{pt:gr,pb:Zi,icon:u,text:De,active:!x&&!di,children:se})]})})}var $0=me.forwardRef(function({children:i,isDragging:n,...r},s){let l=me.useRef(null),p=Dt.useMergedRef(l,s);return me.useEffect(()=>{if(!l.current||!n)return;let v=l.current.parentElement.parentElement.children[0].children[0];for(let c=0;c<v.children.length;c++){let x=v.children[c].getBoundingClientRect(),A=l.current.children[c];A.style.height=x.height+"px",A.style.width=x.width+"px",A.style.minWidth=x.width+"px",A.style.maxWidth=x.width+"px"}},[n,i]),D.jsx($.TableTr,{"data-is-dragging":n,ref:p,...r,children:i})});$0.displayName="DataTableDraggableRow";var zi={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 B0=Hi.exports,Hc;function j0(){return Hc||(Hc=1,function(i,n){(function(){var r,s="4.17.21",l=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",c="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",A=500,T="__lodash_placeholder__",R=1,P=2,M=4,I=1,j=2,F=1,X=2,ie=4,oe=8,ce=16,K=32,fe=64,ee=128,J=256,ve=512,he=30,te="...",Oe=800,Te=16,N=1,E=2,O=3,d=1/0,f=9007199254740991,w=17976931348623157e292,g=NaN,m=4294967295,C=m-1,W=m>>>1,V=[["ary",ee],["bind",F],["bindKey",X],["curry",oe],["curryRight",ce],["flip",ve],["partial",K],["partialRight",fe],["rearg",J]],ae="[object Arguments]",ue="[object Array]",be="[object AsyncFunction]",ne="[object Boolean]",de="[object Date]",Ce="[object DOMException]",_e="[object Error]",B="[object Function]",z="[object GeneratorFunction]",Y="[object Map]",Z="[object Number]",se="[object Null]",De="[object Object]",u="[object Promise]",h="[object Proxy]",_="[object RegExp]",k="[object Set]",q="[object String]",Q="[object Symbol]",Ae="[object Undefined]",we="[object WeakMap]",Re="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",Ne="[object Float32Array]",ke="[object Float64Array]",Ge="[object Int8Array]",Je="[object Int16Array]",Ve="[object Int32Array]",_t="[object Uint8Array]",ft="[object Uint8ClampedArray]",ht="[object Uint16Array]",xn="[object Uint32Array]",St=/\b__p \+= '';/g,ln=/\b(__p \+=) '' \+/g,En=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rn=/&(?:amp|lt|gt|quot|#39);/g,Kt=/[&<>"']/g,cn=RegExp(Rn.source),Ln=RegExp(Kt.source),at=/<%-([\s\S]+?)%>/g,zt=/<%([\s\S]+?)%>/g,Sn=/<%=([\s\S]+?)%>/g,kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,In=/^\w*$/,vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/[\\^$.*+?()[\]{}|]/g,Tt=RegExp(ut.source),Un=/^\s+/,Fn=/\s/,fi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ct=/,? & /,di=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rt=/[()=,{}\[\]\/\s]/,Ia=/\\(\\)?/g,Zi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ki=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Wn=/^0b[01]+$/i,zn=/^\[object .+?Constructor\]$/,jr=/^0o[0-7]+$/i,ts=/^(?:0|[1-9]\d*)$/,Pa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yr=/($^)/,Na=/['\n\r\u2028\u2029\\]/g,_r="\\ud800-\\udfff",Yr="\\u0300-\\u036f",$a="\\ufe20-\\ufe2f",Ba="\\u20d0-\\u20ff",ns=Yr+$a+Ba,Qi="\\u2700-\\u27bf",rs="a-z\\xdf-\\xf6\\xf8-\\xff",ja="\\xac\\xb1\\xd7\\xf7",Ya="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ua="\\u2000-\\u206f",Ji=" \\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",Xi="A-Z\\xc0-\\xd6\\xd8-\\xde",pi="\\ufe0e\\ufe0f",eo=ja+Ya+Ua+Ji,qn="['’]",is="["+_r+"]",Ur="["+eo+"]",Fr="["+ns+"]",os="\\d+",to="["+Qi+"]",no="["+rs+"]",ss="[^"+_r+eo+os+Qi+rs+Xi+"]",ro="\\ud83c[\\udffb-\\udfff]",gi="(?:"+Fr+"|"+ro+")",io="[^"+_r+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Cn="[\\ud800-\\udbff][\\udc00-\\udfff]",Hn="["+Xi+"]",wr="\\u200d",Wr="(?:"+no+"|"+ss+")",mi="(?:"+Hn+"|"+ss+")",as="(?:"+qn+"(?:d|ll|m|re|s|t|ve))?",us="(?:"+qn+"(?:D|LL|M|RE|S|T|VE))?",zr=gi+"?",ls="["+pi+"]?",oo="(?:"+wr+"(?:"+[io,Pn,Cn].join("|")+")"+ls+zr+")*",Fa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ze=ls+zr+oo,Qt="(?:"+[to,Pn,Cn].join("|")+")"+Ze,br="(?:"+[io+Fr+"?",Fr,Pn,Cn,is].join("|")+")",xr=RegExp(qn,"g"),fn=RegExp(Fr,"g"),Jt=RegExp(ro+"(?="+ro+")|"+br+Ze,"g"),Sr=RegExp([Hn+"?"+no+"+"+as+"(?="+[Ur,Hn,"$"].join("|")+")",mi+"+"+us+"(?="+[Ur,Hn+Wr,"$"].join("|")+")",Hn+"?"+Wr+"+"+as,Hn+"+"+us,Wa,Fa,os,Qt].join("|"),"g"),Gn=RegExp("["+wr+_r+ns+pi+"]"),Vn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,am=["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"],um=-1,dt={};dt[Ne]=dt[ke]=dt[Ge]=dt[Je]=dt[Ve]=dt[_t]=dt[ft]=dt[ht]=dt[xn]=!0,dt[ae]=dt[ue]=dt[Se]=dt[ne]=dt[Le]=dt[de]=dt[_e]=dt[B]=dt[Y]=dt[Z]=dt[De]=dt[_]=dt[k]=dt[q]=dt[we]=!1;var ct={};ct[ae]=ct[ue]=ct[Se]=ct[Le]=ct[ne]=ct[de]=ct[Ne]=ct[ke]=ct[Ge]=ct[Je]=ct[Ve]=ct[Y]=ct[Z]=ct[De]=ct[_]=ct[k]=ct[q]=ct[Q]=ct[_t]=ct[ft]=ct[ht]=ct[xn]=!0,ct[_e]=ct[B]=ct[we]=!1;var lm={À:"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"},cm={"&":"&","<":"<",">":">",'"':""","'":"'"},fm={"&":"&","<":"<",">":">",""":'"',"'":"'"},hm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dm=parseFloat,pm=parseInt,ef=typeof So=="object"&&So&&So.Object===Object&&So,gm=typeof self=="object"&&self&&self.Object===Object&&self,Lt=ef||gm||Function("return this")(),za=n&&!n.nodeType&&n,qr=za&&!0&&i&&!i.nodeType&&i,tf=qr&&qr.exports===za,qa=tf&&ef.process,hn=function(){try{var H=qr&&qr.require&&qr.require("util").types;return H||qa&&qa.binding&&qa.binding("util")}catch{}}(),nf=hn&&hn.isArrayBuffer,rf=hn&&hn.isDate,of=hn&&hn.isMap,sf=hn&&hn.isRegExp,af=hn&&hn.isSet,uf=hn&&hn.isTypedArray;function Xt(H,le,re){switch(re.length){case 0:return H.call(le);case 1:return H.call(le,re[0]);case 2:return H.call(le,re[0],re[1]);case 3:return H.call(le,re[0],re[1],re[2])}return H.apply(le,re)}function mm(H,le,re,Ie){for(var Fe=-1,nt=H==null?0:H.length;++Fe<nt;){var At=H[Fe];le(Ie,At,re(At),H)}return Ie}function dn(H,le){for(var re=-1,Ie=H==null?0:H.length;++re<Ie&&le(H[re],re,H)!==!1;);return H}function vm(H,le){for(var re=H==null?0:H.length;re--&&le(H[re],re,H)!==!1;);return H}function lf(H,le){for(var re=-1,Ie=H==null?0:H.length;++re<Ie;)if(!le(H[re],re,H))return!1;return!0}function Cr(H,le){for(var re=-1,Ie=H==null?0:H.length,Fe=0,nt=[];++re<Ie;){var At=H[re];le(At,re,H)&&(nt[Fe++]=At)}return nt}function cs(H,le){var re=H==null?0:H.length;return!!re&&vi(H,le,0)>-1}function Ha(H,le,re){for(var Ie=-1,Fe=H==null?0:H.length;++Ie<Fe;)if(re(le,H[Ie]))return!0;return!1}function gt(H,le){for(var re=-1,Ie=H==null?0:H.length,Fe=Array(Ie);++re<Ie;)Fe[re]=le(H[re],re,H);return Fe}function Ar(H,le){for(var re=-1,Ie=le.length,Fe=H.length;++re<Ie;)H[Fe+re]=le[re];return H}function Ga(H,le,re,Ie){var Fe=-1,nt=H==null?0:H.length;for(Ie&&nt&&(re=H[++Fe]);++Fe<nt;)re=le(re,H[Fe],Fe,H);return re}function ym(H,le,re,Ie){var Fe=H==null?0:H.length;for(Ie&&Fe&&(re=H[--Fe]);Fe--;)re=le(re,H[Fe],Fe,H);return re}function Va(H,le){for(var re=-1,Ie=H==null?0:H.length;++re<Ie;)if(le(H[re],re,H))return!0;return!1}var _m=Za("length");function wm(H){return H.split("")}function bm(H){return H.match(di)||[]}function cf(H,le,re){var Ie;return re(H,function(Fe,nt,At){if(le(Fe,nt,At))return Ie=nt,!1}),Ie}function fs(H,le,re,Ie){for(var Fe=H.length,nt=re+(Ie?1:-1);Ie?nt--:++nt<Fe;)if(le(H[nt],nt,H))return nt;return-1}function vi(H,le,re){return le===le?km(H,le,re):fs(H,ff,re)}function xm(H,le,re,Ie){for(var Fe=re-1,nt=H.length;++Fe<nt;)if(Ie(H[Fe],le))return Fe;return-1}function ff(H){return H!==H}function hf(H,le){var re=H==null?0:H.length;return re?Qa(H,le)/re:g}function Za(H){return function(le){return le==null?r:le[H]}}function Ka(H){return function(le){return H==null?r:H[le]}}function df(H,le,re,Ie,Fe){return Fe(H,function(nt,At,lt){re=Ie?(Ie=!1,nt):le(re,nt,At,lt)}),re}function Sm(H,le){var re=H.length;for(H.sort(le);re--;)H[re]=H[re].value;return H}function Qa(H,le){for(var re,Ie=-1,Fe=H.length;++Ie<Fe;){var nt=le(H[Ie]);nt!==r&&(re=re===r?nt:re+nt)}return re}function Ja(H,le){for(var re=-1,Ie=Array(H);++re<H;)Ie[re]=le(re);return Ie}function Cm(H,le){return gt(le,function(re){return[re,H[re]]})}function pf(H){return H&&H.slice(0,yf(H)+1).replace(Un,"")}function en(H){return function(le){return H(le)}}function Xa(H,le){return gt(le,function(re){return H[re]})}function so(H,le){return H.has(le)}function gf(H,le){for(var re=-1,Ie=H.length;++re<Ie&&vi(le,H[re],0)>-1;);return re}function mf(H,le){for(var re=H.length;re--&&vi(le,H[re],0)>-1;);return re}function Am(H,le){for(var re=H.length,Ie=0;re--;)H[re]===le&&++Ie;return Ie}var Dm=Ka(lm),Om=Ka(cm);function Tm(H){return"\\"+hm[H]}function Mm(H,le){return H==null?r:H[le]}function yi(H){return Gn.test(H)}function Em(H){return Vn.test(H)}function Rm(H){for(var le,re=[];!(le=H.next()).done;)re.push(le.value);return re}function eu(H){var le=-1,re=Array(H.size);return H.forEach(function(Ie,Fe){re[++le]=[Fe,Ie]}),re}function vf(H,le){return function(re){return H(le(re))}}function Dr(H,le){for(var re=-1,Ie=H.length,Fe=0,nt=[];++re<Ie;){var At=H[re];(At===le||At===T)&&(H[re]=T,nt[Fe++]=re)}return nt}function hs(H){var le=-1,re=Array(H.size);return H.forEach(function(Ie){re[++le]=Ie}),re}function Lm(H){var le=-1,re=Array(H.size);return H.forEach(function(Ie){re[++le]=[Ie,Ie]}),re}function km(H,le,re){for(var Ie=re-1,Fe=H.length;++Ie<Fe;)if(H[Ie]===le)return Ie;return-1}function Im(H,le,re){for(var Ie=re+1;Ie--;)if(H[Ie]===le)return Ie;return Ie}function _i(H){return yi(H)?Nm(H):_m(H)}function An(H){return yi(H)?$m(H):wm(H)}function yf(H){for(var le=H.length;le--&&Fn.test(H.charAt(le)););return le}var Pm=Ka(fm);function Nm(H){for(var le=Jt.lastIndex=0;Jt.test(H);)++le;return le}function $m(H){return H.match(Jt)||[]}function Bm(H){return H.match(Sr)||[]}var jm=function H(le){le=le==null?Lt:wi.defaults(Lt.Object(),le,wi.pick(Lt,am));var re=le.Array,Ie=le.Date,Fe=le.Error,nt=le.Function,At=le.Math,lt=le.Object,tu=le.RegExp,Ym=le.String,pn=le.TypeError,ds=re.prototype,Um=nt.prototype,bi=lt.prototype,ps=le["__core-js_shared__"],gs=Um.toString,ot=bi.hasOwnProperty,Fm=0,_f=function(){var e=/[^.]+$/.exec(ps&&ps.keys&&ps.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ms=bi.toString,Wm=gs.call(lt),zm=Lt._,qm=tu("^"+gs.call(ot).replace(ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vs=tf?le.Buffer:r,Or=le.Symbol,ys=le.Uint8Array,wf=vs?vs.allocUnsafe:r,_s=vf(lt.getPrototypeOf,lt),bf=lt.create,xf=bi.propertyIsEnumerable,ws=ds.splice,Sf=Or?Or.isConcatSpreadable:r,ao=Or?Or.iterator:r,Hr=Or?Or.toStringTag:r,bs=function(){try{var e=Qr(lt,"defineProperty");return e({},"",{}),e}catch{}}(),Hm=le.clearTimeout!==Lt.clearTimeout&&le.clearTimeout,Gm=Ie&&Ie.now!==Lt.Date.now&&Ie.now,Vm=le.setTimeout!==Lt.setTimeout&&le.setTimeout,xs=At.ceil,Ss=At.floor,nu=lt.getOwnPropertySymbols,Zm=vs?vs.isBuffer:r,Cf=le.isFinite,Km=ds.join,Qm=vf(lt.keys,lt),Dt=At.max,It=At.min,Jm=Ie.now,Xm=le.parseInt,Af=At.random,ev=ds.reverse,ru=Qr(le,"DataView"),uo=Qr(le,"Map"),iu=Qr(le,"Promise"),xi=Qr(le,"Set"),lo=Qr(le,"WeakMap"),co=Qr(lt,"create"),Cs=lo&&new lo,Si={},tv=Jr(ru),nv=Jr(uo),rv=Jr(iu),iv=Jr(xi),ov=Jr(lo),As=Or?Or.prototype:r,fo=As?As.valueOf:r,Df=As?As.toString:r;function b(e){if(yt(e)&&!We(e)&&!(e instanceof Xe)){if(e instanceof gn)return e;if(ot.call(e,"__wrapped__"))return Oh(e)}return new gn(e)}var Ci=function(){function e(){}return function(t){if(!mt(t))return{};if(bf)return bf(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Ds(){}function gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:at,evaluate:zt,interpolate:Sn,variable:"",imports:{_:b}},b.prototype=Ds.prototype,b.prototype.constructor=b,gn.prototype=Ci(Ds.prototype),gn.prototype.constructor=gn;function Xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function sv(){var e=new Xe(this.__wrapped__);return e.__actions__=Ht(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ht(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ht(this.__views__),e}function av(){if(this.__filtered__){var e=new Xe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function uv(){var e=this.__wrapped__.value(),t=this.__dir__,o=We(e),a=t<0,y=o?e.length:0,S=wy(0,y,this.__views__),L=S.start,U=S.end,G=U-L,pe=a?U:L-1,ge=this.__iteratees__,xe=ge.length,Me=0,Pe=It(G,this.__takeCount__);if(!o||!a&&y==G&&Pe==G)return Kf(e,this.__actions__);var Be=[];e:for(;G--&&Me<Pe;){pe+=t;for(var qe=-1,je=e[pe];++qe<xe;){var Qe=ge[qe],tt=Qe.iteratee,rn=Qe.type,Ut=tt(je);if(rn==E)je=Ut;else if(!Ut){if(rn==N)continue e;break e}}Be[Me++]=je}return Be}Xe.prototype=Ci(Ds.prototype),Xe.prototype.constructor=Xe;function Gr(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 lv(){this.__data__=co?co(null):{},this.size=0}function cv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function fv(e){var t=this.__data__;if(co){var o=t[e];return o===x?r:o}return ot.call(t,e)?t[e]:r}function hv(e){var t=this.__data__;return co?t[e]!==r:ot.call(t,e)}function dv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=co&&t===r?x:t,this}Gr.prototype.clear=lv,Gr.prototype.delete=cv,Gr.prototype.get=fv,Gr.prototype.has=hv,Gr.prototype.set=dv;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 pv(){this.__data__=[],this.size=0}function gv(e){var t=this.__data__,o=Os(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():ws.call(t,o,1),--this.size,!0}function mv(e){var t=this.__data__,o=Os(t,e);return o<0?r:t[o][1]}function vv(e){return Os(this.__data__,e)>-1}function yv(e,t){var o=this.__data__,a=Os(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Zn.prototype.clear=pv,Zn.prototype.delete=gv,Zn.prototype.get=mv,Zn.prototype.has=vv,Zn.prototype.set=yv;function Kn(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.size=0,this.__data__={hash:new Gr,map:new(uo||Zn),string:new Gr}}function wv(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}function bv(e){return js(this,e).get(e)}function xv(e){return js(this,e).has(e)}function Sv(e,t){var o=js(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Kn.prototype.clear=_v,Kn.prototype.delete=wv,Kn.prototype.get=bv,Kn.prototype.has=xv,Kn.prototype.set=Sv;function Vr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Kn;++t<o;)this.add(e[t])}function Cv(e){return this.__data__.set(e,x),this}function Av(e){return this.__data__.has(e)}Vr.prototype.add=Vr.prototype.push=Cv,Vr.prototype.has=Av;function Dn(e){var t=this.__data__=new Zn(e);this.size=t.size}function Dv(){this.__data__=new Zn,this.size=0}function Ov(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Tv(e){return this.__data__.get(e)}function Mv(e){return this.__data__.has(e)}function Ev(e,t){var o=this.__data__;if(o instanceof Zn){var a=o.__data__;if(!uo||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Kn(a)}return o.set(e,t),this.size=o.size,this}Dn.prototype.clear=Dv,Dn.prototype.delete=Ov,Dn.prototype.get=Tv,Dn.prototype.has=Mv,Dn.prototype.set=Ev;function Of(e,t){var o=We(e),a=!o&&Xr(e),y=!o&&!a&&Lr(e),S=!o&&!a&&!y&&Ti(e),L=o||a||y||S,U=L?Ja(e.length,Ym):[],G=U.length;for(var pe in e)(t||ot.call(e,pe))&&!(L&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||S&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||er(pe,G)))&&U.push(pe);return U}function Tf(e){var t=e.length;return t?e[gu(0,t-1)]:r}function Rv(e,t){return Ys(Ht(e),Zr(t,0,e.length))}function Lv(e){return Ys(Ht(e))}function ou(e,t,o){(o!==r&&!On(e[t],o)||o===r&&!(t in e))&&Qn(e,t,o)}function ho(e,t,o){var a=e[t];(!(ot.call(e,t)&&On(a,o))||o===r&&!(t in e))&&Qn(e,t,o)}function Os(e,t){for(var o=e.length;o--;)if(On(e[o][0],t))return o;return-1}function kv(e,t,o,a){return Tr(e,function(y,S,L){t(a,y,o(y),L)}),a}function Mf(e,t){return e&&$n(t,Mt(t),e)}function Iv(e,t){return e&&$n(t,Vt(t),e)}function Qn(e,t,o){t=="__proto__"&&bs?bs(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function su(e,t){for(var o=-1,a=t.length,y=re(a),S=e==null;++o<a;)y[o]=S?r:Yu(e,t[o]);return y}function Zr(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,S){var L,U=t&R,G=t&P,pe=t&M;if(o&&(L=y?o(e,a,y,S):o(e)),L!==r)return L;if(!mt(e))return e;var ge=We(e);if(ge){if(L=xy(e),!U)return Ht(e,L)}else{var xe=Pt(e),Me=xe==B||xe==z;if(Lr(e))return Xf(e,U);if(xe==De||xe==ae||Me&&!y){if(L=G||Me?{}:yh(e),!U)return G?fy(e,Iv(L,e)):cy(e,Mf(L,e))}else{if(!ct[xe])return y?e:{};L=Sy(e,xe,U)}}S||(S=new Dn);var Pe=S.get(e);if(Pe)return Pe;S.set(e,L),Gh(e)?e.forEach(function(je){L.add(mn(je,t,o,je,e,S))}):qh(e)&&e.forEach(function(je,Qe){L.set(Qe,mn(je,t,o,Qe,e,S))});var Be=pe?G?Du:Au:G?Vt:Mt,qe=ge?r:Be(e);return dn(qe||e,function(je,Qe){qe&&(Qe=je,je=e[Qe]),ho(L,Qe,mn(je,t,o,Qe,e,S))}),L}function Pv(e){var t=Mt(e);return function(o){return Ef(o,e,t)}}function Ef(e,t,o){var a=o.length;if(e==null)return!a;for(e=lt(e);a--;){var y=o[a],S=t[y],L=e[y];if(L===r&&!(y in e)||!S(L))return!1}return!0}function Rf(e,t,o){if(typeof e!="function")throw new pn(v);return wo(function(){e.apply(r,o)},t)}function po(e,t,o,a){var y=-1,S=cs,L=!0,U=e.length,G=[],pe=t.length;if(!U)return G;o&&(t=gt(t,en(o))),a?(S=Ha,L=!1):t.length>=l&&(S=so,L=!1,t=new Vr(t));e:for(;++y<U;){var ge=e[y],xe=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,L&&xe===xe){for(var Me=pe;Me--;)if(t[Me]===xe)continue e;G.push(ge)}else S(t,xe,a)||G.push(ge)}return G}var Tr=ih(Nn),Lf=ih(uu,!0);function Nv(e,t){var o=!0;return Tr(e,function(a,y,S){return o=!!t(a,y,S),o}),o}function Ts(e,t,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],L=t(S);if(L!=null&&(U===r?L===L&&!nn(L):o(L,U)))var U=L,G=S}return G}function $v(e,t,o,a){var y=e.length;for(o=ze(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:ze(a),a<0&&(a+=y),a=o>a?0:Zh(a);o<a;)e[o++]=t;return e}function kf(e,t){var o=[];return Tr(e,function(a,y,S){t(a,y,S)&&o.push(a)}),o}function kt(e,t,o,a,y){var S=-1,L=e.length;for(o||(o=Ay),y||(y=[]);++S<L;){var U=e[S];t>0&&o(U)?t>1?kt(U,t-1,o,a,y):Ar(y,U):a||(y[y.length]=U)}return y}var au=oh(),If=oh(!0);function Nn(e,t){return e&&au(e,t,Mt)}function uu(e,t){return e&&If(e,t,Mt)}function Ms(e,t){return Cr(t,function(o){return tr(e[o])})}function Kr(e,t){t=Er(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[Bn(t[o++])];return o&&o==a?e:r}function Pf(e,t,o){var a=t(e);return We(e)?a:Ar(a,o(e))}function jt(e){return e==null?e===r?Ae:se:Hr&&Hr in lt(e)?_y(e):Ly(e)}function lu(e,t){return e>t}function Bv(e,t){return e!=null&&ot.call(e,t)}function jv(e,t){return e!=null&&t in lt(e)}function Yv(e,t,o){return e>=It(t,o)&&e<Dt(t,o)}function cu(e,t,o){for(var a=o?Ha:cs,y=e[0].length,S=e.length,L=S,U=re(S),G=1/0,pe=[];L--;){var ge=e[L];L&&t&&(ge=gt(ge,en(t))),G=It(ge.length,G),U[L]=!o&&(t||y>=120&&ge.length>=120)?new Vr(L&&ge):r}ge=e[0];var xe=-1,Me=U[0];e:for(;++xe<y&&pe.length<G;){var Pe=ge[xe],Be=t?t(Pe):Pe;if(Pe=o||Pe!==0?Pe:0,!(Me?so(Me,Be):a(pe,Be,o))){for(L=S;--L;){var qe=U[L];if(!(qe?so(qe,Be):a(e[L],Be,o)))continue e}Me&&Me.push(Be),pe.push(Pe)}}return pe}function Uv(e,t,o,a){return Nn(e,function(y,S,L){t(a,o(y),S,L)}),a}function go(e,t,o){t=Er(t,e),e=xh(e,t);var a=e==null?e:e[Bn(yn(t))];return a==null?r:Xt(a,e,o)}function Nf(e){return yt(e)&&jt(e)==ae}function Fv(e){return yt(e)&&jt(e)==Se}function Wv(e){return yt(e)&&jt(e)==de}function mo(e,t,o,a,y){return e===t?!0:e==null||t==null||!yt(e)&&!yt(t)?e!==e&&t!==t:zv(e,t,o,a,mo,y)}function zv(e,t,o,a,y,S){var L=We(e),U=We(t),G=L?ue:Pt(e),pe=U?ue:Pt(t);G=G==ae?De:G,pe=pe==ae?De:pe;var ge=G==De,xe=pe==De,Me=G==pe;if(Me&&Lr(e)){if(!Lr(t))return!1;L=!0,ge=!1}if(Me&&!ge)return S||(S=new Dn),L||Ti(e)?gh(e,t,o,a,y,S):vy(e,t,G,o,a,y,S);if(!(o&I)){var Pe=ge&&ot.call(e,"__wrapped__"),Be=xe&&ot.call(t,"__wrapped__");if(Pe||Be){var qe=Pe?e.value():e,je=Be?t.value():t;return S||(S=new Dn),y(qe,je,o,a,S)}}return Me?(S||(S=new Dn),yy(e,t,o,a,y,S)):!1}function qv(e){return yt(e)&&Pt(e)==Y}function fu(e,t,o,a){var y=o.length,S=y,L=!a;if(e==null)return!S;for(e=lt(e);y--;){var U=o[y];if(L&&U[2]?U[1]!==e[U[0]]:!(U[0]in e))return!1}for(;++y<S;){U=o[y];var G=U[0],pe=e[G],ge=U[1];if(L&&U[2]){if(pe===r&&!(G in e))return!1}else{var xe=new Dn;if(a)var Me=a(pe,ge,G,e,t,xe);if(!(Me===r?mo(ge,pe,I|j,a,xe):Me))return!1}}return!0}function $f(e){if(!mt(e)||Oy(e))return!1;var t=tr(e)?qm:zn;return t.test(Jr(e))}function Hv(e){return yt(e)&&jt(e)==_}function Gv(e){return yt(e)&&Pt(e)==k}function Vv(e){return yt(e)&&Hs(e.length)&&!!dt[jt(e)]}function Bf(e){return typeof e=="function"?e:e==null?Zt:typeof e=="object"?We(e)?Uf(e[0],e[1]):Yf(e):sd(e)}function hu(e){if(!_o(e))return Qm(e);var t=[];for(var o in lt(e))ot.call(e,o)&&o!="constructor"&&t.push(o);return t}function Zv(e){if(!mt(e))return Ry(e);var t=_o(e),o=[];for(var a in e)a=="constructor"&&(t||!ot.call(e,a))||o.push(a);return o}function du(e,t){return e<t}function jf(e,t){var o=-1,a=Gt(e)?re(e.length):[];return Tr(e,function(y,S,L){a[++o]=t(y,S,L)}),a}function Yf(e){var t=Tu(e);return t.length==1&&t[0][2]?wh(t[0][0],t[0][1]):function(o){return o===e||fu(o,e,t)}}function Uf(e,t){return Eu(e)&&_h(t)?wh(Bn(e),t):function(o){var a=Yu(o,e);return a===r&&a===t?Uu(o,e):mo(t,a,I|j)}}function Es(e,t,o,a,y){e!==t&&au(t,function(S,L){if(y||(y=new Dn),mt(S))Kv(e,t,L,o,Es,a,y);else{var U=a?a(Lu(e,L),S,L+"",e,t,y):r;U===r&&(U=S),ou(e,L,U)}},Vt)}function Kv(e,t,o,a,y,S,L){var U=Lu(e,o),G=Lu(t,o),pe=L.get(G);if(pe){ou(e,o,pe);return}var ge=S?S(U,G,o+"",e,t,L):r,xe=ge===r;if(xe){var Me=We(G),Pe=!Me&&Lr(G),Be=!Me&&!Pe&&Ti(G);ge=G,Me||Pe||Be?We(U)?ge=U:wt(U)?ge=Ht(U):Pe?(xe=!1,ge=Xf(G,!0)):Be?(xe=!1,ge=eh(G,!0)):ge=[]:bo(G)||Xr(G)?(ge=U,Xr(U)?ge=Kh(U):(!mt(U)||tr(U))&&(ge=yh(G))):xe=!1}xe&&(L.set(G,ge),y(ge,G,a,S,L),L.delete(G)),ou(e,o,ge)}function Ff(e,t){var o=e.length;if(o)return t+=t<0?o:0,er(t,o)?e[t]:r}function Wf(e,t,o){t.length?t=gt(t,function(S){return We(S)?function(L){return Kr(L,S.length===1?S[0]:S)}:S}):t=[Zt];var a=-1;t=gt(t,en($e()));var y=jf(e,function(S,L,U){var G=gt(t,function(pe){return pe(S)});return{criteria:G,index:++a,value:S}});return Sm(y,function(S,L){return ly(S,L,o)})}function Qv(e,t){return zf(e,t,function(o,a){return Uu(e,a)})}function zf(e,t,o){for(var a=-1,y=t.length,S={};++a<y;){var L=t[a],U=Kr(e,L);o(U,L)&&vo(S,Er(L,e),U)}return S}function Jv(e){return function(t){return Kr(t,e)}}function pu(e,t,o,a){var y=a?xm:vi,S=-1,L=t.length,U=e;for(e===t&&(t=Ht(t)),o&&(U=gt(e,en(o)));++S<L;)for(var G=0,pe=t[S],ge=o?o(pe):pe;(G=y(U,ge,G,a))>-1;)U!==e&&ws.call(U,G,1),ws.call(e,G,1);return e}function qf(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==S){var S=y;er(y)?ws.call(e,y,1):yu(e,y)}}return e}function gu(e,t){return e+Ss(Af()*(t-e+1))}function Xv(e,t,o,a){for(var y=-1,S=Dt(xs((t-e)/(o||1)),0),L=re(S);S--;)L[a?S:++y]=e,e+=o;return L}function mu(e,t){var o="";if(!e||t<1||t>f)return o;do t%2&&(o+=e),t=Ss(t/2),t&&(e+=e);while(t);return o}function He(e,t){return ku(bh(e,t,Zt),e+"")}function ey(e){return Tf(Mi(e))}function ty(e,t){var o=Mi(e);return Ys(o,Zr(t,0,o.length))}function vo(e,t,o,a){if(!mt(e))return e;t=Er(t,e);for(var y=-1,S=t.length,L=S-1,U=e;U!=null&&++y<S;){var G=Bn(t[y]),pe=o;if(G==="__proto__"||G==="constructor"||G==="prototype")return e;if(y!=L){var ge=U[G];pe=a?a(ge,G,U):r,pe===r&&(pe=mt(ge)?ge:er(t[y+1])?[]:{})}ho(U,G,pe),U=U[G]}return e}var Hf=Cs?function(e,t){return Cs.set(e,t),e}:Zt,ny=bs?function(e,t){return bs(e,"toString",{configurable:!0,enumerable:!1,value:Wu(t),writable:!0})}:Zt;function ry(e){return Ys(Mi(e))}function vn(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 S=re(y);++a<y;)S[a]=e[a+t];return S}function iy(e,t){var o;return Tr(e,function(a,y,S){return o=t(a,y,S),!o}),!!o}function Rs(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=W){for(;a<y;){var S=a+y>>>1,L=e[S];L!==null&&!nn(L)&&(o?L<=t:L<t)?a=S+1:y=S}return y}return vu(e,t,Zt,o)}function vu(e,t,o,a){var y=0,S=e==null?0:e.length;if(S===0)return 0;t=o(t);for(var L=t!==t,U=t===null,G=nn(t),pe=t===r;y<S;){var ge=Ss((y+S)/2),xe=o(e[ge]),Me=xe!==r,Pe=xe===null,Be=xe===xe,qe=nn(xe);if(L)var je=a||Be;else pe?je=Be&&(a||Me):U?je=Be&&Me&&(a||!Pe):G?je=Be&&Me&&!Pe&&(a||!qe):Pe||qe?je=!1:je=a?xe<=t:xe<t;je?y=ge+1:S=ge}return It(S,C)}function Gf(e,t){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var L=e[o],U=t?t(L):L;if(!o||!On(U,G)){var G=U;S[y++]=L===0?0:L}}return S}function Vf(e){return typeof e=="number"?e:nn(e)?g:+e}function tn(e){if(typeof e=="string")return e;if(We(e))return gt(e,tn)+"";if(nn(e))return Df?Df.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mr(e,t,o){var a=-1,y=cs,S=e.length,L=!0,U=[],G=U;if(o)L=!1,y=Ha;else if(S>=l){var pe=t?null:gy(e);if(pe)return hs(pe);L=!1,y=so,G=new Vr}else G=t?[]:U;e:for(;++a<S;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,L&&xe===xe){for(var Me=G.length;Me--;)if(G[Me]===xe)continue e;t&&G.push(xe),U.push(ge)}else y(G,xe,o)||(G!==U&&G.push(xe),U.push(ge))}return U}function yu(e,t){return t=Er(t,e),e=xh(e,t),e==null||delete e[Bn(yn(t))]}function Zf(e,t,o,a){return vo(e,t,o(Kr(e,t)),a)}function Ls(e,t,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&t(e[S],S,e););return o?vn(e,a?0:S,a?S+1:y):vn(e,a?S+1:0,a?y:S)}function Kf(e,t){var o=e;return o instanceof Xe&&(o=o.value()),Ga(t,function(a,y){return y.func.apply(y.thisArg,Ar([a],y.args))},o)}function _u(e,t,o){var a=e.length;if(a<2)return a?Mr(e[0]):[];for(var y=-1,S=re(a);++y<a;)for(var L=e[y],U=-1;++U<a;)U!=y&&(S[y]=po(S[y]||L,e[U],t,o));return Mr(kt(S,1),t,o)}function Qf(e,t,o){for(var a=-1,y=e.length,S=t.length,L={};++a<y;){var U=a<S?t[a]:r;o(L,e[a],U)}return L}function wu(e){return wt(e)?e:[]}function bu(e){return typeof e=="function"?e:Zt}function Er(e,t){return We(e)?e:Eu(e,t)?[e]:Dh(it(e))}var oy=He;function Rr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:vn(e,t,o)}var Jf=Hm||function(e){return Lt.clearTimeout(e)};function Xf(e,t){if(t)return e.slice();var o=e.length,a=wf?wf(o):new e.constructor(o);return e.copy(a),a}function xu(e){var t=new e.constructor(e.byteLength);return new ys(t).set(new ys(e)),t}function sy(e,t){var o=t?xu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function ay(e){var t=new e.constructor(e.source,Ki.exec(e));return t.lastIndex=e.lastIndex,t}function uy(e){return fo?lt(fo.call(e)):{}}function eh(e,t){var o=t?xu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function th(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,S=nn(e),L=t!==r,U=t===null,G=t===t,pe=nn(t);if(!U&&!pe&&!S&&e>t||S&&L&&G&&!U&&!pe||a&&L&&G||!o&&G||!y)return 1;if(!a&&!S&&!pe&&e<t||pe&&o&&y&&!a&&!S||U&&o&&y||!L&&y||!G)return-1}return 0}function ly(e,t,o){for(var a=-1,y=e.criteria,S=t.criteria,L=y.length,U=o.length;++a<L;){var G=th(y[a],S[a]);if(G){if(a>=U)return G;var pe=o[a];return G*(pe=="desc"?-1:1)}}return e.index-t.index}function nh(e,t,o,a){for(var y=-1,S=e.length,L=o.length,U=-1,G=t.length,pe=Dt(S-L,0),ge=re(G+pe),xe=!a;++U<G;)ge[U]=t[U];for(;++y<L;)(xe||y<S)&&(ge[o[y]]=e[y]);for(;pe--;)ge[U++]=e[y++];return ge}function rh(e,t,o,a){for(var y=-1,S=e.length,L=-1,U=o.length,G=-1,pe=t.length,ge=Dt(S-U,0),xe=re(ge+pe),Me=!a;++y<ge;)xe[y]=e[y];for(var Pe=y;++G<pe;)xe[Pe+G]=t[G];for(;++L<U;)(Me||y<S)&&(xe[Pe+o[L]]=e[y++]);return xe}function Ht(e,t){var o=-1,a=e.length;for(t||(t=re(a));++o<a;)t[o]=e[o];return t}function $n(e,t,o,a){var y=!o;o||(o={});for(var S=-1,L=t.length;++S<L;){var U=t[S],G=a?a(o[U],e[U],U,o,e):r;G===r&&(G=e[U]),y?Qn(o,U,G):ho(o,U,G)}return o}function cy(e,t){return $n(e,Mu(e),t)}function fy(e,t){return $n(e,mh(e),t)}function ks(e,t){return function(o,a){var y=We(o)?mm:kv,S=t?t():{};return y(o,e,$e(a,2),S)}}function Ai(e){return He(function(t,o){var a=-1,y=o.length,S=y>1?o[y-1]:r,L=y>2?o[2]:r;for(S=e.length>3&&typeof S=="function"?(y--,S):r,L&&Yt(o[0],o[1],L)&&(S=y<3?r:S,y=1),t=lt(t);++a<y;){var U=o[a];U&&e(t,U,a,S)}return t})}function ih(e,t){return function(o,a){if(o==null)return o;if(!Gt(o))return e(o,a);for(var y=o.length,S=t?y:-1,L=lt(o);(t?S--:++S<y)&&a(L[S],S,L)!==!1;);return o}}function oh(e){return function(t,o,a){for(var y=-1,S=lt(t),L=a(t),U=L.length;U--;){var G=L[e?U:++y];if(o(S[G],G,S)===!1)break}return t}}function hy(e,t,o){var a=t&F,y=yo(e);function S(){var L=this&&this!==Lt&&this instanceof S?y:e;return L.apply(a?o:this,arguments)}return S}function sh(e){return function(t){t=it(t);var o=yi(t)?An(t):r,a=o?o[0]:t.charAt(0),y=o?Rr(o,1).join(""):t.slice(1);return a[e]()+y}}function Di(e){return function(t){return Ga(id(rd(t).replace(xr,"")),e,"")}}function yo(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=Ci(e.prototype),a=e.apply(o,t);return mt(a)?a:o}}function dy(e,t,o){var a=yo(e);function y(){for(var S=arguments.length,L=re(S),U=S,G=Oi(y);U--;)L[U]=arguments[U];var pe=S<3&&L[0]!==G&&L[S-1]!==G?[]:Dr(L,G);if(S-=pe.length,S<o)return fh(e,t,Is,y.placeholder,r,L,pe,r,r,o-S);var ge=this&&this!==Lt&&this instanceof y?a:e;return Xt(ge,this,L)}return y}function ah(e){return function(t,o,a){var y=lt(t);if(!Gt(t)){var S=$e(o,3);t=Mt(t),o=function(U){return S(y[U],U,y)}}var L=e(t,o,a);return L>-1?y[S?t[L]:L]:r}}function uh(e){return Xn(function(t){var o=t.length,a=o,y=gn.prototype.thru;for(e&&t.reverse();a--;){var S=t[a];if(typeof S!="function")throw new pn(v);if(y&&!L&&Bs(S)=="wrapper")var L=new gn([],!0)}for(a=L?a:o;++a<o;){S=t[a];var U=Bs(S),G=U=="wrapper"?Ou(S):r;G&&Ru(G[0])&&G[1]==(ee|oe|K|J)&&!G[4].length&&G[9]==1?L=L[Bs(G[0])].apply(L,G[3]):L=S.length==1&&Ru(S)?L[U]():L.thru(S)}return function(){var pe=arguments,ge=pe[0];if(L&&pe.length==1&&We(ge))return L.plant(ge).value();for(var xe=0,Me=o?t[xe].apply(this,pe):ge;++xe<o;)Me=t[xe].call(this,Me);return Me}})}function Is(e,t,o,a,y,S,L,U,G,pe){var ge=t&ee,xe=t&F,Me=t&X,Pe=t&(oe|ce),Be=t&ve,qe=Me?r:yo(e);function je(){for(var Qe=arguments.length,tt=re(Qe),rn=Qe;rn--;)tt[rn]=arguments[rn];if(Pe)var Ut=Oi(je),on=Am(tt,Ut);if(a&&(tt=nh(tt,a,y,Pe)),S&&(tt=rh(tt,S,L,Pe)),Qe-=on,Pe&&Qe<pe){var bt=Dr(tt,Ut);return fh(e,t,Is,je.placeholder,o,tt,bt,U,G,pe-Qe)}var Tn=xe?o:this,rr=Me?Tn[e]:e;return Qe=tt.length,U?tt=ky(tt,U):Be&&Qe>1&&tt.reverse(),ge&&G<Qe&&(tt.length=G),this&&this!==Lt&&this instanceof je&&(rr=qe||yo(rr)),rr.apply(Tn,tt)}return je}function lh(e,t){return function(o,a){return Uv(o,e,t(a),{})}}function Ps(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=tn(o),a=tn(a)):(o=Vf(o),a=Vf(a)),y=e(o,a)}return y}}function Su(e){return Xn(function(t){return t=gt(t,en($e())),He(function(o){var a=this;return e(t,function(y){return Xt(y,a,o)})})})}function Ns(e,t){t=t===r?" ":tn(t);var o=t.length;if(o<2)return o?mu(t,e):t;var a=mu(t,xs(e/_i(t)));return yi(t)?Rr(An(a),0,e).join(""):a.slice(0,e)}function py(e,t,o,a){var y=t&F,S=yo(e);function L(){for(var U=-1,G=arguments.length,pe=-1,ge=a.length,xe=re(ge+G),Me=this&&this!==Lt&&this instanceof L?S:e;++pe<ge;)xe[pe]=a[pe];for(;G--;)xe[pe++]=arguments[++U];return Xt(Me,y?o:this,xe)}return L}function ch(e){return function(t,o,a){return a&&typeof a!="number"&&Yt(t,o,a)&&(o=a=r),t=nr(t),o===r?(o=t,t=0):o=nr(o),a=a===r?t<o?1:-1:nr(a),Xv(t,o,a,e)}}function $s(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=_n(t),o=_n(o)),e(t,o)}}function fh(e,t,o,a,y,S,L,U,G,pe){var ge=t&oe,xe=ge?L:r,Me=ge?r:L,Pe=ge?S:r,Be=ge?r:S;t|=ge?K:fe,t&=~(ge?fe:K),t&ie||(t&=-4);var qe=[e,t,y,Pe,xe,Be,Me,U,G,pe],je=o.apply(r,qe);return Ru(e)&&Sh(je,qe),je.placeholder=a,Ch(je,e,t)}function Cu(e){var t=At[e];return function(o,a){if(o=_n(o),a=a==null?0:It(ze(a),292),a&&Cf(o)){var y=(it(o)+"e").split("e"),S=t(y[0]+"e"+(+y[1]+a));return y=(it(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var gy=xi&&1/hs(new xi([,-0]))[1]==d?function(e){return new xi(e)}:Hu;function hh(e){return function(t){var o=Pt(t);return o==Y?eu(t):o==k?Lm(t):Cm(t,e(t))}}function Jn(e,t,o,a,y,S,L,U){var G=t&X;if(!G&&typeof e!="function")throw new pn(v);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),L=L===r?L:Dt(ze(L),0),U=U===r?U:ze(U),pe-=y?y.length:0,t&fe){var ge=a,xe=y;a=y=r}var Me=G?r:Ou(e),Pe=[e,t,o,a,y,ge,xe,S,L,U];if(Me&&Ey(Pe,Me),e=Pe[0],t=Pe[1],o=Pe[2],a=Pe[3],y=Pe[4],U=Pe[9]=Pe[9]===r?G?0:e.length:Dt(Pe[9]-pe,0),!U&&t&(oe|ce)&&(t&=-25),!t||t==F)var Be=hy(e,t,o);else t==oe||t==ce?Be=dy(e,t,U):(t==K||t==(F|K))&&!y.length?Be=py(e,t,o,a):Be=Is.apply(r,Pe);var qe=Me?Hf:Sh;return Ch(qe(Be,Pe),e,t)}function dh(e,t,o,a){return e===r||On(e,bi[o])&&!ot.call(a,o)?t:e}function ph(e,t,o,a,y,S){return mt(e)&&mt(t)&&(S.set(t,e),Es(e,t,r,ph,S),S.delete(t)),e}function my(e){return bo(e)?r:e}function gh(e,t,o,a,y,S){var L=o&I,U=e.length,G=t.length;if(U!=G&&!(L&&G>U))return!1;var pe=S.get(e),ge=S.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Me=!0,Pe=o&j?new Vr:r;for(S.set(e,t),S.set(t,e);++xe<U;){var Be=e[xe],qe=t[xe];if(a)var je=L?a(qe,Be,xe,t,e,S):a(Be,qe,xe,e,t,S);if(je!==r){if(je)continue;Me=!1;break}if(Pe){if(!Va(t,function(Qe,tt){if(!so(Pe,tt)&&(Be===Qe||y(Be,Qe,o,a,S)))return Pe.push(tt)})){Me=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){Me=!1;break}}return S.delete(e),S.delete(t),Me}function vy(e,t,o,a,y,S,L){switch(o){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!S(new ys(e),new ys(t)));case ne:case de:case Z:return On(+e,+t);case _e:return e.name==t.name&&e.message==t.message;case _:case q:return e==t+"";case Y:var U=eu;case k:var G=a&I;if(U||(U=hs),e.size!=t.size&&!G)return!1;var pe=L.get(e);if(pe)return pe==t;a|=j,L.set(e,t);var ge=gh(U(e),U(t),a,y,S,L);return L.delete(e),ge;case Q:if(fo)return fo.call(e)==fo.call(t)}return!1}function yy(e,t,o,a,y,S){var L=o&I,U=Au(e),G=U.length,pe=Au(t),ge=pe.length;if(G!=ge&&!L)return!1;for(var xe=G;xe--;){var Me=U[xe];if(!(L?Me in t:ot.call(t,Me)))return!1}var Pe=S.get(e),Be=S.get(t);if(Pe&&Be)return Pe==t&&Be==e;var qe=!0;S.set(e,t),S.set(t,e);for(var je=L;++xe<G;){Me=U[xe];var Qe=e[Me],tt=t[Me];if(a)var rn=L?a(tt,Qe,Me,t,e,S):a(Qe,tt,Me,e,t,S);if(!(rn===r?Qe===tt||y(Qe,tt,o,a,S):rn)){qe=!1;break}je||(je=Me=="constructor")}if(qe&&!je){var Ut=e.constructor,on=t.constructor;Ut!=on&&"constructor"in e&&"constructor"in t&&!(typeof Ut=="function"&&Ut instanceof Ut&&typeof on=="function"&&on instanceof on)&&(qe=!1)}return S.delete(e),S.delete(t),qe}function Xn(e){return ku(bh(e,r,Eh),e+"")}function Au(e){return Pf(e,Mt,Mu)}function Du(e){return Pf(e,Vt,mh)}var Ou=Cs?function(e){return Cs.get(e)}:Hu;function Bs(e){for(var t=e.name+"",o=Si[t],a=ot.call(Si,t)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return t}function Oi(e){var t=ot.call(b,"placeholder")?b:e;return t.placeholder}function $e(){var e=b.iteratee||zu;return e=e===zu?Bf:e,arguments.length?e(arguments[0],arguments[1]):e}function js(e,t){var o=e.__data__;return Dy(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Tu(e){for(var t=Mt(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,_h(y)]}return t}function Qr(e,t){var o=Mm(e,t);return $f(o)?o:r}function _y(e){var t=ot.call(e,Hr),o=e[Hr];try{e[Hr]=r;var a=!0}catch{}var y=ms.call(e);return a&&(t?e[Hr]=o:delete e[Hr]),y}var Mu=nu?function(e){return e==null?[]:(e=lt(e),Cr(nu(e),function(t){return xf.call(e,t)}))}:Gu,mh=nu?function(e){for(var t=[];e;)Ar(t,Mu(e)),e=_s(e);return t}:Gu,Pt=jt;(ru&&Pt(new ru(new ArrayBuffer(1)))!=Le||uo&&Pt(new uo)!=Y||iu&&Pt(iu.resolve())!=u||xi&&Pt(new xi)!=k||lo&&Pt(new lo)!=we)&&(Pt=function(e){var t=jt(e),o=t==De?e.constructor:r,a=o?Jr(o):"";if(a)switch(a){case tv:return Le;case nv:return Y;case rv:return u;case iv:return k;case ov:return we}return t});function wy(e,t,o){for(var a=-1,y=o.length;++a<y;){var S=o[a],L=S.size;switch(S.type){case"drop":e+=L;break;case"dropRight":t-=L;break;case"take":t=It(t,e+L);break;case"takeRight":e=Dt(e,t-L);break}}return{start:e,end:t}}function by(e){var t=e.match(hi);return t?t[1].split(Ct):[]}function vh(e,t,o){t=Er(t,e);for(var a=-1,y=t.length,S=!1;++a<y;){var L=Bn(t[a]);if(!(S=e!=null&&o(e,L)))break;e=e[L]}return S||++a!=y?S:(y=e==null?0:e.length,!!y&&Hs(y)&&er(L,y)&&(We(e)||Xr(e)))}function xy(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&ot.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function yh(e){return typeof e.constructor=="function"&&!_o(e)?Ci(_s(e)):{}}function Sy(e,t,o){var a=e.constructor;switch(t){case Se:return xu(e);case ne:case de:return new a(+e);case Le:return sy(e,o);case Ne:case ke:case Ge:case Je:case Ve:case _t:case ft:case ht:case xn:return eh(e,o);case Y:return new a;case Z:case q:return new a(e);case _:return ay(e);case k:return new a;case Q:return uy(e)}}function Cy(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(fi,`{
|
|
124
|
+
*/var B0=zi.exports,Hc;function j0(){return Hc||(Hc=1,function(i,n){(function(){var r,s="4.17.21",l=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",c="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",A=500,T="__lodash_placeholder__",R=1,P=2,M=4,I=1,j=2,F=1,X=2,ie=4,oe=8,ce=16,K=32,fe=64,ee=128,J=256,ve=512,he=30,te="...",Oe=800,Te=16,N=1,E=2,O=3,d=1/0,f=9007199254740991,w=17976931348623157e292,g=NaN,m=4294967295,C=m-1,W=m>>>1,V=[["ary",ee],["bind",F],["bindKey",X],["curry",oe],["curryRight",ce],["flip",ve],["partial",K],["partialRight",fe],["rearg",J]],ae="[object Arguments]",ue="[object Array]",be="[object AsyncFunction]",ne="[object Boolean]",de="[object Date]",Ce="[object DOMException]",_e="[object Error]",B="[object Function]",z="[object GeneratorFunction]",Y="[object Map]",Z="[object Number]",se="[object Null]",De="[object Object]",u="[object Promise]",h="[object Proxy]",_="[object RegExp]",k="[object Set]",q="[object String]",Q="[object Symbol]",Ae="[object Undefined]",we="[object WeakMap]",Re="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",Ne="[object Float32Array]",ke="[object Float64Array]",Ge="[object Int8Array]",Je="[object Int16Array]",Ve="[object Int32Array]",_t="[object Uint8Array]",ct="[object Uint8ClampedArray]",ft="[object Uint16Array]",xn="[object Uint32Array]",St=/\b__p \+= '';/g,un=/\b(__p \+=) '' \+/g,ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sn=/&(?:amp|lt|gt|quot|#39);/g,Rn=/[&<>"']/g,Ln=RegExp(Sn.source),cn=RegExp(Rn.source),it=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,jn=/<%=([\s\S]+?)%>/g,ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ot=/^\w*$/,Nr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cn=/[\\^$.*+?()[\]{}|]/g,li=RegExp(Cn.source),pr=/^\s+/,ci=/\s/,fi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,La=/\{\n\/\* \[wrapped with (.+)\] \*/,Et=/,? & /,ka=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rt=/[()=,{}\[\]\/\s]/,Ia=/\\(\\)?/g,Gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vi=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Yn=/^0b[01]+$/i,Un=/^\[object .+?Constructor\]$/,$r=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Pa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gr=/($^)/,Na=/['\n\r\u2028\u2029\\]/g,mr="\\ud800-\\udfff",Br="\\u0300-\\u036f",$a="\\ufe20-\\ufe2f",Ba="\\u20d0-\\u20ff",es=Br+$a+Ba,Zi="\\u2700-\\u27bf",ts="a-z\\xdf-\\xf6\\xf8-\\xff",ja="\\xac\\xb1\\xd7\\xf7",Ya="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ua="\\u2000-\\u206f",Ki=" \\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",Qi="A-Z\\xc0-\\xd6\\xd8-\\xde",hi="\\ufe0e\\ufe0f",Ji=ja+Ya+Ua+Ki,Fn="['’]",ns="["+mr+"]",jr="["+Ji+"]",Yr="["+es+"]",rs="\\d+",Xi="["+Zi+"]",eo="["+ts+"]",is="[^"+mr+Ji+rs+Zi+ts+Qi+"]",to="\\ud83c[\\udffb-\\udfff]",di="(?:"+Yr+"|"+to+")",no="[^"+mr+"]",kn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Wn="["+Qi+"]",vr="\\u200d",Ur="(?:"+eo+"|"+is+")",pi="(?:"+Wn+"|"+is+")",os="(?:"+Fn+"(?:d|ll|m|re|s|t|ve))?",ss="(?:"+Fn+"(?:D|LL|M|RE|S|T|VE))?",Fr=di+"?",as="["+hi+"]?",ro="(?:"+vr+"(?:"+[no,kn,An].join("|")+")"+as+Fr+")*",Fa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ze=as+Fr+ro,Kt="(?:"+[Xi,kn,An].join("|")+")"+Ze,yr="(?:"+[no+Yr+"?",Yr,kn,An,ns].join("|")+")",_r=RegExp(Fn,"g"),fn=RegExp(Yr,"g"),Qt=RegExp(to+"(?="+to+")|"+yr+Ze,"g"),wr=RegExp([Wn+"?"+eo+"+"+os+"(?="+[jr,Wn,"$"].join("|")+")",pi+"+"+ss+"(?="+[jr,Wn+Ur,"$"].join("|")+")",Wn+"?"+Ur+"+"+os,Wn+"+"+ss,Wa,Fa,rs,Kt].join("|"),"g"),zn=RegExp("["+vr+mr+es+hi+"]"),qn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,am=["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"],um=-1,dt={};dt[Ne]=dt[ke]=dt[Ge]=dt[Je]=dt[Ve]=dt[_t]=dt[ct]=dt[ft]=dt[xn]=!0,dt[ae]=dt[ue]=dt[Se]=dt[ne]=dt[Le]=dt[de]=dt[_e]=dt[B]=dt[Y]=dt[Z]=dt[De]=dt[_]=dt[k]=dt[q]=dt[we]=!1;var lt={};lt[ae]=lt[ue]=lt[Se]=lt[Le]=lt[ne]=lt[de]=lt[Ne]=lt[ke]=lt[Ge]=lt[Je]=lt[Ve]=lt[Y]=lt[Z]=lt[De]=lt[_]=lt[k]=lt[q]=lt[Q]=lt[_t]=lt[ct]=lt[ft]=lt[xn]=!0,lt[_e]=lt[B]=lt[we]=!1;var lm={À:"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"},cm={"&":"&","<":"<",">":">",'"':""","'":"'"},fm={"&":"&","<":"<",">":">",""":'"',"'":"'"},hm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dm=parseFloat,pm=parseInt,ef=typeof bo=="object"&&bo&&bo.Object===Object&&bo,gm=typeof self=="object"&&self&&self.Object===Object&&self,Lt=ef||gm||Function("return this")(),za=n&&!n.nodeType&&n,Wr=za&&!0&&i&&!i.nodeType&&i,tf=Wr&&Wr.exports===za,qa=tf&&ef.process,hn=function(){try{var H=Wr&&Wr.require&&Wr.require("util").types;return H||qa&&qa.binding&&qa.binding("util")}catch{}}(),nf=hn&&hn.isArrayBuffer,rf=hn&&hn.isDate,of=hn&&hn.isMap,sf=hn&&hn.isRegExp,af=hn&&hn.isSet,uf=hn&&hn.isTypedArray;function Jt(H,le,re){switch(re.length){case 0:return H.call(le);case 1:return H.call(le,re[0]);case 2:return H.call(le,re[0],re[1]);case 3:return H.call(le,re[0],re[1],re[2])}return H.apply(le,re)}function mm(H,le,re,Ie){for(var Fe=-1,nt=H==null?0:H.length;++Fe<nt;){var Ct=H[Fe];le(Ie,Ct,re(Ct),H)}return Ie}function dn(H,le){for(var re=-1,Ie=H==null?0:H.length;++re<Ie&&le(H[re],re,H)!==!1;);return H}function vm(H,le){for(var re=H==null?0:H.length;re--&&le(H[re],re,H)!==!1;);return H}function lf(H,le){for(var re=-1,Ie=H==null?0:H.length;++re<Ie;)if(!le(H[re],re,H))return!1;return!0}function br(H,le){for(var re=-1,Ie=H==null?0:H.length,Fe=0,nt=[];++re<Ie;){var Ct=H[re];le(Ct,re,H)&&(nt[Fe++]=Ct)}return nt}function us(H,le){var re=H==null?0:H.length;return!!re&&gi(H,le,0)>-1}function Ha(H,le,re){for(var Ie=-1,Fe=H==null?0:H.length;++Ie<Fe;)if(re(le,H[Ie]))return!0;return!1}function gt(H,le){for(var re=-1,Ie=H==null?0:H.length,Fe=Array(Ie);++re<Ie;)Fe[re]=le(H[re],re,H);return Fe}function xr(H,le){for(var re=-1,Ie=le.length,Fe=H.length;++re<Ie;)H[Fe+re]=le[re];return H}function Ga(H,le,re,Ie){var Fe=-1,nt=H==null?0:H.length;for(Ie&&nt&&(re=H[++Fe]);++Fe<nt;)re=le(re,H[Fe],Fe,H);return re}function ym(H,le,re,Ie){var Fe=H==null?0:H.length;for(Ie&&Fe&&(re=H[--Fe]);Fe--;)re=le(re,H[Fe],Fe,H);return re}function Va(H,le){for(var re=-1,Ie=H==null?0:H.length;++re<Ie;)if(le(H[re],re,H))return!0;return!1}var _m=Za("length");function wm(H){return H.split("")}function bm(H){return H.match(ka)||[]}function cf(H,le,re){var Ie;return re(H,function(Fe,nt,Ct){if(le(Fe,nt,Ct))return Ie=nt,!1}),Ie}function ls(H,le,re,Ie){for(var Fe=H.length,nt=re+(Ie?1:-1);Ie?nt--:++nt<Fe;)if(le(H[nt],nt,H))return nt;return-1}function gi(H,le,re){return le===le?km(H,le,re):ls(H,ff,re)}function xm(H,le,re,Ie){for(var Fe=re-1,nt=H.length;++Fe<nt;)if(Ie(H[Fe],le))return Fe;return-1}function ff(H){return H!==H}function hf(H,le){var re=H==null?0:H.length;return re?Qa(H,le)/re:g}function Za(H){return function(le){return le==null?r:le[H]}}function Ka(H){return function(le){return H==null?r:H[le]}}function df(H,le,re,Ie,Fe){return Fe(H,function(nt,Ct,ut){re=Ie?(Ie=!1,nt):le(re,nt,Ct,ut)}),re}function Sm(H,le){var re=H.length;for(H.sort(le);re--;)H[re]=H[re].value;return H}function Qa(H,le){for(var re,Ie=-1,Fe=H.length;++Ie<Fe;){var nt=le(H[Ie]);nt!==r&&(re=re===r?nt:re+nt)}return re}function Ja(H,le){for(var re=-1,Ie=Array(H);++re<H;)Ie[re]=le(re);return Ie}function Cm(H,le){return gt(le,function(re){return[re,H[re]]})}function pf(H){return H&&H.slice(0,yf(H)+1).replace(pr,"")}function Xt(H){return function(le){return H(le)}}function Xa(H,le){return gt(le,function(re){return H[re]})}function io(H,le){return H.has(le)}function gf(H,le){for(var re=-1,Ie=H.length;++re<Ie&&gi(le,H[re],0)>-1;);return re}function mf(H,le){for(var re=H.length;re--&&gi(le,H[re],0)>-1;);return re}function Am(H,le){for(var re=H.length,Ie=0;re--;)H[re]===le&&++Ie;return Ie}var Dm=Ka(lm),Om=Ka(cm);function Tm(H){return"\\"+hm[H]}function Mm(H,le){return H==null?r:H[le]}function mi(H){return zn.test(H)}function Em(H){return qn.test(H)}function Rm(H){for(var le,re=[];!(le=H.next()).done;)re.push(le.value);return re}function eu(H){var le=-1,re=Array(H.size);return H.forEach(function(Ie,Fe){re[++le]=[Fe,Ie]}),re}function vf(H,le){return function(re){return H(le(re))}}function Sr(H,le){for(var re=-1,Ie=H.length,Fe=0,nt=[];++re<Ie;){var Ct=H[re];(Ct===le||Ct===T)&&(H[re]=T,nt[Fe++]=re)}return nt}function cs(H){var le=-1,re=Array(H.size);return H.forEach(function(Ie){re[++le]=Ie}),re}function Lm(H){var le=-1,re=Array(H.size);return H.forEach(function(Ie){re[++le]=[Ie,Ie]}),re}function km(H,le,re){for(var Ie=re-1,Fe=H.length;++Ie<Fe;)if(H[Ie]===le)return Ie;return-1}function Im(H,le,re){for(var Ie=re+1;Ie--;)if(H[Ie]===le)return Ie;return Ie}function vi(H){return mi(H)?Nm(H):_m(H)}function Dn(H){return mi(H)?$m(H):wm(H)}function yf(H){for(var le=H.length;le--&&ci.test(H.charAt(le)););return le}var Pm=Ka(fm);function Nm(H){for(var le=Qt.lastIndex=0;Qt.test(H);)++le;return le}function $m(H){return H.match(Qt)||[]}function Bm(H){return H.match(wr)||[]}var jm=function H(le){le=le==null?Lt:yi.defaults(Lt.Object(),le,yi.pick(Lt,am));var re=le.Array,Ie=le.Date,Fe=le.Error,nt=le.Function,Ct=le.Math,ut=le.Object,tu=le.RegExp,Ym=le.String,pn=le.TypeError,fs=re.prototype,Um=nt.prototype,_i=ut.prototype,hs=le["__core-js_shared__"],ds=Um.toString,st=_i.hasOwnProperty,Fm=0,_f=function(){var e=/[^.]+$/.exec(hs&&hs.keys&&hs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ps=_i.toString,Wm=ds.call(ut),zm=Lt._,qm=tu("^"+ds.call(st).replace(Cn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gs=tf?le.Buffer:r,Cr=le.Symbol,ms=le.Uint8Array,wf=gs?gs.allocUnsafe:r,vs=vf(ut.getPrototypeOf,ut),bf=ut.create,xf=_i.propertyIsEnumerable,ys=fs.splice,Sf=Cr?Cr.isConcatSpreadable:r,oo=Cr?Cr.iterator:r,zr=Cr?Cr.toStringTag:r,_s=function(){try{var e=Zr(ut,"defineProperty");return e({},"",{}),e}catch{}}(),Hm=le.clearTimeout!==Lt.clearTimeout&&le.clearTimeout,Gm=Ie&&Ie.now!==Lt.Date.now&&Ie.now,Vm=le.setTimeout!==Lt.setTimeout&&le.setTimeout,ws=Ct.ceil,bs=Ct.floor,nu=ut.getOwnPropertySymbols,Zm=gs?gs.isBuffer:r,Cf=le.isFinite,Km=fs.join,Qm=vf(ut.keys,ut),At=Ct.max,Pt=Ct.min,Jm=Ie.now,Xm=le.parseInt,Af=Ct.random,ev=fs.reverse,ru=Zr(le,"DataView"),so=Zr(le,"Map"),iu=Zr(le,"Promise"),wi=Zr(le,"Set"),ao=Zr(le,"WeakMap"),uo=Zr(ut,"create"),xs=ao&&new ao,bi={},tv=Kr(ru),nv=Kr(so),rv=Kr(iu),iv=Kr(wi),ov=Kr(ao),Ss=Cr?Cr.prototype:r,lo=Ss?Ss.valueOf:r,Df=Ss?Ss.toString:r;function b(e){if(yt(e)&&!We(e)&&!(e instanceof Xe)){if(e instanceof gn)return e;if(st.call(e,"__wrapped__"))return Oh(e)}return new gn(e)}var xi=function(){function e(){}return function(t){if(!mt(t))return{};if(bf)return bf(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Cs(){}function gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:it,evaluate:It,interpolate:jn,variable:"",imports:{_:b}},b.prototype=Cs.prototype,b.prototype.constructor=b,gn.prototype=xi(Cs.prototype),gn.prototype.constructor=gn;function Xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function sv(){var e=new Xe(this.__wrapped__);return e.__actions__=Ht(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ht(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ht(this.__views__),e}function av(){if(this.__filtered__){var e=new Xe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function uv(){var e=this.__wrapped__.value(),t=this.__dir__,o=We(e),a=t<0,y=o?e.length:0,S=wy(0,y,this.__views__),L=S.start,U=S.end,G=U-L,pe=a?U:L-1,ge=this.__iteratees__,xe=ge.length,Me=0,Pe=Pt(G,this.__takeCount__);if(!o||!a&&y==G&&Pe==G)return Kf(e,this.__actions__);var Be=[];e:for(;G--&&Me<Pe;){pe+=t;for(var qe=-1,je=e[pe];++qe<xe;){var Qe=ge[qe],tt=Qe.iteratee,nn=Qe.type,Ft=tt(je);if(nn==E)je=Ft;else if(!Ft){if(nn==N)continue e;break e}}Be[Me++]=je}return Be}Xe.prototype=xi(Cs.prototype),Xe.prototype.constructor=Xe;function qr(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 lv(){this.__data__=uo?uo(null):{},this.size=0}function cv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function fv(e){var t=this.__data__;if(uo){var o=t[e];return o===x?r:o}return st.call(t,e)?t[e]:r}function hv(e){var t=this.__data__;return uo?t[e]!==r:st.call(t,e)}function dv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=uo&&t===r?x:t,this}qr.prototype.clear=lv,qr.prototype.delete=cv,qr.prototype.get=fv,qr.prototype.has=hv,qr.prototype.set=dv;function Hn(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 pv(){this.__data__=[],this.size=0}function gv(e){var t=this.__data__,o=As(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():ys.call(t,o,1),--this.size,!0}function mv(e){var t=this.__data__,o=As(t,e);return o<0?r:t[o][1]}function vv(e){return As(this.__data__,e)>-1}function yv(e,t){var o=this.__data__,a=As(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Hn.prototype.clear=pv,Hn.prototype.delete=gv,Hn.prototype.get=mv,Hn.prototype.has=vv,Hn.prototype.set=yv;function Gn(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.size=0,this.__data__={hash:new qr,map:new(so||Hn),string:new qr}}function wv(e){var t=$s(this,e).delete(e);return this.size-=t?1:0,t}function bv(e){return $s(this,e).get(e)}function xv(e){return $s(this,e).has(e)}function Sv(e,t){var o=$s(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Gn.prototype.clear=_v,Gn.prototype.delete=wv,Gn.prototype.get=bv,Gn.prototype.has=xv,Gn.prototype.set=Sv;function Hr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Gn;++t<o;)this.add(e[t])}function Cv(e){return this.__data__.set(e,x),this}function Av(e){return this.__data__.has(e)}Hr.prototype.add=Hr.prototype.push=Cv,Hr.prototype.has=Av;function On(e){var t=this.__data__=new Hn(e);this.size=t.size}function Dv(){this.__data__=new Hn,this.size=0}function Ov(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Tv(e){return this.__data__.get(e)}function Mv(e){return this.__data__.has(e)}function Ev(e,t){var o=this.__data__;if(o instanceof Hn){var a=o.__data__;if(!so||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Gn(a)}return o.set(e,t),this.size=o.size,this}On.prototype.clear=Dv,On.prototype.delete=Ov,On.prototype.get=Tv,On.prototype.has=Mv,On.prototype.set=Ev;function Of(e,t){var o=We(e),a=!o&&Qr(e),y=!o&&!a&&Mr(e),S=!o&&!a&&!y&&Di(e),L=o||a||y||S,U=L?Ja(e.length,Ym):[],G=U.length;for(var pe in e)(t||st.call(e,pe))&&!(L&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||S&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Qn(pe,G)))&&U.push(pe);return U}function Tf(e){var t=e.length;return t?e[gu(0,t-1)]:r}function Rv(e,t){return Bs(Ht(e),Gr(t,0,e.length))}function Lv(e){return Bs(Ht(e))}function ou(e,t,o){(o!==r&&!Tn(e[t],o)||o===r&&!(t in e))&&Vn(e,t,o)}function co(e,t,o){var a=e[t];(!(st.call(e,t)&&Tn(a,o))||o===r&&!(t in e))&&Vn(e,t,o)}function As(e,t){for(var o=e.length;o--;)if(Tn(e[o][0],t))return o;return-1}function kv(e,t,o,a){return Ar(e,function(y,S,L){t(a,y,o(y),L)}),a}function Mf(e,t){return e&&Pn(t,Tt(t),e)}function Iv(e,t){return e&&Pn(t,Vt(t),e)}function Vn(e,t,o){t=="__proto__"&&_s?_s(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function su(e,t){for(var o=-1,a=t.length,y=re(a),S=e==null;++o<a;)y[o]=S?r:Yu(e,t[o]);return y}function Gr(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,S){var L,U=t&R,G=t&P,pe=t&M;if(o&&(L=y?o(e,a,y,S):o(e)),L!==r)return L;if(!mt(e))return e;var ge=We(e);if(ge){if(L=xy(e),!U)return Ht(e,L)}else{var xe=Nt(e),Me=xe==B||xe==z;if(Mr(e))return Xf(e,U);if(xe==De||xe==ae||Me&&!y){if(L=G||Me?{}:yh(e),!U)return G?fy(e,Iv(L,e)):cy(e,Mf(L,e))}else{if(!lt[xe])return y?e:{};L=Sy(e,xe,U)}}S||(S=new On);var Pe=S.get(e);if(Pe)return Pe;S.set(e,L),Gh(e)?e.forEach(function(je){L.add(mn(je,t,o,je,e,S))}):qh(e)&&e.forEach(function(je,Qe){L.set(Qe,mn(je,t,o,Qe,e,S))});var Be=pe?G?Du:Au:G?Vt:Tt,qe=ge?r:Be(e);return dn(qe||e,function(je,Qe){qe&&(Qe=je,je=e[Qe]),co(L,Qe,mn(je,t,o,Qe,e,S))}),L}function Pv(e){var t=Tt(e);return function(o){return Ef(o,e,t)}}function Ef(e,t,o){var a=o.length;if(e==null)return!a;for(e=ut(e);a--;){var y=o[a],S=t[y],L=e[y];if(L===r&&!(y in e)||!S(L))return!1}return!0}function Rf(e,t,o){if(typeof e!="function")throw new pn(v);return yo(function(){e.apply(r,o)},t)}function fo(e,t,o,a){var y=-1,S=us,L=!0,U=e.length,G=[],pe=t.length;if(!U)return G;o&&(t=gt(t,Xt(o))),a?(S=Ha,L=!1):t.length>=l&&(S=io,L=!1,t=new Hr(t));e:for(;++y<U;){var ge=e[y],xe=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,L&&xe===xe){for(var Me=pe;Me--;)if(t[Me]===xe)continue e;G.push(ge)}else S(t,xe,a)||G.push(ge)}return G}var Ar=ih(In),Lf=ih(uu,!0);function Nv(e,t){var o=!0;return Ar(e,function(a,y,S){return o=!!t(a,y,S),o}),o}function Ds(e,t,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],L=t(S);if(L!=null&&(U===r?L===L&&!tn(L):o(L,U)))var U=L,G=S}return G}function $v(e,t,o,a){var y=e.length;for(o=ze(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:ze(a),a<0&&(a+=y),a=o>a?0:Zh(a);o<a;)e[o++]=t;return e}function kf(e,t){var o=[];return Ar(e,function(a,y,S){t(a,y,S)&&o.push(a)}),o}function kt(e,t,o,a,y){var S=-1,L=e.length;for(o||(o=Ay),y||(y=[]);++S<L;){var U=e[S];t>0&&o(U)?t>1?kt(U,t-1,o,a,y):xr(y,U):a||(y[y.length]=U)}return y}var au=oh(),If=oh(!0);function In(e,t){return e&&au(e,t,Tt)}function uu(e,t){return e&&If(e,t,Tt)}function Os(e,t){return br(t,function(o){return Jn(e[o])})}function Vr(e,t){t=Or(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[Nn(t[o++])];return o&&o==a?e:r}function Pf(e,t,o){var a=t(e);return We(e)?a:xr(a,o(e))}function Yt(e){return e==null?e===r?Ae:se:zr&&zr in ut(e)?_y(e):Ly(e)}function lu(e,t){return e>t}function Bv(e,t){return e!=null&&st.call(e,t)}function jv(e,t){return e!=null&&t in ut(e)}function Yv(e,t,o){return e>=Pt(t,o)&&e<At(t,o)}function cu(e,t,o){for(var a=o?Ha:us,y=e[0].length,S=e.length,L=S,U=re(S),G=1/0,pe=[];L--;){var ge=e[L];L&&t&&(ge=gt(ge,Xt(t))),G=Pt(ge.length,G),U[L]=!o&&(t||y>=120&&ge.length>=120)?new Hr(L&&ge):r}ge=e[0];var xe=-1,Me=U[0];e:for(;++xe<y&&pe.length<G;){var Pe=ge[xe],Be=t?t(Pe):Pe;if(Pe=o||Pe!==0?Pe:0,!(Me?io(Me,Be):a(pe,Be,o))){for(L=S;--L;){var qe=U[L];if(!(qe?io(qe,Be):a(e[L],Be,o)))continue e}Me&&Me.push(Be),pe.push(Pe)}}return pe}function Uv(e,t,o,a){return In(e,function(y,S,L){t(a,o(y),S,L)}),a}function ho(e,t,o){t=Or(t,e),e=xh(e,t);var a=e==null?e:e[Nn(yn(t))];return a==null?r:Jt(a,e,o)}function Nf(e){return yt(e)&&Yt(e)==ae}function Fv(e){return yt(e)&&Yt(e)==Se}function Wv(e){return yt(e)&&Yt(e)==de}function po(e,t,o,a,y){return e===t?!0:e==null||t==null||!yt(e)&&!yt(t)?e!==e&&t!==t:zv(e,t,o,a,po,y)}function zv(e,t,o,a,y,S){var L=We(e),U=We(t),G=L?ue:Nt(e),pe=U?ue:Nt(t);G=G==ae?De:G,pe=pe==ae?De:pe;var ge=G==De,xe=pe==De,Me=G==pe;if(Me&&Mr(e)){if(!Mr(t))return!1;L=!0,ge=!1}if(Me&&!ge)return S||(S=new On),L||Di(e)?gh(e,t,o,a,y,S):vy(e,t,G,o,a,y,S);if(!(o&I)){var Pe=ge&&st.call(e,"__wrapped__"),Be=xe&&st.call(t,"__wrapped__");if(Pe||Be){var qe=Pe?e.value():e,je=Be?t.value():t;return S||(S=new On),y(qe,je,o,a,S)}}return Me?(S||(S=new On),yy(e,t,o,a,y,S)):!1}function qv(e){return yt(e)&&Nt(e)==Y}function fu(e,t,o,a){var y=o.length,S=y,L=!a;if(e==null)return!S;for(e=ut(e);y--;){var U=o[y];if(L&&U[2]?U[1]!==e[U[0]]:!(U[0]in e))return!1}for(;++y<S;){U=o[y];var G=U[0],pe=e[G],ge=U[1];if(L&&U[2]){if(pe===r&&!(G in e))return!1}else{var xe=new On;if(a)var Me=a(pe,ge,G,e,t,xe);if(!(Me===r?po(ge,pe,I|j,a,xe):Me))return!1}}return!0}function $f(e){if(!mt(e)||Oy(e))return!1;var t=Jn(e)?qm:Un;return t.test(Kr(e))}function Hv(e){return yt(e)&&Yt(e)==_}function Gv(e){return yt(e)&&Nt(e)==k}function Vv(e){return yt(e)&&zs(e.length)&&!!dt[Yt(e)]}function Bf(e){return typeof e=="function"?e:e==null?Zt:typeof e=="object"?We(e)?Uf(e[0],e[1]):Yf(e):sd(e)}function hu(e){if(!vo(e))return Qm(e);var t=[];for(var o in ut(e))st.call(e,o)&&o!="constructor"&&t.push(o);return t}function Zv(e){if(!mt(e))return Ry(e);var t=vo(e),o=[];for(var a in e)a=="constructor"&&(t||!st.call(e,a))||o.push(a);return o}function du(e,t){return e<t}function jf(e,t){var o=-1,a=Gt(e)?re(e.length):[];return Ar(e,function(y,S,L){a[++o]=t(y,S,L)}),a}function Yf(e){var t=Tu(e);return t.length==1&&t[0][2]?wh(t[0][0],t[0][1]):function(o){return o===e||fu(o,e,t)}}function Uf(e,t){return Eu(e)&&_h(t)?wh(Nn(e),t):function(o){var a=Yu(o,e);return a===r&&a===t?Uu(o,e):po(t,a,I|j)}}function Ts(e,t,o,a,y){e!==t&&au(t,function(S,L){if(y||(y=new On),mt(S))Kv(e,t,L,o,Ts,a,y);else{var U=a?a(Lu(e,L),S,L+"",e,t,y):r;U===r&&(U=S),ou(e,L,U)}},Vt)}function Kv(e,t,o,a,y,S,L){var U=Lu(e,o),G=Lu(t,o),pe=L.get(G);if(pe){ou(e,o,pe);return}var ge=S?S(U,G,o+"",e,t,L):r,xe=ge===r;if(xe){var Me=We(G),Pe=!Me&&Mr(G),Be=!Me&&!Pe&&Di(G);ge=G,Me||Pe||Be?We(U)?ge=U:wt(U)?ge=Ht(U):Pe?(xe=!1,ge=Xf(G,!0)):Be?(xe=!1,ge=eh(G,!0)):ge=[]:_o(G)||Qr(G)?(ge=U,Qr(U)?ge=Kh(U):(!mt(U)||Jn(U))&&(ge=yh(G))):xe=!1}xe&&(L.set(G,ge),y(ge,G,a,S,L),L.delete(G)),ou(e,o,ge)}function Ff(e,t){var o=e.length;if(o)return t+=t<0?o:0,Qn(t,o)?e[t]:r}function Wf(e,t,o){t.length?t=gt(t,function(S){return We(S)?function(L){return Vr(L,S.length===1?S[0]:S)}:S}):t=[Zt];var a=-1;t=gt(t,Xt($e()));var y=jf(e,function(S,L,U){var G=gt(t,function(pe){return pe(S)});return{criteria:G,index:++a,value:S}});return Sm(y,function(S,L){return ly(S,L,o)})}function Qv(e,t){return zf(e,t,function(o,a){return Uu(e,a)})}function zf(e,t,o){for(var a=-1,y=t.length,S={};++a<y;){var L=t[a],U=Vr(e,L);o(U,L)&&go(S,Or(L,e),U)}return S}function Jv(e){return function(t){return Vr(t,e)}}function pu(e,t,o,a){var y=a?xm:gi,S=-1,L=t.length,U=e;for(e===t&&(t=Ht(t)),o&&(U=gt(e,Xt(o)));++S<L;)for(var G=0,pe=t[S],ge=o?o(pe):pe;(G=y(U,ge,G,a))>-1;)U!==e&&ys.call(U,G,1),ys.call(e,G,1);return e}function qf(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==S){var S=y;Qn(y)?ys.call(e,y,1):yu(e,y)}}return e}function gu(e,t){return e+bs(Af()*(t-e+1))}function Xv(e,t,o,a){for(var y=-1,S=At(ws((t-e)/(o||1)),0),L=re(S);S--;)L[a?S:++y]=e,e+=o;return L}function mu(e,t){var o="";if(!e||t<1||t>f)return o;do t%2&&(o+=e),t=bs(t/2),t&&(e+=e);while(t);return o}function He(e,t){return ku(bh(e,t,Zt),e+"")}function ey(e){return Tf(Oi(e))}function ty(e,t){var o=Oi(e);return Bs(o,Gr(t,0,o.length))}function go(e,t,o,a){if(!mt(e))return e;t=Or(t,e);for(var y=-1,S=t.length,L=S-1,U=e;U!=null&&++y<S;){var G=Nn(t[y]),pe=o;if(G==="__proto__"||G==="constructor"||G==="prototype")return e;if(y!=L){var ge=U[G];pe=a?a(ge,G,U):r,pe===r&&(pe=mt(ge)?ge:Qn(t[y+1])?[]:{})}co(U,G,pe),U=U[G]}return e}var Hf=xs?function(e,t){return xs.set(e,t),e}:Zt,ny=_s?function(e,t){return _s(e,"toString",{configurable:!0,enumerable:!1,value:Wu(t),writable:!0})}:Zt;function ry(e){return Bs(Oi(e))}function vn(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 S=re(y);++a<y;)S[a]=e[a+t];return S}function iy(e,t){var o;return Ar(e,function(a,y,S){return o=t(a,y,S),!o}),!!o}function Ms(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=W){for(;a<y;){var S=a+y>>>1,L=e[S];L!==null&&!tn(L)&&(o?L<=t:L<t)?a=S+1:y=S}return y}return vu(e,t,Zt,o)}function vu(e,t,o,a){var y=0,S=e==null?0:e.length;if(S===0)return 0;t=o(t);for(var L=t!==t,U=t===null,G=tn(t),pe=t===r;y<S;){var ge=bs((y+S)/2),xe=o(e[ge]),Me=xe!==r,Pe=xe===null,Be=xe===xe,qe=tn(xe);if(L)var je=a||Be;else pe?je=Be&&(a||Me):U?je=Be&&Me&&(a||!Pe):G?je=Be&&Me&&!Pe&&(a||!qe):Pe||qe?je=!1:je=a?xe<=t:xe<t;je?y=ge+1:S=ge}return Pt(S,C)}function Gf(e,t){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var L=e[o],U=t?t(L):L;if(!o||!Tn(U,G)){var G=U;S[y++]=L===0?0:L}}return S}function Vf(e){return typeof e=="number"?e:tn(e)?g:+e}function en(e){if(typeof e=="string")return e;if(We(e))return gt(e,en)+"";if(tn(e))return Df?Df.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Dr(e,t,o){var a=-1,y=us,S=e.length,L=!0,U=[],G=U;if(o)L=!1,y=Ha;else if(S>=l){var pe=t?null:gy(e);if(pe)return cs(pe);L=!1,y=io,G=new Hr}else G=t?[]:U;e:for(;++a<S;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,L&&xe===xe){for(var Me=G.length;Me--;)if(G[Me]===xe)continue e;t&&G.push(xe),U.push(ge)}else y(G,xe,o)||(G!==U&&G.push(xe),U.push(ge))}return U}function yu(e,t){return t=Or(t,e),e=xh(e,t),e==null||delete e[Nn(yn(t))]}function Zf(e,t,o,a){return go(e,t,o(Vr(e,t)),a)}function Es(e,t,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&t(e[S],S,e););return o?vn(e,a?0:S,a?S+1:y):vn(e,a?S+1:0,a?y:S)}function Kf(e,t){var o=e;return o instanceof Xe&&(o=o.value()),Ga(t,function(a,y){return y.func.apply(y.thisArg,xr([a],y.args))},o)}function _u(e,t,o){var a=e.length;if(a<2)return a?Dr(e[0]):[];for(var y=-1,S=re(a);++y<a;)for(var L=e[y],U=-1;++U<a;)U!=y&&(S[y]=fo(S[y]||L,e[U],t,o));return Dr(kt(S,1),t,o)}function Qf(e,t,o){for(var a=-1,y=e.length,S=t.length,L={};++a<y;){var U=a<S?t[a]:r;o(L,e[a],U)}return L}function wu(e){return wt(e)?e:[]}function bu(e){return typeof e=="function"?e:Zt}function Or(e,t){return We(e)?e:Eu(e,t)?[e]:Dh(ot(e))}var oy=He;function Tr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:vn(e,t,o)}var Jf=Hm||function(e){return Lt.clearTimeout(e)};function Xf(e,t){if(t)return e.slice();var o=e.length,a=wf?wf(o):new e.constructor(o);return e.copy(a),a}function xu(e){var t=new e.constructor(e.byteLength);return new ms(t).set(new ms(e)),t}function sy(e,t){var o=t?xu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function ay(e){var t=new e.constructor(e.source,Vi.exec(e));return t.lastIndex=e.lastIndex,t}function uy(e){return lo?ut(lo.call(e)):{}}function eh(e,t){var o=t?xu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function th(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,S=tn(e),L=t!==r,U=t===null,G=t===t,pe=tn(t);if(!U&&!pe&&!S&&e>t||S&&L&&G&&!U&&!pe||a&&L&&G||!o&&G||!y)return 1;if(!a&&!S&&!pe&&e<t||pe&&o&&y&&!a&&!S||U&&o&&y||!L&&y||!G)return-1}return 0}function ly(e,t,o){for(var a=-1,y=e.criteria,S=t.criteria,L=y.length,U=o.length;++a<L;){var G=th(y[a],S[a]);if(G){if(a>=U)return G;var pe=o[a];return G*(pe=="desc"?-1:1)}}return e.index-t.index}function nh(e,t,o,a){for(var y=-1,S=e.length,L=o.length,U=-1,G=t.length,pe=At(S-L,0),ge=re(G+pe),xe=!a;++U<G;)ge[U]=t[U];for(;++y<L;)(xe||y<S)&&(ge[o[y]]=e[y]);for(;pe--;)ge[U++]=e[y++];return ge}function rh(e,t,o,a){for(var y=-1,S=e.length,L=-1,U=o.length,G=-1,pe=t.length,ge=At(S-U,0),xe=re(ge+pe),Me=!a;++y<ge;)xe[y]=e[y];for(var Pe=y;++G<pe;)xe[Pe+G]=t[G];for(;++L<U;)(Me||y<S)&&(xe[Pe+o[L]]=e[y++]);return xe}function Ht(e,t){var o=-1,a=e.length;for(t||(t=re(a));++o<a;)t[o]=e[o];return t}function Pn(e,t,o,a){var y=!o;o||(o={});for(var S=-1,L=t.length;++S<L;){var U=t[S],G=a?a(o[U],e[U],U,o,e):r;G===r&&(G=e[U]),y?Vn(o,U,G):co(o,U,G)}return o}function cy(e,t){return Pn(e,Mu(e),t)}function fy(e,t){return Pn(e,mh(e),t)}function Rs(e,t){return function(o,a){var y=We(o)?mm:kv,S=t?t():{};return y(o,e,$e(a,2),S)}}function Si(e){return He(function(t,o){var a=-1,y=o.length,S=y>1?o[y-1]:r,L=y>2?o[2]:r;for(S=e.length>3&&typeof S=="function"?(y--,S):r,L&&Ut(o[0],o[1],L)&&(S=y<3?r:S,y=1),t=ut(t);++a<y;){var U=o[a];U&&e(t,U,a,S)}return t})}function ih(e,t){return function(o,a){if(o==null)return o;if(!Gt(o))return e(o,a);for(var y=o.length,S=t?y:-1,L=ut(o);(t?S--:++S<y)&&a(L[S],S,L)!==!1;);return o}}function oh(e){return function(t,o,a){for(var y=-1,S=ut(t),L=a(t),U=L.length;U--;){var G=L[e?U:++y];if(o(S[G],G,S)===!1)break}return t}}function hy(e,t,o){var a=t&F,y=mo(e);function S(){var L=this&&this!==Lt&&this instanceof S?y:e;return L.apply(a?o:this,arguments)}return S}function sh(e){return function(t){t=ot(t);var o=mi(t)?Dn(t):r,a=o?o[0]:t.charAt(0),y=o?Tr(o,1).join(""):t.slice(1);return a[e]()+y}}function Ci(e){return function(t){return Ga(id(rd(t).replace(_r,"")),e,"")}}function mo(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=xi(e.prototype),a=e.apply(o,t);return mt(a)?a:o}}function dy(e,t,o){var a=mo(e);function y(){for(var S=arguments.length,L=re(S),U=S,G=Ai(y);U--;)L[U]=arguments[U];var pe=S<3&&L[0]!==G&&L[S-1]!==G?[]:Sr(L,G);if(S-=pe.length,S<o)return fh(e,t,Ls,y.placeholder,r,L,pe,r,r,o-S);var ge=this&&this!==Lt&&this instanceof y?a:e;return Jt(ge,this,L)}return y}function ah(e){return function(t,o,a){var y=ut(t);if(!Gt(t)){var S=$e(o,3);t=Tt(t),o=function(U){return S(y[U],U,y)}}var L=e(t,o,a);return L>-1?y[S?t[L]:L]:r}}function uh(e){return Kn(function(t){var o=t.length,a=o,y=gn.prototype.thru;for(e&&t.reverse();a--;){var S=t[a];if(typeof S!="function")throw new pn(v);if(y&&!L&&Ns(S)=="wrapper")var L=new gn([],!0)}for(a=L?a:o;++a<o;){S=t[a];var U=Ns(S),G=U=="wrapper"?Ou(S):r;G&&Ru(G[0])&&G[1]==(ee|oe|K|J)&&!G[4].length&&G[9]==1?L=L[Ns(G[0])].apply(L,G[3]):L=S.length==1&&Ru(S)?L[U]():L.thru(S)}return function(){var pe=arguments,ge=pe[0];if(L&&pe.length==1&&We(ge))return L.plant(ge).value();for(var xe=0,Me=o?t[xe].apply(this,pe):ge;++xe<o;)Me=t[xe].call(this,Me);return Me}})}function Ls(e,t,o,a,y,S,L,U,G,pe){var ge=t&ee,xe=t&F,Me=t&X,Pe=t&(oe|ce),Be=t&ve,qe=Me?r:mo(e);function je(){for(var Qe=arguments.length,tt=re(Qe),nn=Qe;nn--;)tt[nn]=arguments[nn];if(Pe)var Ft=Ai(je),rn=Am(tt,Ft);if(a&&(tt=nh(tt,a,y,Pe)),S&&(tt=rh(tt,S,L,Pe)),Qe-=rn,Pe&&Qe<pe){var bt=Sr(tt,Ft);return fh(e,t,Ls,je.placeholder,o,tt,bt,U,G,pe-Qe)}var Mn=xe?o:this,er=Me?Mn[e]:e;return Qe=tt.length,U?tt=ky(tt,U):Be&&Qe>1&&tt.reverse(),ge&&G<Qe&&(tt.length=G),this&&this!==Lt&&this instanceof je&&(er=qe||mo(er)),er.apply(Mn,tt)}return je}function lh(e,t){return function(o,a){return Uv(o,e,t(a),{})}}function ks(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=en(o),a=en(a)):(o=Vf(o),a=Vf(a)),y=e(o,a)}return y}}function Su(e){return Kn(function(t){return t=gt(t,Xt($e())),He(function(o){var a=this;return e(t,function(y){return Jt(y,a,o)})})})}function Is(e,t){t=t===r?" ":en(t);var o=t.length;if(o<2)return o?mu(t,e):t;var a=mu(t,ws(e/vi(t)));return mi(t)?Tr(Dn(a),0,e).join(""):a.slice(0,e)}function py(e,t,o,a){var y=t&F,S=mo(e);function L(){for(var U=-1,G=arguments.length,pe=-1,ge=a.length,xe=re(ge+G),Me=this&&this!==Lt&&this instanceof L?S:e;++pe<ge;)xe[pe]=a[pe];for(;G--;)xe[pe++]=arguments[++U];return Jt(Me,y?o:this,xe)}return L}function ch(e){return function(t,o,a){return a&&typeof a!="number"&&Ut(t,o,a)&&(o=a=r),t=Xn(t),o===r?(o=t,t=0):o=Xn(o),a=a===r?t<o?1:-1:Xn(a),Xv(t,o,a,e)}}function Ps(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=_n(t),o=_n(o)),e(t,o)}}function fh(e,t,o,a,y,S,L,U,G,pe){var ge=t&oe,xe=ge?L:r,Me=ge?r:L,Pe=ge?S:r,Be=ge?r:S;t|=ge?K:fe,t&=~(ge?fe:K),t&ie||(t&=-4);var qe=[e,t,y,Pe,xe,Be,Me,U,G,pe],je=o.apply(r,qe);return Ru(e)&&Sh(je,qe),je.placeholder=a,Ch(je,e,t)}function Cu(e){var t=Ct[e];return function(o,a){if(o=_n(o),a=a==null?0:Pt(ze(a),292),a&&Cf(o)){var y=(ot(o)+"e").split("e"),S=t(y[0]+"e"+(+y[1]+a));return y=(ot(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var gy=wi&&1/cs(new wi([,-0]))[1]==d?function(e){return new wi(e)}:Hu;function hh(e){return function(t){var o=Nt(t);return o==Y?eu(t):o==k?Lm(t):Cm(t,e(t))}}function Zn(e,t,o,a,y,S,L,U){var G=t&X;if(!G&&typeof e!="function")throw new pn(v);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),L=L===r?L:At(ze(L),0),U=U===r?U:ze(U),pe-=y?y.length:0,t&fe){var ge=a,xe=y;a=y=r}var Me=G?r:Ou(e),Pe=[e,t,o,a,y,ge,xe,S,L,U];if(Me&&Ey(Pe,Me),e=Pe[0],t=Pe[1],o=Pe[2],a=Pe[3],y=Pe[4],U=Pe[9]=Pe[9]===r?G?0:e.length:At(Pe[9]-pe,0),!U&&t&(oe|ce)&&(t&=-25),!t||t==F)var Be=hy(e,t,o);else t==oe||t==ce?Be=dy(e,t,U):(t==K||t==(F|K))&&!y.length?Be=py(e,t,o,a):Be=Ls.apply(r,Pe);var qe=Me?Hf:Sh;return Ch(qe(Be,Pe),e,t)}function dh(e,t,o,a){return e===r||Tn(e,_i[o])&&!st.call(a,o)?t:e}function ph(e,t,o,a,y,S){return mt(e)&&mt(t)&&(S.set(t,e),Ts(e,t,r,ph,S),S.delete(t)),e}function my(e){return _o(e)?r:e}function gh(e,t,o,a,y,S){var L=o&I,U=e.length,G=t.length;if(U!=G&&!(L&&G>U))return!1;var pe=S.get(e),ge=S.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Me=!0,Pe=o&j?new Hr:r;for(S.set(e,t),S.set(t,e);++xe<U;){var Be=e[xe],qe=t[xe];if(a)var je=L?a(qe,Be,xe,t,e,S):a(Be,qe,xe,e,t,S);if(je!==r){if(je)continue;Me=!1;break}if(Pe){if(!Va(t,function(Qe,tt){if(!io(Pe,tt)&&(Be===Qe||y(Be,Qe,o,a,S)))return Pe.push(tt)})){Me=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){Me=!1;break}}return S.delete(e),S.delete(t),Me}function vy(e,t,o,a,y,S,L){switch(o){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!S(new ms(e),new ms(t)));case ne:case de:case Z:return Tn(+e,+t);case _e:return e.name==t.name&&e.message==t.message;case _:case q:return e==t+"";case Y:var U=eu;case k:var G=a&I;if(U||(U=cs),e.size!=t.size&&!G)return!1;var pe=L.get(e);if(pe)return pe==t;a|=j,L.set(e,t);var ge=gh(U(e),U(t),a,y,S,L);return L.delete(e),ge;case Q:if(lo)return lo.call(e)==lo.call(t)}return!1}function yy(e,t,o,a,y,S){var L=o&I,U=Au(e),G=U.length,pe=Au(t),ge=pe.length;if(G!=ge&&!L)return!1;for(var xe=G;xe--;){var Me=U[xe];if(!(L?Me in t:st.call(t,Me)))return!1}var Pe=S.get(e),Be=S.get(t);if(Pe&&Be)return Pe==t&&Be==e;var qe=!0;S.set(e,t),S.set(t,e);for(var je=L;++xe<G;){Me=U[xe];var Qe=e[Me],tt=t[Me];if(a)var nn=L?a(tt,Qe,Me,t,e,S):a(Qe,tt,Me,e,t,S);if(!(nn===r?Qe===tt||y(Qe,tt,o,a,S):nn)){qe=!1;break}je||(je=Me=="constructor")}if(qe&&!je){var Ft=e.constructor,rn=t.constructor;Ft!=rn&&"constructor"in e&&"constructor"in t&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof rn=="function"&&rn instanceof rn)&&(qe=!1)}return S.delete(e),S.delete(t),qe}function Kn(e){return ku(bh(e,r,Eh),e+"")}function Au(e){return Pf(e,Tt,Mu)}function Du(e){return Pf(e,Vt,mh)}var Ou=xs?function(e){return xs.get(e)}:Hu;function Ns(e){for(var t=e.name+"",o=bi[t],a=st.call(bi,t)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return t}function Ai(e){var t=st.call(b,"placeholder")?b:e;return t.placeholder}function $e(){var e=b.iteratee||zu;return e=e===zu?Bf:e,arguments.length?e(arguments[0],arguments[1]):e}function $s(e,t){var o=e.__data__;return Dy(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Tu(e){for(var t=Tt(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,_h(y)]}return t}function Zr(e,t){var o=Mm(e,t);return $f(o)?o:r}function _y(e){var t=st.call(e,zr),o=e[zr];try{e[zr]=r;var a=!0}catch{}var y=ps.call(e);return a&&(t?e[zr]=o:delete e[zr]),y}var Mu=nu?function(e){return e==null?[]:(e=ut(e),br(nu(e),function(t){return xf.call(e,t)}))}:Gu,mh=nu?function(e){for(var t=[];e;)xr(t,Mu(e)),e=vs(e);return t}:Gu,Nt=Yt;(ru&&Nt(new ru(new ArrayBuffer(1)))!=Le||so&&Nt(new so)!=Y||iu&&Nt(iu.resolve())!=u||wi&&Nt(new wi)!=k||ao&&Nt(new ao)!=we)&&(Nt=function(e){var t=Yt(e),o=t==De?e.constructor:r,a=o?Kr(o):"";if(a)switch(a){case tv:return Le;case nv:return Y;case rv:return u;case iv:return k;case ov:return we}return t});function wy(e,t,o){for(var a=-1,y=o.length;++a<y;){var S=o[a],L=S.size;switch(S.type){case"drop":e+=L;break;case"dropRight":t-=L;break;case"take":t=Pt(t,e+L);break;case"takeRight":e=At(e,t-L);break}}return{start:e,end:t}}function by(e){var t=e.match(La);return t?t[1].split(Et):[]}function vh(e,t,o){t=Or(t,e);for(var a=-1,y=t.length,S=!1;++a<y;){var L=Nn(t[a]);if(!(S=e!=null&&o(e,L)))break;e=e[L]}return S||++a!=y?S:(y=e==null?0:e.length,!!y&&zs(y)&&Qn(L,y)&&(We(e)||Qr(e)))}function xy(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&st.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function yh(e){return typeof e.constructor=="function"&&!vo(e)?xi(vs(e)):{}}function Sy(e,t,o){var a=e.constructor;switch(t){case Se:return xu(e);case ne:case de:return new a(+e);case Le:return sy(e,o);case Ne:case ke:case Ge:case Je:case Ve:case _t:case ct:case ft:case xn:return eh(e,o);case Y:return new a;case Z:case q:return new a(e);case _:return ay(e);case k:return new a;case Q:return uy(e)}}function Cy(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(fi,`{
|
|
125
125
|
/* [wrapped with `+t+`] */
|
|
126
|
-
`)}function Ay(e){return We(e)||Xr(e)||!!(Sf&&e&&e[Sf])}function er(e,t){var o=typeof e;return t=t??f,!!t&&(o=="number"||o!="symbol"&&ts.test(e))&&e>-1&&e%1==0&&e<t}function Yt(e,t,o){if(!mt(o))return!1;var a=typeof t;return(a=="number"?Gt(o)&&er(t,o.length):a=="string"&&t in o)?On(o[t],e):!1}function Eu(e,t){if(We(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||nn(e)?!0:In.test(e)||!kn.test(e)||t!=null&&e in lt(t)}function Dy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ru(e){var t=Bs(e),o=b[t];if(typeof o!="function"||!(t in Xe.prototype))return!1;if(e===o)return!0;var a=Ou(o);return!!a&&e===a[0]}function Oy(e){return!!_f&&_f in e}var Ty=ps?tr:Vu;function _o(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||bi;return e===o}function _h(e){return e===e&&!mt(e)}function wh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in lt(o))}}function My(e){var t=zs(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Ey(e,t){var o=e[1],a=t[1],y=o|a,S=y<(F|X|ee),L=a==ee&&o==oe||a==ee&&o==J&&e[7].length<=t[8]||a==(ee|J)&&t[7].length<=t[8]&&o==oe;if(!(S||L))return e;a&F&&(e[2]=t[2],y|=o&F?0:ie);var U=t[3];if(U){var G=e[3];e[3]=G?nh(G,U,t[4]):U,e[4]=G?Dr(e[3],T):t[4]}return U=t[5],U&&(G=e[5],e[5]=G?rh(G,U,t[6]):U,e[6]=G?Dr(e[5],T):t[6]),U=t[7],U&&(e[7]=U),a&ee&&(e[8]=e[8]==null?t[8]:It(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Ry(e){var t=[];if(e!=null)for(var o in lt(e))t.push(o);return t}function Ly(e){return ms.call(e)}function bh(e,t,o){return t=Dt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,S=Dt(a.length-t,0),L=re(S);++y<S;)L[y]=a[t+y];y=-1;for(var U=re(t+1);++y<t;)U[y]=a[y];return U[t]=o(L),Xt(e,this,U)}}function xh(e,t){return t.length<2?e:Kr(e,vn(t,0,-1))}function ky(e,t){for(var o=e.length,a=It(t.length,o),y=Ht(e);a--;){var S=t[a];e[a]=er(S,o)?y[S]:r}return e}function Lu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sh=Ah(Hf),wo=Vm||function(e,t){return Lt.setTimeout(e,t)},ku=Ah(ny);function Ch(e,t,o){var a=t+"";return ku(e,Cy(a,Iy(by(a),o)))}function Ah(e){var t=0,o=0;return function(){var a=Jm(),y=Te-(a-o);if(o=a,y>0){if(++t>=Oe)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Ys(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var S=gu(o,y),L=e[S];e[S]=e[o],e[o]=L}return e.length=t,e}var Dh=My(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vr,function(o,a,y,S){t.push(y?S.replace(Ia,"$1"):a||o)}),t});function Bn(e){if(typeof e=="string"||nn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Jr(e){if(e!=null){try{return gs.call(e)}catch{}try{return e+""}catch{}}return""}function Iy(e,t){return dn(V,function(o){var a="_."+o[0];t&o[1]&&!cs(e,a)&&e.push(a)}),e.sort()}function Oh(e){if(e instanceof Xe)return e.clone();var t=new gn(e.__wrapped__,e.__chain__);return t.__actions__=Ht(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Py(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=Dt(ze(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,S=0,L=re(xs(a/t));y<a;)L[S++]=vn(e,y,y+=t);return L}function Ny(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var S=e[t];S&&(y[a++]=S)}return y}function $y(){var e=arguments.length;if(!e)return[];for(var t=re(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Ar(We(o)?Ht(o):[o],kt(t,1))}var By=He(function(e,t){return wt(e)?po(e,kt(t,1,wt,!0)):[]}),jy=He(function(e,t){var o=yn(t);return wt(o)&&(o=r),wt(e)?po(e,kt(t,1,wt,!0),$e(o,2)):[]}),Yy=He(function(e,t){var o=yn(t);return wt(o)&&(o=r),wt(e)?po(e,kt(t,1,wt,!0),r,o):[]});function Uy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),vn(e,t<0?0:t,a)):[]}function Fy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,vn(e,0,t<0?0:t)):[]}function Wy(e,t){return e&&e.length?Ls(e,$e(t,3),!0,!0):[]}function zy(e,t){return e&&e.length?Ls(e,$e(t,3),!0):[]}function qy(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&Yt(e,t,o)&&(o=0,a=y),$v(e,t,o,a)):[]}function Th(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:ze(o);return y<0&&(y=Dt(a+y,0)),fs(e,$e(t,3),y)}function Mh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=ze(o),y=o<0?Dt(a+y,0):It(y,a-1)),fs(e,$e(t,3),y,!0)}function Eh(e){var t=e==null?0:e.length;return t?kt(e,1):[]}function Hy(e){var t=e==null?0:e.length;return t?kt(e,d):[]}function Gy(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:ze(t),kt(e,t)):[]}function Vy(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 Rh(e){return e&&e.length?e[0]:r}function Zy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:ze(o);return y<0&&(y=Dt(a+y,0)),vi(e,t,y)}function Ky(e){var t=e==null?0:e.length;return t?vn(e,0,-1):[]}var Qy=He(function(e){var t=gt(e,wu);return t.length&&t[0]===e[0]?cu(t):[]}),Jy=He(function(e){var t=yn(e),o=gt(e,wu);return t===yn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?cu(o,$e(t,2)):[]}),Xy=He(function(e){var t=yn(e),o=gt(e,wu);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?cu(o,r,t):[]});function e2(e,t){return e==null?"":Km.call(e,t)}function yn(e){var t=e==null?0:e.length;return t?e[t-1]:r}function t2(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=ze(o),y=y<0?Dt(a+y,0):It(y,a-1)),t===t?Im(e,t,y):fs(e,ff,y,!0)}function n2(e,t){return e&&e.length?Ff(e,ze(t)):r}var r2=He(Lh);function Lh(e,t){return e&&e.length&&t&&t.length?pu(e,t):e}function i2(e,t,o){return e&&e.length&&t&&t.length?pu(e,t,$e(o,2)):e}function o2(e,t,o){return e&&e.length&&t&&t.length?pu(e,t,r,o):e}var s2=Xn(function(e,t){var o=e==null?0:e.length,a=su(e,t);return qf(e,gt(t,function(y){return er(y,o)?+y:y}).sort(th)),a});function a2(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],S=e.length;for(t=$e(t,3);++a<S;){var L=e[a];t(L,a,e)&&(o.push(L),y.push(a))}return qf(e,y),o}function Iu(e){return e==null?e:ev.call(e)}function u2(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&Yt(e,t,o)?(t=0,o=a):(t=t==null?0:ze(t),o=o===r?a:ze(o)),vn(e,t,o)):[]}function l2(e,t){return Rs(e,t)}function c2(e,t,o){return vu(e,t,$e(o,2))}function f2(e,t){var o=e==null?0:e.length;if(o){var a=Rs(e,t);if(a<o&&On(e[a],t))return a}return-1}function h2(e,t){return Rs(e,t,!0)}function d2(e,t,o){return vu(e,t,$e(o,2),!0)}function p2(e,t){var o=e==null?0:e.length;if(o){var a=Rs(e,t,!0)-1;if(On(e[a],t))return a}return-1}function g2(e){return e&&e.length?Gf(e):[]}function m2(e,t){return e&&e.length?Gf(e,$e(t,2)):[]}function v2(e){var t=e==null?0:e.length;return t?vn(e,1,t):[]}function y2(e,t,o){return e&&e.length?(t=o||t===r?1:ze(t),vn(e,0,t<0?0:t)):[]}function _2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,vn(e,t<0?0:t,a)):[]}function w2(e,t){return e&&e.length?Ls(e,$e(t,3),!1,!0):[]}function b2(e,t){return e&&e.length?Ls(e,$e(t,3)):[]}var x2=He(function(e){return Mr(kt(e,1,wt,!0))}),S2=He(function(e){var t=yn(e);return wt(t)&&(t=r),Mr(kt(e,1,wt,!0),$e(t,2))}),C2=He(function(e){var t=yn(e);return t=typeof t=="function"?t:r,Mr(kt(e,1,wt,!0),r,t)});function A2(e){return e&&e.length?Mr(e):[]}function D2(e,t){return e&&e.length?Mr(e,$e(t,2)):[]}function O2(e,t){return t=typeof t=="function"?t:r,e&&e.length?Mr(e,r,t):[]}function Pu(e){if(!(e&&e.length))return[];var t=0;return e=Cr(e,function(o){if(wt(o))return t=Dt(o.length,t),!0}),Ja(t,function(o){return gt(e,Za(o))})}function kh(e,t){if(!(e&&e.length))return[];var o=Pu(e);return t==null?o:gt(o,function(a){return Xt(t,r,a)})}var T2=He(function(e,t){return wt(e)?po(e,t):[]}),M2=He(function(e){return _u(Cr(e,wt))}),E2=He(function(e){var t=yn(e);return wt(t)&&(t=r),_u(Cr(e,wt),$e(t,2))}),R2=He(function(e){var t=yn(e);return t=typeof t=="function"?t:r,_u(Cr(e,wt),r,t)}),L2=He(Pu);function k2(e,t){return Qf(e||[],t||[],ho)}function I2(e,t){return Qf(e||[],t||[],vo)}var P2=He(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,kh(e,o)});function Ih(e){var t=b(e);return t.__chain__=!0,t}function N2(e,t){return t(e),e}function Us(e,t){return t(e)}var $2=Xn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(S){return su(S,e)};return t>1||this.__actions__.length||!(a instanceof Xe)||!er(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Us,args:[y],thisArg:r}),new gn(a,this.__chain__).thru(function(S){return t&&!S.length&&S.push(r),S}))});function B2(){return Ih(this)}function j2(){return new gn(this.value(),this.__chain__)}function Y2(){this.__values__===r&&(this.__values__=Vh(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function U2(){return this}function F2(e){for(var t,o=this;o instanceof Ds;){var a=Oh(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 W2(){var e=this.__wrapped__;if(e instanceof Xe){var t=e;return this.__actions__.length&&(t=new Xe(this)),t=t.reverse(),t.__actions__.push({func:Us,args:[Iu],thisArg:r}),new gn(t,this.__chain__)}return this.thru(Iu)}function z2(){return Kf(this.__wrapped__,this.__actions__)}var q2=ks(function(e,t,o){ot.call(e,o)?++e[o]:Qn(e,o,1)});function H2(e,t,o){var a=We(e)?lf:Nv;return o&&Yt(e,t,o)&&(t=r),a(e,$e(t,3))}function G2(e,t){var o=We(e)?Cr:kf;return o(e,$e(t,3))}var V2=ah(Th),Z2=ah(Mh);function K2(e,t){return kt(Fs(e,t),1)}function Q2(e,t){return kt(Fs(e,t),d)}function J2(e,t,o){return o=o===r?1:ze(o),kt(Fs(e,t),o)}function Ph(e,t){var o=We(e)?dn:Tr;return o(e,$e(t,3))}function Nh(e,t){var o=We(e)?vm:Lf;return o(e,$e(t,3))}var X2=ks(function(e,t,o){ot.call(e,o)?e[o].push(t):Qn(e,o,[t])});function e_(e,t,o,a){e=Gt(e)?e:Mi(e),o=o&&!a?ze(o):0;var y=e.length;return o<0&&(o=Dt(y+o,0)),Gs(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&vi(e,t,o)>-1}var t_=He(function(e,t,o){var a=-1,y=typeof t=="function",S=Gt(e)?re(e.length):[];return Tr(e,function(L){S[++a]=y?Xt(t,L,o):go(L,t,o)}),S}),n_=ks(function(e,t,o){Qn(e,o,t)});function Fs(e,t){var o=We(e)?gt:jf;return o(e,$e(t,3))}function r_(e,t,o,a){return e==null?[]:(We(t)||(t=t==null?[]:[t]),o=a?r:o,We(o)||(o=o==null?[]:[o]),Wf(e,t,o))}var i_=ks(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function o_(e,t,o){var a=We(e)?Ga:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Tr)}function s_(e,t,o){var a=We(e)?ym:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Lf)}function a_(e,t){var o=We(e)?Cr:kf;return o(e,qs($e(t,3)))}function u_(e){var t=We(e)?Tf:ey;return t(e)}function l_(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=ze(t);var a=We(e)?Rv:ty;return a(e,t)}function c_(e){var t=We(e)?Lv:ry;return t(e)}function f_(e){if(e==null)return 0;if(Gt(e))return Gs(e)?_i(e):e.length;var t=Pt(e);return t==Y||t==k?e.size:hu(e).length}function h_(e,t,o){var a=We(e)?Va:iy;return o&&Yt(e,t,o)&&(t=r),a(e,$e(t,3))}var d_=He(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Yt(e,t[0],t[1])?t=[]:o>2&&Yt(t[0],t[1],t[2])&&(t=[t[0]]),Wf(e,kt(t,1),[])}),Ws=Gm||function(){return Lt.Date.now()};function p_(e,t){if(typeof t!="function")throw new pn(v);return e=ze(e),function(){if(--e<1)return t.apply(this,arguments)}}function $h(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Jn(e,ee,r,r,r,r,t)}function Bh(e,t){var o;if(typeof t!="function")throw new pn(v);return e=ze(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Nu=He(function(e,t,o){var a=F;if(o.length){var y=Dr(o,Oi(Nu));a|=K}return Jn(e,a,t,o,y)}),jh=He(function(e,t,o){var a=F|X;if(o.length){var y=Dr(o,Oi(jh));a|=K}return Jn(t,a,e,o,y)});function Yh(e,t,o){t=o?r:t;var a=Jn(e,oe,r,r,r,r,r,t);return a.placeholder=Yh.placeholder,a}function Uh(e,t,o){t=o?r:t;var a=Jn(e,ce,r,r,r,r,r,t);return a.placeholder=Uh.placeholder,a}function Fh(e,t,o){var a,y,S,L,U,G,pe=0,ge=!1,xe=!1,Me=!0;if(typeof e!="function")throw new pn(v);t=_n(t)||0,mt(o)&&(ge=!!o.leading,xe="maxWait"in o,S=xe?Dt(_n(o.maxWait)||0,t):S,Me="trailing"in o?!!o.trailing:Me);function Pe(bt){var Tn=a,rr=y;return a=y=r,pe=bt,L=e.apply(rr,Tn),L}function Be(bt){return pe=bt,U=wo(Qe,t),ge?Pe(bt):L}function qe(bt){var Tn=bt-G,rr=bt-pe,ad=t-Tn;return xe?It(ad,S-rr):ad}function je(bt){var Tn=bt-G,rr=bt-pe;return G===r||Tn>=t||Tn<0||xe&&rr>=S}function Qe(){var bt=Ws();if(je(bt))return tt(bt);U=wo(Qe,qe(bt))}function tt(bt){return U=r,Me&&a?Pe(bt):(a=y=r,L)}function rn(){U!==r&&Jf(U),pe=0,a=G=y=U=r}function Ut(){return U===r?L:tt(Ws())}function on(){var bt=Ws(),Tn=je(bt);if(a=arguments,y=this,G=bt,Tn){if(U===r)return Be(G);if(xe)return Jf(U),U=wo(Qe,t),Pe(G)}return U===r&&(U=wo(Qe,t)),L}return on.cancel=rn,on.flush=Ut,on}var g_=He(function(e,t){return Rf(e,1,t)}),m_=He(function(e,t,o){return Rf(e,_n(t)||0,o)});function v_(e){return Jn(e,ve)}function zs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pn(v);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],S=o.cache;if(S.has(y))return S.get(y);var L=e.apply(this,a);return o.cache=S.set(y,L)||S,L};return o.cache=new(zs.Cache||Kn),o}zs.Cache=Kn;function qs(e){if(typeof e!="function")throw new pn(v);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 y_(e){return Bh(2,e)}var __=oy(function(e,t){t=t.length==1&&We(t[0])?gt(t[0],en($e())):gt(kt(t,1),en($e()));var o=t.length;return He(function(a){for(var y=-1,S=It(a.length,o);++y<S;)a[y]=t[y].call(this,a[y]);return Xt(e,this,a)})}),$u=He(function(e,t){var o=Dr(t,Oi($u));return Jn(e,K,r,t,o)}),Wh=He(function(e,t){var o=Dr(t,Oi(Wh));return Jn(e,fe,r,t,o)}),w_=Xn(function(e,t){return Jn(e,J,r,r,r,t)});function b_(e,t){if(typeof e!="function")throw new pn(v);return t=t===r?t:ze(t),He(e,t)}function x_(e,t){if(typeof e!="function")throw new pn(v);return t=t==null?0:Dt(ze(t),0),He(function(o){var a=o[t],y=Rr(o,0,t);return a&&Ar(y,a),Xt(e,this,y)})}function S_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new pn(v);return mt(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Fh(e,t,{leading:a,maxWait:t,trailing:y})}function C_(e){return $h(e,1)}function A_(e,t){return $u(bu(t),e)}function D_(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function O_(e){return mn(e,M)}function T_(e,t){return t=typeof t=="function"?t:r,mn(e,M,t)}function M_(e){return mn(e,R|M)}function E_(e,t){return t=typeof t=="function"?t:r,mn(e,R|M,t)}function R_(e,t){return t==null||Ef(e,t,Mt(t))}function On(e,t){return e===t||e!==e&&t!==t}var L_=$s(lu),k_=$s(function(e,t){return e>=t}),Xr=Nf(function(){return arguments}())?Nf:function(e){return yt(e)&&ot.call(e,"callee")&&!xf.call(e,"callee")},We=re.isArray,I_=nf?en(nf):Fv;function Gt(e){return e!=null&&Hs(e.length)&&!tr(e)}function wt(e){return yt(e)&&Gt(e)}function P_(e){return e===!0||e===!1||yt(e)&&jt(e)==ne}var Lr=Zm||Vu,N_=rf?en(rf):Wv;function $_(e){return yt(e)&&e.nodeType===1&&!bo(e)}function B_(e){if(e==null)return!0;if(Gt(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||Lr(e)||Ti(e)||Xr(e)))return!e.length;var t=Pt(e);if(t==Y||t==k)return!e.size;if(_o(e))return!hu(e).length;for(var o in e)if(ot.call(e,o))return!1;return!0}function j_(e,t){return mo(e,t)}function Y_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?mo(e,t,r,o):!!a}function Bu(e){if(!yt(e))return!1;var t=jt(e);return t==_e||t==Ce||typeof e.message=="string"&&typeof e.name=="string"&&!bo(e)}function U_(e){return typeof e=="number"&&Cf(e)}function tr(e){if(!mt(e))return!1;var t=jt(e);return t==B||t==z||t==be||t==h}function zh(e){return typeof e=="number"&&e==ze(e)}function Hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function mt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yt(e){return e!=null&&typeof e=="object"}var qh=of?en(of):qv;function F_(e,t){return e===t||fu(e,t,Tu(t))}function W_(e,t,o){return o=typeof o=="function"?o:r,fu(e,t,Tu(t),o)}function z_(e){return Hh(e)&&e!=+e}function q_(e){if(Ty(e))throw new Fe(p);return $f(e)}function H_(e){return e===null}function G_(e){return e==null}function Hh(e){return typeof e=="number"||yt(e)&&jt(e)==Z}function bo(e){if(!yt(e)||jt(e)!=De)return!1;var t=_s(e);if(t===null)return!0;var o=ot.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&gs.call(o)==Wm}var ju=sf?en(sf):Hv;function V_(e){return zh(e)&&e>=-9007199254740991&&e<=f}var Gh=af?en(af):Gv;function Gs(e){return typeof e=="string"||!We(e)&&yt(e)&&jt(e)==q}function nn(e){return typeof e=="symbol"||yt(e)&&jt(e)==Q}var Ti=uf?en(uf):Vv;function Z_(e){return e===r}function K_(e){return yt(e)&&Pt(e)==we}function Q_(e){return yt(e)&&jt(e)==Re}var J_=$s(du),X_=$s(function(e,t){return e<=t});function Vh(e){if(!e)return[];if(Gt(e))return Gs(e)?An(e):Ht(e);if(ao&&e[ao])return Rm(e[ao]());var t=Pt(e),o=t==Y?eu:t==k?hs:Mi;return o(e)}function nr(e){if(!e)return e===0?e:0;if(e=_n(e),e===d||e===-1/0){var t=e<0?-1:1;return t*w}return e===e?e:0}function ze(e){var t=nr(e),o=t%1;return t===t?o?t-o:t:0}function Zh(e){return e?Zr(ze(e),0,m):0}function _n(e){if(typeof e=="number")return e;if(nn(e))return g;if(mt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pf(e);var o=Wn.test(e);return o||jr.test(e)?pm(e.slice(2),o?2:8):qt.test(e)?g:+e}function Kh(e){return $n(e,Vt(e))}function ew(e){return e?Zr(ze(e),-9007199254740991,f):e===0?e:0}function it(e){return e==null?"":tn(e)}var tw=Ai(function(e,t){if(_o(t)||Gt(t)){$n(t,Mt(t),e);return}for(var o in t)ot.call(t,o)&&ho(e,o,t[o])}),Qh=Ai(function(e,t){$n(t,Vt(t),e)}),Vs=Ai(function(e,t,o,a){$n(t,Vt(t),e,a)}),nw=Ai(function(e,t,o,a){$n(t,Mt(t),e,a)}),rw=Xn(su);function iw(e,t){var o=Ci(e);return t==null?o:Mf(o,t)}var ow=He(function(e,t){e=lt(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&Yt(t[0],t[1],y)&&(a=1);++o<a;)for(var S=t[o],L=Vt(S),U=-1,G=L.length;++U<G;){var pe=L[U],ge=e[pe];(ge===r||On(ge,bi[pe])&&!ot.call(e,pe))&&(e[pe]=S[pe])}return e}),sw=He(function(e){return e.push(r,ph),Xt(Jh,r,e)});function aw(e,t){return cf(e,$e(t,3),Nn)}function uw(e,t){return cf(e,$e(t,3),uu)}function lw(e,t){return e==null?e:au(e,$e(t,3),Vt)}function cw(e,t){return e==null?e:If(e,$e(t,3),Vt)}function fw(e,t){return e&&Nn(e,$e(t,3))}function hw(e,t){return e&&uu(e,$e(t,3))}function dw(e){return e==null?[]:Ms(e,Mt(e))}function pw(e){return e==null?[]:Ms(e,Vt(e))}function Yu(e,t,o){var a=e==null?r:Kr(e,t);return a===r?o:a}function gw(e,t){return e!=null&&vh(e,t,Bv)}function Uu(e,t){return e!=null&&vh(e,t,jv)}var mw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=ms.call(t)),e[t]=o},Wu(Zt)),vw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=ms.call(t)),ot.call(e,t)?e[t].push(o):e[t]=[o]},$e),yw=He(go);function Mt(e){return Gt(e)?Of(e):hu(e)}function Vt(e){return Gt(e)?Of(e,!0):Zv(e)}function _w(e,t){var o={};return t=$e(t,3),Nn(e,function(a,y,S){Qn(o,t(a,y,S),a)}),o}function ww(e,t){var o={};return t=$e(t,3),Nn(e,function(a,y,S){Qn(o,y,t(a,y,S))}),o}var bw=Ai(function(e,t,o){Es(e,t,o)}),Jh=Ai(function(e,t,o,a){Es(e,t,o,a)}),xw=Xn(function(e,t){var o={};if(e==null)return o;var a=!1;t=gt(t,function(S){return S=Er(S,e),a||(a=S.length>1),S}),$n(e,Du(e),o),a&&(o=mn(o,R|P|M,my));for(var y=t.length;y--;)yu(o,t[y]);return o});function Sw(e,t){return Xh(e,qs($e(t)))}var Cw=Xn(function(e,t){return e==null?{}:Qv(e,t)});function Xh(e,t){if(e==null)return{};var o=gt(Du(e),function(a){return[a]});return t=$e(t),zf(e,o,function(a,y){return t(a,y[0])})}function Aw(e,t,o){t=Er(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[Bn(t[a])];S===r&&(a=y,S=o),e=tr(S)?S.call(e):S}return e}function Dw(e,t,o){return e==null?e:vo(e,t,o)}function Ow(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:vo(e,t,o,a)}var ed=hh(Mt),td=hh(Vt);function Tw(e,t,o){var a=We(e),y=a||Lr(e)||Ti(e);if(t=$e(t,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:mt(e)?o=tr(S)?Ci(_s(e)):{}:o={}}return(y?dn:Nn)(e,function(L,U,G){return t(o,L,U,G)}),o}function Mw(e,t){return e==null?!0:yu(e,t)}function Ew(e,t,o){return e==null?e:Zf(e,t,bu(o))}function Rw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Zf(e,t,bu(o),a)}function Mi(e){return e==null?[]:Xa(e,Mt(e))}function Lw(e){return e==null?[]:Xa(e,Vt(e))}function kw(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=_n(o),o=o===o?o:0),t!==r&&(t=_n(t),t=t===t?t:0),Zr(_n(e),t,o)}function Iw(e,t,o){return t=nr(t),o===r?(o=t,t=0):o=nr(o),e=_n(e),Yv(e,t,o)}function Pw(e,t,o){if(o&&typeof o!="boolean"&&Yt(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=nr(e),t===r?(t=e,e=0):t=nr(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Af();return It(e+y*(t-e+dm("1e-"+((y+"").length-1))),t)}return gu(e,t)}var Nw=Di(function(e,t,o){return t=t.toLowerCase(),e+(o?nd(t):t)});function nd(e){return Fu(it(e).toLowerCase())}function rd(e){return e=it(e),e&&e.replace(Pa,Dm).replace(fn,"")}function $w(e,t,o){e=it(e),t=tn(t);var a=e.length;o=o===r?a:Zr(ze(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function Bw(e){return e=it(e),e&&Ln.test(e)?e.replace(Kt,Om):e}function jw(e){return e=it(e),e&&Tt.test(e)?e.replace(ut,"\\$&"):e}var Yw=Di(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Uw=Di(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Fw=sh("toLowerCase");function Ww(e,t,o){e=it(e),t=ze(t);var a=t?_i(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Ns(Ss(y),o)+e+Ns(xs(y),o)}function zw(e,t,o){e=it(e),t=ze(t);var a=t?_i(e):0;return t&&a<t?e+Ns(t-a,o):e}function qw(e,t,o){e=it(e),t=ze(t);var a=t?_i(e):0;return t&&a<t?Ns(t-a,o)+e:e}function Hw(e,t,o){return o||t==null?t=0:t&&(t=+t),Xm(it(e).replace(Un,""),t||0)}function Gw(e,t,o){return(o?Yt(e,t,o):t===r)?t=1:t=ze(t),mu(it(e),t)}function Vw(){var e=arguments,t=it(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Zw=Di(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function Kw(e,t,o){return o&&typeof o!="number"&&Yt(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=it(e),e&&(typeof t=="string"||t!=null&&!ju(t))&&(t=tn(t),!t&&yi(e))?Rr(An(e),0,o):e.split(t,o)):[]}var Qw=Di(function(e,t,o){return e+(o?" ":"")+Fu(t)});function Jw(e,t,o){return e=it(e),o=o==null?0:Zr(ze(o),0,e.length),t=tn(t),e.slice(o,o+t.length)==t}function Xw(e,t,o){var a=b.templateSettings;o&&Yt(e,t,o)&&(t=r),e=it(e),t=Vs({},t,a,dh);var y=Vs({},t.imports,a.imports,dh),S=Mt(y),L=Xa(y,S),U,G,pe=0,ge=t.interpolate||yr,xe="__p += '",Me=tu((t.escape||yr).source+"|"+ge.source+"|"+(ge===Sn?Zi:yr).source+"|"+(t.evaluate||yr).source+"|$","g"),Pe="//# sourceURL="+(ot.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++um+"]")+`
|
|
127
|
-
`;e.replace(Me,function(je,Qe,tt,
|
|
126
|
+
`)}function Ay(e){return We(e)||Qr(e)||!!(Sf&&e&&e[Sf])}function Qn(e,t){var o=typeof e;return t=t??f,!!t&&(o=="number"||o!="symbol"&&Xo.test(e))&&e>-1&&e%1==0&&e<t}function Ut(e,t,o){if(!mt(o))return!1;var a=typeof t;return(a=="number"?Gt(o)&&Qn(t,o.length):a=="string"&&t in o)?Tn(o[t],e):!1}function Eu(e,t){if(We(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||tn(e)?!0:Ot.test(e)||!ht.test(e)||t!=null&&e in ut(t)}function Dy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ru(e){var t=Ns(e),o=b[t];if(typeof o!="function"||!(t in Xe.prototype))return!1;if(e===o)return!0;var a=Ou(o);return!!a&&e===a[0]}function Oy(e){return!!_f&&_f in e}var Ty=hs?Jn:Vu;function vo(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||_i;return e===o}function _h(e){return e===e&&!mt(e)}function wh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in ut(o))}}function My(e){var t=Fs(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Ey(e,t){var o=e[1],a=t[1],y=o|a,S=y<(F|X|ee),L=a==ee&&o==oe||a==ee&&o==J&&e[7].length<=t[8]||a==(ee|J)&&t[7].length<=t[8]&&o==oe;if(!(S||L))return e;a&F&&(e[2]=t[2],y|=o&F?0:ie);var U=t[3];if(U){var G=e[3];e[3]=G?nh(G,U,t[4]):U,e[4]=G?Sr(e[3],T):t[4]}return U=t[5],U&&(G=e[5],e[5]=G?rh(G,U,t[6]):U,e[6]=G?Sr(e[5],T):t[6]),U=t[7],U&&(e[7]=U),a&ee&&(e[8]=e[8]==null?t[8]:Pt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Ry(e){var t=[];if(e!=null)for(var o in ut(e))t.push(o);return t}function Ly(e){return ps.call(e)}function bh(e,t,o){return t=At(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,S=At(a.length-t,0),L=re(S);++y<S;)L[y]=a[t+y];y=-1;for(var U=re(t+1);++y<t;)U[y]=a[y];return U[t]=o(L),Jt(e,this,U)}}function xh(e,t){return t.length<2?e:Vr(e,vn(t,0,-1))}function ky(e,t){for(var o=e.length,a=Pt(t.length,o),y=Ht(e);a--;){var S=t[a];e[a]=Qn(S,o)?y[S]:r}return e}function Lu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sh=Ah(Hf),yo=Vm||function(e,t){return Lt.setTimeout(e,t)},ku=Ah(ny);function Ch(e,t,o){var a=t+"";return ku(e,Cy(a,Iy(by(a),o)))}function Ah(e){var t=0,o=0;return function(){var a=Jm(),y=Te-(a-o);if(o=a,y>0){if(++t>=Oe)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Bs(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var S=gu(o,y),L=e[S];e[S]=e[o],e[o]=L}return e.length=t,e}var Dh=My(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nr,function(o,a,y,S){t.push(y?S.replace(Ia,"$1"):a||o)}),t});function Nn(e){if(typeof e=="string"||tn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Kr(e){if(e!=null){try{return ds.call(e)}catch{}try{return e+""}catch{}}return""}function Iy(e,t){return dn(V,function(o){var a="_."+o[0];t&o[1]&&!us(e,a)&&e.push(a)}),e.sort()}function Oh(e){if(e instanceof Xe)return e.clone();var t=new gn(e.__wrapped__,e.__chain__);return t.__actions__=Ht(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Py(e,t,o){(o?Ut(e,t,o):t===r)?t=1:t=At(ze(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,S=0,L=re(ws(a/t));y<a;)L[S++]=vn(e,y,y+=t);return L}function Ny(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var S=e[t];S&&(y[a++]=S)}return y}function $y(){var e=arguments.length;if(!e)return[];for(var t=re(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return xr(We(o)?Ht(o):[o],kt(t,1))}var By=He(function(e,t){return wt(e)?fo(e,kt(t,1,wt,!0)):[]}),jy=He(function(e,t){var o=yn(t);return wt(o)&&(o=r),wt(e)?fo(e,kt(t,1,wt,!0),$e(o,2)):[]}),Yy=He(function(e,t){var o=yn(t);return wt(o)&&(o=r),wt(e)?fo(e,kt(t,1,wt,!0),r,o):[]});function Uy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),vn(e,t<0?0:t,a)):[]}function Fy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,vn(e,0,t<0?0:t)):[]}function Wy(e,t){return e&&e.length?Es(e,$e(t,3),!0,!0):[]}function zy(e,t){return e&&e.length?Es(e,$e(t,3),!0):[]}function qy(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&Ut(e,t,o)&&(o=0,a=y),$v(e,t,o,a)):[]}function Th(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:ze(o);return y<0&&(y=At(a+y,0)),ls(e,$e(t,3),y)}function Mh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=ze(o),y=o<0?At(a+y,0):Pt(y,a-1)),ls(e,$e(t,3),y,!0)}function Eh(e){var t=e==null?0:e.length;return t?kt(e,1):[]}function Hy(e){var t=e==null?0:e.length;return t?kt(e,d):[]}function Gy(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:ze(t),kt(e,t)):[]}function Vy(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 Rh(e){return e&&e.length?e[0]:r}function Zy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:ze(o);return y<0&&(y=At(a+y,0)),gi(e,t,y)}function Ky(e){var t=e==null?0:e.length;return t?vn(e,0,-1):[]}var Qy=He(function(e){var t=gt(e,wu);return t.length&&t[0]===e[0]?cu(t):[]}),Jy=He(function(e){var t=yn(e),o=gt(e,wu);return t===yn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?cu(o,$e(t,2)):[]}),Xy=He(function(e){var t=yn(e),o=gt(e,wu);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?cu(o,r,t):[]});function e2(e,t){return e==null?"":Km.call(e,t)}function yn(e){var t=e==null?0:e.length;return t?e[t-1]:r}function t2(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=ze(o),y=y<0?At(a+y,0):Pt(y,a-1)),t===t?Im(e,t,y):ls(e,ff,y,!0)}function n2(e,t){return e&&e.length?Ff(e,ze(t)):r}var r2=He(Lh);function Lh(e,t){return e&&e.length&&t&&t.length?pu(e,t):e}function i2(e,t,o){return e&&e.length&&t&&t.length?pu(e,t,$e(o,2)):e}function o2(e,t,o){return e&&e.length&&t&&t.length?pu(e,t,r,o):e}var s2=Kn(function(e,t){var o=e==null?0:e.length,a=su(e,t);return qf(e,gt(t,function(y){return Qn(y,o)?+y:y}).sort(th)),a});function a2(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],S=e.length;for(t=$e(t,3);++a<S;){var L=e[a];t(L,a,e)&&(o.push(L),y.push(a))}return qf(e,y),o}function Iu(e){return e==null?e:ev.call(e)}function u2(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&Ut(e,t,o)?(t=0,o=a):(t=t==null?0:ze(t),o=o===r?a:ze(o)),vn(e,t,o)):[]}function l2(e,t){return Ms(e,t)}function c2(e,t,o){return vu(e,t,$e(o,2))}function f2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t);if(a<o&&Tn(e[a],t))return a}return-1}function h2(e,t){return Ms(e,t,!0)}function d2(e,t,o){return vu(e,t,$e(o,2),!0)}function p2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t,!0)-1;if(Tn(e[a],t))return a}return-1}function g2(e){return e&&e.length?Gf(e):[]}function m2(e,t){return e&&e.length?Gf(e,$e(t,2)):[]}function v2(e){var t=e==null?0:e.length;return t?vn(e,1,t):[]}function y2(e,t,o){return e&&e.length?(t=o||t===r?1:ze(t),vn(e,0,t<0?0:t)):[]}function _2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,vn(e,t<0?0:t,a)):[]}function w2(e,t){return e&&e.length?Es(e,$e(t,3),!1,!0):[]}function b2(e,t){return e&&e.length?Es(e,$e(t,3)):[]}var x2=He(function(e){return Dr(kt(e,1,wt,!0))}),S2=He(function(e){var t=yn(e);return wt(t)&&(t=r),Dr(kt(e,1,wt,!0),$e(t,2))}),C2=He(function(e){var t=yn(e);return t=typeof t=="function"?t:r,Dr(kt(e,1,wt,!0),r,t)});function A2(e){return e&&e.length?Dr(e):[]}function D2(e,t){return e&&e.length?Dr(e,$e(t,2)):[]}function O2(e,t){return t=typeof t=="function"?t:r,e&&e.length?Dr(e,r,t):[]}function Pu(e){if(!(e&&e.length))return[];var t=0;return e=br(e,function(o){if(wt(o))return t=At(o.length,t),!0}),Ja(t,function(o){return gt(e,Za(o))})}function kh(e,t){if(!(e&&e.length))return[];var o=Pu(e);return t==null?o:gt(o,function(a){return Jt(t,r,a)})}var T2=He(function(e,t){return wt(e)?fo(e,t):[]}),M2=He(function(e){return _u(br(e,wt))}),E2=He(function(e){var t=yn(e);return wt(t)&&(t=r),_u(br(e,wt),$e(t,2))}),R2=He(function(e){var t=yn(e);return t=typeof t=="function"?t:r,_u(br(e,wt),r,t)}),L2=He(Pu);function k2(e,t){return Qf(e||[],t||[],co)}function I2(e,t){return Qf(e||[],t||[],go)}var P2=He(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,kh(e,o)});function Ih(e){var t=b(e);return t.__chain__=!0,t}function N2(e,t){return t(e),e}function js(e,t){return t(e)}var $2=Kn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(S){return su(S,e)};return t>1||this.__actions__.length||!(a instanceof Xe)||!Qn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:js,args:[y],thisArg:r}),new gn(a,this.__chain__).thru(function(S){return t&&!S.length&&S.push(r),S}))});function B2(){return Ih(this)}function j2(){return new gn(this.value(),this.__chain__)}function Y2(){this.__values__===r&&(this.__values__=Vh(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function U2(){return this}function F2(e){for(var t,o=this;o instanceof Cs;){var a=Oh(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 W2(){var e=this.__wrapped__;if(e instanceof Xe){var t=e;return this.__actions__.length&&(t=new Xe(this)),t=t.reverse(),t.__actions__.push({func:js,args:[Iu],thisArg:r}),new gn(t,this.__chain__)}return this.thru(Iu)}function z2(){return Kf(this.__wrapped__,this.__actions__)}var q2=Rs(function(e,t,o){st.call(e,o)?++e[o]:Vn(e,o,1)});function H2(e,t,o){var a=We(e)?lf:Nv;return o&&Ut(e,t,o)&&(t=r),a(e,$e(t,3))}function G2(e,t){var o=We(e)?br:kf;return o(e,$e(t,3))}var V2=ah(Th),Z2=ah(Mh);function K2(e,t){return kt(Ys(e,t),1)}function Q2(e,t){return kt(Ys(e,t),d)}function J2(e,t,o){return o=o===r?1:ze(o),kt(Ys(e,t),o)}function Ph(e,t){var o=We(e)?dn:Ar;return o(e,$e(t,3))}function Nh(e,t){var o=We(e)?vm:Lf;return o(e,$e(t,3))}var X2=Rs(function(e,t,o){st.call(e,o)?e[o].push(t):Vn(e,o,[t])});function e_(e,t,o,a){e=Gt(e)?e:Oi(e),o=o&&!a?ze(o):0;var y=e.length;return o<0&&(o=At(y+o,0)),qs(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&gi(e,t,o)>-1}var t_=He(function(e,t,o){var a=-1,y=typeof t=="function",S=Gt(e)?re(e.length):[];return Ar(e,function(L){S[++a]=y?Jt(t,L,o):ho(L,t,o)}),S}),n_=Rs(function(e,t,o){Vn(e,o,t)});function Ys(e,t){var o=We(e)?gt:jf;return o(e,$e(t,3))}function r_(e,t,o,a){return e==null?[]:(We(t)||(t=t==null?[]:[t]),o=a?r:o,We(o)||(o=o==null?[]:[o]),Wf(e,t,o))}var i_=Rs(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function o_(e,t,o){var a=We(e)?Ga:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Ar)}function s_(e,t,o){var a=We(e)?ym:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Lf)}function a_(e,t){var o=We(e)?br:kf;return o(e,Ws($e(t,3)))}function u_(e){var t=We(e)?Tf:ey;return t(e)}function l_(e,t,o){(o?Ut(e,t,o):t===r)?t=1:t=ze(t);var a=We(e)?Rv:ty;return a(e,t)}function c_(e){var t=We(e)?Lv:ry;return t(e)}function f_(e){if(e==null)return 0;if(Gt(e))return qs(e)?vi(e):e.length;var t=Nt(e);return t==Y||t==k?e.size:hu(e).length}function h_(e,t,o){var a=We(e)?Va:iy;return o&&Ut(e,t,o)&&(t=r),a(e,$e(t,3))}var d_=He(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Ut(e,t[0],t[1])?t=[]:o>2&&Ut(t[0],t[1],t[2])&&(t=[t[0]]),Wf(e,kt(t,1),[])}),Us=Gm||function(){return Lt.Date.now()};function p_(e,t){if(typeof t!="function")throw new pn(v);return e=ze(e),function(){if(--e<1)return t.apply(this,arguments)}}function $h(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Zn(e,ee,r,r,r,r,t)}function Bh(e,t){var o;if(typeof t!="function")throw new pn(v);return e=ze(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Nu=He(function(e,t,o){var a=F;if(o.length){var y=Sr(o,Ai(Nu));a|=K}return Zn(e,a,t,o,y)}),jh=He(function(e,t,o){var a=F|X;if(o.length){var y=Sr(o,Ai(jh));a|=K}return Zn(t,a,e,o,y)});function Yh(e,t,o){t=o?r:t;var a=Zn(e,oe,r,r,r,r,r,t);return a.placeholder=Yh.placeholder,a}function Uh(e,t,o){t=o?r:t;var a=Zn(e,ce,r,r,r,r,r,t);return a.placeholder=Uh.placeholder,a}function Fh(e,t,o){var a,y,S,L,U,G,pe=0,ge=!1,xe=!1,Me=!0;if(typeof e!="function")throw new pn(v);t=_n(t)||0,mt(o)&&(ge=!!o.leading,xe="maxWait"in o,S=xe?At(_n(o.maxWait)||0,t):S,Me="trailing"in o?!!o.trailing:Me);function Pe(bt){var Mn=a,er=y;return a=y=r,pe=bt,L=e.apply(er,Mn),L}function Be(bt){return pe=bt,U=yo(Qe,t),ge?Pe(bt):L}function qe(bt){var Mn=bt-G,er=bt-pe,ad=t-Mn;return xe?Pt(ad,S-er):ad}function je(bt){var Mn=bt-G,er=bt-pe;return G===r||Mn>=t||Mn<0||xe&&er>=S}function Qe(){var bt=Us();if(je(bt))return tt(bt);U=yo(Qe,qe(bt))}function tt(bt){return U=r,Me&&a?Pe(bt):(a=y=r,L)}function nn(){U!==r&&Jf(U),pe=0,a=G=y=U=r}function Ft(){return U===r?L:tt(Us())}function rn(){var bt=Us(),Mn=je(bt);if(a=arguments,y=this,G=bt,Mn){if(U===r)return Be(G);if(xe)return Jf(U),U=yo(Qe,t),Pe(G)}return U===r&&(U=yo(Qe,t)),L}return rn.cancel=nn,rn.flush=Ft,rn}var g_=He(function(e,t){return Rf(e,1,t)}),m_=He(function(e,t,o){return Rf(e,_n(t)||0,o)});function v_(e){return Zn(e,ve)}function Fs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new pn(v);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],S=o.cache;if(S.has(y))return S.get(y);var L=e.apply(this,a);return o.cache=S.set(y,L)||S,L};return o.cache=new(Fs.Cache||Gn),o}Fs.Cache=Gn;function Ws(e){if(typeof e!="function")throw new pn(v);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 y_(e){return Bh(2,e)}var __=oy(function(e,t){t=t.length==1&&We(t[0])?gt(t[0],Xt($e())):gt(kt(t,1),Xt($e()));var o=t.length;return He(function(a){for(var y=-1,S=Pt(a.length,o);++y<S;)a[y]=t[y].call(this,a[y]);return Jt(e,this,a)})}),$u=He(function(e,t){var o=Sr(t,Ai($u));return Zn(e,K,r,t,o)}),Wh=He(function(e,t){var o=Sr(t,Ai(Wh));return Zn(e,fe,r,t,o)}),w_=Kn(function(e,t){return Zn(e,J,r,r,r,t)});function b_(e,t){if(typeof e!="function")throw new pn(v);return t=t===r?t:ze(t),He(e,t)}function x_(e,t){if(typeof e!="function")throw new pn(v);return t=t==null?0:At(ze(t),0),He(function(o){var a=o[t],y=Tr(o,0,t);return a&&xr(y,a),Jt(e,this,y)})}function S_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new pn(v);return mt(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Fh(e,t,{leading:a,maxWait:t,trailing:y})}function C_(e){return $h(e,1)}function A_(e,t){return $u(bu(t),e)}function D_(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function O_(e){return mn(e,M)}function T_(e,t){return t=typeof t=="function"?t:r,mn(e,M,t)}function M_(e){return mn(e,R|M)}function E_(e,t){return t=typeof t=="function"?t:r,mn(e,R|M,t)}function R_(e,t){return t==null||Ef(e,t,Tt(t))}function Tn(e,t){return e===t||e!==e&&t!==t}var L_=Ps(lu),k_=Ps(function(e,t){return e>=t}),Qr=Nf(function(){return arguments}())?Nf:function(e){return yt(e)&&st.call(e,"callee")&&!xf.call(e,"callee")},We=re.isArray,I_=nf?Xt(nf):Fv;function Gt(e){return e!=null&&zs(e.length)&&!Jn(e)}function wt(e){return yt(e)&&Gt(e)}function P_(e){return e===!0||e===!1||yt(e)&&Yt(e)==ne}var Mr=Zm||Vu,N_=rf?Xt(rf):Wv;function $_(e){return yt(e)&&e.nodeType===1&&!_o(e)}function B_(e){if(e==null)return!0;if(Gt(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||Mr(e)||Di(e)||Qr(e)))return!e.length;var t=Nt(e);if(t==Y||t==k)return!e.size;if(vo(e))return!hu(e).length;for(var o in e)if(st.call(e,o))return!1;return!0}function j_(e,t){return po(e,t)}function Y_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?po(e,t,r,o):!!a}function Bu(e){if(!yt(e))return!1;var t=Yt(e);return t==_e||t==Ce||typeof e.message=="string"&&typeof e.name=="string"&&!_o(e)}function U_(e){return typeof e=="number"&&Cf(e)}function Jn(e){if(!mt(e))return!1;var t=Yt(e);return t==B||t==z||t==be||t==h}function zh(e){return typeof e=="number"&&e==ze(e)}function zs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function mt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yt(e){return e!=null&&typeof e=="object"}var qh=of?Xt(of):qv;function F_(e,t){return e===t||fu(e,t,Tu(t))}function W_(e,t,o){return o=typeof o=="function"?o:r,fu(e,t,Tu(t),o)}function z_(e){return Hh(e)&&e!=+e}function q_(e){if(Ty(e))throw new Fe(p);return $f(e)}function H_(e){return e===null}function G_(e){return e==null}function Hh(e){return typeof e=="number"||yt(e)&&Yt(e)==Z}function _o(e){if(!yt(e)||Yt(e)!=De)return!1;var t=vs(e);if(t===null)return!0;var o=st.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ds.call(o)==Wm}var ju=sf?Xt(sf):Hv;function V_(e){return zh(e)&&e>=-9007199254740991&&e<=f}var Gh=af?Xt(af):Gv;function qs(e){return typeof e=="string"||!We(e)&&yt(e)&&Yt(e)==q}function tn(e){return typeof e=="symbol"||yt(e)&&Yt(e)==Q}var Di=uf?Xt(uf):Vv;function Z_(e){return e===r}function K_(e){return yt(e)&&Nt(e)==we}function Q_(e){return yt(e)&&Yt(e)==Re}var J_=Ps(du),X_=Ps(function(e,t){return e<=t});function Vh(e){if(!e)return[];if(Gt(e))return qs(e)?Dn(e):Ht(e);if(oo&&e[oo])return Rm(e[oo]());var t=Nt(e),o=t==Y?eu:t==k?cs:Oi;return o(e)}function Xn(e){if(!e)return e===0?e:0;if(e=_n(e),e===d||e===-1/0){var t=e<0?-1:1;return t*w}return e===e?e:0}function ze(e){var t=Xn(e),o=t%1;return t===t?o?t-o:t:0}function Zh(e){return e?Gr(ze(e),0,m):0}function _n(e){if(typeof e=="number")return e;if(tn(e))return g;if(mt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pf(e);var o=Yn.test(e);return o||$r.test(e)?pm(e.slice(2),o?2:8):qt.test(e)?g:+e}function Kh(e){return Pn(e,Vt(e))}function ew(e){return e?Gr(ze(e),-9007199254740991,f):e===0?e:0}function ot(e){return e==null?"":en(e)}var tw=Si(function(e,t){if(vo(t)||Gt(t)){Pn(t,Tt(t),e);return}for(var o in t)st.call(t,o)&&co(e,o,t[o])}),Qh=Si(function(e,t){Pn(t,Vt(t),e)}),Hs=Si(function(e,t,o,a){Pn(t,Vt(t),e,a)}),nw=Si(function(e,t,o,a){Pn(t,Tt(t),e,a)}),rw=Kn(su);function iw(e,t){var o=xi(e);return t==null?o:Mf(o,t)}var ow=He(function(e,t){e=ut(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&Ut(t[0],t[1],y)&&(a=1);++o<a;)for(var S=t[o],L=Vt(S),U=-1,G=L.length;++U<G;){var pe=L[U],ge=e[pe];(ge===r||Tn(ge,_i[pe])&&!st.call(e,pe))&&(e[pe]=S[pe])}return e}),sw=He(function(e){return e.push(r,ph),Jt(Jh,r,e)});function aw(e,t){return cf(e,$e(t,3),In)}function uw(e,t){return cf(e,$e(t,3),uu)}function lw(e,t){return e==null?e:au(e,$e(t,3),Vt)}function cw(e,t){return e==null?e:If(e,$e(t,3),Vt)}function fw(e,t){return e&&In(e,$e(t,3))}function hw(e,t){return e&&uu(e,$e(t,3))}function dw(e){return e==null?[]:Os(e,Tt(e))}function pw(e){return e==null?[]:Os(e,Vt(e))}function Yu(e,t,o){var a=e==null?r:Vr(e,t);return a===r?o:a}function gw(e,t){return e!=null&&vh(e,t,Bv)}function Uu(e,t){return e!=null&&vh(e,t,jv)}var mw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=ps.call(t)),e[t]=o},Wu(Zt)),vw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=ps.call(t)),st.call(e,t)?e[t].push(o):e[t]=[o]},$e),yw=He(ho);function Tt(e){return Gt(e)?Of(e):hu(e)}function Vt(e){return Gt(e)?Of(e,!0):Zv(e)}function _w(e,t){var o={};return t=$e(t,3),In(e,function(a,y,S){Vn(o,t(a,y,S),a)}),o}function ww(e,t){var o={};return t=$e(t,3),In(e,function(a,y,S){Vn(o,y,t(a,y,S))}),o}var bw=Si(function(e,t,o){Ts(e,t,o)}),Jh=Si(function(e,t,o,a){Ts(e,t,o,a)}),xw=Kn(function(e,t){var o={};if(e==null)return o;var a=!1;t=gt(t,function(S){return S=Or(S,e),a||(a=S.length>1),S}),Pn(e,Du(e),o),a&&(o=mn(o,R|P|M,my));for(var y=t.length;y--;)yu(o,t[y]);return o});function Sw(e,t){return Xh(e,Ws($e(t)))}var Cw=Kn(function(e,t){return e==null?{}:Qv(e,t)});function Xh(e,t){if(e==null)return{};var o=gt(Du(e),function(a){return[a]});return t=$e(t),zf(e,o,function(a,y){return t(a,y[0])})}function Aw(e,t,o){t=Or(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[Nn(t[a])];S===r&&(a=y,S=o),e=Jn(S)?S.call(e):S}return e}function Dw(e,t,o){return e==null?e:go(e,t,o)}function Ow(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:go(e,t,o,a)}var ed=hh(Tt),td=hh(Vt);function Tw(e,t,o){var a=We(e),y=a||Mr(e)||Di(e);if(t=$e(t,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:mt(e)?o=Jn(S)?xi(vs(e)):{}:o={}}return(y?dn:In)(e,function(L,U,G){return t(o,L,U,G)}),o}function Mw(e,t){return e==null?!0:yu(e,t)}function Ew(e,t,o){return e==null?e:Zf(e,t,bu(o))}function Rw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Zf(e,t,bu(o),a)}function Oi(e){return e==null?[]:Xa(e,Tt(e))}function Lw(e){return e==null?[]:Xa(e,Vt(e))}function kw(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=_n(o),o=o===o?o:0),t!==r&&(t=_n(t),t=t===t?t:0),Gr(_n(e),t,o)}function Iw(e,t,o){return t=Xn(t),o===r?(o=t,t=0):o=Xn(o),e=_n(e),Yv(e,t,o)}function Pw(e,t,o){if(o&&typeof o!="boolean"&&Ut(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=Xn(e),t===r?(t=e,e=0):t=Xn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Af();return Pt(e+y*(t-e+dm("1e-"+((y+"").length-1))),t)}return gu(e,t)}var Nw=Ci(function(e,t,o){return t=t.toLowerCase(),e+(o?nd(t):t)});function nd(e){return Fu(ot(e).toLowerCase())}function rd(e){return e=ot(e),e&&e.replace(Pa,Dm).replace(fn,"")}function $w(e,t,o){e=ot(e),t=en(t);var a=e.length;o=o===r?a:Gr(ze(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function Bw(e){return e=ot(e),e&&cn.test(e)?e.replace(Rn,Om):e}function jw(e){return e=ot(e),e&&li.test(e)?e.replace(Cn,"\\$&"):e}var Yw=Ci(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Uw=Ci(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Fw=sh("toLowerCase");function Ww(e,t,o){e=ot(e),t=ze(t);var a=t?vi(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Is(bs(y),o)+e+Is(ws(y),o)}function zw(e,t,o){e=ot(e),t=ze(t);var a=t?vi(e):0;return t&&a<t?e+Is(t-a,o):e}function qw(e,t,o){e=ot(e),t=ze(t);var a=t?vi(e):0;return t&&a<t?Is(t-a,o)+e:e}function Hw(e,t,o){return o||t==null?t=0:t&&(t=+t),Xm(ot(e).replace(pr,""),t||0)}function Gw(e,t,o){return(o?Ut(e,t,o):t===r)?t=1:t=ze(t),mu(ot(e),t)}function Vw(){var e=arguments,t=ot(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Zw=Ci(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function Kw(e,t,o){return o&&typeof o!="number"&&Ut(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=ot(e),e&&(typeof t=="string"||t!=null&&!ju(t))&&(t=en(t),!t&&mi(e))?Tr(Dn(e),0,o):e.split(t,o)):[]}var Qw=Ci(function(e,t,o){return e+(o?" ":"")+Fu(t)});function Jw(e,t,o){return e=ot(e),o=o==null?0:Gr(ze(o),0,e.length),t=en(t),e.slice(o,o+t.length)==t}function Xw(e,t,o){var a=b.templateSettings;o&&Ut(e,t,o)&&(t=r),e=ot(e),t=Hs({},t,a,dh);var y=Hs({},t.imports,a.imports,dh),S=Tt(y),L=Xa(y,S),U,G,pe=0,ge=t.interpolate||gr,xe="__p += '",Me=tu((t.escape||gr).source+"|"+ge.source+"|"+(ge===jn?Gi:gr).source+"|"+(t.evaluate||gr).source+"|$","g"),Pe="//# sourceURL="+(st.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++um+"]")+`
|
|
127
|
+
`;e.replace(Me,function(je,Qe,tt,nn,Ft,rn){return tt||(tt=nn),xe+=e.slice(pe,rn).replace(Na,Tm),Qe&&(U=!0,xe+=`' +
|
|
128
128
|
__e(`+Qe+`) +
|
|
129
|
-
'`),
|
|
130
|
-
`+
|
|
129
|
+
'`),Ft&&(G=!0,xe+=`';
|
|
130
|
+
`+Ft+`;
|
|
131
131
|
__p += '`),tt&&(xe+=`' +
|
|
132
132
|
((__t = (`+tt+`)) == null ? '' : __t) +
|
|
133
|
-
'`),pe=
|
|
134
|
-
`;var Be=
|
|
133
|
+
'`),pe=rn+je.length,je}),xe+=`';
|
|
134
|
+
`;var Be=st.call(t,"variable")&&t.variable;if(!Be)xe=`with (obj) {
|
|
135
135
|
`+xe+`
|
|
136
136
|
}
|
|
137
|
-
`;else if(Rt.test(Be))throw new Fe(c);xe=(G?xe.replace(St,""):xe).replace(
|
|
137
|
+
`;else if(Rt.test(Be))throw new Fe(c);xe=(G?xe.replace(St,""):xe).replace(un,"$1").replace(ln,"$1;"),xe="function("+(Be||"obj")+`) {
|
|
138
138
|
`+(Be?"":`obj || (obj = {});
|
|
139
139
|
`)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
|
|
140
140
|
function print() { __p += __j.call(arguments, '') }
|
|
141
141
|
`:`;
|
|
142
142
|
`)+xe+`return __p
|
|
143
|
-
}`;var qe=od(function(){return nt(S,Pe+"return "+xe).apply(r,L)});if(qe.source=xe,Bu(qe))throw qe;return qe}function eb(e){return it(e).toLowerCase()}function tb(e){return it(e).toUpperCase()}function nb(e,t,o){if(e=it(e),e&&(o||t===r))return pf(e);if(!e||!(t=tn(t)))return e;var a=An(e),y=An(t),S=gf(a,y),L=mf(a,y)+1;return Rr(a,S,L).join("")}function rb(e,t,o){if(e=it(e),e&&(o||t===r))return e.slice(0,yf(e)+1);if(!e||!(t=tn(t)))return e;var a=An(e),y=mf(a,An(t))+1;return Rr(a,0,y).join("")}function ib(e,t,o){if(e=it(e),e&&(o||t===r))return e.replace(Un,"");if(!e||!(t=tn(t)))return e;var a=An(e),y=gf(a,An(t));return Rr(a,y).join("")}function ob(e,t){var o=he,a=te;if(mt(t)){var y="separator"in t?t.separator:y;o="length"in t?ze(t.length):o,a="omission"in t?tn(t.omission):a}e=it(e);var S=e.length;if(yi(e)){var L=An(e);S=L.length}if(o>=S)return e;var U=o-_i(a);if(U<1)return a;var G=L?Rr(L,0,U).join(""):e.slice(0,U);if(y===r)return G+a;if(L&&(U+=G.length-U),ju(y)){if(e.slice(U).search(y)){var pe,ge=G;for(y.global||(y=tu(y.source,it(Ki.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;G=G.slice(0,xe===r?U:xe)}}else if(e.indexOf(tn(y),U)!=U){var Me=G.lastIndexOf(y);Me>-1&&(G=G.slice(0,Me))}return G+a}function sb(e){return e=it(e),e&&cn.test(e)?e.replace(Rn,Pm):e}var ab=Di(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Fu=sh("toUpperCase");function id(e,t,o){return e=it(e),t=o?r:t,t===r?Em(e)?Bm(e):bm(e):e.match(t)||[]}var od=He(function(e,t){try{return Xt(e,r,t)}catch(o){return Bu(o)?o:new Fe(o)}}),ub=Xn(function(e,t){return dn(t,function(o){o=Bn(o),Qn(e,o,Nu(e[o],e))}),e});function lb(e){var t=e==null?0:e.length,o=$e();return e=t?gt(e,function(a){if(typeof a[1]!="function")throw new pn(v);return[o(a[0]),a[1]]}):[],He(function(a){for(var y=-1;++y<t;){var S=e[y];if(Xt(S[0],this,a))return Xt(S[1],this,a)}})}function cb(e){return Pv(mn(e,R))}function Wu(e){return function(){return e}}function fb(e,t){return e==null||e!==e?t:e}var hb=uh(),db=uh(!0);function Zt(e){return e}function zu(e){return Bf(typeof e=="function"?e:mn(e,R))}function pb(e){return Yf(mn(e,R))}function gb(e,t){return Uf(e,mn(t,R))}var mb=He(function(e,t){return function(o){return go(o,e,t)}}),vb=He(function(e,t){return function(o){return go(e,o,t)}});function qu(e,t,o){var a=Mt(t),y=Ms(t,a);o==null&&!(mt(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Ms(t,Mt(t)));var S=!(mt(o)&&"chain"in o)||!!o.chain,L=tr(e);return dn(y,function(U){var G=t[U];e[U]=G,L&&(e.prototype[U]=function(){var pe=this.__chain__;if(S||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=Ht(this.__actions__);return xe.push({func:G,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return G.apply(e,Ar([this.value()],arguments))})}),e}function yb(){return Lt._===this&&(Lt._=zm),this}function Hu(){}function _b(e){return e=ze(e),He(function(t){return Ff(t,e)})}var wb=Su(gt),bb=Su(lf),xb=Su(Va);function sd(e){return Eu(e)?Za(Bn(e)):Jv(e)}function Sb(e){return function(t){return e==null?r:Kr(e,t)}}var Cb=ch(),Ab=ch(!0);function Gu(){return[]}function Vu(){return!1}function Db(){return{}}function Ob(){return""}function Tb(){return!0}function Mb(e,t){if(e=ze(e),e<1||e>f)return[];var o=m,a=It(e,m);t=$e(t),e-=m;for(var y=Ja(a,t);++o<e;)t(o);return y}function Eb(e){return We(e)?gt(e,Bn):nn(e)?[e]:Ht(Dh(it(e)))}function Rb(e){var t=++Fm;return it(e)+t}var Lb=Ps(function(e,t){return e+t},0),kb=Cu("ceil"),Ib=Ps(function(e,t){return e/t},1),Pb=Cu("floor");function Nb(e){return e&&e.length?Ts(e,Zt,lu):r}function $b(e,t){return e&&e.length?Ts(e,$e(t,2),lu):r}function Bb(e){return hf(e,Zt)}function jb(e,t){return hf(e,$e(t,2))}function Yb(e){return e&&e.length?Ts(e,Zt,du):r}function Ub(e,t){return e&&e.length?Ts(e,$e(t,2),du):r}var Fb=Ps(function(e,t){return e*t},1),Wb=Cu("round"),zb=Ps(function(e,t){return e-t},0);function qb(e){return e&&e.length?Qa(e,Zt):0}function Hb(e,t){return e&&e.length?Qa(e,$e(t,2)):0}return b.after=p_,b.ary=$h,b.assign=tw,b.assignIn=Qh,b.assignInWith=Vs,b.assignWith=nw,b.at=rw,b.before=Bh,b.bind=Nu,b.bindAll=ub,b.bindKey=jh,b.castArray=D_,b.chain=Ih,b.chunk=Py,b.compact=Ny,b.concat=$y,b.cond=lb,b.conforms=cb,b.constant=Wu,b.countBy=q2,b.create=iw,b.curry=Yh,b.curryRight=Uh,b.debounce=Fh,b.defaults=ow,b.defaultsDeep=sw,b.defer=g_,b.delay=m_,b.difference=By,b.differenceBy=jy,b.differenceWith=Yy,b.drop=Uy,b.dropRight=Fy,b.dropRightWhile=Wy,b.dropWhile=zy,b.fill=qy,b.filter=G2,b.flatMap=K2,b.flatMapDeep=Q2,b.flatMapDepth=J2,b.flatten=Eh,b.flattenDeep=Hy,b.flattenDepth=Gy,b.flip=v_,b.flow=hb,b.flowRight=db,b.fromPairs=Vy,b.functions=dw,b.functionsIn=pw,b.groupBy=X2,b.initial=Ky,b.intersection=Qy,b.intersectionBy=Jy,b.intersectionWith=Xy,b.invert=mw,b.invertBy=vw,b.invokeMap=t_,b.iteratee=zu,b.keyBy=n_,b.keys=Mt,b.keysIn=Vt,b.map=Fs,b.mapKeys=_w,b.mapValues=ww,b.matches=pb,b.matchesProperty=gb,b.memoize=zs,b.merge=bw,b.mergeWith=Jh,b.method=mb,b.methodOf=vb,b.mixin=qu,b.negate=qs,b.nthArg=_b,b.omit=xw,b.omitBy=Sw,b.once=y_,b.orderBy=r_,b.over=wb,b.overArgs=__,b.overEvery=bb,b.overSome=xb,b.partial=$u,b.partialRight=Wh,b.partition=i_,b.pick=Cw,b.pickBy=Xh,b.property=sd,b.propertyOf=Sb,b.pull=r2,b.pullAll=Lh,b.pullAllBy=i2,b.pullAllWith=o2,b.pullAt=s2,b.range=Cb,b.rangeRight=Ab,b.rearg=w_,b.reject=a_,b.remove=a2,b.rest=b_,b.reverse=Iu,b.sampleSize=l_,b.set=Dw,b.setWith=Ow,b.shuffle=c_,b.slice=u2,b.sortBy=d_,b.sortedUniq=g2,b.sortedUniqBy=m2,b.split=Kw,b.spread=x_,b.tail=v2,b.take=y2,b.takeRight=_2,b.takeRightWhile=w2,b.takeWhile=b2,b.tap=N2,b.throttle=S_,b.thru=Us,b.toArray=Vh,b.toPairs=ed,b.toPairsIn=td,b.toPath=Eb,b.toPlainObject=Kh,b.transform=Tw,b.unary=C_,b.union=x2,b.unionBy=S2,b.unionWith=C2,b.uniq=A2,b.uniqBy=D2,b.uniqWith=O2,b.unset=Mw,b.unzip=Pu,b.unzipWith=kh,b.update=Ew,b.updateWith=Rw,b.values=Mi,b.valuesIn=Lw,b.without=T2,b.words=id,b.wrap=A_,b.xor=M2,b.xorBy=E2,b.xorWith=R2,b.zip=L2,b.zipObject=k2,b.zipObjectDeep=I2,b.zipWith=P2,b.entries=ed,b.entriesIn=td,b.extend=Qh,b.extendWith=Vs,qu(b,b),b.add=Lb,b.attempt=od,b.camelCase=Nw,b.capitalize=nd,b.ceil=kb,b.clamp=kw,b.clone=O_,b.cloneDeep=M_,b.cloneDeepWith=E_,b.cloneWith=T_,b.conformsTo=R_,b.deburr=rd,b.defaultTo=fb,b.divide=Ib,b.endsWith=$w,b.eq=On,b.escape=Bw,b.escapeRegExp=jw,b.every=H2,b.find=V2,b.findIndex=Th,b.findKey=aw,b.findLast=Z2,b.findLastIndex=Mh,b.findLastKey=uw,b.floor=Pb,b.forEach=Ph,b.forEachRight=Nh,b.forIn=lw,b.forInRight=cw,b.forOwn=fw,b.forOwnRight=hw,b.get=Yu,b.gt=L_,b.gte=k_,b.has=gw,b.hasIn=Uu,b.head=Rh,b.identity=Zt,b.includes=e_,b.indexOf=Zy,b.inRange=Iw,b.invoke=yw,b.isArguments=Xr,b.isArray=We,b.isArrayBuffer=I_,b.isArrayLike=Gt,b.isArrayLikeObject=wt,b.isBoolean=P_,b.isBuffer=Lr,b.isDate=N_,b.isElement=$_,b.isEmpty=B_,b.isEqual=j_,b.isEqualWith=Y_,b.isError=Bu,b.isFinite=U_,b.isFunction=tr,b.isInteger=zh,b.isLength=Hs,b.isMap=qh,b.isMatch=F_,b.isMatchWith=W_,b.isNaN=z_,b.isNative=q_,b.isNil=G_,b.isNull=H_,b.isNumber=Hh,b.isObject=mt,b.isObjectLike=yt,b.isPlainObject=bo,b.isRegExp=ju,b.isSafeInteger=V_,b.isSet=Gh,b.isString=Gs,b.isSymbol=nn,b.isTypedArray=Ti,b.isUndefined=Z_,b.isWeakMap=K_,b.isWeakSet=Q_,b.join=e2,b.kebabCase=Yw,b.last=yn,b.lastIndexOf=t2,b.lowerCase=Uw,b.lowerFirst=Fw,b.lt=J_,b.lte=X_,b.max=Nb,b.maxBy=$b,b.mean=Bb,b.meanBy=jb,b.min=Yb,b.minBy=Ub,b.stubArray=Gu,b.stubFalse=Vu,b.stubObject=Db,b.stubString=Ob,b.stubTrue=Tb,b.multiply=Fb,b.nth=n2,b.noConflict=yb,b.noop=Hu,b.now=Ws,b.pad=Ww,b.padEnd=zw,b.padStart=qw,b.parseInt=Hw,b.random=Pw,b.reduce=o_,b.reduceRight=s_,b.repeat=Gw,b.replace=Vw,b.result=Aw,b.round=Wb,b.runInContext=H,b.sample=u_,b.size=f_,b.snakeCase=Zw,b.some=h_,b.sortedIndex=l2,b.sortedIndexBy=c2,b.sortedIndexOf=f2,b.sortedLastIndex=h2,b.sortedLastIndexBy=d2,b.sortedLastIndexOf=p2,b.startCase=Qw,b.startsWith=Jw,b.subtract=zb,b.sum=qb,b.sumBy=Hb,b.template=Xw,b.times=Mb,b.toFinite=nr,b.toInteger=ze,b.toLength=Zh,b.toLower=eb,b.toNumber=_n,b.toSafeInteger=ew,b.toString=it,b.toUpper=tb,b.trim=nb,b.trimEnd=rb,b.trimStart=ib,b.truncate=ob,b.unescape=sb,b.uniqueId=Rb,b.upperCase=ab,b.upperFirst=Fu,b.each=Ph,b.eachRight=Nh,b.first=Rh,qu(b,function(){var e={};return Nn(b,function(t,o){ot.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),dn(["drop","take"],function(e,t){Xe.prototype[e]=function(o){o=o===r?1:Dt(ze(o),0);var a=this.__filtered__&&!t?new Xe(this):this.clone();return a.__filtered__?a.__takeCount__=It(o,a.__takeCount__):a.__views__.push({size:It(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),dn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==N||o==O;Xe.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:$e(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),dn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Xe.prototype[e]=function(){return this[o](1).value()[0]}}),dn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Xe.prototype[e]=function(){return this.__filtered__?new Xe(this):this[o](1)}}),Xe.prototype.compact=function(){return this.filter(Zt)},Xe.prototype.find=function(e){return this.filter(e).head()},Xe.prototype.findLast=function(e){return this.reverse().find(e)},Xe.prototype.invokeMap=He(function(e,t){return typeof e=="function"?new Xe(this):this.map(function(o){return go(o,e,t)})}),Xe.prototype.reject=function(e){return this.filter(qs($e(e)))},Xe.prototype.slice=function(e,t){e=ze(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=ze(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Xe.prototype.toArray=function(){return this.take(m)},Nn(Xe.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],S=a||/^find/.test(t);y&&(b.prototype[t]=function(){var L=this.__wrapped__,U=a?[1]:arguments,G=L instanceof Xe,pe=U[0],ge=G||We(L),xe=function(Qe){var tt=y.apply(b,Ar([Qe],U));return a&&Me?tt[0]:tt};ge&&o&&typeof pe=="function"&&pe.length!=1&&(G=ge=!1);var Me=this.__chain__,Pe=!!this.__actions__.length,Be=S&&!Me,qe=G&&!Pe;if(!S&&ge){L=qe?L:new Xe(this);var je=e.apply(L,U);return je.__actions__.push({func:Us,args:[xe],thisArg:r}),new gn(je,Me)}return Be&&qe?e.apply(this,U):(je=this.thru(xe),Be?a?je.value()[0]:je.value():je)})}),dn(["pop","push","shift","sort","splice","unshift"],function(e){var t=ds[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 S=this.value();return t.apply(We(S)?S:[],y)}return this[o](function(L){return t.apply(We(L)?L:[],y)})}}),Nn(Xe.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";ot.call(Si,a)||(Si[a]=[]),Si[a].push({name:t,func:o})}}),Si[Is(r,X).name]=[{name:"wrapper",func:r}],Xe.prototype.clone=sv,Xe.prototype.reverse=av,Xe.prototype.value=uv,b.prototype.at=$2,b.prototype.chain=B2,b.prototype.commit=j2,b.prototype.next=Y2,b.prototype.plant=F2,b.prototype.reverse=W2,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=z2,b.prototype.first=b.prototype.head,ao&&(b.prototype[ao]=U2),b},wi=jm();qr?((qr.exports=wi)._=wi,za._=wi):Lt._=wi}).call(B0)}(Hi,Hi.exports)),Hi.exports}var Gc=j0();function Y0(i){const n=wn.c(41),{fields:r,onClose:s,queryKey:l,apiPath:p,id:v,steps:c}=i,[x,A]=me.useState(0),[T,R]=me.useState(!1),{data:P,isLoading:M}=mc(p,l,v),{mutateAsync:I,isError:j,error:F,isPending:X}=xa(p,l);let ie;n[0]!==r?(ie=new Set(r.filter(G0).map(H0)),n[0]=r,n[1]=ie):ie=n[1];let oe;n[2]!==ie?(oe=[...ie],n[2]=ie,n[3]=oe):oe=n[3];const ce=oe;let K;n[4]!==r?(K=r.reduce(q0,{}),n[4]=r,n[5]=K):K=n[5];let fe;n[6]!==r?(fe=r.filter(z0).reduce(F0,{}),n[6]=r,n[7]=fe):fe=n[7];let ee;n[8]!==K||n[9]!==fe?(ee={mode:"uncontrolled",initialValues:K,validate:fe},n[8]=K,n[9]=fe,n[10]=ee):ee=n[10];const J=Ei.useForm(ee);let ve;n[11]!==P||n[12]!==r||n[13]!==J?(ve=()=>{if(P){const O=r.reduce((d,f)=>{const w=f.id;return d[w]=Array.isArray(P[w])?P[w]:f.type==="boolean"?P[w]??!1:f.type==="date"?P[w]?new Date(P[w]):"":P[w]??"",d},{});J.initialize(O),J.setValues(O)}},n[11]=P,n[12]=r,n[13]=J,n[14]=ve):ve=n[14];let he;n[15]!==P?(he=[P],n[15]=P,n[16]=he):he=n[16],me.useEffect(ve,he);let te;n[17]!==J||n[18]!==v?(te=function(d){return D.jsxs(me.Fragment,{children:[(d.type===void 0||d.type=="text")&&D.jsx($.TextInput,{label:d.column.title,placeholder:d.placeholder??"",...J.getInputProps(d.id),type:d.id.includes("email")?"email":void 0},J.key(d.id)),d.type==="number"&&D.jsx($.NumberInput,{decimalSeparator:",",label:d.column.title,placeholder:d.placeholder??"",...J.getInputProps(d.id)},J.key(d.id)),d.type==="date"&&D.jsx(Ko,{label:d.column.title,placeholder:d.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...J.getInputProps(d.id)},J.key(d.id)),d.type==="boolean"&&D.jsx($.Checkbox,{mt:"md",label:d.column.title,...J.getInputProps(d.id,{type:"checkbox"})},J.key(d.id)),d.type==="custom"&&d.render&&d.render({...J.getValues(),id:v},J.setValues,R)]},d.id)},n[17]=J,n[18]=v,n[19]=te):te=n[19];const Oe=te;let Te;n[20]!==j||n[21]!==(F==null?void 0:F.message)||n[22]!==(F==null?void 0:F.name)?(Te=j&&D.jsx($.Alert,{variant:"outline",color:"red",title:(F==null?void 0:F.name)??"Fehler aufgetreten",mb:"lg",children:(F==null?void 0:F.message)??"Fehler aufgetreten"}),n[20]=j,n[21]=F==null?void 0:F.message,n[22]=F==null?void 0:F.name,n[23]=Te):Te=n[23];let N;n[24]!==x||n[25]!==r||n[26]!==J||n[27]!==T||n[28]!==v||n[29]!==M||n[30]!==X||n[31]!==j||n[32]!==s||n[33]!==Oe||n[34]!==c||n[35]!==ce||n[36]!==I?(N=M?D.jsxs($.Stack,{gap:"md",children:[D.jsx($.Skeleton,{height:40}),Array(r.length).fill(0).map(U0),D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Skeleton,{width:100,height:36}),D.jsx($.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:J.onSubmit(async O=>{await I({...O,id:v}),ce.length&&x<ce.length-1?j||A(x+1):j||(J.setInitialValues(O),J.reset(),s())}),children:[ce.length?D.jsx($.Stepper,{active:x,size:"sm",children:ce.map(O=>D.jsx($.Stepper.Step,{...c&&c[O-1]?{label:c[O-1].label}:{},children:r.filter(d=>d.step===O).map(d=>Oe(d))},O))}):r.map(O=>Oe(O)),!T&&D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Button,{onClick:()=>ce.length?x===0?s():A(x-1):s(),variant:"outline",children:ce.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx($.Button,{type:"submit",loading:X,children:ce.length?x===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=x,n[25]=r,n[26]=J,n[27]=T,n[28]=v,n[29]=M,n[30]=X,n[31]=j,n[32]=s,n[33]=Oe,n[34]=c,n[35]=ce,n[36]=I,n[37]=N):N=n[37];let E;return n[38]!==N||n[39]!==Te?(E=D.jsxs(D.Fragment,{children:[Te,N]}),n[38]=N,n[39]=Te,n[40]=E):E=n[40],E}function U0(i,n){return D.jsx($.Skeleton,{height:35},`skeleton-field-${n}`)}function F0(i,n){return i[n.id]=W0,i}function W0(i){return i?null:"Pflichtfeld"}function z0(i){return i.required}function q0(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function H0(i){return i.step}function G0(i){return typeof i.step=="number"}function V0({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:l,isError:p,error:v,isPending:c}=_c(n,i),[x,A]=me.useState(s),[T,R]=me.useState(!1),P=T||c;return me.useEffect(()=>{x.length||r()},[r,x]),x.length?D.jsxs(D.Fragment,{children:[p&&v.message&&D.jsx($.Alert,{variant:"outline",color:"red",title:v.name,children:v.message}),D.jsx($.Text,{children:x.length===1?`Soll ${x.length} Eintrag wirklich gelöscht werden?`:`Sollen ${x.length} Einträge wirklich gelöscht werden?`}),D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Button,{onClick:r,variant:"outline",disabled:P,children:"Abbrechen"}),D.jsx($.Button,{color:"red",loading:P,onClick:async()=>{R(!0);try{await Promise.all(x.map(M=>l(M.id))),A([])}finally{R(!1)}},children:"Löschen"})]})]}):D.jsx(D.Fragment,{})}function Vc(i,n){const r=wn.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[l,p]=me.useState(s);let v;r[3]!==n?(v=A=>{p(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=v):v=r[4];const c=v;let x;return r[5]!==c||r[6]!==l?(x=[l,c],r[5]=c,r[6]=l,r[7]=x):x=r[7],x}const Zc=[10,15,20,50,100,500];function Z0(i){const n=wn.c(131),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:p,buttons:v,fields:c,selection:x,pagination:A,filters:T,actions:R,steps:P,defaultSort:M,createButtonText:I,queryParams:j}=i,F=j?"?"+Object.entries(j).filter(om).map(im).join("&"):"",{data:X,isLoading:ie,isError:oe,isRefetching:ce,refetch:K}=vc(p+F,s);let fe;n[0]===Symbol.for("react.memo_cache_sentinel")?(fe=[],n[0]=fe):fe=n[0];const[ee,J]=me.useState(fe),{queryClient:ve}=sr();let he;n[1]!==X||n[2]!==l||n[3]!==T||n[4]!==ve?(he=()=>{if(!(!X||!Array.isArray(X))){if(l==null||l.forEach(ut=>ve.invalidateQueries({queryKey:ut})),!T||T.length===0){J(X);return}J(X.filter(ut=>T.every(Tt=>{if(Tt.value===void 0)return!0;const Un=Tt.id;if(Tt.type==="query"){const Fn=ut[Un];return typeof Fn=="string"&&Fn.includes(Tt.value)}else if(Tt.type==="date"){const Fn=Tt.value,[fi,hi]=Fn;if(fi&&hi){const Ct=ut[Un];if(typeof Ct=="string"){const di=new Date(Ct);return di>=fi&&di<=hi}}return!0}else if(Tt.type==="boolean")return ut[Un]===Tt.value;return!0})))}},n[1]=X,n[2]=l,n[3]=T,n[4]=ve,n[5]=he):he=n[5];let te;n[6]!==X||n[7]!==T||n[8]!==j?(te=[X,T,j],n[6]=X,n[7]=T,n[8]=j,n[9]=te):te=n[9],me.useEffect(he,te);const Oe=(M==null?void 0:M.field)??c[0].id,Te=(M==null?void 0:M.direction)??"desc";let N;n[10]!==Oe||n[11]!==Te?(N={columnAccessor:Oe,direction:Te},n[10]=Oe,n[11]=Te,n[12]=N):N=n[12];const[E,O]=me.useState(N);let d;n[13]!==ee||n[14]!==(M==null?void 0:M.direction)||n[15]!==(M==null?void 0:M.field)||n[16]!==c[0]?(d=()=>{const ut=Gc.sortBy(ee,(M==null?void 0:M.field)??c[0].id);return(M==null?void 0:M.direction)==="asc"?ut:ut.reverse()},n[13]=ee,n[14]=M==null?void 0:M.direction,n[15]=M==null?void 0:M.field,n[16]=c[0],n[17]=d):d=n[17];const[f,w]=me.useState(d);let g;n[18]!==ee||n[19]!==E.columnAccessor||n[20]!==E.direction?(g=()=>{const ut=Gc.sortBy(ee,E.columnAccessor);w(E.direction==="desc"?ut.reverse():ut)},n[18]=ee,n[19]=E.columnAccessor,n[20]=E.direction,n[21]=g):g=n[21];let m;n[22]!==ee||n[23]!==E?(m=[E,ee],n[22]=ee,n[23]=E,n[24]=m):m=n[24],me.useEffect(g,m);const[C,W]=Vc(Zc[1],"mantine-table-page-size"),[V,ae]=me.useState(1);let ue;n[25]!==C||n[26]!==A||n[27]!==f?(ue=A?f.slice(0,C):f,n[25]=C,n[26]=A,n[27]=f,n[28]=ue):ue=n[28];const[be,ne]=me.useState(ue);let de;n[29]===Symbol.for("react.memo_cache_sentinel")?(de=()=>{ae(1)},n[29]=de):de=n[29];let Ce;n[30]!==C?(Ce=[C],n[30]=C,n[31]=Ce):Ce=n[31],me.useEffect(de,Ce);let _e,B;n[32]!==V||n[33]!==C||n[34]!==A||n[35]!==f?(_e=()=>{if(A){const ut=(V-1)*C,Tt=ut+C;ne(f.slice(ut,Tt))}else ne(f)},B=[V,f,A,C],n[32]=V,n[33]=C,n[34]=A,n[35]=f,n[36]=_e,n[37]=B):(_e=n[36],B=n[37]),me.useEffect(_e,B);let z;n[38]===Symbol.for("react.memo_cache_sentinel")?(z=[],n[38]=z):z=n[38];const[Y,Z]=me.useState(z);let se;n[39]!==Y||n[40]!==x||n[41]!==f?(se=()=>{x&&Z(f.filter(ut=>Y.some(Tt=>Tt.id===ut.id)))},n[39]=Y,n[40]=x,n[41]=f,n[42]=se):se=n[42];let De;n[43]!==f?(De=[f],n[43]=f,n[44]=De):De=n[44],me.useEffect(se,De);const[u,h]=me.useState(!1),[_,k]=me.useState(!1),[q,Q]=me.useState(!1),Ae=r?"space-between":"end";let we;n[45]!==r?(we=r&&(typeof r=="string"?D.jsx($.Title,{order:4,children:r}):r),n[45]=r,n[46]=we):we=n[46];let Re;n[47]!==K?(Re=()=>K(),n[47]=K,n[48]=Re):Re=n[48];let Se;n[49]===Symbol.for("react.memo_cache_sentinel")?(Se=D.jsx(Ri.IconRefresh,{}),n[49]=Se):Se=n[49];let Le;n[50]!==Re?(Le=D.jsx($.ActionIcon,{variant:"subtle",onClick:Re,"aria-label":"Neuladen",children:Se}),n[50]=Re,n[51]=Le):Le=n[51];let Ne;n[52]!==R||n[53]!==c||n[54]!==Y||n[55]!==x?(Ne=(c.some(rm)||x)&&D.jsxs($.Menu,{shadow:"md",children:[D.jsx($.Menu.Target,{children:D.jsx($.Button,{variant:"outline",rightSection:D.jsx(Ri.IconCaretDownFilled,{size:14}),disabled:!Y.length,children:"Aktionen"})}),D.jsxs($.Menu.Dropdown,{children:[c.find(nm)&&D.jsx($.Menu.Item,{leftSection:D.jsx(Ri.IconPencil,{size:14}),onClick:()=>k(!0),disabled:Y.length!==1,children:"Bearbeiten"}),(R??[]).map((ut,Tt)=>me.createElement($.Menu.Item,{...ut.icon&&{leftSection:ut.icon},key:`custom_action_${Tt}`,onClick:()=>ut.onClick(Y)},ut.label)),c.find(tm)&&D.jsx($.Menu.Item,{leftSection:D.jsx(Ri.IconTrash,{size:14}),onClick:()=>Q(!0),color:"red",children:"Löschen"})]})]}),n[52]=R,n[53]=c,n[54]=Y,n[55]=x,n[56]=Ne):Ne=n[56];let ke;n[57]!==I||n[58]!==c||n[59]!==ie?(ke=c.find(em)&&D.jsx($.Button,{onClick:()=>h(!0),disabled:ie,children:I??"Erstellen"}),n[57]=I,n[58]=c,n[59]=ie,n[60]=ke):ke=n[60];let Ge;n[61]!==v||n[62]!==Le||n[63]!==Ne||n[64]!==ke?(Ge=D.jsxs($.Group,{align:"center",gap:"xs",children:[Le,Ne,ke,v]}),n[61]=v,n[62]=Le,n[63]=Ne,n[64]=ke,n[65]=Ge):Ge=n[65];let Je;n[66]!==Ae||n[67]!==we||n[68]!==Ge?(Je=D.jsxs($.Group,{gap:"xs",justify:Ae,align:"center",children:[we,Ge]}),n[66]=Ae,n[67]=we,n[68]=Ge,n[69]=Je):Je=n[69];let Ve;n[70]!==oe?(Ve=oe&&D.jsx($.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(Ri.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[70]=oe,n[71]=Ve):Ve=n[71];let _t;n[72]!==ie||n[73]!==ce?(_t=(ie||ce)&&D.jsxs($.Stack,{my:"md",children:[D.jsx($.Skeleton,{height:40}),Array(5).fill(0).map(X0)]}),n[72]=ie,n[73]=ce,n[74]=_t):_t=n[74];let ft;n[75]!==c||n[76]!==oe||n[77]!==ie||n[78]!==ce||n[79]!==V||n[80]!==C||n[81]!==A||n[82]!==be||n[83]!==Y||n[84]!==x||n[85]!==W||n[86]!==E||n[87]!==f?(ft=!ie&&!ce&&D.jsx(N0,{my:"md",striped:!0,minHeight:150,fetching:oe,records:be,sortStatus:E,onSortStatusChange:O,...x&&{selectedRecords:Y,onSelectedRecordsChange:Z},...A&&be.length&&{totalRecords:f.length,recordsPerPage:C,onPageChange:ae,page:V,recordsPerPageOptions:Zc,onRecordsPerPageChange:W,recordsPerPageLabel:"Einträge pro Seite"},columns:c.map(J0),noRecordsText:"Keine Einträge gefunden"}),n[75]=c,n[76]=oe,n[77]=ie,n[78]=ce,n[79]=V,n[80]=C,n[81]=A,n[82]=be,n[83]=Y,n[84]=x,n[85]=W,n[86]=E,n[87]=f,n[88]=ft):ft=n[88];let ht;n[89]===Symbol.for("react.memo_cache_sentinel")?(ht=()=>{k(!1),Z([])},n[89]=ht):ht=n[89];const xn=r??"Bearbeiten";let St;n[90]!==p||n[91]!==c||n[92]!==s||n[93]!==Y[0]||n[94]!==Y.length||n[95]!==P?(St=Y.length>0&&D.jsx(Y0,{fields:c.filter(Q0),queryKey:s,apiPath:p,id:Y[0].id,onClose:()=>{k(!1),Z([])},steps:P}),n[90]=p,n[91]=c,n[92]=s,n[93]=Y[0],n[94]=Y.length,n[95]=P,n[96]=St):St=n[96];let ln;n[97]!==xn||n[98]!==St||n[99]!==_?(ln=D.jsx($.Modal,{opened:_,onClose:ht,title:xn,children:St}),n[97]=xn,n[98]=St,n[99]=_,n[100]=ln):ln=n[100];let En;n[101]===Symbol.for("react.memo_cache_sentinel")?(En=()=>{Q(!1),Z([])},n[101]=En):En=n[101];const Rn=r??"Löschen";let Kt;n[102]!==p||n[103]!==s||n[104]!==Y?(Kt=Y.length>0&&D.jsx(V0,{onClose:()=>{Q(!1),Z([])},queryKey:s,apiPath:p,selectedRecords:Y}),n[102]=p,n[103]=s,n[104]=Y,n[105]=Kt):Kt=n[105];let cn;n[106]!==q||n[107]!==Rn||n[108]!==Kt?(cn=D.jsx($.Modal,{opened:q,onClose:En,title:Rn,children:Kt}),n[106]=q,n[107]=Rn,n[108]=Kt,n[109]=cn):cn=n[109];let Ln;n[110]===Symbol.for("react.memo_cache_sentinel")?(Ln=()=>{h(!1)},n[110]=Ln):Ln=n[110];const at=r??"Anlegen";let zt;n[111]===Symbol.for("react.memo_cache_sentinel")?(zt=()=>{h(!1)},n[111]=zt):zt=n[111];let Sn;n[112]!==c?(Sn=c.filter(K0),n[112]=c,n[113]=Sn):Sn=n[113];let kn;n[114]!==p||n[115]!==s||n[116]!==P||n[117]!==Sn?(kn=D.jsx(U1,{queryKey:s,apiPath:p,onClose:zt,fields:Sn,steps:P}),n[114]=p,n[115]=s,n[116]=P,n[117]=Sn,n[118]=kn):kn=n[118];let In;n[119]!==u||n[120]!==at||n[121]!==kn?(In=D.jsx($.Modal,{opened:u,onClose:Ln,title:at,children:kn}),n[119]=u,n[120]=at,n[121]=kn,n[122]=In):In=n[122];let vr;return n[123]!==Je||n[124]!==Ve||n[125]!==_t||n[126]!==ft||n[127]!==ln||n[128]!==cn||n[129]!==In?(vr=D.jsxs(D.Fragment,{children:[Je,Ve,_t,ft,ln,cn,In]}),n[123]=Je,n[124]=Ve,n[125]=_t,n[126]=ft,n[127]=ln,n[128]=cn,n[129]=In,n[130]=vr):vr=n[130],vr}function K0(i){return i.create}function Q0(i){return i.update}function J0(i){return i.column}function X0(i,n){return D.jsx($.Skeleton,{height:35},`skeleton-${n}`)}function em(i){return i.create}function tm(i){return i.delete}function nm(i){return i.update}function rm(i){return i.update}function im(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function om(i){const[,n]=i;return n!=null}function sm(i){const n=wn.c(5),{queryClient:r}=sr();let s;n[0]!==i?(s=D.jsx(Z0,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=D.jsx(xl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}Ue.DataTable=sm,Ue.DataTableProvider=Ng,Ue.api=Bg,Ue.createOne=pc,Ue.deleteOne=dc,Ue.getAll=fc,Ue.getApiHeaders=Ir,Ue.getOne=hc,Ue.updateOne=gc,Ue.useAddOne=yc,Ue.useDataTable=sr,Ue.useDeleteOne=_c,Ue.useGetAll=vc,Ue.useGetOne=mc,Ue.usePersistentState=Vc,Ue.useUpdateOne=xa,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
|
|
143
|
+
}`;var qe=od(function(){return nt(S,Pe+"return "+xe).apply(r,L)});if(qe.source=xe,Bu(qe))throw qe;return qe}function eb(e){return ot(e).toLowerCase()}function tb(e){return ot(e).toUpperCase()}function nb(e,t,o){if(e=ot(e),e&&(o||t===r))return pf(e);if(!e||!(t=en(t)))return e;var a=Dn(e),y=Dn(t),S=gf(a,y),L=mf(a,y)+1;return Tr(a,S,L).join("")}function rb(e,t,o){if(e=ot(e),e&&(o||t===r))return e.slice(0,yf(e)+1);if(!e||!(t=en(t)))return e;var a=Dn(e),y=mf(a,Dn(t))+1;return Tr(a,0,y).join("")}function ib(e,t,o){if(e=ot(e),e&&(o||t===r))return e.replace(pr,"");if(!e||!(t=en(t)))return e;var a=Dn(e),y=gf(a,Dn(t));return Tr(a,y).join("")}function ob(e,t){var o=he,a=te;if(mt(t)){var y="separator"in t?t.separator:y;o="length"in t?ze(t.length):o,a="omission"in t?en(t.omission):a}e=ot(e);var S=e.length;if(mi(e)){var L=Dn(e);S=L.length}if(o>=S)return e;var U=o-vi(a);if(U<1)return a;var G=L?Tr(L,0,U).join(""):e.slice(0,U);if(y===r)return G+a;if(L&&(U+=G.length-U),ju(y)){if(e.slice(U).search(y)){var pe,ge=G;for(y.global||(y=tu(y.source,ot(Vi.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;G=G.slice(0,xe===r?U:xe)}}else if(e.indexOf(en(y),U)!=U){var Me=G.lastIndexOf(y);Me>-1&&(G=G.slice(0,Me))}return G+a}function sb(e){return e=ot(e),e&&Ln.test(e)?e.replace(Sn,Pm):e}var ab=Ci(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Fu=sh("toUpperCase");function id(e,t,o){return e=ot(e),t=o?r:t,t===r?Em(e)?Bm(e):bm(e):e.match(t)||[]}var od=He(function(e,t){try{return Jt(e,r,t)}catch(o){return Bu(o)?o:new Fe(o)}}),ub=Kn(function(e,t){return dn(t,function(o){o=Nn(o),Vn(e,o,Nu(e[o],e))}),e});function lb(e){var t=e==null?0:e.length,o=$e();return e=t?gt(e,function(a){if(typeof a[1]!="function")throw new pn(v);return[o(a[0]),a[1]]}):[],He(function(a){for(var y=-1;++y<t;){var S=e[y];if(Jt(S[0],this,a))return Jt(S[1],this,a)}})}function cb(e){return Pv(mn(e,R))}function Wu(e){return function(){return e}}function fb(e,t){return e==null||e!==e?t:e}var hb=uh(),db=uh(!0);function Zt(e){return e}function zu(e){return Bf(typeof e=="function"?e:mn(e,R))}function pb(e){return Yf(mn(e,R))}function gb(e,t){return Uf(e,mn(t,R))}var mb=He(function(e,t){return function(o){return ho(o,e,t)}}),vb=He(function(e,t){return function(o){return ho(e,o,t)}});function qu(e,t,o){var a=Tt(t),y=Os(t,a);o==null&&!(mt(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Os(t,Tt(t)));var S=!(mt(o)&&"chain"in o)||!!o.chain,L=Jn(e);return dn(y,function(U){var G=t[U];e[U]=G,L&&(e.prototype[U]=function(){var pe=this.__chain__;if(S||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=Ht(this.__actions__);return xe.push({func:G,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return G.apply(e,xr([this.value()],arguments))})}),e}function yb(){return Lt._===this&&(Lt._=zm),this}function Hu(){}function _b(e){return e=ze(e),He(function(t){return Ff(t,e)})}var wb=Su(gt),bb=Su(lf),xb=Su(Va);function sd(e){return Eu(e)?Za(Nn(e)):Jv(e)}function Sb(e){return function(t){return e==null?r:Vr(e,t)}}var Cb=ch(),Ab=ch(!0);function Gu(){return[]}function Vu(){return!1}function Db(){return{}}function Ob(){return""}function Tb(){return!0}function Mb(e,t){if(e=ze(e),e<1||e>f)return[];var o=m,a=Pt(e,m);t=$e(t),e-=m;for(var y=Ja(a,t);++o<e;)t(o);return y}function Eb(e){return We(e)?gt(e,Nn):tn(e)?[e]:Ht(Dh(ot(e)))}function Rb(e){var t=++Fm;return ot(e)+t}var Lb=ks(function(e,t){return e+t},0),kb=Cu("ceil"),Ib=ks(function(e,t){return e/t},1),Pb=Cu("floor");function Nb(e){return e&&e.length?Ds(e,Zt,lu):r}function $b(e,t){return e&&e.length?Ds(e,$e(t,2),lu):r}function Bb(e){return hf(e,Zt)}function jb(e,t){return hf(e,$e(t,2))}function Yb(e){return e&&e.length?Ds(e,Zt,du):r}function Ub(e,t){return e&&e.length?Ds(e,$e(t,2),du):r}var Fb=ks(function(e,t){return e*t},1),Wb=Cu("round"),zb=ks(function(e,t){return e-t},0);function qb(e){return e&&e.length?Qa(e,Zt):0}function Hb(e,t){return e&&e.length?Qa(e,$e(t,2)):0}return b.after=p_,b.ary=$h,b.assign=tw,b.assignIn=Qh,b.assignInWith=Hs,b.assignWith=nw,b.at=rw,b.before=Bh,b.bind=Nu,b.bindAll=ub,b.bindKey=jh,b.castArray=D_,b.chain=Ih,b.chunk=Py,b.compact=Ny,b.concat=$y,b.cond=lb,b.conforms=cb,b.constant=Wu,b.countBy=q2,b.create=iw,b.curry=Yh,b.curryRight=Uh,b.debounce=Fh,b.defaults=ow,b.defaultsDeep=sw,b.defer=g_,b.delay=m_,b.difference=By,b.differenceBy=jy,b.differenceWith=Yy,b.drop=Uy,b.dropRight=Fy,b.dropRightWhile=Wy,b.dropWhile=zy,b.fill=qy,b.filter=G2,b.flatMap=K2,b.flatMapDeep=Q2,b.flatMapDepth=J2,b.flatten=Eh,b.flattenDeep=Hy,b.flattenDepth=Gy,b.flip=v_,b.flow=hb,b.flowRight=db,b.fromPairs=Vy,b.functions=dw,b.functionsIn=pw,b.groupBy=X2,b.initial=Ky,b.intersection=Qy,b.intersectionBy=Jy,b.intersectionWith=Xy,b.invert=mw,b.invertBy=vw,b.invokeMap=t_,b.iteratee=zu,b.keyBy=n_,b.keys=Tt,b.keysIn=Vt,b.map=Ys,b.mapKeys=_w,b.mapValues=ww,b.matches=pb,b.matchesProperty=gb,b.memoize=Fs,b.merge=bw,b.mergeWith=Jh,b.method=mb,b.methodOf=vb,b.mixin=qu,b.negate=Ws,b.nthArg=_b,b.omit=xw,b.omitBy=Sw,b.once=y_,b.orderBy=r_,b.over=wb,b.overArgs=__,b.overEvery=bb,b.overSome=xb,b.partial=$u,b.partialRight=Wh,b.partition=i_,b.pick=Cw,b.pickBy=Xh,b.property=sd,b.propertyOf=Sb,b.pull=r2,b.pullAll=Lh,b.pullAllBy=i2,b.pullAllWith=o2,b.pullAt=s2,b.range=Cb,b.rangeRight=Ab,b.rearg=w_,b.reject=a_,b.remove=a2,b.rest=b_,b.reverse=Iu,b.sampleSize=l_,b.set=Dw,b.setWith=Ow,b.shuffle=c_,b.slice=u2,b.sortBy=d_,b.sortedUniq=g2,b.sortedUniqBy=m2,b.split=Kw,b.spread=x_,b.tail=v2,b.take=y2,b.takeRight=_2,b.takeRightWhile=w2,b.takeWhile=b2,b.tap=N2,b.throttle=S_,b.thru=js,b.toArray=Vh,b.toPairs=ed,b.toPairsIn=td,b.toPath=Eb,b.toPlainObject=Kh,b.transform=Tw,b.unary=C_,b.union=x2,b.unionBy=S2,b.unionWith=C2,b.uniq=A2,b.uniqBy=D2,b.uniqWith=O2,b.unset=Mw,b.unzip=Pu,b.unzipWith=kh,b.update=Ew,b.updateWith=Rw,b.values=Oi,b.valuesIn=Lw,b.without=T2,b.words=id,b.wrap=A_,b.xor=M2,b.xorBy=E2,b.xorWith=R2,b.zip=L2,b.zipObject=k2,b.zipObjectDeep=I2,b.zipWith=P2,b.entries=ed,b.entriesIn=td,b.extend=Qh,b.extendWith=Hs,qu(b,b),b.add=Lb,b.attempt=od,b.camelCase=Nw,b.capitalize=nd,b.ceil=kb,b.clamp=kw,b.clone=O_,b.cloneDeep=M_,b.cloneDeepWith=E_,b.cloneWith=T_,b.conformsTo=R_,b.deburr=rd,b.defaultTo=fb,b.divide=Ib,b.endsWith=$w,b.eq=Tn,b.escape=Bw,b.escapeRegExp=jw,b.every=H2,b.find=V2,b.findIndex=Th,b.findKey=aw,b.findLast=Z2,b.findLastIndex=Mh,b.findLastKey=uw,b.floor=Pb,b.forEach=Ph,b.forEachRight=Nh,b.forIn=lw,b.forInRight=cw,b.forOwn=fw,b.forOwnRight=hw,b.get=Yu,b.gt=L_,b.gte=k_,b.has=gw,b.hasIn=Uu,b.head=Rh,b.identity=Zt,b.includes=e_,b.indexOf=Zy,b.inRange=Iw,b.invoke=yw,b.isArguments=Qr,b.isArray=We,b.isArrayBuffer=I_,b.isArrayLike=Gt,b.isArrayLikeObject=wt,b.isBoolean=P_,b.isBuffer=Mr,b.isDate=N_,b.isElement=$_,b.isEmpty=B_,b.isEqual=j_,b.isEqualWith=Y_,b.isError=Bu,b.isFinite=U_,b.isFunction=Jn,b.isInteger=zh,b.isLength=zs,b.isMap=qh,b.isMatch=F_,b.isMatchWith=W_,b.isNaN=z_,b.isNative=q_,b.isNil=G_,b.isNull=H_,b.isNumber=Hh,b.isObject=mt,b.isObjectLike=yt,b.isPlainObject=_o,b.isRegExp=ju,b.isSafeInteger=V_,b.isSet=Gh,b.isString=qs,b.isSymbol=tn,b.isTypedArray=Di,b.isUndefined=Z_,b.isWeakMap=K_,b.isWeakSet=Q_,b.join=e2,b.kebabCase=Yw,b.last=yn,b.lastIndexOf=t2,b.lowerCase=Uw,b.lowerFirst=Fw,b.lt=J_,b.lte=X_,b.max=Nb,b.maxBy=$b,b.mean=Bb,b.meanBy=jb,b.min=Yb,b.minBy=Ub,b.stubArray=Gu,b.stubFalse=Vu,b.stubObject=Db,b.stubString=Ob,b.stubTrue=Tb,b.multiply=Fb,b.nth=n2,b.noConflict=yb,b.noop=Hu,b.now=Us,b.pad=Ww,b.padEnd=zw,b.padStart=qw,b.parseInt=Hw,b.random=Pw,b.reduce=o_,b.reduceRight=s_,b.repeat=Gw,b.replace=Vw,b.result=Aw,b.round=Wb,b.runInContext=H,b.sample=u_,b.size=f_,b.snakeCase=Zw,b.some=h_,b.sortedIndex=l2,b.sortedIndexBy=c2,b.sortedIndexOf=f2,b.sortedLastIndex=h2,b.sortedLastIndexBy=d2,b.sortedLastIndexOf=p2,b.startCase=Qw,b.startsWith=Jw,b.subtract=zb,b.sum=qb,b.sumBy=Hb,b.template=Xw,b.times=Mb,b.toFinite=Xn,b.toInteger=ze,b.toLength=Zh,b.toLower=eb,b.toNumber=_n,b.toSafeInteger=ew,b.toString=ot,b.toUpper=tb,b.trim=nb,b.trimEnd=rb,b.trimStart=ib,b.truncate=ob,b.unescape=sb,b.uniqueId=Rb,b.upperCase=ab,b.upperFirst=Fu,b.each=Ph,b.eachRight=Nh,b.first=Rh,qu(b,function(){var e={};return In(b,function(t,o){st.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),dn(["drop","take"],function(e,t){Xe.prototype[e]=function(o){o=o===r?1:At(ze(o),0);var a=this.__filtered__&&!t?new Xe(this):this.clone();return a.__filtered__?a.__takeCount__=Pt(o,a.__takeCount__):a.__views__.push({size:Pt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),dn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==N||o==O;Xe.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:$e(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),dn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Xe.prototype[e]=function(){return this[o](1).value()[0]}}),dn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Xe.prototype[e]=function(){return this.__filtered__?new Xe(this):this[o](1)}}),Xe.prototype.compact=function(){return this.filter(Zt)},Xe.prototype.find=function(e){return this.filter(e).head()},Xe.prototype.findLast=function(e){return this.reverse().find(e)},Xe.prototype.invokeMap=He(function(e,t){return typeof e=="function"?new Xe(this):this.map(function(o){return ho(o,e,t)})}),Xe.prototype.reject=function(e){return this.filter(Ws($e(e)))},Xe.prototype.slice=function(e,t){e=ze(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=ze(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Xe.prototype.toArray=function(){return this.take(m)},In(Xe.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],S=a||/^find/.test(t);y&&(b.prototype[t]=function(){var L=this.__wrapped__,U=a?[1]:arguments,G=L instanceof Xe,pe=U[0],ge=G||We(L),xe=function(Qe){var tt=y.apply(b,xr([Qe],U));return a&&Me?tt[0]:tt};ge&&o&&typeof pe=="function"&&pe.length!=1&&(G=ge=!1);var Me=this.__chain__,Pe=!!this.__actions__.length,Be=S&&!Me,qe=G&&!Pe;if(!S&&ge){L=qe?L:new Xe(this);var je=e.apply(L,U);return je.__actions__.push({func:js,args:[xe],thisArg:r}),new gn(je,Me)}return Be&&qe?e.apply(this,U):(je=this.thru(xe),Be?a?je.value()[0]:je.value():je)})}),dn(["pop","push","shift","sort","splice","unshift"],function(e){var t=fs[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 S=this.value();return t.apply(We(S)?S:[],y)}return this[o](function(L){return t.apply(We(L)?L:[],y)})}}),In(Xe.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";st.call(bi,a)||(bi[a]=[]),bi[a].push({name:t,func:o})}}),bi[Ls(r,X).name]=[{name:"wrapper",func:r}],Xe.prototype.clone=sv,Xe.prototype.reverse=av,Xe.prototype.value=uv,b.prototype.at=$2,b.prototype.chain=B2,b.prototype.commit=j2,b.prototype.next=Y2,b.prototype.plant=F2,b.prototype.reverse=W2,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=z2,b.prototype.first=b.prototype.head,oo&&(b.prototype[oo]=U2),b},yi=jm();Wr?((Wr.exports=yi)._=yi,za._=yi):Lt._=yi}).call(B0)}(zi,zi.exports)),zi.exports}var Gc=j0();function Y0(i){const n=wn.c(41),{fields:r,onClose:s,queryKey:l,apiPath:p,id:v,steps:c}=i,[x,A]=me.useState(0),[T,R]=me.useState(!1),{data:P,isLoading:M}=mc(p,l,v),{mutateAsync:I,isError:j,error:F,isPending:X}=wa(p,l);let ie;n[0]!==r?(ie=new Set(r.filter(G0).map(H0)),n[0]=r,n[1]=ie):ie=n[1];let oe;n[2]!==ie?(oe=[...ie],n[2]=ie,n[3]=oe):oe=n[3];const ce=oe;let K;n[4]!==r?(K=r.reduce(q0,{}),n[4]=r,n[5]=K):K=n[5];let fe;n[6]!==r?(fe=r.filter(z0).reduce(F0,{}),n[6]=r,n[7]=fe):fe=n[7];let ee;n[8]!==K||n[9]!==fe?(ee={mode:"uncontrolled",initialValues:K,validate:fe},n[8]=K,n[9]=fe,n[10]=ee):ee=n[10];const J=Ti.useForm(ee);let ve;n[11]!==P||n[12]!==r||n[13]!==J?(ve=()=>{if(P){const O=r.reduce((d,f)=>{const w=f.id;return d[w]=Array.isArray(P[w])?P[w]:f.type==="boolean"?P[w]??!1:f.type==="date"?P[w]?new Date(P[w]):"":P[w]??"",d},{});J.initialize(O),J.setValues(O)}},n[11]=P,n[12]=r,n[13]=J,n[14]=ve):ve=n[14];let he;n[15]!==P?(he=[P],n[15]=P,n[16]=he):he=n[16],me.useEffect(ve,he);let te;n[17]!==J||n[18]!==v?(te=function(d){return D.jsxs(me.Fragment,{children:[(d.type===void 0||d.type=="text")&&D.jsx($.TextInput,{label:d.column.title,placeholder:d.placeholder??"",...J.getInputProps(d.id),type:d.id.includes("email")?"email":void 0},J.key(d.id)),d.type==="number"&&D.jsx($.NumberInput,{decimalSeparator:",",label:d.column.title,placeholder:d.placeholder??"",...J.getInputProps(d.id)},J.key(d.id)),d.type==="date"&&D.jsx(Vo,{label:d.column.title,placeholder:d.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...J.getInputProps(d.id)},J.key(d.id)),d.type==="boolean"&&D.jsx($.Checkbox,{mt:"md",label:d.column.title,...J.getInputProps(d.id,{type:"checkbox"})},J.key(d.id)),d.type==="custom"&&d.render&&d.render({...J.getValues(),id:v},J.setValues,R)]},d.id)},n[17]=J,n[18]=v,n[19]=te):te=n[19];const Oe=te;let Te;n[20]!==j||n[21]!==(F==null?void 0:F.message)||n[22]!==(F==null?void 0:F.name)?(Te=j&&D.jsx($.Alert,{variant:"outline",color:"red",title:(F==null?void 0:F.name)??"Fehler aufgetreten",mb:"lg",children:(F==null?void 0:F.message)??"Fehler aufgetreten"}),n[20]=j,n[21]=F==null?void 0:F.message,n[22]=F==null?void 0:F.name,n[23]=Te):Te=n[23];let N;n[24]!==x||n[25]!==r||n[26]!==J||n[27]!==T||n[28]!==v||n[29]!==M||n[30]!==X||n[31]!==j||n[32]!==s||n[33]!==Oe||n[34]!==c||n[35]!==ce||n[36]!==I?(N=M?D.jsxs($.Stack,{gap:"md",children:[D.jsx($.Skeleton,{height:40}),Array(r.length).fill(0).map(U0),D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Skeleton,{width:100,height:36}),D.jsx($.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:J.onSubmit(async O=>{await I({...O,id:v}),ce.length&&x<ce.length-1?j||A(x+1):j||(J.setInitialValues(O),J.reset(),s())}),children:[ce.length?D.jsx($.Stepper,{active:x,size:"sm",children:ce.map(O=>D.jsx($.Stepper.Step,{...c&&c[O-1]?{label:c[O-1].label}:{},children:r.filter(d=>d.step===O).map(d=>Oe(d))},O))}):r.map(O=>Oe(O)),!T&&D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Button,{onClick:()=>ce.length?x===0?s():A(x-1):s(),variant:"outline",children:ce.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx($.Button,{type:"submit",loading:X,children:ce.length?x===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=x,n[25]=r,n[26]=J,n[27]=T,n[28]=v,n[29]=M,n[30]=X,n[31]=j,n[32]=s,n[33]=Oe,n[34]=c,n[35]=ce,n[36]=I,n[37]=N):N=n[37];let E;return n[38]!==N||n[39]!==Te?(E=D.jsxs(D.Fragment,{children:[Te,N]}),n[38]=N,n[39]=Te,n[40]=E):E=n[40],E}function U0(i,n){return D.jsx($.Skeleton,{height:35},`skeleton-field-${n}`)}function F0(i,n){return i[n.id]=W0,i}function W0(i){return i?null:"Pflichtfeld"}function z0(i){return i.required}function q0(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function H0(i){return i.step}function G0(i){return typeof i.step=="number"}function V0({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:l,isError:p,error:v,isPending:c}=_c(n,i),[x,A]=me.useState(s),[T,R]=me.useState(!1),P=T||c;return me.useEffect(()=>{x.length||r()},[r,x]),x.length?D.jsxs(D.Fragment,{children:[p&&v.message&&D.jsx($.Alert,{variant:"outline",color:"red",title:v.name,children:v.message}),D.jsx($.Text,{children:x.length===1?`Soll ${x.length} Eintrag wirklich gelöscht werden?`:`Sollen ${x.length} Einträge wirklich gelöscht werden?`}),D.jsxs($.Group,{mt:"md",justify:"end",children:[D.jsx($.Button,{onClick:r,variant:"outline",disabled:P,children:"Abbrechen"}),D.jsx($.Button,{color:"red",loading:P,onClick:async()=>{R(!0);try{await Promise.all(x.map(M=>l(M.id))),A([])}finally{R(!1)}},children:"Löschen"})]})]}):D.jsx(D.Fragment,{})}function Vc(i,n){const r=wn.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[l,p]=me.useState(s);let v;r[3]!==n?(v=A=>{p(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=v):v=r[4];const c=v;let x;return r[5]!==c||r[6]!==l?(x=[l,c],r[5]=c,r[6]=l,r[7]=x):x=r[7],x}const Zc=[10,15,20,50,100,500];function Z0(i){const n=wn.c(128),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:p,buttons:v,fields:c,selection:x,pagination:A,filters:T,actions:R,steps:P,defaultSort:M,createButtonText:I,queryParams:j}=i,F=j?"?"+Object.entries(j).filter(om).map(im).join("&"):"",{data:X,isLoading:ie,isError:oe,isRefetching:ce,refetch:K}=vc(p+F,s);let fe;n[0]===Symbol.for("react.memo_cache_sentinel")?(fe=[],n[0]=fe):fe=n[0];const[ee,J]=me.useState(fe),{queryClient:ve}=rr();let he;n[1]!==X||n[2]!==l||n[3]!==T||n[4]!==ve?(he=()=>{if(!(!X||!Array.isArray(X))){if(l==null||l.forEach(ht=>ve.invalidateQueries({queryKey:ht})),!T||T.length===0){J(X);return}J(X.filter(ht=>T.every(Ot=>{if(Ot.value===void 0)return!0;const Nr=Ot.id;if(Ot.type==="query"){const Cn=ht[Nr];return typeof Cn=="string"&&Cn.includes(Ot.value)}else if(Ot.type==="date"){const Cn=Ot.value,[li,pr]=Cn;if(li&&pr){const ci=ht[Nr];if(typeof ci=="string"){const fi=new Date(ci);return fi>=li&&fi<=pr}}return!0}else if(Ot.type==="boolean")return ht[Nr]===Ot.value;return!0})))}},n[1]=X,n[2]=l,n[3]=T,n[4]=ve,n[5]=he):he=n[5];let te;n[6]!==X||n[7]!==T||n[8]!==j?(te=[X,T,j],n[6]=X,n[7]=T,n[8]=j,n[9]=te):te=n[9],me.useEffect(he,te);const Oe=(M==null?void 0:M.field)??c[0].id,Te=(M==null?void 0:M.direction)??"desc";let N;n[10]!==Oe||n[11]!==Te?(N={columnAccessor:Oe,direction:Te},n[10]=Oe,n[11]=Te,n[12]=N):N=n[12];const[E,O]=me.useState(N);let d;n[13]!==ee||n[14]!==(M==null?void 0:M.direction)||n[15]!==(M==null?void 0:M.field)||n[16]!==c[0]?(d=()=>{const ht=Gc.sortBy(ee,(M==null?void 0:M.field)??c[0].id);return(M==null?void 0:M.direction)==="asc"?ht:ht.reverse()},n[13]=ee,n[14]=M==null?void 0:M.direction,n[15]=M==null?void 0:M.field,n[16]=c[0],n[17]=d):d=n[17];const[f,w]=me.useState(d);let g;n[18]!==ee||n[19]!==E.columnAccessor||n[20]!==E.direction?(g=()=>{const ht=Gc.sortBy(ee,E.columnAccessor);w(E.direction==="desc"?ht.reverse():ht)},n[18]=ee,n[19]=E.columnAccessor,n[20]=E.direction,n[21]=g):g=n[21];let m;n[22]!==ee||n[23]!==E?(m=[E,ee],n[22]=ee,n[23]=E,n[24]=m):m=n[24],me.useEffect(g,m);const[C,W]=Vc(Zc[1],"mantine-table-page-size"),[V,ae]=me.useState(1);let ue;n[25]!==C||n[26]!==A||n[27]!==f?(ue=A?f.slice(0,C):f,n[25]=C,n[26]=A,n[27]=f,n[28]=ue):ue=n[28];const[be,ne]=me.useState(ue);let de;n[29]===Symbol.for("react.memo_cache_sentinel")?(de=()=>{ae(1)},n[29]=de):de=n[29];let Ce;n[30]!==C?(Ce=[C],n[30]=C,n[31]=Ce):Ce=n[31],me.useEffect(de,Ce);let _e,B;n[32]!==V||n[33]!==C||n[34]!==A||n[35]!==f?(_e=()=>{if(A){const ht=(V-1)*C,Ot=ht+C;ne(f.slice(ht,Ot))}else ne(f)},B=[V,f,A,C],n[32]=V,n[33]=C,n[34]=A,n[35]=f,n[36]=_e,n[37]=B):(_e=n[36],B=n[37]),me.useEffect(_e,B);let z;n[38]===Symbol.for("react.memo_cache_sentinel")?(z=[],n[38]=z):z=n[38];const[Y,Z]=me.useState(z);let se;n[39]!==Y||n[40]!==x||n[41]!==f?(se=()=>{x&&Z(f.filter(ht=>Y.some(Ot=>Ot.id===ht.id)))},n[39]=Y,n[40]=x,n[41]=f,n[42]=se):se=n[42];let De;n[43]!==f?(De=[f],n[43]=f,n[44]=De):De=n[44],me.useEffect(se,De);const[u,h]=me.useState(!1),[_,k]=me.useState(!1),[q,Q]=me.useState(!1),Ae=r?"space-between":"end";let we;n[45]!==r?(we=r&&(typeof r=="string"?D.jsx($.Title,{order:4,children:r}):r),n[45]=r,n[46]=we):we=n[46];let Re;n[47]!==K?(Re=()=>K(),n[47]=K,n[48]=Re):Re=n[48];let Se;n[49]===Symbol.for("react.memo_cache_sentinel")?(Se=D.jsx(Mi.IconRefresh,{}),n[49]=Se):Se=n[49];let Le;n[50]!==Re?(Le=D.jsx($.ActionIcon,{variant:"subtle",onClick:Re,"aria-label":"Neuladen",children:Se}),n[50]=Re,n[51]=Le):Le=n[51];let Ne;n[52]!==R||n[53]!==c||n[54]!==Y||n[55]!==x?(Ne=(c.some(rm)||x)&&D.jsxs($.Menu,{shadow:"md",children:[D.jsx($.Menu.Target,{children:D.jsx($.Button,{variant:"outline",rightSection:D.jsx(Mi.IconCaretDownFilled,{size:14}),disabled:!Y.length,children:"Aktionen"})}),D.jsxs($.Menu.Dropdown,{children:[c.find(nm)&&D.jsx($.Menu.Item,{leftSection:D.jsx(Mi.IconPencil,{size:14}),onClick:()=>k(!0),disabled:Y.length!==1,children:"Bearbeiten"}),(R??[]).map((ht,Ot)=>me.createElement($.Menu.Item,{...ht.icon&&{leftSection:ht.icon},key:`custom_action_${Ot}`,onClick:()=>ht.onClick(Y)},ht.label)),c.find(tm)&&D.jsx($.Menu.Item,{leftSection:D.jsx(Mi.IconTrash,{size:14}),onClick:()=>Q(!0),color:"red",children:"Löschen"})]})]}),n[52]=R,n[53]=c,n[54]=Y,n[55]=x,n[56]=Ne):Ne=n[56];let ke;n[57]!==I||n[58]!==c||n[59]!==ie?(ke=c.find(em)&&D.jsx($.Button,{onClick:()=>h(!0),disabled:ie,children:I??"Erstellen"}),n[57]=I,n[58]=c,n[59]=ie,n[60]=ke):ke=n[60];let Ge;n[61]!==v||n[62]!==Le||n[63]!==Ne||n[64]!==ke?(Ge=D.jsxs($.Group,{align:"center",gap:"xs",children:[Le,Ne,ke,v]}),n[61]=v,n[62]=Le,n[63]=Ne,n[64]=ke,n[65]=Ge):Ge=n[65];let Je;n[66]!==Ae||n[67]!==we||n[68]!==Ge?(Je=D.jsxs($.Group,{gap:"xs",justify:Ae,align:"center",children:[we,Ge]}),n[66]=Ae,n[67]=we,n[68]=Ge,n[69]=Je):Je=n[69];let Ve;n[70]!==oe?(Ve=oe&&D.jsx($.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(Mi.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[70]=oe,n[71]=Ve):Ve=n[71];let _t;n[72]!==ie||n[73]!==ce?(_t=(ie||ce)&&D.jsxs($.Stack,{my:"md",children:[D.jsx($.Skeleton,{height:40}),Array(5).fill(0).map(X0)]}),n[72]=ie,n[73]=ce,n[74]=_t):_t=n[74];let ct;n[75]!==c||n[76]!==oe||n[77]!==ie||n[78]!==ce||n[79]!==V||n[80]!==C||n[81]!==A||n[82]!==be||n[83]!==Y||n[84]!==x||n[85]!==W||n[86]!==E||n[87]!==f?(ct=!ie&&!ce&&D.jsx(N0,{my:"md",striped:!0,minHeight:150,fetching:oe,records:be,sortStatus:E,onSortStatusChange:O,...x&&{selectedRecords:Y,onSelectedRecordsChange:Z},...A&&be.length&&{totalRecords:f.length,recordsPerPage:C,onPageChange:ae,page:V,recordsPerPageOptions:Zc,onRecordsPerPageChange:W,recordsPerPageLabel:"Einträge pro Seite"},columns:c.map(J0),noRecordsText:"Keine Einträge gefunden"}),n[75]=c,n[76]=oe,n[77]=ie,n[78]=ce,n[79]=V,n[80]=C,n[81]=A,n[82]=be,n[83]=Y,n[84]=x,n[85]=W,n[86]=E,n[87]=f,n[88]=ct):ct=n[88];let ft;n[89]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>{k(!1),Z([])},n[89]=ft):ft=n[89];const xn=r??"Bearbeiten";let St;n[90]!==p||n[91]!==c||n[92]!==s||n[93]!==Y[0]||n[94]!==Y.length||n[95]!==P?(St=Y.length>0&&D.jsx(Y0,{fields:c.filter(Q0),queryKey:s,apiPath:p,id:Y[0].id,onClose:()=>{k(!1),Z([])},steps:P}),n[90]=p,n[91]=c,n[92]=s,n[93]=Y[0],n[94]=Y.length,n[95]=P,n[96]=St):St=n[96];let un;n[97]!==xn||n[98]!==St||n[99]!==_?(un=D.jsx($.Modal,{opened:_,onClose:ft,title:xn,children:St}),n[97]=xn,n[98]=St,n[99]=_,n[100]=un):un=n[100];let ln;n[101]!==p||n[102]!==q||n[103]!==s||n[104]!==Y||n[105]!==r?(ln=Y.length>0&&D.jsx($.Modal,{opened:q,onClose:()=>{Q(!1),Z([])},title:r??"Löschen",children:D.jsx(V0,{onClose:()=>{Q(!1),Z([])},queryKey:s,apiPath:p,selectedRecords:Y})}),n[101]=p,n[102]=q,n[103]=s,n[104]=Y,n[105]=r,n[106]=ln):ln=n[106];let Sn;n[107]===Symbol.for("react.memo_cache_sentinel")?(Sn=()=>{h(!1)},n[107]=Sn):Sn=n[107];const Rn=r??"Anlegen";let Ln;n[108]===Symbol.for("react.memo_cache_sentinel")?(Ln=()=>{h(!1)},n[108]=Ln):Ln=n[108];let cn;n[109]!==c?(cn=c.filter(K0),n[109]=c,n[110]=cn):cn=n[110];let it;n[111]!==p||n[112]!==s||n[113]!==P||n[114]!==cn?(it=D.jsx(U1,{queryKey:s,apiPath:p,onClose:Ln,fields:cn,steps:P}),n[111]=p,n[112]=s,n[113]=P,n[114]=cn,n[115]=it):it=n[115];let It;n[116]!==u||n[117]!==Rn||n[118]!==it?(It=D.jsx($.Modal,{opened:u,onClose:Sn,title:Rn,children:it}),n[116]=u,n[117]=Rn,n[118]=it,n[119]=It):It=n[119];let jn;return n[120]!==Je||n[121]!==Ve||n[122]!==_t||n[123]!==ct||n[124]!==un||n[125]!==ln||n[126]!==It?(jn=D.jsxs(D.Fragment,{children:[Je,Ve,_t,ct,un,ln,It]}),n[120]=Je,n[121]=Ve,n[122]=_t,n[123]=ct,n[124]=un,n[125]=ln,n[126]=It,n[127]=jn):jn=n[127],jn}function K0(i){return i.create}function Q0(i){return i.update}function J0(i){return i.column}function X0(i,n){return D.jsx($.Skeleton,{height:35},`skeleton-${n}`)}function em(i){return i.create}function tm(i){return i.delete}function nm(i){return i.update}function rm(i){return i.update}function im(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function om(i){const[,n]=i;return n!=null}function sm(i){const n=wn.c(5),{queryClient:r}=rr();let s;n[0]!==i?(s=D.jsx(Z0,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=D.jsx(xl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}Ue.DataTable=sm,Ue.DataTableProvider=Ng,Ue.api=Bg,Ue.createOne=pc,Ue.deleteOne=dc,Ue.getAll=fc,Ue.getApiHeaders=Rr,Ue.getOne=hc,Ue.updateOne=gc,Ue.useAddOne=yc,Ue.useDataTable=rr,Ue.useDeleteOne=_c,Ue.useGetAll=vc,Ue.useGetOne=mc,Ue.usePersistentState=Vc,Ue.useUpdateOne=wa,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
|
|
144
144
|
//# sourceMappingURL=index.umd.js.map
|