@espresso-lab/mantine-data-table 1.6.0 → 1.6.2

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.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,N,ki,Ii,Tt){"use strict";var ud=Ue=>{throw TypeError(Ue)};var Zu=(Ue,me,N)=>me.has(Ue)||ud("Cannot "+N);var ye=(Ue,me,N)=>(Zu(Ue,me,"read from private field"),N?N.call(Ue):me.get(Ue)),ut=(Ue,me,N)=>me.has(Ue)?ud("Cannot add the same private member more than once"):me instanceof WeakSet?me.add(Ue):me.set(Ue,N),Ze=(Ue,me,N,ki)=>(Zu(Ue,me,"write to private field"),ki?ki.call(Ue,N):me.set(Ue,N),N),pt=(Ue,me,N)=>(Zu(Ue,me,"access private method"),N);var Yr,hr,ci,Kc,fi,dr,hi,Qc,Ft,Je,Ki,Bt,Ur,di,pr,gr,Qi,pi,gi,Fr,Wr,mr,mi,it,So,Ku,Qu,Ju,Xu,el,tl,nl,ld,Jc,vr,yr,Wt,zn,qn,Ks,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 Co=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 Ao={exports:{}},Qs={};/**
1
+ (function(ot,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):(ot=typeof globalThis<"u"?globalThis:ot||self,me(ot.MantineDataTable={},ot.React,ot.MantineCore,ot.MantineForm,ot.TablerIconsReact,ot.MantineHooks))})(this,function(ot,me,W,Xa,Qr,Mt){"use strict";function dh(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 St=dh(me);var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function el(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ki={exports:{}},Xo={};/**
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 Qs;ol=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Qs.c=function(n){return i.H.useMemoCache(n)},Qs}var Js={};/**
9
+ */var tl;function ph(){if(tl)return Xo;tl=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Xo.c=function(n){return i.H.useMemoCache(n)},Xo}var es={};/**
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;Js.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:
17
+ */var nl;function gh(){return nl||(nl=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;es.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)}}()),Js}var al;function dd(){return al||(al=1,process.env.NODE_ENV==="production"?Ao.exports=fd():Ao.exports=hd()),Ao.exports}var Dn=dd(),Do=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(){}},Pi=typeof window>"u"||"Deno"in globalThis;function Oo(){}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 Ni(i,n){return typeof i=="function"?i(n):i}function Pn(i,n){return typeof i=="function"?i(n):i}function ll(i){return JSON.stringify(i,(n,r)=>ea(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Xs(i,n){if(i===n)return i;const r=cl(i)&&cl(n);if(r||ea(i)&&ea(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 C=0;C<v;C++){const T=r?C:p[C];(!r&&s.includes(T)||r)&&i[T]===void 0&&n[T]===void 0?(c[T]=void 0,x++):(c[T]=Xs(i[T],n[T]),c[T]===i[T]&&i[T]!==void 0&&x++)}return l===v&&x===l?i:c}return n}function To(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 ea(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 Xs(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 Xs(i,n)}return n}function dl(i,n){return typeof i=="function"?i(...n):!!i}var gd=(Kc=class extends Do{constructor(){super();ut(this,Yr);ut(this,hr);ut(this,ci);Ze(this,ci,n=>{if(!Pi&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ye(this,hr)||this.setEventListener(ye(this,ci))}onUnsubscribe(){var n;this.hasListeners()||((n=ye(this,hr))==null||n.call(this),Ze(this,hr,void 0))}setEventListener(n){var r;Ze(this,ci,n),(r=ye(this,hr))==null||r.call(this),Ze(this,hr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){ye(this,Yr)!==n&&(Ze(this,Yr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof ye(this,Yr)=="boolean"?ye(this,Yr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Yr=new WeakMap,hr=new WeakMap,ci=new WeakMap,Kc),md=new gd,vd=(Qc=class extends Do{constructor(){super();ut(this,fi,!0);ut(this,dr);ut(this,hi);Ze(this,hi,n=>{if(!Pi&&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,dr)||this.setEventListener(ye(this,hi))}onUnsubscribe(){var n;this.hasListeners()||((n=ye(this,dr))==null||n.call(this),Ze(this,dr,void 0))}setEventListener(n){var r;Ze(this,hi,n),(r=ye(this,dr))==null||r.call(this),Ze(this,dr,n(this.setOnline.bind(this)))}setOnline(n){ye(this,fi)!==n&&(Ze(this,fi,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return ye(this,fi)}},fi=new WeakMap,dr=new WeakMap,hi=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 Eo=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 Do{constructor(n,r){super();ut(this,it);ut(this,Ft);ut(this,Je);ut(this,Ki);ut(this,Bt);ut(this,Ur);ut(this,di);ut(this,pr);ut(this,gr);ut(this,Qi);ut(this,pi);ut(this,gi);ut(this,Fr);ut(this,Wr);ut(this,mr);ut(this,mi,new Set);this.options=r,Ze(this,Ft,n),Ze(this,gr,null),Ze(this,pr,pl()),this.options.experimental_prefetchInRender||ye(this,pr).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,Je).addObserver(this),gl(ye(this,Je),this.options)?pt(this,it,So).call(this):this.updateResult(),pt(this,it,Xu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ta(ye(this,Je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ta(ye(this,Je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,it,el).call(this),pt(this,it,tl).call(this),ye(this,Je).removeObserver(this)}setOptions(n){const r=this.options,s=ye(this,Je);if(this.options=ye(this,Ft).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pn(this.options.enabled,ye(this,Je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,it,nl).call(this),ye(this,Je).setOptions(this.options),r._defaulted&&!To(this.options,r)&&ye(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:ye(this,Je),observer:this});const l=this.hasListeners();l&&ml(ye(this,Je),s,this.options,r)&&pt(this,it,So).call(this),this.updateResult(),l&&(ye(this,Je)!==s||Pn(this.options.enabled,ye(this,Je))!==Pn(r.enabled,ye(this,Je))||Ni(this.options.staleTime,ye(this,Je))!==Ni(r.staleTime,ye(this,Je)))&&pt(this,it,Ku).call(this);const p=pt(this,it,Qu).call(this);l&&(ye(this,Je)!==s||Pn(this.options.enabled,ye(this,Je))!==Pn(r.enabled,ye(this,Je))||p!==ye(this,mr))&&pt(this,it,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)&&(Ze(this,Bt,s),Ze(this,di,this.options),Ze(this,Ur,ye(this,Je).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,mi).add(n)}getCurrentQuery(){return ye(this,Je)}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,it,So).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),ye(this,Bt)))}createResult(n,r){var pe;const s=ye(this,Je),l=this.options,p=ye(this,Bt),v=ye(this,Ur),c=ye(this,di),C=n!==s?n.state:ye(this,Ki),{state:T}=n;let M={...T},P=!1,E;if(r._optimisticResults){const fe=this.hasListeners(),te=!fe&&gl(n,r),De=fe&&ml(n,s,r,l);(te||De)&&(M={...M,...xd(T.data,n.options)}),r._optimisticResults==="isRestoring"&&(M.fetchStatus="idle")}let{error:I,errorUpdatedAt:U,status:j}=M;E=M.data;let ie=!1;if(r.placeholderData!==void 0&&E===void 0&&j==="pending"){let fe;p!=null&&p.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(fe=p.data,ie=!0):fe=typeof r.placeholderData=="function"?r.placeholderData((pe=ye(this,gi))==null?void 0:pe.state.data,ye(this,gi)):r.placeholderData,fe!==void 0&&(j="success",E=hl(p==null?void 0:p.data,fe,r),P=!0)}if(r.select&&E!==void 0&&!ie)if(p&&E===(v==null?void 0:v.data)&&r.select===ye(this,Qi))E=ye(this,pi);else try{Ze(this,Qi,r.select),E=r.select(E),E=hl(p==null?void 0:p.data,E,r),Ze(this,pi,E),Ze(this,gr,null)}catch(fe){Ze(this,gr,fe)}ye(this,gr)&&(I=ye(this,gr),E=ye(this,pi),U=Date.now(),j="error");const re=M.fetchStatus==="fetching",se=j==="pending",ce=j==="error",K=se&&re,de=E!==void 0,J={status:j,fetchStatus:M.fetchStatus,isPending:se,isSuccess:j==="success",isError:ce,isInitialLoading:K,isLoading:K,data:E,dataUpdatedAt:M.dataUpdatedAt,error:I,errorUpdatedAt:U,failureCount:M.fetchFailureCount,failureReason:M.fetchFailureReason,errorUpdateCount:M.errorUpdateCount,isFetched:M.dataUpdateCount>0||M.errorUpdateCount>0,isFetchedAfterMount:M.dataUpdateCount>C.dataUpdateCount||M.errorUpdateCount>C.errorUpdateCount,isFetching:re,isRefetching:re&&!se,isLoadingError:ce&&!de,isPaused:M.fetchStatus==="paused",isPlaceholderData:P,isRefetchError:ce&&de,isStale:na(n,r),refetch:this.refetch,promise:ye(this,pr)};if(this.options.experimental_prefetchInRender){const fe=Oe=>{J.status==="error"?Oe.reject(J.error):J.data!==void 0&&Oe.resolve(J.data)},te=()=>{const Oe=Ze(this,pr,J.promise=pl());fe(Oe)},De=ye(this,pr);switch(De.status){case"pending":n.queryHash===s.queryHash&&fe(De);break;case"fulfilled":(J.status==="error"||J.data!==De.value)&&te();break;case"rejected":(J.status!=="error"||J.error!==De.reason)&&te();break}}return J}updateResult(){const n=ye(this,Bt),r=this.createResult(ye(this,Je),this.options);if(Ze(this,Ur,ye(this,Je).state),Ze(this,di,this.options),ye(this,Ur).data!==void 0&&Ze(this,gi,ye(this,Je)),To(r,n))return;Ze(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,mi).size)return!0;const v=new Set(p??ye(this,mi));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,it,ld).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,it,Xu).call(this)}},Ft=new WeakMap,Je=new WeakMap,Ki=new WeakMap,Bt=new WeakMap,Ur=new WeakMap,di=new WeakMap,pr=new WeakMap,gr=new WeakMap,Qi=new WeakMap,pi=new WeakMap,gi=new WeakMap,Fr=new WeakMap,Wr=new WeakMap,mr=new WeakMap,mi=new WeakMap,it=new WeakSet,So=function(n){pt(this,it,nl).call(this);let r=ye(this,Je).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(Oo)),r},Ku=function(){pt(this,it,el).call(this);const n=Ni(this.options.staleTime,ye(this,Je));if(Pi||ye(this,Bt).isStale||!ul(n))return;const s=pd(ye(this,Bt).dataUpdatedAt,n)+1;Ze(this,Fr,setTimeout(()=>{ye(this,Bt).isStale||this.updateResult()},s))},Qu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ye(this,Je)):this.options.refetchInterval)??!1},Ju=function(n){pt(this,it,tl).call(this),Ze(this,mr,n),!(Pi||Pn(this.options.enabled,ye(this,Je))===!1||!ul(ye(this,mr))||ye(this,mr)===0)&&Ze(this,Wr,setInterval(()=>{(this.options.refetchIntervalInBackground||md.isFocused())&&pt(this,it,So).call(this)},ye(this,mr)))},Xu=function(){pt(this,it,Ku).call(this),pt(this,it,Ju).call(this,pt(this,it,Qu).call(this))},el=function(){ye(this,Fr)&&(clearTimeout(ye(this,Fr)),Ze(this,Fr,void 0))},tl=function(){ye(this,Wr)&&(clearInterval(ye(this,Wr)),Ze(this,Wr,void 0))},nl=function(){const n=ye(this,Ft).getQueryCache().build(ye(this,Ft),this.options);if(n===ye(this,Je))return;const r=ye(this,Je);Ze(this,Je,n),Ze(this,Ki,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},ld=function(n){Eo.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(ye(this,Bt))}),ye(this,Ft).getQueryCache().notify({query:ye(this,Je),type:"observerResultsUpdated"})})},Jc);function Ad(i,n){return Pn(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&&ta(i,n,n.refetchOnMount)}function ta(i,n,r){if(Pn(n.enabled,i)!==!1&&Ni(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&na(i,n)}return!1}function ml(i,n,r,s){return(i!==n||Pn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&na(i,r)}function na(i,n){return Pn(n.enabled,i)!==!1&&i.isStaleByTime(Ni(n.staleTime,i))}function Dd(i,n){return!To(i.getCurrentResult(),n)}var Od=(Xc=class extends Do{constructor(n,r){super();ut(this,qn);ut(this,vr);ut(this,yr);ut(this,Wt);ut(this,zn);Ze(this,vr,n),this.setOptions(r),this.bindMethods(),pt(this,qn,Ks).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,vr).defaultMutationOptions(n),To(this.options,r)||ye(this,vr).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,qn,Ks).call(this),pt(this,qn,rl).call(this,n)}getCurrentResult(){return ye(this,yr)}reset(){var n;(n=ye(this,Wt))==null||n.removeObserver(this),Ze(this,Wt,void 0),pt(this,qn,Ks).call(this),pt(this,qn,rl).call(this)}mutate(n,r){var s;return Ze(this,zn,r),(s=ye(this,Wt))==null||s.removeObserver(this),Ze(this,Wt,ye(this,vr).getMutationCache().build(ye(this,vr),this.options)),ye(this,Wt).addObserver(this),ye(this,Wt).execute(n)}},vr=new WeakMap,yr=new WeakMap,Wt=new WeakMap,zn=new WeakMap,qn=new WeakSet,Ks=function(){var r;const n=((r=ye(this,Wt))==null?void 0:r.state)??Sd();Ze(this,yr,{...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){Eo.batch(()=>{var r,s,l,p,v,c,x,C;if(ye(this,zn)&&this.hasListeners()){const T=ye(this,yr).variables,M=ye(this,yr).context;(n==null?void 0:n.type)==="success"?((s=(r=ye(this,zn)).onSuccess)==null||s.call(r,n.data,T,M),(p=(l=ye(this,zn)).onSettled)==null||p.call(l,n.data,null,T,M)):(n==null?void 0:n.type)==="error"&&((c=(v=ye(this,zn)).onError)==null||c.call(v,n.error,T,M),(C=(x=ye(this,zn)).onSettled)==null||C.call(x,void 0,n.error,T,M))}this.listeners.forEach(T=>{T(ye(this,yr))})})},Xc),Mo={exports:{}},$i={};/**
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),es}var rl;function vh(){return rl||(rl=1,process.env.NODE_ENV==="production"?ki.exports=ph():ki.exports=gh()),ki.exports}var wn=vh(),Li=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(){}},Jr=typeof window>"u"||"Deno"in globalThis;function Ni(){}function il(i){return typeof i=="number"&&i>=0&&i!==1/0}function mh(i,n){return Math.max(i+(n||0)-Date.now(),0)}function Xr(i,n){return typeof i=="function"?i(n):i}function bn(i,n){return typeof i=="function"?i(n):i}function ol(i){return JSON.stringify(i,(n,r)=>ns(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function ts(i,n){if(i===n)return i;const r=sl(i)&&sl(n);if(r||ns(i)&&ns(n)){const s=r?i:Object.keys(i),u=s.length,g=r?n:Object.keys(n),v=g.length,f=r?[]:{},C=new Set(s);let A=0;for(let E=0;E<v;E++){const L=r?E:g[E];(!r&&C.has(L)||r)&&i[L]===void 0&&n[L]===void 0?(f[L]=void 0,A++):(f[L]=ts(i[L],n[L]),f[L]===i[L]&&i[L]!==void 0&&A++)}return u===v&&A===u?i:f}return n}function Ii(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 sl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function ns(i){if(!al(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!al(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function al(i){return Object.prototype.toString.call(i)==="[object Object]"}function ll(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 ts(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 ts(i,n)}return n}function ul(i,n){return typeof i=="function"?i(...n):!!i}var yh=class extends Li{#t;#e;#n;constructor(){super(),this.#n=i=>{if(!Jr&&window.addEventListener){const n=()=>i();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(i){this.#n=i,this.#e?.(),this.#e=i(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(i){this.#t!==i&&(this.#t=i,this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(n=>{n(i)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},_h=new yh,wh=class extends Li{#t=!0;#e;#n;constructor(){super(),this.#n=i=>{if(!Jr&&window.addEventListener){const n=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(i){this.#n=i,this.#e?.(),this.#e=i(this.setOnline.bind(this))}setOnline(i){this.#t!==i&&(this.#t=i,this.listeners.forEach(r=>{r(i)}))}isOnline(){return this.#t}},bh=new wh;function cl(){let i,n;const r=new Promise((u,g)=>{i=u,n=g});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),i(u)},r.reject=u=>{s({status:"rejected",reason:u}),n(u)},r}function xh(i){return(i??"online")==="online"?bh.isOnline():!0}var Ch=i=>setTimeout(i,0);function Sh(){let i=[],n=0,r=f=>{f()},s=f=>{f()},u=Ch;const g=f=>{n?i.push(f):u(()=>{r(f)})},v=()=>{const f=i;i=[],f.length&&u(()=>{s(()=>{f.forEach(C=>{r(C)})})})};return{batch:f=>{let C;n++;try{C=f()}finally{n--,n||v()}return C},batchCalls:f=>(...C)=>{g(()=>{f(...C)})},schedule:g,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{u=f}}}var $i=Sh();function Dh(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xh(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Ah(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Oh=class extends Li{constructor(i,n){super(),this.options=n,this.#t=i,this.#a=null,this.#s=cl(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#g;#h;#d;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),fl(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rs(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rs(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#e.removeObserver(this)}setOptions(i){const n=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof bn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),n._defaulted&&!Ii(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&hl(this.#e,r,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==r||bn(this.options.enabled,this.#e)!==bn(n.enabled,this.#e)||Xr(this.options.staleTime,this.#e)!==Xr(n.staleTime,this.#e))&&this.#v();const u=this.#m();s&&(this.#e!==r||bn(this.options.enabled,this.#e)!==bn(n.enabled,this.#e)||u!==this.#l)&&this.#y(u)}getOptimisticResult(i){const n=this.#t.getQueryCache().build(this.#t,i),r=this.createResult(n,i);return Th(this,r)&&(this.#r=r,this.#o=this.options,this.#i=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(i,n){return new Proxy(i,{get:(r,s)=>(this.trackProp(s),n?.(s),Reflect.get(r,s))})}trackProp(i){this.#p.add(i)}getCurrentQuery(){return this.#e}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const n=this.#t.defaultQueryOptions(i),r=this.#t.getQueryCache().build(this.#t,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(i){return this.#f({...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(i){this.#x();let n=this.#e.fetch(this.options,i);return i?.throwOnError||(n=n.catch(Ni)),n}#v(){this.#w();const i=Xr(this.options.staleTime,this.#e);if(Jr||this.#r.isStale||!il(i))return;const r=mh(this.#r.dataUpdatedAt,i)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(i){this.#b(),this.#l=i,!(Jr||bn(this.options.enabled,this.#e)===!1||!il(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||_h.isFocused())&&this.#f()},this.#l))}#_(){this.#v(),this.#y(this.#m())}#w(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(i,n){const r=this.#e,s=this.options,u=this.#r,g=this.#i,v=this.#o,C=i!==r?i.state:this.#n,{state:A}=i;let E={...A},L=!1,M;if(n._optimisticResults){const V=this.hasListeners(),de=!V&&fl(i,n),fe=V&&hl(i,r,n,s);(de||fe)&&(E={...E,...Dh(A.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:k,errorUpdatedAt:I,status:j}=E;M=E.data;let H=!1;if(n.placeholderData!==void 0&&M===void 0&&j==="pending"){let V;u?.isPlaceholderData&&n.placeholderData===v?.placeholderData?(V=u.data,H=!0):V=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,V!==void 0&&(j="success",M=ll(u?.data,V,n),L=!0)}if(n.select&&M!==void 0&&!H)if(u&&M===g?.data&&n.select===this.#g)M=this.#h;else try{this.#g=n.select,M=n.select(M),M=ll(u?.data,M,n),this.#h=M,this.#a=null}catch(V){this.#a=V}this.#a&&(k=this.#a,M=this.#h,I=Date.now(),j="error");const ae=E.fetchStatus==="fetching",se=j==="pending",le=j==="error",ue=se&&ae,Z=M!==void 0,Q={status:j,fetchStatus:E.fetchStatus,isPending:se,isSuccess:j==="success",isError:le,isInitialLoading:ue,isLoading:ue,data:M,dataUpdatedAt:E.dataUpdatedAt,error:k,errorUpdatedAt:I,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>C.dataUpdateCount||E.errorUpdateCount>C.errorUpdateCount,isFetching:ae,isRefetching:ae&&!se,isLoadingError:le&&!Z,isPaused:E.fetchStatus==="paused",isPlaceholderData:L,isRefetchError:le&&Z,isStale:is(i,n),refetch:this.refetch,promise:this.#s,isEnabled:bn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const V=re=>{Q.status==="error"?re.reject(Q.error):Q.data!==void 0&&re.resolve(Q.data)},de=()=>{const re=this.#s=Q.promise=cl();V(re)},fe=this.#s;switch(fe.status){case"pending":i.queryHash===r.queryHash&&V(fe);break;case"fulfilled":(Q.status==="error"||Q.data!==fe.value)&&de();break;case"rejected":(Q.status!=="error"||Q.error!==fe.reason)&&de();break}}return Q}updateResult(){const i=this.#r,n=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#o=this.options,this.#i.data!==void 0&&(this.#d=this.#e),Ii(n,i))return;this.#r=n;const r=()=>{if(!i)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.#p.size)return!0;const g=new Set(u??this.#p);return this.options.throwOnError&&g.add("error"),Object.keys(this.#r).some(v=>{const f=v;return this.#r[f]!==i[f]&&g.has(f)})};this.#C({listeners:r()})}#x(){const i=this.#t.getQueryCache().build(this.#t,this.options);if(i===this.#e)return;const n=this.#e;this.#e=i,this.#n=i.state,this.hasListeners()&&(n?.removeObserver(this),i.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#C(i){$i.batch(()=>{i.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Eh(i,n){return bn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function fl(i,n){return Eh(i,n)||i.state.data!==void 0&&rs(i,n,n.refetchOnMount)}function rs(i,n,r){if(bn(n.enabled,i)!==!1&&Xr(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&is(i,n)}return!1}function hl(i,n,r,s){return(i!==n||bn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&is(i,r)}function is(i,n){return bn(n.enabled,i)!==!1&&i.isStaleByTime(Xr(n.staleTime,i))}function Th(i,n){return!Ii(i.getCurrentResult(),n)}var Ph=class extends Li{#t;#e=void 0;#n;#r;constructor(i,n){super(),this.#t=i,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const n=this.options;this.options=this.#t.defaultMutationOptions(i),Ii(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ol(n.mutationKey)!==ol(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#i(),this.#o(i)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(i,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(i)}#i(){const i=this.#n?.state??Ah();this.#e={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#o(i){$i.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;i?.type==="success"?(this.#r.onSuccess?.(i.data,n,r),this.#r.onSettled?.(i.data,null,n,r)):i?.type==="error"&&(this.#r.onError?.(i.error,n,r),this.#r.onSettled?.(void 0,i.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},Bi={exports:{}},ei={};/**
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 $i;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 $i.Fragment=n,$i.jsx=r,$i.jsxs=r,$i}var Bi={};/**
29
+ */var dl;function Mh(){if(dl)return ei;dl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,u,g){var v=null;if(g!==void 0&&(v=""+g),u.key!==void 0&&(v=""+u.key),"key"in u){g={};for(var f in u)f!=="key"&&(g[f]=u[f])}else g=u;return u=g.ref,{$$typeof:i,type:s,key:v,ref:u!==void 0?u:null,props:g}}return ei.Fragment=n,ei.jsx=r,ei.jsxs=r,ei}var ti={};/**
30
30
  * @license React
31
31
  * react-jsx-runtime.development.js
32
32
  *
@@ -34,12 +34,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var yl;function Ed(){return yl||(yl=1,process.env.NODE_ENV!=="production"&&function(){function i(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===fe?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case U:return"Fragment";case ie:return"Profiler";case j:return"StrictMode";case K:return"Suspense";case de:return"SuspenseList";case pe:return"Activity"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case I:return"Portal";case se:return(m.displayName||"Context")+".Provider";case re:return(m._context.displayName||"Context")+".Consumer";case ce:var g=m.render;return m=m.displayName,m||(m=g.displayName||g.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case ee:return g=m.displayName||null,g!==null?g:i(m.type)||"Memo";case J:g=m._payload,m=m._init;try{return i(m(g))}catch{}}return null}function n(m){return""+m}function r(m){try{n(m);var g=!1}catch{g=!0}if(g){g=console;var A=g.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return A.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),n(m)}}function s(m){if(m===U)return"<>";if(typeof m=="object"&&m!==null&&m.$$typeof===J)return"<...>";try{var g=i(m);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function l(){var m=te.A;return m===null?null:m.getOwner()}function p(){return Error("react-stack-top-frame")}function v(m){if(De.call(m,"key")){var g=Object.getOwnPropertyDescriptor(m,"key").get;if(g&&g.isReactWarning)return!1}return m.key!==void 0}function c(m,g){function A(){k||(k=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}A.isReactWarning=!0,Object.defineProperty(m,"key",{get:A,configurable:!0})}function x(){var m=i(this.type);return O[m]||(O[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function C(m,g,A,F,H,ae,ue,we){return A=ae.ref,m={$$typeof:E,type:m,key:g,props:ae,_owner:H},(A!==void 0?A:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:x}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function T(m,g,A,F,H,ae,ue,we){var Q=g.children;if(Q!==void 0)if(F)if(Oe(Q)){for(F=0;F<Q.length;F++)M(Q[F]);Object.freeze&&Object.freeze(Q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(Q);if(De.call(g,"key")){Q=i(m);var he=Object.keys(g).filter(function(_e){return _e!=="key"});F=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",w[Q+F]||(he=0<he.length?"{"+he.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
37
+ */var pl;function Rh(){return pl||(pl=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===fe?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case j:return"Fragment";case ae:return"Profiler";case H:return"StrictMode";case Z:return"Suspense";case ce:return"SuspenseList";case de:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case I:return"Portal";case le:return(h.displayName||"Context")+".Provider";case se:return(h._context.displayName||"Context")+".Consumer";case ue:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case Q:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case V:m=h._payload,h=h._init;try{return i(h(m))}catch{}}return null}function n(h){return""+h}function r(h){try{n(h);var m=!1}catch{m=!0}if(m){m=console;var S=m.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return S.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),n(h)}}function s(h){if(h===j)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===V)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var h=re.A;return h===null?null:h.getOwner()}function g(){return Error("react-stack-top-frame")}function v(h){if(De.call(h,"key")){var m=Object.getOwnPropertyDescriptor(h,"key").get;if(m&&m.isReactWarning)return!1}return h.key!==void 0}function f(h,m){function S(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}S.isReactWarning=!0,Object.defineProperty(h,"key",{get:S,configurable:!0})}function C(){var h=i(this.type);return D[h]||(D[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function A(h,m,S,B,G,oe,ne,be){return S=oe.ref,h={$$typeof:k,type:h,key:m,props:oe,_owner:G},(S!==void 0?S:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:C}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function E(h,m,S,B,G,oe,ne,be){var ee=m.children;if(ee!==void 0)if(B)if(Oe(ee)){for(B=0;B<ee.length;B++)L(ee[B]);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(ee);if(De.call(m,"key")){ee=i(h);var ye=Object.keys(m).filter(function(xe){return xe!=="key"});B=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",w[ee+B]||(ye=0<ye.length?"{"+ye.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
38
38
  let props = %s;
39
39
  <%s {...props} />
40
40
  React keys must be passed directly to JSX without using spread:
41
41
  let props = %s;
42
- <%s key={someKey} {...props} />`,F,Q,he,Q),w[Q+F]=!0)}if(Q=null,A!==void 0&&(r(A),Q=""+A),v(g)&&(r(g.key),Q=""+g.key),"key"in g){A={};for(var Ce in g)Ce!=="key"&&(A[Ce]=g[Ce])}else A=g;return Q&&c(A,typeof m=="function"?m.displayName||m.name||"Unknown":m),C(m,Q,ae,H,l(),A,ue,we)}function M(m){typeof m=="object"&&m!==null&&m.$$typeof===E&&m._store&&(m._store.validated=1)}var P=me,E=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),se=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),te=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,$=console.createTask?console.createTask:function(){return null};P={"react-stack-bottom-frame":function(m){return m()}};var k,O={},d=P["react-stack-bottom-frame"].bind(P,p)(),h=$(s(p)),w={};Bi.Fragment=U,Bi.jsx=function(m,g,A,F,H){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(m,g,A,!1,F,H,ae?Error("react-stack-top-frame"):d,ae?$(s(m)):h)},Bi.jsxs=function(m,g,A,F,H){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(m,g,A,!0,F,H,ae?Error("react-stack-top-frame"):d,ae?$(s(m)):h)}}()),Bi}var _l;function Md(){return _l||(_l=1,process.env.NODE_ENV==="production"?Mo.exports=Td():Mo.exports=Ed()),Mo.exports}var D=Md(),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 M,P,E,I,U;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=(M=s.getDefaultOptions().queries)==null?void 0:M._experimental_beforeQuery)==null||P.call(M,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)),C=x.getOptimisticResult(v),T=!l&&i.subscribed!==!1;if(Mt.useSyncExternalStore(Mt.useCallback(j=>{const ie=T?x.subscribe(Eo.batchCalls(j)):Oo;return x.updateResult(),ie},[x,T]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),Mt.useEffect(()=>{x.setOptions(v)},[v,x]),Yd(v,C))throw Cl(v,x,p);if($d({result:C,errorResetBoundary:p,throwOnError:v.throwOnError,query:s.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw C.error;if((I=(E=s.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||I.call(E,v,C),v.experimental_prefetchInRender&&!Pi&&jd(C,l)){const j=c?Cl(v,x,p):(U=s.getQueryCache().get(v.queryHash))==null?void 0:U.promise;j==null||j.catch(Oo).finally(()=>{x.updateResult()})}return v.notifyOnChangeProps?C:x.trackResult(C)}function Al(i,n){return Ud(i,Cd)}function ra(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(Eo.batchCalls(v)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),p=Mt.useCallback((v,c)=>{s.mutate(v,c).catch(Oo)},[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 ia(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 oa={exports:{}},ji={};/**
42
+ <%s key={someKey} {...props} />`,B,ee,ye,ee),w[ee+B]=!0)}if(ee=null,S!==void 0&&(r(S),ee=""+S),v(m)&&(r(m.key),ee=""+m.key),"key"in m){S={};for(var pe in m)pe!=="key"&&(S[pe]=m[pe])}else S=m;return ee&&f(S,typeof h=="function"?h.displayName||h.name||"Unknown":h),A(h,ee,oe,G,u(),S,ne,be)}function L(h){typeof h=="object"&&h!==null&&h.$$typeof===k&&h._store&&(h._store.validated=1)}var M=me,k=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),le=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),re=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,N=console.createTask?console.createTask:function(){return null};M={react_stack_bottom_frame:function(h){return h()}};var T,D={},p=M.react_stack_bottom_frame.bind(M,g)(),d=N(s(g)),w={};ti.Fragment=j,ti.jsx=function(h,m,S,B,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,S,!1,B,G,oe?Error("react-stack-top-frame"):p,oe?N(s(h)):d)},ti.jsxs=function(h,m,S,B,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,S,!0,B,G,oe?Error("react-stack-top-frame"):p,oe?N(s(h)):d)}}()),ti}var gl;function kh(){return gl||(gl=1,process.env.NODE_ENV==="production"?Bi.exports=Mh():Bi.exports=Rh()),Bi.exports}var O=kh(),vl=St.createContext(void 0),ml=i=>{const n=St.useContext(vl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},yl=({client:i,children:n})=>(St.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),O.jsx(vl.Provider,{value:i,children:n})),_l=St.createContext(!1),Lh=()=>St.useContext(_l);_l.Provider;function Nh(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Ih=St.createContext(Nh()),$h=()=>St.useContext(Ih),Bh=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},jh=i=>{St.useEffect(()=>{i.clearReset()},[i])},Yh=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:u})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(u&&i.data===void 0||ul(r,[i.error,s])),Fh=i=>{if(i.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=i.staleTime;i.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},Wh=(i,n)=>i.isLoading&&i.isFetching&&!n,Uh=(i,n)=>i?.suspense&&n.isPending,wl=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function zh(i,n,r){if(process.env.NODE_ENV!=="production"&&(typeof i!="object"||Array.isArray(i)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const s=Lh(),u=$h(),g=ml(),v=g.defaultQueryOptions(i);g.getDefaultOptions().queries?._experimental_beforeQuery?.(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=s?"isRestoring":"optimistic",Fh(v),Bh(v,u),jh(u);const f=!g.getQueryCache().get(v.queryHash),[C]=St.useState(()=>new n(g,v)),A=C.getOptimisticResult(v),E=!s&&i.subscribed!==!1;if(St.useSyncExternalStore(St.useCallback(L=>{const M=E?C.subscribe($i.batchCalls(L)):Ni;return C.updateResult(),M},[C,E]),()=>C.getCurrentResult(),()=>C.getCurrentResult()),St.useEffect(()=>{C.setOptions(v)},[v,C]),Uh(v,A))throw wl(v,C,u);if(Yh({result:A,errorResetBoundary:u,throwOnError:v.throwOnError,query:g.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw A.error;return g.getDefaultOptions().queries?._experimental_afterQuery?.(v,A),v.experimental_prefetchInRender&&!Jr&&Wh(A,s)&&(f?wl(v,C,u):g.getQueryCache().get(v.queryHash)?.promise)?.catch(Ni).finally(()=>{C.updateResult()}),v.notifyOnChangeProps?A:C.trackResult(A)}function bl(i,n){return zh(i,Oh)}function os(i,n){const r=ml(),[s]=St.useState(()=>new Ph(r,i));St.useEffect(()=>{s.setOptions(i)},[s,i]);const u=St.useSyncExternalStore(St.useCallback(v=>s.subscribe($i.batchCalls(v)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),g=St.useCallback((v,f)=>{s.mutate(v,f).catch(Ni)},[s]);if(u.error&&ul(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:g,mutateAsync:u.mutate}}var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ss(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var u=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,u.get?u:{enumerable:!0,get:function(){return i[s]}})}),r}var as={exports:{}},ni={};/**
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 ji;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 ji.Fragment=n,ji.jsx=r,ji.jsxs=r,ji}var Ro={};/**
50
+ */var Cl;function qh(){if(Cl)return ni;Cl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,u,g){var v=null;if(g!==void 0&&(v=""+g),u.key!==void 0&&(v=""+u.key),"key"in u){g={};for(var f in u)f!=="key"&&(g[f]=u[f])}else g=u;return u=g.ref,{$$typeof:i,type:s,key:v,ref:u!==void 0?u:null,props:g}}return ni.Fragment=n,ni.jsx=r,ni.jsxs=r,ni}var ji={};/**
51
51
  * @license React
52
52
  * react-jsx-runtime.development.js
53
53
  *
@@ -55,12 +55,12 @@ React keys must be passed directly to JSX without using spread:
55
55
  *
56
56
  * This source code is licensed under the MIT license found in the
57
57
  * LICENSE file in the root directory of this source tree.
58
- */var Tl;function Wd(){return Tl||(Tl=1,process.env.NODE_ENV!=="production"&&function(){function i(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===fe?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case U:return"Fragment";case ie:return"Profiler";case j:return"StrictMode";case K:return"Suspense";case de:return"SuspenseList";case pe:return"Activity"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case I:return"Portal";case se:return(m.displayName||"Context")+".Provider";case re:return(m._context.displayName||"Context")+".Consumer";case ce:var g=m.render;return m=m.displayName,m||(m=g.displayName||g.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case ee:return g=m.displayName||null,g!==null?g:i(m.type)||"Memo";case J:g=m._payload,m=m._init;try{return i(m(g))}catch{}}return null}function n(m){return""+m}function r(m){try{n(m);var g=!1}catch{g=!0}if(g){g=console;var A=g.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return A.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),n(m)}}function s(m){if(m===U)return"<>";if(typeof m=="object"&&m!==null&&m.$$typeof===J)return"<...>";try{var g=i(m);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function l(){var m=te.A;return m===null?null:m.getOwner()}function p(){return Error("react-stack-top-frame")}function v(m){if(De.call(m,"key")){var g=Object.getOwnPropertyDescriptor(m,"key").get;if(g&&g.isReactWarning)return!1}return m.key!==void 0}function c(m,g){function A(){k||(k=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}A.isReactWarning=!0,Object.defineProperty(m,"key",{get:A,configurable:!0})}function x(){var m=i(this.type);return O[m]||(O[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function C(m,g,A,F,H,ae,ue,we){return A=ae.ref,m={$$typeof:E,type:m,key:g,props:ae,_owner:H},(A!==void 0?A:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:x}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function T(m,g,A,F,H,ae,ue,we){var Q=g.children;if(Q!==void 0)if(F)if(Oe(Q)){for(F=0;F<Q.length;F++)M(Q[F]);Object.freeze&&Object.freeze(Q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(Q);if(De.call(g,"key")){Q=i(m);var he=Object.keys(g).filter(function(_e){return _e!=="key"});F=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",w[Q+F]||(he=0<he.length?"{"+he.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
58
+ */var Sl;function Hh(){return Sl||(Sl=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===fe?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case j:return"Fragment";case ae:return"Profiler";case H:return"StrictMode";case Z:return"Suspense";case ce:return"SuspenseList";case de:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case I:return"Portal";case le:return(h.displayName||"Context")+".Provider";case se:return(h._context.displayName||"Context")+".Consumer";case ue:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case Q:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case V:m=h._payload,h=h._init;try{return i(h(m))}catch{}}return null}function n(h){return""+h}function r(h){try{n(h);var m=!1}catch{m=!0}if(m){m=console;var S=m.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return S.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),n(h)}}function s(h){if(h===j)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===V)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var h=re.A;return h===null?null:h.getOwner()}function g(){return Error("react-stack-top-frame")}function v(h){if(De.call(h,"key")){var m=Object.getOwnPropertyDescriptor(h,"key").get;if(m&&m.isReactWarning)return!1}return h.key!==void 0}function f(h,m){function S(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}S.isReactWarning=!0,Object.defineProperty(h,"key",{get:S,configurable:!0})}function C(){var h=i(this.type);return D[h]||(D[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function A(h,m,S,B,G,oe,ne,be){return S=oe.ref,h={$$typeof:k,type:h,key:m,props:oe,_owner:G},(S!==void 0?S:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:C}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function E(h,m,S,B,G,oe,ne,be){var ee=m.children;if(ee!==void 0)if(B)if(Oe(ee)){for(B=0;B<ee.length;B++)L(ee[B]);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(ee);if(De.call(m,"key")){ee=i(h);var ye=Object.keys(m).filter(function(xe){return xe!=="key"});B=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",w[ee+B]||(ye=0<ye.length?"{"+ye.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
59
59
  let props = %s;
60
60
  <%s {...props} />
61
61
  React keys must be passed directly to JSX without using spread:
62
62
  let props = %s;
63
- <%s key={someKey} {...props} />`,F,Q,he,Q),w[Q+F]=!0)}if(Q=null,A!==void 0&&(r(A),Q=""+A),v(g)&&(r(g.key),Q=""+g.key),"key"in g){A={};for(var Ce in g)Ce!=="key"&&(A[Ce]=g[Ce])}else A=g;return Q&&c(A,typeof m=="function"?m.displayName||m.name||"Unknown":m),C(m,Q,ae,H,l(),A,ue,we)}function M(m){typeof m=="object"&&m!==null&&m.$$typeof===E&&m._store&&(m._store.validated=1)}var P=me,E=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),se=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),te=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,$=console.createTask?console.createTask:function(){return null};P={"react-stack-bottom-frame":function(m){return m()}};var k,O={},d=P["react-stack-bottom-frame"].bind(P,p)(),h=$(s(p)),w={};Ro.Fragment=U,Ro.jsx=function(m,g,A,F,H){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(m,g,A,!1,F,H,ae?Error("react-stack-top-frame"):d,ae?$(s(m)):h)},Ro.jsxs=function(m,g,A,F,H){var ae=1e4>te.recentlyCreatedOwnerStacks++;return T(m,g,A,!0,F,H,ae?Error("react-stack-top-frame"):d,ae?$(s(m)):h)}}()),Ro}var El;function zd(){return El||(El=1,process.env.NODE_ENV==="production"?oa.exports=Fd():oa.exports=Wd()),oa.exports}zd();var sa={exports:{}},aa={};/**
63
+ <%s key={someKey} {...props} />`,B,ee,ye,ee),w[ee+B]=!0)}if(ee=null,S!==void 0&&(r(S),ee=""+S),v(m)&&(r(m.key),ee=""+m.key),"key"in m){S={};for(var pe in m)pe!=="key"&&(S[pe]=m[pe])}else S=m;return ee&&f(S,typeof h=="function"?h.displayName||h.name||"Unknown":h),A(h,ee,oe,G,u(),S,ne,be)}function L(h){typeof h=="object"&&h!==null&&h.$$typeof===k&&h._store&&(h._store.validated=1)}var M=me,k=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),le=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),re=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,N=console.createTask?console.createTask:function(){return null};M={react_stack_bottom_frame:function(h){return h()}};var T,D={},p=M.react_stack_bottom_frame.bind(M,g)(),d=N(s(g)),w={};ji.Fragment=j,ji.jsx=function(h,m,S,B,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,S,!1,B,G,oe?Error("react-stack-top-frame"):p,oe?N(s(h)):d)},ji.jsxs=function(h,m,S,B,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(h,m,S,!0,B,G,oe?Error("react-stack-top-frame"):p,oe?N(s(h)):d)}}()),ji}var Dl;function Gh(){return Dl||(Dl=1,process.env.NODE_ENV==="production"?as.exports=qh():as.exports=Hh()),as.exports}Gh();var ls={exports:{}},us={};/**
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 Ml;function qd(){if(Ml)return aa;Ml=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return aa.c=function(n){return i.H.useMemoCache(n)},aa}var Rl={};/**
71
+ */var Al;function Vh(){if(Al)return us;Al=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return us.c=function(n){return i.H.useMemoCache(n)},us}var Ol={};/**
72
72
  * @license React
73
73
  * react-compiler-runtime.development.js
74
74
  *
@@ -76,19 +76,19 @@ React keys must be passed directly to JSX without using spread:
76
76
  *
77
77
  * This source code is licensed under the MIT license found in the
78
78
  * LICENSE file in the root directory of this source tree.
79
- */var Ll;function Hd(){return Ll||(Ll=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Rl.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:
79
+ */var El;function Kh(){return El||(El=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Ol.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:
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"?sa.exports=qd():sa.exports=Hd()),sa.exports}Gd();/*!
83
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Ol}var Tl;function Zh(){return Tl||(Tl=1,process.env.NODE_ENV==="production"?ls.exports=Vh():ls.exports=Kh()),ls.exports}Zh();/*!
84
84
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
85
85
  * SPDX-License-Identifier: Apache-2.0
86
- */var Il={},Yi={},Pl;function Vd(){if(Pl)return Yi;Pl=1,Yi.byteLength=c,Yi.toByteArray=C,Yi.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(E){var I=E.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=E.indexOf("=");U===-1&&(U=I);var j=U===I?0:4-U%4;return[U,j]}function c(E){var I=v(E),U=I[0],j=I[1];return(U+j)*3/4-j}function x(E,I,U){return(I+U)*3/4-U}function C(E){var I,U=v(E),j=U[0],ie=U[1],re=new r(x(E,j,ie)),se=0,ce=ie>0?j-4:j,K;for(K=0;K<ce;K+=4)I=n[E.charCodeAt(K)]<<18|n[E.charCodeAt(K+1)]<<12|n[E.charCodeAt(K+2)]<<6|n[E.charCodeAt(K+3)],re[se++]=I>>16&255,re[se++]=I>>8&255,re[se++]=I&255;return ie===2&&(I=n[E.charCodeAt(K)]<<2|n[E.charCodeAt(K+1)]>>4,re[se++]=I&255),ie===1&&(I=n[E.charCodeAt(K)]<<10|n[E.charCodeAt(K+1)]<<4|n[E.charCodeAt(K+2)]>>2,re[se++]=I>>8&255,re[se++]=I&255),re}function T(E){return i[E>>18&63]+i[E>>12&63]+i[E>>6&63]+i[E&63]}function M(E,I,U){for(var j,ie=[],re=I;re<U;re+=3)j=(E[re]<<16&16711680)+(E[re+1]<<8&65280)+(E[re+2]&255),ie.push(T(j));return ie.join("")}function P(E){for(var I,U=E.length,j=U%3,ie=[],re=16383,se=0,ce=U-j;se<ce;se+=re)ie.push(M(E,se,se+re>ce?ce:se+re));return j===1?(I=E[U-1],ie.push(i[I>>2]+i[I<<4&63]+"==")):j===2&&(I=(E[U-2]<<8)+E[U-1],ie.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),ie.join("")}return Yi}var ua={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Nl;function Zd(){return Nl||(Nl=1,ua.read=function(i,n,r,s,l){var p,v,c=l*8-s-1,x=(1<<c)-1,C=x>>1,T=-7,M=r?l-1:0,P=r?-1:1,E=i[n+M];for(M+=P,p=E&(1<<-T)-1,E>>=-T,T+=c;T>0;p=p*256+i[n+M],M+=P,T-=8);for(v=p&(1<<-T)-1,p>>=-T,T+=s;T>0;v=v*256+i[n+M],M+=P,T-=8);if(p===0)p=1-C;else{if(p===x)return v?NaN:(E?-1:1)*(1/0);v=v+Math.pow(2,s),p=p-C}return(E?-1:1)*v*Math.pow(2,p-s)},ua.write=function(i,n,r,s,l,p){var v,c,x,C=p*8-l-1,T=(1<<C)-1,M=T>>1,P=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=s?0:p-1,I=s?1:-1,U=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+M>=1?n+=P/x:n+=P*Math.pow(2,1-M),n*x>=2&&(v++,x/=2),v+M>=T?(c=0,v=T):v+M>=1?(c=(n*x-1)*Math.pow(2,l),v=v+M):(c=n*Math.pow(2,M-1)*Math.pow(2,l),v=0));l>=8;i[r+E]=c&255,E+=I,c/=256,l-=8);for(v=v<<l|c,C+=l;C>0;i[r+E]=v&255,E+=I,v/=256,C-=8);i[r+E-I]|=U*128}),ua}var la,$l;function Kd(){if($l)return la;$l=1;var i={}.toString;return la=Array.isArray||function(n){return i.call(n)=="[object Array]"},la}/*!
86
+ */var Pl={},ri={},Ml;function Qh(){if(Ml)return ri;Ml=1,ri.byteLength=f,ri.toByteArray=A,ri.fromByteArray=M;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,g=s.length;u<g;++u)i[u]=s[u],n[s.charCodeAt(u)]=u;n[45]=62,n[95]=63;function v(k){var I=k.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=k.indexOf("=");j===-1&&(j=I);var H=j===I?0:4-j%4;return[j,H]}function f(k){var I=v(k),j=I[0],H=I[1];return(j+H)*3/4-H}function C(k,I,j){return(I+j)*3/4-j}function A(k){var I,j=v(k),H=j[0],ae=j[1],se=new r(C(k,H,ae)),le=0,ue=ae>0?H-4:H,Z;for(Z=0;Z<ue;Z+=4)I=n[k.charCodeAt(Z)]<<18|n[k.charCodeAt(Z+1)]<<12|n[k.charCodeAt(Z+2)]<<6|n[k.charCodeAt(Z+3)],se[le++]=I>>16&255,se[le++]=I>>8&255,se[le++]=I&255;return ae===2&&(I=n[k.charCodeAt(Z)]<<2|n[k.charCodeAt(Z+1)]>>4,se[le++]=I&255),ae===1&&(I=n[k.charCodeAt(Z)]<<10|n[k.charCodeAt(Z+1)]<<4|n[k.charCodeAt(Z+2)]>>2,se[le++]=I>>8&255,se[le++]=I&255),se}function E(k){return i[k>>18&63]+i[k>>12&63]+i[k>>6&63]+i[k&63]}function L(k,I,j){for(var H,ae=[],se=I;se<j;se+=3)H=(k[se]<<16&16711680)+(k[se+1]<<8&65280)+(k[se+2]&255),ae.push(E(H));return ae.join("")}function M(k){for(var I,j=k.length,H=j%3,ae=[],se=16383,le=0,ue=j-H;le<ue;le+=se)ae.push(L(k,le,le+se>ue?ue:le+se));return H===1?(I=k[j-1],ae.push(i[I>>2]+i[I<<4&63]+"==")):H===2&&(I=(k[j-2]<<8)+k[j-1],ae.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),ae.join("")}return ri}var cs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Rl;function Jh(){return Rl||(Rl=1,cs.read=function(i,n,r,s,u){var g,v,f=u*8-s-1,C=(1<<f)-1,A=C>>1,E=-7,L=r?u-1:0,M=r?-1:1,k=i[n+L];for(L+=M,g=k&(1<<-E)-1,k>>=-E,E+=f;E>0;g=g*256+i[n+L],L+=M,E-=8);for(v=g&(1<<-E)-1,g>>=-E,E+=s;E>0;v=v*256+i[n+L],L+=M,E-=8);if(g===0)g=1-A;else{if(g===C)return v?NaN:(k?-1:1)*(1/0);v=v+Math.pow(2,s),g=g-A}return(k?-1:1)*v*Math.pow(2,g-s)},cs.write=function(i,n,r,s,u,g){var v,f,C,A=g*8-u-1,E=(1<<A)-1,L=E>>1,M=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=s?0:g-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?(f=isNaN(n)?1:0,v=E):(v=Math.floor(Math.log(n)/Math.LN2),n*(C=Math.pow(2,-v))<1&&(v--,C*=2),v+L>=1?n+=M/C:n+=M*Math.pow(2,1-L),n*C>=2&&(v++,C/=2),v+L>=E?(f=0,v=E):v+L>=1?(f=(n*C-1)*Math.pow(2,u),v=v+L):(f=n*Math.pow(2,L-1)*Math.pow(2,u),v=0));u>=8;i[r+k]=f&255,k+=I,f/=256,u-=8);for(v=v<<u|f,A+=u;A>0;i[r+k]=v&255,k+=I,v/=256,A-=8);i[r+k-I]|=j*128}),cs}var fs,kl;function Xh(){if(kl)return fs;kl=1;var i={}.toString;return fs=Array.isArray||function(n){return i.call(n)=="[object Array]"},fs}/*!
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=ie,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,f){if(p()<f)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(f),u.__proto__=c.prototype):(u===null&&(u=new c(f)),u.length=f),u}function c(u,f,_){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(u,f,_);if(typeof u=="number"){if(typeof f=="string")throw new Error("If encoding is specified then the first argument must be a string");return M(this,u)}return x(this,u,f,_)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function x(u,f,_,R){if(typeof f=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&f instanceof ArrayBuffer?I(u,f,_,R):typeof f=="string"?P(u,f,_):U(u,f)}c.from=function(u,f,_){return x(null,u,f,_)},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 C(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,f,_,R){return C(f),f<=0?v(u,f):_!==void 0?typeof R=="string"?v(u,f).fill(_,R):v(u,f).fill(_):v(u,f)}c.alloc=function(u,f,_){return T(null,u,f,_)};function M(u,f){if(C(f),u=v(u,f<0?0:j(f)|0),!c.TYPED_ARRAY_SUPPORT)for(var _=0;_<f;++_)u[_]=0;return u}c.allocUnsafe=function(u){return M(null,u)},c.allocUnsafeSlow=function(u){return M(null,u)};function P(u,f,_){if((typeof _!="string"||_==="")&&(_="utf8"),!c.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var R=re(f,_)|0;u=v(u,R);var q=u.write(f,_);return q!==R&&(u=u.slice(0,q)),u}function E(u,f){var _=f.length<0?0:j(f.length)|0;u=v(u,_);for(var R=0;R<_;R+=1)u[R]=f[R]&255;return u}function I(u,f,_,R){if(f.byteLength,_<0||f.byteLength<_)throw new RangeError("'offset' is out of bounds");if(f.byteLength<_+(R||0))throw new RangeError("'length' is out of bounds");return _===void 0&&R===void 0?f=new Uint8Array(f):R===void 0?f=new Uint8Array(f,_):f=new Uint8Array(f,_,R),c.TYPED_ARRAY_SUPPORT?(u=f,u.__proto__=c.prototype):u=E(u,f),u}function U(u,f){if(c.isBuffer(f)){var _=j(f.length)|0;return u=v(u,_),u.length===0||f.copy(u,0,0,_),u}if(f){if(typeof ArrayBuffer<"u"&&f.buffer instanceof ArrayBuffer||"length"in f)return typeof f.length!="number"||Te(f.length)?v(u,0):E(u,f);if(f.type==="Buffer"&&s(f.data))return E(u,f.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function j(u){if(u>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return u|0}function ie(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,f){if(!c.isBuffer(u)||!c.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(u===f)return 0;for(var _=u.length,R=f.length,q=0,X=Math.min(_,R);q<X;++q)if(u[q]!==f[q]){_=u[q],R=f[q];break}return _<R?-1:R<_?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,f){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);var _;if(f===void 0)for(f=0,_=0;_<u.length;++_)f+=u[_].length;var R=c.allocUnsafe(f),q=0;for(_=0;_<u.length;++_){var X=u[_];if(!c.isBuffer(X))throw new TypeError('"list" argument must be an Array of Buffers');X.copy(R,q),q+=X.length}return R};function re(u,f){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 R=!1;;)switch(f){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(R)return B(u).length;f=(""+f).toLowerCase(),R=!0}}c.byteLength=re;function se(u,f,_){var R=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,f>>>=0,_<=f))return"";for(u||(u="utf8");;)switch(u){case"hex":return w(this,f,_);case"utf8":case"utf-8":return $(this,f,_);case"ascii":return d(this,f,_);case"latin1":case"binary":return h(this,f,_);case"base64":return Oe(this,f,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,f,_);default:if(R)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),R=!0}}c.prototype._isBuffer=!0;function ce(u,f,_){var R=u[f];u[f]=u[_],u[_]=R}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 f=0;f<u;f+=2)ce(this,f,f+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 f=0;f<u;f+=4)ce(this,f,f+3),ce(this,f+1,f+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 f=0;f<u;f+=8)ce(this,f,f+7),ce(this,f+1,f+6),ce(this,f+2,f+5),ce(this,f+3,f+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?$(this,0,u):se.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="",f=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(u+=" ... ")),"<Buffer "+u+">"},c.prototype.compare=function(u,f,_,R,q){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(f===void 0&&(f=0),_===void 0&&(_=u?u.length:0),R===void 0&&(R=0),q===void 0&&(q=this.length),f<0||_>u.length||R<0||q>this.length)throw new RangeError("out of range index");if(R>=q&&f>=_)return 0;if(R>=q)return-1;if(f>=_)return 1;if(f>>>=0,_>>>=0,R>>>=0,q>>>=0,this===u)return 0;for(var X=q-R,Ae=_-f,be=Math.min(X,Ae),Re=this.slice(R,q),Se=u.slice(f,_),ke=0;ke<be;++ke)if(Re[ke]!==Se[ke]){X=Re[ke],Ae=Se[ke];break}return X<Ae?-1:Ae<X?1:0};function K(u,f,_,R,q){if(u.length===0)return-1;if(typeof _=="string"?(R=_,_=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 f=="string"&&(f=c.from(f,R)),c.isBuffer(f))return f.length===0?-1:de(u,f,_,R,q);if(typeof f=="number")return f=f&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(u,f,_):Uint8Array.prototype.lastIndexOf.call(u,f,_):de(u,[f],_,R,q);throw new TypeError("val must be string, number or Buffer")}function de(u,f,_,R,q){var X=1,Ae=u.length,be=f.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(u.length<2||f.length<2)return-1;X=2,Ae/=2,be/=2,_/=2}function Re(Xe,nt){return X===1?Xe[nt]:Xe.readUInt16BE(nt*X)}var Se;if(q){var ke=-1;for(Se=_;Se<Ae;Se++)if(Re(u,Se)===Re(f,ke===-1?0:Se-ke)){if(ke===-1&&(ke=Se),Se-ke+1===be)return ke*X}else ke!==-1&&(Se-=Se-ke),ke=-1}else for(_+be>Ae&&(_=Ae-be),Se=_;Se>=0;Se--){for(var Ne=!0,Ie=0;Ie<be;Ie++)if(Re(u,Se+Ie)!==Re(f,Ie)){Ne=!1;break}if(Ne)return Se}return-1}c.prototype.includes=function(u,f,_){return this.indexOf(u,f,_)!==-1},c.prototype.indexOf=function(u,f,_){return K(this,u,f,_,!0)},c.prototype.lastIndexOf=function(u,f,_){return K(this,u,f,_,!1)};function ee(u,f,_,R){_=Number(_)||0;var q=u.length-_;R?(R=Number(R),R>q&&(R=q)):R=q;var X=f.length;if(X%2!==0)throw new TypeError("Invalid hex string");R>X/2&&(R=X/2);for(var Ae=0;Ae<R;++Ae){var be=parseInt(f.substr(Ae*2,2),16);if(isNaN(be))return Ae;u[_+Ae]=be}return Ae}function J(u,f,_,R){return oe(B(f,u.length-_),u,_,R)}function pe(u,f,_,R){return oe(z(f),u,_,R)}function fe(u,f,_,R){return pe(u,f,_,R)}function te(u,f,_,R){return oe(Z(f),u,_,R)}function De(u,f,_,R){return oe(W(f,u.length-_),u,_,R)}c.prototype.write=function(u,f,_,R){if(f===void 0)R="utf8",_=this.length,f=0;else if(_===void 0&&typeof f=="string")R=f,_=this.length,f=0;else if(isFinite(f))f=f|0,isFinite(_)?(_=_|0,R===void 0&&(R="utf8")):(R=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var q=this.length-f;if((_===void 0||_>q)&&(_=q),u.length>0&&(_<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");for(var X=!1;;)switch(R){case"hex":return ee(this,u,f,_);case"utf8":case"utf-8":return J(this,u,f,_);case"ascii":return pe(this,u,f,_);case"latin1":case"binary":return fe(this,u,f,_);case"base64":return te(this,u,f,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,u,f,_);default:if(X)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),X=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(u,f,_){return f===0&&_===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(f,_))}function $(u,f,_){_=Math.min(u.length,_);for(var R=[],q=f;q<_;){var X=u[q],Ae=null,be=X>239?4:X>223?3:X>191?2:1;if(q+be<=_){var Re,Se,ke,Ne;switch(be){case 1:X<128&&(Ae=X);break;case 2:Re=u[q+1],(Re&192)===128&&(Ne=(X&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=(X&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],ke=u[q+3],(Re&192)===128&&(Se&192)===128&&(ke&192)===128&&(Ne=(X&15)<<18|(Re&63)<<12|(Se&63)<<6|ke&63,Ne>65535&&Ne<1114112&&(Ae=Ne))}}Ae===null?(Ae=65533,be=1):Ae>65535&&(Ae-=65536,R.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),R.push(Ae),q+=be}return O(R)}var k=4096;function O(u){var f=u.length;if(f<=k)return String.fromCharCode.apply(String,u);for(var _="",R=0;R<f;)_+=String.fromCharCode.apply(String,u.slice(R,R+=k));return _}function d(u,f,_){var R="";_=Math.min(u.length,_);for(var q=f;q<_;++q)R+=String.fromCharCode(u[q]&127);return R}function h(u,f,_){var R="";_=Math.min(u.length,_);for(var q=f;q<_;++q)R+=String.fromCharCode(u[q]);return R}function w(u,f,_){var R=u.length;(!f||f<0)&&(f=0),(!_||_<0||_>R)&&(_=R);for(var q="",X=f;X<_;++X)q+=_e(u[X]);return q}function m(u,f,_){for(var R=u.slice(f,_),q="",X=0;X<R.length;X+=2)q+=String.fromCharCode(R[X]+R[X+1]*256);return q}c.prototype.slice=function(u,f){var _=this.length;u=~~u,f=f===void 0?_:~~f,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),f<0?(f+=_,f<0&&(f=0)):f>_&&(f=_),f<u&&(f=u);var R;if(c.TYPED_ARRAY_SUPPORT)R=this.subarray(u,f),R.__proto__=c.prototype;else{var q=f-u;R=new c(q,void 0);for(var X=0;X<q;++X)R[X]=this[X+u]}return R};function g(u,f,_){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+f>_)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(u,f,_){u=u|0,f=f|0,_||g(u,f,this.length);for(var R=this[u],q=1,X=0;++X<f&&(q*=256);)R+=this[u+X]*q;return R},c.prototype.readUIntBE=function(u,f,_){u=u|0,f=f|0,_||g(u,f,this.length);for(var R=this[u+--f],q=1;f>0&&(q*=256);)R+=this[u+--f]*q;return R},c.prototype.readUInt8=function(u,f){return f||g(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,f){return f||g(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,f){return f||g(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,f){return f||g(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUInt32BE=function(u,f){return f||g(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readIntLE=function(u,f,_){u=u|0,f=f|0,_||g(u,f,this.length);for(var R=this[u],q=1,X=0;++X<f&&(q*=256);)R+=this[u+X]*q;return q*=128,R>=q&&(R-=Math.pow(2,8*f)),R},c.prototype.readIntBE=function(u,f,_){u=u|0,f=f|0,_||g(u,f,this.length);for(var R=f,q=1,X=this[u+--R];R>0&&(q*=256);)X+=this[u+--R]*q;return q*=128,X>=q&&(X-=Math.pow(2,8*f)),X},c.prototype.readInt8=function(u,f){return f||g(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,f){f||g(u,2,this.length);var _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},c.prototype.readInt16BE=function(u,f){f||g(u,2,this.length);var _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},c.prototype.readInt32LE=function(u,f){return f||g(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,f){return f||g(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readFloatLE=function(u,f){return f||g(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,f){return f||g(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,f){return f||g(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,f){return f||g(u,8,this.length),r.read(this,u,!1,52,8)};function A(u,f,_,R,q,X){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>q||f<X)throw new RangeError('"value" argument is out of bounds');if(_+R>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,f,_,R){if(u=+u,f=f|0,_=_|0,!R){var q=Math.pow(2,8*_)-1;A(this,u,f,_,q,0)}var X=1,Ae=0;for(this[f]=u&255;++Ae<_&&(X*=256);)this[f+Ae]=u/X&255;return f+_},c.prototype.writeUIntBE=function(u,f,_,R){if(u=+u,f=f|0,_=_|0,!R){var q=Math.pow(2,8*_)-1;A(this,u,f,_,q,0)}var X=_-1,Ae=1;for(this[f+X]=u&255;--X>=0&&(Ae*=256);)this[f+X]=u/Ae&255;return f+_},c.prototype.writeUInt8=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[f]=u&255,f+1};function F(u,f,_,R){f<0&&(f=65535+f+1);for(var q=0,X=Math.min(u.length-_,2);q<X;++q)u[_+q]=(f&255<<8*(R?q:1-q))>>>(R?q:1-q)*8}c.prototype.writeUInt16LE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[f]=u&255,this[f+1]=u>>>8):F(this,u,f,!0),f+2},c.prototype.writeUInt16BE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[f]=u>>>8,this[f+1]=u&255):F(this,u,f,!1),f+2};function H(u,f,_,R){f<0&&(f=4294967295+f+1);for(var q=0,X=Math.min(u.length-_,4);q<X;++q)u[_+q]=f>>>(R?q:3-q)*8&255}c.prototype.writeUInt32LE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255):H(this,u,f,!0),f+4},c.prototype.writeUInt32BE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255):H(this,u,f,!1),f+4},c.prototype.writeIntLE=function(u,f,_,R){if(u=+u,f=f|0,!R){var q=Math.pow(2,8*_-1);A(this,u,f,_,q-1,-q)}var X=0,Ae=1,be=0;for(this[f]=u&255;++X<_&&(Ae*=256);)u<0&&be===0&&this[f+X-1]!==0&&(be=1),this[f+X]=(u/Ae>>0)-be&255;return f+_},c.prototype.writeIntBE=function(u,f,_,R){if(u=+u,f=f|0,!R){var q=Math.pow(2,8*_-1);A(this,u,f,_,q-1,-q)}var X=_-1,Ae=1,be=0;for(this[f+X]=u&255;--X>=0&&(Ae*=256);)u<0&&be===0&&this[f+X+1]!==0&&(be=1),this[f+X]=(u/Ae>>0)-be&255;return f+_},c.prototype.writeInt8=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,1,127,-128),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[f]=u&255,f+1},c.prototype.writeInt16LE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[f]=u&255,this[f+1]=u>>>8):F(this,u,f,!0),f+2},c.prototype.writeInt16BE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[f]=u>>>8,this[f+1]=u&255):F(this,u,f,!1),f+2},c.prototype.writeInt32LE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24):H(this,u,f,!0),f+4},c.prototype.writeInt32BE=function(u,f,_){return u=+u,f=f|0,_||A(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),c.TYPED_ARRAY_SUPPORT?(this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255):H(this,u,f,!1),f+4};function ae(u,f,_,R,q,X){if(_+R>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ue(u,f,_,R,q){return q||ae(u,f,_,4),r.write(u,f,_,R,23,4),_+4}c.prototype.writeFloatLE=function(u,f,_){return ue(this,u,f,!0,_)},c.prototype.writeFloatBE=function(u,f,_){return ue(this,u,f,!1,_)};function we(u,f,_,R,q){return q||ae(u,f,_,8),r.write(u,f,_,R,52,8),_+8}c.prototype.writeDoubleLE=function(u,f,_){return we(this,u,f,!0,_)},c.prototype.writeDoubleBE=function(u,f,_){return we(this,u,f,!1,_)},c.prototype.copy=function(u,f,_,R){if(_||(_=0),!R&&R!==0&&(R=this.length),f>=u.length&&(f=u.length),f||(f=0),R>0&&R<_&&(R=_),R===_||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("sourceStart out of bounds");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),u.length-f<R-_&&(R=u.length-f+_);var q=R-_,X;if(this===u&&_<f&&f<R)for(X=q-1;X>=0;--X)u[X+f]=this[X+_];else if(q<1e3||!c.TYPED_ARRAY_SUPPORT)for(X=0;X<q;++X)u[X+f]=this[X+_];else Uint8Array.prototype.set.call(u,this.subarray(_,_+q),f);return q},c.prototype.fill=function(u,f,_,R){if(typeof u=="string"){if(typeof f=="string"?(R=f,f=0,_=this.length):typeof _=="string"&&(R=_,_=this.length),u.length===1){var q=u.charCodeAt(0);q<256&&(u=q)}if(R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!c.isEncoding(R))throw new TypeError("Unknown encoding: "+R)}else typeof u=="number"&&(u=u&255);if(f<0||this.length<f||this.length<_)throw new RangeError("Out of range index");if(_<=f)return this;f=f>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);var X;if(typeof u=="number")for(X=f;X<_;++X)this[X]=u;else{var Ae=c.isBuffer(u)?u:B(new c(u,R).toString()),be=Ae.length;for(X=0;X<_-f;++X)this[X+f]=Ae[X%be]}return this};var Q=/[^+\/0-9A-Za-z-_]/g;function he(u){if(u=Ce(u).replace(Q,""),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,f){f=f||1/0;for(var _,R=u.length,q=null,X=[],Ae=0;Ae<R;++Ae){if(_=u.charCodeAt(Ae),_>55295&&_<57344){if(!q){if(_>56319){(f-=3)>-1&&X.push(239,191,189);continue}else if(Ae+1===R){(f-=3)>-1&&X.push(239,191,189);continue}q=_;continue}if(_<56320){(f-=3)>-1&&X.push(239,191,189),q=_;continue}_=(q-55296<<10|_-56320)+65536}else q&&(f-=3)>-1&&X.push(239,191,189);if(q=null,_<128){if((f-=1)<0)break;X.push(_)}else if(_<2048){if((f-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((f-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((f-=4)<0)break;X.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return X}function z(u){for(var f=[],_=0;_<u.length;++_)f.push(u.charCodeAt(_)&255);return f}function W(u,f){for(var _,R,q,X=[],Ae=0;Ae<u.length&&!((f-=2)<0);++Ae)_=u.charCodeAt(Ae),R=_>>8,q=_%256,X.push(q),X.push(R);return X}function Z(u){return n.toByteArray(he(u))}function oe(u,f,_,R){for(var q=0;q<R&&!(q+_>=f.length||q>=u.length);++q)f[q+_]=u[q];return q}function Te(u){return u!==u}}(Il)),Il}Qd();var Br;if(typeof window<"u"&&window.crypto&&(Br=window.crypto),!Br&&typeof window<"u"&&window.msCrypto&&(Br=window.msCrypto),!Br&&typeof global<"u"&&global.crypto&&(Br=global.crypto),!Br&&typeof require=="function")try{Br=require("crypto")}catch{}var jl={};/*! *****************************************************************************
91
+ */var Ll;function ed(){return Ll||(Ll=1,function(i){var n=Qh(),r=Jh(),s=Xh();i.Buffer=f,i.SlowBuffer=ae,i.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:u(),i.kMaxLength=g();function u(){try{var l=new Uint8Array(1);return l.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},l.foo()===42&&typeof l.subarray=="function"&&l.subarray(1,1).byteLength===0}catch{return!1}}function g(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(l,c){if(g()<c)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(c),l.__proto__=f.prototype):(l===null&&(l=new f(c)),l.length=c),l}function f(l,c,_){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(l,c,_);if(typeof l=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return L(this,l)}return C(this,l,c,_)}f.poolSize=8192,f._augment=function(l){return l.__proto__=f.prototype,l};function C(l,c,_,R){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?I(l,c,_,R):typeof c=="string"?M(l,c,_):j(l,c)}f.from=function(l,c,_){return C(null,l,c,_)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}));function A(l){if(typeof l!="number")throw new TypeError('"size" argument must be a number');if(l<0)throw new RangeError('"size" argument must not be negative')}function E(l,c,_,R){return A(c),c<=0?v(l,c):_!==void 0?typeof R=="string"?v(l,c).fill(_,R):v(l,c).fill(_):v(l,c)}f.alloc=function(l,c,_){return E(null,l,c,_)};function L(l,c){if(A(c),l=v(l,c<0?0:H(c)|0),!f.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)l[_]=0;return l}f.allocUnsafe=function(l){return L(null,l)},f.allocUnsafeSlow=function(l){return L(null,l)};function M(l,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!f.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var R=se(c,_)|0;l=v(l,R);var F=l.write(c,_);return F!==R&&(l=l.slice(0,F)),l}function k(l,c){var _=c.length<0?0:H(c.length)|0;l=v(l,_);for(var R=0;R<_;R+=1)l[R]=c[R]&255;return l}function I(l,c,_,R){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(R||0))throw new RangeError("'length' is out of bounds");return _===void 0&&R===void 0?c=new Uint8Array(c):R===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,R),f.TYPED_ARRAY_SUPPORT?(l=c,l.__proto__=f.prototype):l=k(l,c),l}function j(l,c){if(f.isBuffer(c)){var _=H(c.length)|0;return l=v(l,_),l.length===0||c.copy(l,0,0,_),l}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?v(l,0):k(l,c);if(c.type==="Buffer"&&s(c.data))return k(l,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(l){if(l>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return l|0}function ae(l){return+l!=l&&(l=0),f.alloc(+l)}f.isBuffer=function(l){return!!(l!=null&&l._isBuffer)},f.compare=function(l,c){if(!f.isBuffer(l)||!f.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(l===c)return 0;for(var _=l.length,R=c.length,F=0,X=Math.min(_,R);F<X;++F)if(l[F]!==c[F]){_=l[F],R=c[F];break}return _<R?-1:R<_?1:0},f.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(l,c){if(!s(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return f.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<l.length;++_)c+=l[_].length;var R=f.allocUnsafe(c),F=0;for(_=0;_<l.length;++_){var X=l[_];if(!f.isBuffer(X))throw new TypeError('"list" argument must be an Array of Buffers');X.copy(R,F),F+=X.length}return R};function se(l,c){if(f.isBuffer(l))return l.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(l)||l instanceof ArrayBuffer))return l.byteLength;typeof l!="string"&&(l=""+l);var _=l.length;if(_===0)return 0;for(var R=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return $(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return J(l).length;default:if(R)return $(l).length;c=(""+c).toLowerCase(),R=!0}}f.byteLength=se;function le(l,c,_){var R=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,c>>>=0,_<=c))return"";for(l||(l="utf8");;)switch(l){case"hex":return w(this,c,_);case"utf8":case"utf-8":return N(this,c,_);case"ascii":return p(this,c,_);case"latin1":case"binary":return d(this,c,_);case"base64":return Oe(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,c,_);default:if(R)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),R=!0}}f.prototype._isBuffer=!0;function ue(l,c,_){var R=l[c];l[c]=l[_],l[_]=R}f.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<l;c+=2)ue(this,c,c+1);return this},f.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<l;c+=4)ue(this,c,c+3),ue(this,c+1,c+2);return this},f.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<l;c+=8)ue(this,c,c+7),ue(this,c+1,c+6),ue(this,c+2,c+5),ue(this,c+3,c+4);return this},f.prototype.toString=function(){var l=this.length|0;return l===0?"":arguments.length===0?N(this,0,l):le.apply(this,arguments)},f.prototype.equals=function(l){if(!f.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:f.compare(this,l)===0},f.prototype.inspect=function(){var l="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(l=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(l+=" ... ")),"<Buffer "+l+">"},f.prototype.compare=function(l,c,_,R,F){if(!f.isBuffer(l))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=l?l.length:0),R===void 0&&(R=0),F===void 0&&(F=this.length),c<0||_>l.length||R<0||F>this.length)throw new RangeError("out of range index");if(R>=F&&c>=_)return 0;if(R>=F)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,R>>>=0,F>>>=0,this===l)return 0;for(var X=F-R,Ae=_-c,we=Math.min(X,Ae),Pe=this.slice(R,F),Ce=l.slice(c,_),Le=0;Le<we;++Le)if(Pe[Le]!==Ce[Le]){X=Pe[Le],Ae=Ce[Le];break}return X<Ae?-1:Ae<X?1:0};function Z(l,c,_,R,F){if(l.length===0)return-1;if(typeof _=="string"?(R=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=F?0:l.length-1),_<0&&(_=l.length+_),_>=l.length){if(F)return-1;_=l.length-1}else if(_<0)if(F)_=0;else return-1;if(typeof c=="string"&&(c=f.from(c,R)),f.isBuffer(c))return c.length===0?-1:ce(l,c,_,R,F);if(typeof c=="number")return c=c&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?F?Uint8Array.prototype.indexOf.call(l,c,_):Uint8Array.prototype.lastIndexOf.call(l,c,_):ce(l,[c],_,R,F);throw new TypeError("val must be string, number or Buffer")}function ce(l,c,_,R,F){var X=1,Ae=l.length,we=c.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(l.length<2||c.length<2)return-1;X=2,Ae/=2,we/=2,_/=2}function Pe(tt,Xe){return X===1?tt[Xe]:tt.readUInt16BE(Xe*X)}var Ce;if(F){var Le=-1;for(Ce=_;Ce<Ae;Ce++)if(Pe(l,Ce)===Pe(c,Le===-1?0:Ce-Le)){if(Le===-1&&(Le=Ce),Ce-Le+1===we)return Le*X}else Le!==-1&&(Ce-=Ce-Le),Le=-1}else for(_+we>Ae&&(_=Ae-we),Ce=_;Ce>=0;Ce--){for(var Be=!0,Re=0;Re<we;Re++)if(Pe(l,Ce+Re)!==Pe(c,Re)){Be=!1;break}if(Be)return Ce}return-1}f.prototype.includes=function(l,c,_){return this.indexOf(l,c,_)!==-1},f.prototype.indexOf=function(l,c,_){return Z(this,l,c,_,!0)},f.prototype.lastIndexOf=function(l,c,_){return Z(this,l,c,_,!1)};function Q(l,c,_,R){_=Number(_)||0;var F=l.length-_;R?(R=Number(R),R>F&&(R=F)):R=F;var X=c.length;if(X%2!==0)throw new TypeError("Invalid hex string");R>X/2&&(R=X/2);for(var Ae=0;Ae<R;++Ae){var we=parseInt(c.substr(Ae*2,2),16);if(isNaN(we))return Ae;l[_+Ae]=we}return Ae}function V(l,c,_,R){return te($(c,l.length-_),l,_,R)}function de(l,c,_,R){return te(K(c),l,_,R)}function fe(l,c,_,R){return de(l,c,_,R)}function re(l,c,_,R){return te(J(c),l,_,R)}function De(l,c,_,R){return te(U(c,l.length-_),l,_,R)}f.prototype.write=function(l,c,_,R){if(c===void 0)R="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")R=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,R===void 0&&(R="utf8")):(R=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var F=this.length-c;if((_===void 0||_>F)&&(_=F),l.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");for(var X=!1;;)switch(R){case"hex":return Q(this,l,c,_);case"utf8":case"utf-8":return V(this,l,c,_);case"ascii":return de(this,l,c,_);case"latin1":case"binary":return fe(this,l,c,_);case"base64":return re(this,l,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,l,c,_);default:if(X)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),X=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(l,c,_){return c===0&&_===l.length?n.fromByteArray(l):n.fromByteArray(l.slice(c,_))}function N(l,c,_){_=Math.min(l.length,_);for(var R=[],F=c;F<_;){var X=l[F],Ae=null,we=X>239?4:X>223?3:X>191?2:1;if(F+we<=_){var Pe,Ce,Le,Be;switch(we){case 1:X<128&&(Ae=X);break;case 2:Pe=l[F+1],(Pe&192)===128&&(Be=(X&31)<<6|Pe&63,Be>127&&(Ae=Be));break;case 3:Pe=l[F+1],Ce=l[F+2],(Pe&192)===128&&(Ce&192)===128&&(Be=(X&15)<<12|(Pe&63)<<6|Ce&63,Be>2047&&(Be<55296||Be>57343)&&(Ae=Be));break;case 4:Pe=l[F+1],Ce=l[F+2],Le=l[F+3],(Pe&192)===128&&(Ce&192)===128&&(Le&192)===128&&(Be=(X&15)<<18|(Pe&63)<<12|(Ce&63)<<6|Le&63,Be>65535&&Be<1114112&&(Ae=Be))}}Ae===null?(Ae=65533,we=1):Ae>65535&&(Ae-=65536,R.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),R.push(Ae),F+=we}return D(R)}var T=4096;function D(l){var c=l.length;if(c<=T)return String.fromCharCode.apply(String,l);for(var _="",R=0;R<c;)_+=String.fromCharCode.apply(String,l.slice(R,R+=T));return _}function p(l,c,_){var R="";_=Math.min(l.length,_);for(var F=c;F<_;++F)R+=String.fromCharCode(l[F]&127);return R}function d(l,c,_){var R="";_=Math.min(l.length,_);for(var F=c;F<_;++F)R+=String.fromCharCode(l[F]);return R}function w(l,c,_){var R=l.length;(!c||c<0)&&(c=0),(!_||_<0||_>R)&&(_=R);for(var F="",X=c;X<_;++X)F+=xe(l[X]);return F}function h(l,c,_){for(var R=l.slice(c,_),F="",X=0;X<R.length;X+=2)F+=String.fromCharCode(R[X]+R[X+1]*256);return F}f.prototype.slice=function(l,c){var _=this.length;l=~~l,c=c===void 0?_:~~c,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<l&&(c=l);var R;if(f.TYPED_ARRAY_SUPPORT)R=this.subarray(l,c),R.__proto__=f.prototype;else{var F=c-l;R=new f(F,void 0);for(var X=0;X<F;++X)R[X]=this[X+l]}return R};function m(l,c,_){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+c>_)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=this[l],F=1,X=0;++X<c&&(F*=256);)R+=this[l+X]*F;return R},f.prototype.readUIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=this[l+--c],F=1;c>0&&(F*=256);)R+=this[l+--c]*F;return R},f.prototype.readUInt8=function(l,c){return c||m(l,1,this.length),this[l]},f.prototype.readUInt16LE=function(l,c){return c||m(l,2,this.length),this[l]|this[l+1]<<8},f.prototype.readUInt16BE=function(l,c){return c||m(l,2,this.length),this[l]<<8|this[l+1]},f.prototype.readUInt32LE=function(l,c){return c||m(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},f.prototype.readUInt32BE=function(l,c){return c||m(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},f.prototype.readIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=this[l],F=1,X=0;++X<c&&(F*=256);)R+=this[l+X]*F;return F*=128,R>=F&&(R-=Math.pow(2,8*c)),R},f.prototype.readIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=c,F=1,X=this[l+--R];R>0&&(F*=256);)X+=this[l+--R]*F;return F*=128,X>=F&&(X-=Math.pow(2,8*c)),X},f.prototype.readInt8=function(l,c){return c||m(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},f.prototype.readInt16LE=function(l,c){c||m(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},f.prototype.readInt16BE=function(l,c){c||m(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},f.prototype.readInt32LE=function(l,c){return c||m(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},f.prototype.readInt32BE=function(l,c){return c||m(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},f.prototype.readFloatLE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!0,23,4)},f.prototype.readFloatBE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!1,23,4)},f.prototype.readDoubleLE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!0,52,8)},f.prototype.readDoubleBE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!1,52,8)};function S(l,c,_,R,F,X){if(!f.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>F||c<X)throw new RangeError('"value" argument is out of bounds');if(_+R>l.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(l,c,_,R){if(l=+l,c=c|0,_=_|0,!R){var F=Math.pow(2,8*_)-1;S(this,l,c,_,F,0)}var X=1,Ae=0;for(this[c]=l&255;++Ae<_&&(X*=256);)this[c+Ae]=l/X&255;return c+_},f.prototype.writeUIntBE=function(l,c,_,R){if(l=+l,c=c|0,_=_|0,!R){var F=Math.pow(2,8*_)-1;S(this,l,c,_,F,0)}var X=_-1,Ae=1;for(this[c+X]=l&255;--X>=0&&(Ae*=256);)this[c+X]=l/Ae&255;return c+_},f.prototype.writeUInt8=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,1,255,0),f.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[c]=l&255,c+1};function B(l,c,_,R){c<0&&(c=65535+c+1);for(var F=0,X=Math.min(l.length-_,2);F<X;++F)l[_+F]=(c&255<<8*(R?F:1-F))>>>(R?F:1-F)*8}f.prototype.writeUInt16LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):B(this,l,c,!0),c+2},f.prototype.writeUInt16BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):B(this,l,c,!1),c+2};function G(l,c,_,R){c<0&&(c=4294967295+c+1);for(var F=0,X=Math.min(l.length-_,4);F<X;++F)l[_+F]=c>>>(R?F:3-F)*8&255}f.prototype.writeUInt32LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255):G(this,l,c,!0),c+4},f.prototype.writeUInt32BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4},f.prototype.writeIntLE=function(l,c,_,R){if(l=+l,c=c|0,!R){var F=Math.pow(2,8*_-1);S(this,l,c,_,F-1,-F)}var X=0,Ae=1,we=0;for(this[c]=l&255;++X<_&&(Ae*=256);)l<0&&we===0&&this[c+X-1]!==0&&(we=1),this[c+X]=(l/Ae>>0)-we&255;return c+_},f.prototype.writeIntBE=function(l,c,_,R){if(l=+l,c=c|0,!R){var F=Math.pow(2,8*_-1);S(this,l,c,_,F-1,-F)}var X=_-1,Ae=1,we=0;for(this[c+X]=l&255;--X>=0&&(Ae*=256);)l<0&&we===0&&this[c+X+1]!==0&&(we=1),this[c+X]=(l/Ae>>0)-we&255;return c+_},f.prototype.writeInt8=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,1,127,-128),f.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[c]=l&255,c+1},f.prototype.writeInt16LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):B(this,l,c,!0),c+2},f.prototype.writeInt16BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):B(this,l,c,!1),c+2},f.prototype.writeInt32LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24):G(this,l,c,!0),c+4},f.prototype.writeInt32BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4};function oe(l,c,_,R,F,X){if(_+R>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ne(l,c,_,R,F){return F||oe(l,c,_,4),r.write(l,c,_,R,23,4),_+4}f.prototype.writeFloatLE=function(l,c,_){return ne(this,l,c,!0,_)},f.prototype.writeFloatBE=function(l,c,_){return ne(this,l,c,!1,_)};function be(l,c,_,R,F){return F||oe(l,c,_,8),r.write(l,c,_,R,52,8),_+8}f.prototype.writeDoubleLE=function(l,c,_){return be(this,l,c,!0,_)},f.prototype.writeDoubleBE=function(l,c,_){return be(this,l,c,!1,_)},f.prototype.copy=function(l,c,_,R){if(_||(_=0),!R&&R!==0&&(R=this.length),c>=l.length&&(c=l.length),c||(c=0),R>0&&R<_&&(R=_),R===_||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("sourceStart out of bounds");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),l.length-c<R-_&&(R=l.length-c+_);var F=R-_,X;if(this===l&&_<c&&c<R)for(X=F-1;X>=0;--X)l[X+c]=this[X+_];else if(F<1e3||!f.TYPED_ARRAY_SUPPORT)for(X=0;X<F;++X)l[X+c]=this[X+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+F),c);return F},f.prototype.fill=function(l,c,_,R){if(typeof l=="string"){if(typeof c=="string"?(R=c,c=0,_=this.length):typeof _=="string"&&(R=_,_=this.length),l.length===1){var F=l.charCodeAt(0);F<256&&(l=F)}if(R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!f.isEncoding(R))throw new TypeError("Unknown encoding: "+R)}else typeof l=="number"&&(l=l&255);if(c<0||this.length<c||this.length<_)throw new RangeError("Out of range index");if(_<=c)return this;c=c>>>0,_=_===void 0?this.length:_>>>0,l||(l=0);var X;if(typeof l=="number")for(X=c;X<_;++X)this[X]=l;else{var Ae=f.isBuffer(l)?l:$(new f(l,R).toString()),we=Ae.length;for(X=0;X<_-c;++X)this[X+c]=Ae[X%we]}return this};var ee=/[^+\/0-9A-Za-z-_]/g;function ye(l){if(l=pe(l).replace(ee,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function pe(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function xe(l){return l<16?"0"+l.toString(16):l.toString(16)}function $(l,c){c=c||1/0;for(var _,R=l.length,F=null,X=[],Ae=0;Ae<R;++Ae){if(_=l.charCodeAt(Ae),_>55295&&_<57344){if(!F){if(_>56319){(c-=3)>-1&&X.push(239,191,189);continue}else if(Ae+1===R){(c-=3)>-1&&X.push(239,191,189);continue}F=_;continue}if(_<56320){(c-=3)>-1&&X.push(239,191,189),F=_;continue}_=(F-55296<<10|_-56320)+65536}else F&&(c-=3)>-1&&X.push(239,191,189);if(F=null,_<128){if((c-=1)<0)break;X.push(_)}else if(_<2048){if((c-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((c-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((c-=4)<0)break;X.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return X}function K(l){for(var c=[],_=0;_<l.length;++_)c.push(l.charCodeAt(_)&255);return c}function U(l,c){for(var _,R,F,X=[],Ae=0;Ae<l.length&&!((c-=2)<0);++Ae)_=l.charCodeAt(Ae),R=_>>8,F=_%256,X.push(F),X.push(R);return X}function J(l){return n.toByteArray(ye(l))}function te(l,c,_,R){for(var F=0;F<R&&!(F+_>=c.length||F>=l.length);++F)c[F+_]=l[F];return F}function Se(l){return l!==l}}(Pl)),Pl}ed();var pr;if(typeof window<"u"&&window.crypto&&(pr=window.crypto),!pr&&typeof window<"u"&&window.msCrypto&&(pr=window.msCrypto),!pr&&typeof global<"u"&&global.crypto&&(pr=global.crypto),!pr&&typeof require=="function")try{pr=require("crypto")}catch{}var Nl={};/*! *****************************************************************************
92
92
  Copyright (c) Microsoft Corporation.
93
93
 
94
94
  Permission to use, copy, modify, and/or distribute this software for any
@@ -101,44 +101,44 @@ 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 ca=function(i,n){return ca=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])},ca(i,n)};function Jd(i,n){ca(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var fa=function(){return fa=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},fa.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{C(s.next(T))}catch(M){v(M)}}function x(T){try{C(s.throw(T))}catch(M){v(M)}}function C(T){T.done?p(T.value):l(T.value).then(c,x)}C((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(C){return function(T){return x([C,T])}}function x(C){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(p=C[0]&2?l.return:C[0]?l.throw||((p=l.return)&&p.call(l),0):l.next)&&!(p=p.call(l,C[1])).done)return p;switch(l=0,p&&(C=[C[0]&2,p.value]),C[0]){case 0:case 1:p=C;break;case 4:return r.label++,{value:C[1],done:!1};case 5:r.label++,l=C[1],C=[0];continue;case 7:C=r.ops.pop(),r.trys.pop();continue;default:if(p=r.trys,!(p=p.length>0&&p[p.length-1])&&(C[0]===6||C[0]===2)){r=0;continue}if(C[0]===3&&(!p||C[1]>p[0]&&C[1]<p[3])){r.label=C[1];break}if(C[0]===6&&r.label<p[1]){r.label=p[1],p=C;break}if(p&&r.label<p[2]){r.label=p[2],r.ops.push(C);break}p[2]&&r.ops.pop(),r.trys.pop();continue}C=n.call(i,r)}catch(T){C=[6,T],l=0}finally{s=p=0}if(C[0]&5)throw C[1];return{value:C[0]?C[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 ha(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 Ui(i){return this instanceof Ui?(this.v=i,this):new Ui(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(E){return new Promise(function(I,U){p.push([P,E,I,U])>1||c(P,E)})})}function c(P,E){try{x(s[P](E))}catch(I){M(p[0][3],I)}}function x(P){P.value instanceof Ui?Promise.resolve(P.value.v).then(C,T):M(p[0][2],P)}function C(P){c("next",P)}function T(P){c("throw",P)}function M(P,E){P(E),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:Ui(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 ha=="function"?ha(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(C){p({value:C,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 fa},__asyncDelegator:cp,__asyncGenerator:lp,__asyncValues:fp,__await:Ui,__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:ha},Symbol.toStringTag,{value:"Module"})),Ul=ia(vp);var Fi={},an={},Fl;function Wl(){return Fl||(Fl=1,Object.defineProperty(an,"__esModule",{value:!0}),an.MAX_HASHABLE_LENGTH=an.INIT=an.KEY=an.DIGEST_LENGTH=an.BLOCK_SIZE=void 0,an.BLOCK_SIZE=64,an.DIGEST_LENGTH=32,an.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]),an.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],an.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),an}var Wi={},zl;function yp(){if(zl)return Wi;zl=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.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],C=p[3],T=p[4],M=p[5],P=p[6],E=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 U=this.temp[I-2],j=(U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10;U=this.temp[I-15];var ie=(U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3;this.temp[I]=(j+this.temp[I-7]|0)+(ie+this.temp[I-16]|0)}var re=(((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&M^~T&P)|0)+(E+(i.KEY[I]+this.temp[I]|0)|0)|0,se=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&c^v&x^c&x)|0;E=P,P=M,M=T,T=C+re|0,C=x,x=c,c=v,v=re+se|0}p[0]+=v,p[1]+=c,p[2]+=x,p[3]+=C,p[4]+=T,p[5]+=M,p[6]+=P,p[7]+=E},r}();return Wi.RawSha256=n,Wi}var ql={},zi={};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=ia(Ap);var Hl;function Op(){if(Hl)return zi;Hl=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.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 zi.convertToBuffer=r,zi}var qi={},Gl;function Tp(){if(Gl)return qi;Gl=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return qi.isEmptyData=i,qi}var Hi={},Vl;function Ep(){if(Vl)return Hi;Vl=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return Hi.numToUint8=i,Hi}var Gi={},Zl;function Mp(){if(Zl)return Gi;Zl=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.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 Gi.uint32ArrayFrom=i,Gi}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=Ep();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Mp();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(ql)),ql}var Ql;function Lp(){if(Ql)return Fi;Ql=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.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),C=new Uint8Array(n.BLOCK_SIZE);C.set(x);for(var T=0;T<n.BLOCK_SIZE;T++)x[T]^=54,C[T]^=92;this.hash.update(x),this.outer.update(C);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}();Fi.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 C=new Uint8Array(n.BLOCK_SIZE);return C.set(c),C}return Fi}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 sr,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,C=this[i++]>>15,T=c*x+C*v;x=v*x+((T&32767)<<15)+r[s]+(l&1073741823),l=(x>>>30)+(T>>>15)+c*C+(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,C=this[i++]>>14,T=c*x+C*v;x=v*x+((T&16383)<<14)+r[s]+l,l=(x>>28)+(T>>14)+c*C,r[s++]=x&268435455}return l}var ec=typeof navigator<"u";ec&&Xl&&navigator.appName=="Microsoft Internet Explorer"?(Ye.prototype.am=Np,sr=30):ec&&Xl&&navigator.appName!="Netscape"?(Ye.prototype.am=Pp,sr=26):(Ye.prototype.am=$p,sr=28),Ye.prototype.DB=sr,Ye.prototype.DM=(1<<sr)-1,Ye.prototype.DV=1<<sr;var da=52;Ye.prototype.FV=Math.pow(2,da),Ye.prototype.F1=da-sr,Ye.prototype.F2=2*sr-da;var Bp="0123456789abcdefghijklmnopqrstuvwxyz",Lo=new Array,si,un;for(si=48,un=0;un<=9;++un)Lo[si++]=un;for(si=97,un=10;un<36;++un)Lo[si++]=un;for(si=65,un=10;un<36;++un)Lo[si++]=un;function tc(i){return Bp.charAt(i)}function jp(i,n){var r=Lo[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 pa(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 ga(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)+ga(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-ga(s[s.t-1]);x>0?(s.lShiftTo(x,p),l.lShiftTo(x,r)):(s.copyTo(p),l.copyTo(r));var C=p.t,T=p[C-1];if(T!=0){var M=T*(1<<this.F1)+(C>1?p[C-2]>>this.F2:0),P=this.FV/M,E=(1<<this.F1)/M,I=1<<this.F2,U=r.t,j=U-C,ie=n??Nt();for(p.dlShiftTo(j,ie),r.compareTo(ie)>=0&&(r[r.t++]=1,r.subTo(ie,r)),Ye.ONE.dlShiftTo(C,ie),ie.subTo(p,p);p.t<C;)p[p.t++]=0;for(;--j>=0;){var re=r[--U]==T?this.DM:Math.floor(r[U]*P+(r[U-1]+I)*E);if((r[U]+=p.am(0,re,r,j,0,C))<re)for(p.dlShiftTo(j,ie),r.subTo(ie,r);r[U]<--re;)r.subTo(ie,r)}n!=null&&(r.drShiftTo(C,n),v!=c&&Ye.ZERO.subTo(n,n)),r.t=C,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 ai(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)}ai.prototype.convert=fg,ai.prototype.revert=hg,ai.prototype.reduce=dg,ai.prototype.mulTo=gg,ai.prototype.sqrTo=pg;function mg(i,n,r){var s=i.bitLength(),l,p=pa(1),v=new ai(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,C=l-1,T=(1<<l)-1;if(c[1]=v.convert(this),l>1){var M=Nt();for(v.sqrTo(c[1],M);x<=T;)c[x]=Nt(),v.mulTo(M,c[x-2],c[x]),x+=2}var P=i.t-1,E,I=!0,U=Nt(),j;for(s=ga(i[P])-1;P>=0;){for(s>=C?E=i[P]>>s-C&T:(E=(i[P]&(1<<s+1)-1)<<C-s,P>0&&(E|=i[P-1]>>this.DB+s-C)),x=l;(E&1)==0;)E>>=1,--x;if((s-=x)<0&&(s+=this.DB,--P),I)c[E].copyTo(p),I=!1;else{for(;x>1;)v.sqrTo(p,U),v.sqrTo(U,p),x-=2;x>0?v.sqrTo(p,U):(j=p,p=U,U=j),v.mulTo(U,c[E],p)}for(;P>=0&&(i[P]&1<<s)==0;)v.sqrTo(p,U),j=p,p=U,U=j,--s<0&&(s=this.DB-1,--P)}var ie=v.revert(p);return r(null,ie),ie}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=pa(0),Ye.ONE=pa(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 C in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(T,M,P){p.push(M=M.toLowerCase()),v.push([M,P]),c[M]=c[M]?c[M]+","+P:P}),r(x())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(C,n.headers[C]);l.send(n.body||null)})}const yg=Object.freeze(Object.defineProperty({__proto__:null,default:vg},Symbol.toStringTag,{value:"Module"})),nc=ia(yg);var rc,ic;function _g(){return ic||(ic=1,rc=self.fetch||(self.fetch=nc.default||nc)),rc}_g();/*!
104
+ ***************************************************************************** */var hs=function(i,n){return hs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)s.hasOwnProperty(u)&&(r[u]=s[u])},hs(i,n)};function td(i,n){hs(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ds=function(){return ds=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(i[u]=n[u])}return i},ds.apply(this,arguments)};function nd(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 u=0,s=Object.getOwnPropertySymbols(i);u<s.length;u++)n.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(i,s[u])&&(r[s[u]]=i[s[u]]);return r}function rd(i,n,r,s){var u=arguments.length,g=u<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,r,s);else for(var f=i.length-1;f>=0;f--)(v=i[f])&&(g=(u<3?v(g):u>3?v(n,r,g):v(n,r))||g);return u>3&&g&&Object.defineProperty(n,r,g),g}function id(i,n){return function(r,s){n(r,s,i)}}function od(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function sd(i,n,r,s){function u(g){return g instanceof r?g:new r(function(v){v(g)})}return new(r||(r=Promise))(function(g,v){function f(E){try{A(s.next(E))}catch(L){v(L)}}function C(E){try{A(s.throw(E))}catch(L){v(L)}}function A(E){E.done?g(E.value):u(E.value).then(f,C)}A((s=s.apply(i,n||[])).next())})}function ad(i,n){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,u,g,v;return v={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function f(A){return function(E){return C([A,E])}}function C(A){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,u&&(g=A[0]&2?u.return:A[0]?u.throw||((g=u.return)&&g.call(u),0):u.next)&&!(g=g.call(u,A[1])).done)return g;switch(u=0,g&&(A=[A[0]&2,g.value]),A[0]){case 0:case 1:g=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,u=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(g=r.trys,!(g=g.length>0&&g[g.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!g||A[1]>g[0]&&A[1]<g[3])){r.label=A[1];break}if(A[0]===6&&r.label<g[1]){r.label=g[1],g=A;break}if(g&&r.label<g[2]){r.label=g[2],r.ops.push(A);break}g[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(i,r)}catch(E){A=[6,E],u=0}finally{s=g=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}function ld(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function ud(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function ps(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 Il(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),u,g=[],v;try{for(;(n===void 0||n-- >0)&&!(u=s.next()).done;)g.push(u.value)}catch(f){v={error:f}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(v)throw v.error}}return g}function cd(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Il(arguments[n]));return i}function fd(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),u=0,n=0;n<r;n++)for(var g=arguments[n],v=0,f=g.length;v<f;v++,u++)s[u]=g[v];return s}function ii(i){return this instanceof ii?(this.v=i,this):new ii(i)}function hd(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),u,g=[];return u={},v("next"),v("throw"),v("return"),u[Symbol.asyncIterator]=function(){return this},u;function v(M){s[M]&&(u[M]=function(k){return new Promise(function(I,j){g.push([M,k,I,j])>1||f(M,k)})})}function f(M,k){try{C(s[M](k))}catch(I){L(g[0][3],I)}}function C(M){M.value instanceof ii?Promise.resolve(M.value.v).then(A,E):L(g[0][2],M)}function A(M){f("next",M)}function E(M){f("throw",M)}function L(M,k){M(k),g.shift(),g.length&&f(g[0][0],g[0][1])}}function dd(i){var n,r;return n={},s("next"),s("throw",function(u){throw u}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(u,g){n[u]=i[u]?function(v){return(r=!r)?{value:ii(i[u](v)),done:u==="return"}:g?g(v):v}:g}}function pd(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 ps=="function"?ps(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(g){r[g]=i[g]&&function(v){return new Promise(function(f,C){v=i[g](v),u(f,C,v.done,v.value)})}}function u(g,v,f,C){Promise.resolve(C).then(function(A){g({value:A,done:f})},v)}}function gd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function vd(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 md(i){return i&&i.__esModule?i:{default:i}}function yd(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function _d(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 wd=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ds},__asyncDelegator:dd,__asyncGenerator:hd,__asyncValues:pd,__await:ii,__awaiter:sd,__classPrivateFieldGet:yd,__classPrivateFieldSet:_d,__createBinding:ld,__decorate:rd,__exportStar:ud,__extends:td,__generator:ad,__importDefault:md,__importStar:vd,__makeTemplateObject:gd,__metadata:od,__param:id,__read:Il,__rest:nd,__spread:cd,__spreadArrays:fd,__values:ps},Symbol.toStringTag,{value:"Module"})),$l=ss(wd);var oi={},sn={},Bl;function jl(){return Bl||(Bl=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 si={},Yl;function bd(){if(Yl)return si;Yl=1,Object.defineProperty(si,"__esModule",{value:!0}),si.RawSha256=void 0;var i=jl(),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 u=0,g=s.byteLength;if(this.bytesHashed+=g,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;g>0;)this.buffer[this.bufferLength++]=s[u++],g--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,u=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(u.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var v=this.bufferLength;v<i.BLOCK_SIZE;v++)u.setUint8(v,0);this.hashBuffer(),this.bufferLength=0}for(var v=this.bufferLength;v<i.BLOCK_SIZE-8;v++)u.setUint8(v,0);u.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),u.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(i.DIGEST_LENGTH),v=0;v<8;v++)f[v*4]=this.state[v]>>>24&255,f[v*4+1]=this.state[v]>>>16&255,f[v*4+2]=this.state[v]>>>8&255,f[v*4+3]=this.state[v]>>>0&255;return f},r.prototype.hashBuffer=function(){for(var s=this,u=s.buffer,g=s.state,v=g[0],f=g[1],C=g[2],A=g[3],E=g[4],L=g[5],M=g[6],k=g[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(u[I*4]&255)<<24|(u[I*4+1]&255)<<16|(u[I*4+2]&255)<<8|u[I*4+3]&255;else{var j=this.temp[I-2],H=(j>>>17|j<<15)^(j>>>19|j<<13)^j>>>10;j=this.temp[I-15];var ae=(j>>>7|j<<25)^(j>>>18|j<<14)^j>>>3;this.temp[I]=(H+this.temp[I-7]|0)+(ae+this.temp[I-16]|0)}var se=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&L^~E&M)|0)+(k+(i.KEY[I]+this.temp[I]|0)|0)|0,le=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&f^v&C^f&C)|0;k=M,M=L,L=E,E=A+se|0,A=C,C=f,f=v,v=se+le|0}g[0]+=v,g[1]+=f,g[2]+=C,g[3]+=A,g[4]+=E,g[5]+=L,g[6]+=M,g[7]+=k},r}();return si.RawSha256=n,si}var Fl={},ai={};const xd=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const u=i.charCodeAt(r);if(u<128)n.push(u);else if(u<2048)n.push(u>>6|192,u&63|128);else if(r+1<i.length&&(u&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((u&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else n.push(u>>12|224,u>>6&63|128,u&63|128)}return Uint8Array.from(n)},Cd=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const u=i[r];if(u<128)n+=String.fromCharCode(u);else if(192<=u&&u<224){const g=i[++r];n+=String.fromCharCode((u&31)<<6|g&63)}else if(240<=u&&u<365){const g="%"+[u,i[++r],i[++r],i[++r]].map(v=>v.toString(16)).join("%");n+=decodeURIComponent(g)}else n+=String.fromCharCode((u&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Sd(i){return new TextEncoder().encode(i)}function Dd(i){return new TextDecoder("utf-8").decode(i)}const Ad=i=>typeof TextEncoder=="function"?Sd(i):xd(i),Od=i=>typeof TextDecoder=="function"?Dd(i):Cd(i),Ed=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Ad,toUtf8:Od},Symbol.toStringTag,{value:"Module"})),Td=ss(Ed);var Wl;function Pd(){if(Wl)return ai;Wl=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.convertToBuffer=void 0;var i=Td,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 ai.convertToBuffer=r,ai}var li={},Ul;function Md(){if(Ul)return li;Ul=1,Object.defineProperty(li,"__esModule",{value:!0}),li.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return li.isEmptyData=i,li}var ui={},zl;function Rd(){if(zl)return ui;zl=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 ci={},ql;function kd(){if(ql)return ci;ql=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.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 ci.uint32ArrayFrom=i,ci}var Hl;function Ld(){return Hl||(Hl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Pd();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Md();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Rd();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var u=kd();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return u.uint32ArrayFrom}})}(Fl)),Fl}var Gl;function Nd(){if(Gl)return oi;Gl=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.Sha256=void 0;var i=$l,n=jl(),r=bd(),s=Ld(),u=function(){function v(f){if(this.hash=new r.RawSha256,f){this.outer=new r.RawSha256;var C=g(f),A=new Uint8Array(n.BLOCK_SIZE);A.set(C);for(var E=0;E<n.BLOCK_SIZE;E++)C[E]^=54,A[E]^=92;this.hash.update(C),this.outer.update(A);for(var E=0;E<C.byteLength;E++)C[E]=0}}return v.prototype.update=function(f){if(!((0,s.isEmptyData)(f)||this.error))try{this.hash.update((0,s.convertToBuffer)(f))}catch(C){this.error=C}},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(f){return[2,this.digestSync()]})})},v}();oi.Sha256=u;function g(v){var f=(0,s.convertToBuffer)(v);if(f.byteLength>n.BLOCK_SIZE){var C=new r.RawSha256;C.update(f),f=C.digest()}var A=new Uint8Array(n.BLOCK_SIZE);return A.set(f),A}return oi}var Vl;function Id(){return Vl||(Vl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=$l;(0,n.__exportStar)(Nd(),i)}(Nl)),Nl}Id();function je(i,n){i!=null&&this.fromString(i,n)}function Rt(){return new je(null)}var Zn,$d=0xdeadbeefcafe,Kl=($d&16777215)==15715070;function Bd(i,n,r,s,u,g){for(;--g>=0;){var v=n*this[i++]+r[s]+u;u=Math.floor(v/67108864),r[s++]=v&67108863}return u}function jd(i,n,r,s,u,g){for(var v=n&32767,f=n>>15;--g>=0;){var C=this[i]&32767,A=this[i++]>>15,E=f*C+A*v;C=v*C+((E&32767)<<15)+r[s]+(u&1073741823),u=(C>>>30)+(E>>>15)+f*A+(u>>>30),r[s++]=C&1073741823}return u}function Yd(i,n,r,s,u,g){for(var v=n&16383,f=n>>14;--g>=0;){var C=this[i]&16383,A=this[i++]>>14,E=f*C+A*v;C=v*C+((E&16383)<<14)+r[s]+u,u=(C>>28)+(E>>14)+f*A,r[s++]=C&268435455}return u}var Zl=typeof navigator<"u";Zl&&Kl&&navigator.appName=="Microsoft Internet Explorer"?(je.prototype.am=jd,Zn=30):Zl&&Kl&&navigator.appName!="Netscape"?(je.prototype.am=Bd,Zn=26):(je.prototype.am=Yd,Zn=28),je.prototype.DB=Zn,je.prototype.DM=(1<<Zn)-1,je.prototype.DV=1<<Zn;var gs=52;je.prototype.FV=Math.pow(2,gs),je.prototype.F1=gs-Zn,je.prototype.F2=2*Zn-gs;var Fd="0123456789abcdefghijklmnopqrstuvwxyz",Yi=new Array,Ar,an;for(Ar=48,an=0;an<=9;++an)Yi[Ar++]=an;for(Ar=97,an=10;an<36;++an)Yi[Ar++]=an;for(Ar=65,an=10;an<36;++an)Yi[Ar++]=an;function Ql(i){return Fd.charAt(i)}function Wd(i,n){var r=Yi[i.charCodeAt(n)];return r??-1}function Ud(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function zd(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 vs(i){var n=Rt();return n.fromInt(i),n}function qd(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,u=!1,g=0;--s>=0;){var v=Wd(i,s);if(v<0){i.charAt(s)=="-"&&(u=!0);continue}u=!1,g==0?this[this.t++]=v:g+r>this.DB?(this[this.t-1]|=(v&(1<<this.DB-g)-1)<<g,this[this.t++]=v>>this.DB-g):this[this.t-1]|=v<<g,g+=r,g>=this.DB&&(g-=this.DB)}this.clamp(),u&&je.ZERO.subTo(this,this)}function Hd(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Gd(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,u=!1,g="",v=this.t,f=this.DB-v*this.DB%n;if(v-- >0)for(f<this.DB&&(s=this[v]>>f)>0&&(u=!0,g=Ql(s));v>=0;)f<n?(s=(this[v]&(1<<f)-1)<<n-f,s|=this[--v]>>(f+=this.DB-n)):(s=this[v]>>(f-=n)&r,f<=0&&(f+=this.DB,--v)),s>0&&(u=!0),u&&(g+=Ql(s));return u?g:"0"}function Vd(){var i=Rt();return je.ZERO.subTo(this,i),i}function Kd(){return this.s<0?this.negate():this}function Zd(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 ms(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 Qd(){return this.t<=0?0:this.DB*(this.t-1)+ms(this[this.t-1]^this.s&this.DM)}function Jd(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 Xd(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 ep(i,n){var r=i%this.DB,s=this.DB-r,u=(1<<s)-1,g=Math.floor(i/this.DB),v=this.s<<r&this.DM,f;for(f=this.t-1;f>=0;--f)n[f+g+1]=this[f]>>s|v,v=(this[f]&u)<<r;for(f=g-1;f>=0;--f)n[f]=0;n[g]=v,n.t=this.t+g+1,n.s=this.s,n.clamp()}function tp(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,u=this.DB-s,g=(1<<s)-1;n[0]=this[r]>>s;for(var v=r+1;v<this.t;++v)n[v-r-1]|=(this[v]&g)<<u,n[v-r]=this[v]>>s;s>0&&(n[this.t-r-1]|=(this.s&g)<<u),n.t=this.t-r,n.clamp()}function np(i,n){for(var r=0,s=0,u=Math.min(i.t,this.t);r<u;)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 rp(i,n){var r=this.abs(),s=i.abs(),u=r.t;for(n.t=u+s.t;--u>=0;)n[u]=0;for(u=0;u<s.t;++u)n[u+r.t]=r.am(0,s[u],n,u,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&je.ZERO.subTo(n,n)}function ip(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 op(i,n,r){var s=i.abs();if(!(s.t<=0)){var u=this.abs();if(u.t<s.t){n?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Rt());var g=Rt(),v=this.s,f=i.s,C=this.DB-ms(s[s.t-1]);C>0?(s.lShiftTo(C,g),u.lShiftTo(C,r)):(s.copyTo(g),u.copyTo(r));var A=g.t,E=g[A-1];if(E!=0){var L=E*(1<<this.F1)+(A>1?g[A-2]>>this.F2:0),M=this.FV/L,k=(1<<this.F1)/L,I=1<<this.F2,j=r.t,H=j-A,ae=n??Rt();for(g.dlShiftTo(H,ae),r.compareTo(ae)>=0&&(r[r.t++]=1,r.subTo(ae,r)),je.ONE.dlShiftTo(A,ae),ae.subTo(g,g);g.t<A;)g[g.t++]=0;for(;--H>=0;){var se=r[--j]==E?this.DM:Math.floor(r[j]*M+(r[j-1]+I)*k);if((r[j]+=g.am(0,se,r,H,0,A))<se)for(g.dlShiftTo(H,ae),r.subTo(ae,r);r[j]<--se;)r.subTo(ae,r)}n!=null&&(r.drShiftTo(A,n),v!=f&&je.ZERO.subTo(n,n)),r.t=A,r.clamp(),C>0&&r.rShiftTo(C,r),v<0&&je.ZERO.subTo(r,r)}}}function sp(i){var n=Rt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(je.ZERO)>0&&i.subTo(n,n),n}function ap(){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 lp(i){return this.compareTo(i)==0}function up(i,n){for(var r=0,s=0,u=Math.min(i.t,this.t);r<u;)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 cp(i){var n=Rt();return this.addTo(i,n),n}function fp(i){var n=Rt();return this.subTo(i,n),n}function hp(i){var n=Rt();return this.multiplyTo(i,n),n}function dp(i){var n=Rt();return this.divRemTo(i,n,null),n}function Or(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 pp(i){var n=Rt();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(je.ZERO)>0&&this.m.subTo(n,n),n}function gp(i){var n=Rt();return i.copyTo(n),this.reduce(n),n}function vp(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 mp(i,n){i.squareTo(n),this.reduce(n)}function yp(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Or.prototype.convert=pp,Or.prototype.revert=gp,Or.prototype.reduce=vp,Or.prototype.mulTo=yp,Or.prototype.sqrTo=mp;function _p(i,n,r){var s=i.bitLength(),u,g=vs(1),v=new Or(n);if(s<=0)return g;s<18?u=1:s<48?u=3:s<144?u=4:s<768?u=5:u=6;var f=new Array,C=3,A=u-1,E=(1<<u)-1;if(f[1]=v.convert(this),u>1){var L=Rt();for(v.sqrTo(f[1],L);C<=E;)f[C]=Rt(),v.mulTo(L,f[C-2],f[C]),C+=2}var M=i.t-1,k,I=!0,j=Rt(),H;for(s=ms(i[M])-1;M>=0;){for(s>=A?k=i[M]>>s-A&E:(k=(i[M]&(1<<s+1)-1)<<A-s,M>0&&(k|=i[M-1]>>this.DB+s-A)),C=u;(k&1)==0;)k>>=1,--C;if((s-=C)<0&&(s+=this.DB,--M),I)f[k].copyTo(g),I=!1;else{for(;C>1;)v.sqrTo(g,j),v.sqrTo(j,g),C-=2;C>0?v.sqrTo(g,j):(H=g,g=j,j=H),v.mulTo(j,f[k],g)}for(;M>=0&&(i[M]&1<<s)==0;)v.sqrTo(g,j),H=g,g=j,j=H,--s<0&&(s=this.DB-1,--M)}var ae=v.revert(g);return r(null,ae),ae}je.prototype.copyTo=Ud,je.prototype.fromInt=zd,je.prototype.fromString=qd,je.prototype.clamp=Hd,je.prototype.dlShiftTo=Jd,je.prototype.drShiftTo=Xd,je.prototype.lShiftTo=ep,je.prototype.rShiftTo=tp,je.prototype.subTo=np,je.prototype.multiplyTo=rp,je.prototype.squareTo=ip,je.prototype.divRemTo=op,je.prototype.invDigit=ap,je.prototype.addTo=up,je.prototype.toString=Gd,je.prototype.negate=Vd,je.prototype.abs=Kd,je.prototype.compareTo=Zd,je.prototype.bitLength=Qd,je.prototype.mod=sp,je.prototype.equals=lp,je.prototype.add=cp,je.prototype.subtract=fp,je.prototype.multiply=hp,je.prototype.divide=dp,je.prototype.modPow=_p,je.ZERO=vs(0),je.ONE=vs(1);function wp(i,n){return n=n||{},new Promise(function(r,s){var u=new XMLHttpRequest,g=[],v=[],f={},C=function(){return{ok:(u.status/100|0)==2,statusText:u.statusText,status:u.status,url:u.responseURL,text:function(){return Promise.resolve(u.responseText)},json:function(){return Promise.resolve(u.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([u.response]))},clone:C,headers:{keys:function(){return g},entries:function(){return v},get:function(E){return f[E.toLowerCase()]},has:function(E){return E.toLowerCase()in f}}}};for(var A in u.open(n.method||"get",i,!0),u.onload=function(){u.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,L,M){g.push(L=L.toLowerCase()),v.push([L,M]),f[L]=f[L]?f[L]+","+M:M}),r(C())},u.onerror=s,u.withCredentials=n.credentials=="include",n.headers)u.setRequestHeader(A,n.headers[A]);u.send(n.body||null)})}const bp=Object.freeze(Object.defineProperty({__proto__:null,default:wp},Symbol.toStringTag,{value:"Module"})),Jl=ss(bp);var Xl,eu;function xp(){return eu||(eu=1,Xl=self.fetch||(self.fetch=Jl.default||Jl)),Xl}xp();/*!
105
105
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
106
106
  * SPDX-License-Identifier: Apache-2.0
107
- */var oc={exports:{}};/*!
107
+ */var tu={exports:{}};/*!
108
108
  * JavaScript Cookie v2.2.1
109
109
  * https://github.com/js-cookie/js-cookie
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(C,T,M){if(!(typeof document>"u")){M=r({path:"/"},v.defaults,M),typeof M.expires=="number"&&(M.expires=new Date(new Date*1+M.expires*864e5)),M.expires=M.expires?M.expires.toUTCString():"";try{var P=JSON.stringify(T);/^[\{\[]/.test(P)&&(T=P)}catch{}T=p.write?p.write(T,C):encodeURIComponent(String(T)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),C=encodeURIComponent(String(C)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var E="";for(var I in M)M[I]&&(E+="; "+I,M[I]!==!0&&(E+="="+M[I].split(";")[0]));return document.cookie=C+"="+T+E}}function x(C,T){if(!(typeof document>"u")){for(var M={},P=document.cookie?document.cookie.split("; "):[],E=0;E<P.length;E++){var I=P[E].split("="),U=I.slice(1).join("=");!T&&U.charAt(0)==='"'&&(U=U.slice(1,-1));try{var j=s(I[0]);if(U=(p.read||p)(U,j)||s(U),T)try{U=JSON.parse(U)}catch{}if(M[j]=U,C===j)break}catch{}}return C?M[C]:M}}return v.set=c,v.get=function(C){return x(C,!1)},v.getJSON=function(C){return x(C,!0)},v.remove=function(C,T){c(C,"",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",ko="browser",ac="cpu",uc="device",ma="engine",Io="os",ar="name",Po="type",va="vendor",On="version",ya="architecture",_a="major",wa="model",Og="console",Tg="mobile",Eg="tablet",Mg="smarttv",Rg="wearable",Lg="embedded",kg=typeof window!==Ag,ba=kg&&window.navigator?window.navigator:void 0;ba&&ba.userAgentData&&ba.userAgentData;var No=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},$o=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 $o.call(i.init,[[ko,[ar,On,_a,Po]],[ac,[ya]],[uc,[Po,wa,va]],[ma,[ar,On]],[Io,[ar,On]]]),$o.call(i.isIgnore,[[ko,[On,_a]],[ma,[On]],[Io,[On]]]),$o.call(i.isIgnoreRgx,[[ko,/ ?browser$/i],[Io,/ ?os$/i]]),$o.call(i.toString,[[ko,[ar,On]],[ac,[ya]],[uc,[va,wa]],[ma,[ar,On]],[Io,[ar,On]]]),i})(),No([ar,On,_a,Po]),No([ya]),No([wa,va,Po,Og,Tg,Mg,Eg,Rg,Lg]),No([ar,On]);var xa={exports:{}},Ig=xa.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,C,T=function(){var M=function($,k){var O=$,d=ie[k],h=null,w=0,m=null,g=[],A={},F=function(B,z){h=function(W){for(var Z=new Array(W),oe=0;oe<W;oe+=1){Z[oe]=new Array(W);for(var Te=0;Te<W;Te+=1)Z[oe][Te]=null}return Z}(w=4*O+17),H(0,0),H(w-7,0),H(0,w-7),ue(),ae(),Q(B,z),O>=7&&we(B),m==null&&(m=Ce(O,d,g)),he(m,z)},H=function(B,z){for(var W=-1;W<=7;W+=1)if(!(B+W<=-1||w<=B+W))for(var Z=-1;Z<=7;Z+=1)z+Z<=-1||w<=z+Z||(h[B+W][z+Z]=0<=W&&W<=6&&(Z==0||Z==6)||0<=Z&&Z<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=Z&&Z<=4)},ae=function(){for(var B=8;B<w-8;B+=1)h[B][6]==null&&(h[B][6]=B%2==0);for(var z=8;z<w-8;z+=1)h[6][z]==null&&(h[6][z]=z%2==0)},ue=function(){for(var B=re.getPatternPosition(O),z=0;z<B.length;z+=1)for(var W=0;W<B.length;W+=1){var Z=B[z],oe=B[W];if(h[Z][oe]==null)for(var Te=-2;Te<=2;Te+=1)for(var u=-2;u<=2;u+=1)h[Z+Te][oe+u]=Te==-2||Te==2||u==-2||u==2||Te==0&&u==0}},we=function(B){for(var z=re.getBCHTypeNumber(O),W=0;W<18;W+=1){var Z=!B&&(z>>W&1)==1;h[Math.floor(W/3)][W%3+w-8-3]=Z}for(W=0;W<18;W+=1)Z=!B&&(z>>W&1)==1,h[W%3+w-8-3][Math.floor(W/3)]=Z},Q=function(B,z){for(var W=d<<3|z,Z=re.getBCHTypeInfo(W),oe=0;oe<15;oe+=1){var Te=!B&&(Z>>oe&1)==1;oe<6?h[oe][8]=Te:oe<8?h[oe+1][8]=Te:h[w-15+oe][8]=Te}for(oe=0;oe<15;oe+=1)Te=!B&&(Z>>oe&1)==1,oe<8?h[8][w-oe-1]=Te:oe<9?h[8][15-oe-1+1]=Te:h[8][15-oe-1]=Te;h[w-8][8]=!B},he=function(B,z){for(var W=-1,Z=w-1,oe=7,Te=0,u=re.getMaskFunction(z),f=w-1;f>0;f-=2)for(f==6&&(f-=1);;){for(var _=0;_<2;_+=1)if(h[Z][f-_]==null){var R=!1;Te<B.length&&(R=(B[Te]>>>oe&1)==1),u(Z,f-_)&&(R=!R),h[Z][f-_]=R,(oe-=1)==-1&&(Te+=1,oe=7)}if((Z+=W)<0||w<=Z){Z-=W,W=-W;break}}},Ce=function(B,z,W){for(var Z=K.getRSBlocks(B,z),oe=de(),Te=0;Te<W.length;Te+=1){var u=W[Te];oe.put(u.getMode(),4),oe.put(u.getLength(),re.getLengthInBits(u.getMode(),B)),u.write(oe)}var f=0;for(Te=0;Te<Z.length;Te+=1)f+=Z[Te].dataCount;if(oe.getLengthInBits()>8*f)throw"code length overflow. ("+oe.getLengthInBits()+">"+8*f+")";for(oe.getLengthInBits()+4<=8*f&&oe.put(0,4);oe.getLengthInBits()%8!=0;)oe.putBit(!1);for(;!(oe.getLengthInBits()>=8*f||(oe.put(236,8),oe.getLengthInBits()>=8*f));)oe.put(17,8);return function(_,R){for(var q=0,X=0,Ae=0,be=new Array(R.length),Re=new Array(R.length),Se=0;Se<R.length;Se+=1){var ke=R[Se].dataCount,Ne=R[Se].totalCount-ke;X=Math.max(X,ke),Ae=Math.max(Ae,Ne),be[Se]=new Array(ke);for(var Ie=0;Ie<be[Se].length;Ie+=1)be[Se][Ie]=255&_.getBuffer()[Ie+q];q+=ke;var Xe=re.getErrorCorrectPolynomial(Ne),nt=ce(be[Se],Xe.getLength()-1).mod(Xe);for(Re[Se]=new Array(Xe.getLength()-1),Ie=0;Ie<Re[Se].length;Ie+=1){var Ge=Ie+nt.getLength()-Re[Se].length;Re[Se][Ie]=Ge>=0?nt.getAt(Ge):0}}var wt=0;for(Ie=0;Ie<R.length;Ie+=1)wt+=R[Ie].totalCount;var mt=new Array(wt),lt=0;for(Ie=0;Ie<X;Ie+=1)for(Se=0;Se<R.length;Se+=1)Ie<be[Se].length&&(mt[lt]=be[Se][Ie],lt+=1);for(Ie=0;Ie<Ae;Ie+=1)for(Se=0;Se<R.length;Se+=1)Ie<Re[Se].length&&(mt[lt]=Re[Se][Ie],lt+=1);return mt}(oe,Z)};A.addData=function(B,z){var W=null;switch(z=z||"Byte"){case"Numeric":W=ee(B);break;case"Alphanumeric":W=J(B);break;case"Byte":W=pe(B);break;case"Kanji":W=fe(B);break;default:throw"mode:"+z}g.push(W),m=null},A.isDark=function(B,z){if(B<0||w<=B||z<0||w<=z)throw B+","+z;return h[B][z]},A.getModuleCount=function(){return w},A.make=function(){if(O<1){for(var B=1;B<40;B++){for(var z=K.getRSBlocks(B,d),W=de(),Z=0;Z<g.length;Z++){var oe=g[Z];W.put(oe.getMode(),4),W.put(oe.getLength(),re.getLengthInBits(oe.getMode(),B)),oe.write(W)}var Te=0;for(Z=0;Z<z.length;Z++)Te+=z[Z].dataCount;if(W.getLengthInBits()<=8*Te)break}O=B}F(!1,function(){for(var u=0,f=0,_=0;_<8;_+=1){F(!0,_);var R=re.getLostPoint(A);(_==0||u>R)&&(u=R,f=_)}return f}())},A.createTableTag=function(B,z){B=B||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(z=z===void 0?4*B:z)+"px;",W+='">',W+="<tbody>";for(var Z=0;Z<A.getModuleCount();Z+=1){W+="<tr>";for(var oe=0;oe<A.getModuleCount();oe+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+B+"px;",W+=" height: "+B+"px;",W+=" background-color: ",W+=A.isDark(Z,oe)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},A.createSvgTag=function(B,z,W,Z){var oe={};typeof arguments[0]=="object"&&(B=(oe=arguments[0]).cellSize,z=oe.margin,W=oe.alt,Z=oe.title),B=B||2,z=z===void 0?4*B:z,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.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 Te,u,f,_,R=A.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+=oe.scalable?"":' width="'+R+'px" height="'+R+'px"',q+=' viewBox="0 0 '+R+" "+R+'" ',q+=' preserveAspectRatio="xMinYMin meet"',q+=Z.text||W.text?' role="img" aria-labelledby="'+_e([Z.id,W.id].join(" ").trim())+'"':"",q+=">",q+=Z.text?'<title id="'+_e(Z.id)+'">'+_e(Z.text)+"</title>":"",q+=W.text?'<description id="'+_e(W.id)+'">'+_e(W.text)+"</description>":"",q+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',q+='<path d="',u=0;u<A.getModuleCount();u+=1)for(f=u*B+z,Te=0;Te<A.getModuleCount();Te+=1)A.isDark(u,Te)&&(q+="M"+(Te*B+z)+","+f+_);return(q+='" stroke="transparent" fill="black"/>')+"</svg>"},A.createDataURL=function(B,z){B=B||2,z=z===void 0?4*B:z;var W=A.getModuleCount()*B+2*z,Z=z,oe=W-z;return Oe(W,W,function(Te,u){if(Z<=Te&&Te<oe&&Z<=u&&u<oe){var f=Math.floor((Te-Z)/B),_=Math.floor((u-Z)/B);return A.isDark(_,f)?0:1}return 1})},A.createImgTag=function(B,z,W){B=B||2,z=z===void 0?4*B:z;var Z=A.getModuleCount()*B+2*z,oe="";return oe+="<img",oe+=' src="',oe+=A.createDataURL(B,z),oe+='"',oe+=' width="',oe+=Z,oe+='"',oe+=' height="',oe+=Z,oe+='"',W&&(oe+=' alt="',oe+=_e(W),oe+='"'),oe+"/>"};var _e=function(B){for(var z="",W=0;W<B.length;W+=1){var Z=B.charAt(W);switch(Z){case"<":z+="&lt;";break;case">":z+="&gt;";break;case"&":z+="&amp;";break;case'"':z+="&quot;";break;default:z+=Z}}return z};return A.createASCII=function(B,z){if((B=B||1)<2)return function(be){be=be===void 0?2:be;var Re,Se,ke,Ne,Ie,Xe=1*A.getModuleCount()+2*be,nt=be,Ge=Xe-be,wt={"██":"█","█ ":"▀"," █":"▄"," ":" "},mt={"██":"▀","█ ":"▀"," █":" "," ":" "},lt="";for(Re=0;Re<Xe;Re+=2){for(ke=Math.floor((Re-nt)/1),Ne=Math.floor((Re+1-nt)/1),Se=0;Se<Xe;Se+=1)Ie="█",nt<=Se&&Se<Ge&&nt<=Re&&Re<Ge&&A.isDark(ke,Math.floor((Se-nt)/1))&&(Ie=" "),nt<=Se&&Se<Ge&&nt<=Re+1&&Re+1<Ge&&A.isDark(Ne,Math.floor((Se-nt)/1))?Ie+=" ":Ie+="█",lt+=be<1&&Re+1>=Ge?mt[Ie]:wt[Ie];lt+=`
114
- `}return Xe%2&&be>0?lt.substring(0,lt.length-Xe-1)+Array(Xe+1).join("▀"):lt.substring(0,lt.length-1)}(z);B-=1,z=z===void 0?2*B:z;var W,Z,oe,Te,u=A.getModuleCount()*B+2*z,f=z,_=u-z,R=Array(B+1).join("██"),q=Array(B+1).join(" "),X="",Ae="";for(W=0;W<u;W+=1){for(oe=Math.floor((W-f)/B),Ae="",Z=0;Z<u;Z+=1)Te=1,f<=Z&&Z<_&&f<=W&&W<_&&A.isDark(oe,Math.floor((Z-f)/B))&&(Te=0),Ae+=Te?R:q;for(oe=0;oe<B;oe+=1)X+=Ae+`
115
- `}return X.substring(0,X.length-1)},A.renderTo2dContext=function(B,z){z=z||2;for(var W=A.getModuleCount(),Z=0;Z<W;Z++)for(var oe=0;oe<W;oe++)B.fillStyle=A.isDark(Z,oe)?"black":"white",B.fillRect(Z*z,oe*z,z,z)},A};M.stringToBytes=(M.stringToBytesFuncs={default:function($){for(var k=[],O=0;O<$.length;O+=1){var d=$.charCodeAt(O);k.push(255&d)}return k}}).default,M.createStringToBytes=function($,k){var O=function(){for(var h=De($),w=function(){var ae=h.read();if(ae==-1)throw"eof";return ae},m=0,g={};;){var A=h.read();if(A==-1)break;var F=w(),H=w()<<8|w();g[String.fromCharCode(A<<8|F)]=H,m+=1}if(m!=k)throw m+" != "+k;return g}(),d=63;return function(h){for(var w=[],m=0;m<h.length;m+=1){var g=h.charCodeAt(m);if(g<128)w.push(g);else{var A=O[h.charAt(m)];typeof A=="number"?(255&A)==A?w.push(A):(w.push(A>>>8),w.push(255&A)):w.push(d)}}return w}};var P,E,I,U,j,ie={L:1,M:0,Q:3,H:2},re=(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]],E=1335,I=7973,j=function($){for(var k=0;$!=0;)k+=1,$>>>=1;return k},(U={}).getBCHTypeInfo=function($){for(var k=$<<10;j(k)-j(E)>=0;)k^=E<<j(k)-j(E);return 21522^($<<10|k)},U.getBCHTypeNumber=function($){for(var k=$<<12;j(k)-j(I)>=0;)k^=I<<j(k)-j(I);return $<<12|k},U.getPatternPosition=function($){return P[$-1]},U.getMaskFunction=function($){switch($){case 0:return function(k,O){return(k+O)%2==0};case 1:return function(k,O){return k%2==0};case 2:return function(k,O){return O%3==0};case 3:return function(k,O){return(k+O)%3==0};case 4:return function(k,O){return(Math.floor(k/2)+Math.floor(O/3))%2==0};case 5:return function(k,O){return k*O%2+k*O%3==0};case 6:return function(k,O){return(k*O%2+k*O%3)%2==0};case 7:return function(k,O){return(k*O%3+(k+O)%2)%2==0};default:throw"bad maskPattern:"+$}},U.getErrorCorrectPolynomial=function($){for(var k=ce([1],0),O=0;O<$;O+=1)k=k.multiply(ce([1,se.gexp(O)],0));return k},U.getLengthInBits=function($,k){if(1<=k&&k<10)switch($){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+$}else if(k<27)switch($){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+$}else{if(!(k<41))throw"type:"+k;switch($){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+$}}},U.getLostPoint=function($){for(var k=$.getModuleCount(),O=0,d=0;d<k;d+=1)for(var h=0;h<k;h+=1){for(var w=0,m=$.isDark(d,h),g=-1;g<=1;g+=1)if(!(d+g<0||k<=d+g))for(var A=-1;A<=1;A+=1)h+A<0||k<=h+A||g==0&&A==0||m==$.isDark(d+g,h+A)&&(w+=1);w>5&&(O+=3+w-5)}for(d=0;d<k-1;d+=1)for(h=0;h<k-1;h+=1){var F=0;$.isDark(d,h)&&(F+=1),$.isDark(d+1,h)&&(F+=1),$.isDark(d,h+1)&&(F+=1),$.isDark(d+1,h+1)&&(F+=1),F!=0&&F!=4||(O+=3)}for(d=0;d<k;d+=1)for(h=0;h<k-6;h+=1)$.isDark(d,h)&&!$.isDark(d,h+1)&&$.isDark(d,h+2)&&$.isDark(d,h+3)&&$.isDark(d,h+4)&&!$.isDark(d,h+5)&&$.isDark(d,h+6)&&(O+=40);for(h=0;h<k;h+=1)for(d=0;d<k-6;d+=1)$.isDark(d,h)&&!$.isDark(d+1,h)&&$.isDark(d+2,h)&&$.isDark(d+3,h)&&$.isDark(d+4,h)&&!$.isDark(d+5,h)&&$.isDark(d+6,h)&&(O+=40);var H=0;for(h=0;h<k;h+=1)for(d=0;d<k;d+=1)$.isDark(d,h)&&(H+=1);return O+Math.abs(100*H/k/k-50)/5*10},U),se=function(){for(var $=new Array(256),k=new Array(256),O=0;O<8;O+=1)$[O]=1<<O;for(O=8;O<256;O+=1)$[O]=$[O-4]^$[O-5]^$[O-6]^$[O-8];for(O=0;O<255;O+=1)k[$[O]]=O;return{glog:function(d){if(d<1)throw"glog("+d+")";return k[d]},gexp:function(d){for(;d<0;)d+=255;for(;d>=256;)d-=255;return $[d]}}}();function ce($,k){if($.length===void 0)throw $.length+"/"+k;var O=function(){for(var h=0;h<$.length&&$[h]==0;)h+=1;for(var w=new Array($.length-h+k),m=0;m<$.length-h;m+=1)w[m]=$[m+h];return w}(),d={getAt:function(h){return O[h]},getLength:function(){return O.length},multiply:function(h){for(var w=new Array(d.getLength()+h.getLength()-1),m=0;m<d.getLength();m+=1)for(var g=0;g<h.getLength();g+=1)w[m+g]^=se.gexp(se.glog(d.getAt(m))+se.glog(h.getAt(g)));return ce(w,0)},mod:function(h){if(d.getLength()-h.getLength()<0)return d;for(var w=se.glog(d.getAt(0))-se.glog(h.getAt(0)),m=new Array(d.getLength()),g=0;g<d.getLength();g+=1)m[g]=d.getAt(g);for(g=0;g<h.getLength();g+=1)m[g]^=se.gexp(se.glog(h.getAt(g))+w);return ce(m,0).mod(h)}};return d}var K=function(){var $=[[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]],k=function(d,h){var w={};return w.totalCount=d,w.dataCount=h,w},O={getRSBlocks:function(d,h){var w=function(we,Q){switch(Q){case ie.L:return $[4*(we-1)+0];case ie.M:return $[4*(we-1)+1];case ie.Q:return $[4*(we-1)+2];case ie.H:return $[4*(we-1)+3];default:return}}(d,h);if(w===void 0)throw"bad rs block @ typeNumber:"+d+"/errorCorrectionLevel:"+h;for(var m=w.length/3,g=[],A=0;A<m;A+=1)for(var F=w[3*A+0],H=w[3*A+1],ae=w[3*A+2],ue=0;ue<F;ue+=1)g.push(k(H,ae));return g}};return O}(),de=function(){var $=[],k=0,O={getBuffer:function(){return $},getAt:function(d){var h=Math.floor(d/8);return($[h]>>>7-d%8&1)==1},put:function(d,h){for(var w=0;w<h;w+=1)O.putBit((d>>>h-w-1&1)==1)},getLengthInBits:function(){return k},putBit:function(d){var h=Math.floor(k/8);$.length<=h&&$.push(0),d&&($[h]|=128>>>k%8),k+=1}};return O},ee=function($){var k=$,O={getMode:function(){return 1},getLength:function(w){return k.length},write:function(w){for(var m=k,g=0;g+2<m.length;)w.put(d(m.substring(g,g+3)),10),g+=3;g<m.length&&(m.length-g==1?w.put(d(m.substring(g,g+1)),4):m.length-g==2&&w.put(d(m.substring(g,g+2)),7))}},d=function(w){for(var m=0,g=0;g<w.length;g+=1)m=10*m+h(w.charAt(g));return m},h=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return O},J=function($){var k=$,O={getMode:function(){return 2},getLength:function(h){return k.length},write:function(h){for(var w=k,m=0;m+1<w.length;)h.put(45*d(w.charAt(m))+d(w.charAt(m+1)),11),m+=2;m<w.length&&h.put(d(w.charAt(m)),6)}},d=function(h){if("0"<=h&&h<="9")return h.charCodeAt(0)-48;if("A"<=h&&h<="Z")return h.charCodeAt(0)-65+10;switch(h){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 :"+h}};return O},pe=function($){var k=M.stringToBytes($);return{getMode:function(){return 4},getLength:function(O){return k.length},write:function(O){for(var d=0;d<k.length;d+=1)O.put(k[d],8)}}},fe=function($){var k=M.stringToBytesFuncs.SJIS;if(!k)throw"sjis not supported.";(function(){var h=k("友");if(h.length!=2||(h[0]<<8|h[1])!=38726)throw"sjis not supported."})();var O=k($),d={getMode:function(){return 8},getLength:function(h){return~~(O.length/2)},write:function(h){for(var w=O,m=0;m+1<w.length;){var g=(255&w[m])<<8|255&w[m+1];if(33088<=g&&g<=40956)g-=33088;else{if(!(57408<=g&&g<=60351))throw"illegal char at "+(m+1)+"/"+g;g-=49472}g=192*(g>>>8&255)+(255&g),h.put(g,13),m+=2}if(m<w.length)throw"illegal char at "+(m+1)}};return d},te=function(){var $=[],k={writeByte:function(O){$.push(255&O)},writeShort:function(O){k.writeByte(O),k.writeByte(O>>>8)},writeBytes:function(O,d,h){d=d||0,h=h||O.length;for(var w=0;w<h;w+=1)k.writeByte(O[w+d])},writeString:function(O){for(var d=0;d<O.length;d+=1)k.writeByte(O.charCodeAt(d))},toByteArray:function(){return $},toString:function(){var O="";O+="[";for(var d=0;d<$.length;d+=1)d>0&&(O+=","),O+=$[d];return O+"]"}};return k},De=function($){var k=$,O=0,d=0,h=0,w={read:function(){for(;h<8;){if(O>=k.length){if(h==0)return-1;throw"unexpected end of file./"+h}var g=k.charAt(O);if(O+=1,g=="=")return h=0,-1;g.match(/^\s$/)||(d=d<<6|m(g.charCodeAt(0)),h+=6)}var A=d>>>h-8&255;return h-=8,A}},m=function(g){if(65<=g&&g<=90)return g-65;if(97<=g&&g<=122)return g-97+26;if(48<=g&&g<=57)return g-48+52;if(g==43)return 62;if(g==47)return 63;throw"c:"+g};return w},Oe=function($,k,O){for(var d=function(H,ae){var ue=H,we=ae,Q=new Array(H*ae),he={setPixel:function(B,z,W){Q[z*ue+B]=W},write:function(B){B.writeString("GIF87a"),B.writeShort(ue),B.writeShort(we),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(we),B.writeByte(0);var z=Ce(2);B.writeByte(2);for(var W=0;z.length-W>255;)B.writeByte(255),B.writeBytes(z,W,255),W+=255;B.writeByte(z.length-W),B.writeBytes(z,W,z.length-W),B.writeByte(0),B.writeString(";")}},Ce=function(B){for(var z=1<<B,W=1+(1<<B),Z=B+1,oe=_e(),Te=0;Te<z;Te+=1)oe.add(String.fromCharCode(Te));oe.add(String.fromCharCode(z)),oe.add(String.fromCharCode(W));var u,f,_,R=te(),q=(u=R,f=0,_=0,{write:function(Re,Se){if(Re>>>Se)throw"length over";for(;f+Se>=8;)u.writeByte(255&(Re<<f|_)),Se-=8-f,Re>>>=8-f,_=0,f=0;_|=Re<<f,f+=Se},flush:function(){f>0&&u.writeByte(_)}});q.write(z,Z);var X=0,Ae=String.fromCharCode(Q[X]);for(X+=1;X<Q.length;){var be=String.fromCharCode(Q[X]);X+=1,oe.contains(Ae+be)?Ae+=be:(q.write(oe.indexOf(Ae),Z),oe.size()<4095&&(oe.size()==1<<Z&&(Z+=1),oe.add(Ae+be)),Ae=be)}return q.write(oe.indexOf(Ae),Z),q.write(W,Z),q.flush(),R.toByteArray()},_e=function(){var B={},z=0,W={add:function(Z){if(W.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 W};return he}($,k),h=0;h<k;h+=1)for(var w=0;w<$;w+=1)d.setPixel(w,h,O(w,h));var m=te();d.write(m);for(var g=function(){var H=0,ae=0,ue=0,we="",Q={},he=function(_e){we+=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 Q.writeByte=function(_e){for(H=H<<8|255&_e,ae+=8,ue+=1;ae>=6;)he(H>>>ae-6),ae-=6},Q.flush=function(){if(ae>0&&(he(H<<6-ae),H=0,ae=0),ue%3!=0)for(var _e=3-ue%3,B=0;B<_e;B+=1)we+="="},Q.toString=function(){return we},Q}(),A=m.toByteArray(),F=0;F<A.length;F+=1)g.writeByte(A[F]);return g.flush(),"data:image/gif;base64,"+g};return M}();T.stringToBytesFuncs["UTF-8"]=function(M){return function(P){for(var E=[],I=0;I<P.length;I++){var U=P.charCodeAt(I);U<128?E.push(U):U<2048?E.push(192|U>>6,128|63&U):U<55296||U>=57344?E.push(224|U>>12,128|U>>6&63,128|63&U):(I++,U=65536+((1023&U)<<10|1023&P.charCodeAt(I)),E.push(240|U>>18,128|U>>12&63,128|U>>6&63,128|63&U))}return E}(M)},(C=typeof(x=function(){return T})=="function"?x.apply(c,[]):x)===void 0||(v.exports=C)}},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:()=>k});const v=O=>!!O&&typeof O=="object"&&!Array.isArray(O);function c(O,...d){if(!d.length)return O;const h=d.shift();return h!==void 0&&v(O)&&v(h)?(O=Object.assign({},O),Object.keys(h).forEach(w=>{const m=O[w],g=h[w];Array.isArray(m)&&Array.isArray(g)?O[w]=g:v(m)&&v(g)?O[w]=c(Object.assign({},m),g):O[w]=g}),c(O,...d)):O}function x(O,d){const h=document.createElement("a");h.download=d,h.href=O,document.body.appendChild(h),h.click(),document.body.removeChild(h)}const C={L:.07,M:.15,Q:.25,H:.3};class T{constructor({svg:d,type:h,window:w}){this._svg=d,this._type=h,this._window=w}draw(d,h,w,m){let g;switch(this._type){case"dots":g=this._drawDot;break;case"classy":g=this._drawClassy;break;case"classy-rounded":g=this._drawClassyRounded;break;case"rounded":g=this._drawRounded;break;case"extra-rounded":g=this._drawExtraRounded;break;default:g=this._drawSquare}g.call(this,{x:d,y:h,size:w,getNeighbor:m})}_rotateFigure({x:d,y:h,size:w,rotation:m=0,draw:g}){var A;const F=d+w/2,H=h+w/2;g(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*m/Math.PI},${F},${H})`)}_basicDot(d){const{size:h,x:w,y:m}=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+h/2)),this._element.setAttribute("cy",String(m+h/2)),this._element.setAttribute("r",String(h/2))}}))}_basicSquare(d){const{size:h,x:w,y:m}=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(m)),this._element.setAttribute("width",String(h)),this._element.setAttribute("height",String(h))}}))}_basicSideRounded(d){const{size:h,x:w,y:m}=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} ${m}v ${h}h `+h/2+`a ${h/2} ${h/2}, 0, 0, 0, 0 ${-h}`)}}))}_basicCornerRounded(d){const{size:h,x:w,y:m}=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} ${m}v ${h}h ${h}v `+-h/2+`a ${h/2} ${h/2}, 0, 0, 0, ${-h/2} ${-h/2}`)}}))}_basicCornerExtraRounded(d){const{size:h,x:w,y:m}=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} ${m}v ${h}h ${h}a ${h} ${h}, 0, 0, 0, ${-h} ${-h}`)}}))}_basicCornersRounded(d){const{size:h,x:w,y:m}=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} ${m}v `+h/2+`a ${h/2} ${h/2}, 0, 0, 0, ${h/2} ${h/2}h `+h/2+"v "+-h/2+`a ${h/2} ${h/2}, 0, 0, 0, ${-h/2} ${-h/2}`)}}))}_drawDot({x:d,y:h,size:w}){this._basicDot({x:d,y:h,size:w,rotation:0})}_drawSquare({x:d,y:h,size:w}){this._basicSquare({x:d,y:h,size:w,rotation:0})}_drawRounded({x:d,y:h,size:w,getNeighbor:m}){const g=m?+m(-1,0):0,A=m?+m(1,0):0,F=m?+m(0,-1):0,H=m?+m(0,1):0,ae=g+A+F+H;if(ae!==0)if(ae>2||g&&A||F&&H)this._basicSquare({x:d,y:h,size:w,rotation:0});else{if(ae===2){let ue=0;return g&&F?ue=Math.PI/2:F&&A?ue=Math.PI:A&&H&&(ue=-Math.PI/2),void this._basicCornerRounded({x:d,y:h,size:w,rotation:ue})}if(ae===1){let ue=0;return F?ue=Math.PI/2:A?ue=Math.PI:H&&(ue=-Math.PI/2),void this._basicSideRounded({x:d,y:h,size:w,rotation:ue})}}else this._basicDot({x:d,y:h,size:w,rotation:0})}_drawExtraRounded({x:d,y:h,size:w,getNeighbor:m}){const g=m?+m(-1,0):0,A=m?+m(1,0):0,F=m?+m(0,-1):0,H=m?+m(0,1):0,ae=g+A+F+H;if(ae!==0)if(ae>2||g&&A||F&&H)this._basicSquare({x:d,y:h,size:w,rotation:0});else{if(ae===2){let ue=0;return g&&F?ue=Math.PI/2:F&&A?ue=Math.PI:A&&H&&(ue=-Math.PI/2),void this._basicCornerExtraRounded({x:d,y:h,size:w,rotation:ue})}if(ae===1){let ue=0;return F?ue=Math.PI/2:A?ue=Math.PI:H&&(ue=-Math.PI/2),void this._basicSideRounded({x:d,y:h,size:w,rotation:ue})}}else this._basicDot({x:d,y:h,size:w,rotation:0})}_drawClassy({x:d,y:h,size:w,getNeighbor:m}){const g=m?+m(-1,0):0,A=m?+m(1,0):0,F=m?+m(0,-1):0,H=m?+m(0,1):0;g+A+F+H!==0?g||F?A||H?this._basicSquare({x:d,y:h,size:w,rotation:0}):this._basicCornerRounded({x:d,y:h,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:d,y:h,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:h,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:d,y:h,size:w,getNeighbor:m}){const g=m?+m(-1,0):0,A=m?+m(1,0):0,F=m?+m(0,-1):0,H=m?+m(0,1):0;g+A+F+H!==0?g||F?A||H?this._basicSquare({x:d,y:h,size:w,rotation:0}):this._basicCornerExtraRounded({x:d,y:h,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:d,y:h,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:h,size:w,rotation:Math.PI/2})}}const M={dot:"dot",square:"square",extraRounded:"extra-rounded"},P=Object.values(M);class E{constructor({svg:d,type:h,window:w}){this._svg=d,this._type=h,this._window=w}draw(d,h,w,m){let g;switch(this._type){case M.square:g=this._drawSquare;break;case M.extraRounded:g=this._drawExtraRounded;break;default:g=this._drawDot}g.call(this,{x:d,y:h,size:w,rotation:m})}_rotateFigure({x:d,y:h,size:w,rotation:m=0,draw:g}){var A;const F=d+w/2,H=h+w/2;g(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*m/Math.PI},${F},${H})`)}_basicDot(d){const{size:h,x:w,y:m}=d,g=h/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+h/2} ${m}a ${h/2} ${h/2} 0 1 0 0.1 0zm 0 ${g}a ${h/2-g} ${h/2-g} 0 1 1 -0.1 0Z`)}}))}_basicSquare(d){const{size:h,x:w,y:m}=d,g=h/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} ${m}v ${h}h ${h}v `+-h+`zM ${w+g} ${m+g}h `+(h-2*g)+"v "+(h-2*g)+"h "+(2*g-h)+"z")}}))}_basicExtraRounded(d){const{size:h,x:w,y:m}=d,g=h/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} ${m+2.5*g}v `+2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*g} ${2.5*g}h `+2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*g} ${2.5*-g}v `+-2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*-g} ${2.5*-g}h `+-2*g+`a ${2.5*g} ${2.5*g}, 0, 0, 0, ${2.5*-g} ${2.5*g}M ${w+2.5*g} ${m+g}h `+2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*g} ${1.5*g}v `+2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*-g} ${1.5*g}h `+-2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*-g} ${1.5*-g}v `+-2*g+`a ${1.5*g} ${1.5*g}, 0, 0, 1, ${1.5*g} ${1.5*-g}`)}}))}_drawDot({x:d,y:h,size:w,rotation:m}){this._basicDot({x:d,y:h,size:w,rotation:m})}_drawSquare({x:d,y:h,size:w,rotation:m}){this._basicSquare({x:d,y:h,size:w,rotation:m})}_drawExtraRounded({x:d,y:h,size:w,rotation:m}){this._basicExtraRounded({x:d,y:h,size:w,rotation:m})}}const I={dot:"dot",square:"square"},U=Object.values(I);class j{constructor({svg:d,type:h,window:w}){this._svg=d,this._type=h,this._window=w}draw(d,h,w,m){let g;g=this._type===I.square?this._drawSquare:this._drawDot,g.call(this,{x:d,y:h,size:w,rotation:m})}_rotateFigure({x:d,y:h,size:w,rotation:m=0,draw:g}){var A;const F=d+w/2,H=h+w/2;g(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*m/Math.PI},${F},${H})`)}_basicDot(d){const{size:h,x:w,y:m}=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+h/2)),this._element.setAttribute("cy",String(m+h/2)),this._element.setAttribute("r",String(h/2))}}))}_basicSquare(d){const{size:h,x:w,y:m}=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(m)),this._element.setAttribute("width",String(h)),this._element.setAttribute("height",String(h))}}))}_drawDot({x:d,y:h,size:w,rotation:m}){this._basicDot({x:d,y:h,size:w,rotation:m})}_drawSquare({x:d,y:h,size:w,rotation:m}){this._basicSquare({x:d,y:h,size:w,rotation:m})}}const ie="circle",re=[[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]],se=[[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,h){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=h,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 h=d.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,m=this._options.shape===ie?w/Math.sqrt(2):w,g=this._roundSize(m/h);let A={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=d,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:F,qrOptions:H}=this._options,ae=F.imageSize*C[H.errorCorrectionLevel],ue=Math.floor(ae*h*h);A=function({originalHeight:we,originalWidth:Q,maxHiddenDots:he,maxHiddenAxisDots:Ce,dotSize:_e}){const B={x:0,y:0},z={x:0,y:0};if(we<=0||Q<=0||he<=0||_e<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/Q;return B.x=Math.floor(Math.sqrt(he/W)),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*W-1)/2),z.y=Math.round(z.x*W),(B.y*B.x>he||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/W-1)/2),z.x=Math.round(z.y/W)),{height:z.y,width:z.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ue,maxHiddenAxisDots:h-14,dotSize:g})}this.drawBackground(),this.drawDots((F,H)=>{var ae,ue,we,Q,he,Ce;return!(this._options.imageOptions.hideBackgroundDots&&F>=(h-A.hideYDots)/2&&F<(h+A.hideYDots)/2&&H>=(h-A.hideXDots)/2&&H<(h+A.hideXDots)/2||!((ae=re[F])===null||ae===void 0)&&ae[H]||!((ue=re[F-h+7])===null||ue===void 0)&&ue[H]||!((we=re[F])===null||we===void 0)&&we[H-h+7]||!((Q=se[F])===null||Q===void 0)&&Q[H]||!((he=se[F-h+7])===null||he===void 0)&&he[H]||!((Ce=se[F])===null||Ce===void 0)&&Ce[H-h+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:A.width,height:A.height,count:h,dotSize:g})}drawBackground(){var d,h,w;const m=this._element,g=this._options;if(m){const A=(d=g.backgroundOptions)===null||d===void 0?void 0:d.gradient,F=(h=g.backgroundOptions)===null||h===void 0?void 0:h.color;let H=g.height,ae=g.width;if(A||F){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=g.backgroundOptions)===null||w===void 0)&&w.round&&(H=ae=Math.min(g.width,g.height),ue.setAttribute("rx",String(H/2*g.backgroundOptions.round))),ue.setAttribute("x",String(this._roundSize((g.width-ae)/2))),ue.setAttribute("y",String(this._roundSize((g.height-H)/2))),ue.setAttribute("width",String(ae)),ue.setAttribute("height",String(H)),this._backgroundClipPath.appendChild(ue),this._createColor({options:A,color:F,additionalRotation:0,x:0,y:0,height:g.height,width:g.width,name:`background-color-${this._instanceId}`})}}}drawDots(d){var h,w;if(!this._qr)throw"QR code is not defined";const m=this._options,g=this._qr.getModuleCount();if(g>m.width||g>m.height)throw"The canvas is too small.";const A=Math.min(m.width,m.height)-2*m.margin,F=m.shape===ie?A/Math.sqrt(2):A,H=this._roundSize(F/g),ae=this._roundSize((m.width-g*H)/2),ue=this._roundSize((m.height-g*H)/2),we=new T({svg:this._element,type:m.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:(h=m.dotsOptions)===null||h===void 0?void 0:h.gradient,color:m.dotsOptions.color,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`dot-color-${this._instanceId}`});for(let Q=0;Q<g;Q++)for(let he=0;he<g;he++)d&&!d(Q,he)||!((w=this._qr)===null||w===void 0)&&w.isDark(Q,he)&&(we.draw(ae+he*H,ue+Q*H,H,(Ce,_e)=>!(he+Ce<0||Q+_e<0||he+Ce>=g||Q+_e>=g)&&!(d&&!d(Q+_e,he+Ce))&&!!this._qr&&this._qr.isDark(Q+_e,he+Ce)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(m.shape===ie){const Q=this._roundSize((A/H-g)/2),he=g+2*Q,Ce=ae-Q*H,_e=ue-Q*H,B=[],z=this._roundSize(he/2);for(let W=0;W<he;W++){B[W]=[];for(let Z=0;Z<he;Z++)W>=Q-1&&W<=he-Q&&Z>=Q-1&&Z<=he-Q||Math.sqrt((W-z)*(W-z)+(Z-z)*(Z-z))>z?B[W][Z]=0:B[W][Z]=this._qr.isDark(Z-2*Q<0?Z:Z>=g?Z-2*Q:Z-Q,W-2*Q<0?W:W>=g?W-2*Q:W-Q)?1:0}for(let W=0;W<he;W++)for(let Z=0;Z<he;Z++)B[W][Z]&&(we.draw(Ce+Z*H,_e+W*H,H,(oe,Te)=>{var u;return!!(!((u=B[W+Te])===null||u===void 0)&&u[Z+oe])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const d=this._element,h=this._options;if(!d)throw"Element code is not defined";const w=this._qr.getModuleCount(),m=Math.min(h.width,h.height)-2*h.margin,g=h.shape===ie?m/Math.sqrt(2):m,A=this._roundSize(g/w),F=7*A,H=3*A,ae=this._roundSize((h.width-w*A)/2),ue=this._roundSize((h.height-w*A)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,Q,he])=>{var Ce,_e,B,z,W,Z,oe,Te,u,f,_,R,q,X;const Ae=ae+we*A*(w-7),be=ue+Q*A*(w-7);let Re=this._dotsClipPath,Se=this._dotsClipPath;if((!((Ce=h.cornersSquareOptions)===null||Ce===void 0)&&Ce.gradient||!((_e=h.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-${we}-${Q}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Se=Re,this._createColor({options:(B=h.cornersSquareOptions)===null||B===void 0?void 0:B.gradient,color:(z=h.cornersSquareOptions)===null||z===void 0?void 0:z.color,additionalRotation:he,x:Ae,y:be,height:F,width:F,name:`corners-square-color-${we}-${Q}-${this._instanceId}`})),((W=h.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&P.includes(h.cornersSquareOptions.type)){const ke=new E({svg:this._element,type:h.cornersSquareOptions.type,window:this._window});ke.draw(Ae,be,F,he),ke._element&&Re&&Re.appendChild(ke._element)}else{const ke=new T({svg:this._element,type:((Z=h.cornersSquareOptions)===null||Z===void 0?void 0:Z.type)||h.dotsOptions.type,window:this._window});for(let Ne=0;Ne<re.length;Ne++)for(let Ie=0;Ie<re[Ne].length;Ie++)!((oe=re[Ne])===null||oe===void 0)&&oe[Ie]&&(ke.draw(Ae+Ie*A,be+Ne*A,A,(Xe,nt)=>{var Ge;return!!(!((Ge=re[Ne+nt])===null||Ge===void 0)&&Ge[Ie+Xe])}),ke._element&&Re&&Re.appendChild(ke._element))}if((!((Te=h.cornersDotOptions)===null||Te===void 0)&&Te.gradient||!((u=h.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-${we}-${Q}-${this._instanceId}`),this._defs.appendChild(Se),this._cornersDotClipPath=Se,this._createColor({options:(f=h.cornersDotOptions)===null||f===void 0?void 0:f.gradient,color:(_=h.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:he,x:Ae+2*A,y:be+2*A,height:H,width:H,name:`corners-dot-color-${we}-${Q}-${this._instanceId}`})),((R=h.cornersDotOptions)===null||R===void 0?void 0:R.type)&&U.includes(h.cornersDotOptions.type)){const ke=new j({svg:this._element,type:h.cornersDotOptions.type,window:this._window});ke.draw(Ae+2*A,be+2*A,H,he),ke._element&&Se&&Se.appendChild(ke._element)}else{const ke=new T({svg:this._element,type:((q=h.cornersDotOptions)===null||q===void 0?void 0:q.type)||h.dotsOptions.type,window:this._window});for(let Ne=0;Ne<se.length;Ne++)for(let Ie=0;Ie<se[Ne].length;Ie++)!((X=se[Ne])===null||X===void 0)&&X[Ie]&&(ke.draw(Ae+Ie*A,be+Ne*A,A,(Xe,nt)=>{var Ge;return!!(!((Ge=se[Ne+nt])===null||Ge===void 0)&&Ge[Ie+Xe])}),ke._element&&Se&&Se.appendChild(ke._element))}})}loadImage(){return new Promise((d,h)=>{var w;const m=this._options;if(!m.image)return h("Image is not defined");if(!((w=m.nodeCanvas)===null||w===void 0)&&w.loadImage)m.nodeCanvas.loadImage(m.image).then(g=>{var A,F;if(this._image=g,this._options.imageOptions.saveAsBlob){const H=(A=m.nodeCanvas)===null||A===void 0?void 0:A.createCanvas(this._image.width,this._image.height);(F=H==null?void 0:H.getContext("2d"))===null||F===void 0||F.drawImage(g,0,0),this._imageUri=H==null?void 0:H.toDataURL()}d()}).catch(h);else{const g=new this._window.Image;typeof m.imageOptions.crossOrigin=="string"&&(g.crossOrigin=m.imageOptions.crossOrigin),this._image=g,g.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(A,F){return new Promise(H=>{const ae=new F.XMLHttpRequest;ae.onload=function(){const ue=new F.FileReader;ue.onloadend=function(){H(ue.result)},ue.readAsDataURL(ae.response)},ae.open("GET",A),ae.responseType="blob",ae.send()})}(m.image||"",this._window)),d()},g.src=m.image}})}async drawImage({width:d,height:h,count:w,dotSize:m}){const g=this._options,A=this._roundSize((g.width-w*m)/2),F=this._roundSize((g.height-w*m)/2),H=A+this._roundSize(g.imageOptions.margin+(w*m-d)/2),ae=F+this._roundSize(g.imageOptions.margin+(w*m-h)/2),ue=d-2*g.imageOptions.margin,we=h-2*g.imageOptions.margin,Q=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");Q.setAttribute("href",this._imageUri||""),Q.setAttribute("xlink:href",this._imageUri||""),Q.setAttribute("x",String(H)),Q.setAttribute("y",String(ae)),Q.setAttribute("width",`${ue}px`),Q.setAttribute("height",`${we}px`),this._element.appendChild(Q)}_createColor({options:d,color:h,additionalRotation:w,x:m,y:g,height:A,width:F,name:H}){const ae=F>A?F:A,ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ue.setAttribute("x",String(m)),ue.setAttribute("y",String(g)),ue.setAttribute("height",String(A)),ue.setAttribute("width",String(F)),ue.setAttribute("clip-path",`url('#clip-path-${H}')`),d){let we;if(d.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",H),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(m+F/2)),we.setAttribute("fy",String(g+A/2)),we.setAttribute("cx",String(m+F/2)),we.setAttribute("cy",String(g+A/2)),we.setAttribute("r",String(ae/2));else{const Q=((d.rotation||0)+w)%(2*Math.PI),he=(Q+2*Math.PI)%(2*Math.PI);let Ce=m+F/2,_e=g+A/2,B=m+F/2,z=g+A/2;he>=0&&he<=.25*Math.PI||he>1.75*Math.PI&&he<=2*Math.PI?(Ce-=F/2,_e-=A/2*Math.tan(Q),B+=F/2,z+=A/2*Math.tan(Q)):he>.25*Math.PI&&he<=.75*Math.PI?(_e-=A/2,Ce-=F/2/Math.tan(Q),z+=A/2,B+=F/2/Math.tan(Q)):he>.75*Math.PI&&he<=1.25*Math.PI?(Ce+=F/2,_e+=A/2*Math.tan(Q),B-=F/2,z-=A/2*Math.tan(Q)):he>1.25*Math.PI&&he<=1.75*Math.PI&&(_e+=A/2,Ce+=F/2/Math.tan(Q),z-=A/2,B-=F/2/Math.tan(Q)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",H),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(Ce))),we.setAttribute("y1",String(Math.round(_e))),we.setAttribute("x2",String(Math.round(B))),we.setAttribute("y2",String(Math.round(z)))}d.colorStops.forEach(({offset:Q,color:he})=>{const Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Ce.setAttribute("offset",100*Q+"%"),Ce.setAttribute("stop-color",he),we.appendChild(Ce)}),ue.setAttribute("fill",`url('#${H}')`),this._defs.appendChild(we)}else h&&ue.setAttribute("fill",h);this._element.appendChild(ue)}}ce.instanceCount=0;const K=ce,de="canvas",ee={};for(let O=0;O<=40;O++)ee[O]=O;const J={type:de,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 pe(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(h=>Object.assign(Object.assign({},h),{offset:Number(h.offset)})),d}function fe(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=pe(d.dotsOptions.gradient)),d.cornersSquareOptions&&(d.cornersSquareOptions=Object.assign({},d.cornersSquareOptions),d.cornersSquareOptions.gradient&&(d.cornersSquareOptions.gradient=pe(d.cornersSquareOptions.gradient))),d.cornersDotOptions&&(d.cornersDotOptions=Object.assign({},d.cornersDotOptions),d.cornersDotOptions.gradient&&(d.cornersDotOptions.gradient=pe(d.cornersDotOptions.gradient))),d.backgroundOptions&&(d.backgroundOptions=Object.assign({},d.backgroundOptions),d.backgroundOptions.gradient&&(d.backgroundOptions.gradient=pe(d.backgroundOptions.gradient))),d}var te=l(873),De=l.n(te);function Oe(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 ${constructor(d){d!=null&&d.jsdom?this._window=new d.jsdom("",{resources:"usable"}).window:this._window=window,this._options=d?fe(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 h;this._svg&&((h=this._extension)===null||h===void 0||h.call(this,d.getElement(),this._options))})}_setupCanvas(){var d,h;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=(h=this._svgDrawingPromise)===null||h===void 0?void 0:h.then(()=>{var w;if(!this._svg)return;const m=this._svg,g=new this._window.XMLSerializer().serializeToString(m),A=btoa(g),F=`data:${Oe("svg")};base64,${A}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(F).then(H=>{var ae,ue;H.width=this._options.width,H.height=this._options.height,(ue=(ae=this._nodeCanvas)===null||ae===void 0?void 0:ae.getContext("2d"))===null||ue===void 0||ue.drawImage(H,0,0)});{const H=new this._window.Image;return new Promise(ae=>{H.onload=()=>{var ue,we;(we=(ue=this._domCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||we===void 0||we.drawImage(H,0,0),ae()},H.src=F})}}))}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){$._clearContainer(this._container),this._options=d?fe(c(this._options,d)):this._options,this._options.data&&(this._qr=De()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(h){switch(!0){case/^[0-9]*$/.test(h):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(h):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===de?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===de?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 h=await this._getElement(d),w=Oe(d);if(!h)return null;if(d.toLowerCase()==="svg"){const m=`<?xml version="1.0" standalone="no"?>\r
116
- ${new this._window.XMLSerializer().serializeToString(h)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(m):new Blob([m],{type:w})}return new Promise(m=>{const g=h;if("toBuffer"in g)if(w==="image/png")m(g.toBuffer(w));else if(w==="image/jpeg")m(g.toBuffer(w));else{if(w!=="application/pdf")throw Error("Unsupported extension");m(g.toBuffer(w))}else"toBlob"in g&&g.toBlob(m,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 h="png",w="qr";typeof d=="string"?(h=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&&(h=d.extension));const m=await this._getElement(h);if(m)if(h.toLowerCase()==="svg"){let g=new XMLSerializer().serializeToString(m);g=`<?xml version="1.0" standalone="no"?>\r
117
- `+g,x(`data:${Oe(h)};charset=utf-8,${encodeURIComponent(g)}`,`${w}.svg`)}else x(m.toDataURL(Oe(h)),`${w}.${h}`)}}const k=$})(),p.default})())}(xa)),xa.exports}Pg();const cc=me.createContext(void 0);function Ng(i){const n=Dn.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 ur(){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 jr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Cg()??""}`,...$g()}}async function fc(i){return fetch(i,{method:"GET",headers:await jr()}).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 jr()}).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 jr()}).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 jr(),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 jr(),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 jr(),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=Dn.c(13),{baseUrl:l}=ur();let p;if(s[0]!==r||s[1]!==n){let C;s[3]!==r?(C=r==null?void 0:r.toString(),s[3]=r,s[4]=C):C=s[4],p=[...n.map(jg),String(C)],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=Dn.c(8),{baseUrl:s}=ur();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=Dn.c(10),{baseUrl:s,queryClient:l}=ur();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],ra(c)}function Ug(i){return i.toString()}function Fg(i){return i.toString()}function Sa(i,n){const r=Dn.c(10),{baseUrl:s,queryClient:l}=ur();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],ra(c)}function Wg(i){return i.toString()}function zg(i){return i.toString()}function _c(i,n){const r=Dn.c(10),{baseUrl:s,queryClient:l}=ur();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],ra(c)}function qg(i){return i.toString()}function Hg(i){return i.toString()}var Bo={exports:{}},Gg=Bo.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",C="day",T="week",M="month",P="quarter",E="year",I="date",U="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|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,re={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($){var k=["th","st","nd","rd"],O=$%100;return"["+$+(k[(O-20)%10]||k[O]||k[0])+"]"}},se=function($,k,O){var d=String($);return!d||d.length>=k?$:""+Array(k+1-d.length).join(O)+$},ce={s:se,z:function($){var k=-$.utcOffset(),O=Math.abs(k),d=Math.floor(O/60),h=O%60;return(k<=0?"+":"-")+se(d,2,"0")+":"+se(h,2,"0")},m:function $(k,O){if(k.date()<O.date())return-$(O,k);var d=12*(O.year()-k.year())+(O.month()-k.month()),h=k.clone().add(d,M),w=O-h<0,m=k.clone().add(d+(w?-1:1),M);return+(-(d+(O-h)/(w?h-m:m-h))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M,y:E,w:T,d:C,D:I,h:x,m:c,s:v,ms:p,Q:P}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},K="en",de={};de[K]=re;var ee="$isDayjsObject",J=function($){return $ instanceof De||!(!$||!$[ee])},pe=function $(k,O,d){var h;if(!k)return K;if(typeof k=="string"){var w=k.toLowerCase();de[w]&&(h=w),O&&(de[w]=O,h=w);var m=k.split("-");if(!h&&m.length>1)return $(m[0])}else{var g=k.name;de[g]=k,h=g}return!d&&h&&(K=h),h||!d&&K},fe=function($,k){if(J($))return $.clone();var O=typeof k=="object"?k:{};return O.date=$,O.args=arguments,new De(O)},te=ce;te.l=pe,te.i=J,te.w=function($,k){return fe($,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var De=function(){function $(O){this.$L=pe(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[ee]=!0}var k=$.prototype;return k.parse=function(O){this.$d=function(d){var h=d.date,w=d.utc;if(h===null)return new Date(NaN);if(te.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var m=h.match(j);if(m){var g=m[2]-1||0,A=(m[7]||"0").substring(0,3);return w?new Date(Date.UTC(m[1],g,m[3]||1,m[4]||0,m[5]||0,m[6]||0,A)):new Date(m[1],g,m[3]||1,m[4]||0,m[5]||0,m[6]||0,A)}}return new Date(h)}(O),this.init()},k.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()},k.$utils=function(){return te},k.isValid=function(){return this.$d.toString()!==U},k.isSame=function(O,d){var h=fe(O);return this.startOf(d)<=h&&h<=this.endOf(d)},k.isAfter=function(O,d){return fe(O)<this.startOf(d)},k.isBefore=function(O,d){return this.endOf(d)<fe(O)},k.$g=function(O,d,h){return te.u(O)?this[d]:this.set(h,O)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(O,d){var h=this,w=!!te.u(d)||d,m=te.p(O),g=function(he,Ce){var _e=te.w(h.$u?Date.UTC(h.$y,Ce,he):new Date(h.$y,Ce,he),h);return w?_e:_e.endOf(C)},A=function(he,Ce){return te.w(h.toDate()[he].apply(h.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(Ce)),h)},F=this.$W,H=this.$M,ae=this.$D,ue="set"+(this.$u?"UTC":"");switch(m){case E:return w?g(1,0):g(31,11);case M:return w?g(1,H):g(0,H+1);case T:var we=this.$locale().weekStart||0,Q=(F<we?F+7:F)-we;return g(w?ae-Q:ae+(6-Q),H);case C:case I:return A(ue+"Hours",0);case x:return A(ue+"Minutes",1);case c:return A(ue+"Seconds",2);case v:return A(ue+"Milliseconds",3);default:return this.clone()}},k.endOf=function(O){return this.startOf(O,!1)},k.$set=function(O,d){var h,w=te.p(O),m="set"+(this.$u?"UTC":""),g=(h={},h[C]=m+"Date",h[I]=m+"Date",h[M]=m+"Month",h[E]=m+"FullYear",h[x]=m+"Hours",h[c]=m+"Minutes",h[v]=m+"Seconds",h[p]=m+"Milliseconds",h)[w],A=w===C?this.$D+(d-this.$W):d;if(w===M||w===E){var F=this.clone().set(I,1);F.$d[g](A),F.init(),this.$d=F.set(I,Math.min(this.$D,F.daysInMonth())).$d}else g&&this.$d[g](A);return this.init(),this},k.set=function(O,d){return this.clone().$set(O,d)},k.get=function(O){return this[te.p(O)]()},k.add=function(O,d){var h,w=this;O=Number(O);var m=te.p(d),g=function(H){var ae=fe(w);return te.w(ae.date(ae.date()+Math.round(H*O)),w)};if(m===M)return this.set(M,this.$M+O);if(m===E)return this.set(E,this.$y+O);if(m===C)return g(1);if(m===T)return g(7);var A=(h={},h[c]=s,h[x]=l,h[v]=r,h)[m]||1,F=this.$d.getTime()+O*A;return te.w(F,this)},k.subtract=function(O,d){return this.add(-1*O,d)},k.format=function(O){var d=this,h=this.$locale();if(!this.isValid())return h.invalidDate||U;var w=O||"YYYY-MM-DDTHH:mm:ssZ",m=te.z(this),g=this.$H,A=this.$m,F=this.$M,H=h.weekdays,ae=h.months,ue=h.meridiem,we=function(Ce,_e,B,z){return Ce&&(Ce[_e]||Ce(d,w))||B[_e].slice(0,z)},Q=function(Ce){return te.s(g%12||12,Ce,"0")},he=ue||function(Ce,_e,B){var z=Ce<12?"AM":"PM";return B?z.toLowerCase():z};return w.replace(ie,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 F+1;case"MM":return te.s(F+1,2,"0");case"MMM":return we(h.monthsShort,F,ae,3);case"MMMM":return we(ae,F);case"D":return d.$D;case"DD":return te.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return we(h.weekdaysMin,d.$W,H,2);case"ddd":return we(h.weekdaysShort,d.$W,H,3);case"dddd":return H[d.$W];case"H":return String(g);case"HH":return te.s(g,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return he(g,A,!0);case"A":return he(g,A,!1);case"m":return String(A);case"mm":return te.s(A,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 m}return null}(Ce)||m.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(O,d,h){var w,m=this,g=te.p(d),A=fe(O),F=(A.utcOffset()-this.utcOffset())*s,H=this-A,ae=function(){return te.m(m,A)};switch(g){case E:w=ae()/12;break;case M:w=ae();break;case P:w=ae()/3;break;case T:w=(H-F)/6048e5;break;case C:w=(H-F)/864e5;break;case x:w=H/l;break;case c:w=H/s;break;case v:w=H/r;break;default:w=H}return h?w:te.a(w)},k.daysInMonth=function(){return this.endOf(M).$D},k.$locale=function(){return de[this.$L]},k.locale=function(O,d){if(!O)return this.$L;var h=this.clone(),w=pe(O,d,!0);return w&&(h.$L=w),h},k.clone=function(){return te.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},$}(),Oe=De.prototype;return fe.prototype=Oe,[["$ms",p],["$s",v],["$m",c],["$H",x],["$W",C],["$M",M],["$y",E],["$D",I]].forEach(function($){Oe[$[1]]=function(k){return this.$g(k,$[0],$[1])}}),fe.extend=function($,k){return $.$i||($(k,De,fe),$.$i=!0),fe},fe.locale=pe,fe.isDayjs=J,fe.unix=function($){return fe(1e3*$)},fe.en=de[K],fe.Ls=de,fe.p={},fe})}(Bo)),Bo.exports}var Zg=Vg();const Me=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,C,T;const v=Kg({direction:n,size:p,rowIndex:s,cellIndex:l,levelIndex:r});if(!v)return;const c=(T=(C=(x=i.current)==null?void 0:x[v.levelIndex])==null?void 0:C[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 Ca({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 ln(i){return i==null||i===""?i:Me(i).format("YYYY-MM-DD")}function xc(i){return i==null||i===""?i:Me(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 lr(){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:ln;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 yt(){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=N.createVarsResolver((i,{size:n})=>({day:{"--day-size":N.getSize(n,"day-size")}})),Aa=N.factory((i,n)=>{const r=N.useProps("Day",n1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,date:C,disabled:T,__staticSelector:M,weekend:P,outside:E,selected:I,renderDay:U,inRange:j,firstInRange:ie,lastInRange:re,hidden:se,static:ce,highlightToday:K,...de}=r,ee=N.useStyles({name:M||"Day",classes:Ac,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:r1,rootSelector:"day"});return D.jsx(N.UnstyledButton,{...ee("day",{style:se?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:T,"data-today":Me(C).isSame(new Date,"day")||void 0,"data-hidden":se||void 0,"data-highlight-today":K||void 0,"data-disabled":T||void 0,"data-weekend":!T&&!E&&P||void 0,"data-outside":!T&&E||void 0,"data-selected":!T&&I||void 0,"data-in-range":j&&!T||void 0,"data-first-in-range":ie&&!T||void 0,"data-last-in-range":re&&!T||void 0,"data-static":ce||void 0,unstyled:c,...de,children:(U==null?void 0:U(C))||Me(C).date()})});Aa.classes=Ac,Aa.displayName="@mantine/dates/Day";function i1({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Me().day(r),l=[];for(let p=0;p<7;p+=1)typeof n=="string"?l.push(Me(s).add(p,"days").locale(i).format(n)):l.push(n(Me(s).add(p,"days").format("YYYY-MM-DD")));return l}var Dc={weekday:"m_18a3eca"};const o1={},s1=N.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":N.getFontSize(n),"--wr-spacing":N.getSpacing(n)}})),Da=N.factory((i,n)=>{const r=N.useProps("WeekdaysRow",o1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,locale:C,firstDayOfWeek:T,weekdayFormat:M,cellComponent:P="th",__staticSelector:E,withWeekNumbers:I,...U}=r,j=N.useStyles({name:E||"WeekdaysRow",classes:Dc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:s1,rootSelector:"weekdaysRow"}),ie=lr(),re=i1({locale:ie.getLocale(C),format:M,firstDayOfWeek:ie.getFirstDayOfWeek(T)}).map((se,ce)=>D.jsx(P,{...j("weekday"),children:se},ce));return D.jsxs(N.Box,{component:"tr",ref:n,...j("weekdaysRow"),...U,children:[I&&D.jsx(P,{...j("weekday"),children:"#"}),re]})});Da.classes=Dc,Da.displayName="@mantine/dates/WeekdaysRow";function a1(i,n=1){let r=Me(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=Me(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=Me(i).subtract(Me(i).date()-1,"day"),l=Me(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 C=Me(u1(p,n));for(;Me(C).isBefore(c,"day");){const T=[];for(let M=0;M<7;M+=1)T.push(C.format("YYYY-MM-DD")),C=C.add(1,"day");x.push(T)}if(r&&x.length<6){const T=x[x.length-1],M=T[T.length-1];let P=Me(M).add(1,"day");for(;x.length<6;){const E=[];for(let I=0;I<7;I+=1)E.push(P.format("YYYY-MM-DD")),P=P.add(1,"day");x.push(E)}}return x}function Oa(i,n){return Me(i).format("YYYY-MM")===Me(n).format("YYYY-MM")}function Oc(i,n){return n?Me(i).isAfter(Me(n).subtract(1,"day"),"day"):!0}function Tc(i,n){return n?Me(i).isBefore(Me(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 M;return Tc(T,r)&&Oc(T,n)&&!(l!=null&&l(T))&&!((M=s==null?void 0:s(T))!=null&&M.disabled)&&(!p||Oa(T,v))}),x=c.find(T=>{var M;return(M=s==null?void 0:s(T))==null?void 0:M.selected});if(x)return x;const C=c.find(T=>Me().isSame(T,"date"));return C||c[0]}var jo={exports:{}},f1=jo.exports,Ec;function h1(){return Ec||(Ec=1,function(i,n){(function(r,s){i.exports=s()})(f1,function(){var r="day";return function(s,l,p){var v=function(C){return C.add(4-C.isoWeekday(),r)},c=l.prototype;c.isoWeekYear=function(){return v(this).year()},c.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),r);var T,M,P,E,I=v(this),U=(T=this.isoWeekYear(),M=this.$u,P=(M?p.utc:p)().year(T).startOf("year"),E=4-P.isoWeekday(),P.isoWeekday()>4&&(E+=7),P.add(E,r));return I.diff(U,"week")+1},c.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var x=c.startOf;c.startOf=function(C,T){var M=this.$utils(),P=!!M.u(T)||T;return M.p(C)==="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)(C,T)}}})}(jo)),jo.exports}var d1=h1();const p1=il(d1);Me.extend(p1);function g1(i){const n=i.find(r=>Me(r).day()===1);return Me(n).isoWeek()}var Mc={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const m1={withCellSpacing:!0},v1=N.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":N.getFontSize(n),"--wn-size":N.getSize(n,"wn-size")}})),Yo=N.factory((i,n)=>{const r=N.useProps("Month",m1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:C,locale:T,firstDayOfWeek:M,weekdayFormat:P,month:E,weekendDays:I,getDayProps:U,excludeDate:j,minDate:ie,maxDate:re,renderDay:se,hideOutsideDates:ce,hideWeekdays:K,getDayAriaLabel:de,static:ee,__getDayRef:J,__onDayKeyDown:pe,__onDayClick:fe,__onDayMouseEnter:te,__preventFocus:De,__stopPropagation:Oe,withCellSpacing:$,size:k,highlightToday:O,withWeekNumbers:d,...h}=r,w=N.useStyles({name:C||"Month",classes:Mc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:v1,rootSelector:"month"}),m=lr(),g=l1({month:E,firstDayOfWeek:m.getFirstDayOfWeek(M),consistentWeeks:m.consistentWeeks}),A=c1({dates:g,minDate:ln(ie),maxDate:ln(re),getDayProps:U,excludeDate:j,hideOutsideDates:ce,month:E}),{resolvedClassNames:F,resolvedStyles:H}=N.useResolvedStylesApi({classNames:s,styles:v,props:r}),ae=g.map((ue,we)=>{const Q=ue.map((he,Ce)=>{const _e=!Oa(he,E),B=(de==null?void 0:de(he))||Me(he).locale(T||m.locale).format("D MMMM YYYY"),z=U==null?void 0:U(he),W=Me(he).isSame(A,"date");return D.jsx("td",{...w("monthCell"),"data-with-spacing":$||void 0,children:D.jsx(Aa,{__staticSelector:C||"Month",classNames:F,styles:H,unstyled:c,"data-mantine-stop-propagation":Oe||void 0,highlightToday:O,renderDay:se,date:he,size:k,weekend:m.getWeekendDays(I).includes(Me(he).get("day")),outside:_e,hidden:ce?_e:!1,"aria-label":B,static:ee,disabled:(j==null?void 0:j(he))||!Tc(he,ln(re))||!Oc(he,ln(ie)),ref:Z=>J==null?void 0:J(we,Ce,Z),...z,onKeyDown:Z=>{var oe;(oe=z==null?void 0:z.onKeyDown)==null||oe.call(z,Z),pe==null||pe(Z,{rowIndex:we,cellIndex:Ce,date:he})},onMouseEnter:Z=>{var oe;(oe=z==null?void 0:z.onMouseEnter)==null||oe.call(z,Z),te==null||te(Z,he)},onClick:Z=>{var oe;(oe=z==null?void 0:z.onClick)==null||oe.call(z,Z),fe==null||fe(Z,he)},onMouseDown:Z=>{var oe;(oe=z==null?void 0:z.onMouseDown)==null||oe.call(z,Z),De&&Z.preventDefault()},tabIndex:De||!W?-1:0})},he.toString())});return D.jsxs("tr",{...w("monthRow"),children:[d&&D.jsx("td",{...w("weekNumber"),children:g1(ue)}),Q]},we)});return D.jsxs(N.Box,{component:"table",...w("month"),size:k,ref:n,...h,children:[!K&&D.jsx("thead",{...w("monthThead"),children:D.jsx(Da,{__staticSelector:C||"Month",locale:T,firstDayOfWeek:M,weekdayFormat:P,size:k,classNames:F,styles:H,unstyled:c,withWeekNumbers:d})}),D.jsx("tbody",{...w("monthTbody"),children:ae})]})});Yo.classes=Mc,Yo.displayName="@mantine/dates/Month";var Rc={pickerControl:"m_dc6a3c71"};const y1={},_1=N.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":N.getFontSize(n),"--dpc-size":N.getSize(n,"dpc-size")}})),Uo=N.factory((i,n)=>{const r=N.useProps("PickerControl",y1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,firstInRange:C,lastInRange:T,inRange:M,__staticSelector:P,selected:E,disabled:I,...U}=r,j=N.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(N.UnstyledButton,{...j("pickerControl"),ref:n,unstyled:c,"data-picker-control":!0,"data-selected":E&&!I||void 0,"data-disabled":I||void 0,"data-in-range":M&&!I&&!E||void 0,"data-first-in-range":C&&!I||void 0,"data-last-in-range":T&&!I||void 0,disabled:I,...U})});Uo.classes=Rc,Uo.displayName="@mantine/dates/PickerControl";function Lc({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Me(i).isBefore(n,"year")||r&&Me(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=>Me().isSame(c,"year"));return v||l[0]}function kc(i){const n=Me(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(Me(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},Fo=N.factory((i,n)=>{const r=N.useProps("YearsList",b1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,decade:C,yearsListFormat:T,locale:M,minDate:P,maxDate:E,getYearControlProps:I,__staticSelector:U,__getControlRef:j,__onControlKeyDown:ie,__onControlClick:re,__onControlMouseEnter:se,__preventFocus:ce,__stopPropagation:K,withCellSpacing:de,size:ee,...J}=r,pe=N.useStyles({name:U||"YearsList",classes:Ic,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"yearsList"}),fe=lr(),te=kc(C),De=w1({years:te,minDate:P,maxDate:E,getYearControlProps:I}),Oe=te.map(($,k)=>{const O=$.map((d,h)=>{const w=I==null?void 0:I(d),m=Me(d).isSame(De,"year");return D.jsx("td",{...pe("yearsListCell"),"data-with-spacing":de||void 0,children:D.jsx(Uo,{...pe("yearsListControl"),size:ee,unstyled:c,"data-mantine-stop-propagation":K||void 0,disabled:Lc({year:d,minDate:P,maxDate:E}),ref:g=>j==null?void 0:j(k,h,g),...w,onKeyDown:g=>{var A;(A=w==null?void 0:w.onKeyDown)==null||A.call(w,g),ie==null||ie(g,{rowIndex:k,cellIndex:h,date:d})},onClick:g=>{var A;(A=w==null?void 0:w.onClick)==null||A.call(w,g),re==null||re(g,d)},onMouseEnter:g=>{var A;(A=w==null?void 0:w.onMouseEnter)==null||A.call(w,g),se==null||se(g,d)},onMouseDown:g=>{var A;(A=w==null?void 0:w.onMouseDown)==null||A.call(w,g),ce&&g.preventDefault()},tabIndex:ce||!m?-1:0,children:Me(d).locale(fe.getLocale(M)).format(T)})},h)});return D.jsx("tr",{...pe("yearsListRow"),children:O},k)});return D.jsx(N.Box,{component:"table",ref:n,size:ee,...pe("yearsList"),...J,children:D.jsx("tbody",{children:Oe})})});Fo.classes=Ic,Fo.displayName="@mantine/dates/YearsList";function Pc({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Me(i).isBefore(n,"month")||r&&Me(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=>Me().isSame(c,"month"));return v||l[0]}function S1(i){const n=Me(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(Me(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},Wo=N.factory((i,n)=>{const r=N.useProps("MonthsList",C1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:C,year:T,monthsListFormat:M,locale:P,minDate:E,maxDate:I,getMonthControlProps:U,__getControlRef:j,__onControlKeyDown:ie,__onControlClick:re,__onControlMouseEnter:se,__preventFocus:ce,__stopPropagation:K,withCellSpacing:de,size:ee,...J}=r,pe=N.useStyles({name:C||"MonthsList",classes:Nc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"monthsList"}),fe=lr(),te=S1(T),De=x1({months:te,minDate:ln(E),maxDate:ln(I),getMonthControlProps:U}),Oe=te.map(($,k)=>{const O=$.map((d,h)=>{const w=U==null?void 0:U(d),m=Me(d).isSame(De,"month");return D.jsx("td",{...pe("monthsListCell"),"data-with-spacing":de||void 0,children:D.jsx(Uo,{...pe("monthsListControl"),size:ee,unstyled:c,__staticSelector:C||"MonthsList","data-mantine-stop-propagation":K||void 0,disabled:Pc({month:d,minDate:ln(E),maxDate:ln(I)}),ref:g=>j==null?void 0:j(k,h,g),...w,onKeyDown:g=>{var A;(A=w==null?void 0:w.onKeyDown)==null||A.call(w,g),ie==null||ie(g,{rowIndex:k,cellIndex:h,date:d})},onClick:g=>{var A;(A=w==null?void 0:w.onClick)==null||A.call(w,g),re==null||re(g,d)},onMouseEnter:g=>{var A;(A=w==null?void 0:w.onMouseEnter)==null||A.call(w,g),se==null||se(g,d)},onMouseDown:g=>{var A;(A=w==null?void 0:w.onMouseDown)==null||A.call(w,g),ce&&g.preventDefault()},tabIndex:ce||!m?-1:0,children:Me(d).locale(fe.getLocale(P)).format(M)})},h)});return D.jsx("tr",{...pe("monthsListRow"),children:O},k)});return D.jsx(N.Box,{component:"table",ref:n,size:ee,...pe("monthsList"),...J,children:D.jsx("tbody",{children:Oe})})});Wo.classes=Nc,Wo.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=N.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":N.getSize(n,"dch-control-size"),"--dch-fz":N.getFontSize(n)}})),cr=N.factory((i,n)=>{const r=N.useProps("CalendarHeader",A1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,nextIcon:C,previousIcon:T,nextLabel:M,previousLabel:P,onNext:E,onPrevious:I,onLevelClick:U,label:j,nextDisabled:ie,previousDisabled:re,hasNextLevel:se,levelControlAriaLabel:ce,withNext:K,withPrevious:de,__staticSelector:ee,__preventFocus:J,__stopPropagation:pe,...fe}=r,te=N.useStyles({name:ee||"CalendarHeader",classes:$c,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:D1,rootSelector:"calendarHeader"}),De=J?Oe=>Oe.preventDefault():void 0;return D.jsxs(N.Box,{...te("calendarHeader"),ref:n,...fe,children:[de&&D.jsx(N.UnstyledButton,{...te("calendarHeaderControl"),"data-direction":"previous","aria-label":P,onClick:I,unstyled:c,onMouseDown:De,disabled:re,"data-disabled":re||void 0,tabIndex:J||re?-1:0,"data-mantine-stop-propagation":pe||void 0,children:T||D.jsx(N.AccordionChevron,{...te("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),D.jsx(N.UnstyledButton,{component:se?"button":"div",...te("calendarHeaderLevel"),onClick:se?U:void 0,unstyled:c,onMouseDown:se?De:void 0,disabled:!se,"data-static":!se||void 0,"aria-label":ce,tabIndex:J||!se?-1:0,"data-mantine-stop-propagation":pe||void 0,children:j}),K&&D.jsx(N.UnstyledButton,{...te("calendarHeaderControl"),"data-direction":"next","aria-label":M,onClick:E,unstyled:c,onMouseDown:De,disabled:ie,"data-disabled":ie||void 0,tabIndex:J||ie?-1:0,"data-mantine-stop-propagation":pe||void 0,children:C||D.jsx(N.AccordionChevron,{...te("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});cr.classes=$c,cr.displayName="@mantine/dates/CalendarHeader";function O1(i){const n=kc(i);return[n[0][0],n[3][0]]}const T1={decadeLabelFormat:"YYYY"},zo=N.factory((i,n)=>{const r=N.useProps("DecadeLevel",T1,i),{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:C,__onControlKeyDown:T,__onControlClick:M,__onControlMouseEnter:P,withCellSpacing:E,__preventFocus:I,nextIcon:U,previousIcon:j,nextLabel:ie,previousLabel:re,onNext:se,onPrevious:ce,nextDisabled:K,previousDisabled:de,levelControlAriaLabel:ee,withNext:J,withPrevious:pe,decadeLabelFormat:fe,classNames:te,styles:De,unstyled:Oe,__staticSelector:$,__stopPropagation:k,size:O,...d}=r,h=lr(),[w,m]=O1(s),g={__staticSelector:$||"DecadeLevel",classNames:te,styles:De,unstyled:Oe,size:O},A=typeof K=="boolean"?K:v?!Me(m).endOf("year").isBefore(v):!1,F=typeof de=="boolean"?de:p?!Me(w).startOf("year").isAfter(p):!1,H=(ae,ue)=>Me(ae).locale(l||h.locale).format(ue);return D.jsxs(N.Box,{"data-decade-level":!0,size:O,ref:n,...d,children:[D.jsx(cr,{label:typeof fe=="function"?fe(w,m):`${H(w,fe)} – ${H(m,fe)}`,__preventFocus:I,__stopPropagation:k,nextIcon:U,previousIcon:j,nextLabel:ie,previousLabel:re,onNext:se,onPrevious:ce,nextDisabled:A,previousDisabled:F,hasNextLevel:!1,levelControlAriaLabel:ee,withNext:J,withPrevious:pe,...g}),D.jsx(Fo,{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:C,__onControlKeyDown:T,__onControlClick:M,__onControlMouseEnter:P,__preventFocus:I,__stopPropagation:k,withCellSpacing:E,...g})]})});zo.classes={...Fo.classes,...cr.classes},zo.displayName="@mantine/dates/DecadeLevel";const E1={yearLabelFormat:"YYYY"},qo=N.factory((i,n)=>{const r=N.useProps("YearLevel",E1,i),{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:C,__onControlKeyDown:T,__onControlClick:M,__onControlMouseEnter:P,withCellSpacing:E,__preventFocus:I,nextIcon:U,previousIcon:j,nextLabel:ie,previousLabel:re,onNext:se,onPrevious:ce,onLevelClick:K,nextDisabled:de,previousDisabled:ee,hasNextLevel:J,levelControlAriaLabel:pe,withNext:fe,withPrevious:te,yearLabelFormat:De,__staticSelector:Oe,__stopPropagation:$,size:k,classNames:O,styles:d,unstyled:h,...w}=r,m=lr(),g={__staticSelector:Oe||"YearLevel",classNames:O,styles:d,unstyled:h,size:k},A=typeof de=="boolean"?de:v?!Me(s).endOf("year").isBefore(v):!1,F=typeof ee=="boolean"?ee:p?!Me(s).startOf("year").isAfter(p):!1;return D.jsxs(N.Box,{"data-year-level":!0,size:k,ref:n,...w,children:[D.jsx(cr,{label:typeof De=="function"?De(s):Me(s).locale(l||m.locale).format(De),__preventFocus:I,__stopPropagation:$,nextIcon:U,previousIcon:j,nextLabel:ie,previousLabel:re,onNext:se,onPrevious:ce,onLevelClick:K,nextDisabled:A,previousDisabled:F,hasNextLevel:J,levelControlAriaLabel:pe,withNext:fe,withPrevious:te,...g}),D.jsx(Wo,{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:C,__onControlKeyDown:T,__onControlClick:M,__onControlMouseEnter:P,__preventFocus:I,__stopPropagation:$,withCellSpacing:E,...g})]})});qo.classes={...cr.classes,...Wo.classes},qo.displayName="@mantine/dates/YearLevel";const M1={monthLabelFormat:"MMMM YYYY"},Ho=N.factory((i,n)=>{const r=N.useProps("MonthLevel",M1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:T,maxDate:M,renderDay:P,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:U,__getDayRef:j,__onDayKeyDown:ie,__onDayClick:re,__onDayMouseEnter:se,withCellSpacing:ce,highlightToday:K,withWeekNumbers:de,__preventFocus:ee,__stopPropagation:J,nextIcon:pe,previousIcon:fe,nextLabel:te,previousLabel:De,onNext:Oe,onPrevious:$,onLevelClick:k,nextDisabled:O,previousDisabled:d,hasNextLevel:h,levelControlAriaLabel:w,withNext:m,withPrevious:g,monthLabelFormat:A,classNames:F,styles:H,unstyled:ae,__staticSelector:ue,size:we,static:Q,...he}=r,Ce=lr(),_e={__staticSelector:ue||"MonthLevel",classNames:F,styles:H,unstyled:ae,size:we},B=typeof O=="boolean"?O:M?!Me(s).endOf("month").isBefore(M):!1,z=typeof d=="boolean"?d:T?!Me(s).startOf("month").isAfter(T):!1;return D.jsxs(N.Box,{"data-month-level":!0,size:we,ref:n,...he,children:[D.jsx(cr,{label:typeof A=="function"?A(s):Me(s).locale(l||Ce.locale).format(A),__preventFocus:ee,__stopPropagation:J,nextIcon:pe,previousIcon:fe,nextLabel:te,previousLabel:De,onNext:Oe,onPrevious:$,onLevelClick:k,nextDisabled:B,previousDisabled:z,hasNextLevel:h,levelControlAriaLabel:w,withNext:m,withPrevious:g,..._e}),D.jsx(Yo,{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:T,maxDate:M,renderDay:P,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:U,__getDayRef:j,__onDayKeyDown:ie,__onDayClick:re,__onDayMouseEnter:se,__preventFocus:ee,__stopPropagation:J,static:Q,withCellSpacing:ce,highlightToday:K,withWeekNumbers:de,..._e})]})});Ho.classes={...Yo.classes,...cr.classes},Ho.displayName="@mantine/dates/MonthLevel";var Bc={levelsGroup:"m_30b26e33"};const R1={},fr=N.factory((i,n)=>{const r=N.useProps("LevelsGroup",R1,i),{classNames:s,className:l,style:p,styles:v,unstyled:c,vars:x,__staticSelector:C,...T}=r,M=N.useStyles({name:C||"LevelsGroup",classes:Bc,props:r,className:l,style:p,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"levelsGroup"});return D.jsx(N.Box,{ref:n,...M("levelsGroup"),...T})});fr.classes=Bc,fr.displayName="@mantine/dates/LevelsGroup";const L1={numberOfColumns:1},Go=N.factory((i,n)=>{const r=N.useProps("DecadeLevelGroup",L1,i),{decade:s,locale:l,minDate:p,maxDate:v,yearsListFormat:c,getYearControlProps:x,__onControlClick:C,__onControlMouseEnter:T,withCellSpacing:M,__preventFocus:P,nextIcon:E,previousIcon:I,nextLabel:U,previousLabel:j,onNext:ie,onPrevious:re,nextDisabled:se,previousDisabled:ce,classNames:K,styles:de,unstyled:ee,__staticSelector:J,__stopPropagation:pe,numberOfColumns:fe,levelControlAriaLabel:te,decadeLabelFormat:De,size:Oe,vars:$,...k}=r,O=me.useRef([]),d=Array(fe).fill(0).map((h,w)=>{const m=Me(s).add(w*10,"years").format("YYYY-MM-DD");return D.jsx(zo,{size:Oe,yearsListFormat:c,decade:m,withNext:w===fe-1,withPrevious:w===0,decadeLabelFormat:De,__onControlClick:C,__onControlMouseEnter:T,__onControlKeyDown:(g,A)=>Ca({levelIndex:w,rowIndex:A.rowIndex,cellIndex:A.cellIndex,event:g,controlsRef:O}),__getControlRef:(g,A,F)=>{Array.isArray(O.current[w])||(O.current[w]=[]),Array.isArray(O.current[w][g])||(O.current[w][g]=[]),O.current[w][g][A]=F},levelControlAriaLabel:typeof te=="function"?te(m):te,locale:l,minDate:p,maxDate:v,__preventFocus:P,__stopPropagation:pe,nextIcon:E,previousIcon:I,nextLabel:U,previousLabel:j,onNext:ie,onPrevious:re,nextDisabled:se,previousDisabled:ce,getYearControlProps:x,__staticSelector:J||"DecadeLevelGroup",classNames:K,styles:de,unstyled:ee,withCellSpacing:M},w)});return D.jsx(fr,{classNames:K,styles:de,__staticSelector:J||"DecadeLevelGroup",ref:n,size:Oe,unstyled:ee,...k,children:d})});Go.classes={...fr.classes,...zo.classes},Go.displayName="@mantine/dates/DecadeLevelGroup";const k1={numberOfColumns:1},Vo=N.factory((i,n)=>{const r=N.useProps("YearLevelGroup",k1,i),{year:s,locale:l,minDate:p,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__onControlClick:C,__onControlMouseEnter:T,withCellSpacing:M,__preventFocus:P,nextIcon:E,previousIcon:I,nextLabel:U,previousLabel:j,onNext:ie,onPrevious:re,onLevelClick:se,nextDisabled:ce,previousDisabled:K,hasNextLevel:de,classNames:ee,styles:J,unstyled:pe,__staticSelector:fe,__stopPropagation:te,numberOfColumns:De,levelControlAriaLabel:Oe,yearLabelFormat:$,size:k,vars:O,...d}=r,h=me.useRef([]),w=Array(De).fill(0).map((m,g)=>{const A=Me(s).add(g,"years").format("YYYY-MM-DD");return D.jsx(qo,{size:k,monthsListFormat:c,year:A,withNext:g===De-1,withPrevious:g===0,yearLabelFormat:$,__stopPropagation:te,__onControlClick:C,__onControlMouseEnter:T,__onControlKeyDown:(F,H)=>Ca({levelIndex:g,rowIndex:H.rowIndex,cellIndex:H.cellIndex,event:F,controlsRef:h}),__getControlRef:(F,H,ae)=>{Array.isArray(h.current[g])||(h.current[g]=[]),Array.isArray(h.current[g][F])||(h.current[g][F]=[]),h.current[g][F][H]=ae},levelControlAriaLabel:typeof Oe=="function"?Oe(A):Oe,locale:l,minDate:p,maxDate:v,__preventFocus:P,nextIcon:E,previousIcon:I,nextLabel:U,previousLabel:j,onNext:ie,onPrevious:re,onLevelClick:se,nextDisabled:ce,previousDisabled:K,hasNextLevel:de,getMonthControlProps:x,classNames:ee,styles:J,unstyled:pe,__staticSelector:fe||"YearLevelGroup",withCellSpacing:M},g)});return D.jsx(fr,{classNames:ee,styles:J,__staticSelector:fe||"YearLevelGroup",ref:n,size:k,unstyled:pe,...d,children:w})});Vo.classes={...qo.classes,...fr.classes},Vo.displayName="@mantine/dates/YearLevelGroup";const I1={numberOfColumns:1},Zo=N.factory((i,n)=>{const r=N.useProps("MonthLevelGroup",I1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:T,maxDate:M,renderDay:P,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:U,__onDayClick:j,__onDayMouseEnter:ie,withCellSpacing:re,highlightToday:se,withWeekNumbers:ce,__preventFocus:K,nextIcon:de,previousIcon:ee,nextLabel:J,previousLabel:pe,onNext:fe,onPrevious:te,onLevelClick:De,nextDisabled:Oe,previousDisabled:$,hasNextLevel:k,classNames:O,styles:d,unstyled:h,numberOfColumns:w,levelControlAriaLabel:m,monthLabelFormat:g,__staticSelector:A,__stopPropagation:F,size:H,static:ae,vars:ue,...we}=r,Q=me.useRef([]),he=Array(w).fill(0).map((Ce,_e)=>{const B=Me(s).add(_e,"months").format("YYYY-MM-DD");return D.jsx(Ho,{month:B,withNext:_e===w-1,withPrevious:_e===0,monthLabelFormat:g,__stopPropagation:F,__onDayClick:j,__onDayMouseEnter:ie,__onDayKeyDown:(z,W)=>Ca({levelIndex:_e,rowIndex:W.rowIndex,cellIndex:W.cellIndex,event:z,controlsRef:Q}),__getDayRef:(z,W,Z)=>{Array.isArray(Q.current[_e])||(Q.current[_e]=[]),Array.isArray(Q.current[_e][z])||(Q.current[_e][z]=[]),Q.current[_e][z][W]=Z},levelControlAriaLabel:typeof m=="function"?m(B):m,locale:l,firstDayOfWeek:p,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:T,maxDate:M,renderDay:P,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:U,__preventFocus:K,nextIcon:de,previousIcon:ee,nextLabel:J,previousLabel:pe,onNext:fe,onPrevious:te,onLevelClick:De,nextDisabled:Oe,previousDisabled:$,hasNextLevel:k,classNames:O,styles:d,unstyled:h,__staticSelector:A||"MonthLevelGroup",size:H,static:ae,withCellSpacing:re,highlightToday:se,withWeekNumbers:ce},_e)});return D.jsx(fr,{classNames:O,styles:d,__staticSelector:A||"MonthLevelGroup",ref:n,size:H,...we,children:he})});Zo.classes={...fr.classes,...Ho.classes},Zo.displayName="@mantine/dates/MonthLevelGroup";const jc=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Yc=(i,n)=>{const r=n?xc:ln;return Array.isArray(i)?i.map(r):r(i)};function Ta({type:i,value:n,defaultValue:r,onChange:s,withTime:l=!1}){const p=me.useRef(i),[v,c,x]=Tt.useUncontrolled({value:Yc(n,l),defaultValue:Yc(r,l),finalValue:jc(i),onChange:s});let C=v;return p.current!==i&&(p.current=i,n===void 0&&(C=r!==void 0?r:jc(i),c(C))),[C,c,x]}function Ea(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 Vi(i,n,r){return P1(Tt.clamp(Ea(i,0),Ea(n,0),Ea(r,2)))}const N1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Ko=N.factory((i,n)=>{const r=N.useProps("Calendar",N1,i),{vars:s,maxLevel:l,minLevel:p,defaultLevel:v,level:c,onLevelChange:x,date:C,defaultDate:T,onDateChange:M,numberOfColumns:P,columnsToScroll:E,ariaLabels:I,nextLabel:U,previousLabel:j,onYearSelect:ie,onMonthSelect:re,onYearMouseEnter:se,onMonthMouseEnter:ce,__updateDateOnYearSelect:K,__updateDateOnMonthSelect:de,firstDayOfWeek:ee,weekdayFormat:J,weekendDays:pe,getDayProps:fe,excludeDate:te,renderDay:De,hideOutsideDates:Oe,hideWeekdays:$,getDayAriaLabel:k,monthLabelFormat:O,nextIcon:d,previousIcon:h,__onDayClick:w,__onDayMouseEnter:m,withCellSpacing:g,highlightToday:A,withWeekNumbers:F,monthsListFormat:H,getMonthControlProps:ae,yearLabelFormat:ue,yearsListFormat:we,getYearControlProps:Q,decadeLabelFormat:he,classNames:Ce,styles:_e,unstyled:B,minDate:z,maxDate:W,locale:Z,__staticSelector:oe,size:Te,__preventFocus:u,__stopPropagation:f,onNextDecade:_,onPreviousDecade:R,onNextYear:q,onPreviousYear:X,onNextMonth:Ae,onPreviousMonth:be,static:Re,...Se}=r,{resolvedClassNames:ke,resolvedStyles:Ne}=N.useResolvedStylesApi({classNames:Ce,styles:_e,props:r}),[Ie,Xe]=Tt.useUncontrolled({value:c?Vi(c,p,l):void 0,defaultValue:v?Vi(v,p,l):void 0,finalValue:Vi(void 0,p,l),onChange:x}),[nt,Ge]=Ta({type:"default",value:ln(C),defaultValue:ln(T),onChange:M}),wt={__staticSelector:oe||"Calendar",styles:Ne,classNames:ke,unstyled:B,size:Te},mt=E||P||1,lt=new Date,zt=z&&Me(lt).isAfter(z)?z:Me(lt).format("YYYY-MM-DD"),Ct=nt||zt,cn=()=>{const at=Me(Ct).add(mt,"month").format("YYYY-MM-DD");Ae==null||Ae(at),Ge(at)},fn=()=>{const at=Me(Ct).subtract(mt,"month").format("YYYY-MM-DD");be==null||be(at),Ge(at)},Zt=()=>{const at=Me(Ct).add(mt,"year").format("YYYY-MM-DD");q==null||q(at),Ge(at)},Kt=()=>{const at=Me(Ct).subtract(mt,"year").format("YYYY-MM-DD");X==null||X(at),Ge(at)},hn=()=>{const at=Me(Ct).add(10*mt,"year").format("YYYY-MM-DD");_==null||_(at),Ge(at)},dn=()=>{const at=Me(Ct).subtract(10*mt,"year").format("YYYY-MM-DD");R==null||R(at),Ge(at)};return D.jsxs(N.Box,{ref:n,size:Te,"data-calendar":!0,...Se,children:[Ie==="month"&&D.jsx(Zo,{month:Ct,minDate:z,maxDate:W,firstDayOfWeek:ee,weekdayFormat:J,weekendDays:pe,getDayProps:fe,excludeDate:te,renderDay:De,hideOutsideDates:Oe,hideWeekdays:$,getDayAriaLabel:k,onNext:cn,onPrevious:fn,hasNextLevel:l!=="month",onLevelClick:()=>Xe("year"),numberOfColumns:P,locale:Z,levelControlAriaLabel:I==null?void 0:I.monthLevelControl,nextLabel:(I==null?void 0:I.nextMonth)??U,nextIcon:d,previousLabel:(I==null?void 0:I.previousMonth)??j,previousIcon:h,monthLabelFormat:O,__onDayClick:w,__onDayMouseEnter:m,__preventFocus:u,__stopPropagation:f,static:Re,withCellSpacing:g,highlightToday:A,withWeekNumbers:F,...wt}),Ie==="year"&&D.jsx(Vo,{year:Ct,numberOfColumns:P,minDate:z,maxDate:W,monthsListFormat:H,getMonthControlProps:ae,locale:Z,onNext:Zt,onPrevious:Kt,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>Xe("decade"),levelControlAriaLabel:I==null?void 0:I.yearLevelControl,nextLabel:(I==null?void 0:I.nextYear)??U,nextIcon:d,previousLabel:(I==null?void 0:I.previousYear)??j,previousIcon:h,yearLabelFormat:ue,__onControlMouseEnter:ce,__onControlClick:(at,Qt)=>{de&&Ge(Qt),Xe(Vi("month",p,l)),re==null||re(Qt)},__preventFocus:u,__stopPropagation:f,withCellSpacing:g,...wt}),Ie==="decade"&&D.jsx(Go,{decade:Ct,minDate:z,maxDate:W,yearsListFormat:we,getYearControlProps:Q,locale:Z,onNext:hn,onPrevious:dn,numberOfColumns:P,nextLabel:(I==null?void 0:I.nextDecade)??U,nextIcon:d,previousLabel:(I==null?void 0:I.previousDecade)??j,previousIcon:h,decadeLabelFormat:he,__onControlMouseEnter:se,__onControlClick:(at,Qt)=>{K&&Ge(Qt),Xe(Vi("year",p,l)),ie==null||ie(Qt)},__preventFocus:u,__stopPropagation:f,withCellSpacing:g,...wt})]})});Ko.classes={...Go.classes,...Vo.classes,...Zo.classes},Ko.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:C,onDateChange:T,numberOfColumns:M,columnsToScroll:P,ariaLabels:E,nextLabel:I,previousLabel:U,onYearSelect:j,onMonthSelect:ie,onYearMouseEnter:re,onMonthMouseEnter:se,onNextMonth:ce,onPreviousMonth:K,onNextYear:de,onPreviousYear:ee,onNextDecade:J,onPreviousDecade:pe,withCellSpacing:fe,highlightToday:te,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,withWeekNumbers:$,firstDayOfWeek:k,weekdayFormat:O,weekendDays:d,getDayProps:h,excludeDate:w,renderDay:m,hideOutsideDates:g,hideWeekdays:A,getDayAriaLabel:F,monthLabelFormat:H,monthsListFormat:ae,getMonthControlProps:ue,yearLabelFormat:we,yearsListFormat:Q,getYearControlProps:he,decadeLabelFormat:Ce,allowSingleDateInRange:_e,allowDeselect:B,minDate:z,maxDate:W,locale:Z,...oe}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:v,previousIcon:c,date:x,defaultDate:C,onDateChange:T,numberOfColumns:M,columnsToScroll:P,ariaLabels:E,nextLabel:I,previousLabel:U,onYearSelect:j,onMonthSelect:ie,onYearMouseEnter:re,onMonthMouseEnter:se,onNextMonth:ce,onPreviousMonth:K,onNextYear:de,onPreviousYear:ee,onNextDecade:J,onPreviousDecade:pe,withCellSpacing:fe,highlightToday:te,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,withWeekNumbers:$,firstDayOfWeek:k,weekdayFormat:O,weekendDays:d,getDayProps:h,excludeDate:w,renderDay:m,hideOutsideDates:g,hideWeekdays:A,getDayAriaLabel:F,monthLabelFormat:H,monthsListFormat:ae,getMonthControlProps:ue,yearLabelFormat:we,yearsListFormat:Q,getYearControlProps:he,decadeLabelFormat:Ce,allowSingleDateInRange:_e,allowDeselect:B,minDate:z,maxDate:W,locale:Z},others:oe}}function B1(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Me(n).format("YYYY-MM-DD")}function j1({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Me(i).isAfter(n,"date")||r&&Me(i).isBefore(r,"date"))}const Y1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},Qo=N.factory((i,n)=>{const r=N.useInputProps("DateInput",Y1,i),{inputProps:s,wrapperProps:l,value:p,defaultValue:v,onChange:c,clearable:x,clearButtonProps:C,popoverProps:T,getDayProps:M,locale:P,valueFormat:E,dateParser:I,minDate:U,maxDate:j,fixOnBlur:ie,onFocus:re,onBlur:se,onClick:ce,onKeyDown:K,readOnly:de,name:ee,form:J,rightSection:pe,unstyled:fe,classNames:te,styles:De,allowDeselect:Oe,date:$,defaultDate:k,onDateChange:O,getMonthControlProps:d,getYearControlProps:h,...w}=r,m=me.useRef(null),g=me.useRef(null),[A,F]=me.useState(!1),{calendarProps:H,others:ae}=$1(w),ue=lr(),Q=I||(be=>{const Re=Me(be,E,ue.getLocale(P)).toDate();return Number.isNaN(Re.getTime())?B1(be):Me(Re).format("YYYY-MM-DD")}),he=Oe!==void 0?Oe:x,Ce=be=>be?Me(be).locale(ue.getLocale(P)).format(E):"",[_e,B,z]=Ta({type:"default",value:p,defaultValue:v,onChange:c}),[W,Z]=Ta({type:"default",value:$,defaultValue:v||k,onChange:O});me.useEffect(()=>{z&&p!==null&&Z(p)},[z,p]);const[oe,Te]=me.useState(Ce(_e));me.useEffect(()=>{Te(Ce(_e))},[ue.getLocale(P)]);const u=be=>{const Re=be.currentTarget.value;if(Te(Re),F(!0),Re.trim()===""&&x)B(null);else{const Se=Q(Re);j1({date:Se,minDate:U,maxDate:j})&&(B(Se),Z(Se))}},f=be=>{se==null||se(be),F(!1),ie&&Te(Ce(_e))},_=be=>{re==null||re(be),F(!0)},R=be=>{ce==null||ce(be),F(!0)},q=be=>{be.key==="Escape"&&F(!1),K==null||K(be)},X=be=>({...M==null?void 0:M(be),selected:Me(_e).isSame(be,"day"),onClick:Re=>{var ke,Ne;(Ne=M==null?void 0:(ke=M(be)).onClick)==null||Ne.call(ke,Re);const Se=x&&he&&Me(_e).isSame(be,"day")?null:be;B(Se),!z&&Te(Ce(Se)),F(!1)}}),Ae=pe||(x&&_e&&!de?D.jsx(N.CloseButton,{variant:"transparent",onMouseDown:be=>be.preventDefault(),tabIndex:-1,onClick:()=>{B(null),!z&&Te(""),F(!1)},unstyled:fe,size:s.size||"sm",...C}):null);return Tt.useDidUpdate(()=>{_e!==void 0&&!A&&Te(Ce(_e))},[_e]),Tt.useClickOutside(()=>F(!1),void 0,[m.current,g.current]),D.jsxs(D.Fragment,{children:[D.jsx(N.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:m,children:D.jsxs(N.Popover,{opened:A,trapFocus:!1,position:"bottom-start",disabled:de,withRoles:!1,unstyled:fe,...T,children:[D.jsx(N.Popover.Target,{children:D.jsx(N.Input,{"data-dates-input":!0,"data-read-only":de||void 0,autoComplete:"off",ref:n,value:oe,onChange:u,onBlur:f,onFocus:_,onClick:R,onKeyDown:q,readOnly:de,rightSection:Ae,...s,...ae,__staticSelector:"DateInput"})}),D.jsx(N.Popover.Dropdown,{onMouseDown:be=>be.preventDefault(),"data-dates-dropdown":!0,ref:g,children:D.jsx(Ko,{__staticSelector:"DateInput",...H,classNames:te,styles:De,unstyled:fe,__preventFocus:!0,minDate:U,maxDate:j,locale:P,getDayProps:X,size:s.size,date:W,onDateChange:Z,getMonthControlProps:be=>({selected:typeof _e=="string"?Oa(be,_e):!1,...d==null?void 0:d(be)}),getYearControlProps:be=>({selected:typeof _e=="string"?Me(be).isSame(_e,"year"):!1,...h==null?void 0:h(be)})})})]})}),D.jsx(Sc,{name:ee,form:J,value:_e,type:"default"})]})});Qo.classes={...N.Input.classes,...Ko.classes},Qo.displayName="@mantine/dates/DateInput";function U1(i){const n=Dn.c(47),{fields:r,onClose:s,queryKey:l,apiPath:p,steps:v,onCreated:c}=i,[x,C]=me.useState(0),[T,M]=me.useState(!1),[P,E]=me.useState(),{mutateAsync:I,isError:U,error:j,isPending:ie}=yc(p,l),{mutateAsync:re,isPending:se}=Sa(p,l),ce=ie||se;let K;n[0]!==r?(K=new Set(r.filter(G1).map(H1)),n[0]=r,n[1]=K):K=n[1];let de;n[2]!==K?(de=[...K],n[2]=K,n[3]=de):de=n[3];const ee=de;let J;n[4]!==r?(J=r.reduce(q1,{}),n[4]=r,n[5]=J):J=n[5];let pe;n[6]!==r?(pe=r.filter(z1).reduce(F1,{}),n[6]=r,n[7]=pe):pe=n[7];let fe;n[8]!==J||n[9]!==pe?(fe={mode:"uncontrolled",initialValues:J,validate:pe},n[8]=J,n[9]=pe,n[10]=fe):fe=n[10];const te=ki.useForm(fe);let De;n[11]!==te||n[12]!==P?(De=function(g){return D.jsxs(me.Fragment,{children:[(g.type===void 0||g.type=="text")&&D.jsx(N.TextInput,{label:g.column.title,placeholder:g.placeholder??"",...te.getInputProps(g.id),type:g.id.includes("email")?"email":void 0},te.key(g.id)),g.type==="number"&&D.jsx(N.NumberInput,{decimalSeparator:",",label:g.column.title,placeholder:g.placeholder??"",...te.getInputProps(g.id)},te.key(g.id)),g.type==="date"&&D.jsx(Qo,{label:g.column.title,placeholder:g.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...te.getInputProps(g.id)},te.key(g.id)),g.type==="boolean"&&D.jsx(N.Checkbox,{mt:"md",label:g.column.title,...te.getInputProps(g.id,{type:"checkbox"})},te.key(g.id)),g.type==="custom"&&g.render&&g.render({...te.getValues(),...P&&{id:P}},te.setValues,M)]},g.id)},n[11]=te,n[12]=P,n[13]=De):De=n[13];const Oe=De;let $;n[14]!==(j==null?void 0:j.message)||n[15]!==(j==null?void 0:j.name)||n[16]!==U?($=U&&D.jsx(N.Alert,{variant:"outline",color:"red",title:(j==null?void 0:j.name)??"Fehler aufgetreten",mb:"lg",children:(j==null?void 0:j.message)??"Fehler aufgetreten"}),n[14]=j==null?void 0:j.message,n[15]=j==null?void 0:j.name,n[16]=U,n[17]=$):$=n[17];let k;n[18]!==x||n[19]!==I||n[20]!==te||n[21]!==U||n[22]!==s||n[23]!==c||n[24]!==P||n[25]!==ee.length||n[26]!==re?(k=te.onSubmit(async m=>{if(P)await re({...m,id:P});else{const g=await I(m);E(g.id),c==null||c(g.id)}ee.length&&x<ee.length-1?U||C(x+1):U||(te.setInitialValues(m),te.reset(),s())}),n[18]=x,n[19]=I,n[20]=te,n[21]=U,n[22]=s,n[23]=c,n[24]=P,n[25]=ee.length,n[26]=re,n[27]=k):k=n[27];let O;n[28]!==x||n[29]!==r||n[30]!==Oe||n[31]!==v||n[32]!==ee?(O=ee.length?D.jsx(N.Stepper,{active:x,size:"sm",children:ee.map(m=>D.jsx(N.Stepper.Step,{...v&&v[m-1]?{label:v[m-1].label}:{},children:r.filter(g=>g.step===m).map(g=>Oe(g))},m))}):r.map(m=>Oe(m)),n[28]=x,n[29]=r,n[30]=Oe,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(N.Group,{mt:"md",justify:"end",children:[D.jsx(N.Button,{onClick:()=>ee.length?x===0?s():C(x-1):s(),variant:"outline",children:ee.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(N.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 h;n[40]!==d||n[41]!==k||n[42]!==O?(h=D.jsxs("form",{onSubmit:k,children:[O,d]}),n[40]=d,n[41]=k,n[42]=O,n[43]=h):h=n[43];let w;return n[44]!==h||n[45]!==$?(w=D.jsxs(D.Fragment,{children:[$,h]}),n[44]=h,n[45]=$,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]=N.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:C}=i,[T,M]=me.useState(""),[P,E]=me.useState("");return D.jsx(V1,{value:{sourceColumn:T,setSourceColumn:M,targetColumn:P,setTargetColumn:E,columnsToggle:l,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!T||!P)return;let I=r.indexOf(T),U=r.indexOf(P);if(I!==-1&&U!==-1){let j=r.splice(I,1)[0];r.splice(U,0,j),s([...r])}},resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:C},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(N.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(N.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var J1=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(K,de){let ee=[];return K.forEach(J=>{de.find(pe=>pe.accessor===J)&&ee.push(J)}),de.forEach(J=>{ee.includes(J.accessor)||ee.push(J.accessor)}),ee}function l(K,de){let ee=[];return K.forEach(J=>{de.find(pe=>pe.accessor===J.accessor)&&ee.push(J)}),de.forEach(J=>{ee.find(pe=>pe.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,de){let ee=[];return K.forEach(J=>{let pe=Object.keys(J)[0];de.find(fe=>fe.accessor===pe)&&ee.push(J)}),de.forEach(J=>{let pe=J.accessor;if(!ee.find(fe=>Object.keys(fe)[0]===pe)){let fe={};fe[pe]="",ee.push(fe)}}),ee}function v(){let[K,de]=Tt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?C:void 0,getInitialValueInEffect:r});function ee(fe){i&&de(fe)}if(!i)return[K,ee];let J=s(K,n),pe=JSON.stringify(K);return JSON.stringify(J)!==pe&&ee(J),[J,ee]}function c(){let[K,de]=Tt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?M:void 0,getInitialValueInEffect:r});function ee(fe){i&&de(fe)}if(!i)return[K,ee];let J=l(K,n),pe=JSON.stringify(K);return JSON.stringify(J)!==pe&&ee(J),[l(K,n),ee]}function x(){let[K,de]=Tt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?T:void 0,getInitialValueInEffect:r});function ee(fe){i&&de(fe)}if(!i)return[K,ee];let J=p(K,n),pe=JSON.stringify(K);return JSON.stringify(J)!==pe&&ee(J),[p(K,n),ee]}let C=n&&n.map(K=>K.accessor)||[],T=n&&n.map(K=>({[K.accessor]:K.width??"initial"}))||[],M=n&&n.map(K=>({accessor:K.accessor,defaultToggle:K.defaultToggle||!0,toggleable:K.toggleable,toggled:K.defaultToggle===void 0?!0:K.defaultToggle})),[P,E]=v(),[I,U]=c(),[j,ie]=x(),re=()=>E(C),se=()=>{U(M)},ce=()=>ie(T);return{effectiveColumns:me.useMemo(()=>P?P.map(K=>n.find(de=>de.accessor===K)).map(K=>{var de;return{...K,hidden:(K==null?void 0:K.hidden)||!((de=I.find(ee=>ee.accessor===(K==null?void 0:K.accessor)))!=null&&de.toggled)}}).map(K=>{var de;return{...K,width:(de=j.find(ee=>ee[K==null?void 0:K.accessor]))==null?void 0:de[K==null?void 0:K.accessor]}}):n,[n,P,I,j]),setColumnsOrder:E,columnsOrder:P,resetColumnsOrder:re,columnsToggle:I,setColumnsToggle:U,resetColumnsToggle:se,columnsWidth:j,setColumnsWidth:ie,setColumnWidth:(K,de)=>{let ee=j.map(J=>J[K]?{[K]:de}:J);ie(ee)},resetColumnsWidth:ce}};function ui(){var s;let[i]=Tt.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=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 Jo(i){let n=N.useMantineTheme(),r=typeof i=="function"?i(n):i;return Tt.useMediaQuery(r||"",!0)}function Ra(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 La(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:C}=i;n&&c==="always"?s=n.map(T=>$t(T,r)):C&&(s=n.filter((T,M)=>C({record:T,index:M})).map(T=>$t(T,r)),x||(s=[s[0]]))}let l,p,v=me.useState(s);if(i){let{expandable:c,trigger:x,allowMultiple:C,collapseProps:T,content:M}=i;i.expanded?{recordIds:l,onRecordIdsChange:p}=i.expanded:[l,p]=v;let P=E=>p==null?void 0:p(l.filter(I=>I!==$t(E,r)));return{expandOnClick:x!=="always"&&x!=="never",isRowExpanded:E=>x==="always"?!0:l.includes($t(E,r)),isExpandable:({record:E,index:I})=>c?c({record:E,index:I}):!0,expandRow:E=>{let I=$t(E,r);p==null||p(C?[...l,I]:[I])},collapseRow:P,collapseProps:T,content:({record:E,index:I})=>()=>M({record:E,index:I,collapse:()=>P(E)})}}}function a0(i,n){let[r,s]=me.useState(i),[l,p]=me.useState(i),v=Tt.useTimeout(()=>s(!0),0),c=Tt.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 ka="mantine-datatable-nowrap",Ia="mantine-datatable-ellipsis",li="mantine-datatable-pointer-cursor",Wc="mantine-datatable-context-menu-cursor",u0="mantine-datatable-text-selection-disabled",Xo="mantine-datatable-text-align-left",es="mantine-datatable-text-align-center",ts="mantine-datatable-text-align-right";function l0({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:p,textAlign:v,width:c}){return Jo(r)?D.jsx(N.TableTh,{className:yt({[ka]:l||p,[Ia]:p,[Xo]:v==="left",[es]:v==="center",[ts]:v==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},n],children:s}):null}function c0({shadowVisible:i}){return D.jsx(N.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(N.TableTfoot,{ref:c,className:yt("mantine-datatable-footer",i),style:[{position:x?"relative":"sticky",bottom:N.rem(x?v:0)},n],children:D.jsxs(N.TableTr,{children:[l&&D.jsx(c0,{shadowVisible:p}),r.map(({hidden:C,...T})=>{if(C)return null;let{accessor:M,visibleMediaQuery:P,textAlign:E,width:I,footer:U,footerClassName:j,footerStyle:ie,noWrap:re,ellipsis:se}={...s,...T};return D.jsx(l0,{className:j,style:ie,visibleMediaQuery:P,textAlign:E,width:I,title:U,noWrap:re,ellipsis:se},M)})]})})});function h0({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:p}}){let v=me.useMemo(()=>n.map(({visibleMediaQuery:C})=>C),[n]),c=i0(v),x=me.useMemo(()=>n.filter(({hidden:C},T)=>!C&&(c==null?void 0:c[T])).length,[n,c]);return x>0?D.jsx(N.TableTh,{colSpan:x,className:yt("mantine-datatable-column-group-header-cell",{[Xo]:s==="left",[es]:s==="center",[ts]:s==="right"},l),style:p,children:r??Ra(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}]=Tt.useDisclosure(!1),v=n?p0:d0,c=Tt.useClickOutside(l);return D.jsxs(N.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[D.jsx(N.PopoverTarget,{children:D.jsx(N.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(N.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",C),document.body.style.cursor="col-resize"},x=T=>{if(!r.current)return;let M=T.clientX-r.current.getBoundingClientRect().right,P=`${r.current.getBoundingClientRect().width+M}px`;r.current.style.width=P,v(n,r.current.style.width),p(-M)},C=()=>{r.current&&(document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",C),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:N.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:C,textAlign:T,width:M,sortStatus:P,onSortStatusChange:E,filter:I,filterPopoverProps:U,filtering:j,sortKey:ie}){let{setSourceColumn:re,setTargetColumn:se,swapColumns:ce,setColumnsToggle:K}=Ma(),[de,ee]=me.useState(!1),J=me.useRef(null);if(!Jo(s))return null;let pe=l??Ra(r),fe=typeof pe=="string"?pe:void 0,te=p&&E?h=>{h!=null&&h.defaultPrevented||E({sortKey:ie,columnAccessor:r,direction:(P==null?void 0:P.columnAccessor)===r?P.direction==="asc"?"desc":"asc":(P==null?void 0:P.direction)??"asc"})}:void 0,De=h=>{h.stopPropagation(),re(r),ee(!1)},Oe=h=>{h.preventDefault(),se(r),ee(!0)},$=()=>{se(r),ee(!1),ce()},k=()=>{ee(!0)},O=()=>{ee(!1)},d=h=>{h.stopPropagation(),K(w=>w.map(m=>m.accessor===r?{...m,toggled:!1}:m))};return D.jsxs(N.TableTh,{className:yt({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":x},i),style:[{width:M,...x?{minWidth:"1px"}:{minWidth:M,maxWidth:M}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:te,onKeyDown:h=>h.key==="Enter"&&(te==null?void 0:te()),ref:J,children:[D.jsxs(N.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs(N.Flex,{align:"center",w:"100%",className:yt({"mantine-datatable-header-cell-draggable":v,"mantine-datatable-header-cell-drag-over":de}),draggable:v,onDragStart:v?De:void 0,onDragEnter:v?k:void 0,onDragOver:v?Oe:void 0,onDrop:v?$:void 0,onDragLeave:v?O:void 0,children:[v?D.jsx(N.Center,{role:"img","aria-label":"Drag column",children:D.jsx(N.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:h=>{h.stopPropagation()},children:D.jsx(_0,{})})}):null,D.jsx(N.Box,{className:yt("mantine-datatable-header-cell-sortable-text",{[Xo]:T==="left",[es]:T==="center",[ts]:T==="right"},ka,Ia),title:fe,children:pe})]}),c?D.jsx(N.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx(N.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(N.Center,{className:yt("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:(C==null?void 0:C.sorted)||D.jsx(v0,{})}):D.jsx(N.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(C==null?void 0:C.unsorted)||D.jsx(y0,{})})}):null,I?D.jsx(g0,{filterPopoverProps:U,isActive:!!j,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},C){let T=!v.disabled;return D.jsx(N.TableTh,{ref:C,className:yt("mantine-datatable-header-selector-cell",{[li]:r==="cell"&&T},i),style:n,rowSpan:x,"data-shadow-visible":s||void 0,onClick:r==="cell"&&T?c:void 0,children:D.jsx(N.Checkbox,{classNames:T?{input:li}: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:C,selectionVisible:T,selectionChecked:M,selectionIndeterminate:P,onSelectionChange:E,selectionCheckboxProps:I,selectorCellShadowVisible:U,selectionColumnClassName:j,selectionColumnStyle:ie},re){let se=T?D.jsx(x0,{ref:i,className:j,style:ie,trigger:C,shadowVisible:U,checked:M,indeterminate:P,checkboxProps:I,onChange:E,rowSpan:x?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:K}=Ma(),[de,ee]=me.useState(!1),J=v.some(te=>te.toggleable),pe=J?Object.fromEntries(v.map(({accessor:te,title:De})=>[te,De??Ra(String(te))])):void 0,fe=D.jsxs(N.TableThead,{className:yt("mantine-datatable-header",n),style:r,ref:re,onContextMenu:J?te=>{te.preventDefault(),ee(De=>!De)}:void 0,children:[x&&D.jsxs(N.TableTr,{children:[se,x.map(te=>D.jsx(h0,{group:te},te.id))]}),D.jsxs(N.TableTr,{children:[!x&&se,v.map(({hidden:te,...De},Oe)=>{if(te)return null;let{accessor:$,visibleMediaQuery:k,textAlign:O,width:d,title:h,sortable:w,draggable:m,toggleable:g,resizable:A,titleClassName:F,titleStyle:H,filter:ae,filterPopoverProps:ue,filtering:we,sortKey:Q}={...c,...De};return D.jsx(b0,{accessor:$,className:F,style:H,visibleMediaQuery:k,textAlign:O,width:d,title:h,sortable:w,draggable:m,toggleable:g,resizable:A&&Oe<v.length-1,sortStatus:s,sortIcons:l,sortKey:Q,onSortStatusChange:p,filter:ae,filterPopoverProps:ue,filtering:we},$)})]})]});return J?D.jsxs(N.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:de,onChange:ee,children:[D.jsx(N.PopoverTarget,{children:fe}),D.jsx(N.PopoverDropdown,{children:D.jsx(N.Stack,{children:ce.filter(te=>te.toggleable).map(te=>D.jsx(N.Group,{children:D.jsx(N.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:pe[te.accessor],checked:te.toggled,onChange:De=>{K(ce.map(Oe=>Oe.accessor===te.accessor?{...Oe,toggled:De.currentTarget.checked}:Oe))}})},te.accessor))})})]}):fe});function C0({pt:i,pb:n,fetching:r,customContent:s,backgroundBlur:l,size:p,type:v,color:c}){return D.jsx(N.Center,{pt:i,pb:n,className:yt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||D.jsx(N.Loader,{size:p,type:v,color:c}))})}function St(i,n,r){return i?N.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":St(n,i,"light"),"--mantine-datatable-color-dark":St(n,i,"dark"),"--mantine-datatable-background-color-light":St(r,i,"light"),"--mantine-datatable-background-color-dark":St(r,i,"dark"),"--mantine-datatable-border-color-light":St(s,i,"light"),"--mantine-datatable-border-color-dark":St(s,i,"dark"),"--mantine-datatable-row-border-color-light":St(l,i,"light"),"--mantine-datatable-row-border-color-dark":St(l,i,"dark"),"--mantine-datatable-striped-color-light":St(p,i,"light"),"--mantine-datatable-striped-color-dark":St(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":St(v,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":St(v,i,"dark")}}function zc({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":St(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":St(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":St(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":St(r,i,"dark")}}function D0({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":St(n,i,"light"),"--mantine-datatable-row-color-dark":St(n,i,"dark"),"--mantine-datatable-row-background-color-light":St(r,i,"light"),"--mantine-datatable-row-background-color-dark":St(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:N.rem(22),sm:N.rem(26),md:N.rem(32),lg:N.rem(38),xl:N.rem(44)};function T0({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:p,onChange:v}){return D.jsxs(N.Group,{gap:"xs",children:[D.jsx(N.Text,{component:"div",size:i,children:n}),D.jsxs(N.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx(N.MenuTarget,{children:D.jsx(N.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(N.MenuDropdown,{children:r.map(c=>{let x=c===s;return D.jsx(N.MenuItem,{className:yt({"mantine-datatable-page-size-selector-active":x}),style:[{height:qc[i]},x&&(l||p)?C=>zc({theme:C,paginationActiveTextColor:l,paginationActiveBackgroundColor:p}):void 0],disabled:x,onClick:()=>v(c),children:D.jsx(N.Text,{component:"div",size:i,children:c})},c)})})]})]})}var E0=me.forwardRef(function({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:p,paginationWithControls:v,paginationActiveTextColor:c,paginationActiveBackgroundColor:x,paginationSize:C,loadingText:T,noRecordsText:M,paginationText:P,totalRecords:E,recordsPerPage:I,onRecordsPerPageChange:U,recordsPerPageLabel:j,recordsPerPageOptions:ie,recordsLength:re,horizontalSpacing:se,paginationWrapBreakpoint:ce,getPaginationControlProps:K},de){let ee;if(E){let pe=(s-1)*I+1,fe=pe+(re||0)-1;ee=P({from:pe,to:fe,totalRecords:E})}else ee=r?T:M;let J=Jo(({breakpoints:pe})=>`(min-width: ${typeof ce=="number"?`${N.rem(ce)}rem`:pe[ce]||ce})`);return D.jsxs(N.Box,{ref:de,px:se??"xs",py:"xs",className:yt("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[D.jsx(N.Text,{component:"div",className:"mantine-datatable-pagination-text",size:C,children:ee}),ie&&D.jsx(T0,{activeTextColor:c,activeBackgroundColor:x,size:C,label:j,values:ie,value:I,onChange:U}),D.jsx(N.Pagination,{classNames:{root:yt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!re}),control:"mantine-datatable-pagination-pages-control"},style:c||x?pe=>zc({theme:pe,paginationActiveTextColor:c,paginationActiveBackgroundColor:x}):void 0,withEdges:p,withControls:v,value:s,onChange:l,size:C,total:Math.ceil(E/I),getControlProps:K})]})});function M0({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:p,onDoubleClick:v,onContextMenu:c,noWrap:x,ellipsis:C,textAlign:T,width:M,accessor:P,render:E,defaultRender:I,customCellAttributes:U}){return Jo(r)?D.jsx(N.TableTd,{className:yt({[ka]:x||C,[Ia]:C,[li]:p||v,[Wc]:c,[Xo]:T==="left",[es]:T==="center",[ts]:T==="right"},i),style:[{width:M,minWidth:M,maxWidth:M},n],onClick:p,onDoubleClick:v,onContextMenu:c,...U==null?void 0:U(s,l),children:E?E(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(N.TableTr,{}),D.jsx(N.TableTr,{children:D.jsx(N.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:D.jsx(N.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,...C}){let T={...c,...x(r,s)},M=!C.disabled&&!T.disabled,P=E=>{E.stopPropagation(),l==="cell"&&M&&(p==null||p(E))};return D.jsx(N.TableTd,{className:yt("mantine-datatable-row-selector-cell",{[li]:l==="cell"&&M},i),style:n,"data-shadow-visible":v||void 0,onClick:P,children:D.jsx(N.Checkbox,{classNames:M?{input:li}:void 0,onChange:p,...C,...T})})}function k0({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:p,selectionVisible:v,selectionChecked:c,onSelectionChange:x,isRecordSelectable:C,selectionCheckboxProps:T,getSelectionCheckboxProps:M,onClick:P,onDoubleClick:E,onContextMenu:I,onCellClick:U,onCellDoubleClick:j,onCellContextMenu:ie,expansion:re,customAttributes:se,color:ce,backgroundColor:K,className:de,style:ee,selectorCellShadowVisible:J,selectionColumnClassName:pe,selectionColumnStyle:fe,rowFactory:te}){let De=D.jsxs(D.Fragment,{children:[v&&D.jsx(L0,{className:pe,style:fe,record:i,index:n,trigger:p,withRightShadow:J,checked:c,disabled:!x||(C?!C(i,n):!1),onChange:x,checkboxProps:T,getCheckboxProps:M}),r.map(({hidden:k,hiddenContent:O,...d},h)=>{if(k||O)return null;let{accessor:w,visibleMediaQuery:m,textAlign:g,noWrap:A,ellipsis:F,width:H,render:ae,cellsClassName:ue,cellsStyle:we,customCellAttributes:Q}={...s,...d};return D.jsx(M0,{className:typeof ue=="function"?ue(i,n):ue,style:we==null?void 0:we(i,n),visibleMediaQuery:m,record:i,index:n,onClick:U?he=>U({event:he,record:i,index:n,column:d,columnIndex:h}):void 0,onDoubleClick:j?he=>j({event:he,record:i,index:n,column:d,columnIndex:h}):void 0,onContextMenu:ie?he=>ie({event:he,record:i,index:n,column:d,columnIndex:h}):void 0,accessor:w,textAlign:g,noWrap:A,ellipsis:F,width:H,render:ae,defaultRender:l,customCellAttributes:Q},w)})]}),Oe=re&&D.jsx(R0,{colSpan:r.filter(({hidden:k})=>!k).length+(v?1:0),open:re.isRowExpanded(i),content:re.content({record:i,index:n}),collapseProps:re.collapseProps}),$=I0({record:i,index:n,selectionChecked:c,onClick:P,onDoubleClick:E,onContextMenu:I,expansion:re,customAttributes:se,color:ce,backgroundColor:K,className:de,style:ee});return te?te({record:i,index:n,rowProps:$,children:De,expandedElement:Oe}):D.jsxs(D.Fragment,{children:[D.jsx(N.TableTr,{...$,children:De}),Oe]})}function I0({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:p,expansion:v,customAttributes:c,color:x,backgroundColor:C,className:T,style:M}){return{className:yt("mantine-datatable-row",{[li]: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:E,isRowExpanded:I,expandOnClick:U,expandRow:j,collapseRow:ie}=v;E({record:i,index:n})&&U&&(I(i)?ie(i):j(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||C?P=>{let E=x==null?void 0:x(i,n),I=C==null?void 0:C(i,n);return D0({theme:P,color:E,backgroundColor:I})}:void 0,M==null?void 0:M(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:C,viewportRef:T,scrollAreaProps:M}){return D.jsxs(N.ScrollArea,{...M,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:[C,D.jsx(N.Box,{className:yt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:v?N.rem(v):0}}),D.jsx("div",{className:yt("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:yt("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(N.Box,{className:yt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":p}),style:{bottom:c?N.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:C,storeColumnsKey:T,groups:M,pinFirstColumn:P,pinLastColumn:E,defaultColumnProps:I,defaultColumnRender:U,idAccessor:j="id",records:ie,selectionTrigger:re="checkbox",selectedRecords:se,onSelectedRecordsChange:ce,selectionColumnClassName:K,selectionColumnStyle:de,isRecordSelectable:ee,selectionCheckboxProps:J,allRecordsSelectionCheckboxProps:pe={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:fe=(Rt,gn)=>({"aria-label":`Select record ${gn+1}`}),sortStatus:te,sortIcons:De,onSortStatusChange:Oe,horizontalSpacing:$,page:k,onPageChange:O,totalRecords:d,recordsPerPage:h,onRecordsPerPageChange:w,recordsPerPageOptions:m,recordsPerPageLabel:g="Records per page",paginationWithEdges:A,paginationWithControls:F,paginationActiveTextColor:H,paginationActiveBackgroundColor:ae,paginationSize:ue="sm",paginationText:we=({from:Rt,to:gn,totalRecords:mn})=>`${Rt} - ${gn} / ${mn}`,paginationWrapBreakpoint:Q="sm",getPaginationControlProps:he=Rt=>Rt==="previous"?{"aria-label":"Previous page"}:Rt==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:Ce,customLoader:_e,loaderSize:B,loaderType:z,loaderColor:W,loadingText:Z="...",emptyState:oe,noRecordsText:Te="No records",noRecordsIcon:u,highlightOnHover:f,striped:_,noHeader:R,onRowClick:q,onRowDoubleClick:X,onRowContextMenu:Ae,onCellClick:be,onCellDoubleClick:Re,onCellContextMenu:Se,onScroll:ke,onScrollToTop:Ne,onScrollToBottom:Ie,onScrollToLeft:Xe,onScrollToRight:nt,c:Ge,backgroundColor:wt,borderColor:mt,rowBorderColor:lt,stripedColor:zt,highlightOnHoverColor:Ct,rowColor:cn,rowBackgroundColor:fn,rowExpansion:Zt,rowClassName:Kt,rowStyle:hn,customRowAttributes:dn,scrollViewportRef:at,scrollAreaProps:Qt,tableRef:Tn,bodyRef:Nn,m:$n,my:_r,mx:Hn,mt:wr,mb:pn,ml:Bn,mr:jn,className:br,classNames:At,style:ct,styles:tt,rowFactory:zr,tableWrapper:En,...xr}){let{ref:Rt,width:gn,height:mn}=ui(),qr=me.useMemo(()=>(M==null?void 0:M.flatMap(Ve=>Ve.columns))??C,[C,M]),ns=J1({key:T,columns:qr}),{ref:Pa,height:Sr}=ui(),{ref:Na,width:Cr,height:Hr}=ui(),{ref:$a,height:Ba}=ui(),{ref:rs,height:Ji}=ui(),{ref:is,width:ja}=ui(),Ya=Tt.useMergedRef(Na,Tn),Ua=Tt.useMergedRef(Rt,at),[Xi,eo]=me.useState(!0),[vi,to]=me.useState(!0),[Gn,os]=me.useState(!0),[Gr,Vr]=me.useState(!0),ss=s0({rowExpansion:Zt,records:ie,idAccessor:j}),no=me.useCallback(()=>{var Dr,Or;let Ve=((Dr=Rt.current)==null?void 0:Dr.scrollTop)??0,Jt=((Or=Rt.current)==null?void 0:Or.scrollLeft)??0;if(x||Hr<=mn)eo(!0),to(!0);else{let vn=Ve===0,Xt=Hr-Ve-mn<1;eo(vn),to(Xt),vn&&vn!==Xi&&(Ne==null||Ne()),Xt&&Xt!==vi&&(Ie==null||Ie())}if(x||Cr===gn)os(!0),Vr(!0);else{let vn=Jt===0,Xt=Cr-Jt-gn<1;os(vn),Vr(Xt),vn&&vn!==Gn&&(Xe==null||Xe()),Xt&&Xt!==Gr&&(nt==null||nt())}},[x,Ie,Xe,nt,Ne,mn,Rt,gn,vi,Gn,Gr,Xi,Hr,Cr]);X1(no,[no]);let ro=Tt.useDebouncedCallback(no,50),as=me.useCallback(Ve=>{ke==null||ke(Ve),ro()},[ro,ke]),io=me.useCallback(Ve=>{var Jt;(Jt=Rt.current)==null||Jt.scrollTo({top:0,left:0}),O(Ve)},[O,Rt]),yi=ie==null?void 0:ie.length,oo=ie==null?void 0:ie.map(Ve=>$t(Ve,j)),Yn=!!se,Mn=se==null?void 0:se.map(Ve=>$t(Ve,j)),Vn=oo!==void 0&&Mn!==void 0&&Mn.length>0,Ar=ee?ie==null?void 0:ie.filter(ee):ie,Zr=Ar==null?void 0:Ar.map(Ve=>$t(Ve,j)),_i=Vn&&Zr.every(Ve=>Mn.includes(Ve)),us=Vn&&Zr.some(Ve=>Mn.includes(Ve)),ls=me.useCallback(()=>{se&&ce&&ce(_i?se.filter(Ve=>!Zr.includes($t(Ve,j))):La([...se,...Ar],Ve=>$t(Ve,j)))},[_i,j,ce,Zr,Ar,se]),{lastSelectionChangeIndex:Kr,setLastSelectionChangeIndex:cs}=e0(oo),so=Yn&&!Gn&&!P,Fa={m:$n,my:_r,mx:Hn,mt:wr,mb:pn,ml:Bn,mr:jn},Wa=me.useCallback(({children:Ve})=>En?En({children:Ve}):Ve,[En]);return D.jsx(Uc,{...ns,children:D.jsxs(N.Box,{...Fa,className:yt("mantine-datatable",{"mantine-datatable-with-border":i},br,At==null?void 0:At.root),style:[Ve=>({...A0({theme:Ve,c:Ge,backgroundColor:wt,borderColor:mt,rowBorderColor:lt,stripedColor:zt,highlightOnHoverColor:Ct}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[v]||v,height:s,minHeight:l,maxHeight:p}),ct,tt==null?void 0:tt.root,{position:"relative"}],children:[D.jsx(P0,{viewportRef:Ua,topShadowVisible:!Xi,leftShadowVisible:!Gn,leftShadowBehind:Yn||!!P,rightShadowVisible:!Gr,rightShadowBehind:E,bottomShadowVisible:!vi,headerHeight:Sr,footerHeight:Ba,onScrollPositionChange:as,scrollAreaProps:Qt,children:D.jsx(Wa,{children:D.jsxs(N.Table,{ref:Ya,horizontalSpacing:$,className:yt("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":xr.withRowBorders&&Hr<mn,"mantine-datatable-pin-last-column":E,"mantine-datatable-pin-last-column-scrolled":!Gr&&E,"mantine-datatable-selection-column-visible":Yn,"mantine-datatable-pin-first-column":P,"mantine-datatable-pin-first-column-scrolled":!Gn&&P},At==null?void 0:At.table),style:{...tt==null?void 0:tt.table,"--mantine-datatable-selection-column-width":`${ja}px`},"data-striped":yi&&_||void 0,"data-highlight-on-hover":f||void 0,...xr,children:[R?null:D.jsx(Uc,{...ns,children:D.jsx(S0,{ref:Pa,selectionColumnHeaderRef:is,className:At==null?void 0:At.header,style:tt==null?void 0:tt.header,columns:qr,defaultColumnProps:I,groups:M,sortStatus:te,sortIcons:De,onSortStatusChange:Oe,selectionTrigger:re,selectionVisible:Yn,selectionChecked:_i,selectionIndeterminate:us&&!_i,onSelectionChange:ls,selectionCheckboxProps:{...J,...pe},selectorCellShadowVisible:so,selectionColumnClassName:K,selectionColumnStyle:de})}),D.jsx("tbody",{ref:Nn,children:yi?ie.map((Ve,Jt)=>{let Dr=$t(Ve,j),Or=(Mn==null?void 0:Mn.includes(Dr))||!1,vn;return ce&&se&&(vn=Xt=>{if(Xt.nativeEvent.shiftKey&&Kr!==null){let Tr=ie.filter(Jt>Kr?(Zn,Kn)=>Kn>=Kr&&Kn<=Jt&&(ee?ee(Zn,Kn):!0):(Zn,Kn)=>Kn>=Jt&&Kn<=Kr&&(ee?ee(Zn,Kn):!0));ce(Or?o0(se,Tr,Zn=>$t(Zn,j)):La([...se,...Tr],Zn=>$t(Zn,j)))}else ce(Or?se.filter(Tr=>$t(Tr,j)!==Dr):La([...se,Ve],Tr=>$t(Tr,j)));cs(Jt)}),D.jsx(k0,{record:Ve,index:Jt,columns:qr,defaultColumnProps:I,defaultColumnRender:U,selectionTrigger:re,selectionVisible:Yn,selectionChecked:Or,onSelectionChange:vn,isRecordSelectable:ee,selectionCheckboxProps:J,getSelectionCheckboxProps:fe,onClick:q,onDoubleClick:X,onCellClick:be,onCellDoubleClick:Re,onContextMenu:Ae,onCellContextMenu:Se,expansion:ss,color:cn,backgroundColor:fn,className:Kt,style:hn,customAttributes:dn,selectorCellShadowVisible:so,selectionColumnClassName:K,selectionColumnStyle:de,idAccessor:j,rowFactory:zr},Dr)}):D.jsx(Z1,{})}),qr.some(({footer:Ve})=>Ve)&&D.jsx(f0,{ref:$a,className:At==null?void 0:At.footer,style:tt==null?void 0:tt.footer,columns:qr,defaultColumnProps:I,selectionVisible:Yn,selectorCellShadowVisible:so,scrollDiff:Hr-mn})]})})}),k&&D.jsx(E0,{ref:rs,className:At==null?void 0:At.pagination,style:tt==null?void 0:tt.pagination,horizontalSpacing:$,fetching:x,page:k,onPageChange:io,totalRecords:d,recordsPerPage:h,onRecordsPerPageChange:w,recordsPerPageOptions:m,recordsPerPageLabel:g,paginationWithEdges:A,paginationWithControls:F,paginationActiveTextColor:H,paginationActiveBackgroundColor:ae,paginationSize:ue,paginationText:we,paginationWrapBreakpoint:Q,getPaginationControlProps:he,noRecordsText:Te,loadingText:Z,recordsLength:yi}),D.jsx(C0,{pt:Sr,pb:Ji,fetching:x,backgroundBlur:Ce,customContent:_e,size:B,type:z,color:W}),D.jsx(Q1,{pt:Sr,pb:Ji,icon:u,text:Te,active:!x&&!yi,children:oe})]})})}var $0=me.forwardRef(function({children:i,isDragging:n,...r},s){let l=me.useRef(null),p=Tt.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(),C=l.current.children[c];C.style.height=x.height+"px",C.style.width=x.width+"px",C.style.minWidth=x.width+"px",C.style.maxWidth=x.width+"px"}},[n,i]),D.jsx(N.TableTr,{"data-is-dragging":n,ref:p,...r,children:i})});$0.displayName="DataTableDraggableRow";var Zi={exports:{}};/**
113
+ */var nu;function Cp(){return nu||(nu=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var u=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=u,g}}})(function(){function r(){for(var g=0,v={};g<arguments.length;g++){var f=arguments[g];for(var C in f)v[C]=f[C]}return v}function s(g){return g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function u(g){function v(){}function f(A,E,L){if(!(typeof document>"u")){L=r({path:"/"},v.defaults,L),typeof L.expires=="number"&&(L.expires=new Date(new Date*1+L.expires*864e5)),L.expires=L.expires?L.expires.toUTCString():"";try{var M=JSON.stringify(E);/^[\{\[]/.test(M)&&(E=M)}catch{}E=g.write?g.write(E,A):encodeURIComponent(String(E)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),A=encodeURIComponent(String(A)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var k="";for(var I in L)L[I]&&(k+="; "+I,L[I]!==!0&&(k+="="+L[I].split(";")[0]));return document.cookie=A+"="+E+k}}function C(A,E){if(!(typeof document>"u")){for(var L={},M=document.cookie?document.cookie.split("; "):[],k=0;k<M.length;k++){var I=M[k].split("="),j=I.slice(1).join("=");!E&&j.charAt(0)==='"'&&(j=j.slice(1,-1));try{var H=s(I[0]);if(j=(g.read||g)(j,H)||s(j),E)try{j=JSON.parse(j)}catch{}if(L[H]=j,A===H)break}catch{}}return A?L[A]:L}}return v.set=f,v.get=function(A){return C(A,!1)},v.getJSON=function(A){return C(A,!0)},v.remove=function(A,E){f(A,"",r(E,{expires:-1}))},v.defaults={},v.withConverter=u,v}return u(function(){})})}(tu)),tu.exports}Cp();function Sp(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Dp(){return Sp().getCurrentUser()}function Ap(){return new Promise((i,n)=>{const r=Dp();r===null&&n(null),r?.getSession((s,u)=>{if(s!==null||u===null)return n(null);i({session:u,authenticatedUser:r})})})}async function Op(){const{session:i}=await Ap();return i?.getIdToken().getJwtToken()}me.createContext(void 0);var Ep="undefined",Tp="object",Fi="browser",ru="cpu",iu="device",ys="engine",Wi="os",Qn="name",Ui="type",_s="vendor",xn="version",ws="architecture",bs="major",xs="model",Pp="console",Mp="mobile",Rp="tablet",kp="smarttv",Lp="wearable",Np="embedded",Ip=typeof window!==Ep,Cs=Ip&&window.navigator?window.navigator:void 0;Cs&&Cs.userAgentData&&Cs.userAgentData;var zi=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},qi=function(i){for(var n in i){var r=i[n];typeof r==Tp&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return qi.call(i.init,[[Fi,[Qn,xn,bs,Ui]],[ru,[ws]],[iu,[Ui,xs,_s]],[ys,[Qn,xn]],[Wi,[Qn,xn]]]),qi.call(i.isIgnore,[[Fi,[xn,bs]],[ys,[xn]],[Wi,[xn]]]),qi.call(i.isIgnoreRgx,[[Fi,/ ?browser$/i],[Wi,/ ?os$/i]]),qi.call(i.toString,[[Fi,[Qn,xn]],[ru,[ws]],[iu,[_s,xs]],[ys,[Qn,xn]],[Wi,[Qn,xn]]]),i})(),zi([Qn,xn,bs,Ui]),zi([ws]),zi([xs,_s,Ui,Pp,Mp,kp,Rp,Lp,Np]),zi([Qn,xn]);var Ss={exports:{}},$p=Ss.exports,ou;function Bp(){return ou||(ou=1,function(i,n){(function(r,s){i.exports=s()})($p,()=>(()=>{var r={873:(v,f)=>{var C,A,E=function(){var L=function(N,T){var D=N,p=ae[T],d=null,w=0,h=null,m=[],S={},B=function($,K){d=function(U){for(var J=new Array(U),te=0;te<U;te+=1){J[te]=new Array(U);for(var Se=0;Se<U;Se+=1)J[te][Se]=null}return J}(w=4*D+17),G(0,0),G(w-7,0),G(0,w-7),ne(),oe(),ee($,K),D>=7&&be($),h==null&&(h=pe(D,p,m)),ye(h,K)},G=function($,K){for(var U=-1;U<=7;U+=1)if(!($+U<=-1||w<=$+U))for(var J=-1;J<=7;J+=1)K+J<=-1||w<=K+J||(d[$+U][K+J]=0<=U&&U<=6&&(J==0||J==6)||0<=J&&J<=6&&(U==0||U==6)||2<=U&&U<=4&&2<=J&&J<=4)},oe=function(){for(var $=8;$<w-8;$+=1)d[$][6]==null&&(d[$][6]=$%2==0);for(var K=8;K<w-8;K+=1)d[6][K]==null&&(d[6][K]=K%2==0)},ne=function(){for(var $=se.getPatternPosition(D),K=0;K<$.length;K+=1)for(var U=0;U<$.length;U+=1){var J=$[K],te=$[U];if(d[J][te]==null)for(var Se=-2;Se<=2;Se+=1)for(var l=-2;l<=2;l+=1)d[J+Se][te+l]=Se==-2||Se==2||l==-2||l==2||Se==0&&l==0}},be=function($){for(var K=se.getBCHTypeNumber(D),U=0;U<18;U+=1){var J=!$&&(K>>U&1)==1;d[Math.floor(U/3)][U%3+w-8-3]=J}for(U=0;U<18;U+=1)J=!$&&(K>>U&1)==1,d[U%3+w-8-3][Math.floor(U/3)]=J},ee=function($,K){for(var U=p<<3|K,J=se.getBCHTypeInfo(U),te=0;te<15;te+=1){var Se=!$&&(J>>te&1)==1;te<6?d[te][8]=Se:te<8?d[te+1][8]=Se:d[w-15+te][8]=Se}for(te=0;te<15;te+=1)Se=!$&&(J>>te&1)==1,te<8?d[8][w-te-1]=Se:te<9?d[8][15-te-1+1]=Se:d[8][15-te-1]=Se;d[w-8][8]=!$},ye=function($,K){for(var U=-1,J=w-1,te=7,Se=0,l=se.getMaskFunction(K),c=w-1;c>0;c-=2)for(c==6&&(c-=1);;){for(var _=0;_<2;_+=1)if(d[J][c-_]==null){var R=!1;Se<$.length&&(R=($[Se]>>>te&1)==1),l(J,c-_)&&(R=!R),d[J][c-_]=R,(te-=1)==-1&&(Se+=1,te=7)}if((J+=U)<0||w<=J){J-=U,U=-U;break}}},pe=function($,K,U){for(var J=Z.getRSBlocks($,K),te=ce(),Se=0;Se<U.length;Se+=1){var l=U[Se];te.put(l.getMode(),4),te.put(l.getLength(),se.getLengthInBits(l.getMode(),$)),l.write(te)}var c=0;for(Se=0;Se<J.length;Se+=1)c+=J[Se].dataCount;if(te.getLengthInBits()>8*c)throw"code length overflow. ("+te.getLengthInBits()+">"+8*c+")";for(te.getLengthInBits()+4<=8*c&&te.put(0,4);te.getLengthInBits()%8!=0;)te.putBit(!1);for(;!(te.getLengthInBits()>=8*c||(te.put(236,8),te.getLengthInBits()>=8*c));)te.put(17,8);return function(_,R){for(var F=0,X=0,Ae=0,we=new Array(R.length),Pe=new Array(R.length),Ce=0;Ce<R.length;Ce+=1){var Le=R[Ce].dataCount,Be=R[Ce].totalCount-Le;X=Math.max(X,Le),Ae=Math.max(Ae,Be),we[Ce]=new Array(Le);for(var Re=0;Re<we[Ce].length;Re+=1)we[Ce][Re]=255&_.getBuffer()[Re+F];F+=Le;var tt=se.getErrorCorrectPolynomial(Be),Xe=ue(we[Ce],tt.getLength()-1).mod(tt);for(Pe[Ce]=new Array(tt.getLength()-1),Re=0;Re<Pe[Ce].length;Re+=1){var rt=Re+Xe.getLength()-Pe[Ce].length;Pe[Ce][Re]=rt>=0?Xe.getAt(rt):0}}var Et=0;for(Re=0;Re<R.length;Re+=1)Et+=R[Re].totalCount;var ut=new Array(Et),Ze=0;for(Re=0;Re<X;Re+=1)for(Ce=0;Ce<R.length;Ce+=1)Re<we[Ce].length&&(ut[Ze]=we[Ce][Re],Ze+=1);for(Re=0;Re<Ae;Re+=1)for(Ce=0;Ce<R.length;Ce+=1)Re<Pe[Ce].length&&(ut[Ze]=Pe[Ce][Re],Ze+=1);return ut}(te,J)};S.addData=function($,K){var U=null;switch(K=K||"Byte"){case"Numeric":U=Q($);break;case"Alphanumeric":U=V($);break;case"Byte":U=de($);break;case"Kanji":U=fe($);break;default:throw"mode:"+K}m.push(U),h=null},S.isDark=function($,K){if($<0||w<=$||K<0||w<=K)throw $+","+K;return d[$][K]},S.getModuleCount=function(){return w},S.make=function(){if(D<1){for(var $=1;$<40;$++){for(var K=Z.getRSBlocks($,p),U=ce(),J=0;J<m.length;J++){var te=m[J];U.put(te.getMode(),4),U.put(te.getLength(),se.getLengthInBits(te.getMode(),$)),te.write(U)}var Se=0;for(J=0;J<K.length;J++)Se+=K[J].dataCount;if(U.getLengthInBits()<=8*Se)break}D=$}B(!1,function(){for(var l=0,c=0,_=0;_<8;_+=1){B(!0,_);var R=se.getLostPoint(S);(_==0||l>R)&&(l=R,c=_)}return c}())},S.createTableTag=function($,K){$=$||2;var U="";U+='<table style="',U+=" border-width: 0px; border-style: none;",U+=" border-collapse: collapse;",U+=" padding: 0px; margin: "+(K=K===void 0?4*$:K)+"px;",U+='">',U+="<tbody>";for(var J=0;J<S.getModuleCount();J+=1){U+="<tr>";for(var te=0;te<S.getModuleCount();te+=1)U+='<td style="',U+=" border-width: 0px; border-style: none;",U+=" border-collapse: collapse;",U+=" padding: 0px; margin: 0px;",U+=" width: "+$+"px;",U+=" height: "+$+"px;",U+=" background-color: ",U+=S.isDark(J,te)?"#000000":"#ffffff",U+=";",U+='"/>';U+="</tr>"}return(U+="</tbody>")+"</table>"},S.createSvgTag=function($,K,U,J){var te={};typeof arguments[0]=="object"&&($=(te=arguments[0]).cellSize,K=te.margin,U=te.alt,J=te.title),$=$||2,K=K===void 0?4*$:K,(U=typeof U=="string"?{text:U}:U||{}).text=U.text||null,U.id=U.text?U.id||"qrcode-description":null,(J=typeof J=="string"?{text:J}:J||{}).text=J.text||null,J.id=J.text?J.id||"qrcode-title":null;var Se,l,c,_,R=S.getModuleCount()*$+2*K,F="";for(_="l"+$+",0 0,"+$+" -"+$+",0 0,-"+$+"z ",F+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',F+=te.scalable?"":' width="'+R+'px" height="'+R+'px"',F+=' viewBox="0 0 '+R+" "+R+'" ',F+=' preserveAspectRatio="xMinYMin meet"',F+=J.text||U.text?' role="img" aria-labelledby="'+xe([J.id,U.id].join(" ").trim())+'"':"",F+=">",F+=J.text?'<title id="'+xe(J.id)+'">'+xe(J.text)+"</title>":"",F+=U.text?'<description id="'+xe(U.id)+'">'+xe(U.text)+"</description>":"",F+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',F+='<path d="',l=0;l<S.getModuleCount();l+=1)for(c=l*$+K,Se=0;Se<S.getModuleCount();Se+=1)S.isDark(l,Se)&&(F+="M"+(Se*$+K)+","+c+_);return(F+='" stroke="transparent" fill="black"/>')+"</svg>"},S.createDataURL=function($,K){$=$||2,K=K===void 0?4*$:K;var U=S.getModuleCount()*$+2*K,J=K,te=U-K;return Oe(U,U,function(Se,l){if(J<=Se&&Se<te&&J<=l&&l<te){var c=Math.floor((Se-J)/$),_=Math.floor((l-J)/$);return S.isDark(_,c)?0:1}return 1})},S.createImgTag=function($,K,U){$=$||2,K=K===void 0?4*$:K;var J=S.getModuleCount()*$+2*K,te="";return te+="<img",te+=' src="',te+=S.createDataURL($,K),te+='"',te+=' width="',te+=J,te+='"',te+=' height="',te+=J,te+='"',U&&(te+=' alt="',te+=xe(U),te+='"'),te+"/>"};var xe=function($){for(var K="",U=0;U<$.length;U+=1){var J=$.charAt(U);switch(J){case"<":K+="&lt;";break;case">":K+="&gt;";break;case"&":K+="&amp;";break;case'"':K+="&quot;";break;default:K+=J}}return K};return S.createASCII=function($,K){if(($=$||1)<2)return function(we){we=we===void 0?2:we;var Pe,Ce,Le,Be,Re,tt=1*S.getModuleCount()+2*we,Xe=we,rt=tt-we,Et={"██":"█","█ ":"▀"," █":"▄"," ":" "},ut={"██":"▀","█ ":"▀"," █":" "," ":" "},Ze="";for(Pe=0;Pe<tt;Pe+=2){for(Le=Math.floor((Pe-Xe)/1),Be=Math.floor((Pe+1-Xe)/1),Ce=0;Ce<tt;Ce+=1)Re="█",Xe<=Ce&&Ce<rt&&Xe<=Pe&&Pe<rt&&S.isDark(Le,Math.floor((Ce-Xe)/1))&&(Re=" "),Xe<=Ce&&Ce<rt&&Xe<=Pe+1&&Pe+1<rt&&S.isDark(Be,Math.floor((Ce-Xe)/1))?Re+=" ":Re+="█",Ze+=we<1&&Pe+1>=rt?ut[Re]:Et[Re];Ze+=`
114
+ `}return tt%2&&we>0?Ze.substring(0,Ze.length-tt-1)+Array(tt+1).join("▀"):Ze.substring(0,Ze.length-1)}(K);$-=1,K=K===void 0?2*$:K;var U,J,te,Se,l=S.getModuleCount()*$+2*K,c=K,_=l-K,R=Array($+1).join("██"),F=Array($+1).join(" "),X="",Ae="";for(U=0;U<l;U+=1){for(te=Math.floor((U-c)/$),Ae="",J=0;J<l;J+=1)Se=1,c<=J&&J<_&&c<=U&&U<_&&S.isDark(te,Math.floor((J-c)/$))&&(Se=0),Ae+=Se?R:F;for(te=0;te<$;te+=1)X+=Ae+`
115
+ `}return X.substring(0,X.length-1)},S.renderTo2dContext=function($,K){K=K||2;for(var U=S.getModuleCount(),J=0;J<U;J++)for(var te=0;te<U;te++)$.fillStyle=S.isDark(J,te)?"black":"white",$.fillRect(J*K,te*K,K,K)},S};L.stringToBytes=(L.stringToBytesFuncs={default:function(N){for(var T=[],D=0;D<N.length;D+=1){var p=N.charCodeAt(D);T.push(255&p)}return T}}).default,L.createStringToBytes=function(N,T){var D=function(){for(var d=De(N),w=function(){var oe=d.read();if(oe==-1)throw"eof";return oe},h=0,m={};;){var S=d.read();if(S==-1)break;var B=w(),G=w()<<8|w();m[String.fromCharCode(S<<8|B)]=G,h+=1}if(h!=T)throw h+" != "+T;return m}(),p=63;return function(d){for(var w=[],h=0;h<d.length;h+=1){var m=d.charCodeAt(h);if(m<128)w.push(m);else{var S=D[d.charAt(h)];typeof S=="number"?(255&S)==S?w.push(S):(w.push(S>>>8),w.push(255&S)):w.push(p)}}return w}};var M,k,I,j,H,ae={L:1,M:0,Q:3,H:2},se=(M=[[],[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]],k=1335,I=7973,H=function(N){for(var T=0;N!=0;)T+=1,N>>>=1;return T},(j={}).getBCHTypeInfo=function(N){for(var T=N<<10;H(T)-H(k)>=0;)T^=k<<H(T)-H(k);return 21522^(N<<10|T)},j.getBCHTypeNumber=function(N){for(var T=N<<12;H(T)-H(I)>=0;)T^=I<<H(T)-H(I);return N<<12|T},j.getPatternPosition=function(N){return M[N-1]},j.getMaskFunction=function(N){switch(N){case 0:return function(T,D){return(T+D)%2==0};case 1:return function(T,D){return T%2==0};case 2:return function(T,D){return D%3==0};case 3:return function(T,D){return(T+D)%3==0};case 4:return function(T,D){return(Math.floor(T/2)+Math.floor(D/3))%2==0};case 5:return function(T,D){return T*D%2+T*D%3==0};case 6:return function(T,D){return(T*D%2+T*D%3)%2==0};case 7:return function(T,D){return(T*D%3+(T+D)%2)%2==0};default:throw"bad maskPattern:"+N}},j.getErrorCorrectPolynomial=function(N){for(var T=ue([1],0),D=0;D<N;D+=1)T=T.multiply(ue([1,le.gexp(D)],0));return T},j.getLengthInBits=function(N,T){if(1<=T&&T<10)switch(N){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+N}else if(T<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(!(T<41))throw"type:"+T;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 T=N.getModuleCount(),D=0,p=0;p<T;p+=1)for(var d=0;d<T;d+=1){for(var w=0,h=N.isDark(p,d),m=-1;m<=1;m+=1)if(!(p+m<0||T<=p+m))for(var S=-1;S<=1;S+=1)d+S<0||T<=d+S||m==0&&S==0||h==N.isDark(p+m,d+S)&&(w+=1);w>5&&(D+=3+w-5)}for(p=0;p<T-1;p+=1)for(d=0;d<T-1;d+=1){var B=0;N.isDark(p,d)&&(B+=1),N.isDark(p+1,d)&&(B+=1),N.isDark(p,d+1)&&(B+=1),N.isDark(p+1,d+1)&&(B+=1),B!=0&&B!=4||(D+=3)}for(p=0;p<T;p+=1)for(d=0;d<T-6;d+=1)N.isDark(p,d)&&!N.isDark(p,d+1)&&N.isDark(p,d+2)&&N.isDark(p,d+3)&&N.isDark(p,d+4)&&!N.isDark(p,d+5)&&N.isDark(p,d+6)&&(D+=40);for(d=0;d<T;d+=1)for(p=0;p<T-6;p+=1)N.isDark(p,d)&&!N.isDark(p+1,d)&&N.isDark(p+2,d)&&N.isDark(p+3,d)&&N.isDark(p+4,d)&&!N.isDark(p+5,d)&&N.isDark(p+6,d)&&(D+=40);var G=0;for(d=0;d<T;d+=1)for(p=0;p<T;p+=1)N.isDark(p,d)&&(G+=1);return D+Math.abs(100*G/T/T-50)/5*10},j),le=function(){for(var N=new Array(256),T=new Array(256),D=0;D<8;D+=1)N[D]=1<<D;for(D=8;D<256;D+=1)N[D]=N[D-4]^N[D-5]^N[D-6]^N[D-8];for(D=0;D<255;D+=1)T[N[D]]=D;return{glog:function(p){if(p<1)throw"glog("+p+")";return T[p]},gexp:function(p){for(;p<0;)p+=255;for(;p>=256;)p-=255;return N[p]}}}();function ue(N,T){if(N.length===void 0)throw N.length+"/"+T;var D=function(){for(var d=0;d<N.length&&N[d]==0;)d+=1;for(var w=new Array(N.length-d+T),h=0;h<N.length-d;h+=1)w[h]=N[h+d];return w}(),p={getAt:function(d){return D[d]},getLength:function(){return D.length},multiply:function(d){for(var w=new Array(p.getLength()+d.getLength()-1),h=0;h<p.getLength();h+=1)for(var m=0;m<d.getLength();m+=1)w[h+m]^=le.gexp(le.glog(p.getAt(h))+le.glog(d.getAt(m)));return ue(w,0)},mod:function(d){if(p.getLength()-d.getLength()<0)return p;for(var w=le.glog(p.getAt(0))-le.glog(d.getAt(0)),h=new Array(p.getLength()),m=0;m<p.getLength();m+=1)h[m]=p.getAt(m);for(m=0;m<d.getLength();m+=1)h[m]^=le.gexp(le.glog(d.getAt(m))+w);return ue(h,0).mod(d)}};return p}var Z=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]],T=function(p,d){var w={};return w.totalCount=p,w.dataCount=d,w},D={getRSBlocks:function(p,d){var w=function(be,ee){switch(ee){case ae.L:return N[4*(be-1)+0];case ae.M:return N[4*(be-1)+1];case ae.Q:return N[4*(be-1)+2];case ae.H:return N[4*(be-1)+3];default:return}}(p,d);if(w===void 0)throw"bad rs block @ typeNumber:"+p+"/errorCorrectionLevel:"+d;for(var h=w.length/3,m=[],S=0;S<h;S+=1)for(var B=w[3*S+0],G=w[3*S+1],oe=w[3*S+2],ne=0;ne<B;ne+=1)m.push(T(G,oe));return m}};return D}(),ce=function(){var N=[],T=0,D={getBuffer:function(){return N},getAt:function(p){var d=Math.floor(p/8);return(N[d]>>>7-p%8&1)==1},put:function(p,d){for(var w=0;w<d;w+=1)D.putBit((p>>>d-w-1&1)==1)},getLengthInBits:function(){return T},putBit:function(p){var d=Math.floor(T/8);N.length<=d&&N.push(0),p&&(N[d]|=128>>>T%8),T+=1}};return D},Q=function(N){var T=N,D={getMode:function(){return 1},getLength:function(w){return T.length},write:function(w){for(var h=T,m=0;m+2<h.length;)w.put(p(h.substring(m,m+3)),10),m+=3;m<h.length&&(h.length-m==1?w.put(p(h.substring(m,m+1)),4):h.length-m==2&&w.put(p(h.substring(m,m+2)),7))}},p=function(w){for(var h=0,m=0;m<w.length;m+=1)h=10*h+d(w.charAt(m));return h},d=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return D},V=function(N){var T=N,D={getMode:function(){return 2},getLength:function(d){return T.length},write:function(d){for(var w=T,h=0;h+1<w.length;)d.put(45*p(w.charAt(h))+p(w.charAt(h+1)),11),h+=2;h<w.length&&d.put(p(w.charAt(h)),6)}},p=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-48;if("A"<=d&&d<="Z")return d.charCodeAt(0)-65+10;switch(d){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 :"+d}};return D},de=function(N){var T=L.stringToBytes(N);return{getMode:function(){return 4},getLength:function(D){return T.length},write:function(D){for(var p=0;p<T.length;p+=1)D.put(T[p],8)}}},fe=function(N){var T=L.stringToBytesFuncs.SJIS;if(!T)throw"sjis not supported.";(function(){var d=T("友");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var D=T(N),p={getMode:function(){return 8},getLength:function(d){return~~(D.length/2)},write:function(d){for(var w=D,h=0;h+1<w.length;){var m=(255&w[h])<<8|255&w[h+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(h+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),d.put(m,13),h+=2}if(h<w.length)throw"illegal char at "+(h+1)}};return p},re=function(){var N=[],T={writeByte:function(D){N.push(255&D)},writeShort:function(D){T.writeByte(D),T.writeByte(D>>>8)},writeBytes:function(D,p,d){p=p||0,d=d||D.length;for(var w=0;w<d;w+=1)T.writeByte(D[w+p])},writeString:function(D){for(var p=0;p<D.length;p+=1)T.writeByte(D.charCodeAt(p))},toByteArray:function(){return N},toString:function(){var D="";D+="[";for(var p=0;p<N.length;p+=1)p>0&&(D+=","),D+=N[p];return D+"]"}};return T},De=function(N){var T=N,D=0,p=0,d=0,w={read:function(){for(;d<8;){if(D>=T.length){if(d==0)return-1;throw"unexpected end of file./"+d}var m=T.charAt(D);if(D+=1,m=="=")return d=0,-1;m.match(/^\s$/)||(p=p<<6|h(m.charCodeAt(0)),d+=6)}var S=p>>>d-8&255;return d-=8,S}},h=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return w},Oe=function(N,T,D){for(var p=function(G,oe){var ne=G,be=oe,ee=new Array(G*oe),ye={setPixel:function($,K,U){ee[K*ne+$]=U},write:function($){$.writeString("GIF87a"),$.writeShort(ne),$.writeShort(be),$.writeByte(128),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(255),$.writeByte(255),$.writeByte(255),$.writeString(","),$.writeShort(0),$.writeShort(0),$.writeShort(ne),$.writeShort(be),$.writeByte(0);var K=pe(2);$.writeByte(2);for(var U=0;K.length-U>255;)$.writeByte(255),$.writeBytes(K,U,255),U+=255;$.writeByte(K.length-U),$.writeBytes(K,U,K.length-U),$.writeByte(0),$.writeString(";")}},pe=function($){for(var K=1<<$,U=1+(1<<$),J=$+1,te=xe(),Se=0;Se<K;Se+=1)te.add(String.fromCharCode(Se));te.add(String.fromCharCode(K)),te.add(String.fromCharCode(U));var l,c,_,R=re(),F=(l=R,c=0,_=0,{write:function(Pe,Ce){if(Pe>>>Ce)throw"length over";for(;c+Ce>=8;)l.writeByte(255&(Pe<<c|_)),Ce-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=Ce},flush:function(){c>0&&l.writeByte(_)}});F.write(K,J);var X=0,Ae=String.fromCharCode(ee[X]);for(X+=1;X<ee.length;){var we=String.fromCharCode(ee[X]);X+=1,te.contains(Ae+we)?Ae+=we:(F.write(te.indexOf(Ae),J),te.size()<4095&&(te.size()==1<<J&&(J+=1),te.add(Ae+we)),Ae=we)}return F.write(te.indexOf(Ae),J),F.write(U,J),F.flush(),R.toByteArray()},xe=function(){var $={},K=0,U={add:function(J){if(U.contains(J))throw"dup key:"+J;$[J]=K,K+=1},size:function(){return K},indexOf:function(J){return $[J]},contains:function(J){return $[J]!==void 0}};return U};return ye}(N,T),d=0;d<T;d+=1)for(var w=0;w<N;w+=1)p.setPixel(w,d,D(w,d));var h=re();p.write(h);for(var m=function(){var G=0,oe=0,ne=0,be="",ee={},ye=function(xe){be+=String.fromCharCode(pe(63&xe))},pe=function(xe){if(!(xe<0)){if(xe<26)return 65+xe;if(xe<52)return xe-26+97;if(xe<62)return xe-52+48;if(xe==62)return 43;if(xe==63)return 47}throw"n:"+xe};return ee.writeByte=function(xe){for(G=G<<8|255&xe,oe+=8,ne+=1;oe>=6;)ye(G>>>oe-6),oe-=6},ee.flush=function(){if(oe>0&&(ye(G<<6-oe),G=0,oe=0),ne%3!=0)for(var xe=3-ne%3,$=0;$<xe;$+=1)be+="="},ee.toString=function(){return be},ee}(),S=h.toByteArray(),B=0;B<S.length;B+=1)m.writeByte(S[B]);return m.flush(),"data:image/gif;base64,"+m};return L}();E.stringToBytesFuncs["UTF-8"]=function(L){return function(M){for(var k=[],I=0;I<M.length;I++){var j=M.charCodeAt(I);j<128?k.push(j):j<2048?k.push(192|j>>6,128|63&j):j<55296||j>=57344?k.push(224|j>>12,128|j>>6&63,128|63&j):(I++,j=65536+((1023&j)<<10|1023&M.charCodeAt(I)),k.push(240|j>>18,128|j>>12&63,128|j>>6&63,128|63&j))}return k}(L)},(A=typeof(C=function(){return E})=="function"?C.apply(f,[]):C)===void 0||(v.exports=A)}},s={};function u(v){var f=s[v];if(f!==void 0)return f.exports;var C=s[v]={exports:{}};return r[v](C,C.exports,u),C.exports}u.n=v=>{var f=v&&v.__esModule?()=>v.default:()=>v;return u.d(f,{a:f}),f},u.d=(v,f)=>{for(var C in f)u.o(f,C)&&!u.o(v,C)&&Object.defineProperty(v,C,{enumerable:!0,get:f[C]})},u.o=(v,f)=>Object.prototype.hasOwnProperty.call(v,f);var g={};return(()=>{u.d(g,{default:()=>T});const v=D=>!!D&&typeof D=="object"&&!Array.isArray(D);function f(D,...p){if(!p.length)return D;const d=p.shift();return d!==void 0&&v(D)&&v(d)?(D=Object.assign({},D),Object.keys(d).forEach(w=>{const h=D[w],m=d[w];Array.isArray(h)&&Array.isArray(m)?D[w]=m:v(h)&&v(m)?D[w]=f(Object.assign({},h),m):D[w]=m}),f(D,...p)):D}function C(D,p){const d=document.createElement("a");d.download=p,d.href=D,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const A={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,h){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:p,y:d,size:w,getNeighbor:h})}_rotateFigure({x:p,y:d,size:w,rotation:h=0,draw:m}){var S;const B=p+w/2,G=d+w/2;m(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*h/Math.PI},${B},${G})`)}_basicDot(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+d/2)),this._element.setAttribute("cy",String(h+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${d/2} ${d/2}h `+d/2+"v "+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_drawDot({x:p,y:d,size:w}){this._basicDot({x:p,y:d,size:w,rotation:0})}_drawSquare({x:p,y:d,size:w}){this._basicSquare({x:p,y:d,size:w,rotation:0})}_drawRounded({x:p,y:d,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,S=h?+h(1,0):0,B=h?+h(0,-1):0,G=h?+h(0,1):0,oe=m+S+B+G;if(oe!==0)if(oe>2||m&&S||B&&G)this._basicSquare({x:p,y:d,size:w,rotation:0});else{if(oe===2){let ne=0;return m&&B?ne=Math.PI/2:B&&S?ne=Math.PI:S&&G&&(ne=-Math.PI/2),void this._basicCornerRounded({x:p,y:d,size:w,rotation:ne})}if(oe===1){let ne=0;return B?ne=Math.PI/2:S?ne=Math.PI:G&&(ne=-Math.PI/2),void this._basicSideRounded({x:p,y:d,size:w,rotation:ne})}}else this._basicDot({x:p,y:d,size:w,rotation:0})}_drawExtraRounded({x:p,y:d,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,S=h?+h(1,0):0,B=h?+h(0,-1):0,G=h?+h(0,1):0,oe=m+S+B+G;if(oe!==0)if(oe>2||m&&S||B&&G)this._basicSquare({x:p,y:d,size:w,rotation:0});else{if(oe===2){let ne=0;return m&&B?ne=Math.PI/2:B&&S?ne=Math.PI:S&&G&&(ne=-Math.PI/2),void this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:ne})}if(oe===1){let ne=0;return B?ne=Math.PI/2:S?ne=Math.PI:G&&(ne=-Math.PI/2),void this._basicSideRounded({x:p,y:d,size:w,rotation:ne})}}else this._basicDot({x:p,y:d,size:w,rotation:0})}_drawClassy({x:p,y:d,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,S=h?+h(1,0):0,B=h?+h(0,-1):0,G=h?+h(0,1):0;m+S+B+G!==0?m||B?S||G?this._basicSquare({x:p,y:d,size:w,rotation:0}):this._basicCornerRounded({x:p,y:d,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:p,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:d,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:p,y:d,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,S=h?+h(1,0):0,B=h?+h(0,-1):0,G=h?+h(0,1):0;m+S+B+G!==0?m||B?S||G?this._basicSquare({x:p,y:d,size:w,rotation:0}):this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:d,size:w,rotation:Math.PI/2})}}const L={dot:"dot",square:"square",extraRounded:"extra-rounded"},M=Object.values(L);class k{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,h){let m;switch(this._type){case L.square:m=this._drawSquare;break;case L.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:p,y:d,size:w,rotation:h})}_rotateFigure({x:p,y:d,size:w,rotation:h=0,draw:m}){var S;const B=p+w/2,G=d+w/2;m(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*h/Math.PI},${B},${G})`)}_basicDot(p){const{size:d,x:w,y:h}=p,m=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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+d/2} ${h}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${m}a ${d/2-m} ${d/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(p){const{size:d,x:w,y:h}=p,m=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h ${d}v `+-d+`zM ${w+m} ${h+m}h `+(d-2*m)+"v "+(d-2*m)+"h "+(2*m-d)+"z")}}))}_basicExtraRounded(p){const{size:d,x:w,y:h}=p,m=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${w} ${h+2.5*m}v `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*m}h `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*-m}v `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*-m}h `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*m}M ${w+2.5*m} ${h+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:p,y:d,size:w,rotation:h}){this._basicDot({x:p,y:d,size:w,rotation:h})}_drawSquare({x:p,y:d,size:w,rotation:h}){this._basicSquare({x:p,y:d,size:w,rotation:h})}_drawExtraRounded({x:p,y:d,size:w,rotation:h}){this._basicExtraRounded({x:p,y:d,size:w,rotation:h})}}const I={dot:"dot",square:"square"},j=Object.values(I);class H{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,h){let m;m=this._type===I.square?this._drawSquare:this._drawDot,m.call(this,{x:p,y:d,size:w,rotation:h})}_rotateFigure({x:p,y:d,size:w,rotation:h=0,draw:m}){var S;const B=p+w/2,G=d+w/2;m(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*h/Math.PI},${B},${G})`)}_basicDot(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+d/2)),this._element.setAttribute("cy",String(h+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:p,y:d,size:w,rotation:h}){this._basicDot({x:p,y:d,size:w,rotation:h})}_drawSquare({x:p,y:d,size:w,rotation:h}){this._basicSquare({x:p,y:d,size:w,rotation:h})}}const ae="circle",se=[[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]],le=[[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 ue{constructor(p,d){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=d,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(p.width)),this._element.setAttribute("height",String(p.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),p.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${p.width} ${p.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=p.image,this._instanceId=ue.instanceCount++,this._options=p}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(p){const d=p.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,h=this._options.shape===ae?w/Math.sqrt(2):w,m=this._roundSize(h/d);let S={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=p,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:B,qrOptions:G}=this._options,oe=B.imageSize*A[G.errorCorrectionLevel],ne=Math.floor(oe*d*d);S=function({originalHeight:be,originalWidth:ee,maxHiddenDots:ye,maxHiddenAxisDots:pe,dotSize:xe}){const $={x:0,y:0},K={x:0,y:0};if(be<=0||ee<=0||ye<=0||xe<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const U=be/ee;return $.x=Math.floor(Math.sqrt(ye/U)),$.x<=0&&($.x=1),pe&&pe<$.x&&($.x=pe),$.x%2==0&&$.x--,K.x=$.x*xe,$.y=1+2*Math.ceil(($.x*U-1)/2),K.y=Math.round(K.x*U),($.y*$.x>ye||pe&&pe<$.y)&&(pe&&pe<$.y?($.y=pe,$.y%2==0&&$.x--):$.y-=2,K.y=$.y*xe,$.x=1+2*Math.ceil(($.y/U-1)/2),K.x=Math.round(K.y/U)),{height:K.y,width:K.x,hideYDots:$.y,hideXDots:$.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ne,maxHiddenAxisDots:d-14,dotSize:m})}this.drawBackground(),this.drawDots((B,G)=>{var oe,ne,be,ee,ye,pe;return!(this._options.imageOptions.hideBackgroundDots&&B>=(d-S.hideYDots)/2&&B<(d+S.hideYDots)/2&&G>=(d-S.hideXDots)/2&&G<(d+S.hideXDots)/2||!((oe=se[B])===null||oe===void 0)&&oe[G]||!((ne=se[B-d+7])===null||ne===void 0)&&ne[G]||!((be=se[B])===null||be===void 0)&&be[G-d+7]||!((ee=le[B])===null||ee===void 0)&&ee[G]||!((ye=le[B-d+7])===null||ye===void 0)&&ye[G]||!((pe=le[B])===null||pe===void 0)&&pe[G-d+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:S.width,height:S.height,count:d,dotSize:m})}drawBackground(){var p,d,w;const h=this._element,m=this._options;if(h){const S=(p=m.backgroundOptions)===null||p===void 0?void 0:p.gradient,B=(d=m.backgroundOptions)===null||d===void 0?void 0:d.color;let G=m.height,oe=m.width;if(S||B){const ne=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((w=m.backgroundOptions)===null||w===void 0)&&w.round&&(G=oe=Math.min(m.width,m.height),ne.setAttribute("rx",String(G/2*m.backgroundOptions.round))),ne.setAttribute("x",String(this._roundSize((m.width-oe)/2))),ne.setAttribute("y",String(this._roundSize((m.height-G)/2))),ne.setAttribute("width",String(oe)),ne.setAttribute("height",String(G)),this._backgroundClipPath.appendChild(ne),this._createColor({options:S,color:B,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(p){var d,w;if(!this._qr)throw"QR code is not defined";const h=this._options,m=this._qr.getModuleCount();if(m>h.width||m>h.height)throw"The canvas is too small.";const S=Math.min(h.width,h.height)-2*h.margin,B=h.shape===ae?S/Math.sqrt(2):S,G=this._roundSize(B/m),oe=this._roundSize((h.width-m*G)/2),ne=this._roundSize((h.height-m*G)/2),be=new E({svg:this._element,type:h.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(d=h.dotsOptions)===null||d===void 0?void 0:d.gradient,color:h.dotsOptions.color,additionalRotation:0,x:0,y:0,height:h.height,width:h.width,name:`dot-color-${this._instanceId}`});for(let ee=0;ee<m;ee++)for(let ye=0;ye<m;ye++)p&&!p(ee,ye)||!((w=this._qr)===null||w===void 0)&&w.isDark(ee,ye)&&(be.draw(oe+ye*G,ne+ee*G,G,(pe,xe)=>!(ye+pe<0||ee+xe<0||ye+pe>=m||ee+xe>=m)&&!(p&&!p(ee+xe,ye+pe))&&!!this._qr&&this._qr.isDark(ee+xe,ye+pe)),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element));if(h.shape===ae){const ee=this._roundSize((S/G-m)/2),ye=m+2*ee,pe=oe-ee*G,xe=ne-ee*G,$=[],K=this._roundSize(ye/2);for(let U=0;U<ye;U++){$[U]=[];for(let J=0;J<ye;J++)U>=ee-1&&U<=ye-ee&&J>=ee-1&&J<=ye-ee||Math.sqrt((U-K)*(U-K)+(J-K)*(J-K))>K?$[U][J]=0:$[U][J]=this._qr.isDark(J-2*ee<0?J:J>=m?J-2*ee:J-ee,U-2*ee<0?U:U>=m?U-2*ee:U-ee)?1:0}for(let U=0;U<ye;U++)for(let J=0;J<ye;J++)$[U][J]&&(be.draw(pe+J*G,xe+U*G,G,(te,Se)=>{var l;return!!(!((l=$[U+Se])===null||l===void 0)&&l[J+te])}),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const p=this._element,d=this._options;if(!p)throw"Element code is not defined";const w=this._qr.getModuleCount(),h=Math.min(d.width,d.height)-2*d.margin,m=d.shape===ae?h/Math.sqrt(2):h,S=this._roundSize(m/w),B=7*S,G=3*S,oe=this._roundSize((d.width-w*S)/2),ne=this._roundSize((d.height-w*S)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([be,ee,ye])=>{var pe,xe,$,K,U,J,te,Se,l,c,_,R,F,X;const Ae=oe+be*S*(w-7),we=ne+ee*S*(w-7);let Pe=this._dotsClipPath,Ce=this._dotsClipPath;if((!((pe=d.cornersSquareOptions)===null||pe===void 0)&&pe.gradient||!((xe=d.cornersSquareOptions)===null||xe===void 0)&&xe.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${be}-${ee}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=Ce=Pe,this._createColor({options:($=d.cornersSquareOptions)===null||$===void 0?void 0:$.gradient,color:(K=d.cornersSquareOptions)===null||K===void 0?void 0:K.color,additionalRotation:ye,x:Ae,y:we,height:B,width:B,name:`corners-square-color-${be}-${ee}-${this._instanceId}`})),((U=d.cornersSquareOptions)===null||U===void 0?void 0:U.type)&&M.includes(d.cornersSquareOptions.type)){const Le=new k({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Le.draw(Ae,we,B,ye),Le._element&&Pe&&Pe.appendChild(Le._element)}else{const Le=new E({svg:this._element,type:((J=d.cornersSquareOptions)===null||J===void 0?void 0:J.type)||d.dotsOptions.type,window:this._window});for(let Be=0;Be<se.length;Be++)for(let Re=0;Re<se[Be].length;Re++)!((te=se[Be])===null||te===void 0)&&te[Re]&&(Le.draw(Ae+Re*S,we+Be*S,S,(tt,Xe)=>{var rt;return!!(!((rt=se[Be+Xe])===null||rt===void 0)&&rt[Re+tt])}),Le._element&&Pe&&Pe.appendChild(Le._element))}if((!((Se=d.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((l=d.cornersDotOptions)===null||l===void 0)&&l.color)&&(Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ce.setAttribute("id",`clip-path-corners-dot-color-${be}-${ee}-${this._instanceId}`),this._defs.appendChild(Ce),this._cornersDotClipPath=Ce,this._createColor({options:(c=d.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=d.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:ye,x:Ae+2*S,y:we+2*S,height:G,width:G,name:`corners-dot-color-${be}-${ee}-${this._instanceId}`})),((R=d.cornersDotOptions)===null||R===void 0?void 0:R.type)&&j.includes(d.cornersDotOptions.type)){const Le=new H({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Le.draw(Ae+2*S,we+2*S,G,ye),Le._element&&Ce&&Ce.appendChild(Le._element)}else{const Le=new E({svg:this._element,type:((F=d.cornersDotOptions)===null||F===void 0?void 0:F.type)||d.dotsOptions.type,window:this._window});for(let Be=0;Be<le.length;Be++)for(let Re=0;Re<le[Be].length;Re++)!((X=le[Be])===null||X===void 0)&&X[Re]&&(Le.draw(Ae+Re*S,we+Be*S,S,(tt,Xe)=>{var rt;return!!(!((rt=le[Be+Xe])===null||rt===void 0)&&rt[Re+tt])}),Le._element&&Ce&&Ce.appendChild(Le._element))}})}loadImage(){return new Promise((p,d)=>{var w;const h=this._options;if(!h.image)return d("Image is not defined");if(!((w=h.nodeCanvas)===null||w===void 0)&&w.loadImage)h.nodeCanvas.loadImage(h.image).then(m=>{var S,B;if(this._image=m,this._options.imageOptions.saveAsBlob){const G=(S=h.nodeCanvas)===null||S===void 0?void 0:S.createCanvas(this._image.width,this._image.height);(B=G?.getContext("2d"))===null||B===void 0||B.drawImage(m,0,0),this._imageUri=G?.toDataURL()}p()}).catch(d);else{const m=new this._window.Image;typeof h.imageOptions.crossOrigin=="string"&&(m.crossOrigin=h.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(S,B){return new Promise(G=>{const oe=new B.XMLHttpRequest;oe.onload=function(){const ne=new B.FileReader;ne.onloadend=function(){G(ne.result)},ne.readAsDataURL(oe.response)},oe.open("GET",S),oe.responseType="blob",oe.send()})}(h.image||"",this._window)),p()},m.src=h.image}})}async drawImage({width:p,height:d,count:w,dotSize:h}){const m=this._options,S=this._roundSize((m.width-w*h)/2),B=this._roundSize((m.height-w*h)/2),G=S+this._roundSize(m.imageOptions.margin+(w*h-p)/2),oe=B+this._roundSize(m.imageOptions.margin+(w*h-d)/2),ne=p-2*m.imageOptions.margin,be=d-2*m.imageOptions.margin,ee=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");ee.setAttribute("href",this._imageUri||""),ee.setAttribute("xlink:href",this._imageUri||""),ee.setAttribute("x",String(G)),ee.setAttribute("y",String(oe)),ee.setAttribute("width",`${ne}px`),ee.setAttribute("height",`${be}px`),this._element.appendChild(ee)}_createColor({options:p,color:d,additionalRotation:w,x:h,y:m,height:S,width:B,name:G}){const oe=B>S?B:S,ne=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ne.setAttribute("x",String(h)),ne.setAttribute("y",String(m)),ne.setAttribute("height",String(S)),ne.setAttribute("width",String(B)),ne.setAttribute("clip-path",`url('#clip-path-${G}')`),p){let be;if(p.type==="radial")be=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),be.setAttribute("id",G),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("fx",String(h+B/2)),be.setAttribute("fy",String(m+S/2)),be.setAttribute("cx",String(h+B/2)),be.setAttribute("cy",String(m+S/2)),be.setAttribute("r",String(oe/2));else{const ee=((p.rotation||0)+w)%(2*Math.PI),ye=(ee+2*Math.PI)%(2*Math.PI);let pe=h+B/2,xe=m+S/2,$=h+B/2,K=m+S/2;ye>=0&&ye<=.25*Math.PI||ye>1.75*Math.PI&&ye<=2*Math.PI?(pe-=B/2,xe-=S/2*Math.tan(ee),$+=B/2,K+=S/2*Math.tan(ee)):ye>.25*Math.PI&&ye<=.75*Math.PI?(xe-=S/2,pe-=B/2/Math.tan(ee),K+=S/2,$+=B/2/Math.tan(ee)):ye>.75*Math.PI&&ye<=1.25*Math.PI?(pe+=B/2,xe+=S/2*Math.tan(ee),$-=B/2,K-=S/2*Math.tan(ee)):ye>1.25*Math.PI&&ye<=1.75*Math.PI&&(xe+=S/2,pe+=B/2/Math.tan(ee),K-=S/2,$-=B/2/Math.tan(ee)),be=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),be.setAttribute("id",G),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("x1",String(Math.round(pe))),be.setAttribute("y1",String(Math.round(xe))),be.setAttribute("x2",String(Math.round($))),be.setAttribute("y2",String(Math.round(K)))}p.colorStops.forEach(({offset:ee,color:ye})=>{const pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");pe.setAttribute("offset",100*ee+"%"),pe.setAttribute("stop-color",ye),be.appendChild(pe)}),ne.setAttribute("fill",`url('#${G}')`),this._defs.appendChild(be)}else d&&ne.setAttribute("fill",d);this._element.appendChild(ne)}}ue.instanceCount=0;const Z=ue,ce="canvas",Q={};for(let D=0;D<=40;D++)Q[D]=D;const V={type:ce,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Q[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function de(D){const p=Object.assign({},D);if(!p.colorStops||!p.colorStops.length)throw"Field 'colorStops' is required in gradient";return p.rotation?p.rotation=Number(p.rotation):p.rotation=0,p.colorStops=p.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),p}function fe(D){const p=Object.assign({},D);return p.width=Number(p.width),p.height=Number(p.height),p.margin=Number(p.margin),p.imageOptions=Object.assign(Object.assign({},p.imageOptions),{hideBackgroundDots:!!p.imageOptions.hideBackgroundDots,imageSize:Number(p.imageOptions.imageSize),margin:Number(p.imageOptions.margin)}),p.margin>Math.min(p.width,p.height)&&(p.margin=Math.min(p.width,p.height)),p.dotsOptions=Object.assign({},p.dotsOptions),p.dotsOptions.gradient&&(p.dotsOptions.gradient=de(p.dotsOptions.gradient)),p.cornersSquareOptions&&(p.cornersSquareOptions=Object.assign({},p.cornersSquareOptions),p.cornersSquareOptions.gradient&&(p.cornersSquareOptions.gradient=de(p.cornersSquareOptions.gradient))),p.cornersDotOptions&&(p.cornersDotOptions=Object.assign({},p.cornersDotOptions),p.cornersDotOptions.gradient&&(p.cornersDotOptions.gradient=de(p.cornersDotOptions.gradient))),p.backgroundOptions&&(p.backgroundOptions=Object.assign({},p.backgroundOptions),p.backgroundOptions.gradient&&(p.backgroundOptions.gradient=de(p.backgroundOptions.gradient))),p}var re=u(873),De=u.n(re);function Oe(D){if(!D)throw new Error("Extension must be defined");D[0]==="."&&(D=D.substring(1));const p={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[D.toLowerCase()];if(!p)throw new Error(`Extension "${D}" is not supported`);return p}class N{constructor(p){p!=null&&p.jsdom?this._window=new p.jsdom("",{resources:"usable"}).window:this._window=window,this._options=p?fe(f(V,p)):V,this.update()}static _clearContainer(p){p&&(p.innerHTML="")}_setupSvg(){if(!this._qr)return;const p=new Z(this._options,this._window);this._svg=p.getElement(),this._svgDrawingPromise=p.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,p.getElement(),this._options))})}_setupCanvas(){var p,d;this._qr&&(!((p=this._options.nodeCanvas)===null||p===void 0)&&p.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=(d=this._svgDrawingPromise)===null||d===void 0?void 0:d.then(()=>{var w;if(!this._svg)return;const h=this._svg,m=new this._window.XMLSerializer().serializeToString(h),S=btoa(m),B=`data:${Oe("svg")};base64,${S}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(B).then(G=>{var oe,ne;G.width=this._options.width,G.height=this._options.height,(ne=(oe=this._nodeCanvas)===null||oe===void 0?void 0:oe.getContext("2d"))===null||ne===void 0||ne.drawImage(G,0,0)});{const G=new this._window.Image;return new Promise(oe=>{G.onload=()=>{var ne,be;(be=(ne=this._domCanvas)===null||ne===void 0?void 0:ne.getContext("2d"))===null||be===void 0||be.drawImage(G,0,0),oe()},G.src=B})}}))}async _getElement(p="png"){if(!this._qr)throw"QR code is empty";return p.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(p){N._clearContainer(this._container),this._options=p?fe(f(this._options,p)):this._options,this._options.data&&(this._qr=De()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(d){switch(!0){case/^[0-9]*$/.test(d):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(d):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ce?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(p){if(p){if(typeof p.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ce?this._domCanvas&&p.appendChild(this._domCanvas):this._svg&&p.appendChild(this._svg),this._container=p}}applyExtension(p){if(!p)throw"Extension function should be defined.";this._extension=p,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(p="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(p),w=Oe(p);if(!d)return null;if(p.toLowerCase()==="svg"){const h=`<?xml version="1.0" standalone="no"?>\r
116
+ ${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(h):new Blob([h],{type:w})}return new Promise(h=>{const m=d;if("toBuffer"in m)if(w==="image/png")h(m.toBuffer(w));else if(w==="image/jpeg")h(m.toBuffer(w));else{if(w!=="application/pdf")throw Error("Unsupported extension");h(m.toBuffer(w))}else"toBlob"in m&&m.toBlob(h,w,1)})}async download(p){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let d="png",w="qr";typeof p=="string"?(d=p,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof p=="object"&&p!==null&&(p.name&&(w=p.name),p.extension&&(d=p.extension));const h=await this._getElement(d);if(h)if(d.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(h);m=`<?xml version="1.0" standalone="no"?>\r
117
+ `+m,C(`data:${Oe(d)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else C(h.toDataURL(Oe(d)),`${w}.${d}`)}}const T=N})(),g.default})())}(Ss)),Ss.exports}Bp();const su=me.createContext(void 0);function jp(i){const n=wn.c(9),{children:r,baseUrl:s,queryClient:u}=i;let g;n[0]!==s||n[1]!==u?(g={baseUrl:s,queryClient:u},n[0]=s,n[1]=u,n[2]=g):g=n[2];let v;n[3]!==r||n[4]!==u?(v=O.jsx(yl,{client:u,children:r}),n[3]=r,n[4]=u,n[5]=v):v=n[5];let f;return n[6]!==g||n[7]!==v?(f=O.jsx(su.Provider,{value:g,children:v}),n[6]=g,n[7]=v,n[8]=f):f=n[8],f}function Jn(){const i=me.useContext(su);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Yp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function gr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await gr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function lu(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await gr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function uu(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await gr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function cu(i,n){return fetch(i,{method:"POST",headers:await gr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Fp(i,n,r){return fetch(n,{method:i,headers:await gr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function fu(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await gr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function hu(i,n,r){const s=wn.c(13),{baseUrl:u}=Jn();let g;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r?.toString(),s[3]=r,s[4]=A):A=s[4],g=[...n.map(Wp),String(A)],s[0]=r,s[1]=n,s[2]=g}else g=s[2];let v;s[5]!==i||s[6]!==u||s[7]!==r?(v=()=>lu(`${u}${i}`,r),s[5]=i,s[6]=u,s[7]=r,s[8]=v):v=s[8];const f=!!r;let C;return s[9]!==g||s[10]!==v||s[11]!==f?(C={queryKey:g,queryFn:v,enabled:f},s[9]=g,s[10]=v,s[11]=f,s[12]=C):C=s[12],bl(C)}function Wp(i){return i.toString()}function du(i,n){const r=wn.c(8),{baseUrl:s}=Jn();let u;r[0]!==n?(u=[...n.map(Up)],r[0]=n,r[1]=u):u=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let v;return r[5]!==u||r[6]!==g?(v={queryKey:u,queryFn:g},r[5]=u,r[6]=g,r[7]=v):v=r[7],bl(v)}function Up(i){return i.toString()}function pu(i,n){const r=wn.c(10),{baseUrl:s,queryClient:u}=Jn();let g;r[0]!==n?(g=[...n.map(qp)],r[0]=n,r[1]=g):g=r[1];let v;r[2]!==i||r[3]!==s?(v=C=>cu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=v):v=r[4];let f;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==v?(f={mutationKey:g,mutationFn:v,onSettled(){return u.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=v,r[9]=f):f=r[9],os(f)}function zp(i){return i.toString()}function qp(i){return i.toString()}function Ds(i,n){const r=wn.c(10),{baseUrl:s,queryClient:u}=Jn();let g;r[0]!==n?(g=[...n.map(Gp)],r[0]=n,r[1]=g):g=r[1];let v;r[2]!==i||r[3]!==s?(v=C=>fu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=v):v=r[4];let f;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==v?(f={mutationKey:g,mutationFn:v,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=v,r[9]=f):f=r[9],os(f)}function Hp(i){return i.toString()}function Gp(i){return i.toString()}function gu(i,n){const r=wn.c(10),{baseUrl:s,queryClient:u}=Jn();let g;r[0]!==n?(g=[...n.map(Kp)],r[0]=n,r[1]=g):g=r[1];let v;r[2]!==i||r[3]!==s?(v=C=>uu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=v):v=r[4];let f;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==v?(f={mutationKey:g,mutationFn:v,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=v,r[9]=f):f=r[9],os(f)}function Vp(i){return i.toString()}function Kp(i){return i.toString()}var Hi={exports:{}},Zp=Hi.exports,vu;function Qp(){return vu||(vu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,u=36e5,g="millisecond",v="second",f="minute",C="hour",A="day",E="week",L="month",M="quarter",k="year",I="date",j="Invalid Date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ae=/\[([^\]]+)]|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,se={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 T=["th","st","nd","rd"],D=N%100;return"["+N+(T[(D-20)%10]||T[D]||T[0])+"]"}},le=function(N,T,D){var p=String(N);return!p||p.length>=T?N:""+Array(T+1-p.length).join(D)+N},ue={s:le,z:function(N){var T=-N.utcOffset(),D=Math.abs(T),p=Math.floor(D/60),d=D%60;return(T<=0?"+":"-")+le(p,2,"0")+":"+le(d,2,"0")},m:function N(T,D){if(T.date()<D.date())return-N(D,T);var p=12*(D.year()-T.year())+(D.month()-T.month()),d=T.clone().add(p,L),w=D-d<0,h=T.clone().add(p+(w?-1:1),L);return+(-(p+(D-d)/(w?d-h:h-d))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:L,y:k,w:E,d:A,D:I,h:C,m:f,s:v,ms:g,Q:M}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},Z="en",ce={};ce[Z]=se;var Q="$isDayjsObject",V=function(N){return N instanceof De||!(!N||!N[Q])},de=function N(T,D,p){var d;if(!T)return Z;if(typeof T=="string"){var w=T.toLowerCase();ce[w]&&(d=w),D&&(ce[w]=D,d=w);var h=T.split("-");if(!d&&h.length>1)return N(h[0])}else{var m=T.name;ce[m]=T,d=m}return!p&&d&&(Z=d),d||!p&&Z},fe=function(N,T){if(V(N))return N.clone();var D=typeof T=="object"?T:{};return D.date=N,D.args=arguments,new De(D)},re=ue;re.l=de,re.i=V,re.w=function(N,T){return fe(N,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var De=function(){function N(D){this.$L=de(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[Q]=!0}var T=N.prototype;return T.parse=function(D){this.$d=function(p){var d=p.date,w=p.utc;if(d===null)return new Date(NaN);if(re.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var h=d.match(H);if(h){var m=h[2]-1||0,S=(h[7]||"0").substring(0,3);return w?new Date(Date.UTC(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,S)):new Date(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,S)}}return new Date(d)}(D),this.init()},T.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},T.$utils=function(){return re},T.isValid=function(){return this.$d.toString()!==j},T.isSame=function(D,p){var d=fe(D);return this.startOf(p)<=d&&d<=this.endOf(p)},T.isAfter=function(D,p){return fe(D)<this.startOf(p)},T.isBefore=function(D,p){return this.endOf(p)<fe(D)},T.$g=function(D,p,d){return re.u(D)?this[p]:this.set(d,D)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(D,p){var d=this,w=!!re.u(p)||p,h=re.p(D),m=function(ye,pe){var xe=re.w(d.$u?Date.UTC(d.$y,pe,ye):new Date(d.$y,pe,ye),d);return w?xe:xe.endOf(A)},S=function(ye,pe){return re.w(d.toDate()[ye].apply(d.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(pe)),d)},B=this.$W,G=this.$M,oe=this.$D,ne="set"+(this.$u?"UTC":"");switch(h){case k:return w?m(1,0):m(31,11);case L:return w?m(1,G):m(0,G+1);case E:var be=this.$locale().weekStart||0,ee=(B<be?B+7:B)-be;return m(w?oe-ee:oe+(6-ee),G);case A:case I:return S(ne+"Hours",0);case C:return S(ne+"Minutes",1);case f:return S(ne+"Seconds",2);case v:return S(ne+"Milliseconds",3);default:return this.clone()}},T.endOf=function(D){return this.startOf(D,!1)},T.$set=function(D,p){var d,w=re.p(D),h="set"+(this.$u?"UTC":""),m=(d={},d[A]=h+"Date",d[I]=h+"Date",d[L]=h+"Month",d[k]=h+"FullYear",d[C]=h+"Hours",d[f]=h+"Minutes",d[v]=h+"Seconds",d[g]=h+"Milliseconds",d)[w],S=w===A?this.$D+(p-this.$W):p;if(w===L||w===k){var B=this.clone().set(I,1);B.$d[m](S),B.init(),this.$d=B.set(I,Math.min(this.$D,B.daysInMonth())).$d}else m&&this.$d[m](S);return this.init(),this},T.set=function(D,p){return this.clone().$set(D,p)},T.get=function(D){return this[re.p(D)]()},T.add=function(D,p){var d,w=this;D=Number(D);var h=re.p(p),m=function(G){var oe=fe(w);return re.w(oe.date(oe.date()+Math.round(G*D)),w)};if(h===L)return this.set(L,this.$M+D);if(h===k)return this.set(k,this.$y+D);if(h===A)return m(1);if(h===E)return m(7);var S=(d={},d[f]=s,d[C]=u,d[v]=r,d)[h]||1,B=this.$d.getTime()+D*S;return re.w(B,this)},T.subtract=function(D,p){return this.add(-1*D,p)},T.format=function(D){var p=this,d=this.$locale();if(!this.isValid())return d.invalidDate||j;var w=D||"YYYY-MM-DDTHH:mm:ssZ",h=re.z(this),m=this.$H,S=this.$m,B=this.$M,G=d.weekdays,oe=d.months,ne=d.meridiem,be=function(pe,xe,$,K){return pe&&(pe[xe]||pe(p,w))||$[xe].slice(0,K)},ee=function(pe){return re.s(m%12||12,pe,"0")},ye=ne||function(pe,xe,$){var K=pe<12?"AM":"PM";return $?K.toLowerCase():K};return w.replace(ae,function(pe,xe){return xe||function($){switch($){case"YY":return String(p.$y).slice(-2);case"YYYY":return re.s(p.$y,4,"0");case"M":return B+1;case"MM":return re.s(B+1,2,"0");case"MMM":return be(d.monthsShort,B,oe,3);case"MMMM":return be(oe,B);case"D":return p.$D;case"DD":return re.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return be(d.weekdaysMin,p.$W,G,2);case"ddd":return be(d.weekdaysShort,p.$W,G,3);case"dddd":return G[p.$W];case"H":return String(m);case"HH":return re.s(m,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ye(m,S,!0);case"A":return ye(m,S,!1);case"m":return String(S);case"mm":return re.s(S,2,"0");case"s":return String(p.$s);case"ss":return re.s(p.$s,2,"0");case"SSS":return re.s(p.$ms,3,"0");case"Z":return h}return null}(pe)||h.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(D,p,d){var w,h=this,m=re.p(p),S=fe(D),B=(S.utcOffset()-this.utcOffset())*s,G=this-S,oe=function(){return re.m(h,S)};switch(m){case k:w=oe()/12;break;case L:w=oe();break;case M:w=oe()/3;break;case E:w=(G-B)/6048e5;break;case A:w=(G-B)/864e5;break;case C:w=G/u;break;case f:w=G/s;break;case v:w=G/r;break;default:w=G}return d?w:re.a(w)},T.daysInMonth=function(){return this.endOf(L).$D},T.$locale=function(){return ce[this.$L]},T.locale=function(D,p){if(!D)return this.$L;var d=this.clone(),w=de(D,p,!0);return w&&(d.$L=w),d},T.clone=function(){return re.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},N}(),Oe=De.prototype;return fe.prototype=Oe,[["$ms",g],["$s",v],["$m",f],["$H",C],["$W",A],["$M",L],["$y",k],["$D",I]].forEach(function(N){Oe[N[1]]=function(T){return this.$g(T,N[0],N[1])}}),fe.extend=function(N,T){return N.$i||(N(T,De,fe),N.$i=!0),fe},fe.locale=de,fe.isDayjs=V,fe.unix=function(N){return fe(1e3*N)},fe.en=ce[Z],fe.Ls=ce,fe.p={},fe})}(Hi)),Hi.exports}var Jp=Qp();const Te=el(Jp);function Xp({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:u}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=u[n-1][u[n-1].length-1]-1?u[n-1].length-1:u[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===u[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===u[n].length-2&&s>=u[n][u[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:u[n-1].length-1,cellIndex:u[n-1][u[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:u[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===u[n].length-1&&s===u[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===u[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function mu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:u,size:g}){const v=Xp({direction:n,size:g,rowIndex:s,cellIndex:u,levelIndex:r});if(!v)return;const f=i.current?.[v.levelIndex]?.[v.rowIndex]?.[v.cellIndex];f&&(f.disabled||f.getAttribute("data-hidden")||f.getAttribute("data-outside")?mu({controlsRef:i,direction:n,levelIndex:v.levelIndex,cellIndex:v.cellIndex,rowIndex:v.rowIndex,size:g}):f.focus())}function eg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function tg(i){return i.current?.map(n=>n.map(r=>r.length))}function As({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:u}){const g=eg(u.key);if(g){u.preventDefault();const v=tg(i);mu({controlsRef:i,direction:g,levelIndex:n,rowIndex:r,cellIndex:s,size:v})}}function ln(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function yu(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ng={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},rg=me.createContext(ng);function Xn(){const i=me.useContext(rg),n=me.useCallback(g=>g||i.locale,[i.locale]),r=me.useCallback(g=>typeof g=="number"?g:i.firstDayOfWeek,[i.firstDayOfWeek]),s=me.useCallback(g=>Array.isArray(g)?g:i.weekendDays,[i.weekendDays]),u=me.useCallback(g=>typeof g=="string"?g:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:u}}function ig({value:i,type:n,withTime:r}){const s=r?yu:ln;if(n==="range"&&Array.isArray(i)){const u=s(i[0]),g=s(i[1]);return u?g?`${u} – ${g}`:`${u} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function _u({value:i,type:n,name:r,form:s,withTime:u=!1}){return O.jsx("input",{type:"hidden",value:ig({value:i,type:n,withTime:u}),name:r,form:s})}_u.displayName="@mantine/dates/HiddenDatesInput";function wu(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var u=i.length;for(n=0;n<u;n++)i[n]&&(r=wu(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ht(){for(var i,n,r=0,s="",u=arguments.length;r<u;r++)(i=arguments[r])&&(n=wu(i))&&(s&&(s+=" "),s+=n);return s}var bu={day:"m_396ce5cb"};const og=W.createVarsResolver((i,{size:n})=>({day:{"--day-size":W.getSize(n,"day-size")}})),Os=W.factory((i,n)=>{const r=W.useProps("Day",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,date:A,disabled:E,__staticSelector:L,weekend:M,outside:k,selected:I,renderDay:j,inRange:H,firstInRange:ae,lastInRange:se,hidden:le,static:ue,highlightToday:Z,attributes:ce,...Q}=r,V=W.useStyles({name:L||"Day",classes:bu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:ce,vars:C,varsResolver:og,rootSelector:"day"});return O.jsx(W.UnstyledButton,{...V("day",{style:le?{display:"none"}:void 0}),component:ue?"div":"button",ref:n,disabled:E,"data-today":Te(A).isSame(new Date,"day")||void 0,"data-hidden":le||void 0,"data-highlight-today":Z||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!k&&M||void 0,"data-outside":!E&&k||void 0,"data-selected":!E&&I||void 0,"data-in-range":H&&!E||void 0,"data-first-in-range":ae&&!E||void 0,"data-last-in-range":se&&!E||void 0,"data-static":ue||void 0,unstyled:f,...Q,children:j?.(A)||Te(A).date()})});Os.classes=bu,Os.displayName="@mantine/dates/Day";function sg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),u=[];for(let g=0;g<7;g+=1)typeof n=="string"?u.push(Te(s).add(g,"days").locale(i).format(n)):u.push(n(Te(s).add(g,"days").format("YYYY-MM-DD")));return u}var xu={weekday:"m_18a3eca"};const ag=W.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":W.getFontSize(n),"--wr-spacing":W.getSpacing(n)}})),Es=W.factory((i,n)=>{const r=W.useProps("WeekdaysRow",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,locale:A,firstDayOfWeek:E,weekdayFormat:L,cellComponent:M="th",__staticSelector:k,withWeekNumbers:I,attributes:j,...H}=r,ae=W.useStyles({name:k||"WeekdaysRow",classes:xu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:j,vars:C,varsResolver:ag,rootSelector:"weekdaysRow"}),se=Xn(),le=sg({locale:se.getLocale(A),format:L,firstDayOfWeek:se.getFirstDayOfWeek(E)}).map((ue,Z)=>O.jsx(M,{...ae("weekday"),children:ue},Z));return O.jsxs(W.Box,{component:"tr",ref:n,...ae("weekdaysRow"),...H,children:[I&&O.jsx(M,{...ae("weekday"),children:"#"}),le]})});Es.classes=xu,Es.displayName="@mantine/dates/WeekdaysRow";function lg(i,n=1){let r=Te(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function ug(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function cg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),u=Te(s.format("YYYY-M-D")),g=u.format("YYYY-MM-DD"),v=u.add(+u.daysInMonth()-1,"day").format("YYYY-MM-DD"),f=lg(v,n),C=[];let A=Te(ug(g,n));for(;Te(A).isBefore(f,"day");){const E=[];for(let L=0;L<7;L+=1)E.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");C.push(E)}if(r&&C.length<6){const E=C[C.length-1],L=E[E.length-1];let M=Te(L).add(1,"day");for(;C.length<6;){const k=[];for(let I=0;I<7;I+=1)k.push(M.format("YYYY-MM-DD")),M=M.add(1,"day");C.push(k)}}return C}function Ts(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Cu(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Su(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function fg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:u,hideOutsideDates:g,month:v}){const f=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!u?.(E)&&!s?.(E)?.disabled&&(!g||Ts(E,v))),C=f.find(E=>s?.(E)?.selected);if(C)return C;const A=f.find(E=>Te().isSame(E,"date"));return A||f[0]}var Gi={exports:{}},hg=Gi.exports,Du;function dg(){return Du||(Du=1,function(i,n){(function(r,s){i.exports=s()})(hg,function(){var r="day";return function(s,u,g){var v=function(A){return A.add(4-A.isoWeekday(),r)},f=u.prototype;f.isoWeekYear=function(){return v(this).year()},f.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var E,L,M,k,I=v(this),j=(E=this.isoWeekYear(),L=this.$u,M=(L?g.utc:g)().year(E).startOf("year"),k=4-M.isoWeekday(),M.isoWeekday()>4&&(k+=7),M.add(k,r));return I.diff(j,"week")+1},f.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var C=f.startOf;f.startOf=function(A,E){var L=this.$utils(),M=!!L.u(E)||E;return L.p(A)==="isoweek"?M?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(A,E)}}})}(Gi)),Gi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function vg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var Au={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const mg={withCellSpacing:!0},yg=W.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":W.getFontSize(n),"--wn-size":W.getSize(n,"wn-size")}})),Vi=W.factory((i,n)=>{const r=W.useProps("Month",mg,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,__staticSelector:A,locale:E,firstDayOfWeek:L,weekdayFormat:M,month:k,weekendDays:I,getDayProps:j,excludeDate:H,minDate:ae,maxDate:se,renderDay:le,hideOutsideDates:ue,hideWeekdays:Z,getDayAriaLabel:ce,static:Q,__getDayRef:V,__onDayKeyDown:de,__onDayClick:fe,__onDayMouseEnter:re,__preventFocus:De,__stopPropagation:Oe,withCellSpacing:N,size:T,highlightToday:D,withWeekNumbers:p,attributes:d,...w}=r,h=W.useStyles({name:A||"Month",classes:Au,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:d,vars:C,varsResolver:yg,rootSelector:"month"}),m=Xn(),S=cg({month:k,firstDayOfWeek:m.getFirstDayOfWeek(L),consistentWeeks:m.consistentWeeks}),B=fg({dates:S,minDate:ln(ae),maxDate:ln(se),getDayProps:j,excludeDate:H,hideOutsideDates:ue,month:k}),{resolvedClassNames:G,resolvedStyles:oe}=W.useResolvedStylesApi({classNames:s,styles:v,props:r}),ne=S.map((be,ee)=>{const ye=be.map((pe,xe)=>{const $=!Ts(pe,k),K=ce?.(pe)||Te(pe).locale(E||m.locale).format("D MMMM YYYY"),U=j?.(pe),J=Te(pe).isSame(B,"date");return O.jsx("td",{...h("monthCell"),"data-with-spacing":N||void 0,children:O.jsx(Os,{__staticSelector:A||"Month",classNames:G,styles:oe,unstyled:f,"data-mantine-stop-propagation":Oe||void 0,highlightToday:D,renderDay:le,date:pe,size:T,weekend:m.getWeekendDays(I).includes(Te(pe).get("day")),outside:$,hidden:ue?$:!1,"aria-label":K,static:Q,disabled:H?.(pe)||!Su(pe,ln(se))||!Cu(pe,ln(ae)),ref:te=>{te&&V?.(ee,xe,te)},...U,onKeyDown:te=>{U?.onKeyDown?.(te),de?.(te,{rowIndex:ee,cellIndex:xe,date:pe})},onMouseEnter:te=>{U?.onMouseEnter?.(te),re?.(te,pe)},onClick:te=>{U?.onClick?.(te),fe?.(te,pe)},onMouseDown:te=>{U?.onMouseDown?.(te),De&&te.preventDefault()},tabIndex:De||!J?-1:0})},pe.toString())});return O.jsxs("tr",{...h("monthRow"),children:[p&&O.jsx("td",{...h("weekNumber"),children:vg(be)}),ye]},ee)});return O.jsxs(W.Box,{component:"table",...h("month"),size:T,ref:n,...w,children:[!Z&&O.jsx("thead",{...h("monthThead"),children:O.jsx(Es,{__staticSelector:A||"Month",locale:E,firstDayOfWeek:L,weekdayFormat:M,size:T,classNames:G,styles:oe,unstyled:f,withWeekNumbers:p})}),O.jsx("tbody",{...h("monthTbody"),children:ne})]})});Vi.classes=Au,Vi.displayName="@mantine/dates/Month";var Ou={pickerControl:"m_dc6a3c71"};const _g=W.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":W.getFontSize(n),"--dpc-size":W.getSize(n,"dpc-size")}})),Ki=W.factory((i,n)=>{const r=W.useProps("PickerControl",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,firstInRange:A,lastInRange:E,inRange:L,__staticSelector:M,selected:k,disabled:I,attributes:j,...H}=r,ae=W.useStyles({name:M||"PickerControl",classes:Ou,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:j,vars:C,varsResolver:_g,rootSelector:"pickerControl"});return O.jsx(W.UnstyledButton,{...ae("pickerControl"),ref:n,unstyled:f,"data-picker-control":!0,"data-selected":k&&!I||void 0,"data-disabled":I||void 0,"data-in-range":L&&!I&&!k||void 0,"data-first-in-range":A&&!I||void 0,"data-last-in-range":E&&!I||void 0,disabled:I,...H})});Ki.classes=Ou,Ki.displayName="@mantine/dates/PickerControl";function Eu({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function wg({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const u=i.flat().filter(f=>!Eu({year:f,minDate:n,maxDate:r})&&!s?.(f)?.disabled),g=u.find(f=>s?.(f)?.selected);if(g)return g;const v=u.find(f=>Te().isSame(f,"year"));return v||u[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const u=[[],[],[],[]];for(let g=0;g<4;g+=1){const v=g===3?1:3;for(let f=0;f<v;f+=1)u[g].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return u}var Pu={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const bg={yearsListFormat:"YYYY",withCellSpacing:!0},Zi=W.factory((i,n)=>{const r=W.useProps("YearsList",bg,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,decade:A,yearsListFormat:E,locale:L,minDate:M,maxDate:k,getYearControlProps:I,__staticSelector:j,__getControlRef:H,__onControlKeyDown:ae,__onControlClick:se,__onControlMouseEnter:le,__preventFocus:ue,__stopPropagation:Z,withCellSpacing:ce,size:Q,attributes:V,...de}=r,fe=W.useStyles({name:j||"YearsList",classes:Pu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:V,vars:C,rootSelector:"yearsList"}),re=Xn(),De=Tu(A),Oe=wg({years:De,minDate:M,maxDate:k,getYearControlProps:I}),N=De.map((T,D)=>{const p=T.map((d,w)=>{const h=I?.(d),m=Te(d).isSame(Oe,"year");return O.jsx("td",{...fe("yearsListCell"),"data-with-spacing":ce||void 0,children:O.jsx(Ki,{...fe("yearsListControl"),size:Q,unstyled:f,"data-mantine-stop-propagation":Z||void 0,disabled:Eu({year:d,minDate:M,maxDate:k}),ref:S=>{S&&H?.(D,w,S)},...h,onKeyDown:S=>{h?.onKeyDown?.(S),ae?.(S,{rowIndex:D,cellIndex:w,date:d})},onClick:S=>{h?.onClick?.(S),se?.(S,d)},onMouseEnter:S=>{h?.onMouseEnter?.(S),le?.(S,d)},onMouseDown:S=>{h?.onMouseDown?.(S),ue&&S.preventDefault()},tabIndex:ue||!m?-1:0,children:Te(d).locale(re.getLocale(L)).format(E)})},w)});return O.jsx("tr",{...fe("yearsListRow"),children:p},D)});return O.jsx(W.Box,{component:"table",ref:n,size:Q,...fe("yearsList"),...de,children:O.jsx("tbody",{children:N})})});Zi.classes=Pu,Zi.displayName="@mantine/dates/YearsList";function Mu({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function xg({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const u=i.flat().filter(f=>!Mu({month:f,minDate:n,maxDate:r})&&!s?.(f)?.disabled),g=u.find(f=>s?.(f)?.selected);if(g)return g;const v=u.find(f=>Te().isSame(f,"month"));return v||u[0]}function Cg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let u=0;u<4;u+=1)for(let g=0;g<3;g+=1)r[u].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ru={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Sg={monthsListFormat:"MMM",withCellSpacing:!0},Qi=W.factory((i,n)=>{const r=W.useProps("MonthsList",Sg,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,__staticSelector:A,year:E,monthsListFormat:L,locale:M,minDate:k,maxDate:I,getMonthControlProps:j,__getControlRef:H,__onControlKeyDown:ae,__onControlClick:se,__onControlMouseEnter:le,__preventFocus:ue,__stopPropagation:Z,withCellSpacing:ce,size:Q,attributes:V,...de}=r,fe=W.useStyles({name:A||"MonthsList",classes:Ru,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:V,vars:C,rootSelector:"monthsList"}),re=Xn(),De=Cg(E),Oe=xg({months:De,minDate:ln(k),maxDate:ln(I),getMonthControlProps:j}),N=De.map((T,D)=>{const p=T.map((d,w)=>{const h=j?.(d),m=Te(d).isSame(Oe,"month");return O.jsx("td",{...fe("monthsListCell"),"data-with-spacing":ce||void 0,children:O.jsx(Ki,{...fe("monthsListControl"),size:Q,unstyled:f,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":Z||void 0,disabled:Mu({month:d,minDate:ln(k),maxDate:ln(I)}),ref:S=>{S&&H?.(D,w,S)},...h,onKeyDown:S=>{h?.onKeyDown?.(S),ae?.(S,{rowIndex:D,cellIndex:w,date:d})},onClick:S=>{h?.onClick?.(S),se?.(S,d)},onMouseEnter:S=>{h?.onMouseEnter?.(S),le?.(S,d)},onMouseDown:S=>{h?.onMouseDown?.(S),ue&&S.preventDefault()},tabIndex:ue||!m?-1:0,children:Te(d).locale(re.getLocale(M)).format(L)})},w)});return O.jsx("tr",{...fe("monthsListRow"),children:p},D)});return O.jsx(W.Box,{component:"table",ref:n,size:Q,...fe("monthsList"),...de,children:O.jsx("tbody",{children:N})})});Qi.classes=Ru,Qi.displayName="@mantine/dates/MonthsList";var ku={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Dg={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Ag=W.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":W.getSize(n,"dch-control-size"),"--dch-fz":W.getFontSize(n)}})),er=W.factory((i,n)=>{const r=W.useProps("CalendarHeader",Dg,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,nextIcon:A,previousIcon:E,nextLabel:L,previousLabel:M,onNext:k,onPrevious:I,onLevelClick:j,label:H,nextDisabled:ae,previousDisabled:se,hasNextLevel:le,levelControlAriaLabel:ue,withNext:Z,withPrevious:ce,headerControlsOrder:Q,__staticSelector:V,__preventFocus:de,__stopPropagation:fe,attributes:re,...De}=r,Oe=W.useStyles({name:V||"CalendarHeader",classes:ku,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:re,vars:C,varsResolver:Ag,rootSelector:"calendarHeader"}),N=de?w=>w.preventDefault():void 0,T=ce&&me.createElement(W.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":M,onClick:I,unstyled:f,onMouseDown:N,disabled:se,"data-disabled":se||void 0,tabIndex:de||se?-1:0,"data-mantine-stop-propagation":fe||void 0},E||O.jsx(W.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),D=me.createElement(W.UnstyledButton,{component:le?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:le?j:void 0,unstyled:f,onMouseDown:le?N:void 0,disabled:!le,"data-static":!le||void 0,"aria-label":ue,tabIndex:de||!le?-1:0,"data-mantine-stop-propagation":fe||void 0},H),p=Z&&me.createElement(W.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":L,onClick:k,unstyled:f,onMouseDown:N,disabled:ae,"data-disabled":ae||void 0,tabIndex:de||ae?-1:0,"data-mantine-stop-propagation":fe||void 0},A||O.jsx(W.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),d=Q.map(w=>w==="previous"?T:w==="level"?D:w==="next"?p:null);return O.jsx(W.Box,{...Oe("calendarHeader"),ref:n,...De,children:d})});er.classes=ku,er.displayName="@mantine/dates/CalendarHeader";function Og(i){const n=Tu(i);return[n[0][0],n[3][0]]}const Eg={decadeLabelFormat:"YYYY"},Ji=W.factory((i,n)=>{const r=W.useProps("DecadeLevel",Eg,i),{decade:s,locale:u,minDate:g,maxDate:v,yearsListFormat:f,getYearControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,withCellSpacing:k,__preventFocus:I,nextIcon:j,previousIcon:H,nextLabel:ae,previousLabel:se,onNext:le,onPrevious:ue,nextDisabled:Z,previousDisabled:ce,levelControlAriaLabel:Q,withNext:V,withPrevious:de,headerControlsOrder:fe,decadeLabelFormat:re,classNames:De,styles:Oe,unstyled:N,__staticSelector:T,__stopPropagation:D,size:p,attributes:d,...w}=r,h=Xn(),[m,S]=Og(s),B={__staticSelector:T||"DecadeLevel",classNames:De,styles:Oe,unstyled:N,size:p,attributes:d},G=typeof Z=="boolean"?Z:v?!Te(S).endOf("year").isBefore(v):!1,oe=typeof ce=="boolean"?ce:g?!Te(m).startOf("year").isAfter(g):!1,ne=(be,ee)=>Te(be).locale(u||h.locale).format(ee);return O.jsxs(W.Box,{"data-decade-level":!0,size:p,ref:n,...w,children:[O.jsx(er,{label:typeof re=="function"?re(m,S):`${ne(m,re)} – ${ne(S,re)}`,__preventFocus:I,__stopPropagation:D,nextIcon:j,previousIcon:H,nextLabel:ae,previousLabel:se,onNext:le,onPrevious:ue,nextDisabled:G,previousDisabled:oe,hasNextLevel:!1,levelControlAriaLabel:Q,withNext:V,withPrevious:de,headerControlsOrder:fe,...B}),O.jsx(Zi,{decade:s,locale:u,minDate:g,maxDate:v,yearsListFormat:f,getYearControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,__preventFocus:I,__stopPropagation:D,withCellSpacing:k,...B})]})});Ji.classes={...Zi.classes,...er.classes},Ji.displayName="@mantine/dates/DecadeLevel";const Tg={yearLabelFormat:"YYYY"},Xi=W.factory((i,n)=>{const r=W.useProps("YearLevel",Tg,i),{year:s,locale:u,minDate:g,maxDate:v,monthsListFormat:f,getMonthControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,withCellSpacing:k,__preventFocus:I,nextIcon:j,previousIcon:H,nextLabel:ae,previousLabel:se,onNext:le,onPrevious:ue,onLevelClick:Z,nextDisabled:ce,previousDisabled:Q,hasNextLevel:V,levelControlAriaLabel:de,withNext:fe,withPrevious:re,headerControlsOrder:De,yearLabelFormat:Oe,__staticSelector:N,__stopPropagation:T,size:D,classNames:p,styles:d,unstyled:w,attributes:h,...m}=r,S=Xn(),B={__staticSelector:N||"YearLevel",classNames:p,styles:d,unstyled:w,size:D,attributes:h},G=typeof ce=="boolean"?ce:v?!Te(s).endOf("year").isBefore(v):!1,oe=typeof Q=="boolean"?Q:g?!Te(s).startOf("year").isAfter(g):!1;return O.jsxs(W.Box,{"data-year-level":!0,size:D,ref:n,...m,children:[O.jsx(er,{label:typeof Oe=="function"?Oe(s):Te(s).locale(u||S.locale).format(Oe),__preventFocus:I,__stopPropagation:T,nextIcon:j,previousIcon:H,nextLabel:ae,previousLabel:se,onNext:le,onPrevious:ue,onLevelClick:Z,nextDisabled:G,previousDisabled:oe,hasNextLevel:V,levelControlAriaLabel:de,withNext:fe,withPrevious:re,headerControlsOrder:De,...B}),O.jsx(Qi,{year:s,locale:u,minDate:g,maxDate:v,monthsListFormat:f,getMonthControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,__preventFocus:I,__stopPropagation:T,withCellSpacing:k,...B})]})});Xi.classes={...er.classes,...Qi.classes},Xi.displayName="@mantine/dates/YearLevel";const Pg={monthLabelFormat:"MMMM YYYY"},eo=W.factory((i,n)=>{const r=W.useProps("MonthLevel",Pg,i),{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:j,__getDayRef:H,__onDayKeyDown:ae,__onDayClick:se,__onDayMouseEnter:le,withCellSpacing:ue,highlightToday:Z,withWeekNumbers:ce,__preventFocus:Q,__stopPropagation:V,nextIcon:de,previousIcon:fe,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:N,onLevelClick:T,nextDisabled:D,previousDisabled:p,hasNextLevel:d,levelControlAriaLabel:w,withNext:h,withPrevious:m,headerControlsOrder:S,monthLabelFormat:B,classNames:G,styles:oe,unstyled:ne,__staticSelector:be,size:ee,static:ye,attributes:pe,...xe}=r,$=Xn(),K={__staticSelector:be||"MonthLevel",classNames:G,styles:oe,unstyled:ne,size:ee,attributes:pe},U=typeof D=="boolean"?D:L?!Te(s).endOf("month").isBefore(L):!1,J=typeof p=="boolean"?p:E?!Te(s).startOf("month").isAfter(E):!1;return O.jsxs(W.Box,{"data-month-level":!0,size:ee,ref:n,...xe,children:[O.jsx(er,{label:typeof B=="function"?B(s):Te(s).locale(u||$.locale).format(B),__preventFocus:Q,__stopPropagation:V,nextIcon:de,previousIcon:fe,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:N,onLevelClick:T,nextDisabled:U,previousDisabled:J,hasNextLevel:d,levelControlAriaLabel:w,withNext:h,withPrevious:m,headerControlsOrder:S,...K}),O.jsx(Vi,{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:j,__getDayRef:H,__onDayKeyDown:ae,__onDayClick:se,__onDayMouseEnter:le,__preventFocus:Q,__stopPropagation:V,static:ye,withCellSpacing:ue,highlightToday:Z,withWeekNumbers:ce,...K})]})});eo.classes={...Vi.classes,...er.classes},eo.displayName="@mantine/dates/MonthLevel";var Lu={levelsGroup:"m_30b26e33"};const tr=W.factory((i,n)=>{const r=W.useProps("LevelsGroup",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:f,vars:C,__staticSelector:A,attributes:E,...L}=r,M=W.useStyles({name:A||"LevelsGroup",classes:Lu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:f,attributes:E,vars:C,rootSelector:"levelsGroup"});return O.jsx(W.Box,{ref:n,...M("levelsGroup"),...L})});tr.classes=Lu,tr.displayName="@mantine/dates/LevelsGroup";const Mg={numberOfColumns:1},to=W.factory((i,n)=>{const r=W.useProps("DecadeLevelGroup",Mg,i),{decade:s,locale:u,minDate:g,maxDate:v,yearsListFormat:f,getYearControlProps:C,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:L,__preventFocus:M,nextIcon:k,previousIcon:I,nextLabel:j,previousLabel:H,onNext:ae,onPrevious:se,nextDisabled:le,previousDisabled:ue,headerControlsOrder:Z,classNames:ce,styles:Q,unstyled:V,__staticSelector:de,__stopPropagation:fe,numberOfColumns:re,levelControlAriaLabel:De,decadeLabelFormat:Oe,size:N,vars:T,attributes:D,...p}=r,d=me.useRef([]),w=Array(re).fill(0).map((h,m)=>{const S=Te(s).add(m*10,"years").format("YYYY-MM-DD");return O.jsx(Ji,{size:N,yearsListFormat:f,decade:S,withNext:m===re-1,withPrevious:m===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(B,G)=>As({levelIndex:m,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:B,controlsRef:d}),__getControlRef:(B,G,oe)=>{Array.isArray(d.current[m])||(d.current[m]=[]),Array.isArray(d.current[m][B])||(d.current[m][B]=[]),d.current[m][B][G]=oe},levelControlAriaLabel:typeof De=="function"?De(S):De,locale:u,minDate:g,maxDate:v,__preventFocus:M,__stopPropagation:fe,nextIcon:k,previousIcon:I,nextLabel:j,previousLabel:H,onNext:ae,onPrevious:se,nextDisabled:le,previousDisabled:ue,getYearControlProps:C,__staticSelector:de||"DecadeLevelGroup",classNames:ce,styles:Q,unstyled:V,withCellSpacing:L,headerControlsOrder:Z,attributes:D},m)});return O.jsx(tr,{classNames:ce,styles:Q,__staticSelector:de||"DecadeLevelGroup",ref:n,size:N,unstyled:V,attributes:D,...p,children:w})});to.classes={...tr.classes,...Ji.classes},to.displayName="@mantine/dates/DecadeLevelGroup";const Rg={numberOfColumns:1},no=W.factory((i,n)=>{const r=W.useProps("YearLevelGroup",Rg,i),{year:s,locale:u,minDate:g,maxDate:v,monthsListFormat:f,getMonthControlProps:C,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:L,__preventFocus:M,nextIcon:k,previousIcon:I,nextLabel:j,previousLabel:H,onNext:ae,onPrevious:se,onLevelClick:le,nextDisabled:ue,previousDisabled:Z,hasNextLevel:ce,headerControlsOrder:Q,classNames:V,styles:de,unstyled:fe,__staticSelector:re,__stopPropagation:De,numberOfColumns:Oe,levelControlAriaLabel:N,yearLabelFormat:T,size:D,vars:p,attributes:d,...w}=r,h=me.useRef([]),m=Array(Oe).fill(0).map((S,B)=>{const G=Te(s).add(B,"years").format("YYYY-MM-DD");return O.jsx(Xi,{size:D,monthsListFormat:f,year:G,withNext:B===Oe-1,withPrevious:B===0,yearLabelFormat:T,__stopPropagation:De,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(oe,ne)=>As({levelIndex:B,rowIndex:ne.rowIndex,cellIndex:ne.cellIndex,event:oe,controlsRef:h}),__getControlRef:(oe,ne,be)=>{Array.isArray(h.current[B])||(h.current[B]=[]),Array.isArray(h.current[B][oe])||(h.current[B][oe]=[]),h.current[B][oe][ne]=be},levelControlAriaLabel:typeof N=="function"?N(G):N,locale:u,minDate:g,maxDate:v,__preventFocus:M,nextIcon:k,previousIcon:I,nextLabel:j,previousLabel:H,onNext:ae,onPrevious:se,onLevelClick:le,nextDisabled:ue,previousDisabled:Z,hasNextLevel:ce,getMonthControlProps:C,classNames:V,styles:de,unstyled:fe,__staticSelector:re||"YearLevelGroup",withCellSpacing:L,headerControlsOrder:Q,attributes:d},B)});return O.jsx(tr,{classNames:V,styles:de,__staticSelector:re||"YearLevelGroup",ref:n,size:D,unstyled:fe,attributes:d,...w,children:m})});no.classes={...Xi.classes,...tr.classes},no.displayName="@mantine/dates/YearLevelGroup";const kg={numberOfColumns:1},ro=W.factory((i,n)=>{const r=W.useProps("MonthLevelGroup",kg,i),{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:j,__onDayClick:H,__onDayMouseEnter:ae,withCellSpacing:se,highlightToday:le,withWeekNumbers:ue,__preventFocus:Z,nextIcon:ce,previousIcon:Q,nextLabel:V,previousLabel:de,onNext:fe,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:N,hasNextLevel:T,headerControlsOrder:D,classNames:p,styles:d,unstyled:w,numberOfColumns:h,levelControlAriaLabel:m,monthLabelFormat:S,__staticSelector:B,__stopPropagation:G,size:oe,static:ne,vars:be,attributes:ee,...ye}=r,pe=me.useRef([]),xe=Array(h).fill(0).map(($,K)=>{const U=Te(s).add(K,"months").format("YYYY-MM-DD");return O.jsx(eo,{month:U,withNext:K===h-1,withPrevious:K===0,monthLabelFormat:S,__stopPropagation:G,__onDayClick:H,__onDayMouseEnter:ae,__onDayKeyDown:(J,te)=>As({levelIndex:K,rowIndex:te.rowIndex,cellIndex:te.cellIndex,event:J,controlsRef:pe}),__getDayRef:(J,te,Se)=>{Array.isArray(pe.current[K])||(pe.current[K]=[]),Array.isArray(pe.current[K][J])||(pe.current[K][J]=[]),pe.current[K][J][te]=Se},levelControlAriaLabel:typeof m=="function"?m(U):m,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:j,__preventFocus:Z,nextIcon:ce,previousIcon:Q,nextLabel:V,previousLabel:de,onNext:fe,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:N,hasNextLevel:T,classNames:p,styles:d,unstyled:w,__staticSelector:B||"MonthLevelGroup",size:oe,static:ne,withCellSpacing:se,highlightToday:le,withWeekNumbers:ue,headerControlsOrder:D,attributes:ee},K)});return O.jsx(tr,{classNames:p,styles:d,__staticSelector:B||"MonthLevelGroup",ref:n,size:oe,attributes:ee,...ye,children:xe})});ro.classes={...tr.classes,...eo.classes},ro.displayName="@mantine/dates/MonthLevelGroup";const Nu=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Iu=(i,n)=>{const r=n?yu:ln;return Array.isArray(i)?i.map(r):r(i)};function Ps({type:i,value:n,defaultValue:r,onChange:s,withTime:u=!1}){const g=me.useRef(i),[v,f,C]=Mt.useUncontrolled({value:Iu(n,u),defaultValue:Iu(r,u),finalValue:Nu(i),onChange:s});let A=v;return g.current!==i&&(g.current=i,n===void 0&&(A=r!==void 0?r:Nu(i),f(A))),[A,f,C]}function Ms(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function Lg(i){return i===0?"month":i===1?"year":"decade"}function fi(i,n,r){return Lg(Mt.clamp(Ms(i,0),Ms(n,0),Ms(r,2)))}const Ng={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},io=W.factory((i,n)=>{const r=W.useProps("Calendar",Ng,i),{vars:s,maxLevel:u,minLevel:g,defaultLevel:v,level:f,onLevelChange:C,date:A,defaultDate:E,onDateChange:L,numberOfColumns:M,columnsToScroll:k,ariaLabels:I,nextLabel:j,previousLabel:H,onYearSelect:ae,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:ue,headerControlsOrder:Z,__updateDateOnYearSelect:ce,__updateDateOnMonthSelect:Q,__setDateRef:V,__setLevelRef:de,firstDayOfWeek:fe,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:N,renderDay:T,hideOutsideDates:D,hideWeekdays:p,getDayAriaLabel:d,monthLabelFormat:w,nextIcon:h,previousIcon:m,__onDayClick:S,__onDayMouseEnter:B,withCellSpacing:G,highlightToday:oe,withWeekNumbers:ne,monthsListFormat:be,getMonthControlProps:ee,yearLabelFormat:ye,yearsListFormat:pe,getYearControlProps:xe,decadeLabelFormat:$,classNames:K,styles:U,unstyled:J,minDate:te,maxDate:Se,locale:l,__staticSelector:c,size:_,__preventFocus:R,__stopPropagation:F,onNextDecade:X,onPreviousDecade:Ae,onNextYear:we,onPreviousYear:Pe,onNextMonth:Ce,onPreviousMonth:Le,static:Be,enableKeyboardNavigation:Re,attributes:tt,...Xe}=r,{resolvedClassNames:rt,resolvedStyles:Et}=W.useResolvedStylesApi({classNames:K,styles:U,props:r}),[ut,Ze]=Mt.useUncontrolled({value:f?fi(f,g,u):void 0,defaultValue:v?fi(v,g,u):void 0,finalValue:fi(void 0,g,u),onChange:C}),[un,mt]=Ps({type:"default",value:ln(A),defaultValue:ln(E),onChange:L});me.useImperativeHandle(V,()=>ze=>{mt(ze)}),me.useImperativeHandle(de,()=>ze=>{Ze(ze)});const $t={__staticSelector:c||"Calendar",styles:Et,classNames:rt,unstyled:J,size:_,attributes:tt},Dt=k||M||1,Bt=new Date,Gt=te&&Te(Bt).isAfter(te)?te:Te(Bt).format("YYYY-MM-DD"),yt=un||Gt,cn=()=>{const ze=Te(yt).add(Dt,"month").format("YYYY-MM-DD");Ce?.(ze),mt(ze)},fn=()=>{const ze=Te(yt).subtract(Dt,"month").format("YYYY-MM-DD");Le?.(ze),mt(ze)},jt=()=>{const ze=Te(yt).add(Dt,"year").format("YYYY-MM-DD");we?.(ze),mt(ze)},Vt=()=>{const ze=Te(yt).subtract(Dt,"year").format("YYYY-MM-DD");Pe?.(ze),mt(ze)},Sn=()=>{const ze=Te(yt).add(10*Dt,"year").format("YYYY-MM-DD");X?.(ze),mt(ze)},Yt=()=>{const ze=Te(yt).subtract(10*Dt,"year").format("YYYY-MM-DD");Ae?.(ze),mt(ze)},Kt=me.useRef(null);me.useEffect(()=>{if(!Re||Be)return;const ze=at=>{if(!Kt.current?.contains(document.activeElement))return;const Zt=at.ctrlKey||at.metaKey,Qt=at.shiftKey;switch(at.key){case"ArrowUp":Zt&&Qt?(at.preventDefault(),Yt()):Zt&&(at.preventDefault(),Vt());break;case"ArrowDown":Zt&&Qt?(at.preventDefault(),Sn()):Zt&&(at.preventDefault(),jt());break;case"y":case"Y":ut==="month"&&(at.preventDefault(),Ze("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[Re,Be,ut,jt,Vt,Sn,Yt]);const Ft=ze=>{Kt.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(W.Box,{ref:Ft,size:_,"data-calendar":!0,...Xe,children:[ut==="month"&&O.jsx(ro,{month:yt,minDate:te,maxDate:Se,firstDayOfWeek:fe,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:N,renderDay:T,hideOutsideDates:D,hideWeekdays:p,getDayAriaLabel:d,onNext:cn,onPrevious:fn,hasNextLevel:u!=="month",onLevelClick:()=>Ze("year"),numberOfColumns:M,locale:l,levelControlAriaLabel:I?.monthLevelControl,nextLabel:I?.nextMonth??j,nextIcon:h,previousLabel:I?.previousMonth??H,previousIcon:m,monthLabelFormat:w,__onDayClick:S,__onDayMouseEnter:B,__preventFocus:R,__stopPropagation:F,static:Be,withCellSpacing:G,highlightToday:oe,withWeekNumbers:ne,headerControlsOrder:Z,...$t}),ut==="year"&&O.jsx(no,{year:yt,numberOfColumns:M,minDate:te,maxDate:Se,monthsListFormat:be,getMonthControlProps:ee,locale:l,onNext:jt,onPrevious:Vt,hasNextLevel:u!=="month"&&u!=="year",onLevelClick:()=>Ze("decade"),levelControlAriaLabel:I?.yearLevelControl,nextLabel:I?.nextYear??j,nextIcon:h,previousLabel:I?.previousYear??H,previousIcon:m,yearLabelFormat:ye,__onControlMouseEnter:ue,__onControlClick:(ze,at)=>{Q&&mt(at),Ze(fi("month",g,u)),se?.(at)},__preventFocus:R,__stopPropagation:F,withCellSpacing:G,headerControlsOrder:Z,...$t}),ut==="decade"&&O.jsx(to,{decade:yt,minDate:te,maxDate:Se,yearsListFormat:pe,getYearControlProps:xe,locale:l,onNext:Sn,onPrevious:Yt,numberOfColumns:M,nextLabel:I?.nextDecade??j,nextIcon:h,previousLabel:I?.previousDecade??H,previousIcon:m,decadeLabelFormat:$,__onControlMouseEnter:le,__onControlClick:(ze,at)=>{ce&&mt(at),Ze(fi("year",g,u)),ae?.(at)},__preventFocus:R,__stopPropagation:F,withCellSpacing:G,headerControlsOrder:Z,...$t})]})});io.classes={...to.classes,...no.classes,...ro.classes},io.displayName="@mantine/dates/Calendar";function Ig(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:g,nextIcon:v,previousIcon:f,date:C,defaultDate:A,onDateChange:E,numberOfColumns:L,columnsToScroll:M,ariaLabels:k,nextLabel:I,previousLabel:j,onYearSelect:H,onMonthSelect:ae,onYearMouseEnter:se,onMonthMouseEnter:le,onNextMonth:ue,onPreviousMonth:Z,onNextYear:ce,onPreviousYear:Q,onNextDecade:V,onPreviousDecade:de,withCellSpacing:fe,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:N,__setLevelRef:T,withWeekNumbers:D,headerControlsOrder:p,firstDayOfWeek:d,weekdayFormat:w,weekendDays:h,getDayProps:m,excludeDate:S,renderDay:B,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:ne,monthLabelFormat:be,monthsListFormat:ee,getMonthControlProps:ye,yearLabelFormat:pe,yearsListFormat:xe,getYearControlProps:$,decadeLabelFormat:K,allowSingleDateInRange:U,allowDeselect:J,minDate:te,maxDate:Se,locale:l,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:g,nextIcon:v,previousIcon:f,date:C,defaultDate:A,onDateChange:E,numberOfColumns:L,columnsToScroll:M,ariaLabels:k,nextLabel:I,previousLabel:j,onYearSelect:H,onMonthSelect:ae,onYearMouseEnter:se,onMonthMouseEnter:le,onNextMonth:ue,onPreviousMonth:Z,onNextYear:ce,onPreviousYear:Q,onNextDecade:V,onPreviousDecade:de,withCellSpacing:fe,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:N,withWeekNumbers:D,headerControlsOrder:p,firstDayOfWeek:d,weekdayFormat:w,weekendDays:h,getDayProps:m,excludeDate:S,renderDay:B,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:ne,monthLabelFormat:be,monthsListFormat:ee,getMonthControlProps:ye,yearLabelFormat:pe,yearsListFormat:xe,getYearControlProps:$,decadeLabelFormat:K,allowSingleDateInRange:U,allowDeselect:J,minDate:te,maxDate:Se,locale:l},others:c}}function $g(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Te(n).format("YYYY-MM-DD")}function Bg({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Te(i).isAfter(n,"date")||r&&Te(i).isBefore(r,"date"))}const jg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},oo=W.factory((i,n)=>{const r=W.useInputProps("DateInput",jg,i),{inputProps:s,wrapperProps:u,value:g,defaultValue:v,onChange:f,clearable:C,clearButtonProps:A,popoverProps:E,getDayProps:L,locale:M,valueFormat:k,dateParser:I,minDate:j,maxDate:H,fixOnBlur:ae,onFocus:se,onBlur:le,onClick:ue,onKeyDown:Z,readOnly:ce,name:Q,form:V,rightSection:de,unstyled:fe,classNames:re,styles:De,allowDeselect:Oe,date:N,defaultDate:T,onDateChange:D,getMonthControlProps:p,getYearControlProps:d,...w}=r,h=me.useRef(null),m=me.useRef(null),[S,B]=me.useState(!1),{calendarProps:G,others:oe}=Ig(w),ne=Xn(),ee=I||(we=>{const Pe=Te(we,k,ne.getLocale(M)).toDate();return Number.isNaN(Pe.getTime())?$g(we):Te(Pe).format("YYYY-MM-DD")}),ye=Oe!==void 0?Oe:C,pe=we=>we?Te(we).locale(ne.getLocale(M)).format(k):"",[xe,$,K]=Ps({type:"default",value:g,defaultValue:v,onChange:f}),[U,J]=Ps({type:"default",value:N,defaultValue:v||T,onChange:D});me.useEffect(()=>{K&&g!==null&&J(g)},[K,g]);const[te,Se]=me.useState(pe(xe));me.useEffect(()=>{Se(pe(xe))},[ne.getLocale(M)]);const l=we=>{const Pe=we.currentTarget.value;if(Se(Pe),B(!0),Pe.trim()===""&&C)$(null);else{const Ce=ee(Pe);Ce&&Bg({date:Ce,minDate:j,maxDate:H})&&($(Ce),J(Ce))}},c=we=>{le?.(we),B(!1),ae&&Se(pe(xe))},_=we=>{se?.(we),B(!0)},R=we=>{ue?.(we),B(!0)},F=we=>{we.key==="Escape"&&B(!1),Z?.(we)},X=we=>({...L?.(we),selected:Te(xe).isSame(we,"day"),onClick:Pe=>{L?.(we).onClick?.(Pe);const Ce=C&&ye&&Te(xe).isSame(we,"day")?null:we;$(Ce),!K&&Ce&&Se(pe(Ce)),B(!1)}}),Ae=de||(C&&xe&&!ce?O.jsx(W.CloseButton,{variant:"transparent",onMouseDown:we=>we.preventDefault(),tabIndex:-1,onClick:()=>{$(null),!K&&Se(""),B(!1)},unstyled:fe,size:s.size||"sm",...A}):null);return Mt.useDidUpdate(()=>{xe!==void 0&&!S&&Se(pe(xe))},[xe]),Mt.useClickOutside(()=>B(!1),void 0,[h.current,m.current]),O.jsxs(O.Fragment,{children:[O.jsx(W.Input.Wrapper,{...u,__staticSelector:"DateInput",ref:h,children:O.jsxs(W.Popover,{opened:S,trapFocus:!1,position:"bottom-start",disabled:ce,withRoles:!1,unstyled:fe,...E,children:[O.jsx(W.Popover.Target,{children:O.jsx(W.Input,{"data-dates-input":!0,"data-read-only":ce||void 0,autoComplete:"off",ref:n,value:te,onChange:l,onBlur:c,onFocus:_,onClick:R,onKeyDown:F,readOnly:ce,rightSection:Ae,...s,...oe,__staticSelector:"DateInput"})}),O.jsx(W.Popover.Dropdown,{onMouseDown:we=>we.preventDefault(),"data-dates-dropdown":!0,ref:m,children:O.jsx(io,{__staticSelector:"DateInput",...G,classNames:re,styles:De,unstyled:fe,__preventFocus:!0,minDate:j,maxDate:H,locale:M,getDayProps:X,size:s.size,date:U,onDateChange:J,getMonthControlProps:we=>({selected:typeof xe=="string"?Ts(we,xe):!1,...p?.(we)}),getYearControlProps:we=>({selected:typeof xe=="string"?Te(we).isSame(xe,"year"):!1,...d?.(we)}),attributes:u.attributes})})]})}),O.jsx(_u,{name:Q,form:V,value:xe,type:"default"})]})});oo.classes={...W.Input.classes,...io.classes},oo.displayName="@mantine/dates/DateInput";function Yg(i){const n=wn.c(47),{fields:r,onClose:s,queryKey:u,apiPath:g,steps:v,onCreated:f}=i,[C,A]=me.useState(0),[E,L]=me.useState(!1),[M,k]=me.useState(),{mutateAsync:I,isError:j,error:H,isPending:ae}=pu(g,u),{mutateAsync:se,isPending:le}=Ds(g,u),ue=ae||le;let Z;n[0]!==r?(Z=new Set(r.filter(Hg).map(qg)),n[0]=r,n[1]=Z):Z=n[1];let ce;n[2]!==Z?(ce=[...Z],n[2]=Z,n[3]=ce):ce=n[3];const Q=ce;let V;n[4]!==r?(V=r.reduce(zg,{}),n[4]=r,n[5]=V):V=n[5];let de;n[6]!==r?(de=r.filter(Ug).reduce(Fg,{}),n[6]=r,n[7]=de):de=n[7];let fe;n[8]!==V||n[9]!==de?(fe={mode:"uncontrolled",initialValues:V,validate:de},n[8]=V,n[9]=de,n[10]=fe):fe=n[10];const re=Xa.useForm(fe);let De;n[11]!==re||n[12]!==M?(De=function(m){return O.jsxs(me.Fragment,{children:[(m.type===void 0||m.type=="text")&&O.jsx(W.TextInput,{label:m.column.title,placeholder:m.placeholder??"",...re.getInputProps(m.id),type:m.id.includes("email")?"email":void 0},re.key(m.id)),m.type==="number"&&O.jsx(W.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...re.getInputProps(m.id)},re.key(m.id)),m.type==="date"&&O.jsx(oo,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(m.id)},re.key(m.id)),m.type==="boolean"&&O.jsx(W.Checkbox,{mt:"md",label:m.column.title,...re.getInputProps(m.id,{type:"checkbox"})},re.key(m.id)),m.type==="custom"&&m.render&&m.render({...re.getValues(),...M&&{id:M}},re.setValues,L)]},m.id)},n[11]=re,n[12]=M,n[13]=De):De=n[13];const Oe=De;let N;n[14]!==H?.message||n[15]!==H?.name||n[16]!==j?(N=j&&O.jsx(W.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[14]=H?.message,n[15]=H?.name,n[16]=j,n[17]=N):N=n[17];let T;n[18]!==C||n[19]!==I||n[20]!==re||n[21]!==j||n[22]!==s||n[23]!==f||n[24]!==M||n[25]!==Q.length||n[26]!==se?(T=re.onSubmit(async h=>{if(M)await se({...h,id:M});else{const m=await I(h);k(m.id),f?.(m.id)}Q.length&&C<Q.length-1?j||A(C+1):j||(re.setInitialValues(h),re.reset(),s())}),n[18]=C,n[19]=I,n[20]=re,n[21]=j,n[22]=s,n[23]=f,n[24]=M,n[25]=Q.length,n[26]=se,n[27]=T):T=n[27];let D;n[28]!==C||n[29]!==r||n[30]!==Oe||n[31]!==v||n[32]!==Q?(D=Q.length?O.jsx(W.Stepper,{active:C,size:"sm",children:Q.map(h=>O.jsx(W.Stepper.Step,{...v&&v[h-1]?{label:v[h-1].label}:{},children:r.filter(m=>m.step===h).map(m=>Oe(m))},h))}):r.map(h=>Oe(h)),n[28]=C,n[29]=r,n[30]=Oe,n[31]=v,n[32]=Q,n[33]=D):D=n[33];let p;n[34]!==C||n[35]!==E||n[36]!==ue||n[37]!==s||n[38]!==Q.length?(p=!E&&O.jsxs(W.Group,{mt:"md",justify:"end",children:[O.jsx(W.Button,{onClick:()=>Q.length?C===0?s():A(C-1):s(),variant:"outline",children:Q.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(W.Button,{type:"submit",loading:ue,children:Q.length?C===Q.length-1?"Speichern":"Weiter":"Speichern"})]}),n[34]=C,n[35]=E,n[36]=ue,n[37]=s,n[38]=Q.length,n[39]=p):p=n[39];let d;n[40]!==p||n[41]!==T||n[42]!==D?(d=O.jsxs("form",{onSubmit:T,children:[D,p]}),n[40]=p,n[41]=T,n[42]=D,n[43]=d):d=n[43];let w;return n[44]!==d||n[45]!==N?(w=O.jsxs(O.Fragment,{children:[N,d]}),n[44]=d,n[45]=N,n[46]=w):w=n[46],w}function Fg(i,n){return i[n.id]=Wg,i}function Wg(i){return i?null:"Pflichtfeld"}function Ug(i){return i.required}function zg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function qg(i){return i.step}function Hg(i){return typeof i.step=="number"}var[Gg,Rs]=W.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),$u=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:u,setColumnsToggle:g,resetColumnsOrder:v,resetColumnsToggle:f,setColumnWidth:C,setMultipleColumnWidths:A,resetColumnsWidth:E}=i,[L,M]=me.useState(""),[k,I]=me.useState("");return O.jsx(Gg,{value:{sourceColumn:L,setSourceColumn:M,targetColumn:k,setTargetColumn:I,columnsToggle:u,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!L||!k)return;let j=r.indexOf(L),H=r.indexOf(k);if(j!==-1&&H!==-1){let ae=r.splice(j,1)[0];r.splice(H,0,ae),s([...r])}},resetColumnsOrder:v,resetColumnsToggle:f,setColumnWidth:C,setMultipleColumnWidths:A,resetColumnsWidth:E},children:n})};function Vg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Kg(){return O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),O.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),O.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),O.jsx("path",{d:"M3 3l18 18"})]})}function Zg({icon:i,text:n,active:r,children:s}){return O.jsx(W.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||O.jsxs(O.Fragment,{children:[i||O.jsx("div",{className:"mantine-datatable-empty-state-icon",children:O.jsx(Kg,{})}),O.jsx(W.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Z,ce){let Q=[];return Z.forEach(V=>{ce.find(de=>de.accessor===V)&&Q.push(V)}),ce.forEach(V=>{Q.includes(V.accessor)||Q.push(V.accessor)}),Q}function u(Z,ce){let Q=[];return Z.forEach(V=>{ce.find(de=>de.accessor===V.accessor)&&Q.push(V)}),ce.forEach(V=>{Q.find(de=>de.accessor===V.accessor)||Q.push({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})}),Q}function g(Z,ce){let Q=[];return Z.forEach(V=>{let de=Object.keys(V)[0];ce.find(fe=>fe.accessor===de)&&Q.push(V)}),ce.forEach(V=>{let de=V.accessor;if(!Q.find(fe=>Object.keys(fe)[0]===de)){let fe={};fe[de]="",Q.push(fe)}}),Q}function v(){let[Z,ce]=Mt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function Q(fe){i&&ce(fe)}if(!i)return[Z,Q];let V=s(Z,n),de=JSON.stringify(Z);return JSON.stringify(V)!==de&&Q(V),[V,Q]}function f(){let[Z,ce]=Mt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?L:void 0,getInitialValueInEffect:r});function Q(fe){i&&ce(fe)}if(!i)return[Z,Q];let V=u(Z,n),de=JSON.stringify(Z);return JSON.stringify(V)!==de&&Q(V),[u(Z,n),Q]}function C(){let[Z,ce]=Mt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function Q(fe){i&&ce(fe)}if(!i)return[Z,Q];let V=g(Z,n),de=JSON.stringify(Z);return JSON.stringify(V)!==de&&Q(V),[g(Z,n),Q]}let A=n&&n.map(Z=>Z.accessor)||[],E=n&&n.map(Z=>({[Z.accessor]:Z.width??"initial"}))||[],L=n&&n.map(Z=>({accessor:Z.accessor,defaultToggle:Z.defaultToggle||!0,toggleable:Z.toggleable,toggled:Z.defaultToggle===void 0?!0:Z.defaultToggle})),[M,k]=v(),[I,j]=f(),[H,ae]=C(),se=()=>k(A),le=()=>{j(L)},ue=()=>ae(E);return{effectiveColumns:me.useMemo(()=>M?M.map(Z=>n.find(ce=>ce.accessor===Z)).map(Z=>({...Z,hidden:Z?.hidden||!I.find(ce=>ce.accessor===Z?.accessor)?.toggled})).map(Z=>({...Z,width:H.find(ce=>ce[Z?.accessor])?.[Z?.accessor]})):n,[n,M,I,H]),setColumnsOrder:k,columnsOrder:M,resetColumnsOrder:se,columnsToggle:I,setColumnsToggle:j,resetColumnsToggle:le,columnsWidth:H,setColumnsWidth:ae,setColumnWidth:(Z,ce)=>{let Q=H.map(V=>V[Z]?{[Z]:ce}:V);ae(Q)},setMultipleColumnWidths:Z=>{let ce=H.map(Q=>{let V=Object.keys(Q)[0],de=Z.find(fe=>fe.accessor===V);return de?{[V]:de.width}:Q});ae(ce)},resetColumnsWidth:ue}},Bu=typeof window<"u"?me.useLayoutEffect:me.useEffect;function ju(i){let n=me.useRef(i);return n.current=i,n}var Yu="--mantine-datatable-header-height",Fu="--mantine-datatable-footer-height",Wu="--mantine-datatable-selection-column-width",Uu="--mantine-datatable-last-row-border-bottom";function Cn(i,n,r){i?.style.setProperty(n,r)}function ks(i){let n=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];return n?{width:n.inlineSize,height:n.blockSize}:{width:i.contentRect.width,height:i.contentRect.height}}function Ls(i,n,r){if(i){let s=new ResizeObserver(u=>{let g=u[0];g&&n(ks(g))});return s.observe(i),()=>{s.disconnect(),r()}}}function Jg({scrollCallbacks:i,withRowBorders:n}){let r={root:me.useRef(null),table:me.useRef(null),scrollViewport:me.useRef(null),header:me.useRef(null),footer:me.useRef(null),selectionColumnHeader:me.useRef(null)},{root:s,table:u,scrollViewport:g,header:v,footer:f,selectionColumnHeader:C}=r,A=ju({withRowBorders:n}),E=ju(i),L=me.useRef(()=>{}),M=me.useRef(()=>{}),k=me.useCallback(I=>{E.current.onScroll?.(I),L.current()},[]);return me.useEffect(()=>Ls(v.current,I=>{Cn(s.current,Yu,`${I.height}px`)},()=>Cn(s.current,Yu,"0")),[v.current]),me.useEffect(()=>Ls(f.current,I=>{Cn(s.current,Fu,`${I.height}px`)},()=>Cn(s.current,Fu,"0")),[f.current]),me.useEffect(()=>Ls(C.current,I=>{Cn(s.current,Wu,`${I.width}px`)},()=>Cn(s.current,Wu,"0")),[C.current]),Bu(()=>{if(typeof window===void 0)return;let I={top:!0,bottom:!0,left:!0,right:!0},j={width:0,height:0},H={width:0,height:0};function ae(ce,Q){let V=I[ce];return I[ce]=Q,Cn(s.current,`--mantine-datatable-${ce}-shadow-opacity`,Q?"0":"1"),V}function se(){let ce=j.height-H.height,Q=ce<0;Cn(s.current,"--mantine-datatable-footer-position",Q?"relative":"sticky"),Cn(s.current,"--mantine-datatable-footer-bottom",Q?`${ce}px`:"0")}function le(){A.current.withRowBorders&&j.height<H.height?Cn(s.current,Uu,`${W.rem("1px")} solid var(--mantine-datatable-border-color)`):Cn(s.current,Uu,"unset")}M.current=le;function ue(){let ce=E.current,Q=g.current?.scrollTop??0,V=g.current?.scrollLeft??0,de=Q===0,fe=j.height-Q-H.height<1,re=ae("top",de),De=ae("bottom",fe);de&&de!==re&&ce.onScrollToTop?.(),fe&&fe!==De&&ce.onScrollToBottom?.();let Oe=V===0,N=j.width-V-H.width<1,T=ae("left",Oe),D=ae("right",N);Oe&&Oe!==T&&ce.onScrollToLeft?.(),N&&N!==D&&ce.onScrollToRight?.()}L.current=ue;let Z=new ResizeObserver(ce=>{for(let Q of ce)switch(Q.target.tagName){case"TABLE":{j=ks(Q);break}case"DIV":{H=ks(Q);break}}ue(),se(),le()});return Z.observe(u.current),Z.observe(g.current),()=>{Z.disconnect()}},[]),Bu(()=>{M.current()},[n]),{refs:r,onScroll:k}}function Xg(i){let[n,r]=me.useState(null),s=i?.join(":")||"";return me.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function e1(i,n){let r=()=>{n(i.map(u=>u.matches))},s=i.map(u=>{try{return u.addEventListener("change",r),()=>u.removeEventListener("change",r)}catch{return u.addListener(r),()=>u.removeListener(r)}});return()=>{s.forEach(u=>u())}}function t1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function n1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,u]=me.useState(r?n:t1(i,n)),g=me.useRef(null);return me.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(v=>window.matchMedia(v)),u(g.current.map(v=>v.matches)),e1(g.current,v=>{u(v)})},[i]),s}function r1(i){let n=W.useMantineTheme(),r=me.useMemo(()=>i.map(u=>(typeof u=="function"?u(n):u)??""),[i,n]),s=me.useMemo(()=>i.map(()=>!0),[i]);return n1(r,s)}function so(i){let n=W.useMantineTheme(),r=typeof i=="function"?i(n):i;return Mt.useMediaQuery(r||"",!0)}function Ns(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function i1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Is(i,n){return i.filter((r,s,u)=>s===u.findIndex(g=>n(r)===n(g)))}function zu(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function kt(i,n){return typeof n=="string"?zu(i,n):n(i)}function o1({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:f,allowMultiple:C,initiallyExpanded:A}=i;n&&f==="always"?s=n.map(E=>kt(E,r)):A&&(s=n.filter((E,L)=>A({record:E,index:L})).map(E=>kt(E,r)),C||(s=[s[0]]))}let u,g,v=me.useState(s);if(i){let{expandable:f,trigger:C,allowMultiple:A,collapseProps:E,content:L}=i;i.expanded?{recordIds:u,onRecordIdsChange:g}=i.expanded:[u,g]=v;let M=k=>g?.(u.filter(I=>I!==kt(k,r)));return{expandOnClick:C!=="always"&&C!=="never",isRowExpanded:k=>C==="always"?!0:u.includes(kt(k,r)),isExpandable:({record:k,index:I})=>f?f({record:k,index:I}):!0,expandRow:k=>{let I=kt(k,r);g?.(A?[...u,I]:[I])},collapseRow:M,collapseProps:E,content:({record:k,index:I})=>()=>L({record:k,index:I,collapse:()=>M(k)})}}}function s1(i,n){let[r,s]=me.useState(i),[u,g]=me.useState(i),v=Mt.useTimeout(()=>s(!0),0),f=Mt.useTimeout(()=>g(!1),n||200);return me.useEffect(()=>{i?(f.clear(),g(!0),v.start()):(v.clear(),s(!1),f.start())},[v,f,i]),{expanded:r,visible:u}}var $s="mantine-datatable-nowrap",Bs="mantine-datatable-ellipsis",Er="mantine-datatable-pointer-cursor",qu="mantine-datatable-context-menu-cursor",a1="mantine-datatable-text-selection-disabled",ao="mantine-datatable-text-align-left",lo="mantine-datatable-text-align-center",uo="mantine-datatable-text-align-right";function l1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:u,ellipsis:g,textAlign:v,width:f}){return so(r)?O.jsx(W.TableTh,{className:ht({[$s]:u||g,[Bs]:g,[ao]:v==="left",[lo]:v==="center",[uo]:v==="right"},i),style:[{width:f,minWidth:f,maxWidth:f},n],children:s}):null}function u1({shadowVisible:i}){return O.jsx(W.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function c1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:u,selectorCellShadowVisible:g,ref:v}){return O.jsx(W.TableTfoot,{ref:v,className:ht("mantine-datatable-footer",i),style:n,children:O.jsxs(W.TableTr,{children:[u&&O.jsx(u1,{shadowVisible:g}),r.map(({hidden:f,...C})=>{if(f)return null;let{accessor:A,visibleMediaQuery:E,textAlign:L,width:M,footer:k,footerClassName:I,footerStyle:j,noWrap:H,ellipsis:ae}={...s,...C};return O.jsx(l1,{className:I,style:j,visibleMediaQuery:E,textAlign:L,width:M,title:k,noWrap:H,ellipsis:ae},A)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:u,style:g}}){let v=me.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),f=r1(v),C=me.useMemo(()=>n.filter(({hidden:A},E)=>!A&&f?.[E]).length,[n,f]);return C>0?O.jsx(W.TableTh,{colSpan:C,className:ht("mantine-datatable-column-group-header-cell",{[ao]:s==="left",[lo]:s==="center",[uo]:s==="right"},u),style:g,children:r??Ns(i)}):null}function h1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function d1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function p1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[u,{close:g,toggle:v}]=Mt.useDisclosure(!1),f=n?d1:h1,C=Mt.useClickOutside(g);return s&&(C=void 0),O.jsxs(W.Popover,{withArrow:!0,shadow:"md",opened:u,onClose:g,trapFocus:!0,...r,children:[O.jsx(W.PopoverTarget,{children:O.jsx(W.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:A=>{A.preventDefault(),v()},onKeyDown:A=>A.stopPropagation(),children:O.jsx(f,{})})}),O.jsx(W.PopoverDropdown,{ref:C,onClick:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),children:typeof i=="function"?i({close:g}):i})]})}var g1=i=>{let{accessor:n,columnRef:r}=i,[s,u]=me.useState(!1),g=me.useRef(0),v=me.useRef({current:0,next:0}),{setMultipleColumnWidths:f}=Rs(),C=me.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let L=r.current,M=L.nextElementSibling;for(;M;){let le=M.getAttribute("data-accessor");if(le&&le!=="__selection__")break;M=M.nextElementSibling}if(!M)return;let k=M.getAttribute("data-accessor");if(!k)return;let I=k==="__selection__";u(!0),g.current=E.clientX;let j=L.offsetWidth,H=M.offsetWidth;v.current={current:j,next:H};let ae=le=>{if(!r.current)return;let ue=r.current,Z=ue.nextElementSibling;if(!Z)return;let ce=le.clientX-g.current,Q=50,V=v.current.current-Q,de=v.current.next-Q,fe=Math.max(-V,Math.min(ce,de)),re=v.current.current+fe,De=v.current.next-fe;ue.style.width=`${re}px`,Z.style.width=`${De}px`,ue.style.minWidth=`${re}px`,ue.style.maxWidth=`${re}px`,Z.style.minWidth=`${De}px`,Z.style.maxWidth=`${De}px`},se=()=>{if(!r.current)return;let le=r.current,ue=le.nextElementSibling;u(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Z=parseInt(le.style.width)||le.offsetWidth,ce=ue?parseInt(ue.style.width)||ue.offsetWidth:0,Q=[{accessor:n,width:`${Z}px`}];if(ue&&!I){let V=ue.getAttribute("data-accessor");V&&Q.push({accessor:V,width:`${ce}px`})}setTimeout(()=>{f(Q)},0),document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",se)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",ae),document.addEventListener("mouseup",se)},[n,f]),A=me.useCallback(()=>{if(!r.current)return;let E=r.current,L=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let M=[{accessor:n,width:"initial"}];if(L){L.style.width="",L.style.minWidth="",L.style.maxWidth="";let k=L.getAttribute("data-accessor");k&&k!=="__selection__"&&M.push({accessor:k,width:"initial"})}setTimeout(()=>{f(M)},0)},[n,f]);return O.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:C,onDoubleClick:A,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function v1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function m1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 7l4 -4l4 4"}),O.jsx("path",{d:"M8 17l4 4l4 -4"}),O.jsx("path",{d:"M12 3l0 18"})]})}function y1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function _1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:u,sortable:g,draggable:v,toggleable:f,resizable:C,sortIcons:A,textAlign:E,width:L,sortStatus:M,onSortStatusChange:k,filter:I,filterPopoverProps:j,filterPopoverDisableClickOutside:H,filtering:ae,sortKey:se}){let{setSourceColumn:le,setTargetColumn:ue,swapColumns:Z,setColumnsToggle:ce}=Rs(),[Q,V]=me.useState(!1),de=me.useRef(null);if(!so(s))return null;let fe=u??Ns(r),re=typeof fe=="string"?fe:void 0,De=g&&k?w=>{w?.defaultPrevented||k({sortKey:se,columnAccessor:r,direction:M?.columnAccessor===r?M.direction==="asc"?"desc":"asc":M?.direction??"asc"})}:void 0,Oe=w=>{w.stopPropagation(),le(r),V(!1)},N=w=>{w.preventDefault(),ue(r),V(!0)},T=()=>{ue(r),V(!1),Z()},D=()=>{V(!0)},p=()=>{V(!1)},d=w=>{w.stopPropagation(),ce(h=>h.map(m=>m.accessor===r?{...m,toggled:!1}:m))};return O.jsxs(W.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":g,"mantine-datatable-header-cell-toggleable":f,"mantine-datatable-header-cell-resizable":C},i),style:[{width:L,...C?{minWidth:"1px"}:{minWidth:L,maxWidth:L}},n],role:g?"button":void 0,tabIndex:g?0:void 0,onClick:De,onKeyDown:w=>w.key==="Enter"&&De?.(),ref:de,children:[O.jsxs(W.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O.jsxs(W.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":v,"mantine-datatable-header-cell-drag-over":Q}),draggable:v,onDragStart:v?Oe:void 0,onDragEnter:v?D:void 0,onDragOver:v?N:void 0,onDrop:v?T:void 0,onDragLeave:v?p:void 0,children:[v?O.jsx(W.Center,{role:"img","aria-label":"Drag column",children:O.jsx(W.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:w=>{w.stopPropagation()},children:O.jsx(y1,{})})}):null,O.jsx(W.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[ao]:E==="left",[lo]:E==="center",[uo]:E==="right"},$s,Bs),title:re,children:fe})]}),f?O.jsx(W.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:O.jsx(W.ActionIcon,{size:"xs",variant:"light",onClick:d,children:O.jsx(_1,{})})}):null,g||M?.columnAccessor===r?O.jsx(O.Fragment,{children:M?.columnAccessor===r?O.jsx(W.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":M.direction==="desc"}),role:"img","aria-label":`Sorted ${M.direction==="desc"?"descending":"ascending"}`,children:A?.sorted||O.jsx(v1,{})}):O.jsx(W.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:A?.unsorted||O.jsx(m1,{})})}):null,I?O.jsx(p1,{filterPopoverProps:j,isActive:!!ae,filterPopoverDisableClickOutside:H,children:I}):null]}),C&&r!=="__selection__"?O.jsx(g1,{accessor:r,columnRef:de}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:u,indeterminate:g,checkboxProps:v,onChange:f,rowSpan:C,ref:A}){let E=!v.disabled;return O.jsx(W.TableTh,{ref:A,className:ht("mantine-datatable-header-selector-cell",{[Er]:r==="cell"&&E},i),style:n,rowSpan:C,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?f:void 0,children:O.jsx(W.Checkbox,{classNames:E?{input:Er}:void 0,checked:u,indeterminate:g,onChange:f,...v,disabled:!(f||v.onChange)||v.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:u,onSortStatusChange:g,columns:v,defaultColumnProps:f,groups:C,selectionTrigger:A,selectionVisible:E,selectionChecked:L,selectionIndeterminate:M,onSelectionChange:k,selectionCheckboxProps:I,selectorCellShadowVisible:j,selectionColumnClassName:H,selectionColumnStyle:ae,ref:se}){let le=E?O.jsx(b1,{ref:i,className:H,style:ae,trigger:A,shadowVisible:j,checked:L,indeterminate:M,checkboxProps:I,onChange:k,rowSpan:C?2:void 0}):null,{columnsToggle:ue,setColumnsToggle:Z}=Rs(),[ce,Q]=me.useState(!1),V=v.some(re=>re.toggleable),de=V?Object.fromEntries(v.map(({accessor:re,title:De})=>[re,De??Ns(String(re))])):void 0,fe=O.jsxs(W.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:se,onContextMenu:V?re=>{re.preventDefault(),Q(De=>!De)}:void 0,children:[C&&O.jsxs(W.TableTr,{children:[le,C.map(re=>O.jsx(f1,{group:re},re.id))]}),O.jsxs(W.TableTr,{children:[!C&&le,v.map(({hidden:re,...De},Oe)=>{if(re)return null;let{accessor:N,visibleMediaQuery:T,textAlign:D,width:p,title:d,sortable:w,draggable:h,toggleable:m,resizable:S,titleClassName:B,titleStyle:G,filter:oe,filterPopoverProps:ne,filterPopoverDisableClickOutside:be,filtering:ee,sortKey:ye}={...f,...De};return O.jsx(w1,{accessor:N,className:B,style:G,visibleMediaQuery:T,textAlign:D,width:p,title:d,sortable:w,draggable:h,toggleable:m,resizable:S&&Oe<v.length-1,sortStatus:s,sortIcons:u,sortKey:ye,onSortStatusChange:g,filter:oe,filterPopoverProps:ne,filterPopoverDisableClickOutside:be,filtering:ee},N)})]})]});return V?O.jsxs(W.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ce,onChange:Q,children:[O.jsx(W.PopoverTarget,{children:fe}),O.jsx(W.PopoverDropdown,{children:O.jsx(W.Stack,{children:ue.filter(re=>re.toggleable).map(re=>O.jsx(W.Group,{children:O.jsx(W.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[re.accessor],checked:re.toggled,onChange:De=>{Z(ue.map(Oe=>Oe.accessor===re.accessor?{...Oe,toggled:De.currentTarget.checked}:Oe))}})},re.accessor))})})]}):fe}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:u,color:g}){return O.jsx(W.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||O.jsx(W.Loader,{size:s,type:u,color:g}))})}function vt(i,n,r){return i?W.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function S1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:u,stripedColor:g,highlightOnHoverColor:v}){return{"--mantine-datatable-color-light":vt(n,i,"light"),"--mantine-datatable-color-dark":vt(n,i,"dark"),"--mantine-datatable-background-color-light":vt(r,i,"light"),"--mantine-datatable-background-color-dark":vt(r,i,"dark"),"--mantine-datatable-border-color-light":vt(s,i,"light"),"--mantine-datatable-border-color-dark":vt(s,i,"dark"),"--mantine-datatable-row-border-color-light":vt(u,i,"light"),"--mantine-datatable-row-border-color-dark":vt(u,i,"dark"),"--mantine-datatable-striped-color-light":vt(g,i,"light"),"--mantine-datatable-striped-color-dark":vt(g,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":vt(v,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":vt(v,i,"dark")}}function Hu({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":vt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":vt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":vt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":vt(r,i,"dark")}}function D1({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":vt(n,i,"light"),"--mantine-datatable-row-color-dark":vt(n,i,"dark"),"--mantine-datatable-row-background-color-light":vt(r,i,"light"),"--mantine-datatable-row-background-color-dark":vt(r,i,"dark")}}function A1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 9l4 -4l4 4"}),O.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Gu={xs:W.rem(22),sm:W.rem(26),md:W.rem(32),lg:W.rem(38),xl:W.rem(44)};function O1({size:i,label:n,values:r,value:s,activeTextColor:u,activeBackgroundColor:g,onChange:v}){return O.jsxs(W.Group,{gap:"xs",children:[O.jsx(W.Text,{component:"div",size:i,children:n}),O.jsxs(W.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[O.jsx(W.MenuTarget,{children:O.jsx(W.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:O.jsx(A1,{}),style:[{fontWeight:"normal"},f=>({height:Gu[i],paddingLeft:f.spacing[i],paddingRight:f.spacing[i]})],children:s})}),O.jsx(W.MenuDropdown,{children:r.map(f=>{let C=f===s;return O.jsx(W.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":C}),style:[{height:Gu[i]},C&&(u||g)?A=>Hu({theme:A,paginationActiveTextColor:u,paginationActiveBackgroundColor:g}):void 0],disabled:C,onClick:()=>v(f),children:O.jsx(W.Text,{component:"div",size:i,children:f})},f)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:u,paginationWithEdges:g,paginationWithControls:v,paginationActiveTextColor:f,paginationActiveBackgroundColor:C,paginationSize:A,loadingText:E,noRecordsText:L,paginationText:M,totalRecords:k,recordsPerPage:I,onRecordsPerPageChange:j,recordsPerPageLabel:H,recordsPerPageOptions:ae,recordsLength:se,horizontalSpacing:le,paginationWrapBreakpoint:ue,getPaginationControlProps:Z}){let ce;if(k){let V=(s-1)*I+1,de=V+(se||0)-1;ce=M({from:V,to:de,totalRecords:k})}else ce=r?E:L;let Q=so(({breakpoints:V})=>`(min-width: ${typeof ue=="number"?`${W.rem(ue)}rem`:V[ue]||ue})`);return O.jsxs(W.Box,{px:le??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:Q?"row":"column"},n],children:[O.jsx(W.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ce}),ae&&O.jsx(O1,{activeTextColor:f,activeBackgroundColor:C,size:A,label:H,values:ae,value:I,onChange:j}),O.jsx(W.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!se}),control:"mantine-datatable-pagination-pages-control"},style:f||C?V=>Hu({theme:V,paginationActiveTextColor:f,paginationActiveBackgroundColor:C}):void 0,withEdges:g,withControls:v,value:s,onChange:u,size:A,total:Math.ceil(k/I),getControlProps:Z})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:u,onClick:g,onDoubleClick:v,onContextMenu:f,noWrap:C,ellipsis:A,textAlign:E,width:L,accessor:M,render:k,defaultRender:I,customCellAttributes:j}){return so(r)?O.jsx(W.TableTd,{className:ht({[$s]:C||A,[Bs]:A,[Er]:g||v,[qu]:f,[ao]:E==="left",[lo]:E==="center",[uo]:E==="right"},i),style:[{width:L,minWidth:L,maxWidth:L},n],onClick:g,onDoubleClick:v,onContextMenu:f,...j?.(s,u),children:k?k(s,u):I?I(s,u,M):zu(s,M)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:u,visible:g}=s1(i,s?.transitionDuration);return g?O.jsxs(O.Fragment,{children:[O.jsx(W.TableTr,{}),O.jsx(W.TableTr,{children:O.jsx(W.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:O.jsx(W.Collapse,{in:u,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function M1({className:i,style:n,record:r,index:s,trigger:u,onChange:g,withRightShadow:v,checkboxProps:f,getCheckboxProps:C,...A}){let E={...f,...C(r,s)},L=!A.disabled&&!E.disabled,M=k=>{k.stopPropagation(),u==="cell"&&L&&g?.(k)};return O.jsx(W.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Er]:u==="cell"&&L},i),style:n,"data-shadow-visible":v||void 0,onClick:M,children:O.jsx(W.Checkbox,{classNames:L?{input:Er}:void 0,onChange:g,...A,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:u,selectionTrigger:g,selectionVisible:v,selectionChecked:f,onSelectionChange:C,isRecordSelectable:A,selectionCheckboxProps:E,getSelectionCheckboxProps:L,onClick:M,onDoubleClick:k,onContextMenu:I,onCellClick:j,onCellDoubleClick:H,onCellContextMenu:ae,expansion:se,customAttributes:le,color:ue,backgroundColor:Z,className:ce,style:Q,selectorCellShadowVisible:V,selectionColumnClassName:de,selectionColumnStyle:fe,rowFactory:re}){let De=O.jsxs(O.Fragment,{children:[v&&O.jsx(M1,{className:de,style:fe,record:i,index:n,trigger:g,withRightShadow:V,checked:f,disabled:!C||(A?!A(i,n):!1),onChange:C,checkboxProps:E,getCheckboxProps:L}),r.map(({hidden:T,hiddenContent:D,...p},d)=>{if(T||D)return null;let{accessor:w,visibleMediaQuery:h,textAlign:m,noWrap:S,ellipsis:B,width:G,render:oe,cellsClassName:ne,cellsStyle:be,customCellAttributes:ee}={...s,...p};return O.jsx(T1,{className:typeof ne=="function"?ne(i,n):ne,style:be?.(i,n),visibleMediaQuery:h,record:i,index:n,onClick:j?ye=>j({event:ye,record:i,index:n,column:p,columnIndex:d}):void 0,onDoubleClick:H?ye=>H({event:ye,record:i,index:n,column:p,columnIndex:d}):void 0,onContextMenu:ae?ye=>ae({event:ye,record:i,index:n,column:p,columnIndex:d}):void 0,accessor:w,textAlign:m,noWrap:S,ellipsis:B,width:G,render:oe,defaultRender:u,customCellAttributes:ee},w)})]}),Oe=se&&O.jsx(P1,{colSpan:r.filter(({hidden:T})=>!T).length+(v?1:0),open:se.isRowExpanded(i),content:se.content({record:i,index:n}),collapseProps:se.collapseProps}),N=k1({record:i,index:n,selectionChecked:f,onClick:M,onDoubleClick:k,onContextMenu:I,expansion:se,customAttributes:le,color:ue,backgroundColor:Z,className:ce,style:Q});return re?re({record:i,index:n,rowProps:N,children:De,expandedElement:Oe}):O.jsxs(O.Fragment,{children:[O.jsx(W.TableTr,{...N,children:De}),Oe]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:u,onContextMenu:g,expansion:v,customAttributes:f,color:C,backgroundColor:A,className:E,style:L}){return{className:ht("mantine-datatable-row",{[Er]:s||u||v?.isExpandable({record:i,index:n})&&v?.expandOnClick},{[qu]:g},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:M=>{if(v){let{isExpandable:k,isRowExpanded:I,expandOnClick:j,expandRow:H,collapseRow:ae}=v;k({record:i,index:n})&&j&&(I(i)?ae(i):H(i))}s?.({event:M,record:i,index:n})},onDoubleClick:u?M=>u({event:M,record:i,index:n}):void 0,onContextMenu:g?M=>g({event:M,record:i,index:n}):void 0,style:[C||A?M=>{let k=C?.(i,n),I=A?.(i,n);return D1({theme:M,color:k,backgroundColor:I})}:void 0,L?.(i,n)],...f?.(i,n)??{}}}function L1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:u,scrollAreaProps:g}){return O.jsxs(W.ScrollArea,{...g,viewportRef:u,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:r,children:[s,O.jsx(W.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),O.jsx(W.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow")})]})}function N1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:u,maxHeight:g,shadow:v,verticalAlign:f="center",fetching:C,columns:A,storeColumnsKey:E,groups:L,pinFirstColumn:M,pinLastColumn:k,defaultColumnProps:I,defaultColumnRender:j,idAccessor:H="id",records:ae,selectionTrigger:se="checkbox",selectedRecords:le,onSelectedRecordsChange:ue,selectionColumnClassName:Z,selectionColumnStyle:ce,isRecordSelectable:Q,selectionCheckboxProps:V,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:fe=(xt,Mn)=>({"aria-label":`Select record ${Mn+1}`}),sortStatus:re,sortIcons:De,onSortStatusChange:Oe,horizontalSpacing:N,page:T,onPageChange:D,totalRecords:p,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m="Records per page",paginationWithEdges:S,paginationWithControls:B,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:ne="sm",paginationText:be=({from:xt,to:Mn,totalRecords:jn})=>`${xt} - ${Mn} / ${jn}`,paginationWrapBreakpoint:ee="sm",getPaginationControlProps:ye=xt=>xt==="previous"?{"aria-label":"Previous page"}:xt==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:pe,customLoader:xe,loaderSize:$,loaderType:K,loaderColor:U,loadingText:J="...",emptyState:te,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:c,striped:_,noHeader:R,onRowClick:F,onRowDoubleClick:X,onRowContextMenu:Ae,onCellClick:we,onCellDoubleClick:Pe,onCellContextMenu:Ce,onScroll:Le,onScrollToTop:Be,onScrollToBottom:Re,onScrollToLeft:tt,onScrollToRight:Xe,c:rt,backgroundColor:Et,borderColor:ut,rowBorderColor:Ze,stripedColor:un,highlightOnHoverColor:mt,rowColor:$t,rowBackgroundColor:Dt,rowExpansion:Bt,rowClassName:Gt,rowStyle:yt,customRowAttributes:cn,scrollViewportRef:fn,scrollAreaProps:jt,tableRef:Vt,bodyRef:Sn,m:Yt,my:Kt,mx:Ft,mt:ze,mb:at,ml:Zt,mr:Qt,className:Pn,classNames:Wt,style:nr,styles:Qe,rowFactory:_t,tableWrapper:Bn,...Dn}){let xt=me.useMemo(()=>L?.flatMap(Ve=>Ve.columns)??A,[A,L]),Mn=me.useMemo(()=>xt.some(Ve=>Ve.resizable),[xt]),jn=Qg({key:E,columns:xt}),{refs:Jt,onScroll:js}=Jg({scrollCallbacks:{onScroll:Le,onScrollToTop:Be,onScrollToBottom:Re,onScrollToLeft:tt,onScrollToRight:Xe},withRowBorders:Dn.withRowBorders}),Ys=Mt.useMergedRef(Jt.table,Vt),Tr=Mt.useMergedRef(Jt.scrollViewport,fn),Fs=o1({rowExpansion:Bt,records:ae,idAccessor:H}),Pr=me.useCallback(Ve=>{Jt.scrollViewport.current?.scrollTo({top:0,left:0}),D(Ve)},[D,Jt.scrollViewport]),Mr=ae?.length,co=ae?.map(Ve=>kt(Ve,H)),rr=!!le,ir=le?.map(Ve=>kt(Ve,H)),di=co!==void 0&&ir!==void 0&&ir.length>0,Rr=Q?ae?.filter(Q):ae,kr=Rr?.map(Ve=>kt(Ve,H)),Lr=di&&kr.every(Ve=>ir.includes(Ve)),Ws=di&&kr.some(Ve=>ir.includes(Ve)),Us=me.useCallback(()=>{le&&ue&&ue(Lr?le.filter(Ve=>!kr.includes(kt(Ve,H))):Is([...le,...Rr],Ve=>kt(Ve,H)))},[Lr,H,ue,kr,Rr,le]),{lastSelectionChangeIndex:vr,setLastSelectionChangeIndex:fo}=Xg(co),Nr=rr&&!M,pi={m:Yt,my:Kt,mx:Ft,mt:ze,mb:at,ml:Zt,mr:Qt},zs=me.useCallback(({children:Ve})=>Bn?Bn({children:Ve}):Ve,[Bn]);return O.jsx($u,{...jn,children:O.jsxs(W.Box,{ref:Jt.root,...pi,className:ht("mantine-datatable",{"mantine-datatable-with-border":i},Pn,Wt?.root),style:[Ve=>({...S1({theme:Ve,c:rt,backgroundColor:Et,borderColor:ut,rowBorderColor:Ze,stripedColor:un,highlightOnHoverColor:mt}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[v]||v,height:s,minHeight:u,maxHeight:g}),nr,Qe?.root,{position:"relative"}],children:[O.jsx(L1,{viewportRef:Tr,leftShadowBehind:rr||!!M,rightShadowBehind:k,onScrollPositionChange:js,scrollAreaProps:jt,children:O.jsx(zs,{children:O.jsxs(W.Table,{ref:Ys,horizontalSpacing:N,className:ht("mantine-datatable-table",{[a1]:r,"mantine-datatable-vertical-align-top":f==="top","mantine-datatable-vertical-align-bottom":f==="bottom","mantine-datatable-pin-last-column":k,"mantine-datatable-selection-column-visible":rr,"mantine-datatable-pin-first-column":M,"mantine-datatable-resizable-columns":Mn},Wt?.table),style:{...Qe?.table},"data-striped":Mr&&_||void 0,"data-highlight-on-hover":c||void 0,...Dn,children:[R?null:O.jsx($u,{...jn,children:O.jsx(x1,{ref:Jt.header,selectionColumnHeaderRef:Jt.selectionColumnHeader,className:Wt?.header,style:Qe?.header,columns:xt,defaultColumnProps:I,groups:L,sortStatus:re,sortIcons:De,onSortStatusChange:Oe,selectionTrigger:se,selectionVisible:rr,selectionChecked:Lr,selectionIndeterminate:Ws&&!Lr,onSelectionChange:Us,selectionCheckboxProps:{...V,...de},selectorCellShadowVisible:Nr,selectionColumnClassName:Z,selectionColumnStyle:ce})}),O.jsx("tbody",{ref:Sn,children:Mr?ae.map((Ve,Rn)=>{let Ir=kt(Ve,H),gi=ir?.includes(Ir)||!1,vi;return ue&&le&&(vi=ho=>{if(ho.nativeEvent.shiftKey&&vr!==null){let kn=ae.filter(Rn>vr?(Yn,Ln)=>Ln>=vr&&Ln<=Rn&&(Q?Q(Yn,Ln):!0):(Yn,Ln)=>Ln>=Rn&&Ln<=vr&&(Q?Q(Yn,Ln):!0));ue(gi?i1(le,kn,Yn=>kt(Yn,H)):Is([...le,...kn],Yn=>kt(Yn,H)))}else ue(gi?le.filter(kn=>kt(kn,H)!==Ir):Is([...le,Ve],kn=>kt(kn,H)));fo(Rn)}),O.jsx(R1,{record:Ve,index:Rn,columns:xt,defaultColumnProps:I,defaultColumnRender:j,selectionTrigger:se,selectionVisible:rr,selectionChecked:gi,onSelectionChange:vi,isRecordSelectable:Q,selectionCheckboxProps:V,getSelectionCheckboxProps:fe,onClick:F,onDoubleClick:X,onCellClick:we,onCellDoubleClick:Pe,onContextMenu:Ae,onCellContextMenu:Ce,expansion:Fs,color:$t,backgroundColor:Dt,className:Gt,style:yt,customAttributes:cn,selectorCellShadowVisible:Nr,selectionColumnClassName:Z,selectionColumnStyle:ce,idAccessor:H,rowFactory:_t},Ir)}):O.jsx(Vg,{})}),xt.some(({footer:Ve})=>Ve)&&O.jsx(c1,{ref:Jt.footer,className:Wt?.footer,style:Qe?.footer,columns:xt,defaultColumnProps:I,selectionVisible:rr,selectorCellShadowVisible:Nr})]})})}),T&&O.jsx(E1,{className:Wt?.pagination,style:Qe?.pagination,horizontalSpacing:N,fetching:C,page:T,onPageChange:Pr,totalRecords:p,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m,paginationWithEdges:S,paginationWithControls:B,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:ne,paginationText:be,paginationWrapBreakpoint:ee,getPaginationControlProps:ye,noRecordsText:Se,loadingText:J,recordsLength:Mr}),O.jsx(C1,{fetching:C,backgroundBlur:pe,customContent:xe,size:$,type:K,color:U}),O.jsx(Zg,{icon:l,text:Se,active:!C&&!Mr,children:te})]})})}var hi={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=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__",C=500,T="__lodash_placeholder__",M=1,P=2,E=4,I=1,U=2,j=1,ie=2,re=4,se=8,ce=16,K=32,de=64,ee=128,J=256,pe=512,fe=30,te="...",De=800,Oe=16,$=1,k=2,O=3,d=1/0,h=9007199254740991,w=17976931348623157e292,m=NaN,g=4294967295,A=g-1,F=g>>>1,H=[["ary",ee],["bind",j],["bindKey",ie],["curry",se],["curryRight",ce],["flip",pe],["partial",K],["partialRight",de],["rearg",J]],ae="[object Arguments]",ue="[object Array]",we="[object AsyncFunction]",Q="[object Boolean]",he="[object Date]",Ce="[object DOMException]",_e="[object Error]",B="[object Function]",z="[object GeneratorFunction]",W="[object Map]",Z="[object Number]",oe="[object Null]",Te="[object Object]",u="[object Promise]",f="[object Proxy]",_="[object RegExp]",R="[object Set]",q="[object String]",X="[object Symbol]",Ae="[object Undefined]",be="[object WeakMap]",Re="[object WeakSet]",Se="[object ArrayBuffer]",ke="[object DataView]",Ne="[object Float32Array]",Ie="[object Float64Array]",Xe="[object Int8Array]",nt="[object Int16Array]",Ge="[object Int32Array]",wt="[object Uint8Array]",mt="[object Uint8ClampedArray]",lt="[object Uint16Array]",zt="[object Uint32Array]",Ct=/\b__p \+= '';/g,cn=/\b(__p \+=) '' \+/g,fn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Zt=/&(?:amp|lt|gt|quot|#39);/g,Kt=/[&<>"']/g,hn=RegExp(Zt.source),dn=RegExp(Kt.source),at=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,Tn=/<%=([\s\S]+?)%>/g,Nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$n=/^\w*$/,_r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hn=/[\\^$.*+?()[\]{}|]/g,wr=RegExp(Hn.source),pn=/^\s+/,Bn=/\s/,jn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,br=/\{\n\/\* \[wrapped with (.+)\] \*/,At=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,zr=/\\(\\)?/g,En=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,xr=/\w*$/,Rt=/^[-+]0x[0-9a-f]+$/i,gn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,qr=/^0o[0-7]+$/i,ns=/^(?:0|[1-9]\d*)$/,Pa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sr=/($^)/,Na=/['\n\r\u2028\u2029\\]/g,Cr="\\ud800-\\udfff",Hr="\\u0300-\\u036f",$a="\\ufe20-\\ufe2f",Ba="\\u20d0-\\u20ff",rs=Hr+$a+Ba,Ji="\\u2700-\\u27bf",is="a-z\\xdf-\\xf6\\xf8-\\xff",ja="\\xac\\xb1\\xd7\\xf7",Ya="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ua="\\u2000-\\u206f",Xi=" \\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",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",vi="\\ufe0e\\ufe0f",to=ja+Ya+Ua+Xi,Gn="['’]",os="["+Cr+"]",Gr="["+to+"]",Vr="["+rs+"]",ss="\\d+",no="["+Ji+"]",ro="["+is+"]",as="[^"+Cr+to+ss+Ji+is+eo+"]",io="\\ud83c[\\udffb-\\udfff]",yi="(?:"+Vr+"|"+io+")",oo="[^"+Cr+"]",Yn="(?:\\ud83c[\\udde6-\\uddff]){2}",Mn="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+eo+"]",Ar="\\u200d",Zr="(?:"+ro+"|"+as+")",_i="(?:"+Vn+"|"+as+")",us="(?:"+Gn+"(?:d|ll|m|re|s|t|ve))?",ls="(?:"+Gn+"(?:D|LL|M|RE|S|T|VE))?",Kr=yi+"?",cs="["+vi+"]?",so="(?:"+Ar+"(?:"+[oo,Yn,Mn].join("|")+")"+cs+Kr+")*",Fa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ve=cs+Kr+so,Jt="(?:"+[no,Yn,Mn].join("|")+")"+Ve,Dr="(?:"+[oo+Vr+"?",Vr,Yn,Mn,os].join("|")+")",Or=RegExp(Gn,"g"),vn=RegExp(Vr,"g"),Xt=RegExp(io+"(?="+io+")|"+Dr+Ve,"g"),Tr=RegExp([Vn+"?"+ro+"+"+us+"(?="+[Gr,Vn,"$"].join("|")+")",_i+"+"+ls+"(?="+[Gr,Vn+Zr,"$"].join("|")+")",Vn+"?"+Zr+"+"+us,Vn+"+"+ls,Wa,Fa,ss,Jt].join("|"),"g"),Zn=RegExp("["+Ar+Cr+rs+vi+"]"),Kn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,um=["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"],lm=-1,dt={};dt[Ne]=dt[Ie]=dt[Xe]=dt[nt]=dt[Ge]=dt[wt]=dt[mt]=dt[lt]=dt[zt]=!0,dt[ae]=dt[ue]=dt[Se]=dt[Q]=dt[ke]=dt[he]=dt[_e]=dt[B]=dt[W]=dt[Z]=dt[Te]=dt[_]=dt[R]=dt[q]=dt[be]=!1;var ht={};ht[ae]=ht[ue]=ht[Se]=ht[ke]=ht[Q]=ht[he]=ht[Ne]=ht[Ie]=ht[Xe]=ht[nt]=ht[Ge]=ht[W]=ht[Z]=ht[Te]=ht[_]=ht[R]=ht[q]=ht[X]=ht[wt]=ht[mt]=ht[lt]=ht[zt]=!0,ht[_e]=ht[B]=ht[be]=!1;var cm={À:"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"},fm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pm=parseFloat,gm=parseInt,ef=typeof Co=="object"&&Co&&Co.Object===Object&&Co,mm=typeof self=="object"&&self&&self.Object===Object&&self,Lt=ef||mm||Function("return this")(),za=n&&!n.nodeType&&n,Qr=za&&!0&&i&&!i.nodeType&&i,tf=Qr&&Qr.exports===za,qa=tf&&ef.process,yn=function(){try{var G=Qr&&Qr.require&&Qr.require("util").types;return G||qa&&qa.binding&&qa.binding("util")}catch{}}(),nf=yn&&yn.isArrayBuffer,rf=yn&&yn.isDate,of=yn&&yn.isMap,sf=yn&&yn.isRegExp,af=yn&&yn.isSet,uf=yn&&yn.isTypedArray;function en(G,le,ne){switch(ne.length){case 0:return G.call(le);case 1:return G.call(le,ne[0]);case 2:return G.call(le,ne[0],ne[1]);case 3:return G.call(le,ne[0],ne[1],ne[2])}return G.apply(le,ne)}function vm(G,le,ne,Le){for(var Fe=-1,rt=G==null?0:G.length;++Fe<rt;){var Dt=G[Fe];le(Le,Dt,ne(Dt),G)}return Le}function _n(G,le){for(var ne=-1,Le=G==null?0:G.length;++ne<Le&&le(G[ne],ne,G)!==!1;);return G}function ym(G,le){for(var ne=G==null?0:G.length;ne--&&le(G[ne],ne,G)!==!1;);return G}function lf(G,le){for(var ne=-1,Le=G==null?0:G.length;++ne<Le;)if(!le(G[ne],ne,G))return!1;return!0}function Er(G,le){for(var ne=-1,Le=G==null?0:G.length,Fe=0,rt=[];++ne<Le;){var Dt=G[ne];le(Dt,ne,G)&&(rt[Fe++]=Dt)}return rt}function fs(G,le){var ne=G==null?0:G.length;return!!ne&&wi(G,le,0)>-1}function Ha(G,le,ne){for(var Le=-1,Fe=G==null?0:G.length;++Le<Fe;)if(ne(le,G[Le]))return!0;return!1}function gt(G,le){for(var ne=-1,Le=G==null?0:G.length,Fe=Array(Le);++ne<Le;)Fe[ne]=le(G[ne],ne,G);return Fe}function Mr(G,le){for(var ne=-1,Le=le.length,Fe=G.length;++ne<Le;)G[Fe+ne]=le[ne];return G}function Ga(G,le,ne,Le){var Fe=-1,rt=G==null?0:G.length;for(Le&&rt&&(ne=G[++Fe]);++Fe<rt;)ne=le(ne,G[Fe],Fe,G);return ne}function _m(G,le,ne,Le){var Fe=G==null?0:G.length;for(Le&&Fe&&(ne=G[--Fe]);Fe--;)ne=le(ne,G[Fe],Fe,G);return ne}function Va(G,le){for(var ne=-1,Le=G==null?0:G.length;++ne<Le;)if(le(G[ne],ne,G))return!0;return!1}var wm=Za("length");function bm(G){return G.split("")}function xm(G){return G.match(ct)||[]}function cf(G,le,ne){var Le;return ne(G,function(Fe,rt,Dt){if(le(Fe,rt,Dt))return Le=rt,!1}),Le}function hs(G,le,ne,Le){for(var Fe=G.length,rt=ne+(Le?1:-1);Le?rt--:++rt<Fe;)if(le(G[rt],rt,G))return rt;return-1}function wi(G,le,ne){return le===le?Im(G,le,ne):hs(G,ff,ne)}function Sm(G,le,ne,Le){for(var Fe=ne-1,rt=G.length;++Fe<rt;)if(Le(G[Fe],le))return Fe;return-1}function ff(G){return G!==G}function hf(G,le){var ne=G==null?0:G.length;return ne?Qa(G,le)/ne:m}function Za(G){return function(le){return le==null?r:le[G]}}function Ka(G){return function(le){return G==null?r:G[le]}}function df(G,le,ne,Le,Fe){return Fe(G,function(rt,Dt,ft){ne=Le?(Le=!1,rt):le(ne,rt,Dt,ft)}),ne}function Cm(G,le){var ne=G.length;for(G.sort(le);ne--;)G[ne]=G[ne].value;return G}function Qa(G,le){for(var ne,Le=-1,Fe=G.length;++Le<Fe;){var rt=le(G[Le]);rt!==r&&(ne=ne===r?rt:ne+rt)}return ne}function Ja(G,le){for(var ne=-1,Le=Array(G);++ne<G;)Le[ne]=le(ne);return Le}function Am(G,le){return gt(le,function(ne){return[ne,G[ne]]})}function pf(G){return G&&G.slice(0,yf(G)+1).replace(pn,"")}function tn(G){return function(le){return G(le)}}function Xa(G,le){return gt(le,function(ne){return G[ne]})}function ao(G,le){return G.has(le)}function gf(G,le){for(var ne=-1,Le=G.length;++ne<Le&&wi(le,G[ne],0)>-1;);return ne}function mf(G,le){for(var ne=G.length;ne--&&wi(le,G[ne],0)>-1;);return ne}function Dm(G,le){for(var ne=G.length,Le=0;ne--;)G[ne]===le&&++Le;return Le}var Om=Ka(cm),Tm=Ka(fm);function Em(G){return"\\"+dm[G]}function Mm(G,le){return G==null?r:G[le]}function bi(G){return Zn.test(G)}function Rm(G){return Kn.test(G)}function Lm(G){for(var le,ne=[];!(le=G.next()).done;)ne.push(le.value);return ne}function eu(G){var le=-1,ne=Array(G.size);return G.forEach(function(Le,Fe){ne[++le]=[Fe,Le]}),ne}function vf(G,le){return function(ne){return G(le(ne))}}function Rr(G,le){for(var ne=-1,Le=G.length,Fe=0,rt=[];++ne<Le;){var Dt=G[ne];(Dt===le||Dt===T)&&(G[ne]=T,rt[Fe++]=ne)}return rt}function ds(G){var le=-1,ne=Array(G.size);return G.forEach(function(Le){ne[++le]=Le}),ne}function km(G){var le=-1,ne=Array(G.size);return G.forEach(function(Le){ne[++le]=[Le,Le]}),ne}function Im(G,le,ne){for(var Le=ne-1,Fe=G.length;++Le<Fe;)if(G[Le]===le)return Le;return-1}function Pm(G,le,ne){for(var Le=ne+1;Le--;)if(G[Le]===le)return Le;return Le}function xi(G){return bi(G)?$m(G):wm(G)}function Rn(G){return bi(G)?Bm(G):bm(G)}function yf(G){for(var le=G.length;le--&&Bn.test(G.charAt(le)););return le}var Nm=Ka(hm);function $m(G){for(var le=Xt.lastIndex=0;Xt.test(G);)++le;return le}function Bm(G){return G.match(Xt)||[]}function jm(G){return G.match(Tr)||[]}var Ym=function G(le){le=le==null?Lt:Si.defaults(Lt.Object(),le,Si.pick(Lt,um));var ne=le.Array,Le=le.Date,Fe=le.Error,rt=le.Function,Dt=le.Math,ft=le.Object,tu=le.RegExp,Um=le.String,wn=le.TypeError,ps=ne.prototype,Fm=rt.prototype,Ci=ft.prototype,gs=le["__core-js_shared__"],ms=Fm.toString,st=Ci.hasOwnProperty,Wm=0,_f=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),vs=Ci.toString,zm=ms.call(ft),qm=Lt._,Hm=tu("^"+ms.call(st).replace(Hn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ys=tf?le.Buffer:r,Lr=le.Symbol,_s=le.Uint8Array,wf=ys?ys.allocUnsafe:r,ws=vf(ft.getPrototypeOf,ft),bf=ft.create,xf=Ci.propertyIsEnumerable,bs=ps.splice,Sf=Lr?Lr.isConcatSpreadable:r,uo=Lr?Lr.iterator:r,Jr=Lr?Lr.toStringTag:r,xs=function(){try{var e=ri(ft,"defineProperty");return e({},"",{}),e}catch{}}(),Gm=le.clearTimeout!==Lt.clearTimeout&&le.clearTimeout,Vm=Le&&Le.now!==Lt.Date.now&&Le.now,Zm=le.setTimeout!==Lt.setTimeout&&le.setTimeout,Ss=Dt.ceil,Cs=Dt.floor,nu=ft.getOwnPropertySymbols,Km=ys?ys.isBuffer:r,Cf=le.isFinite,Qm=ps.join,Jm=vf(ft.keys,ft),Ot=Dt.max,It=Dt.min,Xm=Le.now,ev=le.parseInt,Af=Dt.random,tv=ps.reverse,ru=ri(le,"DataView"),lo=ri(le,"Map"),iu=ri(le,"Promise"),Ai=ri(le,"Set"),co=ri(le,"WeakMap"),fo=ri(ft,"create"),As=co&&new co,Di={},nv=ii(ru),rv=ii(lo),iv=ii(iu),ov=ii(Ai),sv=ii(co),Ds=Lr?Lr.prototype:r,ho=Ds?Ds.valueOf:r,Df=Ds?Ds.toString:r;function b(e){if(_t(e)&&!We(e)&&!(e instanceof Qe)){if(e instanceof bn)return e;if(st.call(e,"__wrapped__"))return Oh(e)}return new bn(e)}var Oi=function(){function e(){}return function(t){if(!vt(t))return{};if(bf)return bf(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Os(){}function bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:at,evaluate:Qt,interpolate:Tn,variable:"",imports:{_:b}},b.prototype=Os.prototype,b.prototype.constructor=b,bn.prototype=Oi(Os.prototype),bn.prototype.constructor=bn;function Qe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function av(){var e=new Qe(this.__wrapped__);return e.__actions__=qt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qt(this.__views__),e}function uv(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function lv(){var e=this.__wrapped__.value(),t=this.__dir__,o=We(e),a=t<0,y=o?e.length:0,S=by(0,y,this.__views__),L=S.start,Y=S.end,V=Y-L,ge=a?Y:L-1,ve=this.__iteratees__,xe=ve.length,Ee=0,Pe=It(V,this.__takeCount__);if(!o||!a&&y==V&&Pe==V)return Kf(e,this.__actions__);var Be=[];e:for(;V--&&Ee<Pe;){ge+=t;for(var qe=-1,je=e[ge];++qe<xe;){var Ke=ve[qe],et=Ke.iteratee,on=Ke.type,Ut=et(je);if(on==k)je=Ut;else if(!Ut){if(on==$)continue e;break e}}Be[Ee++]=je}return Be}Qe.prototype=Oi(Os.prototype),Qe.prototype.constructor=Qe;function Xr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function cv(){this.__data__=fo?fo(null):{},this.size=0}function fv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function hv(e){var t=this.__data__;if(fo){var o=t[e];return o===x?r:o}return st.call(t,e)?t[e]:r}function dv(e){var t=this.__data__;return fo?t[e]!==r:st.call(t,e)}function pv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=fo&&t===r?x:t,this}Xr.prototype.clear=cv,Xr.prototype.delete=fv,Xr.prototype.get=hv,Xr.prototype.has=dv,Xr.prototype.set=pv;function Qn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function gv(){this.__data__=[],this.size=0}function mv(e){var t=this.__data__,o=Ts(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():bs.call(t,o,1),--this.size,!0}function vv(e){var t=this.__data__,o=Ts(t,e);return o<0?r:t[o][1]}function yv(e){return Ts(this.__data__,e)>-1}function _v(e,t){var o=this.__data__,a=Ts(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Qn.prototype.clear=gv,Qn.prototype.delete=mv,Qn.prototype.get=vv,Qn.prototype.has=yv,Qn.prototype.set=_v;function Jn(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 wv(){this.size=0,this.__data__={hash:new Xr,map:new(lo||Qn),string:new Xr}}function bv(e){var t=Ys(this,e).delete(e);return this.size-=t?1:0,t}function xv(e){return Ys(this,e).get(e)}function Sv(e){return Ys(this,e).has(e)}function Cv(e,t){var o=Ys(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Jn.prototype.clear=wv,Jn.prototype.delete=bv,Jn.prototype.get=xv,Jn.prototype.has=Sv,Jn.prototype.set=Cv;function ei(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Jn;++t<o;)this.add(e[t])}function Av(e){return this.__data__.set(e,x),this}function Dv(e){return this.__data__.has(e)}ei.prototype.add=ei.prototype.push=Av,ei.prototype.has=Dv;function Ln(e){var t=this.__data__=new Qn(e);this.size=t.size}function Ov(){this.__data__=new Qn,this.size=0}function Tv(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Ev(e){return this.__data__.get(e)}function Mv(e){return this.__data__.has(e)}function Rv(e,t){var o=this.__data__;if(o instanceof Qn){var a=o.__data__;if(!lo||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Jn(a)}return o.set(e,t),this.size=o.size,this}Ln.prototype.clear=Ov,Ln.prototype.delete=Tv,Ln.prototype.get=Ev,Ln.prototype.has=Mv,Ln.prototype.set=Rv;function Of(e,t){var o=We(e),a=!o&&oi(e),y=!o&&!a&&$r(e),S=!o&&!a&&!y&&Ri(e),L=o||a||y||S,Y=L?Ja(e.length,Um):[],V=Y.length;for(var ge in e)(t||st.call(e,ge))&&!(L&&(ge=="length"||y&&(ge=="offset"||ge=="parent")||S&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||nr(ge,V)))&&Y.push(ge);return Y}function Tf(e){var t=e.length;return t?e[gu(0,t-1)]:r}function Lv(e,t){return Us(qt(e),ti(t,0,e.length))}function kv(e){return Us(qt(e))}function ou(e,t,o){(o!==r&&!kn(e[t],o)||o===r&&!(t in e))&&Xn(e,t,o)}function po(e,t,o){var a=e[t];(!(st.call(e,t)&&kn(a,o))||o===r&&!(t in e))&&Xn(e,t,o)}function Ts(e,t){for(var o=e.length;o--;)if(kn(e[o][0],t))return o;return-1}function Iv(e,t,o,a){return kr(e,function(y,S,L){t(a,y,o(y),L)}),a}function Ef(e,t){return e&&Fn(t,Et(t),e)}function Pv(e,t){return e&&Fn(t,Gt(t),e)}function Xn(e,t,o){t=="__proto__"&&xs?xs(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=ne(a),S=e==null;++o<a;)y[o]=S?r:Yu(e,t[o]);return y}function ti(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function xn(e,t,o,a,y,S){var L,Y=t&M,V=t&P,ge=t&E;if(o&&(L=y?o(e,a,y,S):o(e)),L!==r)return L;if(!vt(e))return e;var ve=We(e);if(ve){if(L=Sy(e),!Y)return qt(e,L)}else{var xe=Pt(e),Ee=xe==B||xe==z;if($r(e))return Xf(e,Y);if(xe==Te||xe==ae||Ee&&!y){if(L=V||Ee?{}:yh(e),!Y)return V?hy(e,Pv(L,e)):fy(e,Ef(L,e))}else{if(!ht[xe])return y?e:{};L=Cy(e,xe,Y)}}S||(S=new Ln);var Pe=S.get(e);if(Pe)return Pe;S.set(e,L),Gh(e)?e.forEach(function(je){L.add(xn(je,t,o,je,e,S))}):qh(e)&&e.forEach(function(je,Ke){L.set(Ke,xn(je,t,o,Ke,e,S))});var Be=ge?V?Du:Au:V?Gt:Et,qe=ve?r:Be(e);return _n(qe||e,function(je,Ke){qe&&(Ke=je,je=e[Ke]),po(L,Ke,xn(je,t,o,Ke,e,S))}),L}function Nv(e){var t=Et(e);return function(o){return Mf(o,e,t)}}function Mf(e,t,o){var a=o.length;if(e==null)return!a;for(e=ft(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 wn(v);return bo(function(){e.apply(r,o)},t)}function go(e,t,o,a){var y=-1,S=fs,L=!0,Y=e.length,V=[],ge=t.length;if(!Y)return V;o&&(t=gt(t,tn(o))),a?(S=Ha,L=!1):t.length>=l&&(S=ao,L=!1,t=new ei(t));e:for(;++y<Y;){var ve=e[y],xe=o==null?ve:o(ve);if(ve=a||ve!==0?ve:0,L&&xe===xe){for(var Ee=ge;Ee--;)if(t[Ee]===xe)continue e;V.push(ve)}else S(t,xe,a)||V.push(ve)}return V}var kr=ih(Un),Lf=ih(uu,!0);function $v(e,t){var o=!0;return kr(e,function(a,y,S){return o=!!t(a,y,S),o}),o}function Es(e,t,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],L=t(S);if(L!=null&&(Y===r?L===L&&!rn(L):o(L,Y)))var Y=L,V=S}return V}function Bv(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 kr(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=Dy),y||(y=[]);++S<L;){var Y=e[S];t>0&&o(Y)?t>1?kt(Y,t-1,o,a,y):Mr(y,Y):a||(y[y.length]=Y)}return y}var au=oh(),If=oh(!0);function Un(e,t){return e&&au(e,t,Et)}function uu(e,t){return e&&If(e,t,Et)}function Ms(e,t){return Er(t,function(o){return rr(e[o])})}function ni(e,t){t=Pr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[Wn(t[o++])];return o&&o==a?e:r}function Pf(e,t,o){var a=t(e);return We(e)?a:Mr(a,o(e))}function jt(e){return e==null?e===r?Ae:oe:Jr&&Jr in ft(e)?wy(e):ky(e)}function lu(e,t){return e>t}function jv(e,t){return e!=null&&st.call(e,t)}function Yv(e,t){return e!=null&&t in ft(e)}function Uv(e,t,o){return e>=It(t,o)&&e<Ot(t,o)}function cu(e,t,o){for(var a=o?Ha:fs,y=e[0].length,S=e.length,L=S,Y=ne(S),V=1/0,ge=[];L--;){var ve=e[L];L&&t&&(ve=gt(ve,tn(t))),V=It(ve.length,V),Y[L]=!o&&(t||y>=120&&ve.length>=120)?new ei(L&&ve):r}ve=e[0];var xe=-1,Ee=Y[0];e:for(;++xe<y&&ge.length<V;){var Pe=ve[xe],Be=t?t(Pe):Pe;if(Pe=o||Pe!==0?Pe:0,!(Ee?ao(Ee,Be):a(ge,Be,o))){for(L=S;--L;){var qe=Y[L];if(!(qe?ao(qe,Be):a(e[L],Be,o)))continue e}Ee&&Ee.push(Be),ge.push(Pe)}}return ge}function Fv(e,t,o,a){return Un(e,function(y,S,L){t(a,o(y),S,L)}),a}function mo(e,t,o){t=Pr(t,e),e=xh(e,t);var a=e==null?e:e[Wn(Cn(t))];return a==null?r:en(a,e,o)}function Nf(e){return _t(e)&&jt(e)==ae}function Wv(e){return _t(e)&&jt(e)==Se}function zv(e){return _t(e)&&jt(e)==he}function vo(e,t,o,a,y){return e===t?!0:e==null||t==null||!_t(e)&&!_t(t)?e!==e&&t!==t:qv(e,t,o,a,vo,y)}function qv(e,t,o,a,y,S){var L=We(e),Y=We(t),V=L?ue:Pt(e),ge=Y?ue:Pt(t);V=V==ae?Te:V,ge=ge==ae?Te:ge;var ve=V==Te,xe=ge==Te,Ee=V==ge;if(Ee&&$r(e)){if(!$r(t))return!1;L=!0,ve=!1}if(Ee&&!ve)return S||(S=new Ln),L||Ri(e)?gh(e,t,o,a,y,S):yy(e,t,V,o,a,y,S);if(!(o&I)){var Pe=ve&&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 Ln),y(qe,je,o,a,S)}}return Ee?(S||(S=new Ln),_y(e,t,o,a,y,S)):!1}function Hv(e){return _t(e)&&Pt(e)==W}function fu(e,t,o,a){var y=o.length,S=y,L=!a;if(e==null)return!S;for(e=ft(e);y--;){var Y=o[y];if(L&&Y[2]?Y[1]!==e[Y[0]]:!(Y[0]in e))return!1}for(;++y<S;){Y=o[y];var V=Y[0],ge=e[V],ve=Y[1];if(L&&Y[2]){if(ge===r&&!(V in e))return!1}else{var xe=new Ln;if(a)var Ee=a(ge,ve,V,e,t,xe);if(!(Ee===r?vo(ve,ge,I|U,a,xe):Ee))return!1}}return!0}function $f(e){if(!vt(e)||Ty(e))return!1;var t=rr(e)?Hm:mn;return t.test(ii(e))}function Gv(e){return _t(e)&&jt(e)==_}function Vv(e){return _t(e)&&Pt(e)==R}function Zv(e){return _t(e)&&Gs(e.length)&&!!dt[jt(e)]}function Bf(e){return typeof e=="function"?e:e==null?Vt:typeof e=="object"?We(e)?Uf(e[0],e[1]):Yf(e):sd(e)}function hu(e){if(!wo(e))return Jm(e);var t=[];for(var o in ft(e))st.call(e,o)&&o!="constructor"&&t.push(o);return t}function Kv(e){if(!vt(e))return Ly(e);var t=wo(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=Ht(e)?ne(e.length):[];return kr(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 Mu(e)&&_h(t)?wh(Wn(e),t):function(o){var a=Yu(o,e);return a===r&&a===t?Uu(o,e):vo(t,a,I|U)}}function Rs(e,t,o,a,y){e!==t&&au(t,function(S,L){if(y||(y=new Ln),vt(S))Qv(e,t,L,o,Rs,a,y);else{var Y=a?a(Lu(e,L),S,L+"",e,t,y):r;Y===r&&(Y=S),ou(e,L,Y)}},Gt)}function Qv(e,t,o,a,y,S,L){var Y=Lu(e,o),V=Lu(t,o),ge=L.get(V);if(ge){ou(e,o,ge);return}var ve=S?S(Y,V,o+"",e,t,L):r,xe=ve===r;if(xe){var Ee=We(V),Pe=!Ee&&$r(V),Be=!Ee&&!Pe&&Ri(V);ve=V,Ee||Pe||Be?We(Y)?ve=Y:bt(Y)?ve=qt(Y):Pe?(xe=!1,ve=Xf(V,!0)):Be?(xe=!1,ve=eh(V,!0)):ve=[]:xo(V)||oi(V)?(ve=Y,oi(Y)?ve=Kh(Y):(!vt(Y)||rr(Y))&&(ve=yh(V))):xe=!1}xe&&(L.set(V,ve),y(ve,V,a,S,L),L.delete(V)),ou(e,o,ve)}function Ff(e,t){var o=e.length;if(o)return t+=t<0?o:0,nr(t,o)?e[t]:r}function Wf(e,t,o){t.length?t=gt(t,function(S){return We(S)?function(L){return ni(L,S.length===1?S[0]:S)}:S}):t=[Vt];var a=-1;t=gt(t,tn($e()));var y=jf(e,function(S,L,Y){var V=gt(t,function(ge){return ge(S)});return{criteria:V,index:++a,value:S}});return Cm(y,function(S,L){return cy(S,L,o)})}function Jv(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],Y=ni(e,L);o(Y,L)&&yo(S,Pr(L,e),Y)}return S}function Xv(e){return function(t){return ni(t,e)}}function pu(e,t,o,a){var y=a?Sm:wi,S=-1,L=t.length,Y=e;for(e===t&&(t=qt(t)),o&&(Y=gt(e,tn(o)));++S<L;)for(var V=0,ge=t[S],ve=o?o(ge):ge;(V=y(Y,ve,V,a))>-1;)Y!==e&&bs.call(Y,V,1),bs.call(e,V,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;nr(y)?bs.call(e,y,1):yu(e,y)}}return e}function gu(e,t){return e+Cs(Af()*(t-e+1))}function ey(e,t,o,a){for(var y=-1,S=Ot(Ss((t-e)/(o||1)),0),L=ne(S);S--;)L[a?S:++y]=e,e+=o;return L}function mu(e,t){var o="";if(!e||t<1||t>h)return o;do t%2&&(o+=e),t=Cs(t/2),t&&(e+=e);while(t);return o}function He(e,t){return ku(bh(e,t,Vt),e+"")}function ty(e){return Tf(Li(e))}function ny(e,t){var o=Li(e);return Us(o,ti(t,0,o.length))}function yo(e,t,o,a){if(!vt(e))return e;t=Pr(t,e);for(var y=-1,S=t.length,L=S-1,Y=e;Y!=null&&++y<S;){var V=Wn(t[y]),ge=o;if(V==="__proto__"||V==="constructor"||V==="prototype")return e;if(y!=L){var ve=Y[V];ge=a?a(ve,V,Y):r,ge===r&&(ge=vt(ve)?ve:nr(t[y+1])?[]:{})}po(Y,V,ge),Y=Y[V]}return e}var Hf=As?function(e,t){return As.set(e,t),e}:Vt,ry=xs?function(e,t){return xs(e,"toString",{configurable:!0,enumerable:!1,value:Wu(t),writable:!0})}:Vt;function iy(e){return Us(Li(e))}function Sn(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=ne(y);++a<y;)S[a]=e[a+t];return S}function oy(e,t){var o;return kr(e,function(a,y,S){return o=t(a,y,S),!o}),!!o}function Ls(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=F){for(;a<y;){var S=a+y>>>1,L=e[S];L!==null&&!rn(L)&&(o?L<=t:L<t)?a=S+1:y=S}return y}return vu(e,t,Vt,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,Y=t===null,V=rn(t),ge=t===r;y<S;){var ve=Cs((y+S)/2),xe=o(e[ve]),Ee=xe!==r,Pe=xe===null,Be=xe===xe,qe=rn(xe);if(L)var je=a||Be;else ge?je=Be&&(a||Ee):Y?je=Be&&Ee&&(a||!Pe):V?je=Be&&Ee&&!Pe&&(a||!qe):Pe||qe?je=!1:je=a?xe<=t:xe<t;je?y=ve+1:S=ve}return It(S,A)}function Gf(e,t){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var L=e[o],Y=t?t(L):L;if(!o||!kn(Y,V)){var V=Y;S[y++]=L===0?0:L}}return S}function Vf(e){return typeof e=="number"?e:rn(e)?m:+e}function nn(e){if(typeof e=="string")return e;if(We(e))return gt(e,nn)+"";if(rn(e))return Df?Df.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ir(e,t,o){var a=-1,y=fs,S=e.length,L=!0,Y=[],V=Y;if(o)L=!1,y=Ha;else if(S>=l){var ge=t?null:my(e);if(ge)return ds(ge);L=!1,y=ao,V=new ei}else V=t?[]:Y;e:for(;++a<S;){var ve=e[a],xe=t?t(ve):ve;if(ve=o||ve!==0?ve:0,L&&xe===xe){for(var Ee=V.length;Ee--;)if(V[Ee]===xe)continue e;t&&V.push(xe),Y.push(ve)}else y(V,xe,o)||(V!==Y&&V.push(xe),Y.push(ve))}return Y}function yu(e,t){return t=Pr(t,e),e=xh(e,t),e==null||delete e[Wn(Cn(t))]}function Zf(e,t,o,a){return yo(e,t,o(ni(e,t)),a)}function ks(e,t,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&t(e[S],S,e););return o?Sn(e,a?0:S,a?S+1:y):Sn(e,a?S+1:0,a?y:S)}function Kf(e,t){var o=e;return o instanceof Qe&&(o=o.value()),Ga(t,function(a,y){return y.func.apply(y.thisArg,Mr([a],y.args))},o)}function _u(e,t,o){var a=e.length;if(a<2)return a?Ir(e[0]):[];for(var y=-1,S=ne(a);++y<a;)for(var L=e[y],Y=-1;++Y<a;)Y!=y&&(S[y]=go(S[y]||L,e[Y],t,o));return Ir(kt(S,1),t,o)}function Qf(e,t,o){for(var a=-1,y=e.length,S=t.length,L={};++a<y;){var Y=a<S?t[a]:r;o(L,e[a],Y)}return L}function wu(e){return bt(e)?e:[]}function bu(e){return typeof e=="function"?e:Vt}function Pr(e,t){return We(e)?e:Mu(e,t)?[e]:Dh(ot(e))}var sy=He;function Nr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:Sn(e,t,o)}var Jf=Gm||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 _s(t).set(new _s(e)),t}function ay(e,t){var o=t?xu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function uy(e){var t=new e.constructor(e.source,xr.exec(e));return t.lastIndex=e.lastIndex,t}function ly(e){return ho?ft(ho.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=rn(e),L=t!==r,Y=t===null,V=t===t,ge=rn(t);if(!Y&&!ge&&!S&&e>t||S&&L&&V&&!Y&&!ge||a&&L&&V||!o&&V||!y)return 1;if(!a&&!S&&!ge&&e<t||ge&&o&&y&&!a&&!S||Y&&o&&y||!L&&y||!V)return-1}return 0}function cy(e,t,o){for(var a=-1,y=e.criteria,S=t.criteria,L=y.length,Y=o.length;++a<L;){var V=th(y[a],S[a]);if(V){if(a>=Y)return V;var ge=o[a];return V*(ge=="desc"?-1:1)}}return e.index-t.index}function nh(e,t,o,a){for(var y=-1,S=e.length,L=o.length,Y=-1,V=t.length,ge=Ot(S-L,0),ve=ne(V+ge),xe=!a;++Y<V;)ve[Y]=t[Y];for(;++y<L;)(xe||y<S)&&(ve[o[y]]=e[y]);for(;ge--;)ve[Y++]=e[y++];return ve}function rh(e,t,o,a){for(var y=-1,S=e.length,L=-1,Y=o.length,V=-1,ge=t.length,ve=Ot(S-Y,0),xe=ne(ve+ge),Ee=!a;++y<ve;)xe[y]=e[y];for(var Pe=y;++V<ge;)xe[Pe+V]=t[V];for(;++L<Y;)(Ee||y<S)&&(xe[Pe+o[L]]=e[y++]);return xe}function qt(e,t){var o=-1,a=e.length;for(t||(t=ne(a));++o<a;)t[o]=e[o];return t}function Fn(e,t,o,a){var y=!o;o||(o={});for(var S=-1,L=t.length;++S<L;){var Y=t[S],V=a?a(o[Y],e[Y],Y,o,e):r;V===r&&(V=e[Y]),y?Xn(o,Y,V):po(o,Y,V)}return o}function fy(e,t){return Fn(e,Eu(e),t)}function hy(e,t){return Fn(e,mh(e),t)}function Is(e,t){return function(o,a){var y=We(o)?vm:Iv,S=t?t():{};return y(o,e,$e(a,2),S)}}function Ti(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=ft(t);++a<y;){var Y=o[a];Y&&e(t,Y,a,S)}return t})}function ih(e,t){return function(o,a){if(o==null)return o;if(!Ht(o))return e(o,a);for(var y=o.length,S=t?y:-1,L=ft(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=ft(t),L=a(t),Y=L.length;Y--;){var V=L[e?Y:++y];if(o(S[V],V,S)===!1)break}return t}}function dy(e,t,o){var a=t&j,y=_o(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=bi(t)?Rn(t):r,a=o?o[0]:t.charAt(0),y=o?Nr(o,1).join(""):t.slice(1);return a[e]()+y}}function Ei(e){return function(t){return Ga(id(rd(t).replace(Or,"")),e,"")}}function _o(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=Oi(e.prototype),a=e.apply(o,t);return vt(a)?a:o}}function py(e,t,o){var a=_o(e);function y(){for(var S=arguments.length,L=ne(S),Y=S,V=Mi(y);Y--;)L[Y]=arguments[Y];var ge=S<3&&L[0]!==V&&L[S-1]!==V?[]:Rr(L,V);if(S-=ge.length,S<o)return fh(e,t,Ps,y.placeholder,r,L,ge,r,r,o-S);var ve=this&&this!==Lt&&this instanceof y?a:e;return en(ve,this,L)}return y}function ah(e){return function(t,o,a){var y=ft(t);if(!Ht(t)){var S=$e(o,3);t=Et(t),o=function(Y){return S(y[Y],Y,y)}}var L=e(t,o,a);return L>-1?y[S?t[L]:L]:r}}function uh(e){return tr(function(t){var o=t.length,a=o,y=bn.prototype.thru;for(e&&t.reverse();a--;){var S=t[a];if(typeof S!="function")throw new wn(v);if(y&&!L&&js(S)=="wrapper")var L=new bn([],!0)}for(a=L?a:o;++a<o;){S=t[a];var Y=js(S),V=Y=="wrapper"?Ou(S):r;V&&Ru(V[0])&&V[1]==(ee|se|K|J)&&!V[4].length&&V[9]==1?L=L[js(V[0])].apply(L,V[3]):L=S.length==1&&Ru(S)?L[Y]():L.thru(S)}return function(){var ge=arguments,ve=ge[0];if(L&&ge.length==1&&We(ve))return L.plant(ve).value();for(var xe=0,Ee=o?t[xe].apply(this,ge):ve;++xe<o;)Ee=t[xe].call(this,Ee);return Ee}})}function Ps(e,t,o,a,y,S,L,Y,V,ge){var ve=t&ee,xe=t&j,Ee=t&ie,Pe=t&(se|ce),Be=t&pe,qe=Ee?r:_o(e);function je(){for(var Ke=arguments.length,et=ne(Ke),on=Ke;on--;)et[on]=arguments[on];if(Pe)var Ut=Mi(je),sn=Dm(et,Ut);if(a&&(et=nh(et,a,y,Pe)),S&&(et=rh(et,S,L,Pe)),Ke-=sn,Pe&&Ke<ge){var xt=Rr(et,Ut);return fh(e,t,Ps,je.placeholder,o,et,xt,Y,V,ge-Ke)}var In=xe?o:this,or=Ee?In[e]:e;return Ke=et.length,Y?et=Iy(et,Y):Be&&Ke>1&&et.reverse(),ve&&V<Ke&&(et.length=V),this&&this!==Lt&&this instanceof je&&(or=qe||_o(or)),or.apply(In,et)}return je}function lh(e,t){return function(o,a){return Fv(o,e,t(a),{})}}function Ns(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=nn(o),a=nn(a)):(o=Vf(o),a=Vf(a)),y=e(o,a)}return y}}function Su(e){return tr(function(t){return t=gt(t,tn($e())),He(function(o){var a=this;return e(t,function(y){return en(y,a,o)})})})}function $s(e,t){t=t===r?" ":nn(t);var o=t.length;if(o<2)return o?mu(t,e):t;var a=mu(t,Ss(e/xi(t)));return bi(t)?Nr(Rn(a),0,e).join(""):a.slice(0,e)}function gy(e,t,o,a){var y=t&j,S=_o(e);function L(){for(var Y=-1,V=arguments.length,ge=-1,ve=a.length,xe=ne(ve+V),Ee=this&&this!==Lt&&this instanceof L?S:e;++ge<ve;)xe[ge]=a[ge];for(;V--;)xe[ge++]=arguments[++Y];return en(Ee,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=ir(t),o===r?(o=t,t=0):o=ir(o),a=a===r?t<o?1:-1:ir(a),ey(t,o,a,e)}}function Bs(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=An(t),o=An(o)),e(t,o)}}function fh(e,t,o,a,y,S,L,Y,V,ge){var ve=t&se,xe=ve?L:r,Ee=ve?r:L,Pe=ve?S:r,Be=ve?r:S;t|=ve?K:de,t&=~(ve?de:K),t&re||(t&=-4);var qe=[e,t,y,Pe,xe,Be,Ee,Y,V,ge],je=o.apply(r,qe);return Ru(e)&&Sh(je,qe),je.placeholder=a,Ch(je,e,t)}function Cu(e){var t=Dt[e];return function(o,a){if(o=An(o),a=a==null?0:It(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 my=Ai&&1/ds(new Ai([,-0]))[1]==d?function(e){return new Ai(e)}:Hu;function hh(e){return function(t){var o=Pt(t);return o==W?eu(t):o==R?km(t):Am(t,e(t))}}function er(e,t,o,a,y,S,L,Y){var V=t&ie;if(!V&&typeof e!="function")throw new wn(v);var ge=a?a.length:0;if(ge||(t&=-97,a=y=r),L=L===r?L:Ot(ze(L),0),Y=Y===r?Y:ze(Y),ge-=y?y.length:0,t&de){var ve=a,xe=y;a=y=r}var Ee=V?r:Ou(e),Pe=[e,t,o,a,y,ve,xe,S,L,Y];if(Ee&&Ry(Pe,Ee),e=Pe[0],t=Pe[1],o=Pe[2],a=Pe[3],y=Pe[4],Y=Pe[9]=Pe[9]===r?V?0:e.length:Ot(Pe[9]-ge,0),!Y&&t&(se|ce)&&(t&=-25),!t||t==j)var Be=dy(e,t,o);else t==se||t==ce?Be=py(e,t,Y):(t==K||t==(j|K))&&!y.length?Be=gy(e,t,o,a):Be=Ps.apply(r,Pe);var qe=Ee?Hf:Sh;return Ch(qe(Be,Pe),e,t)}function dh(e,t,o,a){return e===r||kn(e,Ci[o])&&!st.call(a,o)?t:e}function ph(e,t,o,a,y,S){return vt(e)&&vt(t)&&(S.set(t,e),Rs(e,t,r,ph,S),S.delete(t)),e}function vy(e){return xo(e)?r:e}function gh(e,t,o,a,y,S){var L=o&I,Y=e.length,V=t.length;if(Y!=V&&!(L&&V>Y))return!1;var ge=S.get(e),ve=S.get(t);if(ge&&ve)return ge==t&&ve==e;var xe=-1,Ee=!0,Pe=o&U?new ei:r;for(S.set(e,t),S.set(t,e);++xe<Y;){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;Ee=!1;break}if(Pe){if(!Va(t,function(Ke,et){if(!ao(Pe,et)&&(Be===Ke||y(Be,Ke,o,a,S)))return Pe.push(et)})){Ee=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){Ee=!1;break}}return S.delete(e),S.delete(t),Ee}function yy(e,t,o,a,y,S,L){switch(o){case ke: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 _s(e),new _s(t)));case Q:case he:case Z:return kn(+e,+t);case _e:return e.name==t.name&&e.message==t.message;case _:case q:return e==t+"";case W:var Y=eu;case R:var V=a&I;if(Y||(Y=ds),e.size!=t.size&&!V)return!1;var ge=L.get(e);if(ge)return ge==t;a|=U,L.set(e,t);var ve=gh(Y(e),Y(t),a,y,S,L);return L.delete(e),ve;case X:if(ho)return ho.call(e)==ho.call(t)}return!1}function _y(e,t,o,a,y,S){var L=o&I,Y=Au(e),V=Y.length,ge=Au(t),ve=ge.length;if(V!=ve&&!L)return!1;for(var xe=V;xe--;){var Ee=Y[xe];if(!(L?Ee in t:st.call(t,Ee)))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<V;){Ee=Y[xe];var Ke=e[Ee],et=t[Ee];if(a)var on=L?a(et,Ke,Ee,t,e,S):a(Ke,et,Ee,e,t,S);if(!(on===r?Ke===et||y(Ke,et,o,a,S):on)){qe=!1;break}je||(je=Ee=="constructor")}if(qe&&!je){var Ut=e.constructor,sn=t.constructor;Ut!=sn&&"constructor"in e&&"constructor"in t&&!(typeof Ut=="function"&&Ut instanceof Ut&&typeof sn=="function"&&sn instanceof sn)&&(qe=!1)}return S.delete(e),S.delete(t),qe}function tr(e){return ku(bh(e,r,Mh),e+"")}function Au(e){return Pf(e,Et,Eu)}function Du(e){return Pf(e,Gt,mh)}var Ou=As?function(e){return As.get(e)}:Hu;function js(e){for(var t=e.name+"",o=Di[t],a=st.call(Di,t)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return t}function Mi(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 Ys(e,t){var o=e.__data__;return Oy(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Tu(e){for(var t=Et(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,_h(y)]}return t}function ri(e,t){var o=Mm(e,t);return $f(o)?o:r}function wy(e){var t=st.call(e,Jr),o=e[Jr];try{e[Jr]=r;var a=!0}catch{}var y=vs.call(e);return a&&(t?e[Jr]=o:delete e[Jr]),y}var Eu=nu?function(e){return e==null?[]:(e=ft(e),Er(nu(e),function(t){return xf.call(e,t)}))}:Gu,mh=nu?function(e){for(var t=[];e;)Mr(t,Eu(e)),e=ws(e);return t}:Gu,Pt=jt;(ru&&Pt(new ru(new ArrayBuffer(1)))!=ke||lo&&Pt(new lo)!=W||iu&&Pt(iu.resolve())!=u||Ai&&Pt(new Ai)!=R||co&&Pt(new co)!=be)&&(Pt=function(e){var t=jt(e),o=t==Te?e.constructor:r,a=o?ii(o):"";if(a)switch(a){case nv:return ke;case rv:return W;case iv:return u;case ov:return R;case sv:return be}return t});function by(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=Ot(e,t-L);break}}return{start:e,end:t}}function xy(e){var t=e.match(br);return t?t[1].split(At):[]}function vh(e,t,o){t=Pr(t,e);for(var a=-1,y=t.length,S=!1;++a<y;){var L=Wn(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&&Gs(y)&&nr(L,y)&&(We(e)||oi(e)))}function Sy(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"&&!wo(e)?Oi(ws(e)):{}}function Cy(e,t,o){var a=e.constructor;switch(t){case Se:return xu(e);case Q:case he:return new a(+e);case ke:return ay(e,o);case Ne:case Ie:case Xe:case nt:case Ge:case wt:case mt:case lt:case zt:return eh(e,o);case W:return new a;case Z:case q:return new a(e);case _:return uy(e);case R:return new a;case X:return ly(e)}}function Ay(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(jn,`{
124
+ */var I1=hi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",u=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",f="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",L=1,M=2,k=4,I=1,j=2,H=1,ae=2,se=4,le=8,ue=16,Z=32,ce=64,Q=128,V=256,de=512,fe=30,re="...",De=800,Oe=16,N=1,T=2,D=3,p=1/0,d=9007199254740991,w=17976931348623157e292,h=NaN,m=4294967295,S=m-1,B=m>>>1,G=[["ary",Q],["bind",H],["bindKey",ae],["curry",le],["curryRight",ue],["flip",de],["partial",Z],["partialRight",ce],["rearg",V]],oe="[object Arguments]",ne="[object Array]",be="[object AsyncFunction]",ee="[object Boolean]",ye="[object Date]",pe="[object DOMException]",xe="[object Error]",$="[object Function]",K="[object GeneratorFunction]",U="[object Map]",J="[object Number]",te="[object Null]",Se="[object Object]",l="[object Promise]",c="[object Proxy]",_="[object RegExp]",R="[object Set]",F="[object String]",X="[object Symbol]",Ae="[object Undefined]",we="[object WeakMap]",Pe="[object WeakSet]",Ce="[object ArrayBuffer]",Le="[object DataView]",Be="[object Float32Array]",Re="[object Float64Array]",tt="[object Int8Array]",Xe="[object Int16Array]",rt="[object Int32Array]",Et="[object Uint8Array]",ut="[object Uint8ClampedArray]",Ze="[object Uint16Array]",un="[object Uint32Array]",mt=/\b__p \+= '';/g,$t=/\b(__p \+=) '' \+/g,Dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bt=/&(?:amp|lt|gt|quot|#39);/g,Gt=/[&<>"']/g,yt=RegExp(Bt.source),cn=RegExp(Gt.source),fn=/<%-([\s\S]+?)%>/g,jt=/<%([\s\S]+?)%>/g,Vt=/<%=([\s\S]+?)%>/g,Sn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yt=/^\w*$/,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ft=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ft.source),at=/^\s+/,Zt=/\s/,Qt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pn=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /,nr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,_t=/\\(\\)?/g,Bn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dn=/\w*$/,xt=/^[-+]0x[0-9a-f]+$/i,Mn=/^0b[01]+$/i,jn=/^\[object .+?Constructor\]$/,Jt=/^0o[0-7]+$/i,js=/^(?:0|[1-9]\d*)$/,Ys=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tr=/($^)/,Fs=/['\n\r\u2028\u2029\\]/g,Pr="\\ud800-\\udfff",Mr="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",rr="\\u20d0-\\u20ff",ir=Mr+co+rr,di="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",kr="\\xac\\xb1\\xd7\\xf7",Lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vr="A-Z\\xc0-\\xd6\\xd8-\\xde",fo="\\ufe0e\\ufe0f",Nr=kr+Lr+Ws+Us,pi="['’]",zs="["+Pr+"]",Ve="["+Nr+"]",Rn="["+ir+"]",Ir="\\d+",gi="["+di+"]",vi="["+Rr+"]",ho="[^"+Pr+Nr+Ir+di+Rr+vr+"]",kn="\\ud83c[\\udffb-\\udfff]",Yn="(?:"+Rn+"|"+kn+")",Ln="[^"+Pr+"]",qs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",$r="["+vr+"]",Ju="\\u200d",Xu="(?:"+vi+"|"+ho+")",s0="(?:"+$r+"|"+ho+")",ec="(?:"+pi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+pi+"(?:D|LL|M|RE|S|T|VE))?",nc=Yn+"?",rc="["+fo+"]?",a0="(?:"+Ju+"(?:"+[Ln,qs,Hs].join("|")+")"+rc+nc+")*",l0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ic=rc+nc+a0,c0="(?:"+[gi,qs,Hs].join("|")+")"+ic,f0="(?:"+[Ln+Rn+"?",Rn,qs,Hs,zs].join("|")+")",h0=RegExp(pi,"g"),d0=RegExp(Rn,"g"),Gs=RegExp(kn+"(?="+kn+")|"+f0+ic,"g"),p0=RegExp([$r+"?"+vi+"+"+ec+"(?="+[Ve,$r,"$"].join("|")+")",s0+"+"+tc+"(?="+[Ve,$r+Xu,"$"].join("|")+")",$r+"?"+Xu+"+"+ec,$r+"+"+tc,u0,l0,Ir,c0].join("|"),"g"),g0=RegExp("["+Ju+Pr+ir+fo+"]"),v0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y0=-1,lt={};lt[Be]=lt[Re]=lt[tt]=lt[Xe]=lt[rt]=lt[Et]=lt[ut]=lt[Ze]=lt[un]=!0,lt[oe]=lt[ne]=lt[Ce]=lt[ee]=lt[Le]=lt[ye]=lt[xe]=lt[$]=lt[U]=lt[J]=lt[Se]=lt[_]=lt[R]=lt[F]=lt[we]=!1;var st={};st[oe]=st[ne]=st[Ce]=st[Le]=st[ee]=st[ye]=st[Be]=st[Re]=st[tt]=st[Xe]=st[rt]=st[U]=st[J]=st[Se]=st[_]=st[R]=st[F]=st[X]=st[Et]=st[ut]=st[Ze]=st[un]=!0,st[xe]=st[$]=st[we]=!1;var _0={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},x0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C0=parseFloat,S0=parseInt,oc=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,D0=typeof self=="object"&&self&&self.Object===Object&&self,At=oc||D0||Function("return this")(),Vs=n&&!n.nodeType&&n,mr=Vs&&!0&&i&&!i.nodeType&&i,sc=mr&&mr.exports===Vs,Ks=sc&&oc.process,hn=function(){try{var z=mr&&mr.require&&mr.require("util").types;return z||Ks&&Ks.binding&&Ks.binding("util")}catch{}}(),ac=hn&&hn.isArrayBuffer,lc=hn&&hn.isDate,uc=hn&&hn.isMap,cc=hn&&hn.isRegExp,fc=hn&&hn.isSet,hc=hn&&hn.isTypedArray;function Xt(z,he,ie){switch(ie.length){case 0:return z.call(he);case 1:return z.call(he,ie[0]);case 2:return z.call(he,ie[0],ie[1]);case 3:return z.call(he,ie[0],ie[1],ie[2])}return z.apply(he,ie)}function A0(z,he,ie,Me){for(var Ye=-1,Je=z==null?0:z.length;++Ye<Je;){var wt=z[Ye];he(Me,wt,ie(wt),z)}return Me}function dn(z,he){for(var ie=-1,Me=z==null?0:z.length;++ie<Me&&he(z[ie],ie,z)!==!1;);return z}function O0(z,he){for(var ie=z==null?0:z.length;ie--&&he(z[ie],ie,z)!==!1;);return z}function dc(z,he){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(!he(z[ie],ie,z))return!1;return!0}function or(z,he){for(var ie=-1,Me=z==null?0:z.length,Ye=0,Je=[];++ie<Me;){var wt=z[ie];he(wt,ie,z)&&(Je[Ye++]=wt)}return Je}function po(z,he){var ie=z==null?0:z.length;return!!ie&&Br(z,he,0)>-1}function Zs(z,he,ie){for(var Me=-1,Ye=z==null?0:z.length;++Me<Ye;)if(ie(he,z[Me]))return!0;return!1}function ct(z,he){for(var ie=-1,Me=z==null?0:z.length,Ye=Array(Me);++ie<Me;)Ye[ie]=he(z[ie],ie,z);return Ye}function sr(z,he){for(var ie=-1,Me=he.length,Ye=z.length;++ie<Me;)z[Ye+ie]=he[ie];return z}function Qs(z,he,ie,Me){var Ye=-1,Je=z==null?0:z.length;for(Me&&Je&&(ie=z[++Ye]);++Ye<Je;)ie=he(ie,z[Ye],Ye,z);return ie}function E0(z,he,ie,Me){var Ye=z==null?0:z.length;for(Me&&Ye&&(ie=z[--Ye]);Ye--;)ie=he(ie,z[Ye],Ye,z);return ie}function Js(z,he){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(he(z[ie],ie,z))return!0;return!1}var T0=Xs("length");function P0(z){return z.split("")}function M0(z){return z.match(nr)||[]}function pc(z,he,ie){var Me;return ie(z,function(Ye,Je,wt){if(he(Ye,Je,wt))return Me=Je,!1}),Me}function go(z,he,ie,Me){for(var Ye=z.length,Je=ie+(Me?1:-1);Me?Je--:++Je<Ye;)if(he(z[Je],Je,z))return Je;return-1}function Br(z,he,ie){return he===he?U0(z,he,ie):go(z,gc,ie)}function R0(z,he,ie,Me){for(var Ye=ie-1,Je=z.length;++Ye<Je;)if(Me(z[Ye],he))return Ye;return-1}function gc(z){return z!==z}function vc(z,he){var ie=z==null?0:z.length;return ie?ta(z,he)/ie:h}function Xs(z){return function(he){return he==null?r:he[z]}}function ea(z){return function(he){return z==null?r:z[he]}}function mc(z,he,ie,Me,Ye){return Ye(z,function(Je,wt,it){ie=Me?(Me=!1,Je):he(ie,Je,wt,it)}),ie}function k0(z,he){var ie=z.length;for(z.sort(he);ie--;)z[ie]=z[ie].value;return z}function ta(z,he){for(var ie,Me=-1,Ye=z.length;++Me<Ye;){var Je=he(z[Me]);Je!==r&&(ie=ie===r?Je:ie+Je)}return ie}function na(z,he){for(var ie=-1,Me=Array(z);++ie<z;)Me[ie]=he(ie);return Me}function L0(z,he){return ct(he,function(ie){return[ie,z[ie]]})}function yc(z){return z&&z.slice(0,xc(z)+1).replace(at,"")}function en(z){return function(he){return z(he)}}function ra(z,he){return ct(he,function(ie){return z[ie]})}function mi(z,he){return z.has(he)}function _c(z,he){for(var ie=-1,Me=z.length;++ie<Me&&Br(he,z[ie],0)>-1;);return ie}function wc(z,he){for(var ie=z.length;ie--&&Br(he,z[ie],0)>-1;);return ie}function N0(z,he){for(var ie=z.length,Me=0;ie--;)z[ie]===he&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(z){return"\\"+x0[z]}function j0(z,he){return z==null?r:z[he]}function jr(z){return g0.test(z)}function Y0(z){return v0.test(z)}function F0(z){for(var he,ie=[];!(he=z.next()).done;)ie.push(he.value);return ie}function ia(z){var he=-1,ie=Array(z.size);return z.forEach(function(Me,Ye){ie[++he]=[Ye,Me]}),ie}function bc(z,he){return function(ie){return z(he(ie))}}function ar(z,he){for(var ie=-1,Me=z.length,Ye=0,Je=[];++ie<Me;){var wt=z[ie];(wt===he||wt===E)&&(z[ie]=E,Je[Ye++]=ie)}return Je}function vo(z){var he=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++he]=Me}),ie}function W0(z){var he=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++he]=[Me,Me]}),ie}function U0(z,he,ie){for(var Me=ie-1,Ye=z.length;++Me<Ye;)if(z[Me]===he)return Me;return-1}function z0(z,he,ie){for(var Me=ie+1;Me--;)if(z[Me]===he)return Me;return Me}function Yr(z){return jr(z)?H0(z):T0(z)}function An(z){return jr(z)?G0(z):P0(z)}function xc(z){for(var he=z.length;he--&&Zt.test(z.charAt(he)););return he}var q0=ea(b0);function H0(z){for(var he=Gs.lastIndex=0;Gs.test(z);)++he;return he}function G0(z){return z.match(Gs)||[]}function V0(z){return z.match(p0)||[]}var K0=function z(he){he=he==null?At:Fr.defaults(At.Object(),he,Fr.pick(At,m0));var ie=he.Array,Me=he.Date,Ye=he.Error,Je=he.Function,wt=he.Math,it=he.Object,oa=he.RegExp,Z0=he.String,pn=he.TypeError,mo=ie.prototype,Q0=Je.prototype,Wr=it.prototype,yo=he["__core-js_shared__"],_o=Q0.toString,nt=Wr.hasOwnProperty,J0=0,Cc=function(){var e=/[^.]+$/.exec(yo&&yo.keys&&yo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wo=Wr.toString,X0=_o.call(it),ev=At._,tv=oa("^"+_o.call(nt).replace(Ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bo=sc?he.Buffer:r,lr=he.Symbol,xo=he.Uint8Array,Sc=bo?bo.allocUnsafe:r,Co=bc(it.getPrototypeOf,it),Dc=it.create,Ac=Wr.propertyIsEnumerable,So=mo.splice,Oc=lr?lr.isConcatSpreadable:r,yi=lr?lr.iterator:r,yr=lr?lr.toStringTag:r,Do=function(){try{var e=Cr(it,"defineProperty");return e({},"",{}),e}catch{}}(),nv=he.clearTimeout!==At.clearTimeout&&he.clearTimeout,rv=Me&&Me.now!==At.Date.now&&Me.now,iv=he.setTimeout!==At.setTimeout&&he.setTimeout,Ao=wt.ceil,Oo=wt.floor,sa=it.getOwnPropertySymbols,ov=bo?bo.isBuffer:r,Ec=he.isFinite,sv=mo.join,av=bc(it.keys,it),bt=wt.max,Tt=wt.min,lv=Me.now,uv=he.parseInt,Tc=wt.random,cv=mo.reverse,aa=Cr(he,"DataView"),_i=Cr(he,"Map"),la=Cr(he,"Promise"),Ur=Cr(he,"Set"),wi=Cr(he,"WeakMap"),bi=Cr(it,"create"),Eo=wi&&new wi,zr={},fv=Sr(aa),hv=Sr(_i),dv=Sr(la),pv=Sr(Ur),gv=Sr(wi),To=lr?lr.prototype:r,xi=To?To.valueOf:r,Pc=To?To.toString:r;function b(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof gn)return e;if(nt.call(e,"__wrapped__"))return Rf(e)}return new gn(e)}var qr=function(){function e(){}return function(t){if(!ft(t))return{};if(Dc)return Dc(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Po(){}function gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:fn,evaluate:jt,interpolate:Vt,variable:"",imports:{_:b}},b.prototype=Po.prototype,b.prototype.constructor=b,gn.prototype=qr(Po.prototype),gn.prototype.constructor=gn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function vv(){var e=new Ge(this.__wrapped__);return e.__actions__=Ut(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ut(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ut(this.__views__),e}function mv(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yv(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,x=Pm(0,y,this.__views__),P=x.start,Y=x.end,q=Y-P,ge=a?Y:P-1,ve=this.__iteratees__,_e=ve.length,Ee=0,ke=Tt(q,this.__takeCount__);if(!o||!a&&y==q&&ke==q)return ef(e,this.__actions__);var Ie=[];e:for(;q--&&Ee<ke;){ge+=t;for(var Ue=-1,$e=e[ge];++Ue<_e;){var He=ve[Ue],Ke=He.iteratee,rn=He.type,It=Ke($e);if(rn==T)$e=It;else if(!It){if(rn==N)continue e;break e}}Ie[Ee++]=$e}return Ie}Ge.prototype=qr(Po.prototype),Ge.prototype.constructor=Ge;function _r(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function _v(){this.__data__=bi?bi(null):{},this.size=0}function wv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bv(e){var t=this.__data__;if(bi){var o=t[e];return o===C?r:o}return nt.call(t,e)?t[e]:r}function xv(e){var t=this.__data__;return bi?t[e]!==r:nt.call(t,e)}function Cv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=bi&&t===r?C:t,this}_r.prototype.clear=_v,_r.prototype.delete=wv,_r.prototype.get=bv,_r.prototype.has=xv,_r.prototype.set=Cv;function Fn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Sv(){this.__data__=[],this.size=0}function Dv(e){var t=this.__data__,o=Mo(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():So.call(t,o,1),--this.size,!0}function Av(e){var t=this.__data__,o=Mo(t,e);return o<0?r:t[o][1]}function Ov(e){return Mo(this.__data__,e)>-1}function Ev(e,t){var o=this.__data__,a=Mo(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Fn.prototype.clear=Sv,Fn.prototype.delete=Dv,Fn.prototype.get=Av,Fn.prototype.has=Ov,Fn.prototype.set=Ev;function Wn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Tv(){this.size=0,this.__data__={hash:new _r,map:new(_i||Fn),string:new _r}}function Pv(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t}function Mv(e){return Uo(this,e).get(e)}function Rv(e){return Uo(this,e).has(e)}function kv(e,t){var o=Uo(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Wn.prototype.clear=Tv,Wn.prototype.delete=Pv,Wn.prototype.get=Mv,Wn.prototype.has=Rv,Wn.prototype.set=kv;function wr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Wn;++t<o;)this.add(e[t])}function Lv(e){return this.__data__.set(e,C),this}function Nv(e){return this.__data__.has(e)}wr.prototype.add=wr.prototype.push=Lv,wr.prototype.has=Nv;function On(e){var t=this.__data__=new Fn(e);this.size=t.size}function Iv(){this.__data__=new Fn,this.size=0}function $v(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bv(e){return this.__data__.get(e)}function jv(e){return this.__data__.has(e)}function Yv(e,t){var o=this.__data__;if(o instanceof Fn){var a=o.__data__;if(!_i||a.length<u-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Wn(a)}return o.set(e,t),this.size=o.size,this}On.prototype.clear=Iv,On.prototype.delete=$v,On.prototype.get=Bv,On.prototype.has=jv,On.prototype.set=Yv;function Mc(e,t){var o=Fe(e),a=!o&&Dr(e),y=!o&&!a&&dr(e),x=!o&&!a&&!y&&Kr(e),P=o||a||y||x,Y=P?na(e.length,Z0):[],q=Y.length;for(var ge in e)(t||nt.call(e,ge))&&!(P&&(ge=="length"||y&&(ge=="offset"||ge=="parent")||x&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Hn(ge,q)))&&Y.push(ge);return Y}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fv(e,t){return zo(Ut(e),br(t,0,e.length))}function Wv(e){return zo(Ut(e))}function ua(e,t,o){(o!==r&&!En(e[t],o)||o===r&&!(t in e))&&Un(e,t,o)}function Ci(e,t,o){var a=e[t];(!(nt.call(e,t)&&En(a,o))||o===r&&!(t in e))&&Un(e,t,o)}function Mo(e,t){for(var o=e.length;o--;)if(En(e[o][0],t))return o;return-1}function Uv(e,t,o,a){return ur(e,function(y,x,P){t(a,y,o(y),P)}),a}function kc(e,t){return e&&In(t,Ct(t),e)}function zv(e,t){return e&&In(t,qt(t),e)}function Un(e,t,o){t=="__proto__"&&Do?Do(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ca(e,t){for(var o=-1,a=t.length,y=ie(a),x=e==null;++o<a;)y[o]=x?r:za(e,t[o]);return y}function br(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function vn(e,t,o,a,y,x){var P,Y=t&L,q=t&M,ge=t&k;if(o&&(P=y?o(e,a,y,x):o(e)),P!==r)return P;if(!ft(e))return e;var ve=Fe(e);if(ve){if(P=Rm(e),!Y)return Ut(e,P)}else{var _e=Pt(e),Ee=_e==$||_e==K;if(dr(e))return rf(e,Y);if(_e==Se||_e==oe||Ee&&!y){if(P=q||Ee?{}:Cf(e),!Y)return q?bm(e,zv(P,e)):wm(e,kc(P,e))}else{if(!st[_e])return y?e:{};P=km(e,_e,Y)}}x||(x=new On);var ke=x.get(e);if(ke)return ke;x.set(e,P),Jf(e)?e.forEach(function($e){P.add(vn($e,t,o,$e,e,x))}):Zf(e)&&e.forEach(function($e,He){P.set(He,vn($e,t,o,He,e,x))});var Ie=ge?q?Pa:Ta:q?qt:Ct,Ue=ve?r:Ie(e);return dn(Ue||e,function($e,He){Ue&&(He=$e,$e=e[He]),Ci(P,He,vn($e,t,o,He,e,x))}),P}function qv(e){var t=Ct(e);return function(o){return Lc(o,e,t)}}function Lc(e,t,o){var a=o.length;if(e==null)return!a;for(e=it(e);a--;){var y=o[a],x=t[y],P=e[y];if(P===r&&!(y in e)||!x(P))return!1}return!0}function Nc(e,t,o){if(typeof e!="function")throw new pn(v);return Pi(function(){e.apply(r,o)},t)}function Si(e,t,o,a){var y=-1,x=po,P=!0,Y=e.length,q=[],ge=t.length;if(!Y)return q;o&&(t=ct(t,en(o))),a?(x=Zs,P=!1):t.length>=u&&(x=mi,P=!1,t=new wr(t));e:for(;++y<Y;){var ve=e[y],_e=o==null?ve:o(ve);if(ve=a||ve!==0?ve:0,P&&_e===_e){for(var Ee=ge;Ee--;)if(t[Ee]===_e)continue e;q.push(ve)}else x(t,_e,a)||q.push(ve)}return q}var ur=uf(Nn),Ic=uf(ha,!0);function Hv(e,t){var o=!0;return ur(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function Ro(e,t,o){for(var a=-1,y=e.length;++a<y;){var x=e[a],P=t(x);if(P!=null&&(Y===r?P===P&&!nn(P):o(P,Y)))var Y=P,q=x}return q}function Gv(e,t,o,a){var y=e.length;for(o=We(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:We(a),a<0&&(a+=y),a=o>a?0:eh(a);o<a;)e[o++]=t;return e}function $c(e,t){var o=[];return ur(e,function(a,y,x){t(a,y,x)&&o.push(a)}),o}function Ot(e,t,o,a,y){var x=-1,P=e.length;for(o||(o=Nm),y||(y=[]);++x<P;){var Y=e[x];t>0&&o(Y)?t>1?Ot(Y,t-1,o,a,y):sr(y,Y):a||(y[y.length]=Y)}return y}var fa=cf(),Bc=cf(!0);function Nn(e,t){return e&&fa(e,t,Ct)}function ha(e,t){return e&&Bc(e,t,Ct)}function ko(e,t){return or(t,function(o){return Gn(e[o])})}function xr(e,t){t=fr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[$n(t[o++])];return o&&o==a?e:r}function jc(e,t,o){var a=t(e);return Fe(e)?a:sr(a,o(e))}function Lt(e){return e==null?e===r?Ae:te:yr&&yr in it(e)?Tm(e):Wm(e)}function da(e,t){return e>t}function Vv(e,t){return e!=null&&nt.call(e,t)}function Kv(e,t){return e!=null&&t in it(e)}function Zv(e,t,o){return e>=Tt(t,o)&&e<bt(t,o)}function pa(e,t,o){for(var a=o?Zs:po,y=e[0].length,x=e.length,P=x,Y=ie(x),q=1/0,ge=[];P--;){var ve=e[P];P&&t&&(ve=ct(ve,en(t))),q=Tt(ve.length,q),Y[P]=!o&&(t||y>=120&&ve.length>=120)?new wr(P&&ve):r}ve=e[0];var _e=-1,Ee=Y[0];e:for(;++_e<y&&ge.length<q;){var ke=ve[_e],Ie=t?t(ke):ke;if(ke=o||ke!==0?ke:0,!(Ee?mi(Ee,Ie):a(ge,Ie,o))){for(P=x;--P;){var Ue=Y[P];if(!(Ue?mi(Ue,Ie):a(e[P],Ie,o)))continue e}Ee&&Ee.push(Ie),ge.push(ke)}}return ge}function Qv(e,t,o,a){return Nn(e,function(y,x,P){t(a,o(y),x,P)}),a}function Di(e,t,o){t=fr(t,e),e=Of(e,t);var a=e==null?e:e[$n(yn(t))];return a==null?r:Xt(a,e,o)}function Yc(e){return dt(e)&&Lt(e)==oe}function Jv(e){return dt(e)&&Lt(e)==Ce}function Xv(e){return dt(e)&&Lt(e)==ye}function Ai(e,t,o,a,y){return e===t?!0:e==null||t==null||!dt(e)&&!dt(t)?e!==e&&t!==t:em(e,t,o,a,Ai,y)}function em(e,t,o,a,y,x){var P=Fe(e),Y=Fe(t),q=P?ne:Pt(e),ge=Y?ne:Pt(t);q=q==oe?Se:q,ge=ge==oe?Se:ge;var ve=q==Se,_e=ge==Se,Ee=q==ge;if(Ee&&dr(e)){if(!dr(t))return!1;P=!0,ve=!1}if(Ee&&!ve)return x||(x=new On),P||Kr(e)?wf(e,t,o,a,y,x):Om(e,t,q,o,a,y,x);if(!(o&I)){var ke=ve&&nt.call(e,"__wrapped__"),Ie=_e&&nt.call(t,"__wrapped__");if(ke||Ie){var Ue=ke?e.value():e,$e=Ie?t.value():t;return x||(x=new On),y(Ue,$e,o,a,x)}}return Ee?(x||(x=new On),Em(e,t,o,a,y,x)):!1}function tm(e){return dt(e)&&Pt(e)==U}function ga(e,t,o,a){var y=o.length,x=y,P=!a;if(e==null)return!x;for(e=it(e);y--;){var Y=o[y];if(P&&Y[2]?Y[1]!==e[Y[0]]:!(Y[0]in e))return!1}for(;++y<x;){Y=o[y];var q=Y[0],ge=e[q],ve=Y[1];if(P&&Y[2]){if(ge===r&&!(q in e))return!1}else{var _e=new On;if(a)var Ee=a(ge,ve,q,e,t,_e);if(!(Ee===r?Ai(ve,ge,I|j,a,_e):Ee))return!1}}return!0}function Fc(e){if(!ft(e)||$m(e))return!1;var t=Gn(e)?tv:jn;return t.test(Sr(e))}function nm(e){return dt(e)&&Lt(e)==_}function rm(e){return dt(e)&&Pt(e)==R}function im(e){return dt(e)&&Zo(e.length)&&!!lt[Lt(e)]}function Wc(e){return typeof e=="function"?e:e==null?Ht:typeof e=="object"?Fe(e)?qc(e[0],e[1]):zc(e):fh(e)}function va(e){if(!Ti(e))return av(e);var t=[];for(var o in it(e))nt.call(e,o)&&o!="constructor"&&t.push(o);return t}function om(e){if(!ft(e))return Fm(e);var t=Ti(e),o=[];for(var a in e)a=="constructor"&&(t||!nt.call(e,a))||o.push(a);return o}function ma(e,t){return e<t}function Uc(e,t){var o=-1,a=zt(e)?ie(e.length):[];return ur(e,function(y,x,P){a[++o]=t(y,x,P)}),a}function zc(e){var t=Ra(e);return t.length==1&&t[0][2]?Df(t[0][0],t[0][1]):function(o){return o===e||ga(o,e,t)}}function qc(e,t){return La(e)&&Sf(t)?Df($n(e),t):function(o){var a=za(o,e);return a===r&&a===t?qa(o,e):Ai(t,a,I|j)}}function Lo(e,t,o,a,y){e!==t&&fa(t,function(x,P){if(y||(y=new On),ft(x))sm(e,t,P,o,Lo,a,y);else{var Y=a?a(Ia(e,P),x,P+"",e,t,y):r;Y===r&&(Y=x),ua(e,P,Y)}},qt)}function sm(e,t,o,a,y,x,P){var Y=Ia(e,o),q=Ia(t,o),ge=P.get(q);if(ge){ua(e,o,ge);return}var ve=x?x(Y,q,o+"",e,t,P):r,_e=ve===r;if(_e){var Ee=Fe(q),ke=!Ee&&dr(q),Ie=!Ee&&!ke&&Kr(q);ve=q,Ee||ke||Ie?Fe(Y)?ve=Y:pt(Y)?ve=Ut(Y):ke?(_e=!1,ve=rf(q,!0)):Ie?(_e=!1,ve=of(q,!0)):ve=[]:Mi(q)||Dr(q)?(ve=Y,Dr(Y)?ve=th(Y):(!ft(Y)||Gn(Y))&&(ve=Cf(q))):_e=!1}_e&&(P.set(q,ve),y(ve,q,a,x,P),P.delete(q)),ua(e,o,ve)}function Hc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Hn(t,o)?e[t]:r}function Gc(e,t,o){t.length?t=ct(t,function(x){return Fe(x)?function(P){return xr(P,x.length===1?x[0]:x)}:x}):t=[Ht];var a=-1;t=ct(t,en(Ne()));var y=Uc(e,function(x,P,Y){var q=ct(t,function(ge){return ge(x)});return{criteria:q,index:++a,value:x}});return k0(y,function(x,P){return _m(x,P,o)})}function am(e,t){return Vc(e,t,function(o,a){return qa(e,a)})}function Vc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var P=t[a],Y=xr(e,P);o(Y,P)&&Oi(x,fr(P,e),Y)}return x}function lm(e){return function(t){return xr(t,e)}}function ya(e,t,o,a){var y=a?R0:Br,x=-1,P=t.length,Y=e;for(e===t&&(t=Ut(t)),o&&(Y=ct(e,en(o)));++x<P;)for(var q=0,ge=t[x],ve=o?o(ge):ge;(q=y(Y,ve,q,a))>-1;)Y!==e&&So.call(Y,q,1),So.call(e,q,1);return e}function Kc(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==x){var x=y;Hn(y)?So.call(e,y,1):xa(e,y)}}return e}function _a(e,t){return e+Oo(Tc()*(t-e+1))}function um(e,t,o,a){for(var y=-1,x=bt(Ao((t-e)/(o||1)),0),P=ie(x);x--;)P[a?x:++y]=e,e+=o;return P}function wa(e,t){var o="";if(!e||t<1||t>d)return o;do t%2&&(o+=e),t=Oo(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return $a(Af(e,t,Ht),e+"")}function cm(e){return Rc(Zr(e))}function fm(e,t){var o=Zr(e);return zo(o,br(t,0,o.length))}function Oi(e,t,o,a){if(!ft(e))return e;t=fr(t,e);for(var y=-1,x=t.length,P=x-1,Y=e;Y!=null&&++y<x;){var q=$n(t[y]),ge=o;if(q==="__proto__"||q==="constructor"||q==="prototype")return e;if(y!=P){var ve=Y[q];ge=a?a(ve,q,Y):r,ge===r&&(ge=ft(ve)?ve:Hn(t[y+1])?[]:{})}Ci(Y,q,ge),Y=Y[q]}return e}var Zc=Eo?function(e,t){return Eo.set(e,t),e}:Ht,hm=Do?function(e,t){return Do(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Ht;function dm(e){return zo(Zr(e))}function mn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var x=ie(y);++a<y;)x[a]=e[a+t];return x}function pm(e,t){var o;return ur(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function No(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=B){for(;a<y;){var x=a+y>>>1,P=e[x];P!==null&&!nn(P)&&(o?P<=t:P<t)?a=x+1:y=x}return y}return ba(e,t,Ht,o)}function ba(e,t,o,a){var y=0,x=e==null?0:e.length;if(x===0)return 0;t=o(t);for(var P=t!==t,Y=t===null,q=nn(t),ge=t===r;y<x;){var ve=Oo((y+x)/2),_e=o(e[ve]),Ee=_e!==r,ke=_e===null,Ie=_e===_e,Ue=nn(_e);if(P)var $e=a||Ie;else ge?$e=Ie&&(a||Ee):Y?$e=Ie&&Ee&&(a||!ke):q?$e=Ie&&Ee&&!ke&&(a||!Ue):ke||Ue?$e=!1:$e=a?_e<=t:_e<t;$e?y=ve+1:x=ve}return Tt(x,S)}function Qc(e,t){for(var o=-1,a=e.length,y=0,x=[];++o<a;){var P=e[o],Y=t?t(P):P;if(!o||!En(Y,q)){var q=Y;x[y++]=P===0?0:P}}return x}function Jc(e){return typeof e=="number"?e:nn(e)?h:+e}function tn(e){if(typeof e=="string")return e;if(Fe(e))return ct(e,tn)+"";if(nn(e))return Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-p?"-0":t}function cr(e,t,o){var a=-1,y=po,x=e.length,P=!0,Y=[],q=Y;if(o)P=!1,y=Zs;else if(x>=u){var ge=t?null:Dm(e);if(ge)return vo(ge);P=!1,y=mi,q=new wr}else q=t?[]:Y;e:for(;++a<x;){var ve=e[a],_e=t?t(ve):ve;if(ve=o||ve!==0?ve:0,P&&_e===_e){for(var Ee=q.length;Ee--;)if(q[Ee]===_e)continue e;t&&q.push(_e),Y.push(ve)}else y(q,_e,o)||(q!==Y&&q.push(_e),Y.push(ve))}return Y}function xa(e,t){return t=fr(t,e),e=Of(e,t),e==null||delete e[$n(yn(t))]}function Xc(e,t,o,a){return Oi(e,t,o(xr(e,t)),a)}function Io(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?mn(e,a?0:x,a?x+1:y):mn(e,a?x+1:0,a?y:x)}function ef(e,t){var o=e;return o instanceof Ge&&(o=o.value()),Qs(t,function(a,y){return y.func.apply(y.thisArg,sr([a],y.args))},o)}function Ca(e,t,o){var a=e.length;if(a<2)return a?cr(e[0]):[];for(var y=-1,x=ie(a);++y<a;)for(var P=e[y],Y=-1;++Y<a;)Y!=y&&(x[y]=Si(x[y]||P,e[Y],t,o));return cr(Ot(x,1),t,o)}function tf(e,t,o){for(var a=-1,y=e.length,x=t.length,P={};++a<y;){var Y=a<x?t[a]:r;o(P,e[a],Y)}return P}function Sa(e){return pt(e)?e:[]}function Da(e){return typeof e=="function"?e:Ht}function fr(e,t){return Fe(e)?e:La(e,t)?[e]:Mf(et(e))}var gm=qe;function hr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:mn(e,t,o)}var nf=nv||function(e){return At.clearTimeout(e)};function rf(e,t){if(t)return e.slice();var o=e.length,a=Sc?Sc(o):new e.constructor(o);return e.copy(a),a}function Aa(e){var t=new e.constructor(e.byteLength);return new xo(t).set(new xo(e)),t}function vm(e,t){var o=t?Aa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function mm(e){var t=new e.constructor(e.source,Dn.exec(e));return t.lastIndex=e.lastIndex,t}function ym(e){return xi?it(xi.call(e)):{}}function of(e,t){var o=t?Aa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function sf(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=nn(e),P=t!==r,Y=t===null,q=t===t,ge=nn(t);if(!Y&&!ge&&!x&&e>t||x&&P&&q&&!Y&&!ge||a&&P&&q||!o&&q||!y)return 1;if(!a&&!x&&!ge&&e<t||ge&&o&&y&&!a&&!x||Y&&o&&y||!P&&y||!q)return-1}return 0}function _m(e,t,o){for(var a=-1,y=e.criteria,x=t.criteria,P=y.length,Y=o.length;++a<P;){var q=sf(y[a],x[a]);if(q){if(a>=Y)return q;var ge=o[a];return q*(ge=="desc"?-1:1)}}return e.index-t.index}function af(e,t,o,a){for(var y=-1,x=e.length,P=o.length,Y=-1,q=t.length,ge=bt(x-P,0),ve=ie(q+ge),_e=!a;++Y<q;)ve[Y]=t[Y];for(;++y<P;)(_e||y<x)&&(ve[o[y]]=e[y]);for(;ge--;)ve[Y++]=e[y++];return ve}function lf(e,t,o,a){for(var y=-1,x=e.length,P=-1,Y=o.length,q=-1,ge=t.length,ve=bt(x-Y,0),_e=ie(ve+ge),Ee=!a;++y<ve;)_e[y]=e[y];for(var ke=y;++q<ge;)_e[ke+q]=t[q];for(;++P<Y;)(Ee||y<x)&&(_e[ke+o[P]]=e[y++]);return _e}function Ut(e,t){var o=-1,a=e.length;for(t||(t=ie(a));++o<a;)t[o]=e[o];return t}function In(e,t,o,a){var y=!o;o||(o={});for(var x=-1,P=t.length;++x<P;){var Y=t[x],q=a?a(o[Y],e[Y],Y,o,e):r;q===r&&(q=e[Y]),y?Un(o,Y,q):Ci(o,Y,q)}return o}function wm(e,t){return In(e,ka(e),t)}function bm(e,t){return In(e,bf(e),t)}function $o(e,t){return function(o,a){var y=Fe(o)?A0:Uv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Hr(e){return qe(function(t,o){var a=-1,y=o.length,x=y>1?o[y-1]:r,P=y>2?o[2]:r;for(x=e.length>3&&typeof x=="function"?(y--,x):r,P&&Nt(o[0],o[1],P)&&(x=y<3?r:x,y=1),t=it(t);++a<y;){var Y=o[a];Y&&e(t,Y,a,x)}return t})}function uf(e,t){return function(o,a){if(o==null)return o;if(!zt(o))return e(o,a);for(var y=o.length,x=t?y:-1,P=it(o);(t?x--:++x<y)&&a(P[x],x,P)!==!1;);return o}}function cf(e){return function(t,o,a){for(var y=-1,x=it(t),P=a(t),Y=P.length;Y--;){var q=P[e?Y:++y];if(o(x[q],q,x)===!1)break}return t}}function xm(e,t,o){var a=t&H,y=Ei(e);function x(){var P=this&&this!==At&&this instanceof x?y:e;return P.apply(a?o:this,arguments)}return x}function ff(e){return function(t){t=et(t);var o=jr(t)?An(t):r,a=o?o[0]:t.charAt(0),y=o?hr(o,1).join(""):t.slice(1);return a[e]()+y}}function Gr(e){return function(t){return Qs(uh(lh(t).replace(h0,"")),e,"")}}function Ei(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=qr(e.prototype),a=e.apply(o,t);return ft(a)?a:o}}function Cm(e,t,o){var a=Ei(e);function y(){for(var x=arguments.length,P=ie(x),Y=x,q=Vr(y);Y--;)P[Y]=arguments[Y];var ge=x<3&&P[0]!==q&&P[x-1]!==q?[]:ar(P,q);if(x-=ge.length,x<o)return vf(e,t,Bo,y.placeholder,r,P,ge,r,r,o-x);var ve=this&&this!==At&&this instanceof y?a:e;return Xt(ve,this,P)}return y}function hf(e){return function(t,o,a){var y=it(t);if(!zt(t)){var x=Ne(o,3);t=Ct(t),o=function(Y){return x(y[Y],Y,y)}}var P=e(t,o,a);return P>-1?y[x?t[P]:P]:r}}function df(e){return qn(function(t){var o=t.length,a=o,y=gn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new pn(v);if(y&&!P&&Wo(x)=="wrapper")var P=new gn([],!0)}for(a=P?a:o;++a<o;){x=t[a];var Y=Wo(x),q=Y=="wrapper"?Ma(x):r;q&&Na(q[0])&&q[1]==(Q|le|Z|V)&&!q[4].length&&q[9]==1?P=P[Wo(q[0])].apply(P,q[3]):P=x.length==1&&Na(x)?P[Y]():P.thru(x)}return function(){var ge=arguments,ve=ge[0];if(P&&ge.length==1&&Fe(ve))return P.plant(ve).value();for(var _e=0,Ee=o?t[_e].apply(this,ge):ve;++_e<o;)Ee=t[_e].call(this,Ee);return Ee}})}function Bo(e,t,o,a,y,x,P,Y,q,ge){var ve=t&Q,_e=t&H,Ee=t&ae,ke=t&(le|ue),Ie=t&de,Ue=Ee?r:Ei(e);function $e(){for(var He=arguments.length,Ke=ie(He),rn=He;rn--;)Ke[rn]=arguments[rn];if(ke)var It=Vr($e),on=N0(Ke,It);if(a&&(Ke=af(Ke,a,y,ke)),x&&(Ke=lf(Ke,x,P,ke)),He-=on,ke&&He<ge){var gt=ar(Ke,It);return vf(e,t,Bo,$e.placeholder,o,Ke,gt,Y,q,ge-He)}var Tn=_e?o:this,Kn=Ee?Tn[e]:e;return He=Ke.length,Y?Ke=Um(Ke,Y):Ie&&He>1&&Ke.reverse(),ve&&q<He&&(Ke.length=q),this&&this!==At&&this instanceof $e&&(Kn=Ue||Ei(Kn)),Kn.apply(Tn,Ke)}return $e}function pf(e,t){return function(o,a){return Qv(o,e,t(a),{})}}function jo(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=Jc(o),a=Jc(a)),y=e(o,a)}return y}}function Oa(e){return qn(function(t){return t=ct(t,en(Ne())),qe(function(o){var a=this;return e(t,function(y){return Xt(y,a,o)})})})}function Yo(e,t){t=t===r?" ":tn(t);var o=t.length;if(o<2)return o?wa(t,e):t;var a=wa(t,Ao(e/Yr(t)));return jr(t)?hr(An(a),0,e).join(""):a.slice(0,e)}function Sm(e,t,o,a){var y=t&H,x=Ei(e);function P(){for(var Y=-1,q=arguments.length,ge=-1,ve=a.length,_e=ie(ve+q),Ee=this&&this!==At&&this instanceof P?x:e;++ge<ve;)_e[ge]=a[ge];for(;q--;)_e[ge++]=arguments[++Y];return Xt(Ee,y?o:this,_e)}return P}function gf(e){return function(t,o,a){return a&&typeof a!="number"&&Nt(t,o,a)&&(o=a=r),t=Vn(t),o===r?(o=t,t=0):o=Vn(o),a=a===r?t<o?1:-1:Vn(a),um(t,o,a,e)}}function Fo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=_n(t),o=_n(o)),e(t,o)}}function vf(e,t,o,a,y,x,P,Y,q,ge){var ve=t&le,_e=ve?P:r,Ee=ve?r:P,ke=ve?x:r,Ie=ve?r:x;t|=ve?Z:ce,t&=~(ve?ce:Z),t&se||(t&=-4);var Ue=[e,t,y,ke,_e,Ie,Ee,Y,q,ge],$e=o.apply(r,Ue);return Na(e)&&Ef($e,Ue),$e.placeholder=a,Tf($e,e,t)}function Ea(e){var t=wt[e];return function(o,a){if(o=_n(o),a=a==null?0:Tt(We(a),292),a&&Ec(o)){var y=(et(o)+"e").split("e"),x=t(y[0]+"e"+(+y[1]+a));return y=(et(x)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Dm=Ur&&1/vo(new Ur([,-0]))[1]==p?function(e){return new Ur(e)}:Za;function mf(e){return function(t){var o=Pt(t);return o==U?ia(t):o==R?W0(t):L0(t,e(t))}}function zn(e,t,o,a,y,x,P,Y){var q=t&ae;if(!q&&typeof e!="function")throw new pn(v);var ge=a?a.length:0;if(ge||(t&=-97,a=y=r),P=P===r?P:bt(We(P),0),Y=Y===r?Y:We(Y),ge-=y?y.length:0,t&ce){var ve=a,_e=y;a=y=r}var Ee=q?r:Ma(e),ke=[e,t,o,a,y,ve,_e,x,P,Y];if(Ee&&Ym(ke,Ee),e=ke[0],t=ke[1],o=ke[2],a=ke[3],y=ke[4],Y=ke[9]=ke[9]===r?q?0:e.length:bt(ke[9]-ge,0),!Y&&t&(le|ue)&&(t&=-25),!t||t==H)var Ie=xm(e,t,o);else t==le||t==ue?Ie=Cm(e,t,Y):(t==Z||t==(H|Z))&&!y.length?Ie=Sm(e,t,o,a):Ie=Bo.apply(r,ke);var Ue=Ee?Zc:Ef;return Tf(Ue(Ie,ke),e,t)}function yf(e,t,o,a){return e===r||En(e,Wr[o])&&!nt.call(a,o)?t:e}function _f(e,t,o,a,y,x){return ft(e)&&ft(t)&&(x.set(t,e),Lo(e,t,r,_f,x),x.delete(t)),e}function Am(e){return Mi(e)?r:e}function wf(e,t,o,a,y,x){var P=o&I,Y=e.length,q=t.length;if(Y!=q&&!(P&&q>Y))return!1;var ge=x.get(e),ve=x.get(t);if(ge&&ve)return ge==t&&ve==e;var _e=-1,Ee=!0,ke=o&j?new wr:r;for(x.set(e,t),x.set(t,e);++_e<Y;){var Ie=e[_e],Ue=t[_e];if(a)var $e=P?a(Ue,Ie,_e,t,e,x):a(Ie,Ue,_e,e,t,x);if($e!==r){if($e)continue;Ee=!1;break}if(ke){if(!Js(t,function(He,Ke){if(!mi(ke,Ke)&&(Ie===He||y(Ie,He,o,a,x)))return ke.push(Ke)})){Ee=!1;break}}else if(!(Ie===Ue||y(Ie,Ue,o,a,x))){Ee=!1;break}}return x.delete(e),x.delete(t),Ee}function Om(e,t,o,a,y,x,P){switch(o){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ce:return!(e.byteLength!=t.byteLength||!x(new xo(e),new xo(t)));case ee:case ye:case J:return En(+e,+t);case xe:return e.name==t.name&&e.message==t.message;case _:case F:return e==t+"";case U:var Y=ia;case R:var q=a&I;if(Y||(Y=vo),e.size!=t.size&&!q)return!1;var ge=P.get(e);if(ge)return ge==t;a|=j,P.set(e,t);var ve=wf(Y(e),Y(t),a,y,x,P);return P.delete(e),ve;case X:if(xi)return xi.call(e)==xi.call(t)}return!1}function Em(e,t,o,a,y,x){var P=o&I,Y=Ta(e),q=Y.length,ge=Ta(t),ve=ge.length;if(q!=ve&&!P)return!1;for(var _e=q;_e--;){var Ee=Y[_e];if(!(P?Ee in t:nt.call(t,Ee)))return!1}var ke=x.get(e),Ie=x.get(t);if(ke&&Ie)return ke==t&&Ie==e;var Ue=!0;x.set(e,t),x.set(t,e);for(var $e=P;++_e<q;){Ee=Y[_e];var He=e[Ee],Ke=t[Ee];if(a)var rn=P?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(rn===r?He===Ke||y(He,Ke,o,a,x):rn)){Ue=!1;break}$e||($e=Ee=="constructor")}if(Ue&&!$e){var It=e.constructor,on=t.constructor;It!=on&&"constructor"in e&&"constructor"in t&&!(typeof It=="function"&&It instanceof It&&typeof on=="function"&&on instanceof on)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function qn(e){return $a(Af(e,r,Nf),e+"")}function Ta(e){return jc(e,Ct,ka)}function Pa(e){return jc(e,qt,bf)}var Ma=Eo?function(e){return Eo.get(e)}:Za;function Wo(e){for(var t=e.name+"",o=zr[t],a=nt.call(zr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Vr(e){var t=nt.call(b,"placeholder")?b:e;return t.placeholder}function Ne(){var e=b.iteratee||Va;return e=e===Va?Wc:e,arguments.length?e(arguments[0],arguments[1]):e}function Uo(e,t){var o=e.__data__;return Im(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ra(e){for(var t=Ct(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Sf(y)]}return t}function Cr(e,t){var o=j0(e,t);return Fc(o)?o:r}function Tm(e){var t=nt.call(e,yr),o=e[yr];try{e[yr]=r;var a=!0}catch{}var y=wo.call(e);return a&&(t?e[yr]=o:delete e[yr]),y}var ka=sa?function(e){return e==null?[]:(e=it(e),or(sa(e),function(t){return Ac.call(e,t)}))}:Qa,bf=sa?function(e){for(var t=[];e;)sr(t,ka(e)),e=Co(e);return t}:Qa,Pt=Lt;(aa&&Pt(new aa(new ArrayBuffer(1)))!=Le||_i&&Pt(new _i)!=U||la&&Pt(la.resolve())!=l||Ur&&Pt(new Ur)!=R||wi&&Pt(new wi)!=we)&&(Pt=function(e){var t=Lt(e),o=t==Se?e.constructor:r,a=o?Sr(o):"";if(a)switch(a){case fv:return Le;case hv:return U;case dv:return l;case pv:return R;case gv:return we}return t});function Pm(e,t,o){for(var a=-1,y=o.length;++a<y;){var x=o[a],P=x.size;switch(x.type){case"drop":e+=P;break;case"dropRight":t-=P;break;case"take":t=Tt(t,e+P);break;case"takeRight":e=bt(e,t-P);break}}return{start:e,end:t}}function Mm(e){var t=e.match(Pn);return t?t[1].split(Wt):[]}function xf(e,t,o){t=fr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var P=$n(t[a]);if(!(x=e!=null&&o(e,P)))break;e=e[P]}return x||++a!=y?x:(y=e==null?0:e.length,!!y&&Zo(y)&&Hn(P,y)&&(Fe(e)||Dr(e)))}function Rm(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&nt.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Cf(e){return typeof e.constructor=="function"&&!Ti(e)?qr(Co(e)):{}}function km(e,t,o){var a=e.constructor;switch(t){case Ce:return Aa(e);case ee:case ye:return new a(+e);case Le:return vm(e,o);case Be:case Re:case tt:case Xe:case rt:case Et:case ut:case Ze:case un:return of(e,o);case U:return new a;case J:case F:return new a(e);case _:return mm(e);case R:return new a;case X:return ym(e)}}function Lm(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Qt,`{
125
125
  /* [wrapped with `+t+`] */
126
- `)}function Dy(e){return We(e)||oi(e)||!!(Sf&&e&&e[Sf])}function nr(e,t){var o=typeof e;return t=t??h,!!t&&(o=="number"||o!="symbol"&&ns.test(e))&&e>-1&&e%1==0&&e<t}function Yt(e,t,o){if(!vt(o))return!1;var a=typeof t;return(a=="number"?Ht(o)&&nr(t,o.length):a=="string"&&t in o)?kn(o[t],e):!1}function Mu(e,t){if(We(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||rn(e)?!0:$n.test(e)||!Nn.test(e)||t!=null&&e in ft(t)}function Oy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ru(e){var t=js(e),o=b[t];if(typeof o!="function"||!(t in Qe.prototype))return!1;if(e===o)return!0;var a=Ou(o);return!!a&&e===a[0]}function Ty(e){return!!_f&&_f in e}var Ey=gs?rr:Vu;function wo(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Ci;return e===o}function _h(e){return e===e&&!vt(e)}function wh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in ft(o))}}function My(e){var t=qs(e,function(a){return o.size===C&&o.clear(),a}),o=t.cache;return t}function Ry(e,t){var o=e[1],a=t[1],y=o|a,S=y<(j|ie|ee),L=a==ee&&o==se||a==ee&&o==J&&e[7].length<=t[8]||a==(ee|J)&&t[7].length<=t[8]&&o==se;if(!(S||L))return e;a&j&&(e[2]=t[2],y|=o&j?0:re);var Y=t[3];if(Y){var V=e[3];e[3]=V?nh(V,Y,t[4]):Y,e[4]=V?Rr(e[3],T):t[4]}return Y=t[5],Y&&(V=e[5],e[5]=V?rh(V,Y,t[6]):Y,e[6]=V?Rr(e[5],T):t[6]),Y=t[7],Y&&(e[7]=Y),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 Ly(e){var t=[];if(e!=null)for(var o in ft(e))t.push(o);return t}function ky(e){return vs.call(e)}function bh(e,t,o){return t=Ot(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,S=Ot(a.length-t,0),L=ne(S);++y<S;)L[y]=a[t+y];y=-1;for(var Y=ne(t+1);++y<t;)Y[y]=a[y];return Y[t]=o(L),en(e,this,Y)}}function xh(e,t){return t.length<2?e:ni(e,Sn(t,0,-1))}function Iy(e,t){for(var o=e.length,a=It(t.length,o),y=qt(e);a--;){var S=t[a];e[a]=nr(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),bo=Zm||function(e,t){return Lt.setTimeout(e,t)},ku=Ah(ry);function Ch(e,t,o){var a=t+"";return ku(e,Ay(a,Py(xy(a),o)))}function Ah(e){var t=0,o=0;return function(){var a=Xm(),y=Oe-(a-o);if(o=a,y>0){if(++t>=De)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Us(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(_r,function(o,a,y,S){t.push(y?S.replace(zr,"$1"):a||o)}),t});function Wn(e){if(typeof e=="string"||rn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ii(e){if(e!=null){try{return ms.call(e)}catch{}try{return e+""}catch{}}return""}function Py(e,t){return _n(H,function(o){var a="_."+o[0];t&o[1]&&!fs(e,a)&&e.push(a)}),e.sort()}function Oh(e){if(e instanceof Qe)return e.clone();var t=new bn(e.__wrapped__,e.__chain__);return t.__actions__=qt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ny(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=Ot(ze(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,S=0,L=ne(Ss(a/t));y<a;)L[S++]=Sn(e,y,y+=t);return L}function $y(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 By(){var e=arguments.length;if(!e)return[];for(var t=ne(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Mr(We(o)?qt(o):[o],kt(t,1))}var jy=He(function(e,t){return bt(e)?go(e,kt(t,1,bt,!0)):[]}),Yy=He(function(e,t){var o=Cn(t);return bt(o)&&(o=r),bt(e)?go(e,kt(t,1,bt,!0),$e(o,2)):[]}),Uy=He(function(e,t){var o=Cn(t);return bt(o)&&(o=r),bt(e)?go(e,kt(t,1,bt,!0),r,o):[]});function Fy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),Sn(e,t<0?0:t,a)):[]}function Wy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,Sn(e,0,t<0?0:t)):[]}function zy(e,t){return e&&e.length?ks(e,$e(t,3),!0,!0):[]}function qy(e,t){return e&&e.length?ks(e,$e(t,3),!0):[]}function Hy(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),Bv(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=Ot(a+y,0)),hs(e,$e(t,3),y)}function Eh(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?Ot(a+y,0):It(y,a-1)),hs(e,$e(t,3),y,!0)}function Mh(e){var t=e==null?0:e.length;return t?kt(e,1):[]}function Gy(e){var t=e==null?0:e.length;return t?kt(e,d):[]}function Vy(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:ze(t),kt(e,t)):[]}function Zy(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 Ky(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=Ot(a+y,0)),wi(e,t,y)}function Qy(e){var t=e==null?0:e.length;return t?Sn(e,0,-1):[]}var Jy=He(function(e){var t=gt(e,wu);return t.length&&t[0]===e[0]?cu(t):[]}),Xy=He(function(e){var t=Cn(e),o=gt(e,wu);return t===Cn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?cu(o,$e(t,2)):[]}),e2=He(function(e){var t=Cn(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 t2(e,t){return e==null?"":Qm.call(e,t)}function Cn(e){var t=e==null?0:e.length;return t?e[t-1]:r}function n2(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?Ot(a+y,0):It(y,a-1)),t===t?Pm(e,t,y):hs(e,ff,y,!0)}function r2(e,t){return e&&e.length?Ff(e,ze(t)):r}var i2=He(Lh);function Lh(e,t){return e&&e.length&&t&&t.length?pu(e,t):e}function o2(e,t,o){return e&&e.length&&t&&t.length?pu(e,t,$e(o,2)):e}function s2(e,t,o){return e&&e.length&&t&&t.length?pu(e,t,r,o):e}var a2=tr(function(e,t){var o=e==null?0:e.length,a=su(e,t);return qf(e,gt(t,function(y){return nr(y,o)?+y:y}).sort(th)),a});function u2(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:tv.call(e)}function l2(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)),Sn(e,t,o)):[]}function c2(e,t){return Ls(e,t)}function f2(e,t,o){return vu(e,t,$e(o,2))}function h2(e,t){var o=e==null?0:e.length;if(o){var a=Ls(e,t);if(a<o&&kn(e[a],t))return a}return-1}function d2(e,t){return Ls(e,t,!0)}function p2(e,t,o){return vu(e,t,$e(o,2),!0)}function g2(e,t){var o=e==null?0:e.length;if(o){var a=Ls(e,t,!0)-1;if(kn(e[a],t))return a}return-1}function m2(e){return e&&e.length?Gf(e):[]}function v2(e,t){return e&&e.length?Gf(e,$e(t,2)):[]}function y2(e){var t=e==null?0:e.length;return t?Sn(e,1,t):[]}function _2(e,t,o){return e&&e.length?(t=o||t===r?1:ze(t),Sn(e,0,t<0?0:t)):[]}function w2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,Sn(e,t<0?0:t,a)):[]}function b2(e,t){return e&&e.length?ks(e,$e(t,3),!1,!0):[]}function x2(e,t){return e&&e.length?ks(e,$e(t,3)):[]}var S2=He(function(e){return Ir(kt(e,1,bt,!0))}),C2=He(function(e){var t=Cn(e);return bt(t)&&(t=r),Ir(kt(e,1,bt,!0),$e(t,2))}),A2=He(function(e){var t=Cn(e);return t=typeof t=="function"?t:r,Ir(kt(e,1,bt,!0),r,t)});function D2(e){return e&&e.length?Ir(e):[]}function O2(e,t){return e&&e.length?Ir(e,$e(t,2)):[]}function T2(e,t){return t=typeof t=="function"?t:r,e&&e.length?Ir(e,r,t):[]}function Pu(e){if(!(e&&e.length))return[];var t=0;return e=Er(e,function(o){if(bt(o))return t=Ot(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 en(t,r,a)})}var E2=He(function(e,t){return bt(e)?go(e,t):[]}),M2=He(function(e){return _u(Er(e,bt))}),R2=He(function(e){var t=Cn(e);return bt(t)&&(t=r),_u(Er(e,bt),$e(t,2))}),L2=He(function(e){var t=Cn(e);return t=typeof t=="function"?t:r,_u(Er(e,bt),r,t)}),k2=He(Pu);function I2(e,t){return Qf(e||[],t||[],po)}function P2(e,t){return Qf(e||[],t||[],yo)}var N2=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 $2(e,t){return t(e),e}function Fs(e,t){return t(e)}var B2=tr(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 Qe)||!nr(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Fs,args:[y],thisArg:r}),new bn(a,this.__chain__).thru(function(S){return t&&!S.length&&S.push(r),S}))});function j2(){return Ih(this)}function Y2(){return new bn(this.value(),this.__chain__)}function U2(){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 F2(){return this}function W2(e){for(var t,o=this;o instanceof Os;){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 z2(){var e=this.__wrapped__;if(e instanceof Qe){var t=e;return this.__actions__.length&&(t=new Qe(this)),t=t.reverse(),t.__actions__.push({func:Fs,args:[Iu],thisArg:r}),new bn(t,this.__chain__)}return this.thru(Iu)}function q2(){return Kf(this.__wrapped__,this.__actions__)}var H2=Is(function(e,t,o){st.call(e,o)?++e[o]:Xn(e,o,1)});function G2(e,t,o){var a=We(e)?lf:$v;return o&&Yt(e,t,o)&&(t=r),a(e,$e(t,3))}function V2(e,t){var o=We(e)?Er:kf;return o(e,$e(t,3))}var Z2=ah(Th),K2=ah(Eh);function Q2(e,t){return kt(Ws(e,t),1)}function J2(e,t){return kt(Ws(e,t),d)}function X2(e,t,o){return o=o===r?1:ze(o),kt(Ws(e,t),o)}function Ph(e,t){var o=We(e)?_n:kr;return o(e,$e(t,3))}function Nh(e,t){var o=We(e)?ym:Lf;return o(e,$e(t,3))}var e_=Is(function(e,t,o){st.call(e,o)?e[o].push(t):Xn(e,o,[t])});function t_(e,t,o,a){e=Ht(e)?e:Li(e),o=o&&!a?ze(o):0;var y=e.length;return o<0&&(o=Ot(y+o,0)),Vs(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&wi(e,t,o)>-1}var n_=He(function(e,t,o){var a=-1,y=typeof t=="function",S=Ht(e)?ne(e.length):[];return kr(e,function(L){S[++a]=y?en(t,L,o):mo(L,t,o)}),S}),r_=Is(function(e,t,o){Xn(e,o,t)});function Ws(e,t){var o=We(e)?gt:jf;return o(e,$e(t,3))}function i_(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 o_=Is(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function s_(e,t,o){var a=We(e)?Ga:df,y=arguments.length<3;return a(e,$e(t,4),o,y,kr)}function a_(e,t,o){var a=We(e)?_m:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Lf)}function u_(e,t){var o=We(e)?Er:kf;return o(e,Hs($e(t,3)))}function l_(e){var t=We(e)?Tf:ty;return t(e)}function c_(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=ze(t);var a=We(e)?Lv:ny;return a(e,t)}function f_(e){var t=We(e)?kv:iy;return t(e)}function h_(e){if(e==null)return 0;if(Ht(e))return Vs(e)?xi(e):e.length;var t=Pt(e);return t==W||t==R?e.size:hu(e).length}function d_(e,t,o){var a=We(e)?Va:oy;return o&&Yt(e,t,o)&&(t=r),a(e,$e(t,3))}var p_=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),[])}),zs=Vm||function(){return Lt.Date.now()};function g_(e,t){if(typeof t!="function")throw new wn(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,er(e,ee,r,r,r,r,t)}function Bh(e,t){var o;if(typeof t!="function")throw new wn(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=j;if(o.length){var y=Rr(o,Mi(Nu));a|=K}return er(e,a,t,o,y)}),jh=He(function(e,t,o){var a=j|ie;if(o.length){var y=Rr(o,Mi(jh));a|=K}return er(t,a,e,o,y)});function Yh(e,t,o){t=o?r:t;var a=er(e,se,r,r,r,r,r,t);return a.placeholder=Yh.placeholder,a}function Uh(e,t,o){t=o?r:t;var a=er(e,ce,r,r,r,r,r,t);return a.placeholder=Uh.placeholder,a}function Fh(e,t,o){var a,y,S,L,Y,V,ge=0,ve=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new wn(v);t=An(t)||0,vt(o)&&(ve=!!o.leading,xe="maxWait"in o,S=xe?Ot(An(o.maxWait)||0,t):S,Ee="trailing"in o?!!o.trailing:Ee);function Pe(xt){var In=a,or=y;return a=y=r,ge=xt,L=e.apply(or,In),L}function Be(xt){return ge=xt,Y=bo(Ke,t),ve?Pe(xt):L}function qe(xt){var In=xt-V,or=xt-ge,ad=t-In;return xe?It(ad,S-or):ad}function je(xt){var In=xt-V,or=xt-ge;return V===r||In>=t||In<0||xe&&or>=S}function Ke(){var xt=zs();if(je(xt))return et(xt);Y=bo(Ke,qe(xt))}function et(xt){return Y=r,Ee&&a?Pe(xt):(a=y=r,L)}function on(){Y!==r&&Jf(Y),ge=0,a=V=y=Y=r}function Ut(){return Y===r?L:et(zs())}function sn(){var xt=zs(),In=je(xt);if(a=arguments,y=this,V=xt,In){if(Y===r)return Be(V);if(xe)return Jf(Y),Y=bo(Ke,t),Pe(V)}return Y===r&&(Y=bo(Ke,t)),L}return sn.cancel=on,sn.flush=Ut,sn}var m_=He(function(e,t){return Rf(e,1,t)}),v_=He(function(e,t,o){return Rf(e,An(t)||0,o)});function y_(e){return er(e,pe)}function qs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wn(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(qs.Cache||Jn),o}qs.Cache=Jn;function Hs(e){if(typeof e!="function")throw new wn(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 __(e){return Bh(2,e)}var w_=sy(function(e,t){t=t.length==1&&We(t[0])?gt(t[0],tn($e())):gt(kt(t,1),tn($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 en(e,this,a)})}),$u=He(function(e,t){var o=Rr(t,Mi($u));return er(e,K,r,t,o)}),Wh=He(function(e,t){var o=Rr(t,Mi(Wh));return er(e,de,r,t,o)}),b_=tr(function(e,t){return er(e,J,r,r,r,t)});function x_(e,t){if(typeof e!="function")throw new wn(v);return t=t===r?t:ze(t),He(e,t)}function S_(e,t){if(typeof e!="function")throw new wn(v);return t=t==null?0:Ot(ze(t),0),He(function(o){var a=o[t],y=Nr(o,0,t);return a&&Mr(y,a),en(e,this,y)})}function C_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new wn(v);return vt(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 A_(e){return $h(e,1)}function D_(e,t){return $u(bu(t),e)}function O_(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function T_(e){return xn(e,E)}function E_(e,t){return t=typeof t=="function"?t:r,xn(e,E,t)}function M_(e){return xn(e,M|E)}function R_(e,t){return t=typeof t=="function"?t:r,xn(e,M|E,t)}function L_(e,t){return t==null||Mf(e,t,Et(t))}function kn(e,t){return e===t||e!==e&&t!==t}var k_=Bs(lu),I_=Bs(function(e,t){return e>=t}),oi=Nf(function(){return arguments}())?Nf:function(e){return _t(e)&&st.call(e,"callee")&&!xf.call(e,"callee")},We=ne.isArray,P_=nf?tn(nf):Wv;function Ht(e){return e!=null&&Gs(e.length)&&!rr(e)}function bt(e){return _t(e)&&Ht(e)}function N_(e){return e===!0||e===!1||_t(e)&&jt(e)==Q}var $r=Km||Vu,$_=rf?tn(rf):zv;function B_(e){return _t(e)&&e.nodeType===1&&!xo(e)}function j_(e){if(e==null)return!0;if(Ht(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||$r(e)||Ri(e)||oi(e)))return!e.length;var t=Pt(e);if(t==W||t==R)return!e.size;if(wo(e))return!hu(e).length;for(var o in e)if(st.call(e,o))return!1;return!0}function Y_(e,t){return vo(e,t)}function U_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?vo(e,t,r,o):!!a}function Bu(e){if(!_t(e))return!1;var t=jt(e);return t==_e||t==Ce||typeof e.message=="string"&&typeof e.name=="string"&&!xo(e)}function F_(e){return typeof e=="number"&&Cf(e)}function rr(e){if(!vt(e))return!1;var t=jt(e);return t==B||t==z||t==we||t==f}function zh(e){return typeof e=="number"&&e==ze(e)}function Gs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=h}function vt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function _t(e){return e!=null&&typeof e=="object"}var qh=of?tn(of):Hv;function W_(e,t){return e===t||fu(e,t,Tu(t))}function z_(e,t,o){return o=typeof o=="function"?o:r,fu(e,t,Tu(t),o)}function q_(e){return Hh(e)&&e!=+e}function H_(e){if(Ey(e))throw new Fe(p);return $f(e)}function G_(e){return e===null}function V_(e){return e==null}function Hh(e){return typeof e=="number"||_t(e)&&jt(e)==Z}function xo(e){if(!_t(e)||jt(e)!=Te)return!1;var t=ws(e);if(t===null)return!0;var o=st.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ms.call(o)==zm}var ju=sf?tn(sf):Gv;function Z_(e){return zh(e)&&e>=-9007199254740991&&e<=h}var Gh=af?tn(af):Vv;function Vs(e){return typeof e=="string"||!We(e)&&_t(e)&&jt(e)==q}function rn(e){return typeof e=="symbol"||_t(e)&&jt(e)==X}var Ri=uf?tn(uf):Zv;function K_(e){return e===r}function Q_(e){return _t(e)&&Pt(e)==be}function J_(e){return _t(e)&&jt(e)==Re}var X_=Bs(du),ew=Bs(function(e,t){return e<=t});function Vh(e){if(!e)return[];if(Ht(e))return Vs(e)?Rn(e):qt(e);if(uo&&e[uo])return Lm(e[uo]());var t=Pt(e),o=t==W?eu:t==R?ds:Li;return o(e)}function ir(e){if(!e)return e===0?e:0;if(e=An(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=ir(e),o=t%1;return t===t?o?t-o:t:0}function Zh(e){return e?ti(ze(e),0,g):0}function An(e){if(typeof e=="number")return e;if(rn(e))return m;if(vt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pf(e);var o=gn.test(e);return o||qr.test(e)?gm(e.slice(2),o?2:8):Rt.test(e)?m:+e}function Kh(e){return Fn(e,Gt(e))}function tw(e){return e?ti(ze(e),-9007199254740991,h):e===0?e:0}function ot(e){return e==null?"":nn(e)}var nw=Ti(function(e,t){if(wo(t)||Ht(t)){Fn(t,Et(t),e);return}for(var o in t)st.call(t,o)&&po(e,o,t[o])}),Qh=Ti(function(e,t){Fn(t,Gt(t),e)}),Zs=Ti(function(e,t,o,a){Fn(t,Gt(t),e,a)}),rw=Ti(function(e,t,o,a){Fn(t,Et(t),e,a)}),iw=tr(su);function ow(e,t){var o=Oi(e);return t==null?o:Ef(o,t)}var sw=He(function(e,t){e=ft(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=Gt(S),Y=-1,V=L.length;++Y<V;){var ge=L[Y],ve=e[ge];(ve===r||kn(ve,Ci[ge])&&!st.call(e,ge))&&(e[ge]=S[ge])}return e}),aw=He(function(e){return e.push(r,ph),en(Jh,r,e)});function uw(e,t){return cf(e,$e(t,3),Un)}function lw(e,t){return cf(e,$e(t,3),uu)}function cw(e,t){return e==null?e:au(e,$e(t,3),Gt)}function fw(e,t){return e==null?e:If(e,$e(t,3),Gt)}function hw(e,t){return e&&Un(e,$e(t,3))}function dw(e,t){return e&&uu(e,$e(t,3))}function pw(e){return e==null?[]:Ms(e,Et(e))}function gw(e){return e==null?[]:Ms(e,Gt(e))}function Yu(e,t,o){var a=e==null?r:ni(e,t);return a===r?o:a}function mw(e,t){return e!=null&&vh(e,t,jv)}function Uu(e,t){return e!=null&&vh(e,t,Yv)}var vw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=vs.call(t)),e[t]=o},Wu(Vt)),yw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=vs.call(t)),st.call(e,t)?e[t].push(o):e[t]=[o]},$e),_w=He(mo);function Et(e){return Ht(e)?Of(e):hu(e)}function Gt(e){return Ht(e)?Of(e,!0):Kv(e)}function ww(e,t){var o={};return t=$e(t,3),Un(e,function(a,y,S){Xn(o,t(a,y,S),a)}),o}function bw(e,t){var o={};return t=$e(t,3),Un(e,function(a,y,S){Xn(o,y,t(a,y,S))}),o}var xw=Ti(function(e,t,o){Rs(e,t,o)}),Jh=Ti(function(e,t,o,a){Rs(e,t,o,a)}),Sw=tr(function(e,t){var o={};if(e==null)return o;var a=!1;t=gt(t,function(S){return S=Pr(S,e),a||(a=S.length>1),S}),Fn(e,Du(e),o),a&&(o=xn(o,M|P|E,vy));for(var y=t.length;y--;)yu(o,t[y]);return o});function Cw(e,t){return Xh(e,Hs($e(t)))}var Aw=tr(function(e,t){return e==null?{}:Jv(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 Dw(e,t,o){t=Pr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[Wn(t[a])];S===r&&(a=y,S=o),e=rr(S)?S.call(e):S}return e}function Ow(e,t,o){return e==null?e:yo(e,t,o)}function Tw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:yo(e,t,o,a)}var ed=hh(Et),td=hh(Gt);function Ew(e,t,o){var a=We(e),y=a||$r(e)||Ri(e);if(t=$e(t,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:vt(e)?o=rr(S)?Oi(ws(e)):{}:o={}}return(y?_n:Un)(e,function(L,Y,V){return t(o,L,Y,V)}),o}function Mw(e,t){return e==null?!0:yu(e,t)}function Rw(e,t,o){return e==null?e:Zf(e,t,bu(o))}function Lw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Zf(e,t,bu(o),a)}function Li(e){return e==null?[]:Xa(e,Et(e))}function kw(e){return e==null?[]:Xa(e,Gt(e))}function Iw(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=An(o),o=o===o?o:0),t!==r&&(t=An(t),t=t===t?t:0),ti(An(e),t,o)}function Pw(e,t,o){return t=ir(t),o===r?(o=t,t=0):o=ir(o),e=An(e),Uv(e,t,o)}function Nw(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=ir(e),t===r?(t=e,e=0):t=ir(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+pm("1e-"+((y+"").length-1))),t)}return gu(e,t)}var $w=Ei(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,Om).replace(vn,"")}function Bw(e,t,o){e=ot(e),t=nn(t);var a=e.length;o=o===r?a:ti(ze(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function jw(e){return e=ot(e),e&&dn.test(e)?e.replace(Kt,Tm):e}function Yw(e){return e=ot(e),e&&wr.test(e)?e.replace(Hn,"\\$&"):e}var Uw=Ei(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Fw=Ei(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Ww=sh("toLowerCase");function zw(e,t,o){e=ot(e),t=ze(t);var a=t?xi(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return $s(Cs(y),o)+e+$s(Ss(y),o)}function qw(e,t,o){e=ot(e),t=ze(t);var a=t?xi(e):0;return t&&a<t?e+$s(t-a,o):e}function Hw(e,t,o){e=ot(e),t=ze(t);var a=t?xi(e):0;return t&&a<t?$s(t-a,o)+e:e}function Gw(e,t,o){return o||t==null?t=0:t&&(t=+t),ev(ot(e).replace(pn,""),t||0)}function Vw(e,t,o){return(o?Yt(e,t,o):t===r)?t=1:t=ze(t),mu(ot(e),t)}function Zw(){var e=arguments,t=ot(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Kw=Ei(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function Qw(e,t,o){return o&&typeof o!="number"&&Yt(e,t,o)&&(t=o=r),o=o===r?g:o>>>0,o?(e=ot(e),e&&(typeof t=="string"||t!=null&&!ju(t))&&(t=nn(t),!t&&bi(e))?Nr(Rn(e),0,o):e.split(t,o)):[]}var Jw=Ei(function(e,t,o){return e+(o?" ":"")+Fu(t)});function Xw(e,t,o){return e=ot(e),o=o==null?0:ti(ze(o),0,e.length),t=nn(t),e.slice(o,o+t.length)==t}function eb(e,t,o){var a=b.templateSettings;o&&Yt(e,t,o)&&(t=r),e=ot(e),t=Zs({},t,a,dh);var y=Zs({},t.imports,a.imports,dh),S=Et(y),L=Xa(y,S),Y,V,ge=0,ve=t.interpolate||Sr,xe="__p += '",Ee=tu((t.escape||Sr).source+"|"+ve.source+"|"+(ve===Tn?En:Sr).source+"|"+(t.evaluate||Sr).source+"|$","g"),Pe="//# sourceURL="+(st.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lm+"]")+`
127
- `;e.replace(Ee,function(je,Ke,et,on,Ut,sn){return et||(et=on),xe+=e.slice(ge,sn).replace(Na,Em),Ke&&(Y=!0,xe+=`' +
128
- __e(`+Ke+`) +
129
- '`),Ut&&(V=!0,xe+=`';
130
- `+Ut+`;
131
- __p += '`),et&&(xe+=`' +
132
- ((__t = (`+et+`)) == null ? '' : __t) +
133
- '`),ge=sn+je.length,je}),xe+=`';
134
- `;var Be=st.call(t,"variable")&&t.variable;if(!Be)xe=`with (obj) {
135
- `+xe+`
126
+ `)}function Nm(e){return Fe(e)||Dr(e)||!!(Oc&&e&&e[Oc])}function Hn(e,t){var o=typeof e;return t=t??d,!!t&&(o=="number"||o!="symbol"&&js.test(e))&&e>-1&&e%1==0&&e<t}function Nt(e,t,o){if(!ft(o))return!1;var a=typeof t;return(a=="number"?zt(o)&&Hn(t,o.length):a=="string"&&t in o)?En(o[t],e):!1}function La(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||nn(e)?!0:Yt.test(e)||!Sn.test(e)||t!=null&&e in it(t)}function Im(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Na(e){var t=Wo(e),o=b[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=Ma(o);return!!a&&e===a[0]}function $m(e){return!!Cc&&Cc in e}var Bm=yo?Gn:Ja;function Ti(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Wr;return e===o}function Sf(e){return e===e&&!ft(e)}function Df(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in it(o))}}function jm(e){var t=Vo(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Ym(e,t){var o=e[1],a=t[1],y=o|a,x=y<(H|ae|Q),P=a==Q&&o==le||a==Q&&o==V&&e[7].length<=t[8]||a==(Q|V)&&t[7].length<=t[8]&&o==le;if(!(x||P))return e;a&H&&(e[2]=t[2],y|=o&H?0:se);var Y=t[3];if(Y){var q=e[3];e[3]=q?af(q,Y,t[4]):Y,e[4]=q?ar(e[3],E):t[4]}return Y=t[5],Y&&(q=e[5],e[5]=q?lf(q,Y,t[6]):Y,e[6]=q?ar(e[5],E):t[6]),Y=t[7],Y&&(e[7]=Y),a&Q&&(e[8]=e[8]==null?t[8]:Tt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Fm(e){var t=[];if(e!=null)for(var o in it(e))t.push(o);return t}function Wm(e){return wo.call(e)}function Af(e,t,o){return t=bt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,x=bt(a.length-t,0),P=ie(x);++y<x;)P[y]=a[t+y];y=-1;for(var Y=ie(t+1);++y<t;)Y[y]=a[y];return Y[t]=o(P),Xt(e,this,Y)}}function Of(e,t){return t.length<2?e:xr(e,mn(t,0,-1))}function Um(e,t){for(var o=e.length,a=Tt(t.length,o),y=Ut(e);a--;){var x=t[a];e[a]=Hn(x,o)?y[x]:r}return e}function Ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ef=Pf(Zc),Pi=iv||function(e,t){return At.setTimeout(e,t)},$a=Pf(hm);function Tf(e,t,o){var a=t+"";return $a(e,Lm(a,zm(Mm(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lv(),y=Oe-(a-o);if(o=a,y>0){if(++t>=De)return arguments[0]}else t=0;return e.apply(r,arguments)}}function zo(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=_a(o,y),P=e[x];e[x]=e[o],e[o]=P}return e.length=t,e}var Mf=jm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kt,function(o,a,y,x){t.push(y?x.replace(_t,"$1"):a||o)}),t});function $n(e){if(typeof e=="string"||nn(e))return e;var t=e+"";return t=="0"&&1/e==-p?"-0":t}function Sr(e){if(e!=null){try{return _o.call(e)}catch{}try{return e+""}catch{}}return""}function zm(e,t){return dn(G,function(o){var a="_."+o[0];t&o[1]&&!po(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new gn(e.__wrapped__,e.__chain__);return t.__actions__=Ut(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qm(e,t,o){(o?Nt(e,t,o):t===r)?t=1:t=bt(We(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,x=0,P=ie(Ao(a/t));y<a;)P[x++]=mn(e,y,y+=t);return P}function Hm(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var x=e[t];x&&(y[a++]=x)}return y}function Gm(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return sr(Fe(o)?Ut(o):[o],Ot(t,1))}var Vm=qe(function(e,t){return pt(e)?Si(e,Ot(t,1,pt,!0)):[]}),Km=qe(function(e,t){var o=yn(t);return pt(o)&&(o=r),pt(e)?Si(e,Ot(t,1,pt,!0),Ne(o,2)):[]}),Zm=qe(function(e,t){var o=yn(t);return pt(o)&&(o=r),pt(e)?Si(e,Ot(t,1,pt,!0),r,o):[]});function Qm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),mn(e,t<0?0:t,a)):[]}function Jm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,mn(e,0,t<0?0:t)):[]}function Xm(e,t){return e&&e.length?Io(e,Ne(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?Io(e,Ne(t,3),!0):[]}function ty(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&Nt(e,t,o)&&(o=0,a=y),Gv(e,t,o,a)):[]}function kf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=bt(a+y,0)),go(e,Ne(t,3),y)}function Lf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=We(o),y=o<0?bt(a+y,0):Tt(y,a-1)),go(e,Ne(t,3),y,!0)}function Nf(e){var t=e==null?0:e.length;return t?Ot(e,1):[]}function ny(e){var t=e==null?0:e.length;return t?Ot(e,p):[]}function ry(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:We(t),Ot(e,t)):[]}function iy(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function If(e){return e&&e.length?e[0]:r}function oy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=bt(a+y,0)),Br(e,t,y)}function sy(e){var t=e==null?0:e.length;return t?mn(e,0,-1):[]}var ay=qe(function(e){var t=ct(e,Sa);return t.length&&t[0]===e[0]?pa(t):[]}),ly=qe(function(e){var t=yn(e),o=ct(e,Sa);return t===yn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?pa(o,Ne(t,2)):[]}),uy=qe(function(e){var t=yn(e),o=ct(e,Sa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?pa(o,r,t):[]});function cy(e,t){return e==null?"":sv.call(e,t)}function yn(e){var t=e==null?0:e.length;return t?e[t-1]:r}function fy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=We(o),y=y<0?bt(a+y,0):Tt(y,a-1)),t===t?z0(e,t,y):go(e,gc,y,!0)}function hy(e,t){return e&&e.length?Hc(e,We(t)):r}var dy=qe($f);function $f(e,t){return e&&e.length&&t&&t.length?ya(e,t):e}function py(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,Ne(o,2)):e}function gy(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,r,o):e}var vy=qn(function(e,t){var o=e==null?0:e.length,a=ca(e,t);return Kc(e,ct(t,function(y){return Hn(y,o)?+y:y}).sort(sf)),a});function my(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],x=e.length;for(t=Ne(t,3);++a<x;){var P=e[a];t(P,a,e)&&(o.push(P),y.push(a))}return Kc(e,y),o}function Ba(e){return e==null?e:cv.call(e)}function yy(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&Nt(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),mn(e,t,o)):[]}function _y(e,t){return No(e,t)}function wy(e,t,o){return ba(e,t,Ne(o,2))}function by(e,t){var o=e==null?0:e.length;if(o){var a=No(e,t);if(a<o&&En(e[a],t))return a}return-1}function xy(e,t){return No(e,t,!0)}function Cy(e,t,o){return ba(e,t,Ne(o,2),!0)}function Sy(e,t){var o=e==null?0:e.length;if(o){var a=No(e,t,!0)-1;if(En(e[a],t))return a}return-1}function Dy(e){return e&&e.length?Qc(e):[]}function Ay(e,t){return e&&e.length?Qc(e,Ne(t,2)):[]}function Oy(e){var t=e==null?0:e.length;return t?mn(e,1,t):[]}function Ey(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),mn(e,0,t<0?0:t)):[]}function Ty(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,mn(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?Io(e,Ne(t,3),!1,!0):[]}function My(e,t){return e&&e.length?Io(e,Ne(t,3)):[]}var Ry=qe(function(e){return cr(Ot(e,1,pt,!0))}),ky=qe(function(e){var t=yn(e);return pt(t)&&(t=r),cr(Ot(e,1,pt,!0),Ne(t,2))}),Ly=qe(function(e){var t=yn(e);return t=typeof t=="function"?t:r,cr(Ot(e,1,pt,!0),r,t)});function Ny(e){return e&&e.length?cr(e):[]}function Iy(e,t){return e&&e.length?cr(e,Ne(t,2)):[]}function $y(e,t){return t=typeof t=="function"?t:r,e&&e.length?cr(e,r,t):[]}function ja(e){if(!(e&&e.length))return[];var t=0;return e=or(e,function(o){if(pt(o))return t=bt(o.length,t),!0}),na(t,function(o){return ct(e,Xs(o))})}function Bf(e,t){if(!(e&&e.length))return[];var o=ja(e);return t==null?o:ct(o,function(a){return Xt(t,r,a)})}var By=qe(function(e,t){return pt(e)?Si(e,t):[]}),jy=qe(function(e){return Ca(or(e,pt))}),Yy=qe(function(e){var t=yn(e);return pt(t)&&(t=r),Ca(or(e,pt),Ne(t,2))}),Fy=qe(function(e){var t=yn(e);return t=typeof t=="function"?t:r,Ca(or(e,pt),r,t)}),Wy=qe(ja);function Uy(e,t){return tf(e||[],t||[],Ci)}function zy(e,t){return tf(e||[],t||[],Oi)}var qy=qe(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Bf(e,o)});function jf(e){var t=b(e);return t.__chain__=!0,t}function Hy(e,t){return t(e),e}function qo(e,t){return t(e)}var Gy=qn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return ca(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Hn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:qo,args:[y],thisArg:r}),new gn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return jf(this)}function Ky(){return new gn(this.value(),this.__chain__)}function Zy(){this.__values__===r&&(this.__values__=Xf(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Qy(){return this}function Jy(e){for(var t,o=this;o instanceof Po;){var a=Rf(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function Xy(){var e=this.__wrapped__;if(e instanceof Ge){var t=e;return this.__actions__.length&&(t=new Ge(this)),t=t.reverse(),t.__actions__.push({func:qo,args:[Ba],thisArg:r}),new gn(t,this.__chain__)}return this.thru(Ba)}function e_(){return ef(this.__wrapped__,this.__actions__)}var t_=$o(function(e,t,o){nt.call(e,o)?++e[o]:Un(e,o,1)});function n_(e,t,o){var a=Fe(e)?dc:Hv;return o&&Nt(e,t,o)&&(t=r),a(e,Ne(t,3))}function r_(e,t){var o=Fe(e)?or:$c;return o(e,Ne(t,3))}var i_=hf(kf),o_=hf(Lf);function s_(e,t){return Ot(Ho(e,t),1)}function a_(e,t){return Ot(Ho(e,t),p)}function l_(e,t,o){return o=o===r?1:We(o),Ot(Ho(e,t),o)}function Yf(e,t){var o=Fe(e)?dn:ur;return o(e,Ne(t,3))}function Ff(e,t){var o=Fe(e)?O0:Ic;return o(e,Ne(t,3))}var u_=$o(function(e,t,o){nt.call(e,o)?e[o].push(t):Un(e,o,[t])});function c_(e,t,o,a){e=zt(e)?e:Zr(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=bt(y+o,0)),Qo(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Br(e,t,o)>-1}var f_=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=zt(e)?ie(e.length):[];return ur(e,function(P){x[++a]=y?Xt(t,P,o):Di(P,t,o)}),x}),h_=$o(function(e,t,o){Un(e,o,t)});function Ho(e,t){var o=Fe(e)?ct:Uc;return o(e,Ne(t,3))}function d_(e,t,o,a){return e==null?[]:(Fe(t)||(t=t==null?[]:[t]),o=a?r:o,Fe(o)||(o=o==null?[]:[o]),Gc(e,t,o))}var p_=$o(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function g_(e,t,o){var a=Fe(e)?Qs:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,ur)}function v_(e,t,o){var a=Fe(e)?E0:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function m_(e,t){var o=Fe(e)?or:$c;return o(e,Ko(Ne(t,3)))}function y_(e){var t=Fe(e)?Rc:cm;return t(e)}function __(e,t,o){(o?Nt(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Fv:fm;return a(e,t)}function w_(e){var t=Fe(e)?Wv:dm;return t(e)}function b_(e){if(e==null)return 0;if(zt(e))return Qo(e)?Yr(e):e.length;var t=Pt(e);return t==U||t==R?e.size:va(e).length}function x_(e,t,o){var a=Fe(e)?Js:pm;return o&&Nt(e,t,o)&&(t=r),a(e,Ne(t,3))}var C_=qe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Nt(e,t[0],t[1])?t=[]:o>2&&Nt(t[0],t[1],t[2])&&(t=[t[0]]),Gc(e,Ot(t,1),[])}),Go=rv||function(){return At.Date.now()};function S_(e,t){if(typeof t!="function")throw new pn(v);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,zn(e,Q,r,r,r,r,t)}function Uf(e,t){var o;if(typeof t!="function")throw new pn(v);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Ya=qe(function(e,t,o){var a=H;if(o.length){var y=ar(o,Vr(Ya));a|=Z}return zn(e,a,t,o,y)}),zf=qe(function(e,t,o){var a=H|ae;if(o.length){var y=ar(o,Vr(zf));a|=Z}return zn(t,a,e,o,y)});function qf(e,t,o){t=o?r:t;var a=zn(e,le,r,r,r,r,r,t);return a.placeholder=qf.placeholder,a}function Hf(e,t,o){t=o?r:t;var a=zn(e,ue,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,x,P,Y,q,ge=0,ve=!1,_e=!1,Ee=!0;if(typeof e!="function")throw new pn(v);t=_n(t)||0,ft(o)&&(ve=!!o.leading,_e="maxWait"in o,x=_e?bt(_n(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function ke(gt){var Tn=a,Kn=y;return a=y=r,ge=gt,P=e.apply(Kn,Tn),P}function Ie(gt){return ge=gt,Y=Pi(He,t),ve?ke(gt):P}function Ue(gt){var Tn=gt-q,Kn=gt-ge,hh=t-Tn;return _e?Tt(hh,x-Kn):hh}function $e(gt){var Tn=gt-q,Kn=gt-ge;return q===r||Tn>=t||Tn<0||_e&&Kn>=x}function He(){var gt=Go();if($e(gt))return Ke(gt);Y=Pi(He,Ue(gt))}function Ke(gt){return Y=r,Ee&&a?ke(gt):(a=y=r,P)}function rn(){Y!==r&&nf(Y),ge=0,a=q=y=Y=r}function It(){return Y===r?P:Ke(Go())}function on(){var gt=Go(),Tn=$e(gt);if(a=arguments,y=this,q=gt,Tn){if(Y===r)return Ie(q);if(_e)return nf(Y),Y=Pi(He,t),ke(q)}return Y===r&&(Y=Pi(He,t)),P}return on.cancel=rn,on.flush=It,on}var D_=qe(function(e,t){return Nc(e,1,t)}),A_=qe(function(e,t,o){return Nc(e,_n(t)||0,o)});function O_(e){return zn(e,de)}function Vo(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],x=o.cache;if(x.has(y))return x.get(y);var P=e.apply(this,a);return o.cache=x.set(y,P)||x,P};return o.cache=new(Vo.Cache||Wn),o}Vo.Cache=Wn;function Ko(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 E_(e){return Uf(2,e)}var T_=gm(function(e,t){t=t.length==1&&Fe(t[0])?ct(t[0],en(Ne())):ct(Ot(t,1),en(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Tt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return Xt(e,this,a)})}),Fa=qe(function(e,t){var o=ar(t,Vr(Fa));return zn(e,Z,r,t,o)}),Vf=qe(function(e,t){var o=ar(t,Vr(Vf));return zn(e,ce,r,t,o)}),P_=qn(function(e,t){return zn(e,V,r,r,r,t)});function M_(e,t){if(typeof e!="function")throw new pn(v);return t=t===r?t:We(t),qe(e,t)}function R_(e,t){if(typeof e!="function")throw new pn(v);return t=t==null?0:bt(We(t),0),qe(function(o){var a=o[t],y=hr(o,0,t);return a&&sr(y,a),Xt(e,this,y)})}function k_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new pn(v);return ft(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Gf(e,t,{leading:a,maxWait:t,trailing:y})}function L_(e){return Wf(e,1)}function N_(e,t){return Fa(Da(t),e)}function I_(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function $_(e){return vn(e,k)}function B_(e,t){return t=typeof t=="function"?t:r,vn(e,k,t)}function j_(e){return vn(e,L|k)}function Y_(e,t){return t=typeof t=="function"?t:r,vn(e,L|k,t)}function F_(e,t){return t==null||Lc(e,t,Ct(t))}function En(e,t){return e===t||e!==e&&t!==t}var W_=Fo(da),U_=Fo(function(e,t){return e>=t}),Dr=Yc(function(){return arguments}())?Yc:function(e){return dt(e)&&nt.call(e,"callee")&&!Ac.call(e,"callee")},Fe=ie.isArray,z_=ac?en(ac):Jv;function zt(e){return e!=null&&Zo(e.length)&&!Gn(e)}function pt(e){return dt(e)&&zt(e)}function q_(e){return e===!0||e===!1||dt(e)&&Lt(e)==ee}var dr=ov||Ja,H_=lc?en(lc):Xv;function G_(e){return dt(e)&&e.nodeType===1&&!Mi(e)}function V_(e){if(e==null)return!0;if(zt(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||dr(e)||Kr(e)||Dr(e)))return!e.length;var t=Pt(e);if(t==U||t==R)return!e.size;if(Ti(e))return!va(e).length;for(var o in e)if(nt.call(e,o))return!1;return!0}function K_(e,t){return Ai(e,t)}function Z_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Ai(e,t,r,o):!!a}function Wa(e){if(!dt(e))return!1;var t=Lt(e);return t==xe||t==pe||typeof e.message=="string"&&typeof e.name=="string"&&!Mi(e)}function Q_(e){return typeof e=="number"&&Ec(e)}function Gn(e){if(!ft(e))return!1;var t=Lt(e);return t==$||t==K||t==be||t==c}function Kf(e){return typeof e=="number"&&e==We(e)}function Zo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var Zf=uc?en(uc):tm;function J_(e,t){return e===t||ga(e,t,Ra(t))}function X_(e,t,o){return o=typeof o=="function"?o:r,ga(e,t,Ra(t),o)}function e2(e){return Qf(e)&&e!=+e}function t2(e){if(Bm(e))throw new Ye(g);return Fc(e)}function n2(e){return e===null}function r2(e){return e==null}function Qf(e){return typeof e=="number"||dt(e)&&Lt(e)==J}function Mi(e){if(!dt(e)||Lt(e)!=Se)return!1;var t=Co(e);if(t===null)return!0;var o=nt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&_o.call(o)==X0}var Ua=cc?en(cc):nm;function i2(e){return Kf(e)&&e>=-d&&e<=d}var Jf=fc?en(fc):rm;function Qo(e){return typeof e=="string"||!Fe(e)&&dt(e)&&Lt(e)==F}function nn(e){return typeof e=="symbol"||dt(e)&&Lt(e)==X}var Kr=hc?en(hc):im;function o2(e){return e===r}function s2(e){return dt(e)&&Pt(e)==we}function a2(e){return dt(e)&&Lt(e)==Pe}var l2=Fo(ma),u2=Fo(function(e,t){return e<=t});function Xf(e){if(!e)return[];if(zt(e))return Qo(e)?An(e):Ut(e);if(yi&&e[yi])return F0(e[yi]());var t=Pt(e),o=t==U?ia:t==R?vo:Zr;return o(e)}function Vn(e){if(!e)return e===0?e:0;if(e=_n(e),e===p||e===-p){var t=e<0?-1:1;return t*w}return e===e?e:0}function We(e){var t=Vn(e),o=t%1;return t===t?o?t-o:t:0}function eh(e){return e?br(We(e),0,m):0}function _n(e){if(typeof e=="number")return e;if(nn(e))return h;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yc(e);var o=Mn.test(e);return o||Jt.test(e)?S0(e.slice(2),o?2:8):xt.test(e)?h:+e}function th(e){return In(e,qt(e))}function c2(e){return e?br(We(e),-d,d):e===0?e:0}function et(e){return e==null?"":tn(e)}var f2=Hr(function(e,t){if(Ti(t)||zt(t)){In(t,Ct(t),e);return}for(var o in t)nt.call(t,o)&&Ci(e,o,t[o])}),nh=Hr(function(e,t){In(t,qt(t),e)}),Jo=Hr(function(e,t,o,a){In(t,qt(t),e,a)}),h2=Hr(function(e,t,o,a){In(t,Ct(t),e,a)}),d2=qn(ca);function p2(e,t){var o=qr(e);return t==null?o:kc(o,t)}var g2=qe(function(e,t){e=it(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&Nt(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],P=qt(x),Y=-1,q=P.length;++Y<q;){var ge=P[Y],ve=e[ge];(ve===r||En(ve,Wr[ge])&&!nt.call(e,ge))&&(e[ge]=x[ge])}return e}),v2=qe(function(e){return e.push(r,_f),Xt(rh,r,e)});function m2(e,t){return pc(e,Ne(t,3),Nn)}function y2(e,t){return pc(e,Ne(t,3),ha)}function _2(e,t){return e==null?e:fa(e,Ne(t,3),qt)}function w2(e,t){return e==null?e:Bc(e,Ne(t,3),qt)}function b2(e,t){return e&&Nn(e,Ne(t,3))}function x2(e,t){return e&&ha(e,Ne(t,3))}function C2(e){return e==null?[]:ko(e,Ct(e))}function S2(e){return e==null?[]:ko(e,qt(e))}function za(e,t,o){var a=e==null?r:xr(e,t);return a===r?o:a}function D2(e,t){return e!=null&&xf(e,t,Vv)}function qa(e,t){return e!=null&&xf(e,t,Kv)}var A2=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=wo.call(t)),e[t]=o},Ga(Ht)),O2=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=wo.call(t)),nt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),E2=qe(Di);function Ct(e){return zt(e)?Mc(e):va(e)}function qt(e){return zt(e)?Mc(e,!0):om(e)}function T2(e,t){var o={};return t=Ne(t,3),Nn(e,function(a,y,x){Un(o,t(a,y,x),a)}),o}function P2(e,t){var o={};return t=Ne(t,3),Nn(e,function(a,y,x){Un(o,y,t(a,y,x))}),o}var M2=Hr(function(e,t,o){Lo(e,t,o)}),rh=Hr(function(e,t,o,a){Lo(e,t,o,a)}),R2=qn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ct(t,function(x){return x=fr(x,e),a||(a=x.length>1),x}),In(e,Pa(e),o),a&&(o=vn(o,L|M|k,Am));for(var y=t.length;y--;)xa(o,t[y]);return o});function k2(e,t){return ih(e,Ko(Ne(t)))}var L2=qn(function(e,t){return e==null?{}:am(e,t)});function ih(e,t){if(e==null)return{};var o=ct(Pa(e),function(a){return[a]});return t=Ne(t),Vc(e,o,function(a,y){return t(a,y[0])})}function N2(e,t,o){t=fr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[$n(t[a])];x===r&&(a=y,x=o),e=Gn(x)?x.call(e):x}return e}function I2(e,t,o){return e==null?e:Oi(e,t,o)}function $2(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Oi(e,t,o,a)}var oh=mf(Ct),sh=mf(qt);function B2(e,t,o){var a=Fe(e),y=a||dr(e)||Kr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ft(e)?o=Gn(x)?qr(Co(e)):{}:o={}}return(y?dn:Nn)(e,function(P,Y,q){return t(o,P,Y,q)}),o}function j2(e,t){return e==null?!0:xa(e,t)}function Y2(e,t,o){return e==null?e:Xc(e,t,Da(o))}function F2(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Xc(e,t,Da(o),a)}function Zr(e){return e==null?[]:ra(e,Ct(e))}function W2(e){return e==null?[]:ra(e,qt(e))}function U2(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),br(_n(e),t,o)}function z2(e,t,o){return t=Vn(t),o===r?(o=t,t=0):o=Vn(o),e=_n(e),Zv(e,t,o)}function q2(e,t,o){if(o&&typeof o!="boolean"&&Nt(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=Vn(e),t===r?(t=e,e=0):t=Vn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Tc();return Tt(e+y*(t-e+C0("1e-"+((y+"").length-1))),t)}return _a(e,t)}var H2=Gr(function(e,t,o){return t=t.toLowerCase(),e+(o?ah(t):t)});function ah(e){return Ha(et(e).toLowerCase())}function lh(e){return e=et(e),e&&e.replace(Ys,I0).replace(d0,"")}function G2(e,t,o){e=et(e),t=tn(t);var a=e.length;o=o===r?a:br(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function V2(e){return e=et(e),e&&cn.test(e)?e.replace(Gt,$0):e}function K2(e){return e=et(e),e&&ze.test(e)?e.replace(Ft,"\\$&"):e}var Z2=Gr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Q2=Gr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),J2=ff("toLowerCase");function X2(e,t,o){e=et(e),t=We(t);var a=t?Yr(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Yo(Oo(y),o)+e+Yo(Ao(y),o)}function ew(e,t,o){e=et(e),t=We(t);var a=t?Yr(e):0;return t&&a<t?e+Yo(t-a,o):e}function tw(e,t,o){e=et(e),t=We(t);var a=t?Yr(e):0;return t&&a<t?Yo(t-a,o)+e:e}function nw(e,t,o){return o||t==null?t=0:t&&(t=+t),uv(et(e).replace(at,""),t||0)}function rw(e,t,o){return(o?Nt(e,t,o):t===r)?t=1:t=We(t),wa(et(e),t)}function iw(){var e=arguments,t=et(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ow=Gr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function sw(e,t,o){return o&&typeof o!="number"&&Nt(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=et(e),e&&(typeof t=="string"||t!=null&&!Ua(t))&&(t=tn(t),!t&&jr(e))?hr(An(e),0,o):e.split(t,o)):[]}var aw=Gr(function(e,t,o){return e+(o?" ":"")+Ha(t)});function lw(e,t,o){return e=et(e),o=o==null?0:br(We(o),0,e.length),t=tn(t),e.slice(o,o+t.length)==t}function uw(e,t,o){var a=b.templateSettings;o&&Nt(e,t,o)&&(t=r),e=et(e),t=Jo({},t,a,yf);var y=Jo({},t.imports,a.imports,yf),x=Ct(y),P=ra(y,x),Y,q,ge=0,ve=t.interpolate||Tr,_e="__p += '",Ee=oa((t.escape||Tr).source+"|"+ve.source+"|"+(ve===Vt?Bn:Tr).source+"|"+(t.evaluate||Tr).source+"|$","g"),ke="//# sourceURL="+(nt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y0+"]")+`
127
+ `;e.replace(Ee,function($e,He,Ke,rn,It,on){return Ke||(Ke=rn),_e+=e.slice(ge,on).replace(Fs,B0),He&&(Y=!0,_e+=`' +
128
+ __e(`+He+`) +
129
+ '`),It&&(q=!0,_e+=`';
130
+ `+It+`;
131
+ __p += '`),Ke&&(_e+=`' +
132
+ ((__t = (`+Ke+`)) == null ? '' : __t) +
133
+ '`),ge=on+$e.length,$e}),_e+=`';
134
+ `;var Ie=nt.call(t,"variable")&&t.variable;if(!Ie)_e=`with (obj) {
135
+ `+_e+`
136
136
  }
137
- `;else if(tt.test(Be))throw new Fe(c);xe=(V?xe.replace(Ct,""):xe).replace(cn,"$1").replace(fn,"$1;"),xe="function("+(Be||"obj")+`) {
138
- `+(Be?"":`obj || (obj = {});
139
- `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(V?`, __j = Array.prototype.join;
137
+ `;else if(Qe.test(Ie))throw new Ye(f);_e=(q?_e.replace(mt,""):_e).replace($t,"$1").replace(Dt,"$1;"),_e="function("+(Ie||"obj")+`) {
138
+ `+(Ie?"":`obj || (obj = {});
139
+ `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
140
140
  function print() { __p += __j.call(arguments, '') }
141
141
  `:`;
142
- `)+xe+`return __p
143
- }`;var qe=od(function(){return rt(S,Pe+"return "+xe).apply(r,L)});if(qe.source=xe,Bu(qe))throw qe;return qe}function tb(e){return ot(e).toLowerCase()}function nb(e){return ot(e).toUpperCase()}function rb(e,t,o){if(e=ot(e),e&&(o||t===r))return pf(e);if(!e||!(t=nn(t)))return e;var a=Rn(e),y=Rn(t),S=gf(a,y),L=mf(a,y)+1;return Nr(a,S,L).join("")}function ib(e,t,o){if(e=ot(e),e&&(o||t===r))return e.slice(0,yf(e)+1);if(!e||!(t=nn(t)))return e;var a=Rn(e),y=mf(a,Rn(t))+1;return Nr(a,0,y).join("")}function ob(e,t,o){if(e=ot(e),e&&(o||t===r))return e.replace(pn,"");if(!e||!(t=nn(t)))return e;var a=Rn(e),y=gf(a,Rn(t));return Nr(a,y).join("")}function sb(e,t){var o=fe,a=te;if(vt(t)){var y="separator"in t?t.separator:y;o="length"in t?ze(t.length):o,a="omission"in t?nn(t.omission):a}e=ot(e);var S=e.length;if(bi(e)){var L=Rn(e);S=L.length}if(o>=S)return e;var Y=o-xi(a);if(Y<1)return a;var V=L?Nr(L,0,Y).join(""):e.slice(0,Y);if(y===r)return V+a;if(L&&(Y+=V.length-Y),ju(y)){if(e.slice(Y).search(y)){var ge,ve=V;for(y.global||(y=tu(y.source,ot(xr.exec(y))+"g")),y.lastIndex=0;ge=y.exec(ve);)var xe=ge.index;V=V.slice(0,xe===r?Y:xe)}}else if(e.indexOf(nn(y),Y)!=Y){var Ee=V.lastIndexOf(y);Ee>-1&&(V=V.slice(0,Ee))}return V+a}function ab(e){return e=ot(e),e&&hn.test(e)?e.replace(Zt,Nm):e}var ub=Ei(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?Rm(e)?jm(e):xm(e):e.match(t)||[]}var od=He(function(e,t){try{return en(e,r,t)}catch(o){return Bu(o)?o:new Fe(o)}}),lb=tr(function(e,t){return _n(t,function(o){o=Wn(o),Xn(e,o,Nu(e[o],e))}),e});function cb(e){var t=e==null?0:e.length,o=$e();return e=t?gt(e,function(a){if(typeof a[1]!="function")throw new wn(v);return[o(a[0]),a[1]]}):[],He(function(a){for(var y=-1;++y<t;){var S=e[y];if(en(S[0],this,a))return en(S[1],this,a)}})}function fb(e){return Nv(xn(e,M))}function Wu(e){return function(){return e}}function hb(e,t){return e==null||e!==e?t:e}var db=uh(),pb=uh(!0);function Vt(e){return e}function zu(e){return Bf(typeof e=="function"?e:xn(e,M))}function gb(e){return Yf(xn(e,M))}function mb(e,t){return Uf(e,xn(t,M))}var vb=He(function(e,t){return function(o){return mo(o,e,t)}}),yb=He(function(e,t){return function(o){return mo(e,o,t)}});function qu(e,t,o){var a=Et(t),y=Ms(t,a);o==null&&!(vt(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Ms(t,Et(t)));var S=!(vt(o)&&"chain"in o)||!!o.chain,L=rr(e);return _n(y,function(Y){var V=t[Y];e[Y]=V,L&&(e.prototype[Y]=function(){var ge=this.__chain__;if(S||ge){var ve=e(this.__wrapped__),xe=ve.__actions__=qt(this.__actions__);return xe.push({func:V,args:arguments,thisArg:e}),ve.__chain__=ge,ve}return V.apply(e,Mr([this.value()],arguments))})}),e}function _b(){return Lt._===this&&(Lt._=qm),this}function Hu(){}function wb(e){return e=ze(e),He(function(t){return Ff(t,e)})}var bb=Su(gt),xb=Su(lf),Sb=Su(Va);function sd(e){return Mu(e)?Za(Wn(e)):Xv(e)}function Cb(e){return function(t){return e==null?r:ni(e,t)}}var Ab=ch(),Db=ch(!0);function Gu(){return[]}function Vu(){return!1}function Ob(){return{}}function Tb(){return""}function Eb(){return!0}function Mb(e,t){if(e=ze(e),e<1||e>h)return[];var o=g,a=It(e,g);t=$e(t),e-=g;for(var y=Ja(a,t);++o<e;)t(o);return y}function Rb(e){return We(e)?gt(e,Wn):rn(e)?[e]:qt(Dh(ot(e)))}function Lb(e){var t=++Wm;return ot(e)+t}var kb=Ns(function(e,t){return e+t},0),Ib=Cu("ceil"),Pb=Ns(function(e,t){return e/t},1),Nb=Cu("floor");function $b(e){return e&&e.length?Es(e,Vt,lu):r}function Bb(e,t){return e&&e.length?Es(e,$e(t,2),lu):r}function jb(e){return hf(e,Vt)}function Yb(e,t){return hf(e,$e(t,2))}function Ub(e){return e&&e.length?Es(e,Vt,du):r}function Fb(e,t){return e&&e.length?Es(e,$e(t,2),du):r}var Wb=Ns(function(e,t){return e*t},1),zb=Cu("round"),qb=Ns(function(e,t){return e-t},0);function Hb(e){return e&&e.length?Qa(e,Vt):0}function Gb(e,t){return e&&e.length?Qa(e,$e(t,2)):0}return b.after=g_,b.ary=$h,b.assign=nw,b.assignIn=Qh,b.assignInWith=Zs,b.assignWith=rw,b.at=iw,b.before=Bh,b.bind=Nu,b.bindAll=lb,b.bindKey=jh,b.castArray=O_,b.chain=Ih,b.chunk=Ny,b.compact=$y,b.concat=By,b.cond=cb,b.conforms=fb,b.constant=Wu,b.countBy=H2,b.create=ow,b.curry=Yh,b.curryRight=Uh,b.debounce=Fh,b.defaults=sw,b.defaultsDeep=aw,b.defer=m_,b.delay=v_,b.difference=jy,b.differenceBy=Yy,b.differenceWith=Uy,b.drop=Fy,b.dropRight=Wy,b.dropRightWhile=zy,b.dropWhile=qy,b.fill=Hy,b.filter=V2,b.flatMap=Q2,b.flatMapDeep=J2,b.flatMapDepth=X2,b.flatten=Mh,b.flattenDeep=Gy,b.flattenDepth=Vy,b.flip=y_,b.flow=db,b.flowRight=pb,b.fromPairs=Zy,b.functions=pw,b.functionsIn=gw,b.groupBy=e_,b.initial=Qy,b.intersection=Jy,b.intersectionBy=Xy,b.intersectionWith=e2,b.invert=vw,b.invertBy=yw,b.invokeMap=n_,b.iteratee=zu,b.keyBy=r_,b.keys=Et,b.keysIn=Gt,b.map=Ws,b.mapKeys=ww,b.mapValues=bw,b.matches=gb,b.matchesProperty=mb,b.memoize=qs,b.merge=xw,b.mergeWith=Jh,b.method=vb,b.methodOf=yb,b.mixin=qu,b.negate=Hs,b.nthArg=wb,b.omit=Sw,b.omitBy=Cw,b.once=__,b.orderBy=i_,b.over=bb,b.overArgs=w_,b.overEvery=xb,b.overSome=Sb,b.partial=$u,b.partialRight=Wh,b.partition=o_,b.pick=Aw,b.pickBy=Xh,b.property=sd,b.propertyOf=Cb,b.pull=i2,b.pullAll=Lh,b.pullAllBy=o2,b.pullAllWith=s2,b.pullAt=a2,b.range=Ab,b.rangeRight=Db,b.rearg=b_,b.reject=u_,b.remove=u2,b.rest=x_,b.reverse=Iu,b.sampleSize=c_,b.set=Ow,b.setWith=Tw,b.shuffle=f_,b.slice=l2,b.sortBy=p_,b.sortedUniq=m2,b.sortedUniqBy=v2,b.split=Qw,b.spread=S_,b.tail=y2,b.take=_2,b.takeRight=w2,b.takeRightWhile=b2,b.takeWhile=x2,b.tap=$2,b.throttle=C_,b.thru=Fs,b.toArray=Vh,b.toPairs=ed,b.toPairsIn=td,b.toPath=Rb,b.toPlainObject=Kh,b.transform=Ew,b.unary=A_,b.union=S2,b.unionBy=C2,b.unionWith=A2,b.uniq=D2,b.uniqBy=O2,b.uniqWith=T2,b.unset=Mw,b.unzip=Pu,b.unzipWith=kh,b.update=Rw,b.updateWith=Lw,b.values=Li,b.valuesIn=kw,b.without=E2,b.words=id,b.wrap=D_,b.xor=M2,b.xorBy=R2,b.xorWith=L2,b.zip=k2,b.zipObject=I2,b.zipObjectDeep=P2,b.zipWith=N2,b.entries=ed,b.entriesIn=td,b.extend=Qh,b.extendWith=Zs,qu(b,b),b.add=kb,b.attempt=od,b.camelCase=$w,b.capitalize=nd,b.ceil=Ib,b.clamp=Iw,b.clone=T_,b.cloneDeep=M_,b.cloneDeepWith=R_,b.cloneWith=E_,b.conformsTo=L_,b.deburr=rd,b.defaultTo=hb,b.divide=Pb,b.endsWith=Bw,b.eq=kn,b.escape=jw,b.escapeRegExp=Yw,b.every=G2,b.find=Z2,b.findIndex=Th,b.findKey=uw,b.findLast=K2,b.findLastIndex=Eh,b.findLastKey=lw,b.floor=Nb,b.forEach=Ph,b.forEachRight=Nh,b.forIn=cw,b.forInRight=fw,b.forOwn=hw,b.forOwnRight=dw,b.get=Yu,b.gt=k_,b.gte=I_,b.has=mw,b.hasIn=Uu,b.head=Rh,b.identity=Vt,b.includes=t_,b.indexOf=Ky,b.inRange=Pw,b.invoke=_w,b.isArguments=oi,b.isArray=We,b.isArrayBuffer=P_,b.isArrayLike=Ht,b.isArrayLikeObject=bt,b.isBoolean=N_,b.isBuffer=$r,b.isDate=$_,b.isElement=B_,b.isEmpty=j_,b.isEqual=Y_,b.isEqualWith=U_,b.isError=Bu,b.isFinite=F_,b.isFunction=rr,b.isInteger=zh,b.isLength=Gs,b.isMap=qh,b.isMatch=W_,b.isMatchWith=z_,b.isNaN=q_,b.isNative=H_,b.isNil=V_,b.isNull=G_,b.isNumber=Hh,b.isObject=vt,b.isObjectLike=_t,b.isPlainObject=xo,b.isRegExp=ju,b.isSafeInteger=Z_,b.isSet=Gh,b.isString=Vs,b.isSymbol=rn,b.isTypedArray=Ri,b.isUndefined=K_,b.isWeakMap=Q_,b.isWeakSet=J_,b.join=t2,b.kebabCase=Uw,b.last=Cn,b.lastIndexOf=n2,b.lowerCase=Fw,b.lowerFirst=Ww,b.lt=X_,b.lte=ew,b.max=$b,b.maxBy=Bb,b.mean=jb,b.meanBy=Yb,b.min=Ub,b.minBy=Fb,b.stubArray=Gu,b.stubFalse=Vu,b.stubObject=Ob,b.stubString=Tb,b.stubTrue=Eb,b.multiply=Wb,b.nth=r2,b.noConflict=_b,b.noop=Hu,b.now=zs,b.pad=zw,b.padEnd=qw,b.padStart=Hw,b.parseInt=Gw,b.random=Nw,b.reduce=s_,b.reduceRight=a_,b.repeat=Vw,b.replace=Zw,b.result=Dw,b.round=zb,b.runInContext=G,b.sample=l_,b.size=h_,b.snakeCase=Kw,b.some=d_,b.sortedIndex=c2,b.sortedIndexBy=f2,b.sortedIndexOf=h2,b.sortedLastIndex=d2,b.sortedLastIndexBy=p2,b.sortedLastIndexOf=g2,b.startCase=Jw,b.startsWith=Xw,b.subtract=qb,b.sum=Hb,b.sumBy=Gb,b.template=eb,b.times=Mb,b.toFinite=ir,b.toInteger=ze,b.toLength=Zh,b.toLower=tb,b.toNumber=An,b.toSafeInteger=tw,b.toString=ot,b.toUpper=nb,b.trim=rb,b.trimEnd=ib,b.trimStart=ob,b.truncate=sb,b.unescape=ab,b.uniqueId=Lb,b.upperCase=ub,b.upperFirst=Fu,b.each=Ph,b.eachRight=Nh,b.first=Rh,qu(b,function(){var e={};return Un(b,function(t,o){st.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),_n(["drop","take"],function(e,t){Qe.prototype[e]=function(o){o=o===r?1:Ot(ze(o),0);var a=this.__filtered__&&!t?new Qe(this):this.clone();return a.__filtered__?a.__takeCount__=It(o,a.__takeCount__):a.__views__.push({size:It(o,g),type:e+(a.__dir__<0?"Right":"")}),a},Qe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),_n(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==$||o==O;Qe.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:$e(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),_n(["head","last"],function(e,t){var o="take"+(t?"Right":"");Qe.prototype[e]=function(){return this[o](1).value()[0]}}),_n(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Qe.prototype[e]=function(){return this.__filtered__?new Qe(this):this[o](1)}}),Qe.prototype.compact=function(){return this.filter(Vt)},Qe.prototype.find=function(e){return this.filter(e).head()},Qe.prototype.findLast=function(e){return this.reverse().find(e)},Qe.prototype.invokeMap=He(function(e,t){return typeof e=="function"?new Qe(this):this.map(function(o){return mo(o,e,t)})}),Qe.prototype.reject=function(e){return this.filter(Hs($e(e)))},Qe.prototype.slice=function(e,t){e=ze(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Qe(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)},Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qe.prototype.toArray=function(){return this.take(g)},Un(Qe.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__,Y=a?[1]:arguments,V=L instanceof Qe,ge=Y[0],ve=V||We(L),xe=function(Ke){var et=y.apply(b,Mr([Ke],Y));return a&&Ee?et[0]:et};ve&&o&&typeof ge=="function"&&ge.length!=1&&(V=ve=!1);var Ee=this.__chain__,Pe=!!this.__actions__.length,Be=S&&!Ee,qe=V&&!Pe;if(!S&&ve){L=qe?L:new Qe(this);var je=e.apply(L,Y);return je.__actions__.push({func:Fs,args:[xe],thisArg:r}),new bn(je,Ee)}return Be&&qe?e.apply(this,Y):(je=this.thru(xe),Be?a?je.value()[0]:je.value():je)})}),_n(["pop","push","shift","sort","splice","unshift"],function(e){var t=ps[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)})}}),Un(Qe.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";st.call(Di,a)||(Di[a]=[]),Di[a].push({name:t,func:o})}}),Di[Ps(r,ie).name]=[{name:"wrapper",func:r}],Qe.prototype.clone=av,Qe.prototype.reverse=uv,Qe.prototype.value=lv,b.prototype.at=B2,b.prototype.chain=j2,b.prototype.commit=Y2,b.prototype.next=U2,b.prototype.plant=W2,b.prototype.reverse=z2,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=q2,b.prototype.first=b.prototype.head,uo&&(b.prototype[uo]=F2),b},Si=Ym();Qr?((Qr.exports=Si)._=Si,za._=Si):Lt._=Si}).call(B0)}(Zi,Zi.exports)),Zi.exports}var Gc=j0();function Y0(i){const n=Dn.c(41),{fields:r,onClose:s,queryKey:l,apiPath:p,id:v,steps:c}=i,[x,C]=me.useState(0),[T,M]=me.useState(!1),{data:P,isLoading:E}=mc(p,l,v),{mutateAsync:I,isError:U,error:j,isPending:ie}=Sa(p,l);let re;n[0]!==r?(re=new Set(r.filter(G0).map(H0)),n[0]=r,n[1]=re):re=n[1];let se;n[2]!==re?(se=[...re],n[2]=re,n[3]=se):se=n[3];const ce=se;let K;n[4]!==r?(K=r.reduce(q0,{}),n[4]=r,n[5]=K):K=n[5];let de;n[6]!==r?(de=r.filter(z0).reduce(F0,{}),n[6]=r,n[7]=de):de=n[7];let ee;n[8]!==K||n[9]!==de?(ee={mode:"uncontrolled",initialValues:K,validate:de},n[8]=K,n[9]=de,n[10]=ee):ee=n[10];const J=ki.useForm(ee);let pe;n[11]!==P||n[12]!==r||n[13]!==J?(pe=()=>{if(P){const O=r.reduce((d,h)=>{const w=h.id;return d[w]=Array.isArray(P[w])?P[w]:h.type==="boolean"?P[w]??!1:h.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]=pe):pe=n[14];let fe;n[15]!==P?(fe=[P],n[15]=P,n[16]=fe):fe=n[16],me.useEffect(pe,fe);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(N.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(N.NumberInput,{decimalSeparator:",",label:d.column.title,placeholder:d.placeholder??"",...J.getInputProps(d.id)},J.key(d.id)),d.type==="date"&&D.jsx(Qo,{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(N.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,M)]},d.id)},n[17]=J,n[18]=v,n[19]=te):te=n[19];const De=te;let Oe;n[20]!==U||n[21]!==(j==null?void 0:j.message)||n[22]!==(j==null?void 0:j.name)?(Oe=U&&D.jsx(N.Alert,{variant:"outline",color:"red",title:(j==null?void 0:j.name)??"Fehler aufgetreten",mb:"lg",children:(j==null?void 0:j.message)??"Fehler aufgetreten"}),n[20]=U,n[21]=j==null?void 0:j.message,n[22]=j==null?void 0:j.name,n[23]=Oe):Oe=n[23];let $;n[24]!==x||n[25]!==r||n[26]!==J||n[27]!==T||n[28]!==v||n[29]!==E||n[30]!==ie||n[31]!==U||n[32]!==s||n[33]!==De||n[34]!==c||n[35]!==ce||n[36]!==I?($=E?D.jsxs(N.Stack,{gap:"md",children:[D.jsx(N.Skeleton,{height:40}),Array(r.length).fill(0).map(U0),D.jsxs(N.Group,{mt:"md",justify:"end",children:[D.jsx(N.Skeleton,{width:100,height:36}),D.jsx(N.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:J.onSubmit(async O=>{await I({...O,id:v}),ce.length&&x<ce.length-1?U||C(x+1):U||(J.setInitialValues(O),J.reset(),s())}),children:[ce.length?D.jsx(N.Stepper,{active:x,size:"sm",children:ce.map(O=>D.jsx(N.Stepper.Step,{...c&&c[O-1]?{label:c[O-1].label}:{},children:r.filter(d=>d.step===O).map(d=>De(d))},O))}):r.map(O=>De(O)),!T&&D.jsxs(N.Group,{mt:"md",justify:"end",children:[D.jsx(N.Button,{onClick:()=>ce.length?x===0?s():C(x-1):s(),variant:"outline",children:ce.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(N.Button,{type:"submit",loading:ie,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]=E,n[30]=ie,n[31]=U,n[32]=s,n[33]=De,n[34]=c,n[35]=ce,n[36]=I,n[37]=$):$=n[37];let k;return n[38]!==$||n[39]!==Oe?(k=D.jsxs(D.Fragment,{children:[Oe,$]}),n[38]=$,n[39]=Oe,n[40]=k):k=n[40],k}function U0(i,n){return D.jsx(N.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,C]=me.useState(s),[T,M]=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(N.Alert,{variant:"outline",color:"red",title:v.name,children:v.message}),D.jsx(N.Text,{children:x.length===1?`Soll ${x.length} Eintrag wirklich gelöscht werden?`:`Sollen ${x.length} Einträge wirklich gelöscht werden?`}),D.jsxs(N.Group,{mt:"md",justify:"end",children:[D.jsx(N.Button,{onClick:r,variant:"outline",disabled:P,children:"Abbrechen"}),D.jsx(N.Button,{color:"red",loading:P,onClick:async()=>{M(!0);try{await Promise.all(x.map(E=>l(E.id))),C([])}finally{M(!1)}},children:"Löschen"})]})]}):D.jsx(D.Fragment,{})}function Vc(i,n){const r=Dn.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const C=localStorage.getItem(`use_persistent_storage_${n}`);return C?JSON.parse(C):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=C=>{p(C),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(C))},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){var At;const n=Dn.c(140),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:p,buttons:v,fields:c,selection:x,pagination:C,filters:T,actions:M,steps:P,defaultSort:E,createButtonText:I,queryParams:U,tabs:j,defaultTab:ie}=i,[re,se]=me.useState(ie||(j&&j.length>0?j[0].value:null));let ce,K;if(n[0]!==re||n[1]!==U||n[2]!==j){const ct=((At=j==null?void 0:j.find(tt=>tt.value===re))==null?void 0:At.queryParams)||{};ce={...U,...ct},K=ce?"?"+Object.entries(ce).filter(sm).map(om).join("&"):"",n[0]=re,n[1]=U,n[2]=j,n[3]=ce,n[4]=K}else ce=n[3],K=n[4];const de=K,{data:ee,isLoading:J,isError:pe,isRefetching:fe,refetch:te}=vc(p+de,s);let De;n[5]===Symbol.for("react.memo_cache_sentinel")?(De=[],n[5]=De):De=n[5];const[Oe,$]=me.useState(De),{queryClient:k}=ur();let O;n[6]!==ee||n[7]!==l||n[8]!==T||n[9]!==k?(O=()=>{if(!(!ee||!Array.isArray(ee))){if(l==null||l.forEach(ct=>k.invalidateQueries({queryKey:ct})),!T||T.length===0){$(ee);return}$(ee.filter(ct=>T.every(tt=>{if(tt.value===void 0)return!0;const zr=tt.id;if(tt.type==="query"){const En=ct[zr];return typeof En=="string"&&En.includes(tt.value)}else if(tt.type==="date"){const En=tt.value,[xr,Rt]=En;if(xr&&Rt){const gn=ct[zr];if(typeof gn=="string"){const mn=new Date(gn);return mn>=xr&&mn<=Rt}}return!0}else if(tt.type==="boolean")return ct[zr]===tt.value;return!0})))}},n[6]=ee,n[7]=l,n[8]=T,n[9]=k,n[10]=O):O=n[10];let d;n[11]!==ee||n[12]!==ce||n[13]!==T?(d=[ee,T,ce],n[11]=ee,n[12]=ce,n[13]=T,n[14]=d):d=n[14],me.useEffect(O,d);const h=(E==null?void 0:E.field)??c[0].id,w=(E==null?void 0:E.direction)??"desc";let m;n[15]!==h||n[16]!==w?(m={columnAccessor:h,direction:w},n[15]=h,n[16]=w,n[17]=m):m=n[17];const[g,A]=me.useState(m);let F;n[18]!==Oe||n[19]!==(E==null?void 0:E.direction)||n[20]!==(E==null?void 0:E.field)||n[21]!==c[0]?(F=()=>{const ct=Gc.sortBy(Oe,(E==null?void 0:E.field)??c[0].id);return(E==null?void 0:E.direction)==="asc"?ct:ct.reverse()},n[18]=Oe,n[19]=E==null?void 0:E.direction,n[20]=E==null?void 0:E.field,n[21]=c[0],n[22]=F):F=n[22];const[H,ae]=me.useState(F);let ue;n[23]!==Oe||n[24]!==g.columnAccessor||n[25]!==g.direction?(ue=()=>{const ct=Gc.sortBy(Oe,g.columnAccessor);ae(g.direction==="desc"?ct.reverse():ct)},n[23]=Oe,n[24]=g.columnAccessor,n[25]=g.direction,n[26]=ue):ue=n[26];let we;n[27]!==Oe||n[28]!==g?(we=[g,Oe],n[27]=Oe,n[28]=g,n[29]=we):we=n[29],me.useEffect(ue,we);const[Q,he]=Vc(Zc[1],"mantine-table-page-size"),[Ce,_e]=me.useState(1);let B;n[30]!==Q||n[31]!==C||n[32]!==H?(B=C?H.slice(0,Q):H,n[30]=Q,n[31]=C,n[32]=H,n[33]=B):B=n[33];const[z,W]=me.useState(B);let Z;n[34]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{_e(1)},n[34]=Z):Z=n[34];let oe;n[35]!==Q?(oe=[Q],n[35]=Q,n[36]=oe):oe=n[36],me.useEffect(Z,oe);let Te,u;n[37]!==Ce||n[38]!==Q||n[39]!==C||n[40]!==H?(Te=()=>{if(C){const ct=(Ce-1)*Q,tt=ct+Q;W(H.slice(ct,tt))}else W(H)},u=[Ce,H,C,Q],n[37]=Ce,n[38]=Q,n[39]=C,n[40]=H,n[41]=Te,n[42]=u):(Te=n[41],u=n[42]),me.useEffect(Te,u);let f;n[43]===Symbol.for("react.memo_cache_sentinel")?(f=[],n[43]=f):f=n[43];const[_,R]=me.useState(f);let q;n[44]!==_||n[45]!==x||n[46]!==H?(q=()=>{x&&R(H.filter(ct=>_.some(tt=>tt.id===ct.id)))},n[44]=_,n[45]=x,n[46]=H,n[47]=q):q=n[47];let X;n[48]!==H?(X=[H],n[48]=H,n[49]=X):X=n[49],me.useEffect(q,X);let Ae;n[50]===Symbol.for("react.memo_cache_sentinel")?(Ae=()=>{R([])},n[50]=Ae):Ae=n[50];let be;n[51]!==re?(be=[re],n[51]=re,n[52]=be):be=n[52],me.useEffect(Ae,be);const[Re,Se]=me.useState(!1),[ke,Ne]=me.useState(!1),[Ie,Xe]=me.useState(!1),nt=r?"space-between":"end";let Ge;n[53]!==r?(Ge=r&&(typeof r=="string"?D.jsx(N.Title,{order:4,children:r}):r),n[53]=r,n[54]=Ge):Ge=n[54];let wt;n[55]!==te?(wt=()=>te(),n[55]=te,n[56]=wt):wt=n[56];let mt;n[57]===Symbol.for("react.memo_cache_sentinel")?(mt=D.jsx(Ii.IconRefresh,{}),n[57]=mt):mt=n[57];let lt;n[58]!==wt?(lt=D.jsx(N.ActionIcon,{variant:"subtle",onClick:wt,"aria-label":"Neuladen",children:mt}),n[58]=wt,n[59]=lt):lt=n[59];let zt;n[60]!==M||n[61]!==c||n[62]!==_||n[63]!==x?(zt=(c.some(im)||x)&&D.jsxs(N.Menu,{shadow:"md",children:[D.jsx(N.Menu.Target,{children:D.jsx(N.Button,{variant:"outline",rightSection:D.jsx(Ii.IconCaretDownFilled,{size:14}),disabled:!_.length,children:"Aktionen"})}),D.jsxs(N.Menu.Dropdown,{children:[c.find(rm)&&D.jsx(N.Menu.Item,{leftSection:D.jsx(Ii.IconPencil,{size:14}),onClick:()=>Ne(!0),disabled:_.length!==1,children:"Bearbeiten"}),(M??[]).map((ct,tt)=>me.createElement(N.Menu.Item,{...ct.icon&&{leftSection:ct.icon},key:`custom_action_${tt}`,onClick:()=>ct.onClick(_)},ct.label)),c.find(nm)&&D.jsx(N.Menu.Item,{leftSection:D.jsx(Ii.IconTrash,{size:14}),onClick:()=>Xe(!0),color:"red",children:"Löschen"})]})]}),n[60]=M,n[61]=c,n[62]=_,n[63]=x,n[64]=zt):zt=n[64];let Ct;n[65]!==I||n[66]!==c||n[67]!==J?(Ct=c.find(tm)&&D.jsx(N.Button,{onClick:()=>Se(!0),disabled:J,children:I??"Erstellen"}),n[65]=I,n[66]=c,n[67]=J,n[68]=Ct):Ct=n[68];let cn;n[69]!==v||n[70]!==lt||n[71]!==zt||n[72]!==Ct?(cn=D.jsxs(N.Group,{align:"center",gap:"xs",children:[lt,zt,Ct,v]}),n[69]=v,n[70]=lt,n[71]=zt,n[72]=Ct,n[73]=cn):cn=n[73];let fn;n[74]!==nt||n[75]!==Ge||n[76]!==cn?(fn=D.jsxs(N.Group,{gap:"xs",justify:nt,align:"center",children:[Ge,cn]}),n[74]=nt,n[75]=Ge,n[76]=cn,n[77]=fn):fn=n[77];let Zt;n[78]!==re||n[79]!==j?(Zt=j&&j.length>0&&D.jsx(N.Tabs,{value:re,onChange:se,mt:"md",children:D.jsx(N.Tabs.List,{children:j.map(em)})}),n[78]=re,n[79]=j,n[80]=Zt):Zt=n[80];let Kt;n[81]!==pe?(Kt=pe&&D.jsx(N.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(Ii.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[81]=pe,n[82]=Kt):Kt=n[82];let hn;n[83]!==J||n[84]!==fe?(hn=(J||fe)&&D.jsxs(N.Stack,{my:"md",children:[D.jsx(N.Skeleton,{height:40}),Array(5).fill(0).map(X0)]}),n[83]=J,n[84]=fe,n[85]=hn):hn=n[85];let dn;n[86]!==c||n[87]!==pe||n[88]!==J||n[89]!==fe||n[90]!==Ce||n[91]!==Q||n[92]!==C||n[93]!==z||n[94]!==_||n[95]!==x||n[96]!==he||n[97]!==g||n[98]!==H?(dn=!J&&!fe&&D.jsx(N0,{my:"md",striped:!0,minHeight:150,fetching:pe,records:z,sortStatus:g,onSortStatusChange:A,...x&&{selectedRecords:_,onSelectedRecordsChange:R},...C&&z.length&&{totalRecords:H.length,recordsPerPage:Q,onPageChange:_e,page:Ce,recordsPerPageOptions:Zc,onRecordsPerPageChange:he,recordsPerPageLabel:"Einträge pro Seite"},columns:c.map(J0),noRecordsText:"Keine Einträge gefunden"}),n[86]=c,n[87]=pe,n[88]=J,n[89]=fe,n[90]=Ce,n[91]=Q,n[92]=C,n[93]=z,n[94]=_,n[95]=x,n[96]=he,n[97]=g,n[98]=H,n[99]=dn):dn=n[99];let at;n[100]===Symbol.for("react.memo_cache_sentinel")?(at=()=>{Ne(!1),R([])},n[100]=at):at=n[100];const Qt=r??"Bearbeiten";let Tn;n[101]!==p||n[102]!==c||n[103]!==s||n[104]!==_[0]||n[105]!==_.length||n[106]!==P?(Tn=_.length>0&&D.jsx(Y0,{fields:c.filter(Q0),queryKey:s,apiPath:p,id:_[0].id,onClose:()=>{Ne(!1),R([])},steps:P}),n[101]=p,n[102]=c,n[103]=s,n[104]=_[0],n[105]=_.length,n[106]=P,n[107]=Tn):Tn=n[107];let Nn;n[108]!==Qt||n[109]!==Tn||n[110]!==ke?(Nn=D.jsx(N.Modal,{opened:ke,onClose:at,title:Qt,children:Tn}),n[108]=Qt,n[109]=Tn,n[110]=ke,n[111]=Nn):Nn=n[111];let $n;n[112]!==p||n[113]!==Ie||n[114]!==s||n[115]!==_||n[116]!==r?($n=_.length>0&&D.jsx(N.Modal,{opened:Ie,onClose:()=>{Xe(!1),R([])},title:r??"Löschen",children:D.jsx(V0,{onClose:()=>{Xe(!1),R([])},queryKey:s,apiPath:p,selectedRecords:_})}),n[112]=p,n[113]=Ie,n[114]=s,n[115]=_,n[116]=r,n[117]=$n):$n=n[117];let _r;n[118]===Symbol.for("react.memo_cache_sentinel")?(_r=()=>{Se(!1)},n[118]=_r):_r=n[118];const Hn=r??"Anlegen";let wr;n[119]===Symbol.for("react.memo_cache_sentinel")?(wr=()=>{Se(!1)},n[119]=wr):wr=n[119];let pn;n[120]!==c?(pn=c.filter(K0),n[120]=c,n[121]=pn):pn=n[121];let Bn;n[122]!==p||n[123]!==s||n[124]!==P||n[125]!==pn?(Bn=D.jsx(U1,{queryKey:s,apiPath:p,onClose:wr,fields:pn,steps:P}),n[122]=p,n[123]=s,n[124]=P,n[125]=pn,n[126]=Bn):Bn=n[126];let jn;n[127]!==Re||n[128]!==Hn||n[129]!==Bn?(jn=D.jsx(N.Modal,{opened:Re,onClose:_r,title:Hn,children:Bn}),n[127]=Re,n[128]=Hn,n[129]=Bn,n[130]=jn):jn=n[130];let br;return n[131]!==fn||n[132]!==Zt||n[133]!==Kt||n[134]!==hn||n[135]!==dn||n[136]!==Nn||n[137]!==$n||n[138]!==jn?(br=D.jsxs(D.Fragment,{children:[fn,Zt,Kt,hn,dn,Nn,$n,jn]}),n[131]=fn,n[132]=Zt,n[133]=Kt,n[134]=hn,n[135]=dn,n[136]=Nn,n[137]=$n,n[138]=jn,n[139]=br):br=n[139],br}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(N.Skeleton,{height:35},`skeleton-${n}`)}function em(i){return D.jsx(N.Tabs.Tab,{value:i.value,leftSection:i.icon,children:i.label},i.value)}function tm(i){return i.create}function nm(i){return i.delete}function rm(i){return i.update}function im(i){return i.update}function om(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function sm(i){const[,n]=i;return n!=null}function am(i){const n=Dn.c(5),{queryClient:r}=ur();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=am,Ue.DataTableProvider=Ng,Ue.api=Bg,Ue.createOne=pc,Ue.deleteOne=dc,Ue.getAll=fc,Ue.getApiHeaders=jr,Ue.getOne=hc,Ue.updateOne=gc,Ue.useAddOne=yc,Ue.useDataTable=ur,Ue.useDeleteOne=_c,Ue.useGetAll=vc,Ue.useGetOne=mc,Ue.usePersistentState=Vc,Ue.useUpdateOne=Sa,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
142
+ `)+_e+`return __p
143
+ }`;var Ue=ch(function(){return Je(x,ke+"return "+_e).apply(r,P)});if(Ue.source=_e,Wa(Ue))throw Ue;return Ue}function cw(e){return et(e).toLowerCase()}function fw(e){return et(e).toUpperCase()}function hw(e,t,o){if(e=et(e),e&&(o||t===r))return yc(e);if(!e||!(t=tn(t)))return e;var a=An(e),y=An(t),x=_c(a,y),P=wc(a,y)+1;return hr(a,x,P).join("")}function dw(e,t,o){if(e=et(e),e&&(o||t===r))return e.slice(0,xc(e)+1);if(!e||!(t=tn(t)))return e;var a=An(e),y=wc(a,An(t))+1;return hr(a,0,y).join("")}function pw(e,t,o){if(e=et(e),e&&(o||t===r))return e.replace(at,"");if(!e||!(t=tn(t)))return e;var a=An(e),y=_c(a,An(t));return hr(a,y).join("")}function gw(e,t){var o=fe,a=re;if(ft(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?tn(t.omission):a}e=et(e);var x=e.length;if(jr(e)){var P=An(e);x=P.length}if(o>=x)return e;var Y=o-Yr(a);if(Y<1)return a;var q=P?hr(P,0,Y).join(""):e.slice(0,Y);if(y===r)return q+a;if(P&&(Y+=q.length-Y),Ua(y)){if(e.slice(Y).search(y)){var ge,ve=q;for(y.global||(y=oa(y.source,et(Dn.exec(y))+"g")),y.lastIndex=0;ge=y.exec(ve);)var _e=ge.index;q=q.slice(0,_e===r?Y:_e)}}else if(e.indexOf(tn(y),Y)!=Y){var Ee=q.lastIndexOf(y);Ee>-1&&(q=q.slice(0,Ee))}return q+a}function vw(e){return e=et(e),e&&yt.test(e)?e.replace(Bt,q0):e}var mw=Gr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ha=ff("toUpperCase");function uh(e,t,o){return e=et(e),t=o?r:t,t===r?Y0(e)?V0(e):M0(e):e.match(t)||[]}var ch=qe(function(e,t){try{return Xt(e,r,t)}catch(o){return Wa(o)?o:new Ye(o)}}),yw=qn(function(e,t){return dn(t,function(o){o=$n(o),Un(e,o,Ya(e[o],e))}),e});function _w(e){var t=e==null?0:e.length,o=Ne();return e=t?ct(e,function(a){if(typeof a[1]!="function")throw new pn(v);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(Xt(x[0],this,a))return Xt(x[1],this,a)}})}function ww(e){return qv(vn(e,L))}function Ga(e){return function(){return e}}function bw(e,t){return e==null||e!==e?t:e}var xw=df(),Cw=df(!0);function Ht(e){return e}function Va(e){return Wc(typeof e=="function"?e:vn(e,L))}function Sw(e){return zc(vn(e,L))}function Dw(e,t){return qc(e,vn(t,L))}var Aw=qe(function(e,t){return function(o){return Di(o,e,t)}}),Ow=qe(function(e,t){return function(o){return Di(e,o,t)}});function Ka(e,t,o){var a=Ct(t),y=ko(t,a);o==null&&!(ft(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=ko(t,Ct(t)));var x=!(ft(o)&&"chain"in o)||!!o.chain,P=Gn(e);return dn(y,function(Y){var q=t[Y];e[Y]=q,P&&(e.prototype[Y]=function(){var ge=this.__chain__;if(x||ge){var ve=e(this.__wrapped__),_e=ve.__actions__=Ut(this.__actions__);return _e.push({func:q,args:arguments,thisArg:e}),ve.__chain__=ge,ve}return q.apply(e,sr([this.value()],arguments))})}),e}function Ew(){return At._===this&&(At._=ev),this}function Za(){}function Tw(e){return e=We(e),qe(function(t){return Hc(t,e)})}var Pw=Oa(ct),Mw=Oa(dc),Rw=Oa(Js);function fh(e){return La(e)?Xs($n(e)):lm(e)}function kw(e){return function(t){return e==null?r:xr(e,t)}}var Lw=gf(),Nw=gf(!0);function Qa(){return[]}function Ja(){return!1}function Iw(){return{}}function $w(){return""}function Bw(){return!0}function jw(e,t){if(e=We(e),e<1||e>d)return[];var o=m,a=Tt(e,m);t=Ne(t),e-=m;for(var y=na(a,t);++o<e;)t(o);return y}function Yw(e){return Fe(e)?ct(e,$n):nn(e)?[e]:Ut(Mf(et(e)))}function Fw(e){var t=++J0;return et(e)+t}var Ww=jo(function(e,t){return e+t},0),Uw=Ea("ceil"),zw=jo(function(e,t){return e/t},1),qw=Ea("floor");function Hw(e){return e&&e.length?Ro(e,Ht,da):r}function Gw(e,t){return e&&e.length?Ro(e,Ne(t,2),da):r}function Vw(e){return vc(e,Ht)}function Kw(e,t){return vc(e,Ne(t,2))}function Zw(e){return e&&e.length?Ro(e,Ht,ma):r}function Qw(e,t){return e&&e.length?Ro(e,Ne(t,2),ma):r}var Jw=jo(function(e,t){return e*t},1),Xw=Ea("round"),eb=jo(function(e,t){return e-t},0);function tb(e){return e&&e.length?ta(e,Ht):0}function nb(e,t){return e&&e.length?ta(e,Ne(t,2)):0}return b.after=S_,b.ary=Wf,b.assign=f2,b.assignIn=nh,b.assignInWith=Jo,b.assignWith=h2,b.at=d2,b.before=Uf,b.bind=Ya,b.bindAll=yw,b.bindKey=zf,b.castArray=I_,b.chain=jf,b.chunk=qm,b.compact=Hm,b.concat=Gm,b.cond=_w,b.conforms=ww,b.constant=Ga,b.countBy=t_,b.create=p2,b.curry=qf,b.curryRight=Hf,b.debounce=Gf,b.defaults=g2,b.defaultsDeep=v2,b.defer=D_,b.delay=A_,b.difference=Vm,b.differenceBy=Km,b.differenceWith=Zm,b.drop=Qm,b.dropRight=Jm,b.dropRightWhile=Xm,b.dropWhile=ey,b.fill=ty,b.filter=r_,b.flatMap=s_,b.flatMapDeep=a_,b.flatMapDepth=l_,b.flatten=Nf,b.flattenDeep=ny,b.flattenDepth=ry,b.flip=O_,b.flow=xw,b.flowRight=Cw,b.fromPairs=iy,b.functions=C2,b.functionsIn=S2,b.groupBy=u_,b.initial=sy,b.intersection=ay,b.intersectionBy=ly,b.intersectionWith=uy,b.invert=A2,b.invertBy=O2,b.invokeMap=f_,b.iteratee=Va,b.keyBy=h_,b.keys=Ct,b.keysIn=qt,b.map=Ho,b.mapKeys=T2,b.mapValues=P2,b.matches=Sw,b.matchesProperty=Dw,b.memoize=Vo,b.merge=M2,b.mergeWith=rh,b.method=Aw,b.methodOf=Ow,b.mixin=Ka,b.negate=Ko,b.nthArg=Tw,b.omit=R2,b.omitBy=k2,b.once=E_,b.orderBy=d_,b.over=Pw,b.overArgs=T_,b.overEvery=Mw,b.overSome=Rw,b.partial=Fa,b.partialRight=Vf,b.partition=p_,b.pick=L2,b.pickBy=ih,b.property=fh,b.propertyOf=kw,b.pull=dy,b.pullAll=$f,b.pullAllBy=py,b.pullAllWith=gy,b.pullAt=vy,b.range=Lw,b.rangeRight=Nw,b.rearg=P_,b.reject=m_,b.remove=my,b.rest=M_,b.reverse=Ba,b.sampleSize=__,b.set=I2,b.setWith=$2,b.shuffle=w_,b.slice=yy,b.sortBy=C_,b.sortedUniq=Dy,b.sortedUniqBy=Ay,b.split=sw,b.spread=R_,b.tail=Oy,b.take=Ey,b.takeRight=Ty,b.takeRightWhile=Py,b.takeWhile=My,b.tap=Hy,b.throttle=k_,b.thru=qo,b.toArray=Xf,b.toPairs=oh,b.toPairsIn=sh,b.toPath=Yw,b.toPlainObject=th,b.transform=B2,b.unary=L_,b.union=Ry,b.unionBy=ky,b.unionWith=Ly,b.uniq=Ny,b.uniqBy=Iy,b.uniqWith=$y,b.unset=j2,b.unzip=ja,b.unzipWith=Bf,b.update=Y2,b.updateWith=F2,b.values=Zr,b.valuesIn=W2,b.without=By,b.words=uh,b.wrap=N_,b.xor=jy,b.xorBy=Yy,b.xorWith=Fy,b.zip=Wy,b.zipObject=Uy,b.zipObjectDeep=zy,b.zipWith=qy,b.entries=oh,b.entriesIn=sh,b.extend=nh,b.extendWith=Jo,Ka(b,b),b.add=Ww,b.attempt=ch,b.camelCase=H2,b.capitalize=ah,b.ceil=Uw,b.clamp=U2,b.clone=$_,b.cloneDeep=j_,b.cloneDeepWith=Y_,b.cloneWith=B_,b.conformsTo=F_,b.deburr=lh,b.defaultTo=bw,b.divide=zw,b.endsWith=G2,b.eq=En,b.escape=V2,b.escapeRegExp=K2,b.every=n_,b.find=i_,b.findIndex=kf,b.findKey=m2,b.findLast=o_,b.findLastIndex=Lf,b.findLastKey=y2,b.floor=qw,b.forEach=Yf,b.forEachRight=Ff,b.forIn=_2,b.forInRight=w2,b.forOwn=b2,b.forOwnRight=x2,b.get=za,b.gt=W_,b.gte=U_,b.has=D2,b.hasIn=qa,b.head=If,b.identity=Ht,b.includes=c_,b.indexOf=oy,b.inRange=z2,b.invoke=E2,b.isArguments=Dr,b.isArray=Fe,b.isArrayBuffer=z_,b.isArrayLike=zt,b.isArrayLikeObject=pt,b.isBoolean=q_,b.isBuffer=dr,b.isDate=H_,b.isElement=G_,b.isEmpty=V_,b.isEqual=K_,b.isEqualWith=Z_,b.isError=Wa,b.isFinite=Q_,b.isFunction=Gn,b.isInteger=Kf,b.isLength=Zo,b.isMap=Zf,b.isMatch=J_,b.isMatchWith=X_,b.isNaN=e2,b.isNative=t2,b.isNil=r2,b.isNull=n2,b.isNumber=Qf,b.isObject=ft,b.isObjectLike=dt,b.isPlainObject=Mi,b.isRegExp=Ua,b.isSafeInteger=i2,b.isSet=Jf,b.isString=Qo,b.isSymbol=nn,b.isTypedArray=Kr,b.isUndefined=o2,b.isWeakMap=s2,b.isWeakSet=a2,b.join=cy,b.kebabCase=Z2,b.last=yn,b.lastIndexOf=fy,b.lowerCase=Q2,b.lowerFirst=J2,b.lt=l2,b.lte=u2,b.max=Hw,b.maxBy=Gw,b.mean=Vw,b.meanBy=Kw,b.min=Zw,b.minBy=Qw,b.stubArray=Qa,b.stubFalse=Ja,b.stubObject=Iw,b.stubString=$w,b.stubTrue=Bw,b.multiply=Jw,b.nth=hy,b.noConflict=Ew,b.noop=Za,b.now=Go,b.pad=X2,b.padEnd=ew,b.padStart=tw,b.parseInt=nw,b.random=q2,b.reduce=g_,b.reduceRight=v_,b.repeat=rw,b.replace=iw,b.result=N2,b.round=Xw,b.runInContext=z,b.sample=y_,b.size=b_,b.snakeCase=ow,b.some=x_,b.sortedIndex=_y,b.sortedIndexBy=wy,b.sortedIndexOf=by,b.sortedLastIndex=xy,b.sortedLastIndexBy=Cy,b.sortedLastIndexOf=Sy,b.startCase=aw,b.startsWith=lw,b.subtract=eb,b.sum=tb,b.sumBy=nb,b.template=uw,b.times=jw,b.toFinite=Vn,b.toInteger=We,b.toLength=eh,b.toLower=cw,b.toNumber=_n,b.toSafeInteger=c2,b.toString=et,b.toUpper=fw,b.trim=hw,b.trimEnd=dw,b.trimStart=pw,b.truncate=gw,b.unescape=vw,b.uniqueId=Fw,b.upperCase=mw,b.upperFirst=Ha,b.each=Yf,b.eachRight=Ff,b.first=If,Ka(b,function(){var e={};return Nn(b,function(t,o){nt.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){Ge.prototype[e]=function(o){o=o===r?1:bt(We(o),0);var a=this.__filtered__&&!t?new Ge(this):this.clone();return a.__filtered__?a.__takeCount__=Tt(o,a.__takeCount__):a.__views__.push({size:Tt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),dn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==N||o==D;Ge.prototype[e]=function(y){var x=this.clone();return x.__iteratees__.push({iteratee:Ne(y,3),type:o}),x.__filtered__=x.__filtered__||a,x}}),dn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),dn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ge.prototype[e]=function(){return this.__filtered__?new Ge(this):this[o](1)}}),Ge.prototype.compact=function(){return this.filter(Ht)},Ge.prototype.find=function(e){return this.filter(e).head()},Ge.prototype.findLast=function(e){return this.reverse().find(e)},Ge.prototype.invokeMap=qe(function(e,t){return typeof e=="function"?new Ge(this):this.map(function(o){return Di(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Ko(Ne(e)))},Ge.prototype.slice=function(e,t){e=We(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ge(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=We(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ge.prototype.toArray=function(){return this.take(m)},Nn(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=b[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(b.prototype[t]=function(){var P=this.__wrapped__,Y=a?[1]:arguments,q=P instanceof Ge,ge=Y[0],ve=q||Fe(P),_e=function(He){var Ke=y.apply(b,sr([He],Y));return a&&Ee?Ke[0]:Ke};ve&&o&&typeof ge=="function"&&ge.length!=1&&(q=ve=!1);var Ee=this.__chain__,ke=!!this.__actions__.length,Ie=x&&!Ee,Ue=q&&!ke;if(!x&&ve){P=Ue?P:new Ge(this);var $e=e.apply(P,Y);return $e.__actions__.push({func:qo,args:[_e],thisArg:r}),new gn($e,Ee)}return Ie&&Ue?e.apply(this,Y):($e=this.thru(_e),Ie?a?$e.value()[0]:$e.value():$e)})}),dn(["pop","push","shift","sort","splice","unshift"],function(e){var t=mo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);b.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var x=this.value();return t.apply(Fe(x)?x:[],y)}return this[o](function(P){return t.apply(Fe(P)?P:[],y)})}}),Nn(Ge.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";nt.call(zr,a)||(zr[a]=[]),zr[a].push({name:t,func:o})}}),zr[Bo(r,ae).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=vv,Ge.prototype.reverse=mv,Ge.prototype.value=yv,b.prototype.at=Gy,b.prototype.chain=Vy,b.prototype.commit=Ky,b.prototype.next=Zy,b.prototype.plant=Jy,b.prototype.reverse=Xy,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=e_,b.prototype.first=b.prototype.head,yi&&(b.prototype[yi]=Qy),b},Fr=K0();mr?((mr.exports=Fr)._=Fr,Vs._=Fr):At._=Fr}).call(I1)}(hi,hi.exports)),hi.exports}var Ku=$1();function B1(i){const n=wn.c(41),{fields:r,onClose:s,queryKey:u,apiPath:g,id:v,steps:f}=i,[C,A]=me.useState(0),[E,L]=me.useState(!1),{data:M,isLoading:k}=hu(g,u,v),{mutateAsync:I,isError:j,error:H,isPending:ae}=Ds(g,u);let se;n[0]!==r?(se=new Set(r.filter(q1).map(z1)),n[0]=r,n[1]=se):se=n[1];let le;n[2]!==se?(le=[...se],n[2]=se,n[3]=le):le=n[3];const ue=le;let Z;n[4]!==r?(Z=r.reduce(U1,{}),n[4]=r,n[5]=Z):Z=n[5];let ce;n[6]!==r?(ce=r.filter(W1).reduce(Y1,{}),n[6]=r,n[7]=ce):ce=n[7];let Q;n[8]!==Z||n[9]!==ce?(Q={mode:"uncontrolled",initialValues:Z,validate:ce},n[8]=Z,n[9]=ce,n[10]=Q):Q=n[10];const V=Xa.useForm(Q);let de;n[11]!==M||n[12]!==r||n[13]!==V?(de=()=>{if(M){const D=r.reduce((p,d)=>{const w=d.id;return p[w]=Array.isArray(M[w])?M[w]:d.type==="boolean"?M[w]??!1:d.type==="date"?M[w]?new Date(M[w]):"":M[w]??"",p},{});V.initialize(D),V.setValues(D)}},n[11]=M,n[12]=r,n[13]=V,n[14]=de):de=n[14];let fe;n[15]!==M?(fe=[M],n[15]=M,n[16]=fe):fe=n[16],me.useEffect(de,fe);let re;n[17]!==V||n[18]!==v?(re=function(p){return O.jsxs(me.Fragment,{children:[(p.type===void 0||p.type=="text")&&O.jsx(W.TextInput,{label:p.column.title,placeholder:p.placeholder??"",...V.getInputProps(p.id),type:p.id.includes("email")?"email":void 0},V.key(p.id)),p.type==="number"&&O.jsx(W.NumberInput,{decimalSeparator:",",label:p.column.title,placeholder:p.placeholder??"",...V.getInputProps(p.id)},V.key(p.id)),p.type==="date"&&O.jsx(oo,{label:p.column.title,placeholder:p.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...V.getInputProps(p.id)},V.key(p.id)),p.type==="boolean"&&O.jsx(W.Checkbox,{mt:"md",label:p.column.title,...V.getInputProps(p.id,{type:"checkbox"})},V.key(p.id)),p.type==="custom"&&p.render&&p.render({...V.getValues(),id:v},V.setValues,L)]},p.id)},n[17]=V,n[18]=v,n[19]=re):re=n[19];const De=re;let Oe;n[20]!==j||n[21]!==H?.message||n[22]!==H?.name?(Oe=j&&O.jsx(W.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[20]=j,n[21]=H?.message,n[22]=H?.name,n[23]=Oe):Oe=n[23];let N;n[24]!==C||n[25]!==r||n[26]!==V||n[27]!==E||n[28]!==v||n[29]!==k||n[30]!==ae||n[31]!==j||n[32]!==s||n[33]!==De||n[34]!==f||n[35]!==ue||n[36]!==I?(N=k?O.jsxs(W.Stack,{gap:"md",children:[O.jsx(W.Skeleton,{height:40}),Array(r.length).fill(0).map(j1),O.jsxs(W.Group,{mt:"md",justify:"end",children:[O.jsx(W.Skeleton,{width:100,height:36}),O.jsx(W.Skeleton,{width:100,height:36})]})]}):O.jsxs("form",{onSubmit:V.onSubmit(async D=>{await I({...D,id:v}),ue.length&&C<ue.length-1?j||A(C+1):j||(V.setInitialValues(D),V.reset(),s())}),children:[ue.length?O.jsx(W.Stepper,{active:C,size:"sm",children:ue.map(D=>O.jsx(W.Stepper.Step,{...f&&f[D-1]?{label:f[D-1].label}:{},children:r.filter(p=>p.step===D).map(p=>De(p))},D))}):r.map(D=>De(D)),!E&&O.jsxs(W.Group,{mt:"md",justify:"end",children:[O.jsx(W.Button,{onClick:()=>ue.length?C===0?s():A(C-1):s(),variant:"outline",children:ue.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(W.Button,{type:"submit",loading:ae,children:ue.length?C===ue.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=C,n[25]=r,n[26]=V,n[27]=E,n[28]=v,n[29]=k,n[30]=ae,n[31]=j,n[32]=s,n[33]=De,n[34]=f,n[35]=ue,n[36]=I,n[37]=N):N=n[37];let T;return n[38]!==N||n[39]!==Oe?(T=O.jsxs(O.Fragment,{children:[Oe,N]}),n[38]=N,n[39]=Oe,n[40]=T):T=n[40],T}function j1(i,n){return O.jsx(W.Skeleton,{height:35},`skeleton-field-${n}`)}function Y1(i,n){return i[n.id]=F1,i}function F1(i){return i?null:"Pflichtfeld"}function W1(i){return i.required}function U1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function z1(i){return i.step}function q1(i){return typeof i.step=="number"}function H1({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:u,isError:g,error:v,isPending:f}=gu(n,i),[C,A]=me.useState(s),[E,L]=me.useState(!1),M=E||f;return me.useEffect(()=>{C.length||r()},[r,C]),C.length?O.jsxs(O.Fragment,{children:[g&&v.message&&O.jsx(W.Alert,{variant:"outline",color:"red",title:v.name,children:v.message}),O.jsx(W.Text,{children:C.length===1?`Soll ${C.length} Eintrag wirklich gelöscht werden?`:`Sollen ${C.length} Einträge wirklich gelöscht werden?`}),O.jsxs(W.Group,{mt:"md",justify:"end",children:[O.jsx(W.Button,{onClick:r,variant:"outline",disabled:M,children:"Abbrechen"}),O.jsx(W.Button,{color:"red",loading:M,onClick:async()=>{L(!0);try{await Promise.all(C.map(k=>u(k.id))),A([])}finally{L(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function Zu(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[u,g]=me.useState(s);let v;r[3]!==n?(v=A=>{g(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=v):v=r[4];const f=v;let C;return r[5]!==f||r[6]!==u?(C=[u,f],r[5]=f,r[6]=u,r[7]=C):C=r[7],C}const Qu=[10,15,20,50,100,500];function G1(i){const n=wn.c(143),{title:r,queryKey:s,connectedQueryKeys:u,apiPath:g,buttons:v,fields:f,selection:C,pagination:A,filters:E,actions:L,steps:M,defaultSort:k,createButtonText:I,queryParams:j,tabs:H,defaultTab:ae}=i,[se,le]=me.useState(ae||(H&&H.length>0?H[0].value:null));let ue,Z;if(n[0]!==se||n[1]!==j||n[2]!==H){const Qe=H?.find(_t=>_t.value===se)?.queryParams||{};ue={...j,...Qe},Z=ue?"?"+Object.entries(ue).filter(i0).map(r0).join("&"):"",n[0]=se,n[1]=j,n[2]=H,n[3]=ue,n[4]=Z}else ue=n[3],Z=n[4];const ce=Z;let Q;n[5]!==se||n[6]!==s?(Q=se?[...s,se]:s,n[5]=se,n[6]=s,n[7]=Q):Q=n[7];const V=Q,{data:de,isLoading:fe,isError:re,isRefetching:De,refetch:Oe}=du(g+ce,V);let N;n[8]===Symbol.for("react.memo_cache_sentinel")?(N=[],n[8]=N):N=n[8];const[T,D]=me.useState(N),{queryClient:p}=Jn();let d;n[9]!==de||n[10]!==u||n[11]!==E||n[12]!==p?(d=()=>{if(!(!de||!Array.isArray(de))){if(u?.forEach(Qe=>p.invalidateQueries({queryKey:Qe})),!E||E.length===0){D(de);return}D(de.filter(Qe=>E.every(_t=>{if(_t.value===void 0)return!0;const Bn=_t.id;if(_t.type==="query"){const Dn=Qe[Bn];return typeof Dn=="string"&&Dn.includes(_t.value)}else if(_t.type==="date"){const Dn=_t.value,[xt,Mn]=Dn;if(xt&&Mn){const jn=Qe[Bn];if(typeof jn=="string"){const Jt=new Date(jn);return Jt>=xt&&Jt<=Mn}}return!0}else if(_t.type==="boolean")return Qe[Bn]===_t.value;return!0})))}},n[9]=de,n[10]=u,n[11]=E,n[12]=p,n[13]=d):d=n[13];let w;n[14]!==de||n[15]!==ue||n[16]!==E?(w=[de,E,ue],n[14]=de,n[15]=ue,n[16]=E,n[17]=w):w=n[17],me.useEffect(d,w);const h=k?.field??f[0].id,m=k?.direction??"desc";let S;n[18]!==h||n[19]!==m?(S={columnAccessor:h,direction:m},n[18]=h,n[19]=m,n[20]=S):S=n[20];const[B,G]=me.useState(S);let oe;n[21]!==T||n[22]!==k?.direction||n[23]!==k?.field||n[24]!==f[0]?(oe=()=>{const Qe=Ku.sortBy(T,k?.field??f[0].id);return k?.direction==="asc"?Qe:Qe.reverse()},n[21]=T,n[22]=k?.direction,n[23]=k?.field,n[24]=f[0],n[25]=oe):oe=n[25];const[ne,be]=me.useState(oe);let ee;n[26]!==T||n[27]!==B.columnAccessor||n[28]!==B.direction?(ee=()=>{const Qe=Ku.sortBy(T,B.columnAccessor);be(B.direction==="desc"?Qe.reverse():Qe)},n[26]=T,n[27]=B.columnAccessor,n[28]=B.direction,n[29]=ee):ee=n[29];let ye;n[30]!==T||n[31]!==B?(ye=[B,T],n[30]=T,n[31]=B,n[32]=ye):ye=n[32],me.useEffect(ee,ye);const[pe,xe]=Zu(Qu[1],"mantine-table-page-size"),[$,K]=me.useState(1);let U;n[33]!==pe||n[34]!==A||n[35]!==ne?(U=A?ne.slice(0,pe):ne,n[33]=pe,n[34]=A,n[35]=ne,n[36]=U):U=n[36];const[J,te]=me.useState(U);let Se;n[37]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{K(1)},n[37]=Se):Se=n[37];let l;n[38]!==pe?(l=[pe],n[38]=pe,n[39]=l):l=n[39],me.useEffect(Se,l);let c,_;n[40]!==$||n[41]!==pe||n[42]!==A||n[43]!==ne?(c=()=>{if(A){const Qe=($-1)*pe,_t=Qe+pe;te(ne.slice(Qe,_t))}else te(ne)},_=[$,ne,A,pe],n[40]=$,n[41]=pe,n[42]=A,n[43]=ne,n[44]=c,n[45]=_):(c=n[44],_=n[45]),me.useEffect(c,_);let R;n[46]===Symbol.for("react.memo_cache_sentinel")?(R=[],n[46]=R):R=n[46];const[F,X]=me.useState(R);let Ae;n[47]!==F||n[48]!==C||n[49]!==ne?(Ae=()=>{C&&X(ne.filter(Qe=>F.some(_t=>_t.id===Qe.id)))},n[47]=F,n[48]=C,n[49]=ne,n[50]=Ae):Ae=n[50];let we;n[51]!==ne?(we=[ne],n[51]=ne,n[52]=we):we=n[52],me.useEffect(Ae,we);let Pe;n[53]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>{X([])},n[53]=Pe):Pe=n[53];let Ce;n[54]!==se?(Ce=[se],n[54]=se,n[55]=Ce):Ce=n[55],me.useEffect(Pe,Ce);const[Le,Be]=me.useState(!1),[Re,tt]=me.useState(!1),[Xe,rt]=me.useState(!1),Et=r?"space-between":"end";let ut;n[56]!==r?(ut=r&&(typeof r=="string"?O.jsx(W.Title,{order:4,children:r}):r),n[56]=r,n[57]=ut):ut=n[57];let Ze;n[58]!==Oe?(Ze=()=>Oe(),n[58]=Oe,n[59]=Ze):Ze=n[59];let un;n[60]===Symbol.for("react.memo_cache_sentinel")?(un=O.jsx(Qr.IconRefresh,{}),n[60]=un):un=n[60];let mt;n[61]!==Ze?(mt=O.jsx(W.ActionIcon,{variant:"subtle",onClick:Ze,"aria-label":"Neuladen",children:un}),n[61]=Ze,n[62]=mt):mt=n[62];let $t;n[63]!==L||n[64]!==f||n[65]!==F||n[66]!==C?($t=(f.some(n0)||C)&&O.jsxs(W.Menu,{shadow:"md",children:[O.jsx(W.Menu.Target,{children:O.jsx(W.Button,{variant:"outline",rightSection:O.jsx(Qr.IconCaretDownFilled,{size:14}),disabled:!F.length,children:"Aktionen"})}),O.jsxs(W.Menu.Dropdown,{children:[f.find(t0)&&O.jsx(W.Menu.Item,{leftSection:O.jsx(Qr.IconPencil,{size:14}),onClick:()=>tt(!0),disabled:F.length!==1,children:"Bearbeiten"}),(L??[]).map((Qe,_t)=>me.createElement(W.Menu.Item,{...Qe.icon&&{leftSection:Qe.icon},key:`custom_action_${_t}`,onClick:()=>Qe.onClick(F)},Qe.label)),f.find(e0)&&O.jsx(W.Menu.Item,{leftSection:O.jsx(Qr.IconTrash,{size:14}),onClick:()=>rt(!0),color:"red",children:"Löschen"})]})]}),n[63]=L,n[64]=f,n[65]=F,n[66]=C,n[67]=$t):$t=n[67];let Dt;n[68]!==I||n[69]!==f||n[70]!==fe?(Dt=f.find(X1)&&O.jsx(W.Button,{onClick:()=>Be(!0),disabled:fe,children:I??"Erstellen"}),n[68]=I,n[69]=f,n[70]=fe,n[71]=Dt):Dt=n[71];let Bt;n[72]!==v||n[73]!==mt||n[74]!==$t||n[75]!==Dt?(Bt=O.jsxs(W.Group,{align:"center",gap:"xs",children:[mt,$t,Dt,v]}),n[72]=v,n[73]=mt,n[74]=$t,n[75]=Dt,n[76]=Bt):Bt=n[76];let Gt;n[77]!==Et||n[78]!==ut||n[79]!==Bt?(Gt=O.jsxs(W.Group,{gap:"xs",justify:Et,align:"center",children:[ut,Bt]}),n[77]=Et,n[78]=ut,n[79]=Bt,n[80]=Gt):Gt=n[80];let yt;n[81]!==se||n[82]!==H?(yt=H&&H.length>0&&O.jsx(W.Tabs,{value:se,onChange:le,mt:"md",children:O.jsx(W.Tabs.List,{children:H.map(J1)})}),n[81]=se,n[82]=H,n[83]=yt):yt=n[83];let cn;n[84]!==re?(cn=re&&O.jsx(W.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(Qr.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[84]=re,n[85]=cn):cn=n[85];let fn;n[86]!==fe||n[87]!==De?(fn=(fe||De)&&O.jsxs(W.Stack,{my:"md",children:[O.jsx(W.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[86]=fe,n[87]=De,n[88]=fn):fn=n[88];let jt;n[89]!==f||n[90]!==re||n[91]!==fe||n[92]!==De||n[93]!==$||n[94]!==pe||n[95]!==A||n[96]!==J||n[97]!==F||n[98]!==C||n[99]!==xe||n[100]!==B||n[101]!==ne?(jt=!fe&&!De&&O.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:re,records:J,sortStatus:B,onSortStatusChange:G,...C&&{selectedRecords:F,onSelectedRecordsChange:X},...A&&J.length&&{totalRecords:ne.length,recordsPerPage:pe,onPageChange:K,page:$,recordsPerPageOptions:Qu,onRecordsPerPageChange:xe,recordsPerPageLabel:"Einträge pro Seite"},columns:f.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[89]=f,n[90]=re,n[91]=fe,n[92]=De,n[93]=$,n[94]=pe,n[95]=A,n[96]=J,n[97]=F,n[98]=C,n[99]=xe,n[100]=B,n[101]=ne,n[102]=jt):jt=n[102];let Vt;n[103]===Symbol.for("react.memo_cache_sentinel")?(Vt=()=>{tt(!1),X([])},n[103]=Vt):Vt=n[103];const Sn=r??"Bearbeiten";let Yt;n[104]!==g||n[105]!==f||n[106]!==s||n[107]!==F[0]||n[108]!==F.length||n[109]!==M?(Yt=F.length>0&&O.jsx(B1,{fields:f.filter(K1),queryKey:s,apiPath:g,id:F[0].id,onClose:()=>{tt(!1),X([])},steps:M}),n[104]=g,n[105]=f,n[106]=s,n[107]=F[0],n[108]=F.length,n[109]=M,n[110]=Yt):Yt=n[110];let Kt;n[111]!==Sn||n[112]!==Yt||n[113]!==Re?(Kt=O.jsx(W.Modal,{opened:Re,onClose:Vt,title:Sn,children:Yt}),n[111]=Sn,n[112]=Yt,n[113]=Re,n[114]=Kt):Kt=n[114];let Ft;n[115]!==g||n[116]!==Xe||n[117]!==s||n[118]!==F||n[119]!==r?(Ft=F.length>0&&O.jsx(W.Modal,{opened:Xe,onClose:()=>{rt(!1),X([])},title:r??"Löschen",children:O.jsx(H1,{onClose:()=>{rt(!1),X([])},queryKey:s,apiPath:g,selectedRecords:F})}),n[115]=g,n[116]=Xe,n[117]=s,n[118]=F,n[119]=r,n[120]=Ft):Ft=n[120];let ze;n[121]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{Be(!1)},n[121]=ze):ze=n[121];const at=r??"Anlegen";let Zt;n[122]===Symbol.for("react.memo_cache_sentinel")?(Zt=()=>{Be(!1)},n[122]=Zt):Zt=n[122];let Qt;n[123]!==f?(Qt=f.filter(V1),n[123]=f,n[124]=Qt):Qt=n[124];let Pn;n[125]!==g||n[126]!==s||n[127]!==M||n[128]!==Qt?(Pn=O.jsx(Yg,{queryKey:s,apiPath:g,onClose:Zt,fields:Qt,steps:M}),n[125]=g,n[126]=s,n[127]=M,n[128]=Qt,n[129]=Pn):Pn=n[129];let Wt;n[130]!==Le||n[131]!==at||n[132]!==Pn?(Wt=O.jsx(W.Modal,{opened:Le,onClose:ze,title:at,children:Pn}),n[130]=Le,n[131]=at,n[132]=Pn,n[133]=Wt):Wt=n[133];let nr;return n[134]!==Gt||n[135]!==yt||n[136]!==cn||n[137]!==fn||n[138]!==jt||n[139]!==Kt||n[140]!==Ft||n[141]!==Wt?(nr=O.jsxs(O.Fragment,{children:[Gt,yt,cn,fn,jt,Kt,Ft,Wt]}),n[134]=Gt,n[135]=yt,n[136]=cn,n[137]=fn,n[138]=jt,n[139]=Kt,n[140]=Ft,n[141]=Wt,n[142]=nr):nr=n[142],nr}function V1(i){return i.create}function K1(i){return i.update}function Z1(i){return i.column}function Q1(i,n){return O.jsx(W.Skeleton,{height:35},`skeleton-${n}`)}function J1(i){return O.jsx(W.Tabs.Tab,{value:i.value,leftSection:i.icon,children:i.label},i.value)}function X1(i){return i.create}function e0(i){return i.delete}function t0(i){return i.update}function n0(i){return i.update}function r0(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function i0(i){const[,n]=i;return n!=null}function o0(i){const n=wn.c(5),{queryClient:r}=Jn();let s;n[0]!==i?(s=O.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let u;return n[2]!==r||n[3]!==s?(u=O.jsx(yl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=u):u=n[4],u}ot.DataTable=o0,ot.DataTableProvider=jp,ot.api=Fp,ot.createOne=cu,ot.deleteOne=uu,ot.getAll=au,ot.getApiHeaders=gr,ot.getOne=lu,ot.updateOne=fu,ot.useAddOne=pu,ot.useDataTable=Jn,ot.useDeleteOne=gu,ot.useGetAll=du,ot.useGetOne=hu,ot.usePersistentState=Zu,ot.useUpdateOne=Ds,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
144
144
  //# sourceMappingURL=index.umd.js.map