@espresso-lab/mantine-data-table 1.2.0 → 1.4.0

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(ze,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):(ze=typeof globalThis<"u"?globalThis:ze||self,me(ze.MantineDataTable={},ze.React,ze.MantineCore,ze.MantineForm,ze.TablerIconsReact,ze.MantineHooks))})(this,function(ze,me,j,Ei,Mi,Tt){"use strict";var cd=ze=>{throw TypeError(ze)};var Qu=(ze,me,j)=>me.has(ze)||cd("Cannot "+j);var ye=(ze,me,j)=>(Qu(ze,me,"read from private field"),j?j.call(ze):me.get(ze)),at=(ze,me,j)=>me.has(ze)?cd("Cannot add the same private member more than once"):me instanceof WeakSet?me.add(ze):me.set(ze,j),Ze=(ze,me,j,Ei)=>(Qu(ze,me,"write to private field"),Ei?Ei.call(ze,j):me.set(ze,j),j),ht=(ze,me,j)=>(Qu(ze,me,"access private method"),j);var Ir,sr,ri,Jc,ii,ar,oi,Xc,Wt,Xe,qi,jt,Pr,si,ur,lr,Hi,ai,ui,$r,Nr,cr,li,it,_o,Ju,Xu,el,tl,nl,rl,il,fd,ef,fr,hr,Yt,$n,Nn,Ks,ol,tf;function hd(i){const t=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(t,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return t.default=i,Object.freeze(t)}const Et=hd(me);var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var So={exports:{}},Qs={};/**
1
+ (function(Ue,ye){typeof exports=="object"&&typeof module<"u"?ye(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"],ye):(Ue=typeof globalThis<"u"?globalThis:Ue||self,ye(Ue.MantineDataTable={},Ue.React,Ue.MantineCore,Ue.MantineForm,Ue.TablerIconsReact,Ue.MantineHooks))})(this,function(Ue,ye,B,Mi,Ei,At){"use strict";var ud=Ue=>{throw TypeError(Ue)};var Vu=(Ue,ye,B)=>ye.has(Ue)||ud("Cannot "+B);var ve=(Ue,ye,B)=>(Vu(Ue,ye,"read from private field"),B?B.call(Ue):ye.get(Ue)),at=(Ue,ye,B)=>ye.has(Ue)?ud("Cannot add the same private member more than once"):ye instanceof WeakSet?ye.add(Ue):ye.set(Ue,B),Ke=(Ue,ye,B,Mi)=>(Vu(Ue,ye,"write to private field"),Mi?Mi.call(Ue,B):ye.set(Ue,B),B),ht=(Ue,ye,B)=>(Vu(Ue,ye,"access private method"),B);var Ir,sr,ri,Kc,ii,ar,oi,Qc,Wt,et,qi,jt,Pr,si,ur,lr,Hi,ai,ui,Nr,$r,cr,li,rt,wo,Zu,Ku,Qu,Ju,Xu,el,tl,ld,Jc,fr,hr,zt,Pn,Nn,Gs,nl,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 Tt=cd(ye);var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rl(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var xo={exports:{}},Vs={};/**
2
2
  * @license React
3
3
  * react-compiler-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var sl;function dd(){if(sl)return Qs;sl=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Qs.c=function(t){return i.H.useMemoCache(t)},Qs}var Js={};/**
9
+ */var il;function fd(){if(il)return Vs;il=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Vs.c=function(n){return i.H.useMemoCache(n)},Vs}var Zs={};/**
10
10
  * @license React
11
11
  * react-compiler-runtime.development.js
12
12
  *
@@ -14,11 +14,11 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var al;function pd(){return al||(al=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Js.c=function(t){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 ol;function hd(){return ol||(ol=1,process.env.NODE_ENV!=="production"&&function(){var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Zs.c=function(n){var r=i.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
18
  1. You might have mismatching versions of React and the renderer (such as React DOM)
19
19
  2. You might be breaking the Rules of Hooks
20
20
  3. You might have more than one copy of React in the same app
21
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(t)}}()),Js}var ul;function gd(){return ul||(ul=1,process.env.NODE_ENV==="production"?So.exports=dd():So.exports=pd()),So.exports}var an=gd(),Co=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(){}},Ri=typeof window>"u"||"Deno"in globalThis;function vd(){}function ll(i){return typeof i=="number"&&i>=0&&i!==1/0}function md(i,t){return Math.max(i+(t||0)-Date.now(),0)}function Ao(i,t){return typeof i=="function"?i(t):i}function Mn(i,t){return typeof i=="function"?i(t):i}function cl(i){return JSON.stringify(i,(t,r)=>ea(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Xs(i,t){if(i===t)return i;const r=fl(i)&&fl(t);if(r||ea(i)&&ea(t)){const s=r?i:Object.keys(i),l=s.length,g=r?t:Object.keys(t),f=g.length,c=r?[]:{};let b=0;for(let C=0;C<f;C++){const O=r?C:g[C];(!r&&s.includes(O)||r)&&i[O]===void 0&&t[O]===void 0?(c[O]=void 0,b++):(c[O]=Xs(i[O],t[O]),c[O]===i[O]&&i[O]!==void 0&&b++)}return l===f&&b===l?i:c}return t}function Oo(i,t){if(!t||Object.keys(i).length!==Object.keys(t).length)return!1;for(const r in i)if(i[r]!==t[r])return!1;return!0}function fl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function ea(i){if(!hl(i))return!1;const t=i.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!hl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function hl(i){return Object.prototype.toString.call(i)==="[object Object]"}function dl(i,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Xs(i,t)}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,t)}return t}var yd=(Jc=class extends Co{constructor(){super();at(this,Ir);at(this,sr);at(this,ri);Ze(this,ri,t=>{if(!Ri&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ye(this,sr)||this.setEventListener(ye(this,ri))}onUnsubscribe(){var t;this.hasListeners()||((t=ye(this,sr))==null||t.call(this),Ze(this,sr,void 0))}setEventListener(t){var r;Ze(this,ri,t),(r=ye(this,sr))==null||r.call(this),Ze(this,sr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){ye(this,Ir)!==t&&(Ze(this,Ir,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof ye(this,Ir)=="boolean"?ye(this,Ir):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ir=new WeakMap,sr=new WeakMap,ri=new WeakMap,Jc),wd=new yd,_d=(Xc=class extends Co{constructor(){super();at(this,ii,!0);at(this,ar);at(this,oi);Ze(this,oi,t=>{if(!Ri&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){ye(this,ar)||this.setEventListener(ye(this,oi))}onUnsubscribe(){var t;this.hasListeners()||((t=ye(this,ar))==null||t.call(this),Ze(this,ar,void 0))}setEventListener(t){var r;Ze(this,oi,t),(r=ye(this,ar))==null||r.call(this),Ze(this,ar,t(this.setOnline.bind(this)))}setOnline(t){ye(this,ii)!==t&&(Ze(this,ii,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return ye(this,ii)}},ii=new WeakMap,ar=new WeakMap,oi=new WeakMap,Xc),bd=new _d;function pl(){let i,t;const r=new Promise((l,g)=>{i=l,t=g});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}),t(l)},r}function xd(i){return(i??"online")==="online"?bd.isOnline():!0}var Sd=i=>setTimeout(i,0);function Cd(){let i=[],t=0,r=c=>{c()},s=c=>{c()},l=Sd;const g=c=>{t?i.push(c):l(()=>{r(c)})},f=()=>{const c=i;i=[],c.length&&l(()=>{s(()=>{c.forEach(b=>{r(b)})})})};return{batch:c=>{let b;t++;try{b=c()}finally{t--,t||f()}return b},batchCalls:c=>(...b)=>{g(()=>{c(...b)})},schedule:g,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{l=c}}}var To=Cd();function Ad(i,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xd(t.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Od(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Td=(ef=class extends Co{constructor(t,r){super();at(this,it);at(this,Wt);at(this,Xe);at(this,qi);at(this,jt);at(this,Pr);at(this,si);at(this,ur);at(this,lr);at(this,Hi);at(this,ai);at(this,ui);at(this,$r);at(this,Nr);at(this,cr);at(this,li,new Set);this.options=r,Ze(this,Wt,t),Ze(this,lr,null),Ze(this,ur,pl()),this.options.experimental_prefetchInRender||ye(this,ur).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,Xe).addObserver(this),gl(ye(this,Xe),this.options)?ht(this,it,_o).call(this):this.updateResult(),ht(this,it,tl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ta(ye(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ta(ye(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ht(this,it,nl).call(this),ht(this,it,rl).call(this),ye(this,Xe).removeObserver(this)}setOptions(t){const r=this.options,s=ye(this,Xe);if(this.options=ye(this,Wt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mn(this.options.enabled,ye(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ht(this,it,il).call(this),ye(this,Xe).setOptions(this.options),r._defaulted&&!Oo(this.options,r)&&ye(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:ye(this,Xe),observer:this});const l=this.hasListeners();l&&vl(ye(this,Xe),s,this.options,r)&&ht(this,it,_o).call(this),this.updateResult(),l&&(ye(this,Xe)!==s||Mn(this.options.enabled,ye(this,Xe))!==Mn(r.enabled,ye(this,Xe))||Ao(this.options.staleTime,ye(this,Xe))!==Ao(r.staleTime,ye(this,Xe)))&&ht(this,it,Ju).call(this);const g=ht(this,it,Xu).call(this);l&&(ye(this,Xe)!==s||Mn(this.options.enabled,ye(this,Xe))!==Mn(r.enabled,ye(this,Xe))||g!==ye(this,cr))&&ht(this,it,el).call(this,g)}getOptimisticResult(t){const r=ye(this,Wt).getQueryCache().build(ye(this,Wt),t),s=this.createResult(r,t);return Ed(this,s)&&(Ze(this,jt,s),Ze(this,si,this.options),Ze(this,Pr,ye(this,Xe).state)),s}getCurrentResult(){return ye(this,jt)}trackResult(t,r){const s={};return Object.keys(t).forEach(l=>{Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(l),r==null||r(l),t[l])})}),s}trackProp(t){ye(this,li).add(t)}getCurrentQuery(){return ye(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=ye(this,Wt).defaultQueryOptions(t),s=ye(this,Wt).getQueryCache().build(ye(this,Wt),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return ht(this,it,_o).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ye(this,jt)))}createResult(t,r){var fe;const s=ye(this,Xe),l=this.options,g=ye(this,jt),f=ye(this,Pr),c=ye(this,si),C=t!==s?t.state:ye(this,qi),{state:O}=t;let L={...O},k=!1,E;if(r._optimisticResults){const de=this.hasListeners(),ie=!de&&gl(t,r),Ae=de&&vl(t,s,r,l);(ie||Ae)&&(L={...L,...Ad(O.data,t.options)}),r._optimisticResults==="isRestoring"&&(L.fetchStatus="idle")}let{error:R,errorUpdatedAt:M,status:$}=L;E=L.data;let Q=!1;if(r.placeholderData!==void 0&&E===void 0&&$==="pending"){let de;g!=null&&g.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(de=g.data,Q=!0):de=typeof r.placeholderData=="function"?r.placeholderData((fe=ye(this,ui))==null?void 0:fe.state.data,ye(this,ui)):r.placeholderData,de!==void 0&&($="success",E=dl(g==null?void 0:g.data,de,r),k=!0)}if(r.select&&E!==void 0&&!Q)if(g&&E===(f==null?void 0:f.data)&&r.select===ye(this,Hi))E=ye(this,ai);else try{Ze(this,Hi,r.select),E=r.select(E),E=dl(g==null?void 0:g.data,E,r),Ze(this,ai,E),Ze(this,lr,null)}catch(de){Ze(this,lr,de)}ye(this,lr)&&(R=ye(this,lr),E=ye(this,ai),M=Date.now(),$="error");const X=L.fetchStatus==="fetching",J=$==="pending",se=$==="error",q=J&&X,ue=E!==void 0,ee={status:$,fetchStatus:L.fetchStatus,isPending:J,isSuccess:$==="success",isError:se,isInitialLoading:q,isLoading:q,data:E,dataUpdatedAt:L.dataUpdatedAt,error:R,errorUpdatedAt:M,failureCount:L.fetchFailureCount,failureReason:L.fetchFailureReason,errorUpdateCount:L.errorUpdateCount,isFetched:L.dataUpdateCount>0||L.errorUpdateCount>0,isFetchedAfterMount:L.dataUpdateCount>C.dataUpdateCount||L.errorUpdateCount>C.errorUpdateCount,isFetching:X,isRefetching:X&&!J,isLoadingError:se&&!ue,isPaused:L.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:se&&ue,isStale:na(t,r),refetch:this.refetch,promise:ye(this,ur)};if(this.options.experimental_prefetchInRender){const de=Ce=>{ee.status==="error"?Ce.reject(ee.error):ee.data!==void 0&&Ce.resolve(ee.data)},ie=()=>{const Ce=Ze(this,ur,ee.promise=pl());de(Ce)},Ae=ye(this,ur);switch(Ae.status){case"pending":t.queryHash===s.queryHash&&de(Ae);break;case"fulfilled":(ee.status==="error"||ee.data!==Ae.value)&&ie();break;case"rejected":(ee.status!=="error"||ee.error!==Ae.reason)&&ie();break}}return ee}updateResult(){const t=ye(this,jt),r=this.createResult(ye(this,Xe),this.options);if(Ze(this,Pr,ye(this,Xe).state),Ze(this,si,this.options),ye(this,Pr).data!==void 0&&Ze(this,ui,ye(this,Xe)),Oo(r,t))return;Ze(this,jt,r);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:l}=this.options,g=typeof l=="function"?l():l;if(g==="all"||!g&&!ye(this,li).size)return!0;const f=new Set(g??ye(this,li));return this.options.throwOnError&&f.add("error"),Object.keys(ye(this,jt)).some(c=>{const b=c;return ye(this,jt)[b]!==t[b]&&f.has(b)})};ht(this,it,fd).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ht(this,it,tl).call(this)}},Wt=new WeakMap,Xe=new WeakMap,qi=new WeakMap,jt=new WeakMap,Pr=new WeakMap,si=new WeakMap,ur=new WeakMap,lr=new WeakMap,Hi=new WeakMap,ai=new WeakMap,ui=new WeakMap,$r=new WeakMap,Nr=new WeakMap,cr=new WeakMap,li=new WeakMap,it=new WeakSet,_o=function(t){ht(this,it,il).call(this);let r=ye(this,Xe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(vd)),r},Ju=function(){ht(this,it,nl).call(this);const t=Ao(this.options.staleTime,ye(this,Xe));if(Ri||ye(this,jt).isStale||!ll(t))return;const s=md(ye(this,jt).dataUpdatedAt,t)+1;Ze(this,$r,setTimeout(()=>{ye(this,jt).isStale||this.updateResult()},s))},Xu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ye(this,Xe)):this.options.refetchInterval)??!1},el=function(t){ht(this,it,rl).call(this),Ze(this,cr,t),!(Ri||Mn(this.options.enabled,ye(this,Xe))===!1||!ll(ye(this,cr))||ye(this,cr)===0)&&Ze(this,Nr,setInterval(()=>{(this.options.refetchIntervalInBackground||wd.isFocused())&&ht(this,it,_o).call(this)},ye(this,cr)))},tl=function(){ht(this,it,Ju).call(this),ht(this,it,el).call(this,ht(this,it,Xu).call(this))},nl=function(){ye(this,$r)&&(clearTimeout(ye(this,$r)),Ze(this,$r,void 0))},rl=function(){ye(this,Nr)&&(clearInterval(ye(this,Nr)),Ze(this,Nr,void 0))},il=function(){const t=ye(this,Wt).getQueryCache().build(ye(this,Wt),this.options);if(t===ye(this,Xe))return;const r=ye(this,Xe);Ze(this,Xe,t),Ze(this,qi,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},fd=function(t){To.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ye(this,jt))}),ye(this,Wt).getQueryCache().notify({query:ye(this,Xe),type:"observerResultsUpdated"})})},ef);function Dd(i,t){return Mn(t.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&t.retryOnMount===!1)}function gl(i,t){return Dd(i,t)||i.state.data!==void 0&&ta(i,t,t.refetchOnMount)}function ta(i,t,r){if(Mn(t.enabled,i)!==!1){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&na(i,t)}return!1}function vl(i,t,r,s){return(i!==t||Mn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&na(i,r)}function na(i,t){return Mn(t.enabled,i)!==!1&&i.isStaleByTime(Ao(t.staleTime,i))}function Ed(i,t){return!Oo(i.getCurrentResult(),t)}var Md=(tf=class extends Co{constructor(t,r){super();at(this,Nn);at(this,fr);at(this,hr);at(this,Yt);at(this,$n);Ze(this,fr,t),this.setOptions(r),this.bindMethods(),ht(this,Nn,Ks).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var s;const r=this.options;this.options=ye(this,fr).defaultMutationOptions(t),Oo(this.options,r)||ye(this,fr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ye(this,Yt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&cl(r.mutationKey)!==cl(this.options.mutationKey)?this.reset():((s=ye(this,Yt))==null?void 0:s.state.status)==="pending"&&ye(this,Yt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=ye(this,Yt))==null||t.removeObserver(this)}onMutationUpdate(t){ht(this,Nn,Ks).call(this),ht(this,Nn,ol).call(this,t)}getCurrentResult(){return ye(this,hr)}reset(){var t;(t=ye(this,Yt))==null||t.removeObserver(this),Ze(this,Yt,void 0),ht(this,Nn,Ks).call(this),ht(this,Nn,ol).call(this)}mutate(t,r){var s;return Ze(this,$n,r),(s=ye(this,Yt))==null||s.removeObserver(this),Ze(this,Yt,ye(this,fr).getMutationCache().build(ye(this,fr),this.options)),ye(this,Yt).addObserver(this),ye(this,Yt).execute(t)}},fr=new WeakMap,hr=new WeakMap,Yt=new WeakMap,$n=new WeakMap,Nn=new WeakSet,Ks=function(){var r;const t=((r=ye(this,Yt))==null?void 0:r.state)??Od();Ze(this,hr,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ol=function(t){To.batch(()=>{var r,s,l,g,f,c,b,C;if(ye(this,$n)&&this.hasListeners()){const O=ye(this,hr).variables,L=ye(this,hr).context;(t==null?void 0:t.type)==="success"?((s=(r=ye(this,$n)).onSuccess)==null||s.call(r,t.data,O,L),(g=(l=ye(this,$n)).onSettled)==null||g.call(l,t.data,null,O,L)):(t==null?void 0:t.type)==="error"&&((c=(f=ye(this,$n)).onError)==null||c.call(f,t.error,O,L),(C=(b=ye(this,$n)).onSettled)==null||C.call(b,void 0,t.error,O,L))}this.listeners.forEach(O=>{O(ye(this,hr))})})},tf),Do={exports:{}},Li={};/**
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Zs}var sl;function dd(){return sl||(sl=1,process.env.NODE_ENV==="production"?xo.exports=fd():xo.exports=hd()),xo.exports}var an=dd(),So=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ri=typeof window>"u"||"Deno"in globalThis;function pd(){}function al(i){return typeof i=="number"&&i>=0&&i!==1/0}function gd(i,n){return Math.max(i+(n||0)-Date.now(),0)}function Co(i,n){return typeof i=="function"?i(n):i}function Mn(i,n){return typeof i=="function"?i(n):i}function ul(i){return JSON.stringify(i,(n,r)=>Qs(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Ks(i,n){if(i===n)return i;const r=ll(i)&&ll(n);if(r||Qs(i)&&Qs(n)){const s=r?i:Object.keys(i),l=s.length,d=r?n:Object.keys(n),v=d.length,c=r?[]:{};let x=0;for(let C=0;C<v;C++){const O=r?C:d[C];(!r&&s.includes(O)||r)&&i[O]===void 0&&n[O]===void 0?(c[O]=void 0,x++):(c[O]=Ks(i[O],n[O]),c[O]===i[O]&&i[O]!==void 0&&x++)}return l===v&&x===l?i:c}return n}function Ao(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function ll(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function Qs(i){if(!cl(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!cl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function cl(i){return Object.prototype.toString.call(i)==="[object Object]"}function fl(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Ks(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return Ks(i,n)}return n}var md=(Kc=class extends So{constructor(){super();at(this,Ir);at(this,sr);at(this,ri);Ke(this,ri,n=>{if(!Ri&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ve(this,sr)||this.setEventListener(ve(this,ri))}onUnsubscribe(){var n;this.hasListeners()||((n=ve(this,sr))==null||n.call(this),Ke(this,sr,void 0))}setEventListener(n){var r;Ke(this,ri,n),(r=ve(this,sr))==null||r.call(this),Ke(this,sr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){ve(this,Ir)!==n&&(Ke(this,Ir,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof ve(this,Ir)=="boolean"?ve(this,Ir):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Ir=new WeakMap,sr=new WeakMap,ri=new WeakMap,Kc),vd=new md,yd=(Qc=class extends So{constructor(){super();at(this,ii,!0);at(this,ar);at(this,oi);Ke(this,oi,n=>{if(!Ri&&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(){ve(this,ar)||this.setEventListener(ve(this,oi))}onUnsubscribe(){var n;this.hasListeners()||((n=ve(this,ar))==null||n.call(this),Ke(this,ar,void 0))}setEventListener(n){var r;Ke(this,oi,n),(r=ve(this,ar))==null||r.call(this),Ke(this,ar,n(this.setOnline.bind(this)))}setOnline(n){ve(this,ii)!==n&&(Ke(this,ii,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return ve(this,ii)}},ii=new WeakMap,ar=new WeakMap,oi=new WeakMap,Qc),_d=new yd;function hl(){let i,n;const r=new Promise((l,d)=>{i=l,n=d});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 wd(i){return(i??"online")==="online"?_d.isOnline():!0}var bd=i=>setTimeout(i,0);function xd(){let i=[],n=0,r=c=>{c()},s=c=>{c()},l=bd;const d=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)=>{d(()=>{c(...x)})},schedule:d,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{l=c}}}var Do=xd();function Sd(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wd(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Cd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ad=(Jc=class extends So{constructor(n,r){super();at(this,rt);at(this,Wt);at(this,et);at(this,qi);at(this,jt);at(this,Pr);at(this,si);at(this,ur);at(this,lr);at(this,Hi);at(this,ai);at(this,ui);at(this,Nr);at(this,$r);at(this,cr);at(this,li,new Set);this.options=r,Ke(this,Wt,n),Ke(this,lr,null),Ke(this,ur,hl()),this.options.experimental_prefetchInRender||ve(this,ur).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&&(ve(this,et).addObserver(this),dl(ve(this,et),this.options)?ht(this,rt,wo).call(this):this.updateResult(),ht(this,rt,Ju).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Js(ve(this,et),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Js(ve(this,et),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ht(this,rt,Xu).call(this),ht(this,rt,el).call(this),ve(this,et).removeObserver(this)}setOptions(n){const r=this.options,s=ve(this,et);if(this.options=ve(this,Wt).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mn(this.options.enabled,ve(this,et))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ht(this,rt,tl).call(this),ve(this,et).setOptions(this.options),r._defaulted&&!Ao(this.options,r)&&ve(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:ve(this,et),observer:this});const l=this.hasListeners();l&&pl(ve(this,et),s,this.options,r)&&ht(this,rt,wo).call(this),this.updateResult(),l&&(ve(this,et)!==s||Mn(this.options.enabled,ve(this,et))!==Mn(r.enabled,ve(this,et))||Co(this.options.staleTime,ve(this,et))!==Co(r.staleTime,ve(this,et)))&&ht(this,rt,Zu).call(this);const d=ht(this,rt,Ku).call(this);l&&(ve(this,et)!==s||Mn(this.options.enabled,ve(this,et))!==Mn(r.enabled,ve(this,et))||d!==ve(this,cr))&&ht(this,rt,Qu).call(this,d)}getOptimisticResult(n){const r=ve(this,Wt).getQueryCache().build(ve(this,Wt),n),s=this.createResult(r,n);return Od(this,s)&&(Ke(this,jt,s),Ke(this,si,this.options),Ke(this,Pr,ve(this,et).state)),s}getCurrentResult(){return ve(this,jt)}trackResult(n,r){return new Proxy(n,{get:(s,l)=>(this.trackProp(l),r==null||r(l),Reflect.get(s,l))})}trackProp(n){ve(this,li).add(n)}getCurrentQuery(){return ve(this,et)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=ve(this,Wt).defaultQueryOptions(n),s=ve(this,Wt).getQueryCache().build(ve(this,Wt),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return ht(this,rt,wo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),ve(this,jt)))}createResult(n,r){var de;const s=ve(this,et),l=this.options,d=ve(this,jt),v=ve(this,Pr),c=ve(this,si),C=n!==s?n.state:ve(this,qi),{state:O}=n;let R={...O},N=!1,E;if(r._optimisticResults){const pe=this.hasListeners(),re=!pe&&dl(n,r),Ae=pe&&pl(n,s,r,l);(re||Ae)&&(R={...R,...Sd(O.data,n.options)}),r._optimisticResults==="isRestoring"&&(R.fetchStatus="idle")}let{error:I,errorUpdatedAt:$,status:j}=R;E=R.data;let X=!1;if(r.placeholderData!==void 0&&E===void 0&&j==="pending"){let pe;d!=null&&d.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(pe=d.data,X=!0):pe=typeof r.placeholderData=="function"?r.placeholderData((de=ve(this,ui))==null?void 0:de.state.data,ve(this,ui)):r.placeholderData,pe!==void 0&&(j="success",E=fl(d==null?void 0:d.data,pe,r),N=!0)}if(r.select&&E!==void 0&&!X)if(d&&E===(v==null?void 0:v.data)&&r.select===ve(this,Hi))E=ve(this,ai);else try{Ke(this,Hi,r.select),E=r.select(E),E=fl(d==null?void 0:d.data,E,r),Ke(this,ai,E),Ke(this,lr,null)}catch(pe){Ke(this,lr,pe)}ve(this,lr)&&(I=ve(this,lr),E=ve(this,ai),$=Date.now(),j="error");const te=R.fetchStatus==="fetching",ne=j==="pending",ue=j==="error",V=ne&&te,ce=E!==void 0,ee={status:j,fetchStatus:R.fetchStatus,isPending:ne,isSuccess:j==="success",isError:ue,isInitialLoading:V,isLoading:V,data:E,dataUpdatedAt:R.dataUpdatedAt,error:I,errorUpdatedAt:$,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>C.dataUpdateCount||R.errorUpdateCount>C.errorUpdateCount,isFetching:te,isRefetching:te&&!ne,isLoadingError:ue&&!ce,isPaused:R.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:ue&&ce,isStale:Xs(n,r),refetch:this.refetch,promise:ve(this,ur)};if(this.options.experimental_prefetchInRender){const pe=Se=>{ee.status==="error"?Se.reject(ee.error):ee.data!==void 0&&Se.resolve(ee.data)},re=()=>{const Se=Ke(this,ur,ee.promise=hl());pe(Se)},Ae=ve(this,ur);switch(Ae.status){case"pending":n.queryHash===s.queryHash&&pe(Ae);break;case"fulfilled":(ee.status==="error"||ee.data!==Ae.value)&&re();break;case"rejected":(ee.status!=="error"||ee.error!==Ae.reason)&&re();break}}return ee}updateResult(){const n=ve(this,jt),r=this.createResult(ve(this,et),this.options);if(Ke(this,Pr,ve(this,et).state),Ke(this,si,this.options),ve(this,Pr).data!==void 0&&Ke(this,ui,ve(this,et)),Ao(r,n))return;Ke(this,jt,r);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,d=typeof l=="function"?l():l;if(d==="all"||!d&&!ve(this,li).size)return!0;const v=new Set(d??ve(this,li));return this.options.throwOnError&&v.add("error"),Object.keys(ve(this,jt)).some(c=>{const x=c;return ve(this,jt)[x]!==n[x]&&v.has(x)})};ht(this,rt,ld).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ht(this,rt,Ju).call(this)}},Wt=new WeakMap,et=new WeakMap,qi=new WeakMap,jt=new WeakMap,Pr=new WeakMap,si=new WeakMap,ur=new WeakMap,lr=new WeakMap,Hi=new WeakMap,ai=new WeakMap,ui=new WeakMap,Nr=new WeakMap,$r=new WeakMap,cr=new WeakMap,li=new WeakMap,rt=new WeakSet,wo=function(n){ht(this,rt,tl).call(this);let r=ve(this,et).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(pd)),r},Zu=function(){ht(this,rt,Xu).call(this);const n=Co(this.options.staleTime,ve(this,et));if(Ri||ve(this,jt).isStale||!al(n))return;const s=gd(ve(this,jt).dataUpdatedAt,n)+1;Ke(this,Nr,setTimeout(()=>{ve(this,jt).isStale||this.updateResult()},s))},Ku=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ve(this,et)):this.options.refetchInterval)??!1},Qu=function(n){ht(this,rt,el).call(this),Ke(this,cr,n),!(Ri||Mn(this.options.enabled,ve(this,et))===!1||!al(ve(this,cr))||ve(this,cr)===0)&&Ke(this,$r,setInterval(()=>{(this.options.refetchIntervalInBackground||vd.isFocused())&&ht(this,rt,wo).call(this)},ve(this,cr)))},Ju=function(){ht(this,rt,Zu).call(this),ht(this,rt,Qu).call(this,ht(this,rt,Ku).call(this))},Xu=function(){ve(this,Nr)&&(clearTimeout(ve(this,Nr)),Ke(this,Nr,void 0))},el=function(){ve(this,$r)&&(clearInterval(ve(this,$r)),Ke(this,$r,void 0))},tl=function(){const n=ve(this,Wt).getQueryCache().build(ve(this,Wt),this.options);if(n===ve(this,et))return;const r=ve(this,et);Ke(this,et,n),Ke(this,qi,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},ld=function(n){Do.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(ve(this,jt))}),ve(this,Wt).getQueryCache().notify({query:ve(this,et),type:"observerResultsUpdated"})})},Jc);function Dd(i,n){return Mn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function dl(i,n){return Dd(i,n)||i.state.data!==void 0&&Js(i,n,n.refetchOnMount)}function Js(i,n,r){if(Mn(n.enabled,i)!==!1){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&Xs(i,n)}return!1}function pl(i,n,r,s){return(i!==n||Mn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&Xs(i,r)}function Xs(i,n){return Mn(n.enabled,i)!==!1&&i.isStaleByTime(Co(n.staleTime,i))}function Od(i,n){return!Ao(i.getCurrentResult(),n)}var Td=(Xc=class extends So{constructor(n,r){super();at(this,Nn);at(this,fr);at(this,hr);at(this,zt);at(this,Pn);Ke(this,fr,n),this.setOptions(r),this.bindMethods(),ht(this,Nn,Gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=ve(this,fr).defaultMutationOptions(n),Ao(this.options,r)||ve(this,fr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ve(this,zt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ul(r.mutationKey)!==ul(this.options.mutationKey)?this.reset():((s=ve(this,zt))==null?void 0:s.state.status)==="pending"&&ve(this,zt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ve(this,zt))==null||n.removeObserver(this)}onMutationUpdate(n){ht(this,Nn,Gs).call(this),ht(this,Nn,nl).call(this,n)}getCurrentResult(){return ve(this,hr)}reset(){var n;(n=ve(this,zt))==null||n.removeObserver(this),Ke(this,zt,void 0),ht(this,Nn,Gs).call(this),ht(this,Nn,nl).call(this)}mutate(n,r){var s;return Ke(this,Pn,r),(s=ve(this,zt))==null||s.removeObserver(this),Ke(this,zt,ve(this,fr).getMutationCache().build(ve(this,fr),this.options)),ve(this,zt).addObserver(this),ve(this,zt).execute(n)}},fr=new WeakMap,hr=new WeakMap,zt=new WeakMap,Pn=new WeakMap,Nn=new WeakSet,Gs=function(){var r;const n=((r=ve(this,zt))==null?void 0:r.state)??Cd();Ke(this,hr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},nl=function(n){Do.batch(()=>{var r,s,l,d,v,c,x,C;if(ve(this,Pn)&&this.hasListeners()){const O=ve(this,hr).variables,R=ve(this,hr).context;(n==null?void 0:n.type)==="success"?((s=(r=ve(this,Pn)).onSuccess)==null||s.call(r,n.data,O,R),(d=(l=ve(this,Pn)).onSettled)==null||d.call(l,n.data,null,O,R)):(n==null?void 0:n.type)==="error"&&((c=(v=ve(this,Pn)).onError)==null||c.call(v,n.error,O,R),(C=(x=ve(this,Pn)).onSettled)==null||C.call(x,void 0,n.error,O,R))}this.listeners.forEach(O=>{O(ve(this,hr))})})},Xc),Oo={exports:{}},Li={};/**
22
22
  * @license React
23
23
  * react-jsx-runtime.production.js
24
24
  *
@@ -26,7 +26,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var ml;function Rd(){if(ml)return Li;ml=1;var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,l,g){var f=null;if(g!==void 0&&(f=""+g),l.key!==void 0&&(f=""+l.key),"key"in l){g={};for(var c in l)c!=="key"&&(g[c]=l[c])}else g=l;return l=g.ref,{$$typeof:i,type:s,key:f,ref:l!==void 0?l:null,props:g}}return Li.Fragment=t,Li.jsx=r,Li.jsxs=r,Li}var ki={};/**
29
+ */var gl;function Md(){if(gl)return Li;gl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,d){var v=null;if(d!==void 0&&(v=""+d),l.key!==void 0&&(v=""+l.key),"key"in l){d={};for(var c in l)c!=="key"&&(d[c]=l[c])}else d=l;return l=d.ref,{$$typeof:i,type:s,key:v,ref:l!==void 0?l:null,props:d}}return Li.Fragment=n,Li.jsx=r,Li.jsxs=r,Li}var ki={};/**
30
30
  * @license React
31
31
  * react-jsx-runtime.development.js
32
32
  *
@@ -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 Ld(){return yl||(yl=1,process.env.NODE_ENV!=="production"&&function(){function i(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===de?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case M:return"Fragment";case Q:return"Profiler";case $:return"StrictMode";case q:return"Suspense";case ue:return"SuspenseList";case fe:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case R:return"Portal";case J:return(d.displayName||"Context")+".Provider";case X:return(d._context.displayName||"Context")+".Consumer";case se:var m=d.render;return d=d.displayName,d||(d=m.displayName||m.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case ne:return m=d.displayName||null,m!==null?m:i(d.type)||"Memo";case ee:m=d._payload,d=d._init;try{return i(d(m))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var m=!1}catch{m=!0}if(m){m=console;var T=m.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return T.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(d)}}function s(d){if(d===M)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===ee)return"<...>";try{var m=i(d);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var d=ie.A;return d===null?null:d.getOwner()}function g(){return Error("react-stack-top-frame")}function f(d){if(Ae.call(d,"key")){var m=Object.getOwnPropertyDescriptor(d,"key").get;if(m&&m.isReactWarning)return!1}return d.key!==void 0}function c(d,m){function T(){I||(I=!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))}T.isReactWarning=!0,Object.defineProperty(d,"key",{get:T,configurable:!0})}function b(){var d=i(this.type);return A[d]||(A[d]=!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.")),d=this.props.ref,d!==void 0?d:null}function C(d,m,T,H,Z,le,pe,we){return T=le.ref,d={$$typeof:E,type:d,key:m,props:le,_owner:Z},(T!==void 0?T:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:b}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function O(d,m,T,H,Z,le,pe,we){var re=m.children;if(re!==void 0)if(H)if(Ce(re)){for(H=0;H<re.length;H++)L(re[H]);Object.freeze&&Object.freeze(re)}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(re);if(Ae.call(m,"key")){re=i(d);var ce=Object.keys(m).filter(function(be){return be!=="key"});H=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",_[re+H]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
37
+ */var ml;function Ed(){return ml||(ml=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===pe?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case $:return"Fragment";case X:return"Profiler";case j:return"StrictMode";case V: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 ne:return(h.displayName||"Context")+".Provider";case te: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 oe:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case ee: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 D=m.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),n(h)}}function s(h){if(h===$)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===ee)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var h=re.A;return h===null?null:h.getOwner()}function d(){return Error("react-stack-top-frame")}function v(h){if(Ae.call(h,"key")){var m=Object.getOwnPropertyDescriptor(h,"key").get;if(m&&m.isReactWarning)return!1}return h.key!==void 0}function c(h,m){function D(){L||(L=!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))}D.isReactWarning=!0,Object.defineProperty(h,"key",{get:D,configurable:!0})}function x(){var h=i(this.type);return A[h]||(A[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 C(h,m,D,z,Z,ae,fe,_e){return D=ae.ref,h={$$typeof:E,type:h,key:m,props:ae,_owner:Z},(D!==void 0?D:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:x}):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:fe}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function O(h,m,D,z,Z,ae,fe,_e){var J=m.children;if(J!==void 0)if(z)if(Se(J)){for(z=0;z<J.length;z++)R(J[z]);Object.freeze&&Object.freeze(J)}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 R(J);if(Ae.call(m,"key")){J=i(h);var he=Object.keys(m).filter(function(be){return be!=="key"});z=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",w[J+z]||(he=0<he.length?"{"+he.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} />`,H,re,ce,re),_[re+H]=!0)}if(re=null,T!==void 0&&(r(T),re=""+T),f(m)&&(r(m.key),re=""+m.key),"key"in m){T={};for(var Oe in m)Oe!=="key"&&(T[Oe]=m[Oe])}else T=m;return re&&c(T,typeof d=="function"?d.displayName||d.name||"Unknown":d),C(d,re,le,Z,l(),T,pe,we)}function L(d){typeof d=="object"&&d!==null&&d.$$typeof===E&&d._store&&(d._store.validated=1)}var k=me,E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),J=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),de=Symbol.for("react.client.reference"),ie=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Ce=Array.isArray,U=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(d){return d()}};var I,A={},v=k["react-stack-bottom-frame"].bind(k,g)(),p=U(s(g)),_={};ki.Fragment=M,ki.jsx=function(d,m,T,H,Z){var le=1e4>ie.recentlyCreatedOwnerStacks++;return O(d,m,T,!1,H,Z,le?Error("react-stack-top-frame"):v,le?U(s(d)):p)},ki.jsxs=function(d,m,T,H,Z){var le=1e4>ie.recentlyCreatedOwnerStacks++;return O(d,m,T,!0,H,Z,le?Error("react-stack-top-frame"):v,le?U(s(d)):p)}}()),ki}var wl;function kd(){return wl||(wl=1,process.env.NODE_ENV==="production"?Do.exports=Rd():Do.exports=Ld()),Do.exports}var D=kd(),_l=Et.createContext(void 0),bl=i=>{const t=Et.useContext(_l);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xl=({client:i,children:t})=>(Et.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),D.jsx(_l.Provider,{value:i,children:t})),Sl=Et.createContext(!1),Id=()=>Et.useContext(Sl);Sl.Provider;function Pd(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var $d=Et.createContext(Pd()),Nd=()=>Et.useContext($d);function Cl(i,t){return typeof i=="function"?i(...t):!!i}function ra(){}var Bd=(i,t)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(t.isReset()||(i.retryOnMount=!1))},jd=i=>{Et.useEffect(()=>{i.clearReset()},[i])},Ud=({result:i,errorResetBoundary:t,throwOnError:r,query:s,suspense:l})=>i.isError&&!t.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||Cl(r,[i.error,s])),zd=i=>{const t=i.staleTime;i.suspense&&(i.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},Fd=(i,t)=>i.isLoading&&i.isFetching&&!t,Wd=(i,t)=>(i==null?void 0:i.suspense)&&t.isPending,Al=(i,t,r)=>t.fetchOptimistic(i).catch(()=>{r.clearReset()});function Yd(i,t,r){var L,k,E,R,M;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=Id(),g=Nd(),f=s.defaultQueryOptions(i);(k=(L=s.getDefaultOptions().queries)==null?void 0:L._experimental_beforeQuery)==null||k.call(L,f),process.env.NODE_ENV!=="production"&&(f.queryFn||console.error(`[${f.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`)),f._optimisticResults=l?"isRestoring":"optimistic",zd(f),Bd(f,g),jd(g);const c=!s.getQueryCache().get(f.queryHash),[b]=Et.useState(()=>new t(s,f)),C=b.getOptimisticResult(f),O=!l&&i.subscribed!==!1;if(Et.useSyncExternalStore(Et.useCallback($=>{const Q=O?b.subscribe(To.batchCalls($)):ra;return b.updateResult(),Q},[b,O]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),Et.useEffect(()=>{b.setOptions(f)},[f,b]),Wd(f,C))throw Al(f,b,g);if(Ud({result:C,errorResetBoundary:g,throwOnError:f.throwOnError,query:s.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw C.error;if((R=(E=s.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||R.call(E,f,C),f.experimental_prefetchInRender&&!Ri&&Fd(C,l)){const $=c?Al(f,b,g):(M=s.getQueryCache().get(f.queryHash))==null?void 0:M.promise;$==null||$.catch(ra).finally(()=>{b.updateResult()})}return f.notifyOnChangeProps?C:b.trackResult(C)}function Ol(i,t){return Yd(i,Td)}function ia(i,t){const r=bl(),[s]=Et.useState(()=>new Md(r,i));Et.useEffect(()=>{s.setOptions(i)},[s,i]);const l=Et.useSyncExternalStore(Et.useCallback(f=>s.subscribe(To.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),g=Et.useCallback((f,c)=>{s.mutate(f,c).catch(ra)},[s]);if(l.error&&Cl(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:g,mutateAsync:l.mutate}}var Tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oa(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var t=i.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.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 sa={exports:{}},Ii={};/**
42
+ <%s key={someKey} {...props} />`,z,J,he,J),w[J+z]=!0)}if(J=null,D!==void 0&&(r(D),J=""+D),v(m)&&(r(m.key),J=""+m.key),"key"in m){D={};for(var De in m)De!=="key"&&(D[De]=m[De])}else D=m;return J&&c(D,typeof h=="function"?h.displayName||h.name||"Unknown":h),C(h,J,ae,Z,l(),D,fe,_e)}function R(h){typeof h=="object"&&h!==null&&h.$$typeof===E&&h._store&&(h._store.validated=1)}var N=ye,E=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),re=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Se=Array.isArray,Y=console.createTask?console.createTask:function(){return null};N={"react-stack-bottom-frame":function(h){return h()}};var L,A={},g=N["react-stack-bottom-frame"].bind(N,d)(),p=Y(s(d)),w={};ki.Fragment=$,ki.jsx=function(h,m,D,z,Z){var ae=1e4>re.recentlyCreatedOwnerStacks++;return O(h,m,D,!1,z,Z,ae?Error("react-stack-top-frame"):g,ae?Y(s(h)):p)},ki.jsxs=function(h,m,D,z,Z){var ae=1e4>re.recentlyCreatedOwnerStacks++;return O(h,m,D,!0,z,Z,ae?Error("react-stack-top-frame"):g,ae?Y(s(h)):p)}}()),ki}var vl;function Rd(){return vl||(vl=1,process.env.NODE_ENV==="production"?Oo.exports=Md():Oo.exports=Ed()),Oo.exports}var T=Rd(),yl=Tt.createContext(void 0),_l=i=>{const n=Tt.useContext(yl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},wl=({client:i,children:n})=>(Tt.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),T.jsx(yl.Provider,{value:i,children:n})),bl=Tt.createContext(!1),Ld=()=>Tt.useContext(bl);bl.Provider;function kd(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Id=Tt.createContext(kd()),Pd=()=>Tt.useContext(Id);function xl(i,n){return typeof i=="function"?i(...n):!!i}function ea(){}var Nd=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},$d=i=>{Tt.useEffect(()=>{i.clearReset()},[i])},Bd=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||xl(r,[i.error,s])),jd=i=>{const n=i.staleTime;i.suspense&&(i.staleTime=typeof n=="function"?(...r)=>Math.max(n(...r),1e3):Math.max(n??1e3,1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},Yd=(i,n)=>i.isLoading&&i.isFetching&&!n,Ud=(i,n)=>(i==null?void 0:i.suspense)&&n.isPending,Sl=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function Fd(i,n,r){var R,N,E,I,$;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=_l(),l=Ld(),d=Pd(),v=s.defaultQueryOptions(i);(N=(R=s.getDefaultOptions().queries)==null?void 0:R._experimental_beforeQuery)==null||N.call(R,v),process.env.NODE_ENV!=="production"&&(v.queryFn||console.error(`[${v.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),v._optimisticResults=l?"isRestoring":"optimistic",jd(v),Nd(v,d),$d(d);const c=!s.getQueryCache().get(v.queryHash),[x]=Tt.useState(()=>new n(s,v)),C=x.getOptimisticResult(v),O=!l&&i.subscribed!==!1;if(Tt.useSyncExternalStore(Tt.useCallback(j=>{const X=O?x.subscribe(Do.batchCalls(j)):ea;return x.updateResult(),X},[x,O]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),Tt.useEffect(()=>{x.setOptions(v)},[v,x]),Ud(v,C))throw Sl(v,x,d);if(Bd({result:C,errorResetBoundary:d,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&&!Ri&&Yd(C,l)){const j=c?Sl(v,x,d):($=s.getQueryCache().get(v.queryHash))==null?void 0:$.promise;j==null||j.catch(ea).finally(()=>{x.updateResult()})}return v.notifyOnChangeProps?C:x.trackResult(C)}function Cl(i,n){return Fd(i,Ad)}function ta(i,n){const r=_l(),[s]=Tt.useState(()=>new Td(r,i));Tt.useEffect(()=>{s.setOptions(i)},[s,i]);const l=Tt.useSyncExternalStore(Tt.useCallback(v=>s.subscribe(Do.batchCalls(v)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d=Tt.useCallback((v,c)=>{s.mutate(v,c).catch(ea)},[s]);if(l.error&&xl(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:d,mutateAsync:l.mutate}}var Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function na(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 ra={exports:{}},Ii={};/**
43
43
  * @license React
44
44
  * react-jsx-runtime.production.js
45
45
  *
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  *
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
- */var Dl;function qd(){if(Dl)return Ii;Dl=1;var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,l,g){var f=null;if(g!==void 0&&(f=""+g),l.key!==void 0&&(f=""+l.key),"key"in l){g={};for(var c in l)c!=="key"&&(g[c]=l[c])}else g=l;return l=g.ref,{$$typeof:i,type:s,key:f,ref:l!==void 0?l:null,props:g}}return Ii.Fragment=t,Ii.jsx=r,Ii.jsxs=r,Ii}var Eo={};/**
50
+ */var Dl;function Wd(){if(Dl)return Ii;Dl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,d){var v=null;if(d!==void 0&&(v=""+d),l.key!==void 0&&(v=""+l.key),"key"in l){d={};for(var c in l)c!=="key"&&(d[c]=l[c])}else d=l;return l=d.ref,{$$typeof:i,type:s,key:v,ref:l!==void 0?l:null,props:d}}return Ii.Fragment=n,Ii.jsx=r,Ii.jsxs=r,Ii}var To={};/**
51
51
  * @license React
52
52
  * react-jsx-runtime.development.js
53
53
  *
@@ -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 El;function Hd(){return El||(El=1,process.env.NODE_ENV!=="production"&&function(){function i(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===de?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case M:return"Fragment";case Q:return"Profiler";case $:return"StrictMode";case q:return"Suspense";case ue:return"SuspenseList";case fe:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case R:return"Portal";case J:return(d.displayName||"Context")+".Provider";case X:return(d._context.displayName||"Context")+".Consumer";case se:var m=d.render;return d=d.displayName,d||(d=m.displayName||m.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case ne:return m=d.displayName||null,m!==null?m:i(d.type)||"Memo";case ee:m=d._payload,d=d._init;try{return i(d(m))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var m=!1}catch{m=!0}if(m){m=console;var T=m.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return T.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(d)}}function s(d){if(d===M)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===ee)return"<...>";try{var m=i(d);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var d=ie.A;return d===null?null:d.getOwner()}function g(){return Error("react-stack-top-frame")}function f(d){if(Ae.call(d,"key")){var m=Object.getOwnPropertyDescriptor(d,"key").get;if(m&&m.isReactWarning)return!1}return d.key!==void 0}function c(d,m){function T(){I||(I=!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))}T.isReactWarning=!0,Object.defineProperty(d,"key",{get:T,configurable:!0})}function b(){var d=i(this.type);return A[d]||(A[d]=!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.")),d=this.props.ref,d!==void 0?d:null}function C(d,m,T,H,Z,le,pe,we){return T=le.ref,d={$$typeof:E,type:d,key:m,props:le,_owner:Z},(T!==void 0?T:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:b}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function O(d,m,T,H,Z,le,pe,we){var re=m.children;if(re!==void 0)if(H)if(Ce(re)){for(H=0;H<re.length;H++)L(re[H]);Object.freeze&&Object.freeze(re)}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(re);if(Ae.call(m,"key")){re=i(d);var ce=Object.keys(m).filter(function(be){return be!=="key"});H=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",_[re+H]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
58
+ */var Ol;function zd(){return Ol||(Ol=1,process.env.NODE_ENV!=="production"&&function(){function i(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===pe?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case $:return"Fragment";case X:return"Profiler";case j:return"StrictMode";case V: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 ne:return(h.displayName||"Context")+".Provider";case te: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 oe:return m=h.displayName||null,m!==null?m:i(h.type)||"Memo";case ee: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 D=m.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),n(h)}}function s(h){if(h===$)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===ee)return"<...>";try{var m=i(h);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var h=re.A;return h===null?null:h.getOwner()}function d(){return Error("react-stack-top-frame")}function v(h){if(Ae.call(h,"key")){var m=Object.getOwnPropertyDescriptor(h,"key").get;if(m&&m.isReactWarning)return!1}return h.key!==void 0}function c(h,m){function D(){L||(L=!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))}D.isReactWarning=!0,Object.defineProperty(h,"key",{get:D,configurable:!0})}function x(){var h=i(this.type);return A[h]||(A[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 C(h,m,D,z,Z,ae,fe,_e){return D=ae.ref,h={$$typeof:E,type:h,key:m,props:ae,_owner:Z},(D!==void 0?D:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:x}):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:fe}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function O(h,m,D,z,Z,ae,fe,_e){var J=m.children;if(J!==void 0)if(z)if(Se(J)){for(z=0;z<J.length;z++)R(J[z]);Object.freeze&&Object.freeze(J)}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 R(J);if(Ae.call(m,"key")){J=i(h);var he=Object.keys(m).filter(function(be){return be!=="key"});z=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",w[J+z]||(he=0<he.length?"{"+he.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} />`,H,re,ce,re),_[re+H]=!0)}if(re=null,T!==void 0&&(r(T),re=""+T),f(m)&&(r(m.key),re=""+m.key),"key"in m){T={};for(var Oe in m)Oe!=="key"&&(T[Oe]=m[Oe])}else T=m;return re&&c(T,typeof d=="function"?d.displayName||d.name||"Unknown":d),C(d,re,le,Z,l(),T,pe,we)}function L(d){typeof d=="object"&&d!==null&&d.$$typeof===E&&d._store&&(d._store.validated=1)}var k=me,E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),J=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),de=Symbol.for("react.client.reference"),ie=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Ce=Array.isArray,U=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(d){return d()}};var I,A={},v=k["react-stack-bottom-frame"].bind(k,g)(),p=U(s(g)),_={};Eo.Fragment=M,Eo.jsx=function(d,m,T,H,Z){var le=1e4>ie.recentlyCreatedOwnerStacks++;return O(d,m,T,!1,H,Z,le?Error("react-stack-top-frame"):v,le?U(s(d)):p)},Eo.jsxs=function(d,m,T,H,Z){var le=1e4>ie.recentlyCreatedOwnerStacks++;return O(d,m,T,!0,H,Z,le?Error("react-stack-top-frame"):v,le?U(s(d)):p)}}()),Eo}var Ml;function Gd(){return Ml||(Ml=1,process.env.NODE_ENV==="production"?sa.exports=qd():sa.exports=Hd()),sa.exports}Gd();var aa={exports:{}},ua={};/**
63
+ <%s key={someKey} {...props} />`,z,J,he,J),w[J+z]=!0)}if(J=null,D!==void 0&&(r(D),J=""+D),v(m)&&(r(m.key),J=""+m.key),"key"in m){D={};for(var De in m)De!=="key"&&(D[De]=m[De])}else D=m;return J&&c(D,typeof h=="function"?h.displayName||h.name||"Unknown":h),C(h,J,ae,Z,l(),D,fe,_e)}function R(h){typeof h=="object"&&h!==null&&h.$$typeof===E&&h._store&&(h._store.validated=1)}var N=ye,E=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),re=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Se=Array.isArray,Y=console.createTask?console.createTask:function(){return null};N={"react-stack-bottom-frame":function(h){return h()}};var L,A={},g=N["react-stack-bottom-frame"].bind(N,d)(),p=Y(s(d)),w={};To.Fragment=$,To.jsx=function(h,m,D,z,Z){var ae=1e4>re.recentlyCreatedOwnerStacks++;return O(h,m,D,!1,z,Z,ae?Error("react-stack-top-frame"):g,ae?Y(s(h)):p)},To.jsxs=function(h,m,D,z,Z){var ae=1e4>re.recentlyCreatedOwnerStacks++;return O(h,m,D,!0,z,Z,ae?Error("react-stack-top-frame"):g,ae?Y(s(h)):p)}}()),To}var Tl;function qd(){return Tl||(Tl=1,process.env.NODE_ENV==="production"?ra.exports=Wd():ra.exports=zd()),ra.exports}qd();var ia={exports:{}},oa={};/**
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 Rl;function Vd(){if(Rl)return ua;Rl=1;var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ua.c=function(t){return i.H.useMemoCache(t)},ua}var Ll={};/**
71
+ */var Ml;function Hd(){if(Ml)return oa;Ml=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return oa.c=function(n){return i.H.useMemoCache(n)},oa}var El={};/**
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 kl;function Zd(){return kl||(kl=1,process.env.NODE_ENV!=="production"&&function(){var i=me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Ll.c=function(t){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 Rl;function Gd(){return Rl||(Rl=1,process.env.NODE_ENV!=="production"&&function(){var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;El.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(t)}}()),Ll}var Il;function Kd(){return Il||(Il=1,process.env.NODE_ENV==="production"?aa.exports=Vd():aa.exports=Zd()),aa.exports}Kd();/*!
83
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),El}var Ll;function Vd(){return Ll||(Ll=1,process.env.NODE_ENV==="production"?ia.exports=Hd():ia.exports=Gd()),ia.exports}Vd();/*!
84
84
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
85
85
  * SPDX-License-Identifier: Apache-2.0
86
- */var Pl={},Pi={},$l;function Qd(){if($l)return Pi;$l=1,Pi.byteLength=c,Pi.toByteArray=C,Pi.fromByteArray=k;for(var i=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,g=s.length;l<g;++l)i[l]=s[l],t[s.charCodeAt(l)]=l;t[45]=62,t[95]=63;function f(E){var R=E.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=E.indexOf("=");M===-1&&(M=R);var $=M===R?0:4-M%4;return[M,$]}function c(E){var R=f(E),M=R[0],$=R[1];return(M+$)*3/4-$}function b(E,R,M){return(R+M)*3/4-M}function C(E){var R,M=f(E),$=M[0],Q=M[1],X=new r(b(E,$,Q)),J=0,se=Q>0?$-4:$,q;for(q=0;q<se;q+=4)R=t[E.charCodeAt(q)]<<18|t[E.charCodeAt(q+1)]<<12|t[E.charCodeAt(q+2)]<<6|t[E.charCodeAt(q+3)],X[J++]=R>>16&255,X[J++]=R>>8&255,X[J++]=R&255;return Q===2&&(R=t[E.charCodeAt(q)]<<2|t[E.charCodeAt(q+1)]>>4,X[J++]=R&255),Q===1&&(R=t[E.charCodeAt(q)]<<10|t[E.charCodeAt(q+1)]<<4|t[E.charCodeAt(q+2)]>>2,X[J++]=R>>8&255,X[J++]=R&255),X}function O(E){return i[E>>18&63]+i[E>>12&63]+i[E>>6&63]+i[E&63]}function L(E,R,M){for(var $,Q=[],X=R;X<M;X+=3)$=(E[X]<<16&16711680)+(E[X+1]<<8&65280)+(E[X+2]&255),Q.push(O($));return Q.join("")}function k(E){for(var R,M=E.length,$=M%3,Q=[],X=16383,J=0,se=M-$;J<se;J+=X)Q.push(L(E,J,J+X>se?se:J+X));return $===1?(R=E[M-1],Q.push(i[R>>2]+i[R<<4&63]+"==")):$===2&&(R=(E[M-2]<<8)+E[M-1],Q.push(i[R>>10]+i[R>>4&63]+i[R<<2&63]+"=")),Q.join("")}return Pi}var la={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Nl;function Jd(){return Nl||(Nl=1,la.read=function(i,t,r,s,l){var g,f,c=l*8-s-1,b=(1<<c)-1,C=b>>1,O=-7,L=r?l-1:0,k=r?-1:1,E=i[t+L];for(L+=k,g=E&(1<<-O)-1,E>>=-O,O+=c;O>0;g=g*256+i[t+L],L+=k,O-=8);for(f=g&(1<<-O)-1,g>>=-O,O+=s;O>0;f=f*256+i[t+L],L+=k,O-=8);if(g===0)g=1-C;else{if(g===b)return f?NaN:(E?-1:1)*(1/0);f=f+Math.pow(2,s),g=g-C}return(E?-1:1)*f*Math.pow(2,g-s)},la.write=function(i,t,r,s,l,g){var f,c,b,C=g*8-l-1,O=(1<<C)-1,L=O>>1,k=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=s?0:g-1,R=s?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,f=O):(f=Math.floor(Math.log(t)/Math.LN2),t*(b=Math.pow(2,-f))<1&&(f--,b*=2),f+L>=1?t+=k/b:t+=k*Math.pow(2,1-L),t*b>=2&&(f++,b/=2),f+L>=O?(c=0,f=O):f+L>=1?(c=(t*b-1)*Math.pow(2,l),f=f+L):(c=t*Math.pow(2,L-1)*Math.pow(2,l),f=0));l>=8;i[r+E]=c&255,E+=R,c/=256,l-=8);for(f=f<<l|c,C+=l;C>0;i[r+E]=f&255,E+=R,f/=256,C-=8);i[r+E-R]|=M*128}),la}var ca,Bl;function Xd(){if(Bl)return ca;Bl=1;var i={}.toString;return ca=Array.isArray||function(t){return i.call(t)=="[object Array]"},ca}/*!
86
+ */var kl={},Pi={},Il;function Zd(){if(Il)return Pi;Il=1,Pi.byteLength=c,Pi.toByteArray=C,Pi.fromByteArray=N;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,d=s.length;l<d;++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 $=E.indexOf("=");$===-1&&($=I);var j=$===I?0:4-$%4;return[$,j]}function c(E){var I=v(E),$=I[0],j=I[1];return($+j)*3/4-j}function x(E,I,$){return(I+$)*3/4-$}function C(E){var I,$=v(E),j=$[0],X=$[1],te=new r(x(E,j,X)),ne=0,ue=X>0?j-4:j,V;for(V=0;V<ue;V+=4)I=n[E.charCodeAt(V)]<<18|n[E.charCodeAt(V+1)]<<12|n[E.charCodeAt(V+2)]<<6|n[E.charCodeAt(V+3)],te[ne++]=I>>16&255,te[ne++]=I>>8&255,te[ne++]=I&255;return X===2&&(I=n[E.charCodeAt(V)]<<2|n[E.charCodeAt(V+1)]>>4,te[ne++]=I&255),X===1&&(I=n[E.charCodeAt(V)]<<10|n[E.charCodeAt(V+1)]<<4|n[E.charCodeAt(V+2)]>>2,te[ne++]=I>>8&255,te[ne++]=I&255),te}function O(E){return i[E>>18&63]+i[E>>12&63]+i[E>>6&63]+i[E&63]}function R(E,I,$){for(var j,X=[],te=I;te<$;te+=3)j=(E[te]<<16&16711680)+(E[te+1]<<8&65280)+(E[te+2]&255),X.push(O(j));return X.join("")}function N(E){for(var I,$=E.length,j=$%3,X=[],te=16383,ne=0,ue=$-j;ne<ue;ne+=te)X.push(R(E,ne,ne+te>ue?ue:ne+te));return j===1?(I=E[$-1],X.push(i[I>>2]+i[I<<4&63]+"==")):j===2&&(I=(E[$-2]<<8)+E[$-1],X.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),X.join("")}return Pi}var sa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Pl;function Kd(){return Pl||(Pl=1,sa.read=function(i,n,r,s,l){var d,v,c=l*8-s-1,x=(1<<c)-1,C=x>>1,O=-7,R=r?l-1:0,N=r?-1:1,E=i[n+R];for(R+=N,d=E&(1<<-O)-1,E>>=-O,O+=c;O>0;d=d*256+i[n+R],R+=N,O-=8);for(v=d&(1<<-O)-1,d>>=-O,O+=s;O>0;v=v*256+i[n+R],R+=N,O-=8);if(d===0)d=1-C;else{if(d===x)return v?NaN:(E?-1:1)*(1/0);v=v+Math.pow(2,s),d=d-C}return(E?-1:1)*v*Math.pow(2,d-s)},sa.write=function(i,n,r,s,l,d){var v,c,x,C=d*8-l-1,O=(1<<C)-1,R=O>>1,N=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=s?0:d-1,I=s?1:-1,$=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=O):(v=Math.floor(Math.log(n)/Math.LN2),n*(x=Math.pow(2,-v))<1&&(v--,x*=2),v+R>=1?n+=N/x:n+=N*Math.pow(2,1-R),n*x>=2&&(v++,x/=2),v+R>=O?(c=0,v=O):v+R>=1?(c=(n*x-1)*Math.pow(2,l),v=v+R):(c=n*Math.pow(2,R-1)*Math.pow(2,l),v=0));l>=8;i[r+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]|=$*128}),sa}var aa,Nl;function Qd(){if(Nl)return aa;Nl=1;var i={}.toString;return aa=Array.isArray||function(n){return i.call(n)=="[object Array]"},aa}/*!
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 jl;function ep(){return jl||(jl=1,function(i){var t=Qd(),r=Jd(),s=Xd();i.Buffer=c,i.SlowBuffer=Q,i.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=Tl.TYPED_ARRAY_SUPPORT!==void 0?Tl.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=g();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 g(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(u,h){if(g()<h)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(h),u.__proto__=c.prototype):(u===null&&(u=new c(h)),u.length=h),u}function c(u,h,w){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(u,h,w);if(typeof u=="number"){if(typeof h=="string")throw new Error("If encoding is specified then the first argument must be a string");return L(this,u)}return b(this,u,h,w)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function b(u,h,w,N){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&h instanceof ArrayBuffer?R(u,h,w,N):typeof h=="string"?k(u,h,w):M(u,h)}c.from=function(u,h,w){return b(null,u,h,w)},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 O(u,h,w,N){return C(h),h<=0?f(u,h):w!==void 0?typeof N=="string"?f(u,h).fill(w,N):f(u,h).fill(w):f(u,h)}c.alloc=function(u,h,w){return O(null,u,h,w)};function L(u,h){if(C(h),u=f(u,h<0?0:$(h)|0),!c.TYPED_ARRAY_SUPPORT)for(var w=0;w<h;++w)u[w]=0;return u}c.allocUnsafe=function(u){return L(null,u)},c.allocUnsafeSlow=function(u){return L(null,u)};function k(u,h,w){if((typeof w!="string"||w==="")&&(w="utf8"),!c.isEncoding(w))throw new TypeError('"encoding" must be a valid string encoding');var N=X(h,w)|0;u=f(u,N);var z=u.write(h,w);return z!==N&&(u=u.slice(0,z)),u}function E(u,h){var w=h.length<0?0:$(h.length)|0;u=f(u,w);for(var N=0;N<w;N+=1)u[N]=h[N]&255;return u}function R(u,h,w,N){if(h.byteLength,w<0||h.byteLength<w)throw new RangeError("'offset' is out of bounds");if(h.byteLength<w+(N||0))throw new RangeError("'length' is out of bounds");return w===void 0&&N===void 0?h=new Uint8Array(h):N===void 0?h=new Uint8Array(h,w):h=new Uint8Array(h,w,N),c.TYPED_ARRAY_SUPPORT?(u=h,u.__proto__=c.prototype):u=E(u,h),u}function M(u,h){if(c.isBuffer(h)){var w=$(h.length)|0;return u=f(u,w),u.length===0||h.copy(u,0,0,w),u}if(h){if(typeof ArrayBuffer<"u"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||Te(h.length)?f(u,0):E(u,h);if(h.type==="Buffer"&&s(h.data))return E(u,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function $(u){if(u>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return u|0}function Q(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,h){if(!c.isBuffer(u)||!c.isBuffer(h))throw new TypeError("Arguments must be Buffers");if(u===h)return 0;for(var w=u.length,N=h.length,z=0,te=Math.min(w,N);z<te;++z)if(u[z]!==h[z]){w=u[z],N=h[z];break}return w<N?-1:N<w?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,h){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);var w;if(h===void 0)for(h=0,w=0;w<u.length;++w)h+=u[w].length;var N=c.allocUnsafe(h),z=0;for(w=0;w<u.length;++w){var te=u[w];if(!c.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(N,z),z+=te.length}return N};function X(u,h){if(c.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var w=u.length;if(w===0)return 0;for(var N=!1;;)switch(h){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":case void 0:return B(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return K(u).length;default:if(N)return B(u).length;h=(""+h).toLowerCase(),N=!0}}c.byteLength=X;function J(u,h,w){var N=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,h>>>=0,w<=h))return"";for(u||(u="utf8");;)switch(u){case"hex":return _(this,h,w);case"utf8":case"utf-8":return U(this,h,w);case"ascii":return v(this,h,w);case"latin1":case"binary":return p(this,h,w);case"base64":return Ce(this,h,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,h,w);default:if(N)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),N=!0}}c.prototype._isBuffer=!0;function se(u,h,w){var N=u[h];u[h]=u[w],u[w]=N}c.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)se(this,h,h+1);return this},c.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)se(this,h,h+3),se(this,h+1,h+2);return this},c.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)se(this,h,h+7),se(this,h+1,h+6),se(this,h+2,h+5),se(this,h+3,h+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?U(this,0,u):J.apply(this,arguments)},c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){var u="",h=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,h).match(/.{2}/g).join(" "),this.length>h&&(u+=" ... ")),"<Buffer "+u+">"},c.prototype.compare=function(u,h,w,N,z){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(h===void 0&&(h=0),w===void 0&&(w=u?u.length:0),N===void 0&&(N=0),z===void 0&&(z=this.length),h<0||w>u.length||N<0||z>this.length)throw new RangeError("out of range index");if(N>=z&&h>=w)return 0;if(N>=z)return-1;if(h>=w)return 1;if(h>>>=0,w>>>=0,N>>>=0,z>>>=0,this===u)return 0;for(var te=z-N,xe=w-h,Ee=Math.min(te,xe),Re=this.slice(N,z),Se=u.slice(h,w),Le=0;Le<Ee;++Le)if(Re[Le]!==Se[Le]){te=Re[Le],xe=Se[Le];break}return te<xe?-1:xe<te?1:0};function q(u,h,w,N,z){if(u.length===0)return-1;if(typeof w=="string"?(N=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,isNaN(w)&&(w=z?0:u.length-1),w<0&&(w=u.length+w),w>=u.length){if(z)return-1;w=u.length-1}else if(w<0)if(z)w=0;else return-1;if(typeof h=="string"&&(h=c.from(h,N)),c.isBuffer(h))return h.length===0?-1:ue(u,h,w,N,z);if(typeof h=="number")return h=h&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(u,h,w):Uint8Array.prototype.lastIndexOf.call(u,h,w):ue(u,[h],w,N,z);throw new TypeError("val must be string, number or Buffer")}function ue(u,h,w,N,z){var te=1,xe=u.length,Ee=h.length;if(N!==void 0&&(N=String(N).toLowerCase(),N==="ucs2"||N==="ucs-2"||N==="utf16le"||N==="utf-16le")){if(u.length<2||h.length<2)return-1;te=2,xe/=2,Ee/=2,w/=2}function Re(Ke,He){return te===1?Ke[He]:Ke.readUInt16BE(He*te)}var Se;if(z){var Le=-1;for(Se=w;Se<xe;Se++)if(Re(u,Se)===Re(h,Le===-1?0:Se-Le)){if(Le===-1&&(Le=Se),Se-Le+1===Ee)return Le*te}else Le!==-1&&(Se-=Se-Le),Le=-1}else for(w+Ee>xe&&(w=xe-Ee),Se=w;Se>=0;Se--){for(var $e=!0,ke=0;ke<Ee;ke++)if(Re(u,Se+ke)!==Re(h,ke)){$e=!1;break}if($e)return Se}return-1}c.prototype.includes=function(u,h,w){return this.indexOf(u,h,w)!==-1},c.prototype.indexOf=function(u,h,w){return q(this,u,h,w,!0)},c.prototype.lastIndexOf=function(u,h,w){return q(this,u,h,w,!1)};function ne(u,h,w,N){w=Number(w)||0;var z=u.length-w;N?(N=Number(N),N>z&&(N=z)):N=z;var te=h.length;if(te%2!==0)throw new TypeError("Invalid hex string");N>te/2&&(N=te/2);for(var xe=0;xe<N;++xe){var Ee=parseInt(h.substr(xe*2,2),16);if(isNaN(Ee))return xe;u[w+xe]=Ee}return xe}function ee(u,h,w,N){return ae(B(h,u.length-w),u,w,N)}function fe(u,h,w,N){return ae(Y(h),u,w,N)}function de(u,h,w,N){return fe(u,h,w,N)}function ie(u,h,w,N){return ae(K(h),u,w,N)}function Ae(u,h,w,N){return ae(W(h,u.length-w),u,w,N)}c.prototype.write=function(u,h,w,N){if(h===void 0)N="utf8",w=this.length,h=0;else if(w===void 0&&typeof h=="string")N=h,w=this.length,h=0;else if(isFinite(h))h=h|0,isFinite(w)?(w=w|0,N===void 0&&(N="utf8")):(N=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var z=this.length-h;if((w===void 0||w>z)&&(w=z),u.length>0&&(w<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var te=!1;;)switch(N){case"hex":return ne(this,u,h,w);case"utf8":case"utf-8":return ee(this,u,h,w);case"ascii":return fe(this,u,h,w);case"latin1":case"binary":return de(this,u,h,w);case"base64":return ie(this,u,h,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,u,h,w);default:if(te)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),te=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ce(u,h,w){return h===0&&w===u.length?t.fromByteArray(u):t.fromByteArray(u.slice(h,w))}function U(u,h,w){w=Math.min(u.length,w);for(var N=[],z=h;z<w;){var te=u[z],xe=null,Ee=te>239?4:te>223?3:te>191?2:1;if(z+Ee<=w){var Re,Se,Le,$e;switch(Ee){case 1:te<128&&(xe=te);break;case 2:Re=u[z+1],(Re&192)===128&&($e=(te&31)<<6|Re&63,$e>127&&(xe=$e));break;case 3:Re=u[z+1],Se=u[z+2],(Re&192)===128&&(Se&192)===128&&($e=(te&15)<<12|(Re&63)<<6|Se&63,$e>2047&&($e<55296||$e>57343)&&(xe=$e));break;case 4:Re=u[z+1],Se=u[z+2],Le=u[z+3],(Re&192)===128&&(Se&192)===128&&(Le&192)===128&&($e=(te&15)<<18|(Re&63)<<12|(Se&63)<<6|Le&63,$e>65535&&$e<1114112&&(xe=$e))}}xe===null?(xe=65533,Ee=1):xe>65535&&(xe-=65536,N.push(xe>>>10&1023|55296),xe=56320|xe&1023),N.push(xe),z+=Ee}return A(N)}var I=4096;function A(u){var h=u.length;if(h<=I)return String.fromCharCode.apply(String,u);for(var w="",N=0;N<h;)w+=String.fromCharCode.apply(String,u.slice(N,N+=I));return w}function v(u,h,w){var N="";w=Math.min(u.length,w);for(var z=h;z<w;++z)N+=String.fromCharCode(u[z]&127);return N}function p(u,h,w){var N="";w=Math.min(u.length,w);for(var z=h;z<w;++z)N+=String.fromCharCode(u[z]);return N}function _(u,h,w){var N=u.length;(!h||h<0)&&(h=0),(!w||w<0||w>N)&&(w=N);for(var z="",te=h;te<w;++te)z+=be(u[te]);return z}function d(u,h,w){for(var N=u.slice(h,w),z="",te=0;te<N.length;te+=2)z+=String.fromCharCode(N[te]+N[te+1]*256);return z}c.prototype.slice=function(u,h){var w=this.length;u=~~u,h=h===void 0?w:~~h,u<0?(u+=w,u<0&&(u=0)):u>w&&(u=w),h<0?(h+=w,h<0&&(h=0)):h>w&&(h=w),h<u&&(h=u);var N;if(c.TYPED_ARRAY_SUPPORT)N=this.subarray(u,h),N.__proto__=c.prototype;else{var z=h-u;N=new c(z,void 0);for(var te=0;te<z;++te)N[te]=this[te+u]}return N};function m(u,h,w){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+h>w)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var N=this[u],z=1,te=0;++te<h&&(z*=256);)N+=this[u+te]*z;return N},c.prototype.readUIntBE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var N=this[u+--h],z=1;h>0&&(z*=256);)N+=this[u+--h]*z;return N},c.prototype.readUInt8=function(u,h){return h||m(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,h){return h||m(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,h){return h||m(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,h){return h||m(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUInt32BE=function(u,h){return h||m(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readIntLE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var N=this[u],z=1,te=0;++te<h&&(z*=256);)N+=this[u+te]*z;return z*=128,N>=z&&(N-=Math.pow(2,8*h)),N},c.prototype.readIntBE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var N=h,z=1,te=this[u+--N];N>0&&(z*=256);)te+=this[u+--N]*z;return z*=128,te>=z&&(te-=Math.pow(2,8*h)),te},c.prototype.readInt8=function(u,h){return h||m(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,h){h||m(u,2,this.length);var w=this[u]|this[u+1]<<8;return w&32768?w|4294901760:w},c.prototype.readInt16BE=function(u,h){h||m(u,2,this.length);var w=this[u+1]|this[u]<<8;return w&32768?w|4294901760:w},c.prototype.readInt32LE=function(u,h){return h||m(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,h){return h||m(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readFloatLE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!1,52,8)};function T(u,h,w,N,z,te){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>z||h<te)throw new RangeError('"value" argument is out of bounds');if(w+N>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,h,w,N){if(u=+u,h=h|0,w=w|0,!N){var z=Math.pow(2,8*w)-1;T(this,u,h,w,z,0)}var te=1,xe=0;for(this[h]=u&255;++xe<w&&(te*=256);)this[h+xe]=u/te&255;return h+w},c.prototype.writeUIntBE=function(u,h,w,N){if(u=+u,h=h|0,w=w|0,!N){var z=Math.pow(2,8*w)-1;T(this,u,h,w,z,0)}var te=w-1,xe=1;for(this[h+te]=u&255;--te>=0&&(xe*=256);)this[h+te]=u/xe&255;return h+w},c.prototype.writeUInt8=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[h]=u&255,h+1};function H(u,h,w,N){h<0&&(h=65535+h+1);for(var z=0,te=Math.min(u.length-w,2);z<te;++z)u[w+z]=(h&255<<8*(N?z:1-z))>>>(N?z:1-z)*8}c.prototype.writeUInt16LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):H(this,u,h,!0),h+2},c.prototype.writeUInt16BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):H(this,u,h,!1),h+2};function Z(u,h,w,N){h<0&&(h=4294967295+h+1);for(var z=0,te=Math.min(u.length-w,4);z<te;++z)u[w+z]=h>>>(N?z:3-z)*8&255}c.prototype.writeUInt32LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255):Z(this,u,h,!0),h+4},c.prototype.writeUInt32BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):Z(this,u,h,!1),h+4},c.prototype.writeIntLE=function(u,h,w,N){if(u=+u,h=h|0,!N){var z=Math.pow(2,8*w-1);T(this,u,h,w,z-1,-z)}var te=0,xe=1,Ee=0;for(this[h]=u&255;++te<w&&(xe*=256);)u<0&&Ee===0&&this[h+te-1]!==0&&(Ee=1),this[h+te]=(u/xe>>0)-Ee&255;return h+w},c.prototype.writeIntBE=function(u,h,w,N){if(u=+u,h=h|0,!N){var z=Math.pow(2,8*w-1);T(this,u,h,w,z-1,-z)}var te=w-1,xe=1,Ee=0;for(this[h+te]=u&255;--te>=0&&(xe*=256);)u<0&&Ee===0&&this[h+te+1]!==0&&(Ee=1),this[h+te]=(u/xe>>0)-Ee&255;return h+w},c.prototype.writeInt8=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,1,127,-128),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[h]=u&255,h+1},c.prototype.writeInt16LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):H(this,u,h,!0),h+2},c.prototype.writeInt16BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):H(this,u,h,!1),h+2},c.prototype.writeInt32LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24):Z(this,u,h,!0),h+4},c.prototype.writeInt32BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):Z(this,u,h,!1),h+4};function le(u,h,w,N,z,te){if(w+N>u.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function pe(u,h,w,N,z){return z||le(u,h,w,4),r.write(u,h,w,N,23,4),w+4}c.prototype.writeFloatLE=function(u,h,w){return pe(this,u,h,!0,w)},c.prototype.writeFloatBE=function(u,h,w){return pe(this,u,h,!1,w)};function we(u,h,w,N,z){return z||le(u,h,w,8),r.write(u,h,w,N,52,8),w+8}c.prototype.writeDoubleLE=function(u,h,w){return we(this,u,h,!0,w)},c.prototype.writeDoubleBE=function(u,h,w){return we(this,u,h,!1,w)},c.prototype.copy=function(u,h,w,N){if(w||(w=0),!N&&N!==0&&(N=this.length),h>=u.length&&(h=u.length),h||(h=0),N>0&&N<w&&(N=w),N===w||u.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("sourceStart out of bounds");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),u.length-h<N-w&&(N=u.length-h+w);var z=N-w,te;if(this===u&&w<h&&h<N)for(te=z-1;te>=0;--te)u[te+h]=this[te+w];else if(z<1e3||!c.TYPED_ARRAY_SUPPORT)for(te=0;te<z;++te)u[te+h]=this[te+w];else Uint8Array.prototype.set.call(u,this.subarray(w,w+z),h);return z},c.prototype.fill=function(u,h,w,N){if(typeof u=="string"){if(typeof h=="string"?(N=h,h=0,w=this.length):typeof w=="string"&&(N=w,w=this.length),u.length===1){var z=u.charCodeAt(0);z<256&&(u=z)}if(N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!c.isEncoding(N))throw new TypeError("Unknown encoding: "+N)}else typeof u=="number"&&(u=u&255);if(h<0||this.length<h||this.length<w)throw new RangeError("Out of range index");if(w<=h)return this;h=h>>>0,w=w===void 0?this.length:w>>>0,u||(u=0);var te;if(typeof u=="number")for(te=h;te<w;++te)this[te]=u;else{var xe=c.isBuffer(u)?u:B(new c(u,N).toString()),Ee=xe.length;for(te=0;te<w-h;++te)this[te+h]=xe[te%Ee]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function ce(u){if(u=Oe(u).replace(re,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Oe(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function be(u){return u<16?"0"+u.toString(16):u.toString(16)}function B(u,h){h=h||1/0;for(var w,N=u.length,z=null,te=[],xe=0;xe<N;++xe){if(w=u.charCodeAt(xe),w>55295&&w<57344){if(!z){if(w>56319){(h-=3)>-1&&te.push(239,191,189);continue}else if(xe+1===N){(h-=3)>-1&&te.push(239,191,189);continue}z=w;continue}if(w<56320){(h-=3)>-1&&te.push(239,191,189),z=w;continue}w=(z-55296<<10|w-56320)+65536}else z&&(h-=3)>-1&&te.push(239,191,189);if(z=null,w<128){if((h-=1)<0)break;te.push(w)}else if(w<2048){if((h-=2)<0)break;te.push(w>>6|192,w&63|128)}else if(w<65536){if((h-=3)<0)break;te.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((h-=4)<0)break;te.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return te}function Y(u){for(var h=[],w=0;w<u.length;++w)h.push(u.charCodeAt(w)&255);return h}function W(u,h){for(var w,N,z,te=[],xe=0;xe<u.length&&!((h-=2)<0);++xe)w=u.charCodeAt(xe),N=w>>8,z=w%256,te.push(z),te.push(N);return te}function K(u){return t.toByteArray(ce(u))}function ae(u,h,w,N){for(var z=0;z<N&&!(z+w>=h.length||z>=u.length);++z)h[z+w]=u[z];return z}function Te(u){return u!==u}}(Pl)),Pl}ep();var Rr;if(typeof window<"u"&&window.crypto&&(Rr=window.crypto),!Rr&&typeof window<"u"&&window.msCrypto&&(Rr=window.msCrypto),!Rr&&typeof global<"u"&&global.crypto&&(Rr=global.crypto),!Rr&&typeof require=="function")try{Rr=require("crypto")}catch{}var Ul={};/*! *****************************************************************************
91
+ */var $l;function Jd(){return $l||($l=1,function(i){var n=Zd(),r=Kd(),s=Qd();i.Buffer=c,i.SlowBuffer=X,i.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=Al.TYPED_ARRAY_SUPPORT!==void 0?Al.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=d();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 d(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(u,f){if(d()<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 R(this,u)}return x(this,u,f,_)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function x(u,f,_,M){if(typeof f=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&f instanceof ArrayBuffer?I(u,f,_,M):typeof f=="string"?N(u,f,_):$(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 O(u,f,_,M){return C(f),f<=0?v(u,f):_!==void 0?typeof M=="string"?v(u,f).fill(_,M):v(u,f).fill(_):v(u,f)}c.alloc=function(u,f,_){return O(null,u,f,_)};function R(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 R(null,u)},c.allocUnsafeSlow=function(u){return R(null,u)};function N(u,f,_){if((typeof _!="string"||_==="")&&(_="utf8"),!c.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var M=te(f,_)|0;u=v(u,M);var W=u.write(f,_);return W!==M&&(u=u.slice(0,W)),u}function E(u,f){var _=f.length<0?0:j(f.length)|0;u=v(u,_);for(var M=0;M<_;M+=1)u[M]=f[M]&255;return u}function I(u,f,_,M){if(f.byteLength,_<0||f.byteLength<_)throw new RangeError("'offset' is out of bounds");if(f.byteLength<_+(M||0))throw new RangeError("'length' is out of bounds");return _===void 0&&M===void 0?f=new Uint8Array(f):M===void 0?f=new Uint8Array(f,_):f=new Uint8Array(f,_,M),c.TYPED_ARRAY_SUPPORT?(u=f,u.__proto__=c.prototype):u=E(u,f),u}function $(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"||Oe(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>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return u|0}function X(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,f){if(!c.isBuffer(u)||!c.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(u===f)return 0;for(var _=u.length,M=f.length,W=0,Q=Math.min(_,M);W<Q;++W)if(u[W]!==f[W]){_=u[W],M=f[W];break}return _<M?-1:M<_?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 M=c.allocUnsafe(f),W=0;for(_=0;_<u.length;++_){var Q=u[_];if(!c.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(M,W),W+=Q.length}return M};function te(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 M=!1;;)switch(f){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return P(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return K(u).length;default:if(M)return P(u).length;f=(""+f).toLowerCase(),M=!0}}c.byteLength=te;function ne(u,f,_){var M=!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 Y(this,f,_);case"ascii":return g(this,f,_);case"latin1":case"binary":return p(this,f,_);case"base64":return Se(this,f,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,f,_);default:if(M)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),M=!0}}c.prototype._isBuffer=!0;function ue(u,f,_){var M=u[f];u[f]=u[_],u[_]=M}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)ue(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)ue(this,f,f+3),ue(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)ue(this,f,f+7),ue(this,f+1,f+6),ue(this,f+2,f+5),ue(this,f+3,f+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?Y(this,0,u):ne.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,_,M,W){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(f===void 0&&(f=0),_===void 0&&(_=u?u.length:0),M===void 0&&(M=0),W===void 0&&(W=this.length),f<0||_>u.length||M<0||W>this.length)throw new RangeError("out of range index");if(M>=W&&f>=_)return 0;if(M>=W)return-1;if(f>=_)return 1;if(f>>>=0,_>>>=0,M>>>=0,W>>>=0,this===u)return 0;for(var Q=W-M,xe=_-f,Me=Math.min(Q,xe),Ie=this.slice(M,W),Ce=u.slice(f,_),ke=0;ke<Me;++ke)if(Ie[ke]!==Ce[ke]){Q=Ie[ke],xe=Ce[ke];break}return Q<xe?-1:xe<Q?1:0};function V(u,f,_,M,W){if(u.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=W?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(W)return-1;_=u.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof f=="string"&&(f=c.from(f,M)),c.isBuffer(f))return f.length===0?-1:ce(u,f,_,M,W);if(typeof f=="number")return f=f&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?W?Uint8Array.prototype.indexOf.call(u,f,_):Uint8Array.prototype.lastIndexOf.call(u,f,_):ce(u,[f],_,M,W);throw new TypeError("val must be string, number or Buffer")}function ce(u,f,_,M,W){var Q=1,xe=u.length,Me=f.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(u.length<2||f.length<2)return-1;Q=2,xe/=2,Me/=2,_/=2}function Ie(Ge,Je){return Q===1?Ge[Je]:Ge.readUInt16BE(Je*Q)}var Ce;if(W){var ke=-1;for(Ce=_;Ce<xe;Ce++)if(Ie(u,Ce)===Ie(f,ke===-1?0:Ce-ke)){if(ke===-1&&(ke=Ce),Ce-ke+1===Me)return ke*Q}else ke!==-1&&(Ce-=Ce-ke),ke=-1}else for(_+Me>xe&&(_=xe-Me),Ce=_;Ce>=0;Ce--){for(var Ne=!0,Re=0;Re<Me;Re++)if(Ie(u,Ce+Re)!==Ie(f,Re)){Ne=!1;break}if(Ne)return Ce}return-1}c.prototype.includes=function(u,f,_){return this.indexOf(u,f,_)!==-1},c.prototype.indexOf=function(u,f,_){return V(this,u,f,_,!0)},c.prototype.lastIndexOf=function(u,f,_){return V(this,u,f,_,!1)};function oe(u,f,_,M){_=Number(_)||0;var W=u.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;var Q=f.length;if(Q%2!==0)throw new TypeError("Invalid hex string");M>Q/2&&(M=Q/2);for(var xe=0;xe<M;++xe){var Me=parseInt(f.substr(xe*2,2),16);if(isNaN(Me))return xe;u[_+xe]=Me}return xe}function ee(u,f,_,M){return se(P(f,u.length-_),u,_,M)}function de(u,f,_,M){return se(q(f),u,_,M)}function pe(u,f,_,M){return de(u,f,_,M)}function re(u,f,_,M){return se(K(f),u,_,M)}function Ae(u,f,_,M){return se(F(f,u.length-_),u,_,M)}c.prototype.write=function(u,f,_,M){if(f===void 0)M="utf8",_=this.length,f=0;else if(_===void 0&&typeof f=="string")M=f,_=this.length,f=0;else if(isFinite(f))f=f|0,isFinite(_)?(_=_|0,M===void 0&&(M="utf8")):(M=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-f;if((_===void 0||_>W)&&(_=W),u.length>0&&(_<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var Q=!1;;)switch(M){case"hex":return oe(this,u,f,_);case"utf8":case"utf-8":return ee(this,u,f,_);case"ascii":return de(this,u,f,_);case"latin1":case"binary":return pe(this,u,f,_);case"base64":return re(this,u,f,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,u,f,_);default:if(Q)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),Q=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Se(u,f,_){return f===0&&_===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(f,_))}function Y(u,f,_){_=Math.min(u.length,_);for(var M=[],W=f;W<_;){var Q=u[W],xe=null,Me=Q>239?4:Q>223?3:Q>191?2:1;if(W+Me<=_){var Ie,Ce,ke,Ne;switch(Me){case 1:Q<128&&(xe=Q);break;case 2:Ie=u[W+1],(Ie&192)===128&&(Ne=(Q&31)<<6|Ie&63,Ne>127&&(xe=Ne));break;case 3:Ie=u[W+1],Ce=u[W+2],(Ie&192)===128&&(Ce&192)===128&&(Ne=(Q&15)<<12|(Ie&63)<<6|Ce&63,Ne>2047&&(Ne<55296||Ne>57343)&&(xe=Ne));break;case 4:Ie=u[W+1],Ce=u[W+2],ke=u[W+3],(Ie&192)===128&&(Ce&192)===128&&(ke&192)===128&&(Ne=(Q&15)<<18|(Ie&63)<<12|(Ce&63)<<6|ke&63,Ne>65535&&Ne<1114112&&(xe=Ne))}}xe===null?(xe=65533,Me=1):xe>65535&&(xe-=65536,M.push(xe>>>10&1023|55296),xe=56320|xe&1023),M.push(xe),W+=Me}return A(M)}var L=4096;function A(u){var f=u.length;if(f<=L)return String.fromCharCode.apply(String,u);for(var _="",M=0;M<f;)_+=String.fromCharCode.apply(String,u.slice(M,M+=L));return _}function g(u,f,_){var M="";_=Math.min(u.length,_);for(var W=f;W<_;++W)M+=String.fromCharCode(u[W]&127);return M}function p(u,f,_){var M="";_=Math.min(u.length,_);for(var W=f;W<_;++W)M+=String.fromCharCode(u[W]);return M}function w(u,f,_){var M=u.length;(!f||f<0)&&(f=0),(!_||_<0||_>M)&&(_=M);for(var W="",Q=f;Q<_;++Q)W+=be(u[Q]);return W}function h(u,f,_){for(var M=u.slice(f,_),W="",Q=0;Q<M.length;Q+=2)W+=String.fromCharCode(M[Q]+M[Q+1]*256);return W}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 M;if(c.TYPED_ARRAY_SUPPORT)M=this.subarray(u,f),M.__proto__=c.prototype;else{var W=f-u;M=new c(W,void 0);for(var Q=0;Q<W;++Q)M[Q]=this[Q+u]}return M};function m(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,_||m(u,f,this.length);for(var M=this[u],W=1,Q=0;++Q<f&&(W*=256);)M+=this[u+Q]*W;return M},c.prototype.readUIntBE=function(u,f,_){u=u|0,f=f|0,_||m(u,f,this.length);for(var M=this[u+--f],W=1;f>0&&(W*=256);)M+=this[u+--f]*W;return M},c.prototype.readUInt8=function(u,f){return f||m(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,f){return f||m(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,f){return f||m(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,f){return f||m(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||m(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,_||m(u,f,this.length);for(var M=this[u],W=1,Q=0;++Q<f&&(W*=256);)M+=this[u+Q]*W;return W*=128,M>=W&&(M-=Math.pow(2,8*f)),M},c.prototype.readIntBE=function(u,f,_){u=u|0,f=f|0,_||m(u,f,this.length);for(var M=f,W=1,Q=this[u+--M];M>0&&(W*=256);)Q+=this[u+--M]*W;return W*=128,Q>=W&&(Q-=Math.pow(2,8*f)),Q},c.prototype.readInt8=function(u,f){return f||m(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,f){f||m(u,2,this.length);var _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},c.prototype.readInt16BE=function(u,f){f||m(u,2,this.length);var _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},c.prototype.readInt32LE=function(u,f){return f||m(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||m(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||m(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,f){return f||m(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,f){return f||m(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,f){return f||m(u,8,this.length),r.read(this,u,!1,52,8)};function D(u,f,_,M,W,Q){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>W||f<Q)throw new RangeError('"value" argument is out of bounds');if(_+M>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,f,_,M){if(u=+u,f=f|0,_=_|0,!M){var W=Math.pow(2,8*_)-1;D(this,u,f,_,W,0)}var Q=1,xe=0;for(this[f]=u&255;++xe<_&&(Q*=256);)this[f+xe]=u/Q&255;return f+_},c.prototype.writeUIntBE=function(u,f,_,M){if(u=+u,f=f|0,_=_|0,!M){var W=Math.pow(2,8*_)-1;D(this,u,f,_,W,0)}var Q=_-1,xe=1;for(this[f+Q]=u&255;--Q>=0&&(xe*=256);)this[f+Q]=u/xe&255;return f+_},c.prototype.writeUInt8=function(u,f,_){return u=+u,f=f|0,_||D(this,u,f,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[f]=u&255,f+1};function z(u,f,_,M){f<0&&(f=65535+f+1);for(var W=0,Q=Math.min(u.length-_,2);W<Q;++W)u[_+W]=(f&255<<8*(M?W:1-W))>>>(M?W:1-W)*8}c.prototype.writeUInt16LE=function(u,f,_){return u=+u,f=f|0,_||D(this,u,f,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[f]=u&255,this[f+1]=u>>>8):z(this,u,f,!0),f+2},c.prototype.writeUInt16BE=function(u,f,_){return u=+u,f=f|0,_||D(this,u,f,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[f]=u>>>8,this[f+1]=u&255):z(this,u,f,!1),f+2};function Z(u,f,_,M){f<0&&(f=4294967295+f+1);for(var W=0,Q=Math.min(u.length-_,4);W<Q;++W)u[_+W]=f>>>(M?W:3-W)*8&255}c.prototype.writeUInt32LE=function(u,f,_){return u=+u,f=f|0,_||D(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):Z(this,u,f,!0),f+4},c.prototype.writeUInt32BE=function(u,f,_){return u=+u,f=f|0,_||D(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):Z(this,u,f,!1),f+4},c.prototype.writeIntLE=function(u,f,_,M){if(u=+u,f=f|0,!M){var W=Math.pow(2,8*_-1);D(this,u,f,_,W-1,-W)}var Q=0,xe=1,Me=0;for(this[f]=u&255;++Q<_&&(xe*=256);)u<0&&Me===0&&this[f+Q-1]!==0&&(Me=1),this[f+Q]=(u/xe>>0)-Me&255;return f+_},c.prototype.writeIntBE=function(u,f,_,M){if(u=+u,f=f|0,!M){var W=Math.pow(2,8*_-1);D(this,u,f,_,W-1,-W)}var Q=_-1,xe=1,Me=0;for(this[f+Q]=u&255;--Q>=0&&(xe*=256);)u<0&&Me===0&&this[f+Q+1]!==0&&(Me=1),this[f+Q]=(u/xe>>0)-Me&255;return f+_},c.prototype.writeInt8=function(u,f,_){return u=+u,f=f|0,_||D(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,_||D(this,u,f,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[f]=u&255,this[f+1]=u>>>8):z(this,u,f,!0),f+2},c.prototype.writeInt16BE=function(u,f,_){return u=+u,f=f|0,_||D(this,u,f,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[f]=u>>>8,this[f+1]=u&255):z(this,u,f,!1),f+2},c.prototype.writeInt32LE=function(u,f,_){return u=+u,f=f|0,_||D(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):Z(this,u,f,!0),f+4},c.prototype.writeInt32BE=function(u,f,_){return u=+u,f=f|0,_||D(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):Z(this,u,f,!1),f+4};function ae(u,f,_,M,W,Q){if(_+M>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function fe(u,f,_,M,W){return W||ae(u,f,_,4),r.write(u,f,_,M,23,4),_+4}c.prototype.writeFloatLE=function(u,f,_){return fe(this,u,f,!0,_)},c.prototype.writeFloatBE=function(u,f,_){return fe(this,u,f,!1,_)};function _e(u,f,_,M,W){return W||ae(u,f,_,8),r.write(u,f,_,M,52,8),_+8}c.prototype.writeDoubleLE=function(u,f,_){return _e(this,u,f,!0,_)},c.prototype.writeDoubleBE=function(u,f,_){return _e(this,u,f,!1,_)},c.prototype.copy=function(u,f,_,M){if(_||(_=0),!M&&M!==0&&(M=this.length),f>=u.length&&(f=u.length),f||(f=0),M>0&&M<_&&(M=_),M===_||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(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),u.length-f<M-_&&(M=u.length-f+_);var W=M-_,Q;if(this===u&&_<f&&f<M)for(Q=W-1;Q>=0;--Q)u[Q+f]=this[Q+_];else if(W<1e3||!c.TYPED_ARRAY_SUPPORT)for(Q=0;Q<W;++Q)u[Q+f]=this[Q+_];else Uint8Array.prototype.set.call(u,this.subarray(_,_+W),f);return W},c.prototype.fill=function(u,f,_,M){if(typeof u=="string"){if(typeof f=="string"?(M=f,f=0,_=this.length):typeof _=="string"&&(M=_,_=this.length),u.length===1){var W=u.charCodeAt(0);W<256&&(u=W)}if(M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!c.isEncoding(M))throw new TypeError("Unknown encoding: "+M)}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 Q;if(typeof u=="number")for(Q=f;Q<_;++Q)this[Q]=u;else{var xe=c.isBuffer(u)?u:P(new c(u,M).toString()),Me=xe.length;for(Q=0;Q<_-f;++Q)this[Q+f]=xe[Q%Me]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function he(u){if(u=De(u).replace(J,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function De(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function be(u){return u<16?"0"+u.toString(16):u.toString(16)}function P(u,f){f=f||1/0;for(var _,M=u.length,W=null,Q=[],xe=0;xe<M;++xe){if(_=u.charCodeAt(xe),_>55295&&_<57344){if(!W){if(_>56319){(f-=3)>-1&&Q.push(239,191,189);continue}else if(xe+1===M){(f-=3)>-1&&Q.push(239,191,189);continue}W=_;continue}if(_<56320){(f-=3)>-1&&Q.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(f-=3)>-1&&Q.push(239,191,189);if(W=null,_<128){if((f-=1)<0)break;Q.push(_)}else if(_<2048){if((f-=2)<0)break;Q.push(_>>6|192,_&63|128)}else if(_<65536){if((f-=3)<0)break;Q.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((f-=4)<0)break;Q.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Q}function q(u){for(var f=[],_=0;_<u.length;++_)f.push(u.charCodeAt(_)&255);return f}function F(u,f){for(var _,M,W,Q=[],xe=0;xe<u.length&&!((f-=2)<0);++xe)_=u.charCodeAt(xe),M=_>>8,W=_%256,Q.push(W),Q.push(M);return Q}function K(u){return n.toByteArray(he(u))}function se(u,f,_,M){for(var W=0;W<M&&!(W+_>=f.length||W>=u.length);++W)f[W+_]=u[W];return W}function Oe(u){return u!==u}}(kl)),kl}Jd();var Lr;if(typeof window<"u"&&window.crypto&&(Lr=window.crypto),!Lr&&typeof window<"u"&&window.msCrypto&&(Lr=window.msCrypto),!Lr&&typeof global<"u"&&global.crypto&&(Lr=global.crypto),!Lr&&typeof require=="function")try{Lr=require("crypto")}catch{}var Bl={};/*! *****************************************************************************
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 fa=function(i,t){return fa=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])},fa(i,t)};function tp(i,t){fa(i,t);function r(){this.constructor=i}i.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ha=function(){return ha=Object.assign||function(i){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(i[l]=t[l])}return i},ha.apply(this,arguments)};function np(i,t){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&t.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++)t.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function rp(i,t,r,s){var l=arguments.length,g=l<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,t,r,s);else for(var c=i.length-1;c>=0;c--)(f=i[c])&&(g=(l<3?f(g):l>3?f(t,r,g):f(t,r))||g);return l>3&&g&&Object.defineProperty(t,r,g),g}function ip(i,t){return function(r,s){t(r,s,i)}}function op(i,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,t)}function sp(i,t,r,s){function l(g){return g instanceof r?g:new r(function(f){f(g)})}return new(r||(r=Promise))(function(g,f){function c(O){try{C(s.next(O))}catch(L){f(L)}}function b(O){try{C(s.throw(O))}catch(L){f(L)}}function C(O){O.done?g(O.value):l(O.value).then(c,b)}C((s=s.apply(i,t||[])).next())})}function ap(i,t){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,l,g,f;return f={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function c(C){return function(O){return b([C,O])}}function b(C){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(g=C[0]&2?l.return:C[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,C[1])).done)return g;switch(l=0,g&&(C=[C[0]&2,g.value]),C[0]){case 0:case 1:g=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(g=r.trys,!(g=g.length>0&&g[g.length-1])&&(C[0]===6||C[0]===2)){r=0;continue}if(C[0]===3&&(!g||C[1]>g[0]&&C[1]<g[3])){r.label=C[1];break}if(C[0]===6&&r.label<g[1]){r.label=g[1],g=C;break}if(g&&r.label<g[2]){r.label=g[2],r.ops.push(C);break}g[2]&&r.ops.pop(),r.trys.pop();continue}C=t.call(i,r)}catch(O){C=[6,O],l=0}finally{s=g=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}}function up(i,t,r,s){s===void 0&&(s=r),i[s]=t[r]}function lp(i,t){for(var r in i)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=i[r])}function da(i){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&i[t],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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zl(i,t){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,g=[],f;try{for(;(t===void 0||t-- >0)&&!(l=s.next()).done;)g.push(l.value)}catch(c){f={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(f)throw f.error}}return g}function cp(){for(var i=[],t=0;t<arguments.length;t++)i=i.concat(zl(arguments[t]));return i}function fp(){for(var i=0,t=0,r=arguments.length;t<r;t++)i+=arguments[t].length;for(var s=Array(i),l=0,t=0;t<r;t++)for(var g=arguments[t],f=0,c=g.length;f<c;f++,l++)s[l]=g[f];return s}function $i(i){return this instanceof $i?(this.v=i,this):new $i(i)}function hp(i,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,t||[]),l,g=[];return l={},f("next"),f("throw"),f("return"),l[Symbol.asyncIterator]=function(){return this},l;function f(k){s[k]&&(l[k]=function(E){return new Promise(function(R,M){g.push([k,E,R,M])>1||c(k,E)})})}function c(k,E){try{b(s[k](E))}catch(R){L(g[0][3],R)}}function b(k){k.value instanceof $i?Promise.resolve(k.value.v).then(C,O):L(g[0][2],k)}function C(k){c("next",k)}function O(k){c("throw",k)}function L(k,E){k(E),g.shift(),g.length&&c(g[0][0],g[0][1])}}function dp(i){var t,r;return t={},s("next"),s("throw",function(l){throw l}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(l,g){t[l]=i[l]?function(f){return(r=!r)?{value:$i(i[l](f)),done:l==="return"}:g?g(f):f}:g}}function pp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],r;return t?t.call(i):(i=typeof da=="function"?da(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(f){return new Promise(function(c,b){f=i[g](f),l(c,b,f.done,f.value)})}}function l(g,f,c,b){Promise.resolve(b).then(function(C){g({value:C,done:c})},f)}}function gp(i,t){return Object.defineProperty?Object.defineProperty(i,"raw",{value:t}):i.raw=t,i}function vp(i){if(i&&i.__esModule)return i;var t={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t.default=i,t}function mp(i){return i&&i.__esModule?i:{default:i}}function yp(i,t){if(!t.has(i))throw new TypeError("attempted to get private field on non-instance");return t.get(i)}function wp(i,t,r){if(!t.has(i))throw new TypeError("attempted to set private field on non-instance");return t.set(i,r),r}const _p=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ha},__asyncDelegator:dp,__asyncGenerator:hp,__asyncValues:pp,__await:$i,__awaiter:sp,__classPrivateFieldGet:yp,__classPrivateFieldSet:wp,__createBinding:up,__decorate:rp,__exportStar:lp,__extends:tp,__generator:ap,__importDefault:mp,__importStar:vp,__makeTemplateObject:gp,__metadata:op,__param:ip,__read:zl,__rest:np,__spread:cp,__spreadArrays:fp,__values:da},Symbol.toStringTag,{value:"Module"})),Fl=oa(_p);var Ni={},un={},Wl;function Yl(){return Wl||(Wl=1,Object.defineProperty(un,"__esModule",{value:!0}),un.MAX_HASHABLE_LENGTH=un.INIT=un.KEY=un.DIGEST_LENGTH=un.BLOCK_SIZE=void 0,un.BLOCK_SIZE=64,un.DIGEST_LENGTH=32,un.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]),un.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],un.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),un}var Bi={},ql;function bp(){if(ql)return Bi;ql=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.RawSha256=void 0;var i=Yl(),t=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,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[l++],g--,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),g=this.bufferLength;if(l.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var f=this.bufferLength;f<i.BLOCK_SIZE;f++)l.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(var f=this.bufferLength;f<i.BLOCK_SIZE-8;f++)l.setUint8(f,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),f=0;f<8;f++)c[f*4]=this.state[f]>>>24&255,c[f*4+1]=this.state[f]>>>16&255,c[f*4+2]=this.state[f]>>>8&255,c[f*4+3]=this.state[f]>>>0&255;return c},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,g=s.state,f=g[0],c=g[1],b=g[2],C=g[3],O=g[4],L=g[5],k=g[6],E=g[7],R=0;R<i.BLOCK_SIZE;R++){if(R<16)this.temp[R]=(l[R*4]&255)<<24|(l[R*4+1]&255)<<16|(l[R*4+2]&255)<<8|l[R*4+3]&255;else{var M=this.temp[R-2],$=(M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10;M=this.temp[R-15];var Q=(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3;this.temp[R]=($+this.temp[R-7]|0)+(Q+this.temp[R-16]|0)}var X=(((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&L^~O&k)|0)+(E+(i.KEY[R]+this.temp[R]|0)|0)|0,J=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&c^f&b^c&b)|0;E=k,k=L,L=O,O=C+X|0,C=b,b=c,c=f,f=X+J|0}g[0]+=f,g[1]+=c,g[2]+=b,g[3]+=C,g[4]+=O,g[5]+=L,g[6]+=k,g[7]+=E},r}();return Bi.RawSha256=t,Bi}var Hl={},ji={};const xp=i=>{const t=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)t.push(l);else if(l<2048)t.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);t.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else t.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(t)},Sp=i=>{let t="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)t+=String.fromCharCode(l);else if(192<=l&&l<224){const g=i[++r];t+=String.fromCharCode((l&31)<<6|g&63)}else if(240<=l&&l<365){const g="%"+[l,i[++r],i[++r],i[++r]].map(f=>f.toString(16)).join("%");t+=decodeURIComponent(g)}else t+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return t};function Cp(i){return new TextEncoder().encode(i)}function Ap(i){return new TextDecoder("utf-8").decode(i)}const Op=i=>typeof TextEncoder=="function"?Cp(i):xp(i),Tp=i=>typeof TextDecoder=="function"?Ap(i):Sp(i),Dp=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Op,toUtf8:Tp},Symbol.toStringTag,{value:"Module"})),Ep=oa(Dp);var Gl;function Mp(){if(Gl)return ji;Gl=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.convertToBuffer=void 0;var i=Ep,t=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"?t(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return ji.convertToBuffer=r,ji}var Ui={},Vl;function Rp(){if(Vl)return Ui;Vl=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.isEmptyData=void 0;function i(t){return typeof t=="string"?t.length===0:t.byteLength===0}return Ui.isEmptyData=i,Ui}var zi={},Zl;function Lp(){if(Zl)return zi;Zl=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.numToUint8=void 0;function i(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}return zi.numToUint8=i,zi}var Fi={},Kl;function kp(){if(Kl)return Fi;Kl=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.uint32ArrayFrom=void 0;function i(t){if(!Array.from){for(var r=new Uint32Array(t.length),s=0;s<t.length;)r[s]=t[s];return r}return Uint32Array.from(t)}return Fi.uint32ArrayFrom=i,Fi}var Ql;function Ip(){return Ql||(Ql=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var t=Mp();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var r=Rp();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Lp();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=kp();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(Hl)),Hl}var Jl;function Pp(){if(Jl)return Ni;Jl=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.Sha256=void 0;var i=Fl,t=Yl(),r=bp(),s=Ip(),l=function(){function f(c){if(this.hash=new r.RawSha256,c){this.outer=new r.RawSha256;var b=g(c),C=new Uint8Array(t.BLOCK_SIZE);C.set(b);for(var O=0;O<t.BLOCK_SIZE;O++)b[O]^=54,C[O]^=92;this.hash.update(b),this.outer.update(C);for(var O=0;O<b.byteLength;O++)b[O]=0}}return f.prototype.update=function(c){if(!((0,s.isEmptyData)(c)||this.error))try{this.hash.update((0,s.convertToBuffer)(c))}catch(b){this.error=b}},f.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()},f.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(c){return[2,this.digestSync()]})})},f}();Ni.Sha256=l;function g(f){var c=(0,s.convertToBuffer)(f);if(c.byteLength>t.BLOCK_SIZE){var b=new r.RawSha256;b.update(c),c=b.digest()}var C=new Uint8Array(t.BLOCK_SIZE);return C.set(c),C}return Ni}var Xl;function $p(){return Xl||(Xl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var t=Fl;(0,t.__exportStar)(Pp(),i)}(Ul)),Ul}$p();function Ue(i,t){i!=null&&this.fromString(i,t)}function Nt(){return new Ue(null)}var tr,Np=0xdeadbeefcafe,ec=(Np&16777215)==15715070;function Bp(i,t,r,s,l,g){for(;--g>=0;){var f=t*this[i++]+r[s]+l;l=Math.floor(f/67108864),r[s++]=f&67108863}return l}function jp(i,t,r,s,l,g){for(var f=t&32767,c=t>>15;--g>=0;){var b=this[i]&32767,C=this[i++]>>15,O=c*b+C*f;b=f*b+((O&32767)<<15)+r[s]+(l&1073741823),l=(b>>>30)+(O>>>15)+c*C+(l>>>30),r[s++]=b&1073741823}return l}function Up(i,t,r,s,l,g){for(var f=t&16383,c=t>>14;--g>=0;){var b=this[i]&16383,C=this[i++]>>14,O=c*b+C*f;b=f*b+((O&16383)<<14)+r[s]+l,l=(b>>28)+(O>>14)+c*C,r[s++]=b&268435455}return l}var tc=typeof navigator<"u";tc&&ec&&navigator.appName=="Microsoft Internet Explorer"?(Ue.prototype.am=jp,tr=30):tc&&ec&&navigator.appName!="Netscape"?(Ue.prototype.am=Bp,tr=26):(Ue.prototype.am=Up,tr=28),Ue.prototype.DB=tr,Ue.prototype.DM=(1<<tr)-1,Ue.prototype.DV=1<<tr;var pa=52;Ue.prototype.FV=Math.pow(2,pa),Ue.prototype.F1=pa-tr,Ue.prototype.F2=2*tr-pa;var zp="0123456789abcdefghijklmnopqrstuvwxyz",Mo=new Array,Xr,ln;for(Xr=48,ln=0;ln<=9;++ln)Mo[Xr++]=ln;for(Xr=97,ln=10;ln<36;++ln)Mo[Xr++]=ln;for(Xr=65,ln=10;ln<36;++ln)Mo[Xr++]=ln;function nc(i){return zp.charAt(i)}function Fp(i,t){var r=Mo[i.charCodeAt(t)];return r??-1}function Wp(i){for(var t=this.t-1;t>=0;--t)i[t]=this[t];i.t=this.t,i.s=this.s}function Yp(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 ga(i){var t=Nt();return t.fromInt(i),t}function qp(i,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==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,g=0;--s>=0;){var f=Fp(i,s);if(f<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,g==0?this[this.t++]=f:g+r>this.DB?(this[this.t-1]|=(f&(1<<this.DB-g)-1)<<g,this[this.t++]=f>>this.DB-g):this[this.t-1]|=f<<g,g+=r,g>=this.DB&&(g-=this.DB)}this.clamp(),l&&Ue.ZERO.subTo(this,this)}function Hp(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Gp(i){if(this.s<0)return"-"+this.negate().toString(i);var t;if(i==16)t=4;else if(i==8)t=3;else if(i==2)t=1;else if(i==32)t=5;else if(i==4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<t)-1,s,l=!1,g="",f=this.t,c=this.DB-f*this.DB%t;if(f-- >0)for(c<this.DB&&(s=this[f]>>c)>0&&(l=!0,g=nc(s));f>=0;)c<t?(s=(this[f]&(1<<c)-1)<<t-c,s|=this[--f]>>(c+=this.DB-t)):(s=this[f]>>(c-=t)&r,c<=0&&(c+=this.DB,--f)),s>0&&(l=!0),l&&(g+=nc(s));return l?g:"0"}function Vp(){var i=Nt();return Ue.ZERO.subTo(this,i),i}function Zp(){return this.s<0?this.negate():this}function Kp(i){var t=this.s-i.s;if(t!=0)return t;var r=this.t;if(t=r-i.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-i[r])!=0)return t;return 0}function va(i){var t=1,r;return(r=i>>>16)!=0&&(i=r,t+=16),(r=i>>8)!=0&&(i=r,t+=8),(r=i>>4)!=0&&(i=r,t+=4),(r=i>>2)!=0&&(i=r,t+=2),(r=i>>1)!=0&&(i=r,t+=1),t}function Qp(){return this.t<=0?0:this.DB*(this.t-1)+va(this[this.t-1]^this.s&this.DM)}function Jp(i,t){var r;for(r=this.t-1;r>=0;--r)t[r+i]=this[r];for(r=i-1;r>=0;--r)t[r]=0;t.t=this.t+i,t.s=this.s}function Xp(i,t){for(var r=i;r<this.t;++r)t[r-i]=this[r];t.t=Math.max(this.t-i,0),t.s=this.s}function eg(i,t){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,g=Math.floor(i/this.DB),f=this.s<<r&this.DM,c;for(c=this.t-1;c>=0;--c)t[c+g+1]=this[c]>>s|f,f=(this[c]&l)<<r;for(c=g-1;c>=0;--c)t[c]=0;t[g]=f,t.t=this.t+g+1,t.s=this.s,t.clamp()}function tg(i,t){t.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){t.t=0;return}var s=i%this.DB,l=this.DB-s,g=(1<<s)-1;t[0]=this[r]>>s;for(var f=r+1;f<this.t;++f)t[f-r-1]|=(this[f]&g)<<l,t[f-r]=this[f]>>s;s>0&&(t[this.t-r-1]|=(this.s&g)<<l),t.t=this.t-r,t.clamp()}function ng(i,t){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],t[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],t[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],t[r++]=s&this.DM,s>>=this.DB;s-=i.s}t.s=s<0?-1:0,s<-1?t[r++]=this.DV+s:s>0&&(t[r++]=s),t.t=r,t.clamp()}function rg(i,t){var r=this.abs(),s=i.abs(),l=r.t;for(t.t=l+s.t;--l>=0;)t[l]=0;for(l=0;l<s.t;++l)t[l+r.t]=r.am(0,s[l],t,l,0,r.t);t.s=0,t.clamp(),this.s!=i.s&&Ue.ZERO.subTo(t,t)}function ig(i){for(var t=this.abs(),r=i.t=2*t.t;--r>=0;)i[r]=0;for(r=0;r<t.t-1;++r){var s=t.am(r,t[r],i,2*r,0,1);(i[r+t.t]+=t.am(r+1,2*t[r],i,2*r+1,s,t.t-r-1))>=t.DV&&(i[r+t.t]-=t.DV,i[r+t.t+1]=1)}i.t>0&&(i[i.t-1]+=t.am(r,t[r],i,2*r,0,1)),i.s=0,i.clamp()}function og(i,t,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){t!=null&&t.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Nt());var g=Nt(),f=this.s,c=i.s,b=this.DB-va(s[s.t-1]);b>0?(s.lShiftTo(b,g),l.lShiftTo(b,r)):(s.copyTo(g),l.copyTo(r));var C=g.t,O=g[C-1];if(O!=0){var L=O*(1<<this.F1)+(C>1?g[C-2]>>this.F2:0),k=this.FV/L,E=(1<<this.F1)/L,R=1<<this.F2,M=r.t,$=M-C,Q=t??Nt();for(g.dlShiftTo($,Q),r.compareTo(Q)>=0&&(r[r.t++]=1,r.subTo(Q,r)),Ue.ONE.dlShiftTo(C,Q),Q.subTo(g,g);g.t<C;)g[g.t++]=0;for(;--$>=0;){var X=r[--M]==O?this.DM:Math.floor(r[M]*k+(r[M-1]+R)*E);if((r[M]+=g.am(0,X,r,$,0,C))<X)for(g.dlShiftTo($,Q),r.subTo(Q,r);r[M]<--X;)r.subTo(Q,r)}t!=null&&(r.drShiftTo(C,t),f!=c&&Ue.ZERO.subTo(t,t)),r.t=C,r.clamp(),b>0&&r.rShiftTo(b,r),f<0&&Ue.ZERO.subTo(r,r)}}}function sg(i){var t=Nt();return this.abs().divRemTo(i,null,t),this.s<0&&t.compareTo(Ue.ZERO)>0&&i.subTo(t,t),t}function ag(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var t=i&3;return t=t*(2-(i&15)*t)&15,t=t*(2-(i&255)*t)&255,t=t*(2-((i&65535)*t&65535))&65535,t=t*(2-i*t%this.DV)%this.DV,t>0?this.DV-t:-t}function ug(i){return this.compareTo(i)==0}function lg(i,t){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],t[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],t[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],t[r++]=s&this.DM,s>>=this.DB;s+=i.s}t.s=s<0?-1:0,s>0?t[r++]=s:s<-1&&(t[r++]=this.DV+s),t.t=r,t.clamp()}function cg(i){var t=Nt();return this.addTo(i,t),t}function fg(i){var t=Nt();return this.subTo(i,t),t}function hg(i){var t=Nt();return this.multiplyTo(i,t),t}function dg(i){var t=Nt();return this.divRemTo(i,t,null),t}function ei(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 pg(i){var t=Nt();return i.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),i.s<0&&t.compareTo(Ue.ZERO)>0&&this.m.subTo(t,t),t}function gg(i){var t=Nt();return i.copyTo(t),this.reduce(t),t}function vg(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var t=0;t<this.m.t;++t){var r=i[t]&32767,s=r*this.mpl+((r*this.mph+(i[t]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=t+this.m.t,i[r]+=this.m.am(0,s,i,t,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 mg(i,t){i.squareTo(t),this.reduce(t)}function yg(i,t,r){i.multiplyTo(t,r),this.reduce(r)}ei.prototype.convert=pg,ei.prototype.revert=gg,ei.prototype.reduce=vg,ei.prototype.mulTo=yg,ei.prototype.sqrTo=mg;function wg(i,t,r){var s=i.bitLength(),l,g=ga(1),f=new ei(t);if(s<=0)return g;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var c=new Array,b=3,C=l-1,O=(1<<l)-1;if(c[1]=f.convert(this),l>1){var L=Nt();for(f.sqrTo(c[1],L);b<=O;)c[b]=Nt(),f.mulTo(L,c[b-2],c[b]),b+=2}var k=i.t-1,E,R=!0,M=Nt(),$;for(s=va(i[k])-1;k>=0;){for(s>=C?E=i[k]>>s-C&O:(E=(i[k]&(1<<s+1)-1)<<C-s,k>0&&(E|=i[k-1]>>this.DB+s-C)),b=l;(E&1)==0;)E>>=1,--b;if((s-=b)<0&&(s+=this.DB,--k),R)c[E].copyTo(g),R=!1;else{for(;b>1;)f.sqrTo(g,M),f.sqrTo(M,g),b-=2;b>0?f.sqrTo(g,M):($=g,g=M,M=$),f.mulTo(M,c[E],g)}for(;k>=0&&(i[k]&1<<s)==0;)f.sqrTo(g,M),$=g,g=M,M=$,--s<0&&(s=this.DB-1,--k)}var Q=f.revert(g);return r(null,Q),Q}Ue.prototype.copyTo=Wp,Ue.prototype.fromInt=Yp,Ue.prototype.fromString=qp,Ue.prototype.clamp=Hp,Ue.prototype.dlShiftTo=Jp,Ue.prototype.drShiftTo=Xp,Ue.prototype.lShiftTo=eg,Ue.prototype.rShiftTo=tg,Ue.prototype.subTo=ng,Ue.prototype.multiplyTo=rg,Ue.prototype.squareTo=ig,Ue.prototype.divRemTo=og,Ue.prototype.invDigit=ag,Ue.prototype.addTo=lg,Ue.prototype.toString=Gp,Ue.prototype.negate=Vp,Ue.prototype.abs=Zp,Ue.prototype.compareTo=Kp,Ue.prototype.bitLength=Qp,Ue.prototype.mod=sg,Ue.prototype.equals=ug,Ue.prototype.add=cg,Ue.prototype.subtract=fg,Ue.prototype.multiply=hg,Ue.prototype.divide=dg,Ue.prototype.modPow=wg,Ue.ZERO=ga(0),Ue.ONE=ga(1);function _g(i,t){return t=t||{},new Promise(function(r,s){var l=new XMLHttpRequest,g=[],f=[],c={},b=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:b,headers:{keys:function(){return g},entries:function(){return f},get:function(O){return c[O.toLowerCase()]},has:function(O){return O.toLowerCase()in c}}}};for(var C in l.open(t.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(O,L,k){g.push(L=L.toLowerCase()),f.push([L,k]),c[L]=c[L]?c[L]+","+k:k}),r(b())},l.onerror=s,l.withCredentials=t.credentials=="include",t.headers)l.setRequestHeader(C,t.headers[C]);l.send(t.body||null)})}const bg=Object.freeze(Object.defineProperty({__proto__:null,default:_g},Symbol.toStringTag,{value:"Module"})),rc=oa(bg);var ic,oc;function xg(){return oc||(oc=1,ic=self.fetch||(self.fetch=rc.default||rc)),ic}xg();/*!
104
+ ***************************************************************************** */var ua=function(i,n){return ua=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])},ua(i,n)};function Xd(i,n){ua(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var la=function(){return la=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},la.apply(this,arguments)};function ep(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 tp(i,n,r,s){var l=arguments.length,d=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(i,n,r,s);else for(var c=i.length-1;c>=0;c--)(v=i[c])&&(d=(l<3?v(d):l>3?v(n,r,d):v(n,r))||d);return l>3&&d&&Object.defineProperty(n,r,d),d}function np(i,n){return function(r,s){n(r,s,i)}}function rp(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function ip(i,n,r,s){function l(d){return d instanceof r?d:new r(function(v){v(d)})}return new(r||(r=Promise))(function(d,v){function c(O){try{C(s.next(O))}catch(R){v(R)}}function x(O){try{C(s.throw(O))}catch(R){v(R)}}function C(O){O.done?d(O.value):l(O.value).then(c,x)}C((s=s.apply(i,n||[])).next())})}function op(i,n){var r={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},s,l,d,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(O){return x([C,O])}}function x(C){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(d=C[0]&2?l.return:C[0]?l.throw||((d=l.return)&&d.call(l),0):l.next)&&!(d=d.call(l,C[1])).done)return d;switch(l=0,d&&(C=[C[0]&2,d.value]),C[0]){case 0:case 1:d=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(d=r.trys,!(d=d.length>0&&d[d.length-1])&&(C[0]===6||C[0]===2)){r=0;continue}if(C[0]===3&&(!d||C[1]>d[0]&&C[1]<d[3])){r.label=C[1];break}if(C[0]===6&&r.label<d[1]){r.label=d[1],d=C;break}if(d&&r.label<d[2]){r.label=d[2],r.ops.push(C);break}d[2]&&r.ops.pop(),r.trys.pop();continue}C=n.call(i,r)}catch(O){C=[6,O],l=0}finally{s=d=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}}function sp(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function ap(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function ca(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 jl(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,d=[],v;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)d.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 d}function up(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(jl(arguments[n]));return i}function lp(){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 d=arguments[n],v=0,c=d.length;v<c;v++,l++)s[l]=d[v];return s}function Ni(i){return this instanceof Ni?(this.v=i,this):new Ni(i)}function cp(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,d=[];return l={},v("next"),v("throw"),v("return"),l[Symbol.asyncIterator]=function(){return this},l;function v(N){s[N]&&(l[N]=function(E){return new Promise(function(I,$){d.push([N,E,I,$])>1||c(N,E)})})}function c(N,E){try{x(s[N](E))}catch(I){R(d[0][3],I)}}function x(N){N.value instanceof Ni?Promise.resolve(N.value.v).then(C,O):R(d[0][2],N)}function C(N){c("next",N)}function O(N){c("throw",N)}function R(N,E){N(E),d.shift(),d.length&&c(d[0][0],d[0][1])}}function fp(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,d){n[l]=i[l]?function(v){return(r=!r)?{value:Ni(i[l](v)),done:l==="return"}:d?d(v):v}:d}}function hp(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 ca=="function"?ca(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(d){r[d]=i[d]&&function(v){return new Promise(function(c,x){v=i[d](v),l(c,x,v.done,v.value)})}}function l(d,v,c,x){Promise.resolve(x).then(function(C){d({value:C,done:c})},v)}}function dp(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function pp(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 gp(i){return i&&i.__esModule?i:{default:i}}function mp(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function vp(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 yp=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return la},__asyncDelegator:fp,__asyncGenerator:cp,__asyncValues:hp,__await:Ni,__awaiter:ip,__classPrivateFieldGet:mp,__classPrivateFieldSet:vp,__createBinding:sp,__decorate:tp,__exportStar:ap,__extends:Xd,__generator:op,__importDefault:gp,__importStar:pp,__makeTemplateObject:dp,__metadata:rp,__param:np,__read:jl,__rest:ep,__spread:up,__spreadArrays:lp,__values:ca},Symbol.toStringTag,{value:"Module"})),Yl=na(yp);var $i={},un={},Ul;function Fl(){return Ul||(Ul=1,Object.defineProperty(un,"__esModule",{value:!0}),un.MAX_HASHABLE_LENGTH=un.INIT=un.KEY=un.DIGEST_LENGTH=un.BLOCK_SIZE=void 0,un.BLOCK_SIZE=64,un.DIGEST_LENGTH=32,un.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]),un.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],un.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),un}var Bi={},Wl;function _p(){if(Wl)return Bi;Wl=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.RawSha256=void 0;var i=Fl(),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,d=s.byteLength;if(this.bytesHashed+=d,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;d>0;)this.buffer[this.bufferLength++]=s[l++],d--,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),d=this.bufferLength;if(l.setUint8(this.bufferLength++,128),d%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,d=s.state,v=d[0],c=d[1],x=d[2],C=d[3],O=d[4],R=d[5],N=d[6],E=d[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 $=this.temp[I-2],j=($>>>17|$<<15)^($>>>19|$<<13)^$>>>10;$=this.temp[I-15];var X=($>>>7|$<<25)^($>>>18|$<<14)^$>>>3;this.temp[I]=(j+this.temp[I-7]|0)+(X+this.temp[I-16]|0)}var te=(((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&R^~O&N)|0)+(E+(i.KEY[I]+this.temp[I]|0)|0)|0,ne=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&c^v&x^c&x)|0;E=N,N=R,R=O,O=C+te|0,C=x,x=c,c=v,v=te+ne|0}d[0]+=v,d[1]+=c,d[2]+=x,d[3]+=C,d[4]+=O,d[5]+=R,d[6]+=N,d[7]+=E},r}();return Bi.RawSha256=n,Bi}var zl={},ji={};const wp=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 d=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},bp=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 d=i[++r];n+=String.fromCharCode((l&31)<<6|d&63)}else if(240<=l&&l<365){const d="%"+[l,i[++r],i[++r],i[++r]].map(v=>v.toString(16)).join("%");n+=decodeURIComponent(d)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function xp(i){return new TextEncoder().encode(i)}function Sp(i){return new TextDecoder("utf-8").decode(i)}const Cp=i=>typeof TextEncoder=="function"?xp(i):wp(i),Ap=i=>typeof TextDecoder=="function"?Sp(i):bp(i),Dp=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Cp,toUtf8:Ap},Symbol.toStringTag,{value:"Module"})),Op=na(Dp);var ql;function Tp(){if(ql)return ji;ql=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.convertToBuffer=void 0;var i=Op,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return ji.convertToBuffer=r,ji}var Yi={},Hl;function Mp(){if(Hl)return Yi;Hl=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return Yi.isEmptyData=i,Yi}var Ui={},Gl;function Ep(){if(Gl)return Ui;Gl=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return Ui.numToUint8=i,Ui}var Fi={},Vl;function Rp(){if(Vl)return Fi;Vl=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return Fi.uint32ArrayFrom=i,Fi}var Zl;function Lp(){return Zl||(Zl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Tp();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Mp();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=Rp();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(zl)),zl}var Kl;function kp(){if(Kl)return $i;Kl=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.Sha256=void 0;var i=Yl,n=Fl(),r=_p(),s=Lp(),l=function(){function v(c){if(this.hash=new r.RawSha256,c){this.outer=new r.RawSha256;var x=d(c),C=new Uint8Array(n.BLOCK_SIZE);C.set(x);for(var O=0;O<n.BLOCK_SIZE;O++)x[O]^=54,C[O]^=92;this.hash.update(x),this.outer.update(C);for(var O=0;O<x.byteLength;O++)x[O]=0}}return v.prototype.update=function(c){if(!((0,s.isEmptyData)(c)||this.error))try{this.hash.update((0,s.convertToBuffer)(c))}catch(x){this.error=x}},v.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},v.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(c){return[2,this.digestSync()]})})},v}();$i.Sha256=l;function d(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 $i}var Ql;function Ip(){return Ql||(Ql=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=Yl;(0,n.__exportStar)(kp(),i)}(Bl)),Bl}Ip();function Ye(i,n){i!=null&&this.fromString(i,n)}function $t(){return new Ye(null)}var er,Pp=0xdeadbeefcafe,Jl=(Pp&16777215)==15715070;function Np(i,n,r,s,l,d){for(;--d>=0;){var v=n*this[i++]+r[s]+l;l=Math.floor(v/67108864),r[s++]=v&67108863}return l}function $p(i,n,r,s,l,d){for(var v=n&32767,c=n>>15;--d>=0;){var x=this[i]&32767,C=this[i++]>>15,O=c*x+C*v;x=v*x+((O&32767)<<15)+r[s]+(l&1073741823),l=(x>>>30)+(O>>>15)+c*C+(l>>>30),r[s++]=x&1073741823}return l}function Bp(i,n,r,s,l,d){for(var v=n&16383,c=n>>14;--d>=0;){var x=this[i]&16383,C=this[i++]>>14,O=c*x+C*v;x=v*x+((O&16383)<<14)+r[s]+l,l=(x>>28)+(O>>14)+c*C,r[s++]=x&268435455}return l}var Xl=typeof navigator<"u";Xl&&Jl&&navigator.appName=="Microsoft Internet Explorer"?(Ye.prototype.am=$p,er=30):Xl&&Jl&&navigator.appName!="Netscape"?(Ye.prototype.am=Np,er=26):(Ye.prototype.am=Bp,er=28),Ye.prototype.DB=er,Ye.prototype.DM=(1<<er)-1,Ye.prototype.DV=1<<er;var fa=52;Ye.prototype.FV=Math.pow(2,fa),Ye.prototype.F1=fa-er,Ye.prototype.F2=2*er-fa;var jp="0123456789abcdefghijklmnopqrstuvwxyz",Mo=new Array,Xr,ln;for(Xr=48,ln=0;ln<=9;++ln)Mo[Xr++]=ln;for(Xr=97,ln=10;ln<36;++ln)Mo[Xr++]=ln;for(Xr=65,ln=10;ln<36;++ln)Mo[Xr++]=ln;function ec(i){return jp.charAt(i)}function Yp(i,n){var r=Mo[i.charCodeAt(n)];return r??-1}function Up(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Fp(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 ha(i){var n=$t();return n.fromInt(i),n}function Wp(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,d=0;--s>=0;){var v=Yp(i,s);if(v<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,d==0?this[this.t++]=v:d+r>this.DB?(this[this.t-1]|=(v&(1<<this.DB-d)-1)<<d,this[this.t++]=v>>this.DB-d):this[this.t-1]|=v<<d,d+=r,d>=this.DB&&(d-=this.DB)}this.clamp(),l&&Ye.ZERO.subTo(this,this)}function zp(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function qp(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,d="",v=this.t,c=this.DB-v*this.DB%n;if(v-- >0)for(c<this.DB&&(s=this[v]>>c)>0&&(l=!0,d=ec(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&&(d+=ec(s));return l?d:"0"}function Hp(){var i=$t();return Ye.ZERO.subTo(this,i),i}function Gp(){return this.s<0?this.negate():this}function Vp(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 da(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 Zp(){return this.t<=0?0:this.DB*(this.t-1)+da(this[this.t-1]^this.s&this.DM)}function Kp(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 Qp(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 Jp(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,d=Math.floor(i/this.DB),v=this.s<<r&this.DM,c;for(c=this.t-1;c>=0;--c)n[c+d+1]=this[c]>>s|v,v=(this[c]&l)<<r;for(c=d-1;c>=0;--c)n[c]=0;n[d]=v,n.t=this.t+d+1,n.s=this.s,n.clamp()}function Xp(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,d=(1<<s)-1;n[0]=this[r]>>s;for(var v=r+1;v<this.t;++v)n[v-r-1]|=(this[v]&d)<<l,n[v-r]=this[v]>>s;s>0&&(n[this.t-r-1]|=(this.s&d)<<l),n.t=this.t-r,n.clamp()}function eg(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 tg(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 ng(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 rg(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=$t());var d=$t(),v=this.s,c=i.s,x=this.DB-da(s[s.t-1]);x>0?(s.lShiftTo(x,d),l.lShiftTo(x,r)):(s.copyTo(d),l.copyTo(r));var C=d.t,O=d[C-1];if(O!=0){var R=O*(1<<this.F1)+(C>1?d[C-2]>>this.F2:0),N=this.FV/R,E=(1<<this.F1)/R,I=1<<this.F2,$=r.t,j=$-C,X=n??$t();for(d.dlShiftTo(j,X),r.compareTo(X)>=0&&(r[r.t++]=1,r.subTo(X,r)),Ye.ONE.dlShiftTo(C,X),X.subTo(d,d);d.t<C;)d[d.t++]=0;for(;--j>=0;){var te=r[--$]==O?this.DM:Math.floor(r[$]*N+(r[$-1]+I)*E);if((r[$]+=d.am(0,te,r,j,0,C))<te)for(d.dlShiftTo(j,X),r.subTo(X,r);r[$]<--te;)r.subTo(X,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 ig(i){var n=$t();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(Ye.ZERO)>0&&i.subTo(n,n),n}function og(){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 sg(i){return this.compareTo(i)==0}function ag(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 ug(i){var n=$t();return this.addTo(i,n),n}function lg(i){var n=$t();return this.subTo(i,n),n}function cg(i){var n=$t();return this.multiplyTo(i,n),n}function fg(i){var n=$t();return this.divRemTo(i,n,null),n}function ei(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 hg(i){var n=$t();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(Ye.ZERO)>0&&this.m.subTo(n,n),n}function dg(i){var n=$t();return i.copyTo(n),this.reduce(n),n}function pg(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 gg(i,n){i.squareTo(n),this.reduce(n)}function mg(i,n,r){i.multiplyTo(n,r),this.reduce(r)}ei.prototype.convert=hg,ei.prototype.revert=dg,ei.prototype.reduce=pg,ei.prototype.mulTo=mg,ei.prototype.sqrTo=gg;function vg(i,n,r){var s=i.bitLength(),l,d=ha(1),v=new ei(n);if(s<=0)return d;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,O=(1<<l)-1;if(c[1]=v.convert(this),l>1){var R=$t();for(v.sqrTo(c[1],R);x<=O;)c[x]=$t(),v.mulTo(R,c[x-2],c[x]),x+=2}var N=i.t-1,E,I=!0,$=$t(),j;for(s=da(i[N])-1;N>=0;){for(s>=C?E=i[N]>>s-C&O:(E=(i[N]&(1<<s+1)-1)<<C-s,N>0&&(E|=i[N-1]>>this.DB+s-C)),x=l;(E&1)==0;)E>>=1,--x;if((s-=x)<0&&(s+=this.DB,--N),I)c[E].copyTo(d),I=!1;else{for(;x>1;)v.sqrTo(d,$),v.sqrTo($,d),x-=2;x>0?v.sqrTo(d,$):(j=d,d=$,$=j),v.mulTo($,c[E],d)}for(;N>=0&&(i[N]&1<<s)==0;)v.sqrTo(d,$),j=d,d=$,$=j,--s<0&&(s=this.DB-1,--N)}var X=v.revert(d);return r(null,X),X}Ye.prototype.copyTo=Up,Ye.prototype.fromInt=Fp,Ye.prototype.fromString=Wp,Ye.prototype.clamp=zp,Ye.prototype.dlShiftTo=Kp,Ye.prototype.drShiftTo=Qp,Ye.prototype.lShiftTo=Jp,Ye.prototype.rShiftTo=Xp,Ye.prototype.subTo=eg,Ye.prototype.multiplyTo=tg,Ye.prototype.squareTo=ng,Ye.prototype.divRemTo=rg,Ye.prototype.invDigit=og,Ye.prototype.addTo=ag,Ye.prototype.toString=qp,Ye.prototype.negate=Hp,Ye.prototype.abs=Gp,Ye.prototype.compareTo=Vp,Ye.prototype.bitLength=Zp,Ye.prototype.mod=ig,Ye.prototype.equals=sg,Ye.prototype.add=ug,Ye.prototype.subtract=lg,Ye.prototype.multiply=cg,Ye.prototype.divide=fg,Ye.prototype.modPow=vg,Ye.ZERO=ha(0),Ye.ONE=ha(1);function yg(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,d=[],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 d},entries:function(){return v},get:function(O){return c[O.toLowerCase()]},has:function(O){return O.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(O,R,N){d.push(R=R.toLowerCase()),v.push([R,N]),c[R]=c[R]?c[R]+","+N:N}),r(x())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(C,n.headers[C]);l.send(n.body||null)})}const _g=Object.freeze(Object.defineProperty({__proto__:null,default:yg},Symbol.toStringTag,{value:"Module"})),tc=na(_g);var nc,rc;function wg(){return rc||(rc=1,nc=self.fetch||(self.fetch=tc.default||tc)),nc}wg();/*!
105
105
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
106
106
  * SPDX-License-Identifier: Apache-2.0
107
- */var sc={exports:{}};/*!
107
+ */var ic={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 ac;function Sg(){return ac||(ac=1,function(i,t){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=l,g}}})(function(){function r(){for(var g=0,f={};g<arguments.length;g++){var c=arguments[g];for(var b in c)f[b]=c[b]}return f}function s(g){return g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(g){function f(){}function c(C,O,L){if(!(typeof document>"u")){L=r({path:"/"},f.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 k=JSON.stringify(O);/^[\{\[]/.test(k)&&(O=k)}catch{}O=g.write?g.write(O,C):encodeURIComponent(String(O)).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 R in L)L[R]&&(E+="; "+R,L[R]!==!0&&(E+="="+L[R].split(";")[0]));return document.cookie=C+"="+O+E}}function b(C,O){if(!(typeof document>"u")){for(var L={},k=document.cookie?document.cookie.split("; "):[],E=0;E<k.length;E++){var R=k[E].split("="),M=R.slice(1).join("=");!O&&M.charAt(0)==='"'&&(M=M.slice(1,-1));try{var $=s(R[0]);if(M=(g.read||g)(M,$)||s(M),O)try{M=JSON.parse(M)}catch{}if(L[$]=M,C===$)break}catch{}}return C?L[C]:L}}return f.set=c,f.get=function(C){return b(C,!1)},f.getJSON=function(C){return b(C,!0)},f.remove=function(C,O){c(C,"",r(O,{expires:-1}))},f.defaults={},f.withConverter=l,f}return l(function(){})})}(sc)),sc.exports}Sg();function Cg(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Ag(){return Cg().getCurrentUser()}function Og(){return new Promise((i,t)=>{const r=Ag();r===null&&t(null),r==null||r.getSession((s,l)=>{if(s!==null||l===null)return t(null);i({session:l,authenticatedUser:r})})})}async function Tg(){const{session:i}=await Og();return i==null?void 0:i.getIdToken().getJwtToken()}me.createContext(void 0);var Dg="undefined",Eg="object",Ro="browser",uc="cpu",lc="device",ma="engine",Lo="os",nr="name",ko="type",ya="vendor",xn="version",wa="architecture",_a="major",ba="model",Mg="console",Rg="mobile",Lg="tablet",kg="smarttv",Ig="wearable",Pg="embedded",$g=typeof window!==Dg,xa=$g&&window.navigator?window.navigator:void 0;xa&&xa.userAgentData&&xa.userAgentData;var Io=function(i){for(var t={},r=0;r<i.length;r++)t[i[r].toUpperCase()]=i[r];return t},Po=function(i){for(var t in i){var r=i[t];typeof r==Eg&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Po.call(i.init,[[Ro,[nr,xn,_a,ko]],[uc,[wa]],[lc,[ko,ba,ya]],[ma,[nr,xn]],[Lo,[nr,xn]]]),Po.call(i.isIgnore,[[Ro,[xn,_a]],[ma,[xn]],[Lo,[xn]]]),Po.call(i.isIgnoreRgx,[[Ro,/ ?browser$/i],[Lo,/ ?os$/i]]),Po.call(i.toString,[[Ro,[nr,xn]],[uc,[wa]],[lc,[ya,ba]],[ma,[nr,xn]],[Lo,[nr,xn]]]),i})(),Io([nr,xn,_a,ko]),Io([wa]),Io([ba,ya,ko,Mg,Rg,kg,Lg,Ig,Pg]),Io([nr,xn]);var Sa={exports:{}},Ng=Sa.exports,cc;function Bg(){return cc||(cc=1,function(i,t){(function(r,s){i.exports=s()})(Ng,()=>(()=>{var r={873:(f,c)=>{var b,C,O=function(){var L=function(U,I){var A=U,v=Q[I],p=null,_=0,d=null,m=[],T={},H=function(B,Y){p=function(W){for(var K=new Array(W),ae=0;ae<W;ae+=1){K[ae]=new Array(W);for(var Te=0;Te<W;Te+=1)K[ae][Te]=null}return K}(_=4*A+17),Z(0,0),Z(_-7,0),Z(0,_-7),pe(),le(),re(B,Y),A>=7&&we(B),d==null&&(d=Oe(A,v,m)),ce(d,Y)},Z=function(B,Y){for(var W=-1;W<=7;W+=1)if(!(B+W<=-1||_<=B+W))for(var K=-1;K<=7;K+=1)Y+K<=-1||_<=Y+K||(p[B+W][Y+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},le=function(){for(var B=8;B<_-8;B+=1)p[B][6]==null&&(p[B][6]=B%2==0);for(var Y=8;Y<_-8;Y+=1)p[6][Y]==null&&(p[6][Y]=Y%2==0)},pe=function(){for(var B=X.getPatternPosition(A),Y=0;Y<B.length;Y+=1)for(var W=0;W<B.length;W+=1){var K=B[Y],ae=B[W];if(p[K][ae]==null)for(var Te=-2;Te<=2;Te+=1)for(var u=-2;u<=2;u+=1)p[K+Te][ae+u]=Te==-2||Te==2||u==-2||u==2||Te==0&&u==0}},we=function(B){for(var Y=X.getBCHTypeNumber(A),W=0;W<18;W+=1){var K=!B&&(Y>>W&1)==1;p[Math.floor(W/3)][W%3+_-8-3]=K}for(W=0;W<18;W+=1)K=!B&&(Y>>W&1)==1,p[W%3+_-8-3][Math.floor(W/3)]=K},re=function(B,Y){for(var W=v<<3|Y,K=X.getBCHTypeInfo(W),ae=0;ae<15;ae+=1){var Te=!B&&(K>>ae&1)==1;ae<6?p[ae][8]=Te:ae<8?p[ae+1][8]=Te:p[_-15+ae][8]=Te}for(ae=0;ae<15;ae+=1)Te=!B&&(K>>ae&1)==1,ae<8?p[8][_-ae-1]=Te:ae<9?p[8][15-ae-1+1]=Te:p[8][15-ae-1]=Te;p[_-8][8]=!B},ce=function(B,Y){for(var W=-1,K=_-1,ae=7,Te=0,u=X.getMaskFunction(Y),h=_-1;h>0;h-=2)for(h==6&&(h-=1);;){for(var w=0;w<2;w+=1)if(p[K][h-w]==null){var N=!1;Te<B.length&&(N=(B[Te]>>>ae&1)==1),u(K,h-w)&&(N=!N),p[K][h-w]=N,(ae-=1)==-1&&(Te+=1,ae=7)}if((K+=W)<0||_<=K){K-=W,W=-W;break}}},Oe=function(B,Y,W){for(var K=q.getRSBlocks(B,Y),ae=ue(),Te=0;Te<W.length;Te+=1){var u=W[Te];ae.put(u.getMode(),4),ae.put(u.getLength(),X.getLengthInBits(u.getMode(),B)),u.write(ae)}var h=0;for(Te=0;Te<K.length;Te+=1)h+=K[Te].dataCount;if(ae.getLengthInBits()>8*h)throw"code length overflow. ("+ae.getLengthInBits()+">"+8*h+")";for(ae.getLengthInBits()+4<=8*h&&ae.put(0,4);ae.getLengthInBits()%8!=0;)ae.putBit(!1);for(;!(ae.getLengthInBits()>=8*h||(ae.put(236,8),ae.getLengthInBits()>=8*h));)ae.put(17,8);return function(w,N){for(var z=0,te=0,xe=0,Ee=new Array(N.length),Re=new Array(N.length),Se=0;Se<N.length;Se+=1){var Le=N[Se].dataCount,$e=N[Se].totalCount-Le;te=Math.max(te,Le),xe=Math.max(xe,$e),Ee[Se]=new Array(Le);for(var ke=0;ke<Ee[Se].length;ke+=1)Ee[Se][ke]=255&w.getBuffer()[ke+z];z+=Le;var Ke=X.getErrorCorrectPolynomial($e),He=se(Ee[Se],Ke.getLength()-1).mod(Ke);for(Re[Se]=new Array(Ke.getLength()-1),ke=0;ke<Re[Se].length;ke+=1){var tt=ke+He.getLength()-Re[Se].length;Re[Se][ke]=tt>=0?He.getAt(tt):0}}var dt=0;for(ke=0;ke<N.length;ke+=1)dt+=N[ke].totalCount;var St=new Array(dt),lt=0;for(ke=0;ke<te;ke+=1)for(Se=0;Se<N.length;Se+=1)ke<Ee[Se].length&&(St[lt]=Ee[Se][ke],lt+=1);for(ke=0;ke<xe;ke+=1)for(Se=0;Se<N.length;Se+=1)ke<Re[Se].length&&(St[lt]=Re[Se][ke],lt+=1);return St}(ae,K)};T.addData=function(B,Y){var W=null;switch(Y=Y||"Byte"){case"Numeric":W=ne(B);break;case"Alphanumeric":W=ee(B);break;case"Byte":W=fe(B);break;case"Kanji":W=de(B);break;default:throw"mode:"+Y}m.push(W),d=null},T.isDark=function(B,Y){if(B<0||_<=B||Y<0||_<=Y)throw B+","+Y;return p[B][Y]},T.getModuleCount=function(){return _},T.make=function(){if(A<1){for(var B=1;B<40;B++){for(var Y=q.getRSBlocks(B,v),W=ue(),K=0;K<m.length;K++){var ae=m[K];W.put(ae.getMode(),4),W.put(ae.getLength(),X.getLengthInBits(ae.getMode(),B)),ae.write(W)}var Te=0;for(K=0;K<Y.length;K++)Te+=Y[K].dataCount;if(W.getLengthInBits()<=8*Te)break}A=B}H(!1,function(){for(var u=0,h=0,w=0;w<8;w+=1){H(!0,w);var N=X.getLostPoint(T);(w==0||u>N)&&(u=N,h=w)}return h}())},T.createTableTag=function(B,Y){B=B||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(Y=Y===void 0?4*B:Y)+"px;",W+='">',W+="<tbody>";for(var K=0;K<T.getModuleCount();K+=1){W+="<tr>";for(var ae=0;ae<T.getModuleCount();ae+=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+=T.isDark(K,ae)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},T.createSvgTag=function(B,Y,W,K){var ae={};typeof arguments[0]=="object"&&(B=(ae=arguments[0]).cellSize,Y=ae.margin,W=ae.alt,K=ae.title),B=B||2,Y=Y===void 0?4*B:Y,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Te,u,h,w,N=T.getModuleCount()*B+2*Y,z="";for(w="l"+B+",0 0,"+B+" -"+B+",0 0,-"+B+"z ",z+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',z+=ae.scalable?"":' width="'+N+'px" height="'+N+'px"',z+=' viewBox="0 0 '+N+" "+N+'" ',z+=' preserveAspectRatio="xMinYMin meet"',z+=K.text||W.text?' role="img" aria-labelledby="'+be([K.id,W.id].join(" ").trim())+'"':"",z+=">",z+=K.text?'<title id="'+be(K.id)+'">'+be(K.text)+"</title>":"",z+=W.text?'<description id="'+be(W.id)+'">'+be(W.text)+"</description>":"",z+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',z+='<path d="',u=0;u<T.getModuleCount();u+=1)for(h=u*B+Y,Te=0;Te<T.getModuleCount();Te+=1)T.isDark(u,Te)&&(z+="M"+(Te*B+Y)+","+h+w);return(z+='" stroke="transparent" fill="black"/>')+"</svg>"},T.createDataURL=function(B,Y){B=B||2,Y=Y===void 0?4*B:Y;var W=T.getModuleCount()*B+2*Y,K=Y,ae=W-Y;return Ce(W,W,function(Te,u){if(K<=Te&&Te<ae&&K<=u&&u<ae){var h=Math.floor((Te-K)/B),w=Math.floor((u-K)/B);return T.isDark(w,h)?0:1}return 1})},T.createImgTag=function(B,Y,W){B=B||2,Y=Y===void 0?4*B:Y;var K=T.getModuleCount()*B+2*Y,ae="";return ae+="<img",ae+=' src="',ae+=T.createDataURL(B,Y),ae+='"',ae+=' width="',ae+=K,ae+='"',ae+=' height="',ae+=K,ae+='"',W&&(ae+=' alt="',ae+=be(W),ae+='"'),ae+"/>"};var be=function(B){for(var Y="",W=0;W<B.length;W+=1){var K=B.charAt(W);switch(K){case"<":Y+="&lt;";break;case">":Y+="&gt;";break;case"&":Y+="&amp;";break;case'"':Y+="&quot;";break;default:Y+=K}}return Y};return T.createASCII=function(B,Y){if((B=B||1)<2)return function(Ee){Ee=Ee===void 0?2:Ee;var Re,Se,Le,$e,ke,Ke=1*T.getModuleCount()+2*Ee,He=Ee,tt=Ke-Ee,dt={"██":"█","█ ":"▀"," █":"▄"," ":" "},St={"██":"▀","█ ":"▀"," █":" "," ":" "},lt="";for(Re=0;Re<Ke;Re+=2){for(Le=Math.floor((Re-He)/1),$e=Math.floor((Re+1-He)/1),Se=0;Se<Ke;Se+=1)ke="█",He<=Se&&Se<tt&&He<=Re&&Re<tt&&T.isDark(Le,Math.floor((Se-He)/1))&&(ke=" "),He<=Se&&Se<tt&&He<=Re+1&&Re+1<tt&&T.isDark($e,Math.floor((Se-He)/1))?ke+=" ":ke+="█",lt+=Ee<1&&Re+1>=tt?St[ke]:dt[ke];lt+=`
114
- `}return Ke%2&&Ee>0?lt.substring(0,lt.length-Ke-1)+Array(Ke+1).join("▀"):lt.substring(0,lt.length-1)}(Y);B-=1,Y=Y===void 0?2*B:Y;var W,K,ae,Te,u=T.getModuleCount()*B+2*Y,h=Y,w=u-Y,N=Array(B+1).join("██"),z=Array(B+1).join(" "),te="",xe="";for(W=0;W<u;W+=1){for(ae=Math.floor((W-h)/B),xe="",K=0;K<u;K+=1)Te=1,h<=K&&K<w&&h<=W&&W<w&&T.isDark(ae,Math.floor((K-h)/B))&&(Te=0),xe+=Te?N:z;for(ae=0;ae<B;ae+=1)te+=xe+`
115
- `}return te.substring(0,te.length-1)},T.renderTo2dContext=function(B,Y){Y=Y||2;for(var W=T.getModuleCount(),K=0;K<W;K++)for(var ae=0;ae<W;ae++)B.fillStyle=T.isDark(K,ae)?"black":"white",B.fillRect(K*Y,ae*Y,Y,Y)},T};L.stringToBytes=(L.stringToBytesFuncs={default:function(U){for(var I=[],A=0;A<U.length;A+=1){var v=U.charCodeAt(A);I.push(255&v)}return I}}).default,L.createStringToBytes=function(U,I){var A=function(){for(var p=Ae(U),_=function(){var le=p.read();if(le==-1)throw"eof";return le},d=0,m={};;){var T=p.read();if(T==-1)break;var H=_(),Z=_()<<8|_();m[String.fromCharCode(T<<8|H)]=Z,d+=1}if(d!=I)throw d+" != "+I;return m}(),v=63;return function(p){for(var _=[],d=0;d<p.length;d+=1){var m=p.charCodeAt(d);if(m<128)_.push(m);else{var T=A[p.charAt(d)];typeof T=="number"?(255&T)==T?_.push(T):(_.push(T>>>8),_.push(255&T)):_.push(v)}}return _}};var k,E,R,M,$,Q={L:1,M:0,Q:3,H:2},X=(k=[[],[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,R=7973,$=function(U){for(var I=0;U!=0;)I+=1,U>>>=1;return I},(M={}).getBCHTypeInfo=function(U){for(var I=U<<10;$(I)-$(E)>=0;)I^=E<<$(I)-$(E);return 21522^(U<<10|I)},M.getBCHTypeNumber=function(U){for(var I=U<<12;$(I)-$(R)>=0;)I^=R<<$(I)-$(R);return U<<12|I},M.getPatternPosition=function(U){return k[U-1]},M.getMaskFunction=function(U){switch(U){case 0:return function(I,A){return(I+A)%2==0};case 1:return function(I,A){return I%2==0};case 2:return function(I,A){return A%3==0};case 3:return function(I,A){return(I+A)%3==0};case 4:return function(I,A){return(Math.floor(I/2)+Math.floor(A/3))%2==0};case 5:return function(I,A){return I*A%2+I*A%3==0};case 6:return function(I,A){return(I*A%2+I*A%3)%2==0};case 7:return function(I,A){return(I*A%3+(I+A)%2)%2==0};default:throw"bad maskPattern:"+U}},M.getErrorCorrectPolynomial=function(U){for(var I=se([1],0),A=0;A<U;A+=1)I=I.multiply(se([1,J.gexp(A)],0));return I},M.getLengthInBits=function(U,I){if(1<=I&&I<10)switch(U){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+U}else if(I<27)switch(U){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+U}else{if(!(I<41))throw"type:"+I;switch(U){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+U}}},M.getLostPoint=function(U){for(var I=U.getModuleCount(),A=0,v=0;v<I;v+=1)for(var p=0;p<I;p+=1){for(var _=0,d=U.isDark(v,p),m=-1;m<=1;m+=1)if(!(v+m<0||I<=v+m))for(var T=-1;T<=1;T+=1)p+T<0||I<=p+T||m==0&&T==0||d==U.isDark(v+m,p+T)&&(_+=1);_>5&&(A+=3+_-5)}for(v=0;v<I-1;v+=1)for(p=0;p<I-1;p+=1){var H=0;U.isDark(v,p)&&(H+=1),U.isDark(v+1,p)&&(H+=1),U.isDark(v,p+1)&&(H+=1),U.isDark(v+1,p+1)&&(H+=1),H!=0&&H!=4||(A+=3)}for(v=0;v<I;v+=1)for(p=0;p<I-6;p+=1)U.isDark(v,p)&&!U.isDark(v,p+1)&&U.isDark(v,p+2)&&U.isDark(v,p+3)&&U.isDark(v,p+4)&&!U.isDark(v,p+5)&&U.isDark(v,p+6)&&(A+=40);for(p=0;p<I;p+=1)for(v=0;v<I-6;v+=1)U.isDark(v,p)&&!U.isDark(v+1,p)&&U.isDark(v+2,p)&&U.isDark(v+3,p)&&U.isDark(v+4,p)&&!U.isDark(v+5,p)&&U.isDark(v+6,p)&&(A+=40);var Z=0;for(p=0;p<I;p+=1)for(v=0;v<I;v+=1)U.isDark(v,p)&&(Z+=1);return A+Math.abs(100*Z/I/I-50)/5*10},M),J=function(){for(var U=new Array(256),I=new Array(256),A=0;A<8;A+=1)U[A]=1<<A;for(A=8;A<256;A+=1)U[A]=U[A-4]^U[A-5]^U[A-6]^U[A-8];for(A=0;A<255;A+=1)I[U[A]]=A;return{glog:function(v){if(v<1)throw"glog("+v+")";return I[v]},gexp:function(v){for(;v<0;)v+=255;for(;v>=256;)v-=255;return U[v]}}}();function se(U,I){if(U.length===void 0)throw U.length+"/"+I;var A=function(){for(var p=0;p<U.length&&U[p]==0;)p+=1;for(var _=new Array(U.length-p+I),d=0;d<U.length-p;d+=1)_[d]=U[d+p];return _}(),v={getAt:function(p){return A[p]},getLength:function(){return A.length},multiply:function(p){for(var _=new Array(v.getLength()+p.getLength()-1),d=0;d<v.getLength();d+=1)for(var m=0;m<p.getLength();m+=1)_[d+m]^=J.gexp(J.glog(v.getAt(d))+J.glog(p.getAt(m)));return se(_,0)},mod:function(p){if(v.getLength()-p.getLength()<0)return v;for(var _=J.glog(v.getAt(0))-J.glog(p.getAt(0)),d=new Array(v.getLength()),m=0;m<v.getLength();m+=1)d[m]=v.getAt(m);for(m=0;m<p.getLength();m+=1)d[m]^=J.gexp(J.glog(p.getAt(m))+_);return se(d,0).mod(p)}};return v}var q=function(){var U=[[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]],I=function(v,p){var _={};return _.totalCount=v,_.dataCount=p,_},A={getRSBlocks:function(v,p){var _=function(we,re){switch(re){case Q.L:return U[4*(we-1)+0];case Q.M:return U[4*(we-1)+1];case Q.Q:return U[4*(we-1)+2];case Q.H:return U[4*(we-1)+3];default:return}}(v,p);if(_===void 0)throw"bad rs block @ typeNumber:"+v+"/errorCorrectionLevel:"+p;for(var d=_.length/3,m=[],T=0;T<d;T+=1)for(var H=_[3*T+0],Z=_[3*T+1],le=_[3*T+2],pe=0;pe<H;pe+=1)m.push(I(Z,le));return m}};return A}(),ue=function(){var U=[],I=0,A={getBuffer:function(){return U},getAt:function(v){var p=Math.floor(v/8);return(U[p]>>>7-v%8&1)==1},put:function(v,p){for(var _=0;_<p;_+=1)A.putBit((v>>>p-_-1&1)==1)},getLengthInBits:function(){return I},putBit:function(v){var p=Math.floor(I/8);U.length<=p&&U.push(0),v&&(U[p]|=128>>>I%8),I+=1}};return A},ne=function(U){var I=U,A={getMode:function(){return 1},getLength:function(_){return I.length},write:function(_){for(var d=I,m=0;m+2<d.length;)_.put(v(d.substring(m,m+3)),10),m+=3;m<d.length&&(d.length-m==1?_.put(v(d.substring(m,m+1)),4):d.length-m==2&&_.put(v(d.substring(m,m+2)),7))}},v=function(_){for(var d=0,m=0;m<_.length;m+=1)d=10*d+p(_.charAt(m));return d},p=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;throw"illegal char :"+_};return A},ee=function(U){var I=U,A={getMode:function(){return 2},getLength:function(p){return I.length},write:function(p){for(var _=I,d=0;d+1<_.length;)p.put(45*v(_.charAt(d))+v(_.charAt(d+1)),11),d+=2;d<_.length&&p.put(v(_.charAt(d)),6)}},v=function(p){if("0"<=p&&p<="9")return p.charCodeAt(0)-48;if("A"<=p&&p<="Z")return p.charCodeAt(0)-65+10;switch(p){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 :"+p}};return A},fe=function(U){var I=L.stringToBytes(U);return{getMode:function(){return 4},getLength:function(A){return I.length},write:function(A){for(var v=0;v<I.length;v+=1)A.put(I[v],8)}}},de=function(U){var I=L.stringToBytesFuncs.SJIS;if(!I)throw"sjis not supported.";(function(){var p=I("友");if(p.length!=2||(p[0]<<8|p[1])!=38726)throw"sjis not supported."})();var A=I(U),v={getMode:function(){return 8},getLength:function(p){return~~(A.length/2)},write:function(p){for(var _=A,d=0;d+1<_.length;){var m=(255&_[d])<<8|255&_[d+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(d+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),p.put(m,13),d+=2}if(d<_.length)throw"illegal char at "+(d+1)}};return v},ie=function(){var U=[],I={writeByte:function(A){U.push(255&A)},writeShort:function(A){I.writeByte(A),I.writeByte(A>>>8)},writeBytes:function(A,v,p){v=v||0,p=p||A.length;for(var _=0;_<p;_+=1)I.writeByte(A[_+v])},writeString:function(A){for(var v=0;v<A.length;v+=1)I.writeByte(A.charCodeAt(v))},toByteArray:function(){return U},toString:function(){var A="";A+="[";for(var v=0;v<U.length;v+=1)v>0&&(A+=","),A+=U[v];return A+"]"}};return I},Ae=function(U){var I=U,A=0,v=0,p=0,_={read:function(){for(;p<8;){if(A>=I.length){if(p==0)return-1;throw"unexpected end of file./"+p}var m=I.charAt(A);if(A+=1,m=="=")return p=0,-1;m.match(/^\s$/)||(v=v<<6|d(m.charCodeAt(0)),p+=6)}var T=v>>>p-8&255;return p-=8,T}},d=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 _},Ce=function(U,I,A){for(var v=function(Z,le){var pe=Z,we=le,re=new Array(Z*le),ce={setPixel:function(B,Y,W){re[Y*pe+B]=W},write:function(B){B.writeString("GIF87a"),B.writeShort(pe),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(pe),B.writeShort(we),B.writeByte(0);var Y=Oe(2);B.writeByte(2);for(var W=0;Y.length-W>255;)B.writeByte(255),B.writeBytes(Y,W,255),W+=255;B.writeByte(Y.length-W),B.writeBytes(Y,W,Y.length-W),B.writeByte(0),B.writeString(";")}},Oe=function(B){for(var Y=1<<B,W=1+(1<<B),K=B+1,ae=be(),Te=0;Te<Y;Te+=1)ae.add(String.fromCharCode(Te));ae.add(String.fromCharCode(Y)),ae.add(String.fromCharCode(W));var u,h,w,N=ie(),z=(u=N,h=0,w=0,{write:function(Re,Se){if(Re>>>Se)throw"length over";for(;h+Se>=8;)u.writeByte(255&(Re<<h|w)),Se-=8-h,Re>>>=8-h,w=0,h=0;w|=Re<<h,h+=Se},flush:function(){h>0&&u.writeByte(w)}});z.write(Y,K);var te=0,xe=String.fromCharCode(re[te]);for(te+=1;te<re.length;){var Ee=String.fromCharCode(re[te]);te+=1,ae.contains(xe+Ee)?xe+=Ee:(z.write(ae.indexOf(xe),K),ae.size()<4095&&(ae.size()==1<<K&&(K+=1),ae.add(xe+Ee)),xe=Ee)}return z.write(ae.indexOf(xe),K),z.write(W,K),z.flush(),N.toByteArray()},be=function(){var B={},Y=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;B[K]=Y,Y+=1},size:function(){return Y},indexOf:function(K){return B[K]},contains:function(K){return B[K]!==void 0}};return W};return ce}(U,I),p=0;p<I;p+=1)for(var _=0;_<U;_+=1)v.setPixel(_,p,A(_,p));var d=ie();v.write(d);for(var m=function(){var Z=0,le=0,pe=0,we="",re={},ce=function(be){we+=String.fromCharCode(Oe(63&be))},Oe=function(be){if(!(be<0)){if(be<26)return 65+be;if(be<52)return be-26+97;if(be<62)return be-52+48;if(be==62)return 43;if(be==63)return 47}throw"n:"+be};return re.writeByte=function(be){for(Z=Z<<8|255&be,le+=8,pe+=1;le>=6;)ce(Z>>>le-6),le-=6},re.flush=function(){if(le>0&&(ce(Z<<6-le),Z=0,le=0),pe%3!=0)for(var be=3-pe%3,B=0;B<be;B+=1)we+="="},re.toString=function(){return we},re}(),T=d.toByteArray(),H=0;H<T.length;H+=1)m.writeByte(T[H]);return m.flush(),"data:image/gif;base64,"+m};return L}();O.stringToBytesFuncs["UTF-8"]=function(L){return function(k){for(var E=[],R=0;R<k.length;R++){var M=k.charCodeAt(R);M<128?E.push(M):M<2048?E.push(192|M>>6,128|63&M):M<55296||M>=57344?E.push(224|M>>12,128|M>>6&63,128|63&M):(R++,M=65536+((1023&M)<<10|1023&k.charCodeAt(R)),E.push(240|M>>18,128|M>>12&63,128|M>>6&63,128|63&M))}return E}(L)},(C=typeof(b=function(){return O})=="function"?b.apply(c,[]):b)===void 0||(f.exports=C)}},s={};function l(f){var c=s[f];if(c!==void 0)return c.exports;var b=s[f]={exports:{}};return r[f](b,b.exports,l),b.exports}l.n=f=>{var c=f&&f.__esModule?()=>f.default:()=>f;return l.d(c,{a:c}),c},l.d=(f,c)=>{for(var b in c)l.o(c,b)&&!l.o(f,b)&&Object.defineProperty(f,b,{enumerable:!0,get:c[b]})},l.o=(f,c)=>Object.prototype.hasOwnProperty.call(f,c);var g={};return(()=>{l.d(g,{default:()=>I});const f=A=>!!A&&typeof A=="object"&&!Array.isArray(A);function c(A,...v){if(!v.length)return A;const p=v.shift();return p!==void 0&&f(A)&&f(p)?(A=Object.assign({},A),Object.keys(p).forEach(_=>{const d=A[_],m=p[_];Array.isArray(d)&&Array.isArray(m)?A[_]=m:f(d)&&f(m)?A[_]=c(Object.assign({},d),m):A[_]=m}),c(A,...v)):A}function b(A,v){const p=document.createElement("a");p.download=v,p.href=A,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const C={L:.07,M:.15,Q:.25,H:.3};class O{constructor({svg:v,type:p,window:_}){this._svg=v,this._type=p,this._window=_}draw(v,p,_,d){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:v,y:p,size:_,getNeighbor:d})}_rotateFigure({x:v,y:p,size:_,rotation:d=0,draw:m}){var T;const H=v+_/2,Z=p+_/2;m(),(T=this._element)===null||T===void 0||T.setAttribute("transform",`rotate(${180*d/Math.PI},${H},${Z})`)}_basicDot(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(_+p/2)),this._element.setAttribute("cy",String(d+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(_)),this._element.setAttribute("y",String(d)),this._element.setAttribute("width",String(p)),this._element.setAttribute("height",String(p))}}))}_basicSideRounded(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${d}v ${p}h `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, 0 ${-p}`)}}))}_basicCornerRounded(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${d}v ${p}h ${p}v `+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_basicCornerExtraRounded(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${d}v ${p}h ${p}a ${p} ${p}, 0, 0, 0, ${-p} ${-p}`)}}))}_basicCornersRounded(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${d}v `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${p/2} ${p/2}h `+p/2+"v "+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_drawDot({x:v,y:p,size:_}){this._basicDot({x:v,y:p,size:_,rotation:0})}_drawSquare({x:v,y:p,size:_}){this._basicSquare({x:v,y:p,size:_,rotation:0})}_drawRounded({x:v,y:p,size:_,getNeighbor:d}){const m=d?+d(-1,0):0,T=d?+d(1,0):0,H=d?+d(0,-1):0,Z=d?+d(0,1):0,le=m+T+H+Z;if(le!==0)if(le>2||m&&T||H&&Z)this._basicSquare({x:v,y:p,size:_,rotation:0});else{if(le===2){let pe=0;return m&&H?pe=Math.PI/2:H&&T?pe=Math.PI:T&&Z&&(pe=-Math.PI/2),void this._basicCornerRounded({x:v,y:p,size:_,rotation:pe})}if(le===1){let pe=0;return H?pe=Math.PI/2:T?pe=Math.PI:Z&&(pe=-Math.PI/2),void this._basicSideRounded({x:v,y:p,size:_,rotation:pe})}}else this._basicDot({x:v,y:p,size:_,rotation:0})}_drawExtraRounded({x:v,y:p,size:_,getNeighbor:d}){const m=d?+d(-1,0):0,T=d?+d(1,0):0,H=d?+d(0,-1):0,Z=d?+d(0,1):0,le=m+T+H+Z;if(le!==0)if(le>2||m&&T||H&&Z)this._basicSquare({x:v,y:p,size:_,rotation:0});else{if(le===2){let pe=0;return m&&H?pe=Math.PI/2:H&&T?pe=Math.PI:T&&Z&&(pe=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:p,size:_,rotation:pe})}if(le===1){let pe=0;return H?pe=Math.PI/2:T?pe=Math.PI:Z&&(pe=-Math.PI/2),void this._basicSideRounded({x:v,y:p,size:_,rotation:pe})}}else this._basicDot({x:v,y:p,size:_,rotation:0})}_drawClassy({x:v,y:p,size:_,getNeighbor:d}){const m=d?+d(-1,0):0,T=d?+d(1,0):0,H=d?+d(0,-1):0,Z=d?+d(0,1):0;m+T+H+Z!==0?m||H?T||Z?this._basicSquare({x:v,y:p,size:_,rotation:0}):this._basicCornerRounded({x:v,y:p,size:_,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:p,size:_,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:p,size:_,rotation:Math.PI/2})}_drawClassyRounded({x:v,y:p,size:_,getNeighbor:d}){const m=d?+d(-1,0):0,T=d?+d(1,0):0,H=d?+d(0,-1):0,Z=d?+d(0,1):0;m+T+H+Z!==0?m||H?T||Z?this._basicSquare({x:v,y:p,size:_,rotation:0}):this._basicCornerExtraRounded({x:v,y:p,size:_,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:p,size:_,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:p,size:_,rotation:Math.PI/2})}}const L={dot:"dot",square:"square",extraRounded:"extra-rounded"},k=Object.values(L);class E{constructor({svg:v,type:p,window:_}){this._svg=v,this._type=p,this._window=_}draw(v,p,_,d){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:v,y:p,size:_,rotation:d})}_rotateFigure({x:v,y:p,size:_,rotation:d=0,draw:m}){var T;const H=v+_/2,Z=p+_/2;m(),(T=this._element)===null||T===void 0||T.setAttribute("transform",`rotate(${180*d/Math.PI},${H},${Z})`)}_basicDot(v){const{size:p,x:_,y:d}=v,m=p/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_+p/2} ${d}a ${p/2} ${p/2} 0 1 0 0.1 0zm 0 ${m}a ${p/2-m} ${p/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(v){const{size:p,x:_,y:d}=v,m=p/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_} ${d}v ${p}h ${p}v `+-p+`zM ${_+m} ${d+m}h `+(p-2*m)+"v "+(p-2*m)+"h "+(2*m-p)+"z")}}))}_basicExtraRounded(v){const{size:p,x:_,y:d}=v,m=p/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_} ${d+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 ${_+2.5*m} ${d+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:v,y:p,size:_,rotation:d}){this._basicDot({x:v,y:p,size:_,rotation:d})}_drawSquare({x:v,y:p,size:_,rotation:d}){this._basicSquare({x:v,y:p,size:_,rotation:d})}_drawExtraRounded({x:v,y:p,size:_,rotation:d}){this._basicExtraRounded({x:v,y:p,size:_,rotation:d})}}const R={dot:"dot",square:"square"},M=Object.values(R);class ${constructor({svg:v,type:p,window:_}){this._svg=v,this._type=p,this._window=_}draw(v,p,_,d){let m;m=this._type===R.square?this._drawSquare:this._drawDot,m.call(this,{x:v,y:p,size:_,rotation:d})}_rotateFigure({x:v,y:p,size:_,rotation:d=0,draw:m}){var T;const H=v+_/2,Z=p+_/2;m(),(T=this._element)===null||T===void 0||T.setAttribute("transform",`rotate(${180*d/Math.PI},${H},${Z})`)}_basicDot(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(_+p/2)),this._element.setAttribute("cy",String(d+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(v){const{size:p,x:_,y:d}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(_)),this._element.setAttribute("y",String(d)),this._element.setAttribute("width",String(p)),this._element.setAttribute("height",String(p))}}))}_drawDot({x:v,y:p,size:_,rotation:d}){this._basicDot({x:v,y:p,size:_,rotation:d})}_drawSquare({x:v,y:p,size:_,rotation:d}){this._basicSquare({x:v,y:p,size:_,rotation:d})}}const Q="circle",X=[[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]],J=[[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 se{constructor(v,p){this._roundSize=_=>this._options.dotsOptions.roundSize?Math.floor(_):_,this._window=p,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(v.width)),this._element.setAttribute("height",String(v.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),v.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${v.width} ${v.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=v.image,this._instanceId=se.instanceCount++,this._options=v}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(v){const p=v.getModuleCount(),_=Math.min(this._options.width,this._options.height)-2*this._options.margin,d=this._options.shape===Q?_/Math.sqrt(2):_,m=this._roundSize(d/p);let T={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=v,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:H,qrOptions:Z}=this._options,le=H.imageSize*C[Z.errorCorrectionLevel],pe=Math.floor(le*p*p);T=function({originalHeight:we,originalWidth:re,maxHiddenDots:ce,maxHiddenAxisDots:Oe,dotSize:be}){const B={x:0,y:0},Y={x:0,y:0};if(we<=0||re<=0||ce<=0||be<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/re;return B.x=Math.floor(Math.sqrt(ce/W)),B.x<=0&&(B.x=1),Oe&&Oe<B.x&&(B.x=Oe),B.x%2==0&&B.x--,Y.x=B.x*be,B.y=1+2*Math.ceil((B.x*W-1)/2),Y.y=Math.round(Y.x*W),(B.y*B.x>ce||Oe&&Oe<B.y)&&(Oe&&Oe<B.y?(B.y=Oe,B.y%2==0&&B.x--):B.y-=2,Y.y=B.y*be,B.x=1+2*Math.ceil((B.y/W-1)/2),Y.x=Math.round(Y.y/W)),{height:Y.y,width:Y.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:pe,maxHiddenAxisDots:p-14,dotSize:m})}this.drawBackground(),this.drawDots((H,Z)=>{var le,pe,we,re,ce,Oe;return!(this._options.imageOptions.hideBackgroundDots&&H>=(p-T.hideYDots)/2&&H<(p+T.hideYDots)/2&&Z>=(p-T.hideXDots)/2&&Z<(p+T.hideXDots)/2||!((le=X[H])===null||le===void 0)&&le[Z]||!((pe=X[H-p+7])===null||pe===void 0)&&pe[Z]||!((we=X[H])===null||we===void 0)&&we[Z-p+7]||!((re=J[H])===null||re===void 0)&&re[Z]||!((ce=J[H-p+7])===null||ce===void 0)&&ce[Z]||!((Oe=J[H])===null||Oe===void 0)&&Oe[Z-p+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:T.width,height:T.height,count:p,dotSize:m})}drawBackground(){var v,p,_;const d=this._element,m=this._options;if(d){const T=(v=m.backgroundOptions)===null||v===void 0?void 0:v.gradient,H=(p=m.backgroundOptions)===null||p===void 0?void 0:p.color;let Z=m.height,le=m.width;if(T||H){const pe=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),!((_=m.backgroundOptions)===null||_===void 0)&&_.round&&(Z=le=Math.min(m.width,m.height),pe.setAttribute("rx",String(Z/2*m.backgroundOptions.round))),pe.setAttribute("x",String(this._roundSize((m.width-le)/2))),pe.setAttribute("y",String(this._roundSize((m.height-Z)/2))),pe.setAttribute("width",String(le)),pe.setAttribute("height",String(Z)),this._backgroundClipPath.appendChild(pe),this._createColor({options:T,color:H,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(v){var p,_;if(!this._qr)throw"QR code is not defined";const d=this._options,m=this._qr.getModuleCount();if(m>d.width||m>d.height)throw"The canvas is too small.";const T=Math.min(d.width,d.height)-2*d.margin,H=d.shape===Q?T/Math.sqrt(2):T,Z=this._roundSize(H/m),le=this._roundSize((d.width-m*Z)/2),pe=this._roundSize((d.height-m*Z)/2),we=new O({svg:this._element,type:d.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:(p=d.dotsOptions)===null||p===void 0?void 0:p.gradient,color:d.dotsOptions.color,additionalRotation:0,x:0,y:0,height:d.height,width:d.width,name:`dot-color-${this._instanceId}`});for(let re=0;re<m;re++)for(let ce=0;ce<m;ce++)v&&!v(re,ce)||!((_=this._qr)===null||_===void 0)&&_.isDark(re,ce)&&(we.draw(le+ce*Z,pe+re*Z,Z,(Oe,be)=>!(ce+Oe<0||re+be<0||ce+Oe>=m||re+be>=m)&&!(v&&!v(re+be,ce+Oe))&&!!this._qr&&this._qr.isDark(re+be,ce+Oe)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(d.shape===Q){const re=this._roundSize((T/Z-m)/2),ce=m+2*re,Oe=le-re*Z,be=pe-re*Z,B=[],Y=this._roundSize(ce/2);for(let W=0;W<ce;W++){B[W]=[];for(let K=0;K<ce;K++)W>=re-1&&W<=ce-re&&K>=re-1&&K<=ce-re||Math.sqrt((W-Y)*(W-Y)+(K-Y)*(K-Y))>Y?B[W][K]=0:B[W][K]=this._qr.isDark(K-2*re<0?K:K>=m?K-2*re:K-re,W-2*re<0?W:W>=m?W-2*re:W-re)?1:0}for(let W=0;W<ce;W++)for(let K=0;K<ce;K++)B[W][K]&&(we.draw(Oe+K*Z,be+W*Z,Z,(ae,Te)=>{var u;return!!(!((u=B[W+Te])===null||u===void 0)&&u[K+ae])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const v=this._element,p=this._options;if(!v)throw"Element code is not defined";const _=this._qr.getModuleCount(),d=Math.min(p.width,p.height)-2*p.margin,m=p.shape===Q?d/Math.sqrt(2):d,T=this._roundSize(m/_),H=7*T,Z=3*T,le=this._roundSize((p.width-_*T)/2),pe=this._roundSize((p.height-_*T)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,re,ce])=>{var Oe,be,B,Y,W,K,ae,Te,u,h,w,N,z,te;const xe=le+we*T*(_-7),Ee=pe+re*T*(_-7);let Re=this._dotsClipPath,Se=this._dotsClipPath;if((!((Oe=p.cornersSquareOptions)===null||Oe===void 0)&&Oe.gradient||!((be=p.cornersSquareOptions)===null||be===void 0)&&be.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${we}-${re}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Se=Re,this._createColor({options:(B=p.cornersSquareOptions)===null||B===void 0?void 0:B.gradient,color:(Y=p.cornersSquareOptions)===null||Y===void 0?void 0:Y.color,additionalRotation:ce,x:xe,y:Ee,height:H,width:H,name:`corners-square-color-${we}-${re}-${this._instanceId}`})),((W=p.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&k.includes(p.cornersSquareOptions.type)){const Le=new E({svg:this._element,type:p.cornersSquareOptions.type,window:this._window});Le.draw(xe,Ee,H,ce),Le._element&&Re&&Re.appendChild(Le._element)}else{const Le=new O({svg:this._element,type:((K=p.cornersSquareOptions)===null||K===void 0?void 0:K.type)||p.dotsOptions.type,window:this._window});for(let $e=0;$e<X.length;$e++)for(let ke=0;ke<X[$e].length;ke++)!((ae=X[$e])===null||ae===void 0)&&ae[ke]&&(Le.draw(xe+ke*T,Ee+$e*T,T,(Ke,He)=>{var tt;return!!(!((tt=X[$e+He])===null||tt===void 0)&&tt[ke+Ke])}),Le._element&&Re&&Re.appendChild(Le._element))}if((!((Te=p.cornersDotOptions)===null||Te===void 0)&&Te.gradient||!((u=p.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}-${re}-${this._instanceId}`),this._defs.appendChild(Se),this._cornersDotClipPath=Se,this._createColor({options:(h=p.cornersDotOptions)===null||h===void 0?void 0:h.gradient,color:(w=p.cornersDotOptions)===null||w===void 0?void 0:w.color,additionalRotation:ce,x:xe+2*T,y:Ee+2*T,height:Z,width:Z,name:`corners-dot-color-${we}-${re}-${this._instanceId}`})),((N=p.cornersDotOptions)===null||N===void 0?void 0:N.type)&&M.includes(p.cornersDotOptions.type)){const Le=new $({svg:this._element,type:p.cornersDotOptions.type,window:this._window});Le.draw(xe+2*T,Ee+2*T,Z,ce),Le._element&&Se&&Se.appendChild(Le._element)}else{const Le=new O({svg:this._element,type:((z=p.cornersDotOptions)===null||z===void 0?void 0:z.type)||p.dotsOptions.type,window:this._window});for(let $e=0;$e<J.length;$e++)for(let ke=0;ke<J[$e].length;ke++)!((te=J[$e])===null||te===void 0)&&te[ke]&&(Le.draw(xe+ke*T,Ee+$e*T,T,(Ke,He)=>{var tt;return!!(!((tt=J[$e+He])===null||tt===void 0)&&tt[ke+Ke])}),Le._element&&Se&&Se.appendChild(Le._element))}})}loadImage(){return new Promise((v,p)=>{var _;const d=this._options;if(!d.image)return p("Image is not defined");if(!((_=d.nodeCanvas)===null||_===void 0)&&_.loadImage)d.nodeCanvas.loadImage(d.image).then(m=>{var T,H;if(this._image=m,this._options.imageOptions.saveAsBlob){const Z=(T=d.nodeCanvas)===null||T===void 0?void 0:T.createCanvas(this._image.width,this._image.height);(H=Z==null?void 0:Z.getContext("2d"))===null||H===void 0||H.drawImage(m,0,0),this._imageUri=Z==null?void 0:Z.toDataURL()}v()}).catch(p);else{const m=new this._window.Image;typeof d.imageOptions.crossOrigin=="string"&&(m.crossOrigin=d.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(T,H){return new Promise(Z=>{const le=new H.XMLHttpRequest;le.onload=function(){const pe=new H.FileReader;pe.onloadend=function(){Z(pe.result)},pe.readAsDataURL(le.response)},le.open("GET",T),le.responseType="blob",le.send()})}(d.image||"",this._window)),v()},m.src=d.image}})}async drawImage({width:v,height:p,count:_,dotSize:d}){const m=this._options,T=this._roundSize((m.width-_*d)/2),H=this._roundSize((m.height-_*d)/2),Z=T+this._roundSize(m.imageOptions.margin+(_*d-v)/2),le=H+this._roundSize(m.imageOptions.margin+(_*d-p)/2),pe=v-2*m.imageOptions.margin,we=p-2*m.imageOptions.margin,re=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");re.setAttribute("href",this._imageUri||""),re.setAttribute("x",String(Z)),re.setAttribute("y",String(le)),re.setAttribute("width",`${pe}px`),re.setAttribute("height",`${we}px`),this._element.appendChild(re)}_createColor({options:v,color:p,additionalRotation:_,x:d,y:m,height:T,width:H,name:Z}){const le=H>T?H:T,pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(pe.setAttribute("x",String(d)),pe.setAttribute("y",String(m)),pe.setAttribute("height",String(T)),pe.setAttribute("width",String(H)),pe.setAttribute("clip-path",`url('#clip-path-${Z}')`),v){let we;if(v.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",Z),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(d+H/2)),we.setAttribute("fy",String(m+T/2)),we.setAttribute("cx",String(d+H/2)),we.setAttribute("cy",String(m+T/2)),we.setAttribute("r",String(le/2));else{const re=((v.rotation||0)+_)%(2*Math.PI),ce=(re+2*Math.PI)%(2*Math.PI);let Oe=d+H/2,be=m+T/2,B=d+H/2,Y=m+T/2;ce>=0&&ce<=.25*Math.PI||ce>1.75*Math.PI&&ce<=2*Math.PI?(Oe-=H/2,be-=T/2*Math.tan(re),B+=H/2,Y+=T/2*Math.tan(re)):ce>.25*Math.PI&&ce<=.75*Math.PI?(be-=T/2,Oe-=H/2/Math.tan(re),Y+=T/2,B+=H/2/Math.tan(re)):ce>.75*Math.PI&&ce<=1.25*Math.PI?(Oe+=H/2,be+=T/2*Math.tan(re),B-=H/2,Y-=T/2*Math.tan(re)):ce>1.25*Math.PI&&ce<=1.75*Math.PI&&(be+=T/2,Oe+=H/2/Math.tan(re),Y-=T/2,B-=H/2/Math.tan(re)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",Z),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(Oe))),we.setAttribute("y1",String(Math.round(be))),we.setAttribute("x2",String(Math.round(B))),we.setAttribute("y2",String(Math.round(Y)))}v.colorStops.forEach(({offset:re,color:ce})=>{const Oe=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Oe.setAttribute("offset",100*re+"%"),Oe.setAttribute("stop-color",ce),we.appendChild(Oe)}),pe.setAttribute("fill",`url('#${Z}')`),this._defs.appendChild(we)}else p&&pe.setAttribute("fill",p);this._element.appendChild(pe)}}se.instanceCount=0;const q=se,ue="canvas",ne={};for(let A=0;A<=40;A++)ne[A]=A;const ee={type:ue,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ne[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 fe(A){const v=Object.assign({},A);if(!v.colorStops||!v.colorStops.length)throw"Field 'colorStops' is required in gradient";return v.rotation?v.rotation=Number(v.rotation):v.rotation=0,v.colorStops=v.colorStops.map(p=>Object.assign(Object.assign({},p),{offset:Number(p.offset)})),v}function de(A){const v=Object.assign({},A);return v.width=Number(v.width),v.height=Number(v.height),v.margin=Number(v.margin),v.imageOptions=Object.assign(Object.assign({},v.imageOptions),{hideBackgroundDots:!!v.imageOptions.hideBackgroundDots,imageSize:Number(v.imageOptions.imageSize),margin:Number(v.imageOptions.margin)}),v.margin>Math.min(v.width,v.height)&&(v.margin=Math.min(v.width,v.height)),v.dotsOptions=Object.assign({},v.dotsOptions),v.dotsOptions.gradient&&(v.dotsOptions.gradient=fe(v.dotsOptions.gradient)),v.cornersSquareOptions&&(v.cornersSquareOptions=Object.assign({},v.cornersSquareOptions),v.cornersSquareOptions.gradient&&(v.cornersSquareOptions.gradient=fe(v.cornersSquareOptions.gradient))),v.cornersDotOptions&&(v.cornersDotOptions=Object.assign({},v.cornersDotOptions),v.cornersDotOptions.gradient&&(v.cornersDotOptions.gradient=fe(v.cornersDotOptions.gradient))),v.backgroundOptions&&(v.backgroundOptions=Object.assign({},v.backgroundOptions),v.backgroundOptions.gradient&&(v.backgroundOptions.gradient=fe(v.backgroundOptions.gradient))),v}var ie=l(873),Ae=l.n(ie);function Ce(A){if(!A)throw new Error("Extension must be defined");A[0]==="."&&(A=A.substring(1));const v={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[A.toLowerCase()];if(!v)throw new Error(`Extension "${A}" is not supported`);return v}class U{constructor(v){v!=null&&v.jsdom?this._window=new v.jsdom("",{resources:"usable"}).window:this._window=window,this._options=v?de(c(ee,v)):ee,this.update()}static _clearContainer(v){v&&(v.innerHTML="")}_setupSvg(){if(!this._qr)return;const v=new q(this._options,this._window);this._svg=v.getElement(),this._svgDrawingPromise=v.drawQR(this._qr).then(()=>{var p;this._svg&&((p=this._extension)===null||p===void 0||p.call(this,v.getElement(),this._options))})}_setupCanvas(){var v,p;this._qr&&(!((v=this._options.nodeCanvas)===null||v===void 0)&&v.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(p=this._svgDrawingPromise)===null||p===void 0?void 0:p.then(()=>{var _;if(!this._svg)return;const d=this._svg,m=new this._window.XMLSerializer().serializeToString(d),T=btoa(m),H=`data:${Ce("svg")};base64,${T}`;if(!((_=this._options.nodeCanvas)===null||_===void 0)&&_.loadImage)return this._options.nodeCanvas.loadImage(H).then(Z=>{var le,pe;Z.width=this._options.width,Z.height=this._options.height,(pe=(le=this._nodeCanvas)===null||le===void 0?void 0:le.getContext("2d"))===null||pe===void 0||pe.drawImage(Z,0,0)});{const Z=new this._window.Image;return new Promise(le=>{Z.onload=()=>{var pe,we;(we=(pe=this._domCanvas)===null||pe===void 0?void 0:pe.getContext("2d"))===null||we===void 0||we.drawImage(Z,0,0),le()},Z.src=H})}}))}async _getElement(v="png"){if(!this._qr)throw"QR code is empty";return v.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(v){U._clearContainer(this._container),this._options=v?de(c(this._options,v)):this._options,this._options.data&&(this._qr=Ae()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(p){switch(!0){case/^[0-9]*$/.test(p):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(p):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ue?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(v){if(v){if(typeof v.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ue?this._domCanvas&&v.appendChild(this._domCanvas):this._svg&&v.appendChild(this._svg),this._container=v}}applyExtension(v){if(!v)throw"Extension function should be defined.";this._extension=v,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(v="png"){if(!this._qr)throw"QR code is empty";const p=await this._getElement(v),_=Ce(v);if(!p)return null;if(v.toLowerCase()==="svg"){const d=`<?xml version="1.0" standalone="no"?>\r
116
- ${new this._window.XMLSerializer().serializeToString(p)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(d):new Blob([d],{type:_})}return new Promise(d=>{const m=p;if("toBuffer"in m)if(_==="image/png")d(m.toBuffer(_));else if(_==="image/jpeg")d(m.toBuffer(_));else{if(_!=="application/pdf")throw Error("Unsupported extension");d(m.toBuffer(_))}else"toBlob"in m&&m.toBlob(d,_,1)})}async download(v){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let p="png",_="qr";typeof v=="string"?(p=v,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof v=="object"&&v!==null&&(v.name&&(_=v.name),v.extension&&(p=v.extension));const d=await this._getElement(p);if(d)if(p.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(d);m=`<?xml version="1.0" standalone="no"?>\r
117
- `+m,b(`data:${Ce(p)};charset=utf-8,${encodeURIComponent(m)}`,`${_}.svg`)}else b(d.toDataURL(Ce(p)),`${_}.${p}`)}}const I=U})(),g.default})())}(Sa)),Sa.exports}Bg();const fc=me.createContext(void 0);function jg(i){const t=an.c(9),{children:r,baseUrl:s,queryClient:l}=i;let g;t[0]!==s||t[1]!==l?(g={baseUrl:s,queryClient:l},t[0]=s,t[1]=l,t[2]=g):g=t[2];let f;t[3]!==r||t[4]!==l?(f=D.jsx(xl,{client:l,children:r}),t[3]=r,t[4]=l,t[5]=f):f=t[5];let c;return t[6]!==g||t[7]!==f?(c=D.jsx(fc.Provider,{value:g,children:f}),t[6]=g,t[7]=f,t[8]=c):c=t[8],c}function rr(){const i=me.useContext(fc);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Ug(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function Lr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Tg()??""}`,...Ug()}}async function hc(i){return fetch(i,{method:"GET",headers:await Lr()}).then(async t=>{if(t.status>=400)throw await t.text();return t}).then(t=>t.json()).then(t=>t)}async function dc(i,t){return fetch(`${i}/${t}`,{method:"GET",headers:await Lr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function pc(i,t){await fetch(`${i}/${t}`,{method:"DELETE",headers:await Lr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function gc(i,t){return fetch(i,{method:"POST",headers:await Lr(),body:JSON.stringify(t)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?t:r.json()).then(r=>r)}async function zg(i,t,r){return fetch(t,{method:i,headers:await Lr(),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 vc(i,t){return fetch(`${i}/${t.id}`,{method:"PUT",headers:await Lr(),body:JSON.stringify(t)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?t:r.json()).then(r=>r)}function mc(i,t,r){const s=an.c(13),{baseUrl:l}=rr();let g;if(s[0]!==r||s[1]!==t){let C;s[3]!==r?(C=r==null?void 0:r.toString(),s[3]=r,s[4]=C):C=s[4],g=[...t.map(Fg),String(C)],s[0]=r,s[1]=t,s[2]=g}else g=s[2];let f;s[5]!==i||s[6]!==l||s[7]!==r?(f=()=>dc(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=f):f=s[8];const c=!!r;let b;return s[9]!==g||s[10]!==f||s[11]!==c?(b={queryKey:g,queryFn:f,enabled:c},s[9]=g,s[10]=f,s[11]=c,s[12]=b):b=s[12],Ol(b)}function Fg(i){return i.toString()}function yc(i,t){const r=an.c(8),{baseUrl:s}=rr();let l;r[0]!==t?(l=[...t.map(Wg)],r[0]=t,r[1]=l):l=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>hc(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let f;return r[5]!==l||r[6]!==g?(f={queryKey:l,queryFn:g},r[5]=l,r[6]=g,r[7]=f):f=r[7],Ol(f)}function Wg(i){return i.toString()}function wc(i,t){const r=an.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==t?(g=[...t.map(qg)],r[0]=t,r[1]=g):g=r[1];let f;r[2]!==i||r[3]!==s?(f=b=>gc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=f):f=r[4];let c;return r[5]!==l||r[6]!==t||r[7]!==g||r[8]!==f?(c={mutationKey:g,mutationFn:f,onSettled(){return l.invalidateQueries({queryKey:[...t.map(Yg)]})}},r[5]=l,r[6]=t,r[7]=g,r[8]=f,r[9]=c):c=r[9],ia(c)}function Yg(i){return i.toString()}function qg(i){return i.toString()}function Ca(i,t){const r=an.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==t?(g=[...t.map(Gg)],r[0]=t,r[1]=g):g=r[1];let f;r[2]!==i||r[3]!==s?(f=b=>vc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=f):f=r[4];let c;return r[5]!==l||r[6]!==t||r[7]!==g||r[8]!==f?(c={mutationKey:g,mutationFn:f,onSettled(){return l.invalidateQueries({queryKey:[...t.map(Hg)]})}},r[5]=l,r[6]=t,r[7]=g,r[8]=f,r[9]=c):c=r[9],ia(c)}function Hg(i){return i.toString()}function Gg(i){return i.toString()}function _c(i,t){const r=an.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==t?(g=[...t.map(Zg)],r[0]=t,r[1]=g):g=r[1];let f;r[2]!==i||r[3]!==s?(f=b=>pc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=f):f=r[4];let c;return r[5]!==l||r[6]!==t||r[7]!==g||r[8]!==f?(c={mutationKey:g,mutationFn:f,onSettled(){return l.invalidateQueries({queryKey:[...t.map(Vg)]})}},r[5]=l,r[6]=t,r[7]=g,r[8]=f,r[9]=c):c=r[9],ia(c)}function Vg(i){return i.toString()}function Zg(i){return i.toString()}var $o={exports:{}},Kg=$o.exports,bc;function Qg(){return bc||(bc=1,function(i,t){(function(r,s){i.exports=s()})(Kg,function(){var r=1e3,s=6e4,l=36e5,g="millisecond",f="second",c="minute",b="hour",C="day",O="week",L="month",k="quarter",E="year",R="date",M="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|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,X={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(U){var I=["th","st","nd","rd"],A=U%100;return"["+U+(I[(A-20)%10]||I[A]||I[0])+"]"}},J=function(U,I,A){var v=String(U);return!v||v.length>=I?U:""+Array(I+1-v.length).join(A)+U},se={s:J,z:function(U){var I=-U.utcOffset(),A=Math.abs(I),v=Math.floor(A/60),p=A%60;return(I<=0?"+":"-")+J(v,2,"0")+":"+J(p,2,"0")},m:function U(I,A){if(I.date()<A.date())return-U(A,I);var v=12*(A.year()-I.year())+(A.month()-I.month()),p=I.clone().add(v,L),_=A-p<0,d=I.clone().add(v+(_?-1:1),L);return+(-(v+(A-p)/(_?p-d:d-p))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:L,y:E,w:O,d:C,D:R,h:b,m:c,s:f,ms:g,Q:k}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},q="en",ue={};ue[q]=X;var ne="$isDayjsObject",ee=function(U){return U instanceof Ae||!(!U||!U[ne])},fe=function U(I,A,v){var p;if(!I)return q;if(typeof I=="string"){var _=I.toLowerCase();ue[_]&&(p=_),A&&(ue[_]=A,p=_);var d=I.split("-");if(!p&&d.length>1)return U(d[0])}else{var m=I.name;ue[m]=I,p=m}return!v&&p&&(q=p),p||!v&&q},de=function(U,I){if(ee(U))return U.clone();var A=typeof I=="object"?I:{};return A.date=U,A.args=arguments,new Ae(A)},ie=se;ie.l=fe,ie.i=ee,ie.w=function(U,I){return de(U,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var Ae=function(){function U(A){this.$L=fe(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[ne]=!0}var I=U.prototype;return I.parse=function(A){this.$d=function(v){var p=v.date,_=v.utc;if(p===null)return new Date(NaN);if(ie.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var d=p.match($);if(d){var m=d[2]-1||0,T=(d[7]||"0").substring(0,3);return _?new Date(Date.UTC(d[1],m,d[3]||1,d[4]||0,d[5]||0,d[6]||0,T)):new Date(d[1],m,d[3]||1,d[4]||0,d[5]||0,d[6]||0,T)}}return new Date(p)}(A),this.init()},I.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},I.$utils=function(){return ie},I.isValid=function(){return this.$d.toString()!==M},I.isSame=function(A,v){var p=de(A);return this.startOf(v)<=p&&p<=this.endOf(v)},I.isAfter=function(A,v){return de(A)<this.startOf(v)},I.isBefore=function(A,v){return this.endOf(v)<de(A)},I.$g=function(A,v,p){return ie.u(A)?this[v]:this.set(p,A)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(A,v){var p=this,_=!!ie.u(v)||v,d=ie.p(A),m=function(ce,Oe){var be=ie.w(p.$u?Date.UTC(p.$y,Oe,ce):new Date(p.$y,Oe,ce),p);return _?be:be.endOf(C)},T=function(ce,Oe){return ie.w(p.toDate()[ce].apply(p.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Oe)),p)},H=this.$W,Z=this.$M,le=this.$D,pe="set"+(this.$u?"UTC":"");switch(d){case E:return _?m(1,0):m(31,11);case L:return _?m(1,Z):m(0,Z+1);case O:var we=this.$locale().weekStart||0,re=(H<we?H+7:H)-we;return m(_?le-re:le+(6-re),Z);case C:case R:return T(pe+"Hours",0);case b:return T(pe+"Minutes",1);case c:return T(pe+"Seconds",2);case f:return T(pe+"Milliseconds",3);default:return this.clone()}},I.endOf=function(A){return this.startOf(A,!1)},I.$set=function(A,v){var p,_=ie.p(A),d="set"+(this.$u?"UTC":""),m=(p={},p[C]=d+"Date",p[R]=d+"Date",p[L]=d+"Month",p[E]=d+"FullYear",p[b]=d+"Hours",p[c]=d+"Minutes",p[f]=d+"Seconds",p[g]=d+"Milliseconds",p)[_],T=_===C?this.$D+(v-this.$W):v;if(_===L||_===E){var H=this.clone().set(R,1);H.$d[m](T),H.init(),this.$d=H.set(R,Math.min(this.$D,H.daysInMonth())).$d}else m&&this.$d[m](T);return this.init(),this},I.set=function(A,v){return this.clone().$set(A,v)},I.get=function(A){return this[ie.p(A)]()},I.add=function(A,v){var p,_=this;A=Number(A);var d=ie.p(v),m=function(Z){var le=de(_);return ie.w(le.date(le.date()+Math.round(Z*A)),_)};if(d===L)return this.set(L,this.$M+A);if(d===E)return this.set(E,this.$y+A);if(d===C)return m(1);if(d===O)return m(7);var T=(p={},p[c]=s,p[b]=l,p[f]=r,p)[d]||1,H=this.$d.getTime()+A*T;return ie.w(H,this)},I.subtract=function(A,v){return this.add(-1*A,v)},I.format=function(A){var v=this,p=this.$locale();if(!this.isValid())return p.invalidDate||M;var _=A||"YYYY-MM-DDTHH:mm:ssZ",d=ie.z(this),m=this.$H,T=this.$m,H=this.$M,Z=p.weekdays,le=p.months,pe=p.meridiem,we=function(Oe,be,B,Y){return Oe&&(Oe[be]||Oe(v,_))||B[be].slice(0,Y)},re=function(Oe){return ie.s(m%12||12,Oe,"0")},ce=pe||function(Oe,be,B){var Y=Oe<12?"AM":"PM";return B?Y.toLowerCase():Y};return _.replace(Q,function(Oe,be){return be||function(B){switch(B){case"YY":return String(v.$y).slice(-2);case"YYYY":return ie.s(v.$y,4,"0");case"M":return H+1;case"MM":return ie.s(H+1,2,"0");case"MMM":return we(p.monthsShort,H,le,3);case"MMMM":return we(le,H);case"D":return v.$D;case"DD":return ie.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return we(p.weekdaysMin,v.$W,Z,2);case"ddd":return we(p.weekdaysShort,v.$W,Z,3);case"dddd":return Z[v.$W];case"H":return String(m);case"HH":return ie.s(m,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ce(m,T,!0);case"A":return ce(m,T,!1);case"m":return String(T);case"mm":return ie.s(T,2,"0");case"s":return String(v.$s);case"ss":return ie.s(v.$s,2,"0");case"SSS":return ie.s(v.$ms,3,"0");case"Z":return d}return null}(Oe)||d.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(A,v,p){var _,d=this,m=ie.p(v),T=de(A),H=(T.utcOffset()-this.utcOffset())*s,Z=this-T,le=function(){return ie.m(d,T)};switch(m){case E:_=le()/12;break;case L:_=le();break;case k:_=le()/3;break;case O:_=(Z-H)/6048e5;break;case C:_=(Z-H)/864e5;break;case b:_=Z/l;break;case c:_=Z/s;break;case f:_=Z/r;break;default:_=Z}return p?_:ie.a(_)},I.daysInMonth=function(){return this.endOf(L).$D},I.$locale=function(){return ue[this.$L]},I.locale=function(A,v){if(!A)return this.$L;var p=this.clone(),_=fe(A,v,!0);return _&&(p.$L=_),p},I.clone=function(){return ie.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},U}(),Ce=Ae.prototype;return de.prototype=Ce,[["$ms",g],["$s",f],["$m",c],["$H",b],["$W",C],["$M",L],["$y",E],["$D",R]].forEach(function(U){Ce[U[1]]=function(I){return this.$g(I,U[0],U[1])}}),de.extend=function(U,I){return U.$i||(U(I,Ae,de),U.$i=!0),de},de.locale=fe,de.isDayjs=ee,de.unix=function(U){return de(1e3*U)},de.en=ue[q],de.Ls=ue,de.p={},de})}($o)),$o.exports}var Jg=Qg();const Ie=xo(Jg);function Xg({direction:i,levelIndex:t,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return t===0&&r===0?null:r===0?{levelIndex:t-1,rowIndex:s<=l[t-1][l[t-1].length-1]-1?l[t-1].length-1:l[t-1].length-2,cellIndex:s}:{levelIndex:t,rowIndex:r-1,cellIndex:s};case"down":return r===l[t].length-1?{levelIndex:t+1,rowIndex:0,cellIndex:s}:r===l[t].length-2&&s>=l[t][l[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:s}:{levelIndex:t,rowIndex:r+1,cellIndex:s};case"left":return t===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:t-1,rowIndex:l[t-1].length-1,cellIndex:l[t-1][l[t-1].length-1]-1}:s===0?{levelIndex:t,rowIndex:r-1,cellIndex:l[t][r-1]-1}:{levelIndex:t,rowIndex:r,cellIndex:s-1};case"right":return r===l[t].length-1&&s===l[t][r]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:s===l[t][r]-1?{levelIndex:t,rowIndex:r+1,cellIndex:0}:{levelIndex:t,rowIndex:r,cellIndex:s+1};default:return{levelIndex:t,rowIndex:r,cellIndex:s}}}function xc({controlsRef:i,direction:t,levelIndex:r,rowIndex:s,cellIndex:l,size:g}){var b,C,O;const f=Xg({direction:t,size:g,rowIndex:s,cellIndex:l,levelIndex:r});if(!f)return;const c=(O=(C=(b=i.current)==null?void 0:b[f.levelIndex])==null?void 0:C[f.rowIndex])==null?void 0:O[f.cellIndex];c&&(c.disabled||c.getAttribute("data-hidden")||c.getAttribute("data-outside")?xc({controlsRef:i,direction:t,levelIndex:f.levelIndex,cellIndex:f.cellIndex,rowIndex:f.rowIndex,size:g}):c.focus())}function e1(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function t1(i){var t;return(t=i.current)==null?void 0:t.map(r=>r.map(s=>s.length))}function Aa({controlsRef:i,levelIndex:t,rowIndex:r,cellIndex:s,event:l}){const g=e1(l.key);if(g){l.preventDefault();const f=t1(i);xc({controlsRef:i,direction:g,levelIndex:t,rowIndex:r,cellIndex:s,size:f})}}function n1(i,t){if(!i||!t)return t;const r=i.getHours(),s=i.getMinutes(),l=i.getSeconds(),g=i.getMilliseconds(),f=new Date(t);return f.setHours(r),f.setMinutes(s),f.setSeconds(l),f.setMilliseconds(g),f}var No={exports:{}},r1=No.exports,Sc;function i1(){return Sc||(Sc=1,function(i,t){(function(r,s){i.exports=s()})(r1,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(l,g,f){var c,b=function(k,E,R){R===void 0&&(R={});var M=new Date(k),$=function(Q,X){X===void 0&&(X={});var J=X.timeZoneName||"short",se=Q+"|"+J,q=s[se];return q||(q=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Q,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:J}),s[se]=q),q}(E,R);return $.formatToParts(M)},C=function(k,E){for(var R=b(k,E),M=[],$=0;$<R.length;$+=1){var Q=R[$],X=Q.type,J=Q.value,se=r[X];se>=0&&(M[se]=parseInt(J,10))}var q=M[3],ue=q===24?0:q,ne=M[0]+"-"+M[1]+"-"+M[2]+" "+ue+":"+M[4]+":"+M[5]+":000",ee=+k;return(f.utc(ne).valueOf()-(ee-=ee%1e3))/6e4},O=g.prototype;O.tz=function(k,E){k===void 0&&(k=c);var R,M=this.utcOffset(),$=this.toDate(),Q=$.toLocaleString("en-US",{timeZone:k}),X=Math.round(($-new Date(Q))/1e3/60),J=15*-Math.round($.getTimezoneOffset()/15)-X;if(!Number(J))R=this.utcOffset(0,E);else if(R=f(Q,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(J,!0),E){var se=R.utcOffset();R=R.add(M-se,"minute")}return R.$x.$timezone=k,R},O.offsetName=function(k){var E=this.$x.$timezone||f.tz.guess(),R=b(this.valueOf(),E,{timeZoneName:k}).find(function(M){return M.type.toLowerCase()==="timezonename"});return R&&R.value};var L=O.startOf;O.startOf=function(k,E){if(!this.$x||!this.$x.$timezone)return L.call(this,k,E);var R=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return L.call(R,k,E).tz(this.$x.$timezone,!0)},f.tz=function(k,E,R){var M=R&&E,$=R||E||c,Q=C(+f(),$);if(typeof k!="string")return f(k).tz($);var X=function(ue,ne,ee){var fe=ue-60*ne*1e3,de=C(fe,ee);if(ne===de)return[fe,ne];var ie=C(fe-=60*(de-ne)*1e3,ee);return de===ie?[fe,de]:[ue-60*Math.min(de,ie)*1e3,Math.max(de,ie)]}(f.utc(k,M).valueOf(),Q,$),J=X[0],se=X[1],q=f(J).utcOffset(se);return q.$x.$timezone=$,q},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(k){c=k}}})}(No)),No.exports}var o1=i1();const s1=xo(o1);var Bo={exports:{}},a1=Bo.exports,Cc;function u1(){return Cc||(Cc=1,function(i,t){(function(r,s){i.exports=s()})(a1,function(){var r="minute",s=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(g,f,c){var b=f.prototype;c.utc=function(M){var $={date:M,utc:!0,args:arguments};return new f($)},b.utc=function(M){var $=c(this.toDate(),{locale:this.$L,utc:!0});return M?$.add(this.utcOffset(),r):$},b.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var C=b.parse;b.parse=function(M){M.utc&&(this.$u=!0),this.$utils().u(M.$offset)||(this.$offset=M.$offset),C.call(this,M)};var O=b.init;b.init=function(){if(this.$u){var M=this.$d;this.$y=M.getUTCFullYear(),this.$M=M.getUTCMonth(),this.$D=M.getUTCDate(),this.$W=M.getUTCDay(),this.$H=M.getUTCHours(),this.$m=M.getUTCMinutes(),this.$s=M.getUTCSeconds(),this.$ms=M.getUTCMilliseconds()}else O.call(this)};var L=b.utcOffset;b.utcOffset=function(M,$){var Q=this.$utils().u;if(Q(M))return this.$u?0:Q(this.$offset)?L.call(this):this.$offset;if(typeof M=="string"&&(M=function(q){q===void 0&&(q="");var ue=q.match(s);if(!ue)return null;var ne=(""+ue[0]).match(l)||["-",0,0],ee=ne[0],fe=60*+ne[1]+ +ne[2];return fe===0?0:ee==="+"?fe:-fe}(M),M===null))return this;var X=Math.abs(M)<=16?60*M:M,J=this;if($)return J.$offset=X,J.$u=M===0,J;if(M!==0){var se=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(J=this.local().add(X+se,r)).$offset=X,J.$x.$localOffset=se}else J=this.utc();return J};var k=b.format;b.format=function(M){var $=M||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return k.call(this,$)},b.valueOf=function(){var M=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*M},b.isUTC=function(){return!!this.$u},b.toISOString=function(){return this.toDate().toISOString()},b.toString=function(){return this.toDate().toUTCString()};var E=b.toDate;b.toDate=function(M){return M==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():E.call(this)};var R=b.diff;b.diff=function(M,$,Q){if(M&&this.$u===M.$u)return R.call(this,M,$,Q);var X=this.local(),J=c(M).local();return R.call(X,J,$,Q)}}})}(Bo)),Bo.exports}var l1=u1();const c1=xo(l1);Ie.extend(c1),Ie.extend(s1);function f1(i,t){return t?Ie(i).tz(t).utcOffset()+i.getTimezoneOffset():0}const Ac=(i,t,r)=>{if(!i)return null;if(!t)return i;let s=f1(i,t);return r==="remove"&&(s*=-1),Ie(i).add(s,"minutes").toDate()};function kr(i,t,r,s){return s||!t?t:Array.isArray(t)?t.map(l=>Ac(l,r,i)):Ac(t,r,i)}const h1={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},d1=me.createContext(h1);function cn(){const i=me.useContext(d1),t=me.useCallback(f=>f||i.locale,[i.locale]),r=me.useCallback(f=>f||i.timezone||void 0,[i.timezone]),s=me.useCallback(f=>typeof f=="number"?f:i.firstDayOfWeek,[i.firstDayOfWeek]),l=me.useCallback(f=>Array.isArray(f)?f:i.weekendDays,[i.weekendDays]),g=me.useCallback(f=>typeof f=="string"?f:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:t,getTimezone:r,getFirstDayOfWeek:s,getWeekendDays:l,getLabelSeparator:g}}function p1(i,t){const r=cn(),s=l=>kr("remove",l,r.getTimezone()).toISOString();if(t==="range"&&Array.isArray(i)){const[l,g]=i;return l?g?`${s(l)} – ${s(g)}`:`${s(l)} –`:""}return t==="multiple"&&Array.isArray(i)?i.map(l=>l&&s(l)).filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function Oc({value:i,type:t,name:r,form:s}){return D.jsx("input",{type:"hidden",value:p1(i,t),name:r,form:s})}Oc.displayName="@mantine/dates/HiddenDatesInput";function Tc(i){var t,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(t=0;t<l;t++)i[t]&&(r=Tc(i[t]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function mt(){for(var i,t,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(t=Tc(i))&&(s&&(s+=" "),s+=t);return s}var Dc={day:"m_396ce5cb"};const g1={},v1=j.createVarsResolver((i,{size:t})=>({day:{"--day-size":j.getSize(t,"day-size")}})),Oa=j.factory((i,t)=>{const r=j.useProps("Day",g1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,date:C,disabled:O,__staticSelector:L,weekend:k,outside:E,selected:R,renderDay:M,inRange:$,firstInRange:Q,lastInRange:X,hidden:J,static:se,highlightToday:q,...ue}=r,ne=j.useStyles({name:L||"Day",classes:Dc,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:v1,rootSelector:"day"}),ee=cn();return D.jsx(j.UnstyledButton,{...ne("day",{style:J?{display:"none"}:void 0}),component:se?"div":"button",ref:t,disabled:O,"data-today":Ie(C).isSame(kr("add",new Date,ee.getTimezone()),"day")||void 0,"data-hidden":J||void 0,"data-highlight-today":q||void 0,"data-disabled":O||void 0,"data-weekend":!O&&!E&&k||void 0,"data-outside":!O&&E||void 0,"data-selected":!O&&R||void 0,"data-in-range":$&&!O||void 0,"data-first-in-range":Q&&!O||void 0,"data-last-in-range":X&&!O||void 0,"data-static":se||void 0,unstyled:c,...ue,children:(M==null?void 0:M(C))||Ie(C).date()})});Oa.classes=Dc,Oa.displayName="@mantine/dates/Day";function m1({locale:i,format:t="dd",firstDayOfWeek:r=1}){const s=Ie().day(r),l=[];for(let g=0;g<7;g+=1)typeof t=="string"?l.push(Ie(s).add(g,"days").locale(i).format(t)):l.push(t(Ie(s).add(g,"days").toDate()));return l}var Ec={weekday:"m_18a3eca"};const y1={},w1=j.createVarsResolver((i,{size:t})=>({weekdaysRow:{"--wr-fz":j.getFontSize(t),"--wr-spacing":j.getSpacing(t)}})),Ta=j.factory((i,t)=>{const r=j.useProps("WeekdaysRow",y1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,locale:C,firstDayOfWeek:O,weekdayFormat:L,cellComponent:k="th",__staticSelector:E,withWeekNumbers:R,...M}=r,$=j.useStyles({name:E||"WeekdaysRow",classes:Ec,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:w1,rootSelector:"weekdaysRow"}),Q=cn(),X=m1({locale:Q.getLocale(C),format:L,firstDayOfWeek:Q.getFirstDayOfWeek(O)}).map((J,se)=>D.jsx(k,{...$("weekday"),children:J},se));return D.jsxs(j.Box,{component:"tr",ref:t,...$("weekdaysRow"),...M,children:[R&&D.jsx(k,{...$("weekday"),children:"#"}),X]})});Ta.classes=Ec,Ta.displayName="@mantine/dates/WeekdaysRow";function _1(i,t=1){let r=Ie(i);const s=t===0?6:t-1;for(;r.day()!==s;)r=r.add(1,"day");return r.toDate()}function b1(i,t=1){let r=Ie(i);for(;r.day()!==t;)r=r.subtract(1,"day");return r.toDate()}function x1({month:i,firstDayOfWeek:t=1,consistentWeeks:r}){const s=Ie(i).subtract(Ie(i).date()-1,"day"),l=Ie(s).startOf("day"),g=l.toDate(),f=l.add(+l.daysInMonth()-1,"day").toDate(),c=_1(f,t),b=b1(g,t),C=[];for(;b<=c;){const O=[];for(let L=0;L<7;L+=1)O.push(new Date(b)),b.setDate(b.getDate()+1);C.push(O)}if(r&&C.length<6){const O=C[C.length-1],L=O[O.length-1],k=new Date(L);for(k.setDate(k.getDate()+1);C.length<6;){const E=[];for(let R=0;R<7;R+=1)E.push(new Date(k)),k.setDate(k.getDate()+1);C.push(E)}}return C}function Mc(i,t){return t instanceof Date?Ie(i).isAfter(Ie(t).subtract(1,"day"),"day"):!0}function Rc(i,t){return t instanceof Date?Ie(i).isBefore(Ie(t).add(1,"day"),"day"):!0}function S1(i,t,r,s,l,g,f){const c=i.flat().filter(O=>{var L;return Rc(O,r)&&Mc(O,t)&&!(l!=null&&l(O))&&!((L=s==null?void 0:s(O))!=null&&L.disabled)&&(!g||Ie(O).isSame(Ie(f),"month"))}),b=c.find(O=>{var L;return(L=s==null?void 0:s(O))==null?void 0:L.selected});if(b)return b;const C=c.find(O=>Ie().isSame(O,"date"));return C||c[0]}var jo={exports:{}},C1=jo.exports,Lc;function A1(){return Lc||(Lc=1,function(i,t){(function(r,s){i.exports=s()})(C1,function(){var r="day";return function(s,l,g){var f=function(C){return C.add(4-C.isoWeekday(),r)},c=l.prototype;c.isoWeekYear=function(){return f(this).year()},c.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),r);var O,L,k,E,R=f(this),M=(O=this.isoWeekYear(),L=this.$u,k=(L?g.utc:g)().year(O).startOf("year"),E=4-k.isoWeekday(),k.isoWeekday()>4&&(E+=7),k.add(E,r));return R.diff(M,"week")+1},c.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var b=c.startOf;c.startOf=function(C,O){var L=this.$utils(),k=!!L.u(O)||O;return L.p(C)==="isoweek"?k?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):b.bind(this)(C,O)}}})}(jo)),jo.exports}var O1=A1();const T1=xo(O1);Ie.extend(T1);function D1(i){const t=i.find(r=>Ie(r).day()===1);return Ie(t).isoWeek()}var kc={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const E1={withCellSpacing:!0},M1=j.createVarsResolver((i,{size:t})=>({weekNumber:{"--wn-fz":j.getFontSize(t),"--wn-size":j.getSize(t,"wn-size")}})),Uo=j.factory((i,t)=>{const r=j.useProps("Month",E1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,__staticSelector:C,locale:O,firstDayOfWeek:L,weekdayFormat:k,month:E,weekendDays:R,getDayProps:M,excludeDate:$,minDate:Q,maxDate:X,renderDay:J,hideOutsideDates:se,hideWeekdays:q,getDayAriaLabel:ue,static:ne,__getDayRef:ee,__onDayKeyDown:fe,__onDayClick:de,__onDayMouseEnter:ie,__preventFocus:Ae,__stopPropagation:Ce,withCellSpacing:U,size:I,highlightToday:A,withWeekNumbers:v,...p}=r,_=j.useStyles({name:C||"Month",classes:kc,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:M1,rootSelector:"month"}),d=cn(),m=x1({month:E,firstDayOfWeek:d.getFirstDayOfWeek(L),consistentWeeks:d.consistentWeeks}),T=S1(m,Q,X,M,$,se,E),{resolvedClassNames:H,resolvedStyles:Z}=j.useResolvedStylesApi({classNames:s,styles:f,props:r}),le=m.map((pe,we)=>{const re=pe.map((ce,Oe)=>{const be=!Ie(ce).isSame(Ie(E),"month"),B=(ue==null?void 0:ue(ce))||Ie(ce).locale(O||d.locale).format("D MMMM YYYY"),Y=M==null?void 0:M(ce),W=Ie(ce).isSame(T,"date");return D.jsx("td",{..._("monthCell"),"data-with-spacing":U||void 0,children:D.jsx(Oa,{__staticSelector:C||"Month",classNames:H,styles:Z,unstyled:c,"data-mantine-stop-propagation":Ce||void 0,highlightToday:A,renderDay:J,date:ce,size:I,weekend:d.getWeekendDays(R).includes(ce.getDay()),outside:be,hidden:se?be:!1,"aria-label":B,static:ne,disabled:($==null?void 0:$(ce))||!Rc(ce,X)||!Mc(ce,Q),ref:K=>ee==null?void 0:ee(we,Oe,K),...Y,onKeyDown:K=>{var ae;(ae=Y==null?void 0:Y.onKeyDown)==null||ae.call(Y,K),fe==null||fe(K,{rowIndex:we,cellIndex:Oe,date:ce})},onMouseEnter:K=>{var ae;(ae=Y==null?void 0:Y.onMouseEnter)==null||ae.call(Y,K),ie==null||ie(K,ce)},onClick:K=>{var ae;(ae=Y==null?void 0:Y.onClick)==null||ae.call(Y,K),de==null||de(K,ce)},onMouseDown:K=>{var ae;(ae=Y==null?void 0:Y.onMouseDown)==null||ae.call(Y,K),Ae&&K.preventDefault()},tabIndex:Ae||!W?-1:0})},ce.toString())});return D.jsxs("tr",{..._("monthRow"),children:[v&&D.jsx("td",{..._("weekNumber"),children:D1(pe)}),re]},we)});return D.jsxs(j.Box,{component:"table",..._("month"),size:I,ref:t,...p,children:[!q&&D.jsx("thead",{..._("monthThead"),children:D.jsx(Ta,{__staticSelector:C||"Month",locale:O,firstDayOfWeek:L,weekdayFormat:k,size:I,classNames:H,styles:Z,unstyled:c,withWeekNumbers:v})}),D.jsx("tbody",{..._("monthTbody"),children:le})]})});Uo.classes=kc,Uo.displayName="@mantine/dates/Month";var Ic={pickerControl:"m_dc6a3c71"};const R1={},L1=j.createVarsResolver((i,{size:t})=>({pickerControl:{"--dpc-fz":j.getFontSize(t),"--dpc-size":j.getSize(t,"dpc-size")}})),zo=j.factory((i,t)=>{const r=j.useProps("PickerControl",R1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,firstInRange:C,lastInRange:O,inRange:L,__staticSelector:k,selected:E,disabled:R,...M}=r,$=j.useStyles({name:k||"PickerControl",classes:Ic,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:L1,rootSelector:"pickerControl"});return D.jsx(j.UnstyledButton,{...$("pickerControl"),ref:t,unstyled:c,"data-picker-control":!0,"data-selected":E&&!R||void 0,"data-disabled":R||void 0,"data-in-range":L&&!R&&!E||void 0,"data-first-in-range":C&&!R||void 0,"data-last-in-range":O&&!R||void 0,disabled:R,...M})});zo.classes=Ic,zo.displayName="@mantine/dates/PickerControl";function Pc(i,t,r){return!t&&!r?!1:!!(t&&Ie(i).isBefore(t,"year")||r&&Ie(i).isAfter(r,"year"))}function k1(i,t,r,s){const l=i.flat().filter(c=>{var b;return!Pc(c,t,r)&&!((b=s==null?void 0:s(c))!=null&&b.disabled)}),g=l.find(c=>{var b;return(b=s==null?void 0:s(c))==null?void 0:b.selected});if(g)return g;const f=l.find(c=>Ie().isSame(c,"year"));return f||l[0]}function $c(i){const t=i.getFullYear(),r=t-t%10;let s=0;const l=[[],[],[],[]];for(let g=0;g<4;g+=1){const f=g===3?1:3;for(let c=0;c<f;c+=1)l[g].push(new Date(r+s,0)),s+=1}return l}var Nc={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const I1={yearsListFormat:"YYYY",withCellSpacing:!0},Fo=j.factory((i,t)=>{const r=j.useProps("YearsList",I1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,decade:C,yearsListFormat:O,locale:L,minDate:k,maxDate:E,getYearControlProps:R,__staticSelector:M,__getControlRef:$,__onControlKeyDown:Q,__onControlClick:X,__onControlMouseEnter:J,__preventFocus:se,__stopPropagation:q,withCellSpacing:ue,size:ne,...ee}=r,fe=j.useStyles({name:M||"YearsList",classes:Nc,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,rootSelector:"yearsList"}),de=cn(),ie=$c(C),Ae=k1(ie,k,E,R),Ce=ie.map((U,I)=>{const A=U.map((v,p)=>{const _=R==null?void 0:R(v),d=Ie(v).isSame(Ae,"year");return D.jsx("td",{...fe("yearsListCell"),"data-with-spacing":ue||void 0,children:D.jsx(zo,{...fe("yearsListControl"),size:ne,unstyled:c,"data-mantine-stop-propagation":q||void 0,disabled:Pc(v,k,E),ref:m=>$==null?void 0:$(I,p,m),..._,onKeyDown:m=>{var T;(T=_==null?void 0:_.onKeyDown)==null||T.call(_,m),Q==null||Q(m,{rowIndex:I,cellIndex:p,date:v})},onClick:m=>{var T;(T=_==null?void 0:_.onClick)==null||T.call(_,m),X==null||X(m,v)},onMouseEnter:m=>{var T;(T=_==null?void 0:_.onMouseEnter)==null||T.call(_,m),J==null||J(m,v)},onMouseDown:m=>{var T;(T=_==null?void 0:_.onMouseDown)==null||T.call(_,m),se&&m.preventDefault()},tabIndex:se||!d?-1:0,children:Ie(v).locale(de.getLocale(L)).format(O)})},p)});return D.jsx("tr",{...fe("yearsListRow"),children:A},I)});return D.jsx(j.Box,{component:"table",ref:t,size:ne,...fe("yearsList"),...ee,children:D.jsx("tbody",{children:Ce})})});Fo.classes=Nc,Fo.displayName="@mantine/dates/YearsList";function Bc(i,t,r){return!t&&!r?!1:!!(t&&Ie(i).isBefore(t,"month")||r&&Ie(i).isAfter(r,"month"))}function P1(i,t,r,s){const l=i.flat().filter(c=>{var b;return!Bc(c,t,r)&&!((b=s==null?void 0:s(c))!=null&&b.disabled)}),g=l.find(c=>{var b;return(b=s==null?void 0:s(c))==null?void 0:b.selected});if(g)return g;const f=l.find(c=>Ie().isSame(c,"month"));return f||l[0]}function $1(i){const t=Ie(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let g=0;g<3;g+=1)r[l].push(Ie(t).add(s,"months").toDate()),s+=1;return r}var jc={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const N1={monthsListFormat:"MMM",withCellSpacing:!0},Wo=j.factory((i,t)=>{const r=j.useProps("MonthsList",N1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,__staticSelector:C,year:O,monthsListFormat:L,locale:k,minDate:E,maxDate:R,getMonthControlProps:M,__getControlRef:$,__onControlKeyDown:Q,__onControlClick:X,__onControlMouseEnter:J,__preventFocus:se,__stopPropagation:q,withCellSpacing:ue,size:ne,...ee}=r,fe=j.useStyles({name:C||"MonthsList",classes:jc,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,rootSelector:"monthsList"}),de=cn(),ie=$1(O),Ae=P1(ie,E,R,M),Ce=ie.map((U,I)=>{const A=U.map((v,p)=>{const _=M==null?void 0:M(v),d=Ie(v).isSame(Ae,"month");return D.jsx("td",{...fe("monthsListCell"),"data-with-spacing":ue||void 0,children:D.jsx(zo,{...fe("monthsListControl"),size:ne,unstyled:c,__staticSelector:C||"MonthsList","data-mantine-stop-propagation":q||void 0,disabled:Bc(v,E,R),ref:m=>$==null?void 0:$(I,p,m),..._,onKeyDown:m=>{var T;(T=_==null?void 0:_.onKeyDown)==null||T.call(_,m),Q==null||Q(m,{rowIndex:I,cellIndex:p,date:v})},onClick:m=>{var T;(T=_==null?void 0:_.onClick)==null||T.call(_,m),X==null||X(m,v)},onMouseEnter:m=>{var T;(T=_==null?void 0:_.onMouseEnter)==null||T.call(_,m),J==null||J(m,v)},onMouseDown:m=>{var T;(T=_==null?void 0:_.onMouseDown)==null||T.call(_,m),se&&m.preventDefault()},tabIndex:se||!d?-1:0,children:Ie(v).locale(de.getLocale(k)).format(L)})},p)});return D.jsx("tr",{...fe("monthsListRow"),children:A},I)});return D.jsx(j.Box,{component:"table",ref:t,size:ne,...fe("monthsList"),...ee,children:D.jsx("tbody",{children:Ce})})});Wo.classes=jc,Wo.displayName="@mantine/dates/MonthsList";var Uc={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const B1={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},j1=j.createVarsResolver((i,{size:t})=>({calendarHeader:{"--dch-control-size":j.getSize(t,"dch-control-size"),"--dch-fz":j.getFontSize(t)}})),ir=j.factory((i,t)=>{const r=j.useProps("CalendarHeader",B1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,nextIcon:C,previousIcon:O,nextLabel:L,previousLabel:k,onNext:E,onPrevious:R,onLevelClick:M,label:$,nextDisabled:Q,previousDisabled:X,hasNextLevel:J,levelControlAriaLabel:se,withNext:q,withPrevious:ue,__staticSelector:ne,__preventFocus:ee,__stopPropagation:fe,...de}=r,ie=j.useStyles({name:ne||"CalendarHeader",classes:Uc,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:j1,rootSelector:"calendarHeader"}),Ae=ee?Ce=>Ce.preventDefault():void 0;return D.jsxs(j.Box,{...ie("calendarHeader"),ref:t,...de,children:[ue&&D.jsx(j.UnstyledButton,{...ie("calendarHeaderControl"),"data-direction":"previous","aria-label":k,onClick:R,unstyled:c,onMouseDown:Ae,disabled:X,"data-disabled":X||void 0,tabIndex:ee||X?-1:0,"data-mantine-stop-propagation":fe||void 0,children:O||D.jsx(j.AccordionChevron,{...ie("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),D.jsx(j.UnstyledButton,{component:J?"button":"div",...ie("calendarHeaderLevel"),onClick:J?M:void 0,unstyled:c,onMouseDown:J?Ae:void 0,disabled:!J,"data-static":!J||void 0,"aria-label":se,tabIndex:ee||!J?-1:0,"data-mantine-stop-propagation":fe||void 0,children:$}),q&&D.jsx(j.UnstyledButton,{...ie("calendarHeaderControl"),"data-direction":"next","aria-label":L,onClick:E,unstyled:c,onMouseDown:Ae,disabled:Q,"data-disabled":Q||void 0,tabIndex:ee||Q?-1:0,"data-mantine-stop-propagation":fe||void 0,children:C||D.jsx(j.AccordionChevron,{...ie("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});ir.classes=Uc,ir.displayName="@mantine/dates/CalendarHeader";function U1(i){const t=$c(i);return[t[0][0],t[3][0]]}const z1={decadeLabelFormat:"YYYY"},Yo=j.factory((i,t)=>{const r=j.useProps("DecadeLevel",z1,i),{decade:s,locale:l,minDate:g,maxDate:f,yearsListFormat:c,getYearControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,withCellSpacing:E,__preventFocus:R,nextIcon:M,previousIcon:$,nextLabel:Q,previousLabel:X,onNext:J,onPrevious:se,nextDisabled:q,previousDisabled:ue,levelControlAriaLabel:ne,withNext:ee,withPrevious:fe,decadeLabelFormat:de,classNames:ie,styles:Ae,unstyled:Ce,__staticSelector:U,__stopPropagation:I,size:A,...v}=r,p=cn(),[_,d]=U1(s),m={__staticSelector:U||"DecadeLevel",classNames:ie,styles:Ae,unstyled:Ce,size:A},T=typeof q=="boolean"?q:f?!Ie(d).endOf("year").isBefore(f):!1,H=typeof ue=="boolean"?ue:g?!Ie(_).startOf("year").isAfter(g):!1,Z=(le,pe)=>Ie(le).locale(l||p.locale).format(pe);return D.jsxs(j.Box,{"data-decade-level":!0,size:A,ref:t,...v,children:[D.jsx(ir,{label:typeof de=="function"?de(_,d):`${Z(_,de)} – ${Z(d,de)}`,__preventFocus:R,__stopPropagation:I,nextIcon:M,previousIcon:$,nextLabel:Q,previousLabel:X,onNext:J,onPrevious:se,nextDisabled:T,previousDisabled:H,hasNextLevel:!1,levelControlAriaLabel:ne,withNext:ee,withPrevious:fe,...m}),D.jsx(Fo,{decade:s,locale:l,minDate:g,maxDate:f,yearsListFormat:c,getYearControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,__preventFocus:R,__stopPropagation:I,withCellSpacing:E,...m})]})});Yo.classes={...Fo.classes,...ir.classes},Yo.displayName="@mantine/dates/DecadeLevel";const F1={yearLabelFormat:"YYYY"},qo=j.factory((i,t)=>{const r=j.useProps("YearLevel",F1,i),{year:s,locale:l,minDate:g,maxDate:f,monthsListFormat:c,getMonthControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,withCellSpacing:E,__preventFocus:R,nextIcon:M,previousIcon:$,nextLabel:Q,previousLabel:X,onNext:J,onPrevious:se,onLevelClick:q,nextDisabled:ue,previousDisabled:ne,hasNextLevel:ee,levelControlAriaLabel:fe,withNext:de,withPrevious:ie,yearLabelFormat:Ae,__staticSelector:Ce,__stopPropagation:U,size:I,classNames:A,styles:v,unstyled:p,..._}=r,d=cn(),m={__staticSelector:Ce||"YearLevel",classNames:A,styles:v,unstyled:p,size:I},T=typeof ue=="boolean"?ue:f?!Ie(s).endOf("year").isBefore(f):!1,H=typeof ne=="boolean"?ne:g?!Ie(s).startOf("year").isAfter(g):!1;return D.jsxs(j.Box,{"data-year-level":!0,size:I,ref:t,..._,children:[D.jsx(ir,{label:typeof Ae=="function"?Ae(s):Ie(s).locale(l||d.locale).format(Ae),__preventFocus:R,__stopPropagation:U,nextIcon:M,previousIcon:$,nextLabel:Q,previousLabel:X,onNext:J,onPrevious:se,onLevelClick:q,nextDisabled:T,previousDisabled:H,hasNextLevel:ee,levelControlAriaLabel:fe,withNext:de,withPrevious:ie,...m}),D.jsx(Wo,{year:s,locale:l,minDate:g,maxDate:f,monthsListFormat:c,getMonthControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,__preventFocus:R,__stopPropagation:U,withCellSpacing:E,...m})]})});qo.classes={...ir.classes,...Wo.classes},qo.displayName="@mantine/dates/YearLevel";const W1={monthLabelFormat:"MMMM YYYY"},Ho=j.factory((i,t)=>{const r=j.useProps("MonthLevel",W1,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:E,hideWeekdays:R,getDayAriaLabel:M,__getDayRef:$,__onDayKeyDown:Q,__onDayClick:X,__onDayMouseEnter:J,withCellSpacing:se,highlightToday:q,withWeekNumbers:ue,__preventFocus:ne,__stopPropagation:ee,nextIcon:fe,previousIcon:de,nextLabel:ie,previousLabel:Ae,onNext:Ce,onPrevious:U,onLevelClick:I,nextDisabled:A,previousDisabled:v,hasNextLevel:p,levelControlAriaLabel:_,withNext:d,withPrevious:m,monthLabelFormat:T,classNames:H,styles:Z,unstyled:le,__staticSelector:pe,size:we,static:re,...ce}=r,Oe=cn(),be={__staticSelector:pe||"MonthLevel",classNames:H,styles:Z,unstyled:le,size:we},B=typeof A=="boolean"?A:L?!Ie(s).endOf("month").isBefore(L):!1,Y=typeof v=="boolean"?v:O?!Ie(s).startOf("month").isAfter(O):!1;return D.jsxs(j.Box,{"data-month-level":!0,size:we,ref:t,...ce,children:[D.jsx(ir,{label:typeof T=="function"?T(s):Ie(s).locale(l||Oe.locale).format(T),__preventFocus:ne,__stopPropagation:ee,nextIcon:fe,previousIcon:de,nextLabel:ie,previousLabel:Ae,onNext:Ce,onPrevious:U,onLevelClick:I,nextDisabled:B,previousDisabled:Y,hasNextLevel:p,levelControlAriaLabel:_,withNext:d,withPrevious:m,...be}),D.jsx(Uo,{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:E,hideWeekdays:R,getDayAriaLabel:M,__getDayRef:$,__onDayKeyDown:Q,__onDayClick:X,__onDayMouseEnter:J,__preventFocus:ne,__stopPropagation:ee,static:re,withCellSpacing:se,highlightToday:q,withWeekNumbers:ue,...be})]})});Ho.classes={...Uo.classes,...ir.classes},Ho.displayName="@mantine/dates/MonthLevel";var zc={levelsGroup:"m_30b26e33"};const Y1={},or=j.factory((i,t)=>{const r=j.useProps("LevelsGroup",Y1,i),{classNames:s,className:l,style:g,styles:f,unstyled:c,vars:b,__staticSelector:C,...O}=r,L=j.useStyles({name:C||"LevelsGroup",classes:zc,props:r,className:l,style:g,classNames:s,styles:f,unstyled:c,vars:b,rootSelector:"levelsGroup"});return D.jsx(j.Box,{ref:t,...L("levelsGroup"),...O})});or.classes=zc,or.displayName="@mantine/dates/LevelsGroup";const q1={numberOfColumns:1},Go=j.factory((i,t)=>{const r=j.useProps("DecadeLevelGroup",q1,i),{decade:s,locale:l,minDate:g,maxDate:f,yearsListFormat:c,getYearControlProps:b,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:L,__preventFocus:k,nextIcon:E,previousIcon:R,nextLabel:M,previousLabel:$,onNext:Q,onPrevious:X,nextDisabled:J,previousDisabled:se,classNames:q,styles:ue,unstyled:ne,__staticSelector:ee,__stopPropagation:fe,numberOfColumns:de,levelControlAriaLabel:ie,decadeLabelFormat:Ae,size:Ce,vars:U,...I}=r,A=me.useRef([]),v=Array(de).fill(0).map((p,_)=>{const d=Ie(s).add(_*10,"years").toDate();return D.jsx(Yo,{size:Ce,yearsListFormat:c,decade:d,withNext:_===de-1,withPrevious:_===0,decadeLabelFormat:Ae,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(m,T)=>Aa({levelIndex:_,rowIndex:T.rowIndex,cellIndex:T.cellIndex,event:m,controlsRef:A}),__getControlRef:(m,T,H)=>{Array.isArray(A.current[_])||(A.current[_]=[]),Array.isArray(A.current[_][m])||(A.current[_][m]=[]),A.current[_][m][T]=H},levelControlAriaLabel:typeof ie=="function"?ie(d):ie,locale:l,minDate:g,maxDate:f,__preventFocus:k,__stopPropagation:fe,nextIcon:E,previousIcon:R,nextLabel:M,previousLabel:$,onNext:Q,onPrevious:X,nextDisabled:J,previousDisabled:se,getYearControlProps:b,__staticSelector:ee||"DecadeLevelGroup",classNames:q,styles:ue,unstyled:ne,withCellSpacing:L},_)});return D.jsx(or,{classNames:q,styles:ue,__staticSelector:ee||"DecadeLevelGroup",ref:t,size:Ce,unstyled:ne,...I,children:v})});Go.classes={...or.classes,...Yo.classes},Go.displayName="@mantine/dates/DecadeLevelGroup";const H1={numberOfColumns:1},Vo=j.factory((i,t)=>{const r=j.useProps("YearLevelGroup",H1,i),{year:s,locale:l,minDate:g,maxDate:f,monthsListFormat:c,getMonthControlProps:b,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:L,__preventFocus:k,nextIcon:E,previousIcon:R,nextLabel:M,previousLabel:$,onNext:Q,onPrevious:X,onLevelClick:J,nextDisabled:se,previousDisabled:q,hasNextLevel:ue,classNames:ne,styles:ee,unstyled:fe,__staticSelector:de,__stopPropagation:ie,numberOfColumns:Ae,levelControlAriaLabel:Ce,yearLabelFormat:U,size:I,vars:A,...v}=r,p=me.useRef([]),_=Array(Ae).fill(0).map((d,m)=>{const T=Ie(s).add(m,"years").toDate();return D.jsx(qo,{size:I,monthsListFormat:c,year:T,withNext:m===Ae-1,withPrevious:m===0,yearLabelFormat:U,__stopPropagation:ie,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(H,Z)=>Aa({levelIndex:m,rowIndex:Z.rowIndex,cellIndex:Z.cellIndex,event:H,controlsRef:p}),__getControlRef:(H,Z,le)=>{Array.isArray(p.current[m])||(p.current[m]=[]),Array.isArray(p.current[m][H])||(p.current[m][H]=[]),p.current[m][H][Z]=le},levelControlAriaLabel:typeof Ce=="function"?Ce(T):Ce,locale:l,minDate:g,maxDate:f,__preventFocus:k,nextIcon:E,previousIcon:R,nextLabel:M,previousLabel:$,onNext:Q,onPrevious:X,onLevelClick:J,nextDisabled:se,previousDisabled:q,hasNextLevel:ue,getMonthControlProps:b,classNames:ne,styles:ee,unstyled:fe,__staticSelector:de||"YearLevelGroup",withCellSpacing:L},m)});return D.jsx(or,{classNames:ne,styles:ee,__staticSelector:de||"YearLevelGroup",ref:t,size:I,unstyled:fe,...v,children:_})});Vo.classes={...qo.classes,...or.classes},Vo.displayName="@mantine/dates/YearLevelGroup";const G1={numberOfColumns:1},Zo=j.factory((i,t)=>{const r=j.useProps("MonthLevelGroup",G1,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:E,hideWeekdays:R,getDayAriaLabel:M,__onDayClick:$,__onDayMouseEnter:Q,withCellSpacing:X,highlightToday:J,withWeekNumbers:se,__preventFocus:q,nextIcon:ue,previousIcon:ne,nextLabel:ee,previousLabel:fe,onNext:de,onPrevious:ie,onLevelClick:Ae,nextDisabled:Ce,previousDisabled:U,hasNextLevel:I,classNames:A,styles:v,unstyled:p,numberOfColumns:_,levelControlAriaLabel:d,monthLabelFormat:m,__staticSelector:T,__stopPropagation:H,size:Z,static:le,vars:pe,...we}=r,re=me.useRef([]),ce=Array(_).fill(0).map((Oe,be)=>{const B=Ie(s).add(be,"months").toDate();return D.jsx(Ho,{month:B,withNext:be===_-1,withPrevious:be===0,monthLabelFormat:m,__stopPropagation:H,__onDayClick:$,__onDayMouseEnter:Q,__onDayKeyDown:(Y,W)=>Aa({levelIndex:be,rowIndex:W.rowIndex,cellIndex:W.cellIndex,event:Y,controlsRef:re}),__getDayRef:(Y,W,K)=>{Array.isArray(re.current[be])||(re.current[be]=[]),Array.isArray(re.current[be][Y])||(re.current[be][Y]=[]),re.current[be][Y][W]=K},levelControlAriaLabel:typeof d=="function"?d(B):d,locale:l,firstDayOfWeek:g,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:E,hideWeekdays:R,getDayAriaLabel:M,__preventFocus:q,nextIcon:ue,previousIcon:ne,nextLabel:ee,previousLabel:fe,onNext:de,onPrevious:ie,onLevelClick:Ae,nextDisabled:Ce,previousDisabled:U,hasNextLevel:I,classNames:A,styles:v,unstyled:p,__staticSelector:T||"MonthLevelGroup",size:Z,static:le,withCellSpacing:X,highlightToday:J,withWeekNumbers:se},be)});return D.jsx(or,{classNames:A,styles:v,__staticSelector:T||"MonthLevelGroup",ref:t,size:Z,...we,children:ce})});Zo.classes={...or.classes,...Ho.classes},Zo.displayName="@mantine/dates/MonthLevelGroup";const Fc=i=>i==="range"?[null,null]:i==="multiple"?[]:null;function Da({type:i,value:t,defaultValue:r,onChange:s,applyTimezone:l=!0}){const g=me.useRef(i),f=cn(),[c,b,C]=Tt.useUncontrolled({value:kr("add",t,f.getTimezone(),!l),defaultValue:kr("add",r,f.getTimezone(),!l),finalValue:Fc(i),onChange:L=>{s==null||s(kr("remove",L,f.getTimezone(),!l))}});let O=c;if(g.current!==i){if(g.current=i,t===void 0)O=r!==void 0?r:Fc(i),b(O);else if(process.env.NODE_ENV==="development")switch(i){case"default":t!==null&&typeof t!="string"&&console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `null` or `string`");break;case"multiple":t instanceof Array||console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `string[]`");break;case"range":(!(t instanceof Array)||t.length!==2)&&console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `[string, string]`");break}}return[O,b,C]}function Ea(i,t){return i?i==="month"?0:i==="year"?1:2:t||0}function V1(i){return i===0?"month":i===1?"year":"decade"}function Wi(i,t,r){return V1(Tt.clamp(Ea(i,0),Ea(t,0),Ea(r,2)))}const Z1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Ko=j.factory((i,t)=>{const r=j.useProps("Calendar",Z1,i),{vars:s,maxLevel:l,minLevel:g,defaultLevel:f,level:c,onLevelChange:b,date:C,defaultDate:O,onDateChange:L,numberOfColumns:k,columnsToScroll:E,ariaLabels:R,nextLabel:M,previousLabel:$,onYearSelect:Q,onMonthSelect:X,onYearMouseEnter:J,onMonthMouseEnter:se,__updateDateOnYearSelect:q,__updateDateOnMonthSelect:ue,firstDayOfWeek:ne,weekdayFormat:ee,weekendDays:fe,getDayProps:de,excludeDate:ie,renderDay:Ae,hideOutsideDates:Ce,hideWeekdays:U,getDayAriaLabel:I,monthLabelFormat:A,nextIcon:v,previousIcon:p,__onDayClick:_,__onDayMouseEnter:d,withCellSpacing:m,highlightToday:T,withWeekNumbers:H,monthsListFormat:Z,getMonthControlProps:le,yearLabelFormat:pe,yearsListFormat:we,getYearControlProps:re,decadeLabelFormat:ce,classNames:Oe,styles:be,unstyled:B,minDate:Y,maxDate:W,locale:K,__staticSelector:ae,size:Te,__preventFocus:u,__stopPropagation:h,onNextDecade:w,onPreviousDecade:N,onNextYear:z,onPreviousYear:te,onNextMonth:xe,onPreviousMonth:Ee,static:Re,__timezoneApplied:Se,...Le}=r,{resolvedClassNames:$e,resolvedStyles:ke}=j.useResolvedStylesApi({classNames:Oe,styles:be,props:r}),[Ke,He]=Tt.useUncontrolled({value:c?Wi(c,g,l):void 0,defaultValue:f?Wi(f,g,l):void 0,finalValue:Wi(void 0,g,l),onChange:b}),[tt,dt]=Da({type:"default",value:C,defaultValue:O,onChange:L,applyTimezone:!Se}),St={__staticSelector:ae||"Calendar",styles:ke,classNames:$e,unstyled:B,size:Te},lt=cn(),Ct=E||k||1,Sn=new Date,Bn=Y&&Y>Sn?Y:Sn,xt=tt||kr("add",Bn,lt.getTimezone()),Qt=()=>{const nt=Ie(xt).add(Ct,"month").toDate();xe==null||xe(nt),dt(nt)},Cn=()=>{const nt=Ie(xt).subtract(Ct,"month").toDate();Ee==null||Ee(nt),dt(nt)},jn=()=>{const nt=Ie(xt).add(Ct,"year").toDate();z==null||z(nt),dt(nt)},Rn=()=>{const nt=Ie(xt).subtract(Ct,"year").toDate();te==null||te(nt),dt(nt)},fn=()=>{const nt=Ie(xt).add(10*Ct,"year").toDate();w==null||w(nt),dt(nt)},hn=()=>{const nt=Ie(xt).subtract(10*Ct,"year").toDate();N==null||N(nt),dt(nt)};return D.jsxs(j.Box,{ref:t,size:Te,"data-calendar":!0,...Le,children:[Ke==="month"&&D.jsx(Zo,{month:xt,minDate:Y,maxDate:W,firstDayOfWeek:ne,weekdayFormat:ee,weekendDays:fe,getDayProps:de,excludeDate:ie,renderDay:Ae,hideOutsideDates:Ce,hideWeekdays:U,getDayAriaLabel:I,onNext:Qt,onPrevious:Cn,hasNextLevel:l!=="month",onLevelClick:()=>He("year"),numberOfColumns:k,locale:K,levelControlAriaLabel:R==null?void 0:R.monthLevelControl,nextLabel:(R==null?void 0:R.nextMonth)??M,nextIcon:v,previousLabel:(R==null?void 0:R.previousMonth)??$,previousIcon:p,monthLabelFormat:A,__onDayClick:_,__onDayMouseEnter:d,__preventFocus:u,__stopPropagation:h,static:Re,withCellSpacing:m,highlightToday:T,withWeekNumbers:H,...St}),Ke==="year"&&D.jsx(Vo,{year:xt,numberOfColumns:k,minDate:Y,maxDate:W,monthsListFormat:Z,getMonthControlProps:le,locale:K,onNext:jn,onPrevious:Rn,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>He("decade"),levelControlAriaLabel:R==null?void 0:R.yearLevelControl,nextLabel:(R==null?void 0:R.nextYear)??M,nextIcon:v,previousLabel:(R==null?void 0:R.previousYear)??$,previousIcon:p,yearLabelFormat:pe,__onControlMouseEnter:se,__onControlClick:(nt,qt)=>{ue&&dt(qt),He(Wi("month",g,l)),X==null||X(qt)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,...St}),Ke==="decade"&&D.jsx(Go,{decade:xt,minDate:Y,maxDate:W,yearsListFormat:we,getYearControlProps:re,locale:K,onNext:fn,onPrevious:hn,numberOfColumns:k,nextLabel:(R==null?void 0:R.nextDecade)??M,nextIcon:v,previousLabel:(R==null?void 0:R.previousDecade)??$,previousIcon:p,decadeLabelFormat:ce,__onControlMouseEnter:J,__onControlClick:(nt,qt)=>{q&&dt(qt),He(Wi("year",g,l)),Q==null||Q(qt)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,...St})]})});Ko.classes={...Go.classes,...Vo.classes,...Zo.classes},Ko.displayName="@mantine/dates/Calendar";function K1(i){const{maxLevel:t,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:f,previousIcon:c,date:b,defaultDate:C,onDateChange:O,numberOfColumns:L,columnsToScroll:k,ariaLabels:E,nextLabel:R,previousLabel:M,onYearSelect:$,onMonthSelect:Q,onYearMouseEnter:X,onMonthMouseEnter:J,onNextMonth:se,onPreviousMonth:q,onNextYear:ue,onPreviousYear:ne,onNextDecade:ee,onPreviousDecade:fe,withCellSpacing:de,highlightToday:ie,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Ce,withWeekNumbers:U,firstDayOfWeek:I,weekdayFormat:A,weekendDays:v,getDayProps:p,excludeDate:_,renderDay:d,hideOutsideDates:m,hideWeekdays:T,getDayAriaLabel:H,monthLabelFormat:Z,monthsListFormat:le,getMonthControlProps:pe,yearLabelFormat:we,yearsListFormat:re,getYearControlProps:ce,decadeLabelFormat:Oe,allowSingleDateInRange:be,allowDeselect:B,minDate:Y,maxDate:W,locale:K,...ae}=i;return{calendarProps:{maxLevel:t,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:f,previousIcon:c,date:b,defaultDate:C,onDateChange:O,numberOfColumns:L,columnsToScroll:k,ariaLabels:E,nextLabel:R,previousLabel:M,onYearSelect:$,onMonthSelect:Q,onYearMouseEnter:X,onMonthMouseEnter:J,onNextMonth:se,onPreviousMonth:q,onNextYear:ue,onPreviousYear:ne,onNextDecade:ee,onPreviousDecade:fe,withCellSpacing:de,highlightToday:ie,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Ce,withWeekNumbers:U,firstDayOfWeek:I,weekdayFormat:A,weekendDays:v,getDayProps:p,excludeDate:_,renderDay:d,hideOutsideDates:m,hideWeekdays:T,getDayAriaLabel:H,monthLabelFormat:Z,monthsListFormat:le,getMonthControlProps:pe,yearLabelFormat:we,yearsListFormat:re,getYearControlProps:ce,decadeLabelFormat:Oe,allowSingleDateInRange:be,allowDeselect:B,minDate:Y,maxDate:W,locale:K},others:ae}}function Q1(i,t){if(i===null)return null;const r=kr("add",new Date(i),t);return Number.isNaN(r.getTime())||!i?null:r}function J1({date:i,maxDate:t,minDate:r}){return!(i==null||Number.isNaN(i.getTime())||t&&Ie(i).isAfter(t,"date")||r&&Ie(i).isBefore(r,"date"))}const X1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0,preserveTime:!0},Qo=j.factory((i,t)=>{const r=j.useInputProps("DateInput",X1,i),{inputProps:s,wrapperProps:l,value:g,defaultValue:f,onChange:c,clearable:b,clearButtonProps:C,popoverProps:O,getDayProps:L,locale:k,valueFormat:E,dateParser:R,minDate:M,maxDate:$,fixOnBlur:Q,onFocus:X,onBlur:J,onClick:se,readOnly:q,name:ue,form:ne,rightSection:ee,unstyled:fe,classNames:de,styles:ie,allowDeselect:Ae,preserveTime:Ce,date:U,defaultDate:I,onDateChange:A,...v}=r,p=me.useRef(null),_=me.useRef(null),[d,m]=me.useState(!1),{calendarProps:T,others:H}=K1(v),Z=cn(),pe=R||(z=>{const te=Ie(z,E,Z.getLocale(k)).toDate();return Number.isNaN(te.getTime())?Q1(z,Z.getTimezone()):te}),we=Ae!==void 0?Ae:b,re=z=>z?Ie(z).locale(Z.getLocale(k)).format(E):"",[ce,Oe,be]=Da({type:"default",value:g,defaultValue:f,onChange:c}),[B,Y]=Da({type:"default",value:U,defaultValue:f||I,onChange:A});me.useEffect(()=>{be&&g!==null&&Y(g)},[be,g]);const[W,K]=me.useState(re(ce));me.useEffect(()=>{K(re(ce))},[Z.getLocale(k)]);const ae=z=>{const te=z.currentTarget.value;if(K(te),m(!0),te.trim()===""&&b)Oe(null);else{const xe=pe(te);J1({date:xe,minDate:M,maxDate:$})&&(Oe(xe),Y(xe))}},Te=z=>{J==null||J(z),m(!1),Q&&K(re(ce))},u=z=>{X==null||X(z),m(!0)},h=z=>{se==null||se(z),m(!0)},w=z=>({...L==null?void 0:L(z),selected:Ie(ce).isSame(z,"day"),onClick:te=>{var Re,Se;(Se=L==null?void 0:(Re=L(z)).onClick)==null||Se.call(Re,te);const xe=Ce?n1(ce,z):z,Ee=b&&we&&Ie(ce).isSame(z,"day")?null:xe;Oe(Ee),!be&&K(re(Ee)),m(!1)}}),N=ee||(b&&ce&&!q?D.jsx(j.CloseButton,{variant:"transparent",onMouseDown:z=>z.preventDefault(),tabIndex:-1,onClick:()=>{Oe(null),!be&&K(""),m(!1)},unstyled:fe,size:s.size||"sm",...C}):null);return Tt.useDidUpdate(()=>{ce!==void 0&&!d&&K(re(ce))},[ce]),Tt.useClickOutside(()=>m(!1),void 0,[p.current,_.current]),D.jsxs(D.Fragment,{children:[D.jsx(j.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:p,children:D.jsxs(j.Popover,{opened:d,trapFocus:!1,position:"bottom-start",disabled:q,withRoles:!1,unstyled:fe,...O,children:[D.jsx(j.Popover.Target,{children:D.jsx(j.Input,{"data-dates-input":!0,"data-read-only":q||void 0,autoComplete:"off",ref:t,value:W,onChange:ae,onBlur:Te,onFocus:u,onClick:h,readOnly:q,rightSection:N,...s,...H,__staticSelector:"DateInput"})}),D.jsx(j.Popover.Dropdown,{onMouseDown:z=>z.preventDefault(),"data-dates-dropdown":!0,ref:_,children:D.jsx(Ko,{__staticSelector:"DateInput",__timezoneApplied:!0,...T,classNames:de,styles:ie,unstyled:fe,__preventFocus:!0,minDate:M,maxDate:$,locale:k,getDayProps:w,size:s.size,date:B,onDateChange:Y})})]})}),D.jsx(Oc,{name:ue,form:ne,value:ce,type:"default"})]})});Qo.classes={...j.Input.classes,...Ko.classes},Qo.displayName="@mantine/dates/DateInput";function e0(i){const t=an.c(46),{fields:r,onClose:s,queryKey:l,apiPath:g,steps:f,onCreated:c}=i,[b,C]=me.useState(0),[O,L]=me.useState(!1),[k,E]=me.useState(),{mutateAsync:R,isError:M,error:$,isPending:Q}=wc(g,l),{mutateAsync:X,isPending:J}=Ca(g,l),se=Q||J;let q;t[0]!==r?(q=new Set(r.filter(s0).map(o0)),t[0]=r,t[1]=q):q=t[1];let ue;t[2]!==q?(ue=[...q],t[2]=q,t[3]=ue):ue=t[3];const ne=ue;let ee;t[4]!==r?(ee=r.reduce(i0,{}),t[4]=r,t[5]=ee):ee=t[5];let fe;t[6]!==r?(fe=r.filter(r0).reduce(t0,{}),t[6]=r,t[7]=fe):fe=t[7];let de;t[8]!==ee||t[9]!==fe?(de={mode:"uncontrolled",initialValues:ee,validate:fe},t[8]=ee,t[9]=fe,t[10]=de):de=t[10];const ie=Ei.useForm(de);let Ae;t[11]!==ie?(Ae=function(m){return D.jsxs(me.Fragment,{children:[(m.type===void 0||m.type=="text")&&D.jsx(j.TextInput,{label:m.column.title,placeholder:m.placeholder??"",...ie.getInputProps(m.id),type:m.id.includes("email")?"email":void 0},ie.key(m.id)),m.type==="number"&&D.jsx(j.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...ie.getInputProps(m.id)},ie.key(m.id)),m.type==="date"&&D.jsx(Qo,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ie.getInputProps(m.id)},ie.key(m.id)),m.type==="boolean"&&D.jsx(j.Checkbox,{mt:"md",label:m.column.title,...ie.getInputProps(m.id,{type:"checkbox"})},ie.key(m.id)),m.type==="custom"&&m.render&&m.render(ie.getValues(),ie.setValues,L)]},m.id)},t[11]=ie,t[12]=Ae):Ae=t[12];const Ce=Ae;let U;t[13]!==($==null?void 0:$.message)||t[14]!==($==null?void 0:$.name)||t[15]!==M?(U=M&&D.jsx(j.Alert,{variant:"outline",color:"red",title:($==null?void 0:$.name)??"Fehler aufgetreten",mb:"lg",children:($==null?void 0:$.message)??"Fehler aufgetreten"}),t[13]=$==null?void 0:$.message,t[14]=$==null?void 0:$.name,t[15]=M,t[16]=U):U=t[16];let I;t[17]!==b||t[18]!==R||t[19]!==ie||t[20]!==M||t[21]!==s||t[22]!==c||t[23]!==k||t[24]!==ne.length||t[25]!==X?(I=ie.onSubmit(async d=>{if(k)await X({...d,id:k});else{const m=await R(d);E(m.id),c==null||c(m.id)}ne.length&&b<ne.length-1?M||C(b+1):M||(ie.setInitialValues(d),ie.reset(),s())}),t[17]=b,t[18]=R,t[19]=ie,t[20]=M,t[21]=s,t[22]=c,t[23]=k,t[24]=ne.length,t[25]=X,t[26]=I):I=t[26];let A;t[27]!==b||t[28]!==r||t[29]!==Ce||t[30]!==f||t[31]!==ne?(A=ne.length?D.jsx(j.Stepper,{active:b,size:"sm",children:ne.map(d=>D.jsx(j.Stepper.Step,{...f&&f[d-1]?{label:f[d-1].label}:{},children:r.filter(m=>m.step===d).map(m=>Ce(m))},d))}):r.map(d=>Ce(d)),t[27]=b,t[28]=r,t[29]=Ce,t[30]=f,t[31]=ne,t[32]=A):A=t[32];let v;t[33]!==b||t[34]!==O||t[35]!==se||t[36]!==s||t[37]!==ne.length?(v=!O&&D.jsxs(j.Group,{mt:"md",justify:"end",children:[D.jsx(j.Button,{onClick:()=>ne.length?b===0?s():C(b-1):s(),variant:"outline",children:ne.length?b===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(j.Button,{type:"submit",loading:se,children:ne.length?b===ne.length-1?"Speichern":"Weiter":"Speichern"})]}),t[33]=b,t[34]=O,t[35]=se,t[36]=s,t[37]=ne.length,t[38]=v):v=t[38];let p;t[39]!==v||t[40]!==I||t[41]!==A?(p=D.jsxs("form",{onSubmit:I,children:[A,v]}),t[39]=v,t[40]=I,t[41]=A,t[42]=p):p=t[42];let _;return t[43]!==p||t[44]!==U?(_=D.jsxs(D.Fragment,{children:[U,p]}),t[43]=p,t[44]=U,t[45]=_):_=t[45],_}function t0(i,t){return i[t.id]=n0,i}function n0(i){return i?null:"Pflichtfeld"}function r0(i){return i.required}function i0(i,t){return i[t.id]=t.type==="boolean"?!1:t.defaultValue??"",i}function o0(i){return i.step}function s0(i){return typeof i.step=="number"}var[a0,Ma]=j.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Wc=i=>{let{children:t,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:g,resetColumnsOrder:f,resetColumnsToggle:c,setColumnWidth:b,resetColumnsWidth:C}=i,[O,L]=me.useState(""),[k,E]=me.useState("");return D.jsx(a0,{value:{sourceColumn:O,setSourceColumn:L,targetColumn:k,setTargetColumn:E,columnsToggle:l,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!O||!k)return;let R=r.indexOf(O),M=r.indexOf(k);if(R!==-1&&M!==-1){let $=r.splice(R,1)[0];r.splice(M,0,$),s([...r])}},resetColumnsOrder:f,resetColumnsToggle:c,setColumnWidth:b,resetColumnsWidth:C},children:t})};function u0(){return D.jsx("tr",{className:"mantine-datatable-empty-row",children:D.jsx("td",{})})}function l0(){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 c0({icon:i,text:t,pt:r,pb:s,active:l,children:g}){return D.jsx(j.Center,{pt:r,pb:s,className:"mantine-datatable-empty-state","data-active":l||void 0,children:g||D.jsxs(D.Fragment,{children:[i||D.jsx("div",{className:"mantine-datatable-empty-state-icon",children:D.jsx(l0,{})}),D.jsx(j.Text,{component:"div",size:"sm",c:"dimmed",children:t})]})})}var f0=({key:i,columns:t=[],getInitialValueInEffect:r=!0})=>{function s(q,ue){let ne=[];return q.forEach(ee=>{ue.find(fe=>fe.accessor===ee)&&ne.push(ee)}),ue.forEach(ee=>{ne.includes(ee.accessor)||ne.push(ee.accessor)}),ne}function l(q,ue){let ne=[];return q.forEach(ee=>{ue.find(fe=>fe.accessor===ee.accessor)&&ne.push(ee)}),ue.forEach(ee=>{ne.find(fe=>fe.accessor===ee.accessor)||ne.push({accessor:ee.accessor,defaultToggle:ee.defaultToggle||!0,toggleable:ee.toggleable,toggled:ee.defaultToggle===void 0?!0:ee.defaultToggle})}),ne}function g(q,ue){let ne=[];return q.forEach(ee=>{let fe=Object.keys(ee)[0];ue.find(de=>de.accessor===fe)&&ne.push(ee)}),ue.forEach(ee=>{let fe=ee.accessor;if(!ne.find(de=>Object.keys(de)[0]===fe)){let de={};de[fe]="",ne.push(de)}}),ne}function f(){let[q,ue]=Tt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?C:void 0,getInitialValueInEffect:r});function ne(de){i&&ue(de)}if(!i)return[q,ne];let ee=s(q,t),fe=JSON.stringify(q);return JSON.stringify(ee)!==fe&&ne(ee),[ee,ne]}function c(){let[q,ue]=Tt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?L:void 0,getInitialValueInEffect:r});function ne(de){i&&ue(de)}if(!i)return[q,ne];let ee=l(q,t),fe=JSON.stringify(q);return JSON.stringify(ee)!==fe&&ne(ee),[l(q,t),ne]}function b(){let[q,ue]=Tt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?O:void 0,getInitialValueInEffect:r});function ne(de){i&&ue(de)}if(!i)return[q,ne];let ee=g(q,t),fe=JSON.stringify(q);return JSON.stringify(ee)!==fe&&ne(ee),[g(q,t),ne]}let C=t&&t.map(q=>q.accessor)||[],O=t&&t.map(q=>({[q.accessor]:q.width??"initial"}))||[],L=t&&t.map(q=>({accessor:q.accessor,defaultToggle:q.defaultToggle||!0,toggleable:q.toggleable,toggled:q.defaultToggle===void 0?!0:q.defaultToggle})),[k,E]=f(),[R,M]=c(),[$,Q]=b(),X=()=>E(C),J=()=>{M(L)},se=()=>Q(O);return{effectiveColumns:me.useMemo(()=>k?k.map(q=>t.find(ue=>ue.accessor===q)).map(q=>{var ue;return{...q,hidden:(q==null?void 0:q.hidden)||!((ue=R.find(ne=>ne.accessor===(q==null?void 0:q.accessor)))!=null&&ue.toggled)}}).map(q=>{var ue;return{...q,width:(ue=$.find(ne=>ne[q==null?void 0:q.accessor]))==null?void 0:ue[q==null?void 0:q.accessor]}}):t,[t,k,R,$]),setColumnsOrder:E,columnsOrder:k,resetColumnsOrder:X,columnsToggle:R,setColumnsToggle:M,resetColumnsToggle:J,columnsWidth:$,setColumnsWidth:Q,setColumnWidth:(q,ue)=>{let ne=$.map(ee=>ee[q]?{[q]:ue}:ee);Q(ne)},resetColumnsWidth:se}};function ti(){var s;let[i]=Tt.useResizeObserver(),{width:t,height:r}=((s=i.current)==null?void 0:s.getBoundingClientRect())||{width:0,height:0};return{ref:i,width:t,height:r}}var h0=typeof window<"u"?me.useLayoutEffect:me.useEffect;function d0(i){let[t,r]=me.useState(null),s=(i==null?void 0:i.join(":"))||"";return me.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:t,setLastSelectionChangeIndex:r}}function p0(i,t){let r=()=>{t(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 g0(i,t){return t||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function v0(i,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=me.useState(r?t:g0(i,t)),g=me.useRef(null);return me.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(f=>window.matchMedia(f)),l(g.current.map(f=>f.matches)),p0(g.current,f=>{l(f)})},[i]),s}function m0(i){let t=j.useMantineTheme(),r=me.useMemo(()=>i.map(l=>(typeof l=="function"?l(t):l)??""),[i,t]),s=me.useMemo(()=>i.map(()=>!0),[i]);return v0(r,s)}function Jo(i){let t=j.useMantineTheme(),r=typeof i=="function"?i(t):i;return Tt.useMediaQuery(r||"",!0)}function Ra(i){let t=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function y0(i,t,r){return i.filter(s=>!t.map(r).includes(r(s)))}function La(i,t){return i.filter((r,s,l)=>s===l.findIndex(g=>t(r)===t(g)))}function Yc(i,t){return t?t.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Bt(i,t){return typeof t=="string"?Yc(i,t):t(i)}function w0({rowExpansion:i,records:t,idAccessor:r}){let s=[];if(i&&t){let{trigger:c,allowMultiple:b,initiallyExpanded:C}=i;t&&c==="always"?s=t.map(O=>Bt(O,r)):C&&(s=t.filter((O,L)=>C({record:O,index:L})).map(O=>Bt(O,r)),b||(s=[s[0]]))}let l,g,f=me.useState(s);if(i){let{expandable:c,trigger:b,allowMultiple:C,collapseProps:O,content:L}=i;i.expanded?{recordIds:l,onRecordIdsChange:g}=i.expanded:[l,g]=f;let k=E=>g==null?void 0:g(l.filter(R=>R!==Bt(E,r)));return{expandOnClick:b!=="always"&&b!=="never",isRowExpanded:E=>b==="always"?!0:l.includes(Bt(E,r)),isExpandable:({record:E,index:R})=>c?c({record:E,index:R}):!0,expandRow:E=>{let R=Bt(E,r);g==null||g(C?[...l,R]:[R])},collapseRow:k,collapseProps:O,content:({record:E,index:R})=>()=>L({record:E,index:R,collapse:()=>k(E)})}}}function _0(i,t){let[r,s]=me.useState(i),[l,g]=me.useState(i),f=Tt.useTimeout(()=>s(!0),0),c=Tt.useTimeout(()=>g(!1),t||200);return me.useEffect(()=>{i?(c.clear(),g(!0),f.start()):(f.clear(),s(!1),c.start())},[f,c,i]),{expanded:r,visible:l}}var ka="mantine-datatable-nowrap",Ia="mantine-datatable-ellipsis",ni="mantine-datatable-pointer-cursor",qc="mantine-datatable-context-menu-cursor",b0="mantine-datatable-text-selection-disabled",Xo="mantine-datatable-text-align-left",es="mantine-datatable-text-align-center",ts="mantine-datatable-text-align-right";function x0({className:i,style:t,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:g,textAlign:f,width:c}){return Jo(r)?D.jsx(j.TableTh,{className:mt({[ka]:l||g,[Ia]:g,[Xo]:f==="left",[es]:f==="center",[ts]:f==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},t],children:s}):null}function S0({shadowVisible:i}){return D.jsx(j.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}var C0=me.forwardRef(function({className:i,style:t,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:g,scrollDiff:f},c){let b=f<0;return D.jsx(j.TableTfoot,{ref:c,className:mt("mantine-datatable-footer",i),style:[{position:b?"relative":"sticky",bottom:j.rem(b?f:0)},t],children:D.jsxs(j.TableTr,{children:[l&&D.jsx(S0,{shadowVisible:g}),r.map(({hidden:C,...O})=>{if(C)return null;let{accessor:L,visibleMediaQuery:k,textAlign:E,width:R,footer:M,footerClassName:$,footerStyle:Q,noWrap:X,ellipsis:J}={...s,...O};return D.jsx(x0,{className:$,style:Q,visibleMediaQuery:k,textAlign:E,width:R,title:M,noWrap:X,ellipsis:J},L)})]})})});function A0({group:{id:i,columns:t,title:r,textAlign:s,className:l,style:g}}){let f=me.useMemo(()=>t.map(({visibleMediaQuery:C})=>C),[t]),c=m0(f),b=me.useMemo(()=>t.filter(({hidden:C},O)=>!C&&(c==null?void 0:c[O])).length,[t,c]);return b>0?D.jsx(j.TableTh,{colSpan:b,className:mt("mantine-datatable-column-group-header-cell",{[Xo]:s==="left",[es]:s==="center",[ts]:s==="right"},l),style:g,children:r??Ra(i)}):null}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:"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 T0(){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 D0({children:i,isActive:t,filterPopoverProps:r}){let[s,{close:l,toggle:g}]=Tt.useDisclosure(!1),f=t?T0:O0,c=Tt.useClickOutside(l);return D.jsxs(j.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[D.jsx(j.PopoverTarget,{children:D.jsx(j.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":t||void 0,size:"sm",variant:"default",onClick:b=>{b.preventDefault(),g()},onKeyDown:b=>b.stopPropagation(),children:D.jsx(f,{})})}),D.jsx(j.PopoverDropdown,{ref:c,onClick:b=>b.stopPropagation(),onKeyDown:b=>b.stopPropagation(),children:typeof i=="function"?i({close:l}):i})]})}var E0=i=>{let{accessor:t,columnRef:r}=i,s=me.useRef(null),[l,g]=me.useState(0),{setColumnWidth:f}=Ma(),c=O=>{O.preventDefault(),O.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.body.style.cursor="col-resize"},b=O=>{if(!r.current)return;let L=O.clientX-r.current.getBoundingClientRect().right,k=`${r.current.getBoundingClientRect().width+L}px`;r.current.style.width=k,f(t,r.current.style.width),g(-L)},C=()=>{r.current&&(document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),document.body.style.cursor="initial",f(t,r.current.style.width),g(0))};return D.jsx("div",{ref:s,onClick:O=>O.stopPropagation(),onMouseDown:c,onDoubleClick:()=>{r.current&&(r.current.style.maxWidth="initial",r.current.style.minWidth="initial",r.current.style.width="initial",f(t,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:j.rem(l)}})};function M0(){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 R0(){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 L0(){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 k0(){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 I0({className:i,style:t,accessor:r,visibleMediaQuery:s,title:l,sortable:g,draggable:f,toggleable:c,resizable:b,sortIcons:C,textAlign:O,width:L,sortStatus:k,onSortStatusChange:E,filter:R,filterPopoverProps:M,filtering:$,sortKey:Q}){let{setSourceColumn:X,setTargetColumn:J,swapColumns:se,setColumnsToggle:q}=Ma(),[ue,ne]=me.useState(!1),ee=me.useRef(null);if(!Jo(s))return null;let fe=l??Ra(r),de=typeof fe=="string"?fe:void 0,ie=g&&E?p=>{p!=null&&p.defaultPrevented||E({sortKey:Q,columnAccessor:r,direction:(k==null?void 0:k.columnAccessor)===r?k.direction==="asc"?"desc":"asc":(k==null?void 0:k.direction)??"asc"})}:void 0,Ae=p=>{p.stopPropagation(),X(r),ne(!1)},Ce=p=>{p.preventDefault(),J(r),ne(!0)},U=()=>{J(r),ne(!1),se()},I=()=>{ne(!0)},A=()=>{ne(!1)},v=p=>{p.stopPropagation(),q(_=>_.map(d=>d.accessor===r?{...d,toggled:!1}:d))};return D.jsxs(j.TableTh,{className:mt({"mantine-datatable-header-cell-sortable":g,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":b},i),style:[{width:L,...b?{minWidth:"1px"}:{minWidth:L,maxWidth:L}},t],role:g?"button":void 0,tabIndex:g?0:void 0,onClick:ie,onKeyDown:p=>p.key==="Enter"&&(ie==null?void 0:ie()),ref:ee,children:[D.jsxs(j.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs(j.Flex,{align:"center",w:"100%",className:mt({"mantine-datatable-header-cell-draggable":f,"mantine-datatable-header-cell-drag-over":ue}),draggable:f,onDragStart:f?Ae:void 0,onDragEnter:f?I:void 0,onDragOver:f?Ce:void 0,onDrop:f?U:void 0,onDragLeave:f?A:void 0,children:[f?D.jsx(j.Center,{role:"img","aria-label":"Drag column",children:D.jsx(j.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:p=>{p.stopPropagation()},children:D.jsx(L0,{})})}):null,D.jsx(j.Box,{className:mt("mantine-datatable-header-cell-sortable-text",{[Xo]:O==="left",[es]:O==="center",[ts]:O==="right"},ka,Ia),title:de,children:fe})]}),c?D.jsx(j.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx(j.ActionIcon,{size:"xs",variant:"light",onClick:v,children:D.jsx(k0,{})})}):null,g||(k==null?void 0:k.columnAccessor)===r?D.jsx(D.Fragment,{children:(k==null?void 0:k.columnAccessor)===r?D.jsx(j.Center,{className:mt("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":k.direction==="desc"}),role:"img","aria-label":`Sorted ${k.direction==="desc"?"descending":"ascending"}`,children:(C==null?void 0:C.sorted)||D.jsx(M0,{})}):D.jsx(j.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(C==null?void 0:C.unsorted)||D.jsx(R0,{})})}):null,R?D.jsx(D0,{filterPopoverProps:M,isActive:!!$,children:R}):null]}),b?D.jsx(E0,{accessor:r,columnRef:ee}):null]})}var P0=me.forwardRef(function({className:i,style:t,trigger:r,shadowVisible:s,checked:l,indeterminate:g,checkboxProps:f,onChange:c,rowSpan:b},C){let O=!f.disabled;return D.jsx(j.TableTh,{ref:C,className:mt("mantine-datatable-header-selector-cell",{[ni]:r==="cell"&&O},i),style:t,rowSpan:b,"data-shadow-visible":s||void 0,onClick:r==="cell"&&O?c:void 0,children:D.jsx(j.Checkbox,{classNames:O?{input:ni}:void 0,checked:l,indeterminate:g,onChange:c,...f,disabled:!(c||f.onChange)||f.disabled})})}),$0=me.forwardRef(function({selectionColumnHeaderRef:i,className:t,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:g,columns:f,defaultColumnProps:c,groups:b,selectionTrigger:C,selectionVisible:O,selectionChecked:L,selectionIndeterminate:k,onSelectionChange:E,selectionCheckboxProps:R,selectorCellShadowVisible:M,selectionColumnClassName:$,selectionColumnStyle:Q},X){let J=O?D.jsx(P0,{ref:i,className:$,style:Q,trigger:C,shadowVisible:M,checked:L,indeterminate:k,checkboxProps:R,onChange:E,rowSpan:b?2:void 0}):null,{columnsToggle:se,setColumnsToggle:q}=Ma(),[ue,ne]=me.useState(!1),ee=f.some(ie=>ie.toggleable),fe=ee?Object.fromEntries(f.map(({accessor:ie,title:Ae})=>[ie,Ae??Ra(String(ie))])):void 0,de=D.jsxs(j.TableThead,{className:mt("mantine-datatable-header",t),style:r,ref:X,onContextMenu:ee?ie=>{ie.preventDefault(),ne(Ae=>!Ae)}:void 0,children:[b&&D.jsxs(j.TableTr,{children:[J,b.map(ie=>D.jsx(A0,{group:ie},ie.id))]}),D.jsxs(j.TableTr,{children:[!b&&J,f.map(({hidden:ie,...Ae},Ce)=>{if(ie)return null;let{accessor:U,visibleMediaQuery:I,textAlign:A,width:v,title:p,sortable:_,draggable:d,toggleable:m,resizable:T,titleClassName:H,titleStyle:Z,filter:le,filterPopoverProps:pe,filtering:we,sortKey:re}={...c,...Ae};return D.jsx(I0,{accessor:U,className:H,style:Z,visibleMediaQuery:I,textAlign:A,width:v,title:p,sortable:_,draggable:d,toggleable:m,resizable:T&&Ce<f.length-1,sortStatus:s,sortIcons:l,sortKey:re,onSortStatusChange:g,filter:le,filterPopoverProps:pe,filtering:we},U)})]})]});return ee?D.jsxs(j.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ue,onChange:ne,children:[D.jsx(j.PopoverTarget,{children:de}),D.jsx(j.PopoverDropdown,{children:D.jsx(j.Stack,{children:se.filter(ie=>ie.toggleable).map(ie=>D.jsx(j.Group,{children:D.jsx(j.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:fe[ie.accessor],checked:ie.toggled,onChange:Ae=>{q(se.map(Ce=>Ce.accessor===ie.accessor?{...Ce,toggled:Ae.currentTarget.checked}:Ce))}})},ie.accessor))})})]}):de});function N0({pt:i,pb:t,fetching:r,customContent:s,backgroundBlur:l,size:g,type:f,color:c}){return D.jsx(j.Center,{pt:i,pb:t,className:mt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||D.jsx(j.Loader,{size:g,type:f,color:c}))})}function bt(i,t,r){return i?j.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:t}).value:void 0}function B0({theme:i,c:t,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:g,highlightOnHoverColor:f}){return{"--mantine-datatable-color-light":bt(t,i,"light"),"--mantine-datatable-color-dark":bt(t,i,"dark"),"--mantine-datatable-background-color-light":bt(r,i,"light"),"--mantine-datatable-background-color-dark":bt(r,i,"dark"),"--mantine-datatable-border-color-light":bt(s,i,"light"),"--mantine-datatable-border-color-dark":bt(s,i,"dark"),"--mantine-datatable-row-border-color-light":bt(l,i,"light"),"--mantine-datatable-row-border-color-dark":bt(l,i,"dark"),"--mantine-datatable-striped-color-light":bt(g,i,"light"),"--mantine-datatable-striped-color-dark":bt(g,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":bt(f,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":bt(f,i,"dark")}}function Hc({theme:i,paginationActiveTextColor:t,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":bt(t,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":bt(t,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":bt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":bt(r,i,"dark")}}function j0({theme:i,color:t,backgroundColor:r}){return{"--mantine-datatable-row-color-light":bt(t,i,"light"),"--mantine-datatable-row-color-dark":bt(t,i,"dark"),"--mantine-datatable-row-background-color-light":bt(r,i,"light"),"--mantine-datatable-row-background-color-dark":bt(r,i,"dark")}}function U0(){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 Gc={xs:j.rem(22),sm:j.rem(26),md:j.rem(32),lg:j.rem(38),xl:j.rem(44)};function z0({size:i,label:t,values:r,value:s,activeTextColor:l,activeBackgroundColor:g,onChange:f}){return D.jsxs(j.Group,{gap:"xs",children:[D.jsx(j.Text,{component:"div",size:i,children:t}),D.jsxs(j.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx(j.MenuTarget,{children:D.jsx(j.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:D.jsx(U0,{}),style:[{fontWeight:"normal"},c=>({height:Gc[i],paddingLeft:c.spacing[i],paddingRight:c.spacing[i]})],children:s})}),D.jsx(j.MenuDropdown,{children:r.map(c=>{let b=c===s;return D.jsx(j.MenuItem,{className:mt({"mantine-datatable-page-size-selector-active":b}),style:[{height:Gc[i]},b&&(l||g)?C=>Hc({theme:C,paginationActiveTextColor:l,paginationActiveBackgroundColor:g}):void 0],disabled:b,onClick:()=>f(c),children:D.jsx(j.Text,{component:"div",size:i,children:c})},c)})})]})]})}var F0=me.forwardRef(function({className:i,style:t,fetching:r,page:s,onPageChange:l,paginationWithEdges:g,paginationWithControls:f,paginationActiveTextColor:c,paginationActiveBackgroundColor:b,paginationSize:C,loadingText:O,noRecordsText:L,paginationText:k,totalRecords:E,recordsPerPage:R,onRecordsPerPageChange:M,recordsPerPageLabel:$,recordsPerPageOptions:Q,recordsLength:X,horizontalSpacing:J,paginationWrapBreakpoint:se,getPaginationControlProps:q},ue){let ne;if(E){let fe=(s-1)*R+1,de=fe+(X||0)-1;ne=k({from:fe,to:de,totalRecords:E})}else ne=r?O:L;let ee=Jo(({breakpoints:fe})=>`(min-width: ${typeof se=="number"?`${j.rem(se)}rem`:fe[se]||se})`);return D.jsxs(j.Box,{ref:ue,px:J??"xs",py:"xs",className:mt("mantine-datatable-pagination",i),style:[{flexDirection:ee?"row":"column"},t],children:[D.jsx(j.Text,{component:"div",className:"mantine-datatable-pagination-text",size:C,children:ne}),Q&&D.jsx(z0,{activeTextColor:c,activeBackgroundColor:b,size:C,label:$,values:Q,value:R,onChange:M}),D.jsx(j.Pagination,{classNames:{root:mt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!X}),control:"mantine-datatable-pagination-pages-control"},style:c||b?fe=>Hc({theme:fe,paginationActiveTextColor:c,paginationActiveBackgroundColor:b}):void 0,withEdges:g,withControls:f,value:s,onChange:l,size:C,total:Math.ceil(E/R),getControlProps:q})]})});function W0({className:i,style:t,visibleMediaQuery:r,record:s,index:l,onClick:g,onDoubleClick:f,onContextMenu:c,noWrap:b,ellipsis:C,textAlign:O,width:L,accessor:k,render:E,defaultRender:R,customCellAttributes:M}){return Jo(r)?D.jsx(j.TableTd,{className:mt({[ka]:b||C,[Ia]:C,[ni]:g||f,[qc]:c,[Xo]:O==="left",[es]:O==="center",[ts]:O==="right"},i),style:[{width:L,minWidth:L,maxWidth:L},t],onClick:g,onDoubleClick:f,onContextMenu:c,...M==null?void 0:M(s,l),children:E?E(s,l):R?R(s,l,k):Yc(s,k)}):null}function Y0({open:i,colSpan:t,content:r,collapseProps:s}){let{expanded:l,visible:g}=_0(i,s==null?void 0:s.transitionDuration);return g?D.jsxs(D.Fragment,{children:[D.jsx(j.TableTr,{}),D.jsx(j.TableTr,{children:D.jsx(j.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:t,children:D.jsx(j.Collapse,{in:l,...s,children:D.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function q0({className:i,style:t,record:r,index:s,trigger:l,onChange:g,withRightShadow:f,checkboxProps:c,getCheckboxProps:b,...C}){let O={...c,...b(r,s)},L=!C.disabled&&!O.disabled,k=E=>{E.stopPropagation(),l==="cell"&&L&&(g==null||g(E))};return D.jsx(j.TableTd,{className:mt("mantine-datatable-row-selector-cell",{[ni]:l==="cell"&&L},i),style:t,"data-shadow-visible":f||void 0,onClick:k,children:D.jsx(j.Checkbox,{classNames:L?{input:ni}:void 0,onChange:g,...C,...O})})}function H0({record:i,index:t,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:g,selectionVisible:f,selectionChecked:c,onSelectionChange:b,isRecordSelectable:C,selectionCheckboxProps:O,getSelectionCheckboxProps:L,onClick:k,onDoubleClick:E,onContextMenu:R,onCellClick:M,onCellDoubleClick:$,onCellContextMenu:Q,expansion:X,customAttributes:J,color:se,backgroundColor:q,className:ue,style:ne,selectorCellShadowVisible:ee,selectionColumnClassName:fe,selectionColumnStyle:de,rowFactory:ie}){let Ae=D.jsxs(D.Fragment,{children:[f&&D.jsx(q0,{className:fe,style:de,record:i,index:t,trigger:g,withRightShadow:ee,checked:c,disabled:!b||(C?!C(i,t):!1),onChange:b,checkboxProps:O,getCheckboxProps:L}),r.map(({hidden:I,hiddenContent:A,...v},p)=>{if(I||A)return null;let{accessor:_,visibleMediaQuery:d,textAlign:m,noWrap:T,ellipsis:H,width:Z,render:le,cellsClassName:pe,cellsStyle:we,customCellAttributes:re}={...s,...v};return D.jsx(W0,{className:typeof pe=="function"?pe(i,t):pe,style:we==null?void 0:we(i,t),visibleMediaQuery:d,record:i,index:t,onClick:M?ce=>M({event:ce,record:i,index:t,column:v,columnIndex:p}):void 0,onDoubleClick:$?ce=>$({event:ce,record:i,index:t,column:v,columnIndex:p}):void 0,onContextMenu:Q?ce=>Q({event:ce,record:i,index:t,column:v,columnIndex:p}):void 0,accessor:_,textAlign:m,noWrap:T,ellipsis:H,width:Z,render:le,defaultRender:l,customCellAttributes:re},_)})]}),Ce=X&&D.jsx(Y0,{colSpan:r.filter(({hidden:I})=>!I).length+(f?1:0),open:X.isRowExpanded(i),content:X.content({record:i,index:t}),collapseProps:X.collapseProps}),U=G0({record:i,index:t,selectionChecked:c,onClick:k,onDoubleClick:E,onContextMenu:R,expansion:X,customAttributes:J,color:se,backgroundColor:q,className:ue,style:ne});return ie?ie({record:i,index:t,rowProps:U,children:Ae,expandedElement:Ce}):D.jsxs(D.Fragment,{children:[D.jsx(j.TableTr,{...U,children:Ae}),Ce]})}function G0({record:i,index:t,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:g,expansion:f,customAttributes:c,color:b,backgroundColor:C,className:O,style:L}){return{className:mt("mantine-datatable-row",{[ni]:s||l||(f==null?void 0:f.isExpandable({record:i,index:t}))&&(f==null?void 0:f.expandOnClick)},{[qc]:g},typeof O=="function"?O(i,t):O),"data-selected":r||void 0,onClick:k=>{if(f){let{isExpandable:E,isRowExpanded:R,expandOnClick:M,expandRow:$,collapseRow:Q}=f;E({record:i,index:t})&&M&&(R(i)?Q(i):$(i))}s==null||s({event:k,record:i,index:t})},onDoubleClick:l?k=>l({event:k,record:i,index:t}):void 0,onContextMenu:g?k=>g({event:k,record:i,index:t}):void 0,style:[b||C?k=>{let E=b==null?void 0:b(i,t),R=C==null?void 0:C(i,t);return j0({theme:k,color:E,backgroundColor:R})}:void 0,L==null?void 0:L(i,t)],...(c==null?void 0:c(i,t))??{}}}function V0({topShadowVisible:i,leftShadowVisible:t,leftShadowBehind:r,rightShadowVisible:s,rightShadowBehind:l,bottomShadowVisible:g,headerHeight:f,footerHeight:c,onScrollPositionChange:b,children:C,viewportRef:O,scrollAreaProps:L}){return D.jsxs(j.ScrollArea,{...L,viewportRef:O,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:b,children:[C,D.jsx(j.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:f?j.rem(f):0}}),D.jsx("div",{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":t,"mantine-datatable-scroll-area-shadow-behind":r})}),D.jsx("div",{className:mt("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(j.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":g}),style:{bottom:c?j.rem(c+1):0}})]})}function Z0({withTableBorder:i,borderRadius:t,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:g,shadow:f,verticalAlign:c="center",fetching:b,columns:C,storeColumnsKey:O,groups:L,pinFirstColumn:k,pinLastColumn:E,defaultColumnProps:R,defaultColumnRender:M,idAccessor:$="id",records:Q,selectionTrigger:X="checkbox",selectedRecords:J,onSelectedRecordsChange:se,selectionColumnClassName:q,selectionColumnStyle:ue,isRecordSelectable:ne,selectionCheckboxProps:ee,allRecordsSelectionCheckboxProps:fe={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:de=(Ht,Un)=>({"aria-label":`Select record ${Un+1}`}),sortStatus:ie,sortIcons:Ae,onSortStatusChange:Ce,horizontalSpacing:U,page:I,onPageChange:A,totalRecords:v,recordsPerPage:p,onRecordsPerPageChange:_,recordsPerPageOptions:d,recordsPerPageLabel:m="Records per page",paginationWithEdges:T,paginationWithControls:H,paginationActiveTextColor:Z,paginationActiveBackgroundColor:le,paginationSize:pe="sm",paginationText:we=({from:Ht,to:Un,totalRecords:zn})=>`${Ht} - ${Un} / ${zn}`,paginationWrapBreakpoint:re="sm",getPaginationControlProps:ce=Ht=>Ht==="previous"?{"aria-label":"Previous page"}:Ht==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:Oe,customLoader:be,loaderSize:B,loaderType:Y,loaderColor:W,loadingText:K="...",emptyState:ae,noRecordsText:Te="No records",noRecordsIcon:u,highlightOnHover:h,striped:w,noHeader:N,onRowClick:z,onRowDoubleClick:te,onRowContextMenu:xe,onCellClick:Ee,onCellDoubleClick:Re,onCellContextMenu:Se,onScroll:Le,onScrollToTop:$e,onScrollToBottom:ke,onScrollToLeft:Ke,onScrollToRight:He,c:tt,backgroundColor:dt,borderColor:St,rowBorderColor:lt,stripedColor:Ct,highlightOnHoverColor:Sn,rowColor:Bn,rowBackgroundColor:xt,rowExpansion:Qt,rowClassName:Cn,rowStyle:jn,customRowAttributes:Rn,scrollViewportRef:fn,scrollAreaProps:hn,tableRef:nt,bodyRef:qt,m:pt,my:Mt,mx:dr,mt:pr,mb:gr,ml:ci,mr:fi,className:hi,classNames:Rt,style:Pa,styles:Lt,rowFactory:$a,tableWrapper:Gi,...Vi}){let{ref:Ht,width:Un,height:zn}=ti(),Br=me.useMemo(()=>(L==null?void 0:L.flatMap(Ve=>Ve.columns))??C,[C,L]),ns=f0({key:O,columns:Br}),{ref:Na,height:vr}=ti(),{ref:Ba,width:mr,height:jr}=ti(),{ref:ja,height:Ua}=ti(),{ref:rs,height:Zi}=ti(),{ref:is,width:za}=ti(),Fa=Tt.useMergedRef(Ba,nt),Wa=Tt.useMergedRef(Ht,fn),[Ki,Qi]=me.useState(!0),[di,Ji]=me.useState(!0),[Fn,os]=me.useState(!0),[Ur,zr]=me.useState(!0),ss=w0({rowExpansion:Qt,records:Q,idAccessor:$}),Xi=me.useCallback(()=>{var wr,_r;let Ve=((wr=Ht.current)==null?void 0:wr.scrollTop)??0,Jt=((_r=Ht.current)==null?void 0:_r.scrollLeft)??0;if(b||jr<=zn)Qi(!0),Ji(!0);else{let dn=Ve===0,Xt=jr-Ve-zn<1;Qi(dn),Ji(Xt),dn&&dn!==Ki&&($e==null||$e()),Xt&&Xt!==di&&(ke==null||ke())}if(b||mr===Un)os(!0),zr(!0);else{let dn=Jt===0,Xt=mr-Jt-Un<1;os(dn),zr(Xt),dn&&dn!==Fn&&(Ke==null||Ke()),Xt&&Xt!==Ur&&(He==null||He())}},[b,ke,Ke,He,$e,zn,Ht,Un,di,Fn,Ur,Ki,jr,mr]);h0(Xi,[Xi]);let eo=Tt.useDebouncedCallback(Xi,50),as=me.useCallback(Ve=>{Le==null||Le(Ve),eo()},[eo,Le]),to=me.useCallback(Ve=>{var Jt;(Jt=Ht.current)==null||Jt.scrollTo({top:0,left:0}),A(Ve)},[A,Ht]),pi=Q==null?void 0:Q.length,no=Q==null?void 0:Q.map(Ve=>Bt(Ve,$)),Ln=!!J,An=J==null?void 0:J.map(Ve=>Bt(Ve,$)),Wn=no!==void 0&&An!==void 0&&An.length>0,yr=ne?Q==null?void 0:Q.filter(ne):Q,Fr=yr==null?void 0:yr.map(Ve=>Bt(Ve,$)),gi=Wn&&Fr.every(Ve=>An.includes(Ve)),us=Wn&&Fr.some(Ve=>An.includes(Ve)),ls=me.useCallback(()=>{J&&se&&se(gi?J.filter(Ve=>!Fr.includes(Bt(Ve,$))):La([...J,...yr],Ve=>Bt(Ve,$)))},[gi,$,se,Fr,yr,J]),{lastSelectionChangeIndex:Wr,setLastSelectionChangeIndex:cs}=d0(no),ro=Ln&&!Fn&&!k,Ya={m:pt,my:Mt,mx:dr,mt:pr,mb:gr,ml:ci,mr:fi},qa=me.useCallback(({children:Ve})=>Gi?Gi({children:Ve}):Ve,[Gi]);return D.jsx(Wc,{...ns,children:D.jsxs(j.Box,{...Ya,className:mt("mantine-datatable",{"mantine-datatable-with-border":i},hi,Rt==null?void 0:Rt.root),style:[Ve=>({...B0({theme:Ve,c:tt,backgroundColor:dt,borderColor:St,rowBorderColor:lt,stripedColor:Ct,highlightOnHoverColor:Sn}),borderRadius:Ve.radius[t]||t,boxShadow:Ve.shadows[f]||f,height:s,minHeight:l,maxHeight:g}),Pa,Lt==null?void 0:Lt.root,{position:"relative"}],children:[D.jsx(V0,{viewportRef:Wa,topShadowVisible:!Ki,leftShadowVisible:!Fn,leftShadowBehind:Ln||!!k,rightShadowVisible:!Ur,rightShadowBehind:E,bottomShadowVisible:!di,headerHeight:vr,footerHeight:Ua,onScrollPositionChange:as,scrollAreaProps:hn,children:D.jsx(qa,{children:D.jsxs(j.Table,{ref:Fa,horizontalSpacing:U,className:mt("mantine-datatable-table",{[b0]:r,"mantine-datatable-vertical-align-top":c==="top","mantine-datatable-vertical-align-bottom":c==="bottom","mantine-datatable-last-row-border-bottom-visible":Vi.withRowBorders&&jr<zn,"mantine-datatable-pin-last-column":E,"mantine-datatable-pin-last-column-scrolled":!Ur&&E,"mantine-datatable-selection-column-visible":Ln,"mantine-datatable-pin-first-column":k,"mantine-datatable-pin-first-column-scrolled":!Fn&&k},Rt==null?void 0:Rt.table),style:{...Lt==null?void 0:Lt.table,"--mantine-datatable-selection-column-width":`${za}px`},"data-striped":pi&&w||void 0,"data-highlight-on-hover":h||void 0,...Vi,children:[N?null:D.jsx(Wc,{...ns,children:D.jsx($0,{ref:Na,selectionColumnHeaderRef:is,className:Rt==null?void 0:Rt.header,style:Lt==null?void 0:Lt.header,columns:Br,defaultColumnProps:R,groups:L,sortStatus:ie,sortIcons:Ae,onSortStatusChange:Ce,selectionTrigger:X,selectionVisible:Ln,selectionChecked:gi,selectionIndeterminate:us&&!gi,onSelectionChange:ls,selectionCheckboxProps:{...ee,...fe},selectorCellShadowVisible:ro,selectionColumnClassName:q,selectionColumnStyle:ue})}),D.jsx("tbody",{ref:qt,children:pi?Q.map((Ve,Jt)=>{let wr=Bt(Ve,$),_r=(An==null?void 0:An.includes(wr))||!1,dn;return se&&J&&(dn=Xt=>{if(Xt.nativeEvent.shiftKey&&Wr!==null){let br=Q.filter(Jt>Wr?(Yn,qn)=>qn>=Wr&&qn<=Jt&&(ne?ne(Yn,qn):!0):(Yn,qn)=>qn>=Jt&&qn<=Wr&&(ne?ne(Yn,qn):!0));se(_r?y0(J,br,Yn=>Bt(Yn,$)):La([...J,...br],Yn=>Bt(Yn,$)))}else se(_r?J.filter(br=>Bt(br,$)!==wr):La([...J,Ve],br=>Bt(br,$)));cs(Jt)}),D.jsx(H0,{record:Ve,index:Jt,columns:Br,defaultColumnProps:R,defaultColumnRender:M,selectionTrigger:X,selectionVisible:Ln,selectionChecked:_r,onSelectionChange:dn,isRecordSelectable:ne,selectionCheckboxProps:ee,getSelectionCheckboxProps:de,onClick:z,onDoubleClick:te,onCellClick:Ee,onCellDoubleClick:Re,onContextMenu:xe,onCellContextMenu:Se,expansion:ss,color:Bn,backgroundColor:xt,className:Cn,style:jn,customAttributes:Rn,selectorCellShadowVisible:ro,selectionColumnClassName:q,selectionColumnStyle:ue,idAccessor:$,rowFactory:$a},wr)}):D.jsx(u0,{})}),Br.some(({footer:Ve})=>Ve)&&D.jsx(C0,{ref:ja,className:Rt==null?void 0:Rt.footer,style:Lt==null?void 0:Lt.footer,columns:Br,defaultColumnProps:R,selectionVisible:Ln,selectorCellShadowVisible:ro,scrollDiff:jr-zn})]})})}),I&&D.jsx(F0,{ref:rs,className:Rt==null?void 0:Rt.pagination,style:Lt==null?void 0:Lt.pagination,horizontalSpacing:U,fetching:b,page:I,onPageChange:to,totalRecords:v,recordsPerPage:p,onRecordsPerPageChange:_,recordsPerPageOptions:d,recordsPerPageLabel:m,paginationWithEdges:T,paginationWithControls:H,paginationActiveTextColor:Z,paginationActiveBackgroundColor:le,paginationSize:pe,paginationText:we,paginationWrapBreakpoint:re,getPaginationControlProps:ce,noRecordsText:Te,loadingText:K,recordsLength:pi}),D.jsx(N0,{pt:vr,pb:Zi,fetching:b,backgroundBlur:Oe,customContent:be,size:B,type:Y,color:W}),D.jsx(c0,{pt:vr,pb:Zi,icon:u,text:Te,active:!b&&!pi,children:ae})]})})}var K0=me.forwardRef(function({children:i,isDragging:t,...r},s){let l=me.useRef(null),g=Tt.useMergedRef(l,s);return me.useEffect(()=>{if(!l.current||!t)return;let f=l.current.parentElement.parentElement.children[0].children[0];for(let c=0;c<f.children.length;c++){let b=f.children[c].getBoundingClientRect(),C=l.current.children[c];C.style.height=b.height+"px",C.style.width=b.width+"px",C.style.minWidth=b.width+"px",C.style.maxWidth=b.width+"px"}},[t,i]),D.jsx(j.TableTr,{"data-is-dragging":t,ref:g,...r,children:i})});K0.displayName="DataTableDraggableRow";var Yi={exports:{}};/**
113
+ */var oc;function bg(){return oc||(oc=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,d=window.Cookies=r();d.noConflict=function(){return window.Cookies=l,d}}})(function(){function r(){for(var d=0,v={};d<arguments.length;d++){var c=arguments[d];for(var x in c)v[x]=c[x]}return v}function s(d){return d.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(d){function v(){}function c(C,O,R){if(!(typeof document>"u")){R=r({path:"/"},v.defaults,R),typeof R.expires=="number"&&(R.expires=new Date(new Date*1+R.expires*864e5)),R.expires=R.expires?R.expires.toUTCString():"";try{var N=JSON.stringify(O);/^[\{\[]/.test(N)&&(O=N)}catch{}O=d.write?d.write(O,C):encodeURIComponent(String(O)).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 R)R[I]&&(E+="; "+I,R[I]!==!0&&(E+="="+R[I].split(";")[0]));return document.cookie=C+"="+O+E}}function x(C,O){if(!(typeof document>"u")){for(var R={},N=document.cookie?document.cookie.split("; "):[],E=0;E<N.length;E++){var I=N[E].split("="),$=I.slice(1).join("=");!O&&$.charAt(0)==='"'&&($=$.slice(1,-1));try{var j=s(I[0]);if($=(d.read||d)($,j)||s($),O)try{$=JSON.parse($)}catch{}if(R[j]=$,C===j)break}catch{}}return C?R[C]:R}}return v.set=c,v.get=function(C){return x(C,!1)},v.getJSON=function(C){return x(C,!0)},v.remove=function(C,O){c(C,"",r(O,{expires:-1}))},v.defaults={},v.withConverter=l,v}return l(function(){})})}(ic)),ic.exports}bg();function xg(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Sg(){return xg().getCurrentUser()}function Cg(){return new Promise((i,n)=>{const r=Sg();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 Ag(){const{session:i}=await Cg();return i==null?void 0:i.getIdToken().getJwtToken()}ye.createContext(void 0);var Dg="undefined",Og="object",Eo="browser",sc="cpu",ac="device",pa="engine",Ro="os",tr="name",Lo="type",ga="vendor",bn="version",ma="architecture",va="major",ya="model",Tg="console",Mg="mobile",Eg="tablet",Rg="smarttv",Lg="wearable",kg="embedded",Ig=typeof window!==Dg,_a=Ig&&window.navigator?window.navigator:void 0;_a&&_a.userAgentData&&_a.userAgentData;var ko=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Io=function(i){for(var n in i){var r=i[n];typeof r==Og&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Io.call(i.init,[[Eo,[tr,bn,va,Lo]],[sc,[ma]],[ac,[Lo,ya,ga]],[pa,[tr,bn]],[Ro,[tr,bn]]]),Io.call(i.isIgnore,[[Eo,[bn,va]],[pa,[bn]],[Ro,[bn]]]),Io.call(i.isIgnoreRgx,[[Eo,/ ?browser$/i],[Ro,/ ?os$/i]]),Io.call(i.toString,[[Eo,[tr,bn]],[sc,[ma]],[ac,[ga,ya]],[pa,[tr,bn]],[Ro,[tr,bn]]]),i})(),ko([tr,bn,va,Lo]),ko([ma]),ko([ya,ga,Lo,Tg,Mg,Rg,Eg,Lg,kg]),ko([tr,bn]);var wa={exports:{}},Pg=wa.exports,uc;function Ng(){return uc||(uc=1,function(i,n){(function(r,s){i.exports=s()})(Pg,()=>(()=>{var r={873:(v,c)=>{var x,C,O=function(){var R=function(Y,L){var A=Y,g=X[L],p=null,w=0,h=null,m=[],D={},z=function(P,q){p=function(F){for(var K=new Array(F),se=0;se<F;se+=1){K[se]=new Array(F);for(var Oe=0;Oe<F;Oe+=1)K[se][Oe]=null}return K}(w=4*A+17),Z(0,0),Z(w-7,0),Z(0,w-7),fe(),ae(),J(P,q),A>=7&&_e(P),h==null&&(h=De(A,g,m)),he(h,q)},Z=function(P,q){for(var F=-1;F<=7;F+=1)if(!(P+F<=-1||w<=P+F))for(var K=-1;K<=7;K+=1)q+K<=-1||w<=q+K||(p[P+F][q+K]=0<=F&&F<=6&&(K==0||K==6)||0<=K&&K<=6&&(F==0||F==6)||2<=F&&F<=4&&2<=K&&K<=4)},ae=function(){for(var P=8;P<w-8;P+=1)p[P][6]==null&&(p[P][6]=P%2==0);for(var q=8;q<w-8;q+=1)p[6][q]==null&&(p[6][q]=q%2==0)},fe=function(){for(var P=te.getPatternPosition(A),q=0;q<P.length;q+=1)for(var F=0;F<P.length;F+=1){var K=P[q],se=P[F];if(p[K][se]==null)for(var Oe=-2;Oe<=2;Oe+=1)for(var u=-2;u<=2;u+=1)p[K+Oe][se+u]=Oe==-2||Oe==2||u==-2||u==2||Oe==0&&u==0}},_e=function(P){for(var q=te.getBCHTypeNumber(A),F=0;F<18;F+=1){var K=!P&&(q>>F&1)==1;p[Math.floor(F/3)][F%3+w-8-3]=K}for(F=0;F<18;F+=1)K=!P&&(q>>F&1)==1,p[F%3+w-8-3][Math.floor(F/3)]=K},J=function(P,q){for(var F=g<<3|q,K=te.getBCHTypeInfo(F),se=0;se<15;se+=1){var Oe=!P&&(K>>se&1)==1;se<6?p[se][8]=Oe:se<8?p[se+1][8]=Oe:p[w-15+se][8]=Oe}for(se=0;se<15;se+=1)Oe=!P&&(K>>se&1)==1,se<8?p[8][w-se-1]=Oe:se<9?p[8][15-se-1+1]=Oe:p[8][15-se-1]=Oe;p[w-8][8]=!P},he=function(P,q){for(var F=-1,K=w-1,se=7,Oe=0,u=te.getMaskFunction(q),f=w-1;f>0;f-=2)for(f==6&&(f-=1);;){for(var _=0;_<2;_+=1)if(p[K][f-_]==null){var M=!1;Oe<P.length&&(M=(P[Oe]>>>se&1)==1),u(K,f-_)&&(M=!M),p[K][f-_]=M,(se-=1)==-1&&(Oe+=1,se=7)}if((K+=F)<0||w<=K){K-=F,F=-F;break}}},De=function(P,q,F){for(var K=V.getRSBlocks(P,q),se=ce(),Oe=0;Oe<F.length;Oe+=1){var u=F[Oe];se.put(u.getMode(),4),se.put(u.getLength(),te.getLengthInBits(u.getMode(),P)),u.write(se)}var f=0;for(Oe=0;Oe<K.length;Oe+=1)f+=K[Oe].dataCount;if(se.getLengthInBits()>8*f)throw"code length overflow. ("+se.getLengthInBits()+">"+8*f+")";for(se.getLengthInBits()+4<=8*f&&se.put(0,4);se.getLengthInBits()%8!=0;)se.putBit(!1);for(;!(se.getLengthInBits()>=8*f||(se.put(236,8),se.getLengthInBits()>=8*f));)se.put(17,8);return function(_,M){for(var W=0,Q=0,xe=0,Me=new Array(M.length),Ie=new Array(M.length),Ce=0;Ce<M.length;Ce+=1){var ke=M[Ce].dataCount,Ne=M[Ce].totalCount-ke;Q=Math.max(Q,ke),xe=Math.max(xe,Ne),Me[Ce]=new Array(ke);for(var Re=0;Re<Me[Ce].length;Re+=1)Me[Ce][Re]=255&_.getBuffer()[Re+W];W+=ke;var Ge=te.getErrorCorrectPolynomial(Ne),Je=ue(Me[Ce],Ge.getLength()-1).mod(Ge);for(Ie[Ce]=new Array(Ge.getLength()-1),Re=0;Re<Ie[Ce].length;Re+=1){var Ve=Re+Je.getLength()-Ie[Ce].length;Ie[Ce][Re]=Ve>=0?Je.getAt(Ve):0}}var xt=0;for(Re=0;Re<M.length;Re+=1)xt+=M[Re].totalCount;var vt=new Array(xt),ut=0;for(Re=0;Re<Q;Re+=1)for(Ce=0;Ce<M.length;Ce+=1)Re<Me[Ce].length&&(vt[ut]=Me[Ce][Re],ut+=1);for(Re=0;Re<xe;Re+=1)for(Ce=0;Ce<M.length;Ce+=1)Re<Ie[Ce].length&&(vt[ut]=Ie[Ce][Re],ut+=1);return vt}(se,K)};D.addData=function(P,q){var F=null;switch(q=q||"Byte"){case"Numeric":F=oe(P);break;case"Alphanumeric":F=ee(P);break;case"Byte":F=de(P);break;case"Kanji":F=pe(P);break;default:throw"mode:"+q}m.push(F),h=null},D.isDark=function(P,q){if(P<0||w<=P||q<0||w<=q)throw P+","+q;return p[P][q]},D.getModuleCount=function(){return w},D.make=function(){if(A<1){for(var P=1;P<40;P++){for(var q=V.getRSBlocks(P,g),F=ce(),K=0;K<m.length;K++){var se=m[K];F.put(se.getMode(),4),F.put(se.getLength(),te.getLengthInBits(se.getMode(),P)),se.write(F)}var Oe=0;for(K=0;K<q.length;K++)Oe+=q[K].dataCount;if(F.getLengthInBits()<=8*Oe)break}A=P}z(!1,function(){for(var u=0,f=0,_=0;_<8;_+=1){z(!0,_);var M=te.getLostPoint(D);(_==0||u>M)&&(u=M,f=_)}return f}())},D.createTableTag=function(P,q){P=P||2;var F="";F+='<table style="',F+=" border-width: 0px; border-style: none;",F+=" border-collapse: collapse;",F+=" padding: 0px; margin: "+(q=q===void 0?4*P:q)+"px;",F+='">',F+="<tbody>";for(var K=0;K<D.getModuleCount();K+=1){F+="<tr>";for(var se=0;se<D.getModuleCount();se+=1)F+='<td style="',F+=" border-width: 0px; border-style: none;",F+=" border-collapse: collapse;",F+=" padding: 0px; margin: 0px;",F+=" width: "+P+"px;",F+=" height: "+P+"px;",F+=" background-color: ",F+=D.isDark(K,se)?"#000000":"#ffffff",F+=";",F+='"/>';F+="</tr>"}return(F+="</tbody>")+"</table>"},D.createSvgTag=function(P,q,F,K){var se={};typeof arguments[0]=="object"&&(P=(se=arguments[0]).cellSize,q=se.margin,F=se.alt,K=se.title),P=P||2,q=q===void 0?4*P:q,(F=typeof F=="string"?{text:F}:F||{}).text=F.text||null,F.id=F.text?F.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Oe,u,f,_,M=D.getModuleCount()*P+2*q,W="";for(_="l"+P+",0 0,"+P+" -"+P+",0 0,-"+P+"z ",W+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',W+=se.scalable?"":' width="'+M+'px" height="'+M+'px"',W+=' viewBox="0 0 '+M+" "+M+'" ',W+=' preserveAspectRatio="xMinYMin meet"',W+=K.text||F.text?' role="img" aria-labelledby="'+be([K.id,F.id].join(" ").trim())+'"':"",W+=">",W+=K.text?'<title id="'+be(K.id)+'">'+be(K.text)+"</title>":"",W+=F.text?'<description id="'+be(F.id)+'">'+be(F.text)+"</description>":"",W+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',W+='<path d="',u=0;u<D.getModuleCount();u+=1)for(f=u*P+q,Oe=0;Oe<D.getModuleCount();Oe+=1)D.isDark(u,Oe)&&(W+="M"+(Oe*P+q)+","+f+_);return(W+='" stroke="transparent" fill="black"/>')+"</svg>"},D.createDataURL=function(P,q){P=P||2,q=q===void 0?4*P:q;var F=D.getModuleCount()*P+2*q,K=q,se=F-q;return Se(F,F,function(Oe,u){if(K<=Oe&&Oe<se&&K<=u&&u<se){var f=Math.floor((Oe-K)/P),_=Math.floor((u-K)/P);return D.isDark(_,f)?0:1}return 1})},D.createImgTag=function(P,q,F){P=P||2,q=q===void 0?4*P:q;var K=D.getModuleCount()*P+2*q,se="";return se+="<img",se+=' src="',se+=D.createDataURL(P,q),se+='"',se+=' width="',se+=K,se+='"',se+=' height="',se+=K,se+='"',F&&(se+=' alt="',se+=be(F),se+='"'),se+"/>"};var be=function(P){for(var q="",F=0;F<P.length;F+=1){var K=P.charAt(F);switch(K){case"<":q+="&lt;";break;case">":q+="&gt;";break;case"&":q+="&amp;";break;case'"':q+="&quot;";break;default:q+=K}}return q};return D.createASCII=function(P,q){if((P=P||1)<2)return function(Me){Me=Me===void 0?2:Me;var Ie,Ce,ke,Ne,Re,Ge=1*D.getModuleCount()+2*Me,Je=Me,Ve=Ge-Me,xt={"██":"█","█ ":"▀"," █":"▄"," ":" "},vt={"██":"▀","█ ":"▀"," █":" "," ":" "},ut="";for(Ie=0;Ie<Ge;Ie+=2){for(ke=Math.floor((Ie-Je)/1),Ne=Math.floor((Ie+1-Je)/1),Ce=0;Ce<Ge;Ce+=1)Re="█",Je<=Ce&&Ce<Ve&&Je<=Ie&&Ie<Ve&&D.isDark(ke,Math.floor((Ce-Je)/1))&&(Re=" "),Je<=Ce&&Ce<Ve&&Je<=Ie+1&&Ie+1<Ve&&D.isDark(Ne,Math.floor((Ce-Je)/1))?Re+=" ":Re+="█",ut+=Me<1&&Ie+1>=Ve?vt[Re]:xt[Re];ut+=`
114
+ `}return Ge%2&&Me>0?ut.substring(0,ut.length-Ge-1)+Array(Ge+1).join("▀"):ut.substring(0,ut.length-1)}(q);P-=1,q=q===void 0?2*P:q;var F,K,se,Oe,u=D.getModuleCount()*P+2*q,f=q,_=u-q,M=Array(P+1).join("██"),W=Array(P+1).join(" "),Q="",xe="";for(F=0;F<u;F+=1){for(se=Math.floor((F-f)/P),xe="",K=0;K<u;K+=1)Oe=1,f<=K&&K<_&&f<=F&&F<_&&D.isDark(se,Math.floor((K-f)/P))&&(Oe=0),xe+=Oe?M:W;for(se=0;se<P;se+=1)Q+=xe+`
115
+ `}return Q.substring(0,Q.length-1)},D.renderTo2dContext=function(P,q){q=q||2;for(var F=D.getModuleCount(),K=0;K<F;K++)for(var se=0;se<F;se++)P.fillStyle=D.isDark(K,se)?"black":"white",P.fillRect(K*q,se*q,q,q)},D};R.stringToBytes=(R.stringToBytesFuncs={default:function(Y){for(var L=[],A=0;A<Y.length;A+=1){var g=Y.charCodeAt(A);L.push(255&g)}return L}}).default,R.createStringToBytes=function(Y,L){var A=function(){for(var p=Ae(Y),w=function(){var ae=p.read();if(ae==-1)throw"eof";return ae},h=0,m={};;){var D=p.read();if(D==-1)break;var z=w(),Z=w()<<8|w();m[String.fromCharCode(D<<8|z)]=Z,h+=1}if(h!=L)throw h+" != "+L;return m}(),g=63;return function(p){for(var w=[],h=0;h<p.length;h+=1){var m=p.charCodeAt(h);if(m<128)w.push(m);else{var D=A[p.charAt(h)];typeof D=="number"?(255&D)==D?w.push(D):(w.push(D>>>8),w.push(255&D)):w.push(g)}}return w}};var N,E,I,$,j,X={L:1,M:0,Q:3,H:2},te=(N=[[],[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(Y){for(var L=0;Y!=0;)L+=1,Y>>>=1;return L},($={}).getBCHTypeInfo=function(Y){for(var L=Y<<10;j(L)-j(E)>=0;)L^=E<<j(L)-j(E);return 21522^(Y<<10|L)},$.getBCHTypeNumber=function(Y){for(var L=Y<<12;j(L)-j(I)>=0;)L^=I<<j(L)-j(I);return Y<<12|L},$.getPatternPosition=function(Y){return N[Y-1]},$.getMaskFunction=function(Y){switch(Y){case 0:return function(L,A){return(L+A)%2==0};case 1:return function(L,A){return L%2==0};case 2:return function(L,A){return A%3==0};case 3:return function(L,A){return(L+A)%3==0};case 4:return function(L,A){return(Math.floor(L/2)+Math.floor(A/3))%2==0};case 5:return function(L,A){return L*A%2+L*A%3==0};case 6:return function(L,A){return(L*A%2+L*A%3)%2==0};case 7:return function(L,A){return(L*A%3+(L+A)%2)%2==0};default:throw"bad maskPattern:"+Y}},$.getErrorCorrectPolynomial=function(Y){for(var L=ue([1],0),A=0;A<Y;A+=1)L=L.multiply(ue([1,ne.gexp(A)],0));return L},$.getLengthInBits=function(Y,L){if(1<=L&&L<10)switch(Y){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+Y}else if(L<27)switch(Y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+Y}else{if(!(L<41))throw"type:"+L;switch(Y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+Y}}},$.getLostPoint=function(Y){for(var L=Y.getModuleCount(),A=0,g=0;g<L;g+=1)for(var p=0;p<L;p+=1){for(var w=0,h=Y.isDark(g,p),m=-1;m<=1;m+=1)if(!(g+m<0||L<=g+m))for(var D=-1;D<=1;D+=1)p+D<0||L<=p+D||m==0&&D==0||h==Y.isDark(g+m,p+D)&&(w+=1);w>5&&(A+=3+w-5)}for(g=0;g<L-1;g+=1)for(p=0;p<L-1;p+=1){var z=0;Y.isDark(g,p)&&(z+=1),Y.isDark(g+1,p)&&(z+=1),Y.isDark(g,p+1)&&(z+=1),Y.isDark(g+1,p+1)&&(z+=1),z!=0&&z!=4||(A+=3)}for(g=0;g<L;g+=1)for(p=0;p<L-6;p+=1)Y.isDark(g,p)&&!Y.isDark(g,p+1)&&Y.isDark(g,p+2)&&Y.isDark(g,p+3)&&Y.isDark(g,p+4)&&!Y.isDark(g,p+5)&&Y.isDark(g,p+6)&&(A+=40);for(p=0;p<L;p+=1)for(g=0;g<L-6;g+=1)Y.isDark(g,p)&&!Y.isDark(g+1,p)&&Y.isDark(g+2,p)&&Y.isDark(g+3,p)&&Y.isDark(g+4,p)&&!Y.isDark(g+5,p)&&Y.isDark(g+6,p)&&(A+=40);var Z=0;for(p=0;p<L;p+=1)for(g=0;g<L;g+=1)Y.isDark(g,p)&&(Z+=1);return A+Math.abs(100*Z/L/L-50)/5*10},$),ne=function(){for(var Y=new Array(256),L=new Array(256),A=0;A<8;A+=1)Y[A]=1<<A;for(A=8;A<256;A+=1)Y[A]=Y[A-4]^Y[A-5]^Y[A-6]^Y[A-8];for(A=0;A<255;A+=1)L[Y[A]]=A;return{glog:function(g){if(g<1)throw"glog("+g+")";return L[g]},gexp:function(g){for(;g<0;)g+=255;for(;g>=256;)g-=255;return Y[g]}}}();function ue(Y,L){if(Y.length===void 0)throw Y.length+"/"+L;var A=function(){for(var p=0;p<Y.length&&Y[p]==0;)p+=1;for(var w=new Array(Y.length-p+L),h=0;h<Y.length-p;h+=1)w[h]=Y[h+p];return w}(),g={getAt:function(p){return A[p]},getLength:function(){return A.length},multiply:function(p){for(var w=new Array(g.getLength()+p.getLength()-1),h=0;h<g.getLength();h+=1)for(var m=0;m<p.getLength();m+=1)w[h+m]^=ne.gexp(ne.glog(g.getAt(h))+ne.glog(p.getAt(m)));return ue(w,0)},mod:function(p){if(g.getLength()-p.getLength()<0)return g;for(var w=ne.glog(g.getAt(0))-ne.glog(p.getAt(0)),h=new Array(g.getLength()),m=0;m<g.getLength();m+=1)h[m]=g.getAt(m);for(m=0;m<p.getLength();m+=1)h[m]^=ne.gexp(ne.glog(p.getAt(m))+w);return ue(h,0).mod(p)}};return g}var V=function(){var Y=[[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]],L=function(g,p){var w={};return w.totalCount=g,w.dataCount=p,w},A={getRSBlocks:function(g,p){var w=function(_e,J){switch(J){case X.L:return Y[4*(_e-1)+0];case X.M:return Y[4*(_e-1)+1];case X.Q:return Y[4*(_e-1)+2];case X.H:return Y[4*(_e-1)+3];default:return}}(g,p);if(w===void 0)throw"bad rs block @ typeNumber:"+g+"/errorCorrectionLevel:"+p;for(var h=w.length/3,m=[],D=0;D<h;D+=1)for(var z=w[3*D+0],Z=w[3*D+1],ae=w[3*D+2],fe=0;fe<z;fe+=1)m.push(L(Z,ae));return m}};return A}(),ce=function(){var Y=[],L=0,A={getBuffer:function(){return Y},getAt:function(g){var p=Math.floor(g/8);return(Y[p]>>>7-g%8&1)==1},put:function(g,p){for(var w=0;w<p;w+=1)A.putBit((g>>>p-w-1&1)==1)},getLengthInBits:function(){return L},putBit:function(g){var p=Math.floor(L/8);Y.length<=p&&Y.push(0),g&&(Y[p]|=128>>>L%8),L+=1}};return A},oe=function(Y){var L=Y,A={getMode:function(){return 1},getLength:function(w){return L.length},write:function(w){for(var h=L,m=0;m+2<h.length;)w.put(g(h.substring(m,m+3)),10),m+=3;m<h.length&&(h.length-m==1?w.put(g(h.substring(m,m+1)),4):h.length-m==2&&w.put(g(h.substring(m,m+2)),7))}},g=function(w){for(var h=0,m=0;m<w.length;m+=1)h=10*h+p(w.charAt(m));return h},p=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return A},ee=function(Y){var L=Y,A={getMode:function(){return 2},getLength:function(p){return L.length},write:function(p){for(var w=L,h=0;h+1<w.length;)p.put(45*g(w.charAt(h))+g(w.charAt(h+1)),11),h+=2;h<w.length&&p.put(g(w.charAt(h)),6)}},g=function(p){if("0"<=p&&p<="9")return p.charCodeAt(0)-48;if("A"<=p&&p<="Z")return p.charCodeAt(0)-65+10;switch(p){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 :"+p}};return A},de=function(Y){var L=R.stringToBytes(Y);return{getMode:function(){return 4},getLength:function(A){return L.length},write:function(A){for(var g=0;g<L.length;g+=1)A.put(L[g],8)}}},pe=function(Y){var L=R.stringToBytesFuncs.SJIS;if(!L)throw"sjis not supported.";(function(){var p=L("友");if(p.length!=2||(p[0]<<8|p[1])!=38726)throw"sjis not supported."})();var A=L(Y),g={getMode:function(){return 8},getLength:function(p){return~~(A.length/2)},write:function(p){for(var w=A,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),p.put(m,13),h+=2}if(h<w.length)throw"illegal char at "+(h+1)}};return g},re=function(){var Y=[],L={writeByte:function(A){Y.push(255&A)},writeShort:function(A){L.writeByte(A),L.writeByte(A>>>8)},writeBytes:function(A,g,p){g=g||0,p=p||A.length;for(var w=0;w<p;w+=1)L.writeByte(A[w+g])},writeString:function(A){for(var g=0;g<A.length;g+=1)L.writeByte(A.charCodeAt(g))},toByteArray:function(){return Y},toString:function(){var A="";A+="[";for(var g=0;g<Y.length;g+=1)g>0&&(A+=","),A+=Y[g];return A+"]"}};return L},Ae=function(Y){var L=Y,A=0,g=0,p=0,w={read:function(){for(;p<8;){if(A>=L.length){if(p==0)return-1;throw"unexpected end of file./"+p}var m=L.charAt(A);if(A+=1,m=="=")return p=0,-1;m.match(/^\s$/)||(g=g<<6|h(m.charCodeAt(0)),p+=6)}var D=g>>>p-8&255;return p-=8,D}},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},Se=function(Y,L,A){for(var g=function(Z,ae){var fe=Z,_e=ae,J=new Array(Z*ae),he={setPixel:function(P,q,F){J[q*fe+P]=F},write:function(P){P.writeString("GIF87a"),P.writeShort(fe),P.writeShort(_e),P.writeByte(128),P.writeByte(0),P.writeByte(0),P.writeByte(0),P.writeByte(0),P.writeByte(0),P.writeByte(255),P.writeByte(255),P.writeByte(255),P.writeString(","),P.writeShort(0),P.writeShort(0),P.writeShort(fe),P.writeShort(_e),P.writeByte(0);var q=De(2);P.writeByte(2);for(var F=0;q.length-F>255;)P.writeByte(255),P.writeBytes(q,F,255),F+=255;P.writeByte(q.length-F),P.writeBytes(q,F,q.length-F),P.writeByte(0),P.writeString(";")}},De=function(P){for(var q=1<<P,F=1+(1<<P),K=P+1,se=be(),Oe=0;Oe<q;Oe+=1)se.add(String.fromCharCode(Oe));se.add(String.fromCharCode(q)),se.add(String.fromCharCode(F));var u,f,_,M=re(),W=(u=M,f=0,_=0,{write:function(Ie,Ce){if(Ie>>>Ce)throw"length over";for(;f+Ce>=8;)u.writeByte(255&(Ie<<f|_)),Ce-=8-f,Ie>>>=8-f,_=0,f=0;_|=Ie<<f,f+=Ce},flush:function(){f>0&&u.writeByte(_)}});W.write(q,K);var Q=0,xe=String.fromCharCode(J[Q]);for(Q+=1;Q<J.length;){var Me=String.fromCharCode(J[Q]);Q+=1,se.contains(xe+Me)?xe+=Me:(W.write(se.indexOf(xe),K),se.size()<4095&&(se.size()==1<<K&&(K+=1),se.add(xe+Me)),xe=Me)}return W.write(se.indexOf(xe),K),W.write(F,K),W.flush(),M.toByteArray()},be=function(){var P={},q=0,F={add:function(K){if(F.contains(K))throw"dup key:"+K;P[K]=q,q+=1},size:function(){return q},indexOf:function(K){return P[K]},contains:function(K){return P[K]!==void 0}};return F};return he}(Y,L),p=0;p<L;p+=1)for(var w=0;w<Y;w+=1)g.setPixel(w,p,A(w,p));var h=re();g.write(h);for(var m=function(){var Z=0,ae=0,fe=0,_e="",J={},he=function(be){_e+=String.fromCharCode(De(63&be))},De=function(be){if(!(be<0)){if(be<26)return 65+be;if(be<52)return be-26+97;if(be<62)return be-52+48;if(be==62)return 43;if(be==63)return 47}throw"n:"+be};return J.writeByte=function(be){for(Z=Z<<8|255&be,ae+=8,fe+=1;ae>=6;)he(Z>>>ae-6),ae-=6},J.flush=function(){if(ae>0&&(he(Z<<6-ae),Z=0,ae=0),fe%3!=0)for(var be=3-fe%3,P=0;P<be;P+=1)_e+="="},J.toString=function(){return _e},J}(),D=h.toByteArray(),z=0;z<D.length;z+=1)m.writeByte(D[z]);return m.flush(),"data:image/gif;base64,"+m};return R}();O.stringToBytesFuncs["UTF-8"]=function(R){return function(N){for(var E=[],I=0;I<N.length;I++){var $=N.charCodeAt(I);$<128?E.push($):$<2048?E.push(192|$>>6,128|63&$):$<55296||$>=57344?E.push(224|$>>12,128|$>>6&63,128|63&$):(I++,$=65536+((1023&$)<<10|1023&N.charCodeAt(I)),E.push(240|$>>18,128|$>>12&63,128|$>>6&63,128|63&$))}return E}(R)},(C=typeof(x=function(){return O})=="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 d={};return(()=>{l.d(d,{default:()=>L});const v=A=>!!A&&typeof A=="object"&&!Array.isArray(A);function c(A,...g){if(!g.length)return A;const p=g.shift();return p!==void 0&&v(A)&&v(p)?(A=Object.assign({},A),Object.keys(p).forEach(w=>{const h=A[w],m=p[w];Array.isArray(h)&&Array.isArray(m)?A[w]=m:v(h)&&v(m)?A[w]=c(Object.assign({},h),m):A[w]=m}),c(A,...g)):A}function x(A,g){const p=document.createElement("a");p.download=g,p.href=A,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const C={L:.07,M:.15,Q:.25,H:.3};class O{constructor({svg:g,type:p,window:w}){this._svg=g,this._type=p,this._window=w}draw(g,p,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:g,y:p,size:w,getNeighbor:h})}_rotateFigure({x:g,y:p,size:w,rotation:h=0,draw:m}){var D;const z=g+w/2,Z=p+w/2;m(),(D=this._element)===null||D===void 0||D.setAttribute("transform",`rotate(${180*h/Math.PI},${z},${Z})`)}_basicDot(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+p/2)),this._element.setAttribute("cy",String(h+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{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(p)),this._element.setAttribute("height",String(p))}}))}_basicSideRounded(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${p}h `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, 0 ${-p}`)}}))}_basicCornerRounded(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${p}h ${p}v `+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_basicCornerExtraRounded(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${p}h ${p}a ${p} ${p}, 0, 0, 0, ${-p} ${-p}`)}}))}_basicCornersRounded(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${p/2} ${p/2}h `+p/2+"v "+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_drawDot({x:g,y:p,size:w}){this._basicDot({x:g,y:p,size:w,rotation:0})}_drawSquare({x:g,y:p,size:w}){this._basicSquare({x:g,y:p,size:w,rotation:0})}_drawRounded({x:g,y:p,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,D=h?+h(1,0):0,z=h?+h(0,-1):0,Z=h?+h(0,1):0,ae=m+D+z+Z;if(ae!==0)if(ae>2||m&&D||z&&Z)this._basicSquare({x:g,y:p,size:w,rotation:0});else{if(ae===2){let fe=0;return m&&z?fe=Math.PI/2:z&&D?fe=Math.PI:D&&Z&&(fe=-Math.PI/2),void this._basicCornerRounded({x:g,y:p,size:w,rotation:fe})}if(ae===1){let fe=0;return z?fe=Math.PI/2:D?fe=Math.PI:Z&&(fe=-Math.PI/2),void this._basicSideRounded({x:g,y:p,size:w,rotation:fe})}}else this._basicDot({x:g,y:p,size:w,rotation:0})}_drawExtraRounded({x:g,y:p,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,D=h?+h(1,0):0,z=h?+h(0,-1):0,Z=h?+h(0,1):0,ae=m+D+z+Z;if(ae!==0)if(ae>2||m&&D||z&&Z)this._basicSquare({x:g,y:p,size:w,rotation:0});else{if(ae===2){let fe=0;return m&&z?fe=Math.PI/2:z&&D?fe=Math.PI:D&&Z&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:g,y:p,size:w,rotation:fe})}if(ae===1){let fe=0;return z?fe=Math.PI/2:D?fe=Math.PI:Z&&(fe=-Math.PI/2),void this._basicSideRounded({x:g,y:p,size:w,rotation:fe})}}else this._basicDot({x:g,y:p,size:w,rotation:0})}_drawClassy({x:g,y:p,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,D=h?+h(1,0):0,z=h?+h(0,-1):0,Z=h?+h(0,1):0;m+D+z+Z!==0?m||z?D||Z?this._basicSquare({x:g,y:p,size:w,rotation:0}):this._basicCornerRounded({x:g,y:p,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:g,y:p,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:g,y:p,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:g,y:p,size:w,getNeighbor:h}){const m=h?+h(-1,0):0,D=h?+h(1,0):0,z=h?+h(0,-1):0,Z=h?+h(0,1):0;m+D+z+Z!==0?m||z?D||Z?this._basicSquare({x:g,y:p,size:w,rotation:0}):this._basicCornerExtraRounded({x:g,y:p,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:g,y:p,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:g,y:p,size:w,rotation:Math.PI/2})}}const R={dot:"dot",square:"square",extraRounded:"extra-rounded"},N=Object.values(R);class E{constructor({svg:g,type:p,window:w}){this._svg=g,this._type=p,this._window=w}draw(g,p,w,h){let m;switch(this._type){case R.square:m=this._drawSquare;break;case R.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:g,y:p,size:w,rotation:h})}_rotateFigure({x:g,y:p,size:w,rotation:h=0,draw:m}){var D;const z=g+w/2,Z=p+w/2;m(),(D=this._element)===null||D===void 0||D.setAttribute("transform",`rotate(${180*h/Math.PI},${z},${Z})`)}_basicDot(g){const{size:p,x:w,y:h}=g,m=p/7;this._rotateFigure(Object.assign(Object.assign({},g),{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+p/2} ${h}a ${p/2} ${p/2} 0 1 0 0.1 0zm 0 ${m}a ${p/2-m} ${p/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(g){const{size:p,x:w,y:h}=g,m=p/7;this._rotateFigure(Object.assign(Object.assign({},g),{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 ${p}h ${p}v `+-p+`zM ${w+m} ${h+m}h `+(p-2*m)+"v "+(p-2*m)+"h "+(2*m-p)+"z")}}))}_basicExtraRounded(g){const{size:p,x:w,y:h}=g,m=p/7;this._rotateFigure(Object.assign(Object.assign({},g),{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:g,y:p,size:w,rotation:h}){this._basicDot({x:g,y:p,size:w,rotation:h})}_drawSquare({x:g,y:p,size:w,rotation:h}){this._basicSquare({x:g,y:p,size:w,rotation:h})}_drawExtraRounded({x:g,y:p,size:w,rotation:h}){this._basicExtraRounded({x:g,y:p,size:w,rotation:h})}}const I={dot:"dot",square:"square"},$=Object.values(I);class j{constructor({svg:g,type:p,window:w}){this._svg=g,this._type=p,this._window=w}draw(g,p,w,h){let m;m=this._type===I.square?this._drawSquare:this._drawDot,m.call(this,{x:g,y:p,size:w,rotation:h})}_rotateFigure({x:g,y:p,size:w,rotation:h=0,draw:m}){var D;const z=g+w/2,Z=p+w/2;m(),(D=this._element)===null||D===void 0||D.setAttribute("transform",`rotate(${180*h/Math.PI},${z},${Z})`)}_basicDot(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+p/2)),this._element.setAttribute("cy",String(h+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(g){const{size:p,x:w,y:h}=g;this._rotateFigure(Object.assign(Object.assign({},g),{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(p)),this._element.setAttribute("height",String(p))}}))}_drawDot({x:g,y:p,size:w,rotation:h}){this._basicDot({x:g,y:p,size:w,rotation:h})}_drawSquare({x:g,y:p,size:w,rotation:h}){this._basicSquare({x:g,y:p,size:w,rotation:h})}}const X="circle",te=[[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]],ne=[[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(g,p){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=p,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(g.width)),this._element.setAttribute("height",String(g.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),g.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${g.width} ${g.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=g.image,this._instanceId=ue.instanceCount++,this._options=g}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(g){const p=g.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,h=this._options.shape===X?w/Math.sqrt(2):w,m=this._roundSize(h/p);let D={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=g,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:z,qrOptions:Z}=this._options,ae=z.imageSize*C[Z.errorCorrectionLevel],fe=Math.floor(ae*p*p);D=function({originalHeight:_e,originalWidth:J,maxHiddenDots:he,maxHiddenAxisDots:De,dotSize:be}){const P={x:0,y:0},q={x:0,y:0};if(_e<=0||J<=0||he<=0||be<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const F=_e/J;return P.x=Math.floor(Math.sqrt(he/F)),P.x<=0&&(P.x=1),De&&De<P.x&&(P.x=De),P.x%2==0&&P.x--,q.x=P.x*be,P.y=1+2*Math.ceil((P.x*F-1)/2),q.y=Math.round(q.x*F),(P.y*P.x>he||De&&De<P.y)&&(De&&De<P.y?(P.y=De,P.y%2==0&&P.x--):P.y-=2,q.y=P.y*be,P.x=1+2*Math.ceil((P.y/F-1)/2),q.x=Math.round(q.y/F)),{height:q.y,width:q.x,hideYDots:P.y,hideXDots:P.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:m})}this.drawBackground(),this.drawDots((z,Z)=>{var ae,fe,_e,J,he,De;return!(this._options.imageOptions.hideBackgroundDots&&z>=(p-D.hideYDots)/2&&z<(p+D.hideYDots)/2&&Z>=(p-D.hideXDots)/2&&Z<(p+D.hideXDots)/2||!((ae=te[z])===null||ae===void 0)&&ae[Z]||!((fe=te[z-p+7])===null||fe===void 0)&&fe[Z]||!((_e=te[z])===null||_e===void 0)&&_e[Z-p+7]||!((J=ne[z])===null||J===void 0)&&J[Z]||!((he=ne[z-p+7])===null||he===void 0)&&he[Z]||!((De=ne[z])===null||De===void 0)&&De[Z-p+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:D.width,height:D.height,count:p,dotSize:m})}drawBackground(){var g,p,w;const h=this._element,m=this._options;if(h){const D=(g=m.backgroundOptions)===null||g===void 0?void 0:g.gradient,z=(p=m.backgroundOptions)===null||p===void 0?void 0:p.color;let Z=m.height,ae=m.width;if(D||z){const fe=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&&(Z=ae=Math.min(m.width,m.height),fe.setAttribute("rx",String(Z/2*m.backgroundOptions.round))),fe.setAttribute("x",String(this._roundSize((m.width-ae)/2))),fe.setAttribute("y",String(this._roundSize((m.height-Z)/2))),fe.setAttribute("width",String(ae)),fe.setAttribute("height",String(Z)),this._backgroundClipPath.appendChild(fe),this._createColor({options:D,color:z,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(g){var p,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 D=Math.min(h.width,h.height)-2*h.margin,z=h.shape===X?D/Math.sqrt(2):D,Z=this._roundSize(z/m),ae=this._roundSize((h.width-m*Z)/2),fe=this._roundSize((h.height-m*Z)/2),_e=new O({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:(p=h.dotsOptions)===null||p===void 0?void 0:p.gradient,color:h.dotsOptions.color,additionalRotation:0,x:0,y:0,height:h.height,width:h.width,name:`dot-color-${this._instanceId}`});for(let J=0;J<m;J++)for(let he=0;he<m;he++)g&&!g(J,he)||!((w=this._qr)===null||w===void 0)&&w.isDark(J,he)&&(_e.draw(ae+he*Z,fe+J*Z,Z,(De,be)=>!(he+De<0||J+be<0||he+De>=m||J+be>=m)&&!(g&&!g(J+be,he+De))&&!!this._qr&&this._qr.isDark(J+be,he+De)),_e._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(_e._element));if(h.shape===X){const J=this._roundSize((D/Z-m)/2),he=m+2*J,De=ae-J*Z,be=fe-J*Z,P=[],q=this._roundSize(he/2);for(let F=0;F<he;F++){P[F]=[];for(let K=0;K<he;K++)F>=J-1&&F<=he-J&&K>=J-1&&K<=he-J||Math.sqrt((F-q)*(F-q)+(K-q)*(K-q))>q?P[F][K]=0:P[F][K]=this._qr.isDark(K-2*J<0?K:K>=m?K-2*J:K-J,F-2*J<0?F:F>=m?F-2*J:F-J)?1:0}for(let F=0;F<he;F++)for(let K=0;K<he;K++)P[F][K]&&(_e.draw(De+K*Z,be+F*Z,Z,(se,Oe)=>{var u;return!!(!((u=P[F+Oe])===null||u===void 0)&&u[K+se])}),_e._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(_e._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const g=this._element,p=this._options;if(!g)throw"Element code is not defined";const w=this._qr.getModuleCount(),h=Math.min(p.width,p.height)-2*p.margin,m=p.shape===X?h/Math.sqrt(2):h,D=this._roundSize(m/w),z=7*D,Z=3*D,ae=this._roundSize((p.width-w*D)/2),fe=this._roundSize((p.height-w*D)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([_e,J,he])=>{var De,be,P,q,F,K,se,Oe,u,f,_,M,W,Q;const xe=ae+_e*D*(w-7),Me=fe+J*D*(w-7);let Ie=this._dotsClipPath,Ce=this._dotsClipPath;if((!((De=p.cornersSquareOptions)===null||De===void 0)&&De.gradient||!((be=p.cornersSquareOptions)===null||be===void 0)&&be.color)&&(Ie=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ie.setAttribute("id",`clip-path-corners-square-color-${_e}-${J}-${this._instanceId}`),this._defs.appendChild(Ie),this._cornersSquareClipPath=this._cornersDotClipPath=Ce=Ie,this._createColor({options:(P=p.cornersSquareOptions)===null||P===void 0?void 0:P.gradient,color:(q=p.cornersSquareOptions)===null||q===void 0?void 0:q.color,additionalRotation:he,x:xe,y:Me,height:z,width:z,name:`corners-square-color-${_e}-${J}-${this._instanceId}`})),((F=p.cornersSquareOptions)===null||F===void 0?void 0:F.type)&&N.includes(p.cornersSquareOptions.type)){const ke=new E({svg:this._element,type:p.cornersSquareOptions.type,window:this._window});ke.draw(xe,Me,z,he),ke._element&&Ie&&Ie.appendChild(ke._element)}else{const ke=new O({svg:this._element,type:((K=p.cornersSquareOptions)===null||K===void 0?void 0:K.type)||p.dotsOptions.type,window:this._window});for(let Ne=0;Ne<te.length;Ne++)for(let Re=0;Re<te[Ne].length;Re++)!((se=te[Ne])===null||se===void 0)&&se[Re]&&(ke.draw(xe+Re*D,Me+Ne*D,D,(Ge,Je)=>{var Ve;return!!(!((Ve=te[Ne+Je])===null||Ve===void 0)&&Ve[Re+Ge])}),ke._element&&Ie&&Ie.appendChild(ke._element))}if((!((Oe=p.cornersDotOptions)===null||Oe===void 0)&&Oe.gradient||!((u=p.cornersDotOptions)===null||u===void 0)&&u.color)&&(Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ce.setAttribute("id",`clip-path-corners-dot-color-${_e}-${J}-${this._instanceId}`),this._defs.appendChild(Ce),this._cornersDotClipPath=Ce,this._createColor({options:(f=p.cornersDotOptions)===null||f===void 0?void 0:f.gradient,color:(_=p.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:he,x:xe+2*D,y:Me+2*D,height:Z,width:Z,name:`corners-dot-color-${_e}-${J}-${this._instanceId}`})),((M=p.cornersDotOptions)===null||M===void 0?void 0:M.type)&&$.includes(p.cornersDotOptions.type)){const ke=new j({svg:this._element,type:p.cornersDotOptions.type,window:this._window});ke.draw(xe+2*D,Me+2*D,Z,he),ke._element&&Ce&&Ce.appendChild(ke._element)}else{const ke=new O({svg:this._element,type:((W=p.cornersDotOptions)===null||W===void 0?void 0:W.type)||p.dotsOptions.type,window:this._window});for(let Ne=0;Ne<ne.length;Ne++)for(let Re=0;Re<ne[Ne].length;Re++)!((Q=ne[Ne])===null||Q===void 0)&&Q[Re]&&(ke.draw(xe+Re*D,Me+Ne*D,D,(Ge,Je)=>{var Ve;return!!(!((Ve=ne[Ne+Je])===null||Ve===void 0)&&Ve[Re+Ge])}),ke._element&&Ce&&Ce.appendChild(ke._element))}})}loadImage(){return new Promise((g,p)=>{var w;const h=this._options;if(!h.image)return p("Image is not defined");if(!((w=h.nodeCanvas)===null||w===void 0)&&w.loadImage)h.nodeCanvas.loadImage(h.image).then(m=>{var D,z;if(this._image=m,this._options.imageOptions.saveAsBlob){const Z=(D=h.nodeCanvas)===null||D===void 0?void 0:D.createCanvas(this._image.width,this._image.height);(z=Z==null?void 0:Z.getContext("2d"))===null||z===void 0||z.drawImage(m,0,0),this._imageUri=Z==null?void 0:Z.toDataURL()}g()}).catch(p);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(D,z){return new Promise(Z=>{const ae=new z.XMLHttpRequest;ae.onload=function(){const fe=new z.FileReader;fe.onloadend=function(){Z(fe.result)},fe.readAsDataURL(ae.response)},ae.open("GET",D),ae.responseType="blob",ae.send()})}(h.image||"",this._window)),g()},m.src=h.image}})}async drawImage({width:g,height:p,count:w,dotSize:h}){const m=this._options,D=this._roundSize((m.width-w*h)/2),z=this._roundSize((m.height-w*h)/2),Z=D+this._roundSize(m.imageOptions.margin+(w*h-g)/2),ae=z+this._roundSize(m.imageOptions.margin+(w*h-p)/2),fe=g-2*m.imageOptions.margin,_e=p-2*m.imageOptions.margin,J=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");J.setAttribute("href",this._imageUri||""),J.setAttribute("xlink:href",this._imageUri||""),J.setAttribute("x",String(Z)),J.setAttribute("y",String(ae)),J.setAttribute("width",`${fe}px`),J.setAttribute("height",`${_e}px`),this._element.appendChild(J)}_createColor({options:g,color:p,additionalRotation:w,x:h,y:m,height:D,width:z,name:Z}){const ae=z>D?z:D,fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(h)),fe.setAttribute("y",String(m)),fe.setAttribute("height",String(D)),fe.setAttribute("width",String(z)),fe.setAttribute("clip-path",`url('#clip-path-${Z}')`),g){let _e;if(g.type==="radial")_e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),_e.setAttribute("id",Z),_e.setAttribute("gradientUnits","userSpaceOnUse"),_e.setAttribute("fx",String(h+z/2)),_e.setAttribute("fy",String(m+D/2)),_e.setAttribute("cx",String(h+z/2)),_e.setAttribute("cy",String(m+D/2)),_e.setAttribute("r",String(ae/2));else{const J=((g.rotation||0)+w)%(2*Math.PI),he=(J+2*Math.PI)%(2*Math.PI);let De=h+z/2,be=m+D/2,P=h+z/2,q=m+D/2;he>=0&&he<=.25*Math.PI||he>1.75*Math.PI&&he<=2*Math.PI?(De-=z/2,be-=D/2*Math.tan(J),P+=z/2,q+=D/2*Math.tan(J)):he>.25*Math.PI&&he<=.75*Math.PI?(be-=D/2,De-=z/2/Math.tan(J),q+=D/2,P+=z/2/Math.tan(J)):he>.75*Math.PI&&he<=1.25*Math.PI?(De+=z/2,be+=D/2*Math.tan(J),P-=z/2,q-=D/2*Math.tan(J)):he>1.25*Math.PI&&he<=1.75*Math.PI&&(be+=D/2,De+=z/2/Math.tan(J),q-=D/2,P-=z/2/Math.tan(J)),_e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),_e.setAttribute("id",Z),_e.setAttribute("gradientUnits","userSpaceOnUse"),_e.setAttribute("x1",String(Math.round(De))),_e.setAttribute("y1",String(Math.round(be))),_e.setAttribute("x2",String(Math.round(P))),_e.setAttribute("y2",String(Math.round(q)))}g.colorStops.forEach(({offset:J,color:he})=>{const De=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");De.setAttribute("offset",100*J+"%"),De.setAttribute("stop-color",he),_e.appendChild(De)}),fe.setAttribute("fill",`url('#${Z}')`),this._defs.appendChild(_e)}else p&&fe.setAttribute("fill",p);this._element.appendChild(fe)}}ue.instanceCount=0;const V=ue,ce="canvas",oe={};for(let A=0;A<=40;A++)oe[A]=A;const ee={type:ce,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:oe[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(A){const g=Object.assign({},A);if(!g.colorStops||!g.colorStops.length)throw"Field 'colorStops' is required in gradient";return g.rotation?g.rotation=Number(g.rotation):g.rotation=0,g.colorStops=g.colorStops.map(p=>Object.assign(Object.assign({},p),{offset:Number(p.offset)})),g}function pe(A){const g=Object.assign({},A);return g.width=Number(g.width),g.height=Number(g.height),g.margin=Number(g.margin),g.imageOptions=Object.assign(Object.assign({},g.imageOptions),{hideBackgroundDots:!!g.imageOptions.hideBackgroundDots,imageSize:Number(g.imageOptions.imageSize),margin:Number(g.imageOptions.margin)}),g.margin>Math.min(g.width,g.height)&&(g.margin=Math.min(g.width,g.height)),g.dotsOptions=Object.assign({},g.dotsOptions),g.dotsOptions.gradient&&(g.dotsOptions.gradient=de(g.dotsOptions.gradient)),g.cornersSquareOptions&&(g.cornersSquareOptions=Object.assign({},g.cornersSquareOptions),g.cornersSquareOptions.gradient&&(g.cornersSquareOptions.gradient=de(g.cornersSquareOptions.gradient))),g.cornersDotOptions&&(g.cornersDotOptions=Object.assign({},g.cornersDotOptions),g.cornersDotOptions.gradient&&(g.cornersDotOptions.gradient=de(g.cornersDotOptions.gradient))),g.backgroundOptions&&(g.backgroundOptions=Object.assign({},g.backgroundOptions),g.backgroundOptions.gradient&&(g.backgroundOptions.gradient=de(g.backgroundOptions.gradient))),g}var re=l(873),Ae=l.n(re);function Se(A){if(!A)throw new Error("Extension must be defined");A[0]==="."&&(A=A.substring(1));const g={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"}[A.toLowerCase()];if(!g)throw new Error(`Extension "${A}" is not supported`);return g}class Y{constructor(g){g!=null&&g.jsdom?this._window=new g.jsdom("",{resources:"usable"}).window:this._window=window,this._options=g?pe(c(ee,g)):ee,this.update()}static _clearContainer(g){g&&(g.innerHTML="")}_setupSvg(){if(!this._qr)return;const g=new V(this._options,this._window);this._svg=g.getElement(),this._svgDrawingPromise=g.drawQR(this._qr).then(()=>{var p;this._svg&&((p=this._extension)===null||p===void 0||p.call(this,g.getElement(),this._options))})}_setupCanvas(){var g,p;this._qr&&(!((g=this._options.nodeCanvas)===null||g===void 0)&&g.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=(p=this._svgDrawingPromise)===null||p===void 0?void 0:p.then(()=>{var w;if(!this._svg)return;const h=this._svg,m=new this._window.XMLSerializer().serializeToString(h),D=btoa(m),z=`data:${Se("svg")};base64,${D}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(z).then(Z=>{var ae,fe;Z.width=this._options.width,Z.height=this._options.height,(fe=(ae=this._nodeCanvas)===null||ae===void 0?void 0:ae.getContext("2d"))===null||fe===void 0||fe.drawImage(Z,0,0)});{const Z=new this._window.Image;return new Promise(ae=>{Z.onload=()=>{var fe,_e;(_e=(fe=this._domCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||_e===void 0||_e.drawImage(Z,0,0),ae()},Z.src=z})}}))}async _getElement(g="png"){if(!this._qr)throw"QR code is empty";return g.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(g){Y._clearContainer(this._container),this._options=g?pe(c(this._options,g)):this._options,this._options.data&&(this._qr=Ae()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(p){switch(!0){case/^[0-9]*$/.test(p):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(p):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ce?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(g){if(g){if(typeof g.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ce?this._domCanvas&&g.appendChild(this._domCanvas):this._svg&&g.appendChild(this._svg),this._container=g}}applyExtension(g){if(!g)throw"Extension function should be defined.";this._extension=g,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(g="png"){if(!this._qr)throw"QR code is empty";const p=await this._getElement(g),w=Se(g);if(!p)return null;if(g.toLowerCase()==="svg"){const h=`<?xml version="1.0" standalone="no"?>\r
116
+ ${new this._window.XMLSerializer().serializeToString(p)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(h):new Blob([h],{type:w})}return new Promise(h=>{const m=p;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(g){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let p="png",w="qr";typeof g=="string"?(p=g,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof g=="object"&&g!==null&&(g.name&&(w=g.name),g.extension&&(p=g.extension));const h=await this._getElement(p);if(h)if(p.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(h);m=`<?xml version="1.0" standalone="no"?>\r
117
+ `+m,x(`data:${Se(p)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else x(h.toDataURL(Se(p)),`${w}.${p}`)}}const L=Y})(),d.default})())}(wa)),wa.exports}Ng();const lc=ye.createContext(void 0);function $g(i){const n=an.c(9),{children:r,baseUrl:s,queryClient:l}=i;let d;n[0]!==s||n[1]!==l?(d={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=d):d=n[2];let v;n[3]!==r||n[4]!==l?(v=T.jsx(wl,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=v):v=n[5];let c;return n[6]!==d||n[7]!==v?(c=T.jsx(lc.Provider,{value:d,children:v}),n[6]=d,n[7]=v,n[8]=c):c=n[8],c}function nr(){const i=ye.useContext(lc);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Bg(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function kr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Ag()??""}`,...Bg()}}async function cc(i){return fetch(i,{method:"GET",headers:await kr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function fc(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await kr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function hc(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await kr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function dc(i,n){return fetch(i,{method:"POST",headers:await kr(),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 jg(i,n,r){return fetch(n,{method:i,headers:await kr(),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 pc(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await kr(),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 gc(i,n,r){const s=an.c(13),{baseUrl:l}=nr();let d;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],d=[...n.map(Yg),String(C)],s[0]=r,s[1]=n,s[2]=d}else d=s[2];let v;s[5]!==i||s[6]!==l||s[7]!==r?(v=()=>fc(`${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]!==d||s[10]!==v||s[11]!==c?(x={queryKey:d,queryFn:v,enabled:c},s[9]=d,s[10]=v,s[11]=c,s[12]=x):x=s[12],Cl(x)}function Yg(i){return i.toString()}function mc(i,n){const r=an.c(8),{baseUrl:s}=nr();let l;r[0]!==n?(l=[...n.map(Ug)],r[0]=n,r[1]=l):l=r[1];let d;r[2]!==i||r[3]!==s?(d=()=>cc(`${s}${i}`),r[2]=i,r[3]=s,r[4]=d):d=r[4];let v;return r[5]!==l||r[6]!==d?(v={queryKey:l,queryFn:d},r[5]=l,r[6]=d,r[7]=v):v=r[7],Cl(v)}function Ug(i){return i.toString()}function vc(i,n){const r=an.c(10),{baseUrl:s,queryClient:l}=nr();let d;r[0]!==n?(d=[...n.map(Wg)],r[0]=n,r[1]=d):d=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]!==d||r[8]!==v?(c={mutationKey:d,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Fg)]})}},r[5]=l,r[6]=n,r[7]=d,r[8]=v,r[9]=c):c=r[9],ta(c)}function Fg(i){return i.toString()}function Wg(i){return i.toString()}function ba(i,n){const r=an.c(10),{baseUrl:s,queryClient:l}=nr();let d;r[0]!==n?(d=[...n.map(qg)],r[0]=n,r[1]=d):d=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]!==d||r[8]!==v?(c={mutationKey:d,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(zg)]})}},r[5]=l,r[6]=n,r[7]=d,r[8]=v,r[9]=c):c=r[9],ta(c)}function zg(i){return i.toString()}function qg(i){return i.toString()}function yc(i,n){const r=an.c(10),{baseUrl:s,queryClient:l}=nr();let d;r[0]!==n?(d=[...n.map(Gg)],r[0]=n,r[1]=d):d=r[1];let v;r[2]!==i||r[3]!==s?(v=x=>hc(`${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]!==d||r[8]!==v?(c={mutationKey:d,mutationFn:v,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Hg)]})}},r[5]=l,r[6]=n,r[7]=d,r[8]=v,r[9]=c):c=r[9],ta(c)}function Hg(i){return i.toString()}function Gg(i){return i.toString()}var Po={exports:{}},Vg=Po.exports,_c;function Zg(){return _c||(_c=1,function(i,n){(function(r,s){i.exports=s()})(Vg,function(){var r=1e3,s=6e4,l=36e5,d="millisecond",v="second",c="minute",x="hour",C="day",O="week",R="month",N="quarter",E="year",I="date",$="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={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(Y){var L=["th","st","nd","rd"],A=Y%100;return"["+Y+(L[(A-20)%10]||L[A]||L[0])+"]"}},ne=function(Y,L,A){var g=String(Y);return!g||g.length>=L?Y:""+Array(L+1-g.length).join(A)+Y},ue={s:ne,z:function(Y){var L=-Y.utcOffset(),A=Math.abs(L),g=Math.floor(A/60),p=A%60;return(L<=0?"+":"-")+ne(g,2,"0")+":"+ne(p,2,"0")},m:function Y(L,A){if(L.date()<A.date())return-Y(A,L);var g=12*(A.year()-L.year())+(A.month()-L.month()),p=L.clone().add(g,R),w=A-p<0,h=L.clone().add(g+(w?-1:1),R);return+(-(g+(A-p)/(w?p-h:h-p))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:R,y:E,w:O,d:C,D:I,h:x,m:c,s:v,ms:d,Q:N}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},V="en",ce={};ce[V]=te;var oe="$isDayjsObject",ee=function(Y){return Y instanceof Ae||!(!Y||!Y[oe])},de=function Y(L,A,g){var p;if(!L)return V;if(typeof L=="string"){var w=L.toLowerCase();ce[w]&&(p=w),A&&(ce[w]=A,p=w);var h=L.split("-");if(!p&&h.length>1)return Y(h[0])}else{var m=L.name;ce[m]=L,p=m}return!g&&p&&(V=p),p||!g&&V},pe=function(Y,L){if(ee(Y))return Y.clone();var A=typeof L=="object"?L:{};return A.date=Y,A.args=arguments,new Ae(A)},re=ue;re.l=de,re.i=ee,re.w=function(Y,L){return pe(Y,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var Ae=function(){function Y(A){this.$L=de(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[oe]=!0}var L=Y.prototype;return L.parse=function(A){this.$d=function(g){var p=g.date,w=g.utc;if(p===null)return new Date(NaN);if(re.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var h=p.match(j);if(h){var m=h[2]-1||0,D=(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,D)):new Date(h[1],m,h[3]||1,h[4]||0,h[5]||0,h[6]||0,D)}}return new Date(p)}(A),this.init()},L.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},L.$utils=function(){return re},L.isValid=function(){return this.$d.toString()!==$},L.isSame=function(A,g){var p=pe(A);return this.startOf(g)<=p&&p<=this.endOf(g)},L.isAfter=function(A,g){return pe(A)<this.startOf(g)},L.isBefore=function(A,g){return this.endOf(g)<pe(A)},L.$g=function(A,g,p){return re.u(A)?this[g]:this.set(p,A)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(A,g){var p=this,w=!!re.u(g)||g,h=re.p(A),m=function(he,De){var be=re.w(p.$u?Date.UTC(p.$y,De,he):new Date(p.$y,De,he),p);return w?be:be.endOf(C)},D=function(he,De){return re.w(p.toDate()[he].apply(p.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(De)),p)},z=this.$W,Z=this.$M,ae=this.$D,fe="set"+(this.$u?"UTC":"");switch(h){case E:return w?m(1,0):m(31,11);case R:return w?m(1,Z):m(0,Z+1);case O:var _e=this.$locale().weekStart||0,J=(z<_e?z+7:z)-_e;return m(w?ae-J:ae+(6-J),Z);case C:case I:return D(fe+"Hours",0);case x:return D(fe+"Minutes",1);case c:return D(fe+"Seconds",2);case v:return D(fe+"Milliseconds",3);default:return this.clone()}},L.endOf=function(A){return this.startOf(A,!1)},L.$set=function(A,g){var p,w=re.p(A),h="set"+(this.$u?"UTC":""),m=(p={},p[C]=h+"Date",p[I]=h+"Date",p[R]=h+"Month",p[E]=h+"FullYear",p[x]=h+"Hours",p[c]=h+"Minutes",p[v]=h+"Seconds",p[d]=h+"Milliseconds",p)[w],D=w===C?this.$D+(g-this.$W):g;if(w===R||w===E){var z=this.clone().set(I,1);z.$d[m](D),z.init(),this.$d=z.set(I,Math.min(this.$D,z.daysInMonth())).$d}else m&&this.$d[m](D);return this.init(),this},L.set=function(A,g){return this.clone().$set(A,g)},L.get=function(A){return this[re.p(A)]()},L.add=function(A,g){var p,w=this;A=Number(A);var h=re.p(g),m=function(Z){var ae=pe(w);return re.w(ae.date(ae.date()+Math.round(Z*A)),w)};if(h===R)return this.set(R,this.$M+A);if(h===E)return this.set(E,this.$y+A);if(h===C)return m(1);if(h===O)return m(7);var D=(p={},p[c]=s,p[x]=l,p[v]=r,p)[h]||1,z=this.$d.getTime()+A*D;return re.w(z,this)},L.subtract=function(A,g){return this.add(-1*A,g)},L.format=function(A){var g=this,p=this.$locale();if(!this.isValid())return p.invalidDate||$;var w=A||"YYYY-MM-DDTHH:mm:ssZ",h=re.z(this),m=this.$H,D=this.$m,z=this.$M,Z=p.weekdays,ae=p.months,fe=p.meridiem,_e=function(De,be,P,q){return De&&(De[be]||De(g,w))||P[be].slice(0,q)},J=function(De){return re.s(m%12||12,De,"0")},he=fe||function(De,be,P){var q=De<12?"AM":"PM";return P?q.toLowerCase():q};return w.replace(X,function(De,be){return be||function(P){switch(P){case"YY":return String(g.$y).slice(-2);case"YYYY":return re.s(g.$y,4,"0");case"M":return z+1;case"MM":return re.s(z+1,2,"0");case"MMM":return _e(p.monthsShort,z,ae,3);case"MMMM":return _e(ae,z);case"D":return g.$D;case"DD":return re.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return _e(p.weekdaysMin,g.$W,Z,2);case"ddd":return _e(p.weekdaysShort,g.$W,Z,3);case"dddd":return Z[g.$W];case"H":return String(m);case"HH":return re.s(m,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return he(m,D,!0);case"A":return he(m,D,!1);case"m":return String(D);case"mm":return re.s(D,2,"0");case"s":return String(g.$s);case"ss":return re.s(g.$s,2,"0");case"SSS":return re.s(g.$ms,3,"0");case"Z":return h}return null}(De)||h.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(A,g,p){var w,h=this,m=re.p(g),D=pe(A),z=(D.utcOffset()-this.utcOffset())*s,Z=this-D,ae=function(){return re.m(h,D)};switch(m){case E:w=ae()/12;break;case R:w=ae();break;case N:w=ae()/3;break;case O:w=(Z-z)/6048e5;break;case C:w=(Z-z)/864e5;break;case x:w=Z/l;break;case c:w=Z/s;break;case v:w=Z/r;break;default:w=Z}return p?w:re.a(w)},L.daysInMonth=function(){return this.endOf(R).$D},L.$locale=function(){return ce[this.$L]},L.locale=function(A,g){if(!A)return this.$L;var p=this.clone(),w=de(A,g,!0);return w&&(p.$L=w),p},L.clone=function(){return re.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},Y}(),Se=Ae.prototype;return pe.prototype=Se,[["$ms",d],["$s",v],["$m",c],["$H",x],["$W",C],["$M",R],["$y",E],["$D",I]].forEach(function(Y){Se[Y[1]]=function(L){return this.$g(L,Y[0],Y[1])}}),pe.extend=function(Y,L){return Y.$i||(Y(L,Ae,pe),Y.$i=!0),pe},pe.locale=de,pe.isDayjs=ee,pe.unix=function(Y){return pe(1e3*Y)},pe.en=ce[V],pe.Ls=ce,pe.p={},pe})}(Po)),Po.exports}var Kg=Zg();const Ee=rl(Kg);function Qg({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 wc({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:d}){var x,C,O;const v=Qg({direction:n,size:d,rowIndex:s,cellIndex:l,levelIndex:r});if(!v)return;const c=(O=(C=(x=i.current)==null?void 0:x[v.levelIndex])==null?void 0:C[v.rowIndex])==null?void 0:O[v.cellIndex];c&&(c.disabled||c.getAttribute("data-hidden")||c.getAttribute("data-outside")?wc({controlsRef:i,direction:n,levelIndex:v.levelIndex,cellIndex:v.cellIndex,rowIndex:v.rowIndex,size:d}):c.focus())}function Jg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function Xg(i){var n;return(n=i.current)==null?void 0:n.map(r=>r.map(s=>s.length))}function xa({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const d=Jg(l.key);if(d){l.preventDefault();const v=Xg(i);wc({controlsRef:i,direction:d,levelIndex:n,rowIndex:r,cellIndex:s,size:v})}}function cn(i){return i==null?i:Ee(i).format("YYYY-MM-DD")}function bc(i){return i==null?i:Ee(i).format("YYYY-MM-DD HH:mm:ss")}const e1={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},t1=ye.createContext(e1);function rr(){const i=ye.useContext(t1),n=ye.useCallback(d=>d||i.locale,[i.locale]),r=ye.useCallback(d=>typeof d=="number"?d:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(d=>Array.isArray(d)?d:i.weekendDays,[i.weekendDays]),l=ye.useCallback(d=>typeof d=="string"?d:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:l}}function n1({value:i,type:n,withTime:r}){const s=r?bc:cn;if(n==="range"&&Array.isArray(i)){const l=s(i[0]),d=s(i[1]);return l?d?`${l} – ${d}`:`${l} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function xc({value:i,type:n,name:r,form:s,withTime:l=!1}){return T.jsx("input",{type:"hidden",value:n1({value:i,type:n,withTime:l}),name:r,form:s})}xc.displayName="@mantine/dates/HiddenDatesInput";function Sc(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=Sc(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function mt(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=Sc(i))&&(s&&(s+=" "),s+=n);return s}var Cc={day:"m_396ce5cb"};const r1={},i1=B.createVarsResolver((i,{size:n})=>({day:{"--day-size":B.getSize(n,"day-size")}})),Sa=B.factory((i,n)=>{const r=B.useProps("Day",r1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,date:C,disabled:O,__staticSelector:R,weekend:N,outside:E,selected:I,renderDay:$,inRange:j,firstInRange:X,lastInRange:te,hidden:ne,static:ue,highlightToday:V,...ce}=r,oe=B.useStyles({name:R||"Day",classes:Cc,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:i1,rootSelector:"day"});return T.jsx(B.UnstyledButton,{...oe("day",{style:ne?{display:"none"}:void 0}),component:ue?"div":"button",ref:n,disabled:O,"data-today":Ee(C).isSame(new Date,"day")||void 0,"data-hidden":ne||void 0,"data-highlight-today":V||void 0,"data-disabled":O||void 0,"data-weekend":!O&&!E&&N||void 0,"data-outside":!O&&E||void 0,"data-selected":!O&&I||void 0,"data-in-range":j&&!O||void 0,"data-first-in-range":X&&!O||void 0,"data-last-in-range":te&&!O||void 0,"data-static":ue||void 0,unstyled:c,...ce,children:($==null?void 0:$(C))||Ee(C).date()})});Sa.classes=Cc,Sa.displayName="@mantine/dates/Day";function o1({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Ee().day(r),l=[];for(let d=0;d<7;d+=1)typeof n=="string"?l.push(Ee(s).add(d,"days").locale(i).format(n)):l.push(n(Ee(s).add(d,"days").format("YYYY-MM-DD")));return l}var Ac={weekday:"m_18a3eca"};const s1={},a1=B.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":B.getFontSize(n),"--wr-spacing":B.getSpacing(n)}})),Ca=B.factory((i,n)=>{const r=B.useProps("WeekdaysRow",s1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,locale:C,firstDayOfWeek:O,weekdayFormat:R,cellComponent:N="th",__staticSelector:E,withWeekNumbers:I,...$}=r,j=B.useStyles({name:E||"WeekdaysRow",classes:Ac,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:a1,rootSelector:"weekdaysRow"}),X=rr(),te=o1({locale:X.getLocale(C),format:R,firstDayOfWeek:X.getFirstDayOfWeek(O)}).map((ne,ue)=>T.jsx(N,{...j("weekday"),children:ne},ue));return T.jsxs(B.Box,{component:"tr",ref:n,...j("weekdaysRow"),...$,children:[I&&T.jsx(N,{...j("weekday"),children:"#"}),te]})});Ca.classes=Ac,Ca.displayName="@mantine/dates/WeekdaysRow";function u1(i,n=1){let r=Ee(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function l1(i,n=1){let r=Ee(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function c1({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Ee(i).subtract(Ee(i).date()-1,"day"),l=Ee(s.format("YYYY-M-D")),d=l.format("YYYY-MM-DD"),v=l.add(+l.daysInMonth()-1,"day").format("YYYY-MM-DD"),c=u1(v,n),x=[];let C=Ee(l1(d,n));for(;Ee(C).isBefore(c,"day");){const O=[];for(let R=0;R<7;R+=1)O.push(C.format("YYYY-MM-DD")),C=C.add(1,"day");x.push(O)}if(r&&x.length<6){const O=x[x.length-1],R=O[O.length-1];let N=Ee(R).add(1,"day");for(;x.length<6;){const E=[];for(let I=0;I<7;I+=1)E.push(N.format("YYYY-MM-DD")),N=N.add(1,"day");x.push(E)}}return x}function Dc(i,n){return Ee(i).format("YYYY-MM")===Ee(n).format("YYYY-MM")}function Oc(i,n){return n?Ee(i).isAfter(Ee(n).subtract(1,"day"),"day"):!0}function Tc(i,n){return n?Ee(i).isBefore(Ee(n).add(1,"day"),"day"):!0}function f1({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:l,hideOutsideDates:d,month:v}){const c=i.flat().filter(O=>{var R;return Tc(O,r)&&Oc(O,n)&&!(l!=null&&l(O))&&!((R=s==null?void 0:s(O))!=null&&R.disabled)&&(!d||Dc(O,v))}),x=c.find(O=>{var R;return(R=s==null?void 0:s(O))==null?void 0:R.selected});if(x)return x;const C=c.find(O=>Ee().isSame(O,"date"));return C||c[0]}var No={exports:{}},h1=No.exports,Mc;function d1(){return Mc||(Mc=1,function(i,n){(function(r,s){i.exports=s()})(h1,function(){var r="day";return function(s,l,d){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 O,R,N,E,I=v(this),$=(O=this.isoWeekYear(),R=this.$u,N=(R?d.utc:d)().year(O).startOf("year"),E=4-N.isoWeekday(),N.isoWeekday()>4&&(E+=7),N.add(E,r));return I.diff($,"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,O){var R=this.$utils(),N=!!R.u(O)||O;return R.p(C)==="isoweek"?N?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):x.bind(this)(C,O)}}})}(No)),No.exports}var p1=d1();const g1=rl(p1);Ee.extend(g1);function m1(i){const n=i.find(r=>Ee(r).day()===1);return Ee(n).isoWeek()}var Ec={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const v1={withCellSpacing:!0},y1=B.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":B.getFontSize(n),"--wn-size":B.getSize(n,"wn-size")}})),$o=B.factory((i,n)=>{const r=B.useProps("Month",v1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,__staticSelector:C,locale:O,firstDayOfWeek:R,weekdayFormat:N,month:E,weekendDays:I,getDayProps:$,excludeDate:j,minDate:X,maxDate:te,renderDay:ne,hideOutsideDates:ue,hideWeekdays:V,getDayAriaLabel:ce,static:oe,__getDayRef:ee,__onDayKeyDown:de,__onDayClick:pe,__onDayMouseEnter:re,__preventFocus:Ae,__stopPropagation:Se,withCellSpacing:Y,size:L,highlightToday:A,withWeekNumbers:g,...p}=r,w=B.useStyles({name:C||"Month",classes:Ec,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:y1,rootSelector:"month"}),h=rr(),m=c1({month:E,firstDayOfWeek:h.getFirstDayOfWeek(R),consistentWeeks:h.consistentWeeks}),D=f1({dates:m,minDate:cn(X),maxDate:cn(te),getDayProps:$,excludeDate:j,hideOutsideDates:ue,month:E}),{resolvedClassNames:z,resolvedStyles:Z}=B.useResolvedStylesApi({classNames:s,styles:v,props:r}),ae=m.map((fe,_e)=>{const J=fe.map((he,De)=>{const be=!Dc(he,E),P=(ce==null?void 0:ce(he))||Ee(he).locale(O||h.locale).format("D MMMM YYYY"),q=$==null?void 0:$(he),F=Ee(he).isSame(D,"date");return T.jsx("td",{...w("monthCell"),"data-with-spacing":Y||void 0,children:T.jsx(Sa,{__staticSelector:C||"Month",classNames:z,styles:Z,unstyled:c,"data-mantine-stop-propagation":Se||void 0,highlightToday:A,renderDay:ne,date:he,size:L,weekend:h.getWeekendDays(I).includes(Ee(he).get("day")),outside:be,hidden:ue?be:!1,"aria-label":P,static:oe,disabled:(j==null?void 0:j(he))||!Tc(he,cn(te))||!Oc(he,cn(X)),ref:K=>ee==null?void 0:ee(_e,De,K),...q,onKeyDown:K=>{var se;(se=q==null?void 0:q.onKeyDown)==null||se.call(q,K),de==null||de(K,{rowIndex:_e,cellIndex:De,date:he})},onMouseEnter:K=>{var se;(se=q==null?void 0:q.onMouseEnter)==null||se.call(q,K),re==null||re(K,he)},onClick:K=>{var se;(se=q==null?void 0:q.onClick)==null||se.call(q,K),pe==null||pe(K,he)},onMouseDown:K=>{var se;(se=q==null?void 0:q.onMouseDown)==null||se.call(q,K),Ae&&K.preventDefault()},tabIndex:Ae||!F?-1:0})},he.toString())});return T.jsxs("tr",{...w("monthRow"),children:[g&&T.jsx("td",{...w("weekNumber"),children:m1(fe)}),J]},_e)});return T.jsxs(B.Box,{component:"table",...w("month"),size:L,ref:n,...p,children:[!V&&T.jsx("thead",{...w("monthThead"),children:T.jsx(Ca,{__staticSelector:C||"Month",locale:O,firstDayOfWeek:R,weekdayFormat:N,size:L,classNames:z,styles:Z,unstyled:c,withWeekNumbers:g})}),T.jsx("tbody",{...w("monthTbody"),children:ae})]})});$o.classes=Ec,$o.displayName="@mantine/dates/Month";var Rc={pickerControl:"m_dc6a3c71"};const _1={},w1=B.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":B.getFontSize(n),"--dpc-size":B.getSize(n,"dpc-size")}})),Bo=B.factory((i,n)=>{const r=B.useProps("PickerControl",_1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,firstInRange:C,lastInRange:O,inRange:R,__staticSelector:N,selected:E,disabled:I,...$}=r,j=B.useStyles({name:N||"PickerControl",classes:Rc,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:w1,rootSelector:"pickerControl"});return T.jsx(B.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":R&&!I&&!E||void 0,"data-first-in-range":C&&!I||void 0,"data-last-in-range":O&&!I||void 0,disabled:I,...$})});Bo.classes=Rc,Bo.displayName="@mantine/dates/PickerControl";function Lc({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Ee(i).isBefore(n,"year")||r&&Ee(i).isAfter(r,"year"))}function b1({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)}),d=l.find(c=>{var x;return(x=s==null?void 0:s(c))==null?void 0:x.selected});if(d)return d;const v=l.find(c=>Ee().isSame(c,"year"));return v||l[0]}function kc(i){const n=Ee(i).year(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let d=0;d<4;d+=1){const v=d===3?1:3;for(let c=0;c<v;c+=1)l[d].push(Ee(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return l}var Ic={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const x1={yearsListFormat:"YYYY",withCellSpacing:!0},jo=B.factory((i,n)=>{const r=B.useProps("YearsList",x1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,decade:C,yearsListFormat:O,locale:R,minDate:N,maxDate:E,getYearControlProps:I,__staticSelector:$,__getControlRef:j,__onControlKeyDown:X,__onControlClick:te,__onControlMouseEnter:ne,__preventFocus:ue,__stopPropagation:V,withCellSpacing:ce,size:oe,...ee}=r,de=B.useStyles({name:$||"YearsList",classes:Ic,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"yearsList"}),pe=rr(),re=kc(C),Ae=b1({years:re,minDate:N,maxDate:E,getYearControlProps:I}),Se=re.map((Y,L)=>{const A=Y.map((g,p)=>{const w=I==null?void 0:I(g),h=Ee(g).isSame(Ae,"year");return T.jsx("td",{...de("yearsListCell"),"data-with-spacing":ce||void 0,children:T.jsx(Bo,{...de("yearsListControl"),size:oe,unstyled:c,"data-mantine-stop-propagation":V||void 0,disabled:Lc({year:g,minDate:N,maxDate:E}),ref:m=>j==null?void 0:j(L,p,m),...w,onKeyDown:m=>{var D;(D=w==null?void 0:w.onKeyDown)==null||D.call(w,m),X==null||X(m,{rowIndex:L,cellIndex:p,date:g})},onClick:m=>{var D;(D=w==null?void 0:w.onClick)==null||D.call(w,m),te==null||te(m,g)},onMouseEnter:m=>{var D;(D=w==null?void 0:w.onMouseEnter)==null||D.call(w,m),ne==null||ne(m,g)},onMouseDown:m=>{var D;(D=w==null?void 0:w.onMouseDown)==null||D.call(w,m),ue&&m.preventDefault()},tabIndex:ue||!h?-1:0,children:Ee(g).locale(pe.getLocale(R)).format(O)})},p)});return T.jsx("tr",{...de("yearsListRow"),children:A},L)});return T.jsx(B.Box,{component:"table",ref:n,size:oe,...de("yearsList"),...ee,children:T.jsx("tbody",{children:Se})})});jo.classes=Ic,jo.displayName="@mantine/dates/YearsList";function Pc({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Ee(i).isBefore(n,"month")||r&&Ee(i).isAfter(r,"month"))}function S1({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)}),d=l.find(c=>{var x;return(x=s==null?void 0:s(c))==null?void 0:x.selected});if(d)return d;const v=l.find(c=>Ee().isSame(c,"month"));return v||l[0]}function C1(i){const n=Ee(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let d=0;d<3;d+=1)r[l].push(Ee(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Nc={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const A1={monthsListFormat:"MMM",withCellSpacing:!0},Yo=B.factory((i,n)=>{const r=B.useProps("MonthsList",A1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,__staticSelector:C,year:O,monthsListFormat:R,locale:N,minDate:E,maxDate:I,getMonthControlProps:$,__getControlRef:j,__onControlKeyDown:X,__onControlClick:te,__onControlMouseEnter:ne,__preventFocus:ue,__stopPropagation:V,withCellSpacing:ce,size:oe,...ee}=r,de=B.useStyles({name:C||"MonthsList",classes:Nc,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"monthsList"}),pe=rr(),re=C1(O),Ae=S1({months:re,minDate:cn(E),maxDate:cn(I),getMonthControlProps:$}),Se=re.map((Y,L)=>{const A=Y.map((g,p)=>{const w=$==null?void 0:$(g),h=Ee(g).isSame(Ae,"month");return T.jsx("td",{...de("monthsListCell"),"data-with-spacing":ce||void 0,children:T.jsx(Bo,{...de("monthsListControl"),size:oe,unstyled:c,__staticSelector:C||"MonthsList","data-mantine-stop-propagation":V||void 0,disabled:Pc({month:g,minDate:cn(E),maxDate:cn(I)}),ref:m=>j==null?void 0:j(L,p,m),...w,onKeyDown:m=>{var D;(D=w==null?void 0:w.onKeyDown)==null||D.call(w,m),X==null||X(m,{rowIndex:L,cellIndex:p,date:g})},onClick:m=>{var D;(D=w==null?void 0:w.onClick)==null||D.call(w,m),te==null||te(m,g)},onMouseEnter:m=>{var D;(D=w==null?void 0:w.onMouseEnter)==null||D.call(w,m),ne==null||ne(m,g)},onMouseDown:m=>{var D;(D=w==null?void 0:w.onMouseDown)==null||D.call(w,m),ue&&m.preventDefault()},tabIndex:ue||!h?-1:0,children:Ee(g).locale(pe.getLocale(N)).format(R)})},p)});return T.jsx("tr",{...de("monthsListRow"),children:A},L)});return T.jsx(B.Box,{component:"table",ref:n,size:oe,...de("monthsList"),...ee,children:T.jsx("tbody",{children:Se})})});Yo.classes=Nc,Yo.displayName="@mantine/dates/MonthsList";var $c={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const D1={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},O1=B.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":B.getSize(n,"dch-control-size"),"--dch-fz":B.getFontSize(n)}})),ir=B.factory((i,n)=>{const r=B.useProps("CalendarHeader",D1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,nextIcon:C,previousIcon:O,nextLabel:R,previousLabel:N,onNext:E,onPrevious:I,onLevelClick:$,label:j,nextDisabled:X,previousDisabled:te,hasNextLevel:ne,levelControlAriaLabel:ue,withNext:V,withPrevious:ce,__staticSelector:oe,__preventFocus:ee,__stopPropagation:de,...pe}=r,re=B.useStyles({name:oe||"CalendarHeader",classes:$c,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,varsResolver:O1,rootSelector:"calendarHeader"}),Ae=ee?Se=>Se.preventDefault():void 0;return T.jsxs(B.Box,{...re("calendarHeader"),ref:n,...pe,children:[ce&&T.jsx(B.UnstyledButton,{...re("calendarHeaderControl"),"data-direction":"previous","aria-label":N,onClick:I,unstyled:c,onMouseDown:Ae,disabled:te,"data-disabled":te||void 0,tabIndex:ee||te?-1:0,"data-mantine-stop-propagation":de||void 0,children:O||T.jsx(B.AccordionChevron,{...re("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),T.jsx(B.UnstyledButton,{component:ne?"button":"div",...re("calendarHeaderLevel"),onClick:ne?$:void 0,unstyled:c,onMouseDown:ne?Ae:void 0,disabled:!ne,"data-static":!ne||void 0,"aria-label":ue,tabIndex:ee||!ne?-1:0,"data-mantine-stop-propagation":de||void 0,children:j}),V&&T.jsx(B.UnstyledButton,{...re("calendarHeaderControl"),"data-direction":"next","aria-label":R,onClick:E,unstyled:c,onMouseDown:Ae,disabled:X,"data-disabled":X||void 0,tabIndex:ee||X?-1:0,"data-mantine-stop-propagation":de||void 0,children:C||T.jsx(B.AccordionChevron,{...re("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});ir.classes=$c,ir.displayName="@mantine/dates/CalendarHeader";function T1(i){const n=kc(i);return[n[0][0],n[3][0]]}const M1={decadeLabelFormat:"YYYY"},Uo=B.factory((i,n)=>{const r=B.useProps("DecadeLevel",M1,i),{decade:s,locale:l,minDate:d,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:C,__onControlKeyDown:O,__onControlClick:R,__onControlMouseEnter:N,withCellSpacing:E,__preventFocus:I,nextIcon:$,previousIcon:j,nextLabel:X,previousLabel:te,onNext:ne,onPrevious:ue,nextDisabled:V,previousDisabled:ce,levelControlAriaLabel:oe,withNext:ee,withPrevious:de,decadeLabelFormat:pe,classNames:re,styles:Ae,unstyled:Se,__staticSelector:Y,__stopPropagation:L,size:A,...g}=r,p=rr(),[w,h]=T1(s),m={__staticSelector:Y||"DecadeLevel",classNames:re,styles:Ae,unstyled:Se,size:A},D=typeof V=="boolean"?V:v?!Ee(h).endOf("year").isBefore(v):!1,z=typeof ce=="boolean"?ce:d?!Ee(w).startOf("year").isAfter(d):!1,Z=(ae,fe)=>Ee(ae).locale(l||p.locale).format(fe);return T.jsxs(B.Box,{"data-decade-level":!0,size:A,ref:n,...g,children:[T.jsx(ir,{label:typeof pe=="function"?pe(w,h):`${Z(w,pe)} – ${Z(h,pe)}`,__preventFocus:I,__stopPropagation:L,nextIcon:$,previousIcon:j,nextLabel:X,previousLabel:te,onNext:ne,onPrevious:ue,nextDisabled:D,previousDisabled:z,hasNextLevel:!1,levelControlAriaLabel:oe,withNext:ee,withPrevious:de,...m}),T.jsx(jo,{decade:s,locale:l,minDate:d,maxDate:v,yearsListFormat:c,getYearControlProps:x,__getControlRef:C,__onControlKeyDown:O,__onControlClick:R,__onControlMouseEnter:N,__preventFocus:I,__stopPropagation:L,withCellSpacing:E,...m})]})});Uo.classes={...jo.classes,...ir.classes},Uo.displayName="@mantine/dates/DecadeLevel";const E1={yearLabelFormat:"YYYY"},Fo=B.factory((i,n)=>{const r=B.useProps("YearLevel",E1,i),{year:s,locale:l,minDate:d,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:C,__onControlKeyDown:O,__onControlClick:R,__onControlMouseEnter:N,withCellSpacing:E,__preventFocus:I,nextIcon:$,previousIcon:j,nextLabel:X,previousLabel:te,onNext:ne,onPrevious:ue,onLevelClick:V,nextDisabled:ce,previousDisabled:oe,hasNextLevel:ee,levelControlAriaLabel:de,withNext:pe,withPrevious:re,yearLabelFormat:Ae,__staticSelector:Se,__stopPropagation:Y,size:L,classNames:A,styles:g,unstyled:p,...w}=r,h=rr(),m={__staticSelector:Se||"YearLevel",classNames:A,styles:g,unstyled:p,size:L},D=typeof ce=="boolean"?ce:v?!Ee(s).endOf("year").isBefore(v):!1,z=typeof oe=="boolean"?oe:d?!Ee(s).startOf("year").isAfter(d):!1;return T.jsxs(B.Box,{"data-year-level":!0,size:L,ref:n,...w,children:[T.jsx(ir,{label:typeof Ae=="function"?Ae(s):Ee(s).locale(l||h.locale).format(Ae),__preventFocus:I,__stopPropagation:Y,nextIcon:$,previousIcon:j,nextLabel:X,previousLabel:te,onNext:ne,onPrevious:ue,onLevelClick:V,nextDisabled:D,previousDisabled:z,hasNextLevel:ee,levelControlAriaLabel:de,withNext:pe,withPrevious:re,...m}),T.jsx(Yo,{year:s,locale:l,minDate:d,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__getControlRef:C,__onControlKeyDown:O,__onControlClick:R,__onControlMouseEnter:N,__preventFocus:I,__stopPropagation:Y,withCellSpacing:E,...m})]})});Fo.classes={...ir.classes,...Yo.classes},Fo.displayName="@mantine/dates/YearLevel";const R1={monthLabelFormat:"MMMM YYYY"},Wo=B.factory((i,n)=>{const r=B.useProps("MonthLevel",R1,i),{month:s,locale:l,firstDayOfWeek:d,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:O,maxDate:R,renderDay:N,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:j,__onDayKeyDown:X,__onDayClick:te,__onDayMouseEnter:ne,withCellSpacing:ue,highlightToday:V,withWeekNumbers:ce,__preventFocus:oe,__stopPropagation:ee,nextIcon:de,previousIcon:pe,nextLabel:re,previousLabel:Ae,onNext:Se,onPrevious:Y,onLevelClick:L,nextDisabled:A,previousDisabled:g,hasNextLevel:p,levelControlAriaLabel:w,withNext:h,withPrevious:m,monthLabelFormat:D,classNames:z,styles:Z,unstyled:ae,__staticSelector:fe,size:_e,static:J,...he}=r,De=rr(),be={__staticSelector:fe||"MonthLevel",classNames:z,styles:Z,unstyled:ae,size:_e},P=typeof A=="boolean"?A:R?!Ee(s).endOf("month").isBefore(R):!1,q=typeof g=="boolean"?g:O?!Ee(s).startOf("month").isAfter(O):!1;return T.jsxs(B.Box,{"data-month-level":!0,size:_e,ref:n,...he,children:[T.jsx(ir,{label:typeof D=="function"?D(s):Ee(s).locale(l||De.locale).format(D),__preventFocus:oe,__stopPropagation:ee,nextIcon:de,previousIcon:pe,nextLabel:re,previousLabel:Ae,onNext:Se,onPrevious:Y,onLevelClick:L,nextDisabled:P,previousDisabled:q,hasNextLevel:p,levelControlAriaLabel:w,withNext:h,withPrevious:m,...be}),T.jsx($o,{month:s,locale:l,firstDayOfWeek:d,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:O,maxDate:R,renderDay:N,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:j,__onDayKeyDown:X,__onDayClick:te,__onDayMouseEnter:ne,__preventFocus:oe,__stopPropagation:ee,static:J,withCellSpacing:ue,highlightToday:V,withWeekNumbers:ce,...be})]})});Wo.classes={...$o.classes,...ir.classes},Wo.displayName="@mantine/dates/MonthLevel";var Bc={levelsGroup:"m_30b26e33"};const L1={},or=B.factory((i,n)=>{const r=B.useProps("LevelsGroup",L1,i),{classNames:s,className:l,style:d,styles:v,unstyled:c,vars:x,__staticSelector:C,...O}=r,R=B.useStyles({name:C||"LevelsGroup",classes:Bc,props:r,className:l,style:d,classNames:s,styles:v,unstyled:c,vars:x,rootSelector:"levelsGroup"});return T.jsx(B.Box,{ref:n,...R("levelsGroup"),...O})});or.classes=Bc,or.displayName="@mantine/dates/LevelsGroup";const k1={numberOfColumns:1},zo=B.factory((i,n)=>{const r=B.useProps("DecadeLevelGroup",k1,i),{decade:s,locale:l,minDate:d,maxDate:v,yearsListFormat:c,getYearControlProps:x,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:R,__preventFocus:N,nextIcon:E,previousIcon:I,nextLabel:$,previousLabel:j,onNext:X,onPrevious:te,nextDisabled:ne,previousDisabled:ue,classNames:V,styles:ce,unstyled:oe,__staticSelector:ee,__stopPropagation:de,numberOfColumns:pe,levelControlAriaLabel:re,decadeLabelFormat:Ae,size:Se,vars:Y,...L}=r,A=ye.useRef([]),g=Array(pe).fill(0).map((p,w)=>{const h=Ee(s).add(w*10,"years").format("YYYY-MM-DD");return T.jsx(Uo,{size:Se,yearsListFormat:c,decade:h,withNext:w===pe-1,withPrevious:w===0,decadeLabelFormat:Ae,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(m,D)=>xa({levelIndex:w,rowIndex:D.rowIndex,cellIndex:D.cellIndex,event:m,controlsRef:A}),__getControlRef:(m,D,z)=>{Array.isArray(A.current[w])||(A.current[w]=[]),Array.isArray(A.current[w][m])||(A.current[w][m]=[]),A.current[w][m][D]=z},levelControlAriaLabel:typeof re=="function"?re(h):re,locale:l,minDate:d,maxDate:v,__preventFocus:N,__stopPropagation:de,nextIcon:E,previousIcon:I,nextLabel:$,previousLabel:j,onNext:X,onPrevious:te,nextDisabled:ne,previousDisabled:ue,getYearControlProps:x,__staticSelector:ee||"DecadeLevelGroup",classNames:V,styles:ce,unstyled:oe,withCellSpacing:R},w)});return T.jsx(or,{classNames:V,styles:ce,__staticSelector:ee||"DecadeLevelGroup",ref:n,size:Se,unstyled:oe,...L,children:g})});zo.classes={...or.classes,...Uo.classes},zo.displayName="@mantine/dates/DecadeLevelGroup";const I1={numberOfColumns:1},qo=B.factory((i,n)=>{const r=B.useProps("YearLevelGroup",I1,i),{year:s,locale:l,minDate:d,maxDate:v,monthsListFormat:c,getMonthControlProps:x,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:R,__preventFocus:N,nextIcon:E,previousIcon:I,nextLabel:$,previousLabel:j,onNext:X,onPrevious:te,onLevelClick:ne,nextDisabled:ue,previousDisabled:V,hasNextLevel:ce,classNames:oe,styles:ee,unstyled:de,__staticSelector:pe,__stopPropagation:re,numberOfColumns:Ae,levelControlAriaLabel:Se,yearLabelFormat:Y,size:L,vars:A,...g}=r,p=ye.useRef([]),w=Array(Ae).fill(0).map((h,m)=>{const D=Ee(s).add(m,"years").format("YYYY-MM-DD");return T.jsx(Fo,{size:L,monthsListFormat:c,year:D,withNext:m===Ae-1,withPrevious:m===0,yearLabelFormat:Y,__stopPropagation:re,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(z,Z)=>xa({levelIndex:m,rowIndex:Z.rowIndex,cellIndex:Z.cellIndex,event:z,controlsRef:p}),__getControlRef:(z,Z,ae)=>{Array.isArray(p.current[m])||(p.current[m]=[]),Array.isArray(p.current[m][z])||(p.current[m][z]=[]),p.current[m][z][Z]=ae},levelControlAriaLabel:typeof Se=="function"?Se(D):Se,locale:l,minDate:d,maxDate:v,__preventFocus:N,nextIcon:E,previousIcon:I,nextLabel:$,previousLabel:j,onNext:X,onPrevious:te,onLevelClick:ne,nextDisabled:ue,previousDisabled:V,hasNextLevel:ce,getMonthControlProps:x,classNames:oe,styles:ee,unstyled:de,__staticSelector:pe||"YearLevelGroup",withCellSpacing:R},m)});return T.jsx(or,{classNames:oe,styles:ee,__staticSelector:pe||"YearLevelGroup",ref:n,size:L,unstyled:de,...g,children:w})});qo.classes={...Fo.classes,...or.classes},qo.displayName="@mantine/dates/YearLevelGroup";const P1={numberOfColumns:1},Ho=B.factory((i,n)=>{const r=B.useProps("MonthLevelGroup",P1,i),{month:s,locale:l,firstDayOfWeek:d,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:O,maxDate:R,renderDay:N,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:$,__onDayClick:j,__onDayMouseEnter:X,withCellSpacing:te,highlightToday:ne,withWeekNumbers:ue,__preventFocus:V,nextIcon:ce,previousIcon:oe,nextLabel:ee,previousLabel:de,onNext:pe,onPrevious:re,onLevelClick:Ae,nextDisabled:Se,previousDisabled:Y,hasNextLevel:L,classNames:A,styles:g,unstyled:p,numberOfColumns:w,levelControlAriaLabel:h,monthLabelFormat:m,__staticSelector:D,__stopPropagation:z,size:Z,static:ae,vars:fe,..._e}=r,J=ye.useRef([]),he=Array(w).fill(0).map((De,be)=>{const P=Ee(s).add(be,"months").format("YYYY-MM-DD");return T.jsx(Wo,{month:P,withNext:be===w-1,withPrevious:be===0,monthLabelFormat:m,__stopPropagation:z,__onDayClick:j,__onDayMouseEnter:X,__onDayKeyDown:(q,F)=>xa({levelIndex:be,rowIndex:F.rowIndex,cellIndex:F.cellIndex,event:q,controlsRef:J}),__getDayRef:(q,F,K)=>{Array.isArray(J.current[be])||(J.current[be]=[]),Array.isArray(J.current[be][q])||(J.current[be][q]=[]),J.current[be][q][F]=K},levelControlAriaLabel:typeof h=="function"?h(P):h,locale:l,firstDayOfWeek:d,weekdayFormat:v,weekendDays:c,getDayProps:x,excludeDate:C,minDate:O,maxDate:R,renderDay:N,hideOutsideDates:E,hideWeekdays:I,getDayAriaLabel:$,__preventFocus:V,nextIcon:ce,previousIcon:oe,nextLabel:ee,previousLabel:de,onNext:pe,onPrevious:re,onLevelClick:Ae,nextDisabled:Se,previousDisabled:Y,hasNextLevel:L,classNames:A,styles:g,unstyled:p,__staticSelector:D||"MonthLevelGroup",size:Z,static:ae,withCellSpacing:te,highlightToday:ne,withWeekNumbers:ue},be)});return T.jsx(or,{classNames:A,styles:g,__staticSelector:D||"MonthLevelGroup",ref:n,size:Z,..._e,children:he})});Ho.classes={...or.classes,...Wo.classes},Ho.displayName="@mantine/dates/MonthLevelGroup";const jc=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Yc=(i,n)=>{const r=n?bc:cn;return Array.isArray(i)?i.map(r):r(i)};function Aa({type:i,value:n,defaultValue:r,onChange:s,withTime:l=!1}){const d=ye.useRef(i),[v,c,x]=At.useUncontrolled({value:Yc(n,l),defaultValue:Yc(r,l),finalValue:jc(i),onChange:s});let C=v;return d.current!==i&&(d.current=i,n===void 0&&(C=r!==void 0?r:jc(i),c(C))),[C,c,x]}function Da(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function N1(i){return i===0?"month":i===1?"year":"decade"}function Wi(i,n,r){return N1(At.clamp(Da(i,0),Da(n,0),Da(r,2)))}const $1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Go=B.factory((i,n)=>{const r=B.useProps("Calendar",$1,i),{vars:s,maxLevel:l,minLevel:d,defaultLevel:v,level:c,onLevelChange:x,date:C,defaultDate:O,onDateChange:R,numberOfColumns:N,columnsToScroll:E,ariaLabels:I,nextLabel:$,previousLabel:j,onYearSelect:X,onMonthSelect:te,onYearMouseEnter:ne,onMonthMouseEnter:ue,__updateDateOnYearSelect:V,__updateDateOnMonthSelect:ce,firstDayOfWeek:oe,weekdayFormat:ee,weekendDays:de,getDayProps:pe,excludeDate:re,renderDay:Ae,hideOutsideDates:Se,hideWeekdays:Y,getDayAriaLabel:L,monthLabelFormat:A,nextIcon:g,previousIcon:p,__onDayClick:w,__onDayMouseEnter:h,withCellSpacing:m,highlightToday:D,withWeekNumbers:z,monthsListFormat:Z,getMonthControlProps:ae,yearLabelFormat:fe,yearsListFormat:_e,getYearControlProps:J,decadeLabelFormat:he,classNames:De,styles:be,unstyled:P,minDate:q,maxDate:F,locale:K,__staticSelector:se,size:Oe,__preventFocus:u,__stopPropagation:f,onNextDecade:_,onPreviousDecade:M,onNextYear:W,onPreviousYear:Q,onNextMonth:xe,onPreviousMonth:Me,static:Ie,...Ce}=r,{resolvedClassNames:ke,resolvedStyles:Ne}=B.useResolvedStylesApi({classNames:De,styles:be,props:r}),[Re,Ge]=At.useUncontrolled({value:c?Wi(c,d,l):void 0,defaultValue:v?Wi(v,d,l):void 0,finalValue:Wi(void 0,d,l),onChange:x}),[Je,Ve]=Aa({type:"default",value:cn(C),defaultValue:cn(O),onChange:R}),xt={__staticSelector:se||"Calendar",styles:Ne,classNames:ke,unstyled:P,size:Oe},vt=E||N||1,ut=new Date,qt=q&&Ee(ut).isAfter(q)?q:Ee(ut).format("YYYY-MM-DD"),Dt=Je||qt,$n=()=>{const it=Ee(Dt).add(vt,"month").format("YYYY-MM-DD");xe==null||xe(it),Ve(it)},fn=()=>{const it=Ee(Dt).subtract(vt,"month").format("YYYY-MM-DD");Me==null||Me(it),Ve(it)},Qt=()=>{const it=Ee(Dt).add(vt,"year").format("YYYY-MM-DD");W==null||W(it),Ve(it)},xn=()=>{const it=Ee(Dt).subtract(vt,"year").format("YYYY-MM-DD");Q==null||Q(it),Ve(it)},Bn=()=>{const it=Ee(Dt).add(10*vt,"year").format("YYYY-MM-DD");_==null||_(it),Ve(it)},En=()=>{const it=Ee(Dt).subtract(10*vt,"year").format("YYYY-MM-DD");M==null||M(it),Ve(it)};return T.jsxs(B.Box,{ref:n,size:Oe,"data-calendar":!0,...Ce,children:[Re==="month"&&T.jsx(Ho,{month:Dt,minDate:q,maxDate:F,firstDayOfWeek:oe,weekdayFormat:ee,weekendDays:de,getDayProps:pe,excludeDate:re,renderDay:Ae,hideOutsideDates:Se,hideWeekdays:Y,getDayAriaLabel:L,onNext:$n,onPrevious:fn,hasNextLevel:l!=="month",onLevelClick:()=>Ge("year"),numberOfColumns:N,locale:K,levelControlAriaLabel:I==null?void 0:I.monthLevelControl,nextLabel:(I==null?void 0:I.nextMonth)??$,nextIcon:g,previousLabel:(I==null?void 0:I.previousMonth)??j,previousIcon:p,monthLabelFormat:A,__onDayClick:w,__onDayMouseEnter:h,__preventFocus:u,__stopPropagation:f,static:Ie,withCellSpacing:m,highlightToday:D,withWeekNumbers:z,...xt}),Re==="year"&&T.jsx(qo,{year:Dt,numberOfColumns:N,minDate:q,maxDate:F,monthsListFormat:Z,getMonthControlProps:ae,locale:K,onNext:Qt,onPrevious:xn,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>Ge("decade"),levelControlAriaLabel:I==null?void 0:I.yearLevelControl,nextLabel:(I==null?void 0:I.nextYear)??$,nextIcon:g,previousLabel:(I==null?void 0:I.previousYear)??j,previousIcon:p,yearLabelFormat:fe,__onControlMouseEnter:ue,__onControlClick:(it,It)=>{ce&&Ve(It),Ge(Wi("month",d,l)),te==null||te(It)},__preventFocus:u,__stopPropagation:f,withCellSpacing:m,...xt}),Re==="decade"&&T.jsx(zo,{decade:Dt,minDate:q,maxDate:F,yearsListFormat:_e,getYearControlProps:J,locale:K,onNext:Bn,onPrevious:En,numberOfColumns:N,nextLabel:(I==null?void 0:I.nextDecade)??$,nextIcon:g,previousLabel:(I==null?void 0:I.previousDecade)??j,previousIcon:p,decadeLabelFormat:he,__onControlMouseEnter:ne,__onControlClick:(it,It)=>{V&&Ve(It),Ge(Wi("year",d,l)),X==null||X(It)},__preventFocus:u,__stopPropagation:f,withCellSpacing:m,...xt})]})});Go.classes={...zo.classes,...qo.classes,...Ho.classes},Go.displayName="@mantine/dates/Calendar";function B1(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:d,nextIcon:v,previousIcon:c,date:x,defaultDate:C,onDateChange:O,numberOfColumns:R,columnsToScroll:N,ariaLabels:E,nextLabel:I,previousLabel:$,onYearSelect:j,onMonthSelect:X,onYearMouseEnter:te,onMonthMouseEnter:ne,onNextMonth:ue,onPreviousMonth:V,onNextYear:ce,onPreviousYear:oe,onNextDecade:ee,onPreviousDecade:de,withCellSpacing:pe,highlightToday:re,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Se,withWeekNumbers:Y,firstDayOfWeek:L,weekdayFormat:A,weekendDays:g,getDayProps:p,excludeDate:w,renderDay:h,hideOutsideDates:m,hideWeekdays:D,getDayAriaLabel:z,monthLabelFormat:Z,monthsListFormat:ae,getMonthControlProps:fe,yearLabelFormat:_e,yearsListFormat:J,getYearControlProps:he,decadeLabelFormat:De,allowSingleDateInRange:be,allowDeselect:P,minDate:q,maxDate:F,locale:K,...se}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:d,nextIcon:v,previousIcon:c,date:x,defaultDate:C,onDateChange:O,numberOfColumns:R,columnsToScroll:N,ariaLabels:E,nextLabel:I,previousLabel:$,onYearSelect:j,onMonthSelect:X,onYearMouseEnter:te,onMonthMouseEnter:ne,onNextMonth:ue,onPreviousMonth:V,onNextYear:ce,onPreviousYear:oe,onNextDecade:ee,onPreviousDecade:de,withCellSpacing:pe,highlightToday:re,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Se,withWeekNumbers:Y,firstDayOfWeek:L,weekdayFormat:A,weekendDays:g,getDayProps:p,excludeDate:w,renderDay:h,hideOutsideDates:m,hideWeekdays:D,getDayAriaLabel:z,monthLabelFormat:Z,monthsListFormat:ae,getMonthControlProps:fe,yearLabelFormat:_e,yearsListFormat:J,getYearControlProps:he,decadeLabelFormat:De,allowSingleDateInRange:be,allowDeselect:P,minDate:q,maxDate:F,locale:K},others:se}}function j1(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Ee(n).format("YYYY-MM-DD")}function Y1({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Ee(i).isAfter(n,"date")||r&&Ee(i).isBefore(r,"date"))}const U1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},Vo=B.factory((i,n)=>{const r=B.useInputProps("DateInput",U1,i),{inputProps:s,wrapperProps:l,value:d,defaultValue:v,onChange:c,clearable:x,clearButtonProps:C,popoverProps:O,getDayProps:R,locale:N,valueFormat:E,dateParser:I,minDate:$,maxDate:j,fixOnBlur:X,onFocus:te,onBlur:ne,onClick:ue,readOnly:V,name:ce,form:oe,rightSection:ee,unstyled:de,classNames:pe,styles:re,allowDeselect:Ae,date:Se,defaultDate:Y,onDateChange:L,...A}=r,g=ye.useRef(null),p=ye.useRef(null),[w,h]=ye.useState(!1),{calendarProps:m,others:D}=B1(A),z=rr(),ae=I||(M=>{const W=Ee(M,E,z.getLocale(N)).toDate();return Number.isNaN(W.getTime())?j1(M):Ee(W).format("YYYY-MM-DD")}),fe=Ae!==void 0?Ae:x,_e=M=>M?Ee(M).locale(z.getLocale(N)).format(E):"",[J,he,De]=Aa({type:"default",value:d,defaultValue:v,onChange:c}),[be,P]=Aa({type:"default",value:Se,defaultValue:v||Y,onChange:L});ye.useEffect(()=>{De&&d!==null&&P(d)},[De,d]);const[q,F]=ye.useState(_e(J));ye.useEffect(()=>{F(_e(J))},[z.getLocale(N)]);const K=M=>{const W=M.currentTarget.value;if(F(W),h(!0),W.trim()===""&&x)he(null);else{const Q=ae(W);Y1({date:Q,minDate:$,maxDate:j})&&(he(Q),P(Q))}},se=M=>{ne==null||ne(M),h(!1),X&&F(_e(J))},Oe=M=>{te==null||te(M),h(!0)},u=M=>{ue==null||ue(M),h(!0)},f=M=>({...R==null?void 0:R(M),selected:Ee(J).isSame(M,"day"),onClick:W=>{var xe,Me;(Me=R==null?void 0:(xe=R(M)).onClick)==null||Me.call(xe,W);const Q=x&&fe&&Ee(J).isSame(M,"day")?null:M;he(Q),!De&&F(_e(Q)),h(!1)}}),_=ee||(x&&J&&!V?T.jsx(B.CloseButton,{variant:"transparent",onMouseDown:M=>M.preventDefault(),tabIndex:-1,onClick:()=>{he(null),!De&&F(""),h(!1)},unstyled:de,size:s.size||"sm",...C}):null);return At.useDidUpdate(()=>{J!==void 0&&!w&&F(_e(J))},[J]),At.useClickOutside(()=>h(!1),void 0,[g.current,p.current]),T.jsxs(T.Fragment,{children:[T.jsx(B.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:g,children:T.jsxs(B.Popover,{opened:w,trapFocus:!1,position:"bottom-start",disabled:V,withRoles:!1,unstyled:de,...O,children:[T.jsx(B.Popover.Target,{children:T.jsx(B.Input,{"data-dates-input":!0,"data-read-only":V||void 0,autoComplete:"off",ref:n,value:q,onChange:K,onBlur:se,onFocus:Oe,onClick:u,readOnly:V,rightSection:_,...s,...D,__staticSelector:"DateInput"})}),T.jsx(B.Popover.Dropdown,{onMouseDown:M=>M.preventDefault(),"data-dates-dropdown":!0,ref:p,children:T.jsx(Go,{__staticSelector:"DateInput",...m,classNames:pe,styles:re,unstyled:de,__preventFocus:!0,minDate:$,maxDate:j,locale:N,getDayProps:f,size:s.size,date:be,onDateChange:P})})]})}),T.jsx(xc,{name:ce,form:oe,value:J,type:"default"})]})});Vo.classes={...B.Input.classes,...Go.classes},Vo.displayName="@mantine/dates/DateInput";function F1(i){const n=an.c(46),{fields:r,onClose:s,queryKey:l,apiPath:d,steps:v,onCreated:c}=i,[x,C]=ye.useState(0),[O,R]=ye.useState(!1),[N,E]=ye.useState(),{mutateAsync:I,isError:$,error:j,isPending:X}=vc(d,l),{mutateAsync:te,isPending:ne}=ba(d,l),ue=X||ne;let V;n[0]!==r?(V=new Set(r.filter(V1).map(G1)),n[0]=r,n[1]=V):V=n[1];let ce;n[2]!==V?(ce=[...V],n[2]=V,n[3]=ce):ce=n[3];const oe=ce;let ee;n[4]!==r?(ee=r.reduce(H1,{}),n[4]=r,n[5]=ee):ee=n[5];let de;n[6]!==r?(de=r.filter(q1).reduce(W1,{}),n[6]=r,n[7]=de):de=n[7];let pe;n[8]!==ee||n[9]!==de?(pe={mode:"uncontrolled",initialValues:ee,validate:de},n[8]=ee,n[9]=de,n[10]=pe):pe=n[10];const re=Mi.useForm(pe);let Ae;n[11]!==re?(Ae=function(m){return T.jsxs(ye.Fragment,{children:[(m.type===void 0||m.type=="text")&&T.jsx(B.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"&&T.jsx(B.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...re.getInputProps(m.id)},re.key(m.id)),m.type==="date"&&T.jsx(Vo,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(m.id)},re.key(m.id)),m.type==="boolean"&&T.jsx(B.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(),re.setValues,R)]},m.id)},n[11]=re,n[12]=Ae):Ae=n[12];const Se=Ae;let Y;n[13]!==(j==null?void 0:j.message)||n[14]!==(j==null?void 0:j.name)||n[15]!==$?(Y=$&&T.jsx(B.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[13]=j==null?void 0:j.message,n[14]=j==null?void 0:j.name,n[15]=$,n[16]=Y):Y=n[16];let L;n[17]!==x||n[18]!==I||n[19]!==re||n[20]!==$||n[21]!==s||n[22]!==c||n[23]!==N||n[24]!==oe.length||n[25]!==te?(L=re.onSubmit(async h=>{if(N)await te({...h,id:N});else{const m=await I(h);E(m.id),c==null||c(m.id)}oe.length&&x<oe.length-1?$||C(x+1):$||(re.setInitialValues(h),re.reset(),s())}),n[17]=x,n[18]=I,n[19]=re,n[20]=$,n[21]=s,n[22]=c,n[23]=N,n[24]=oe.length,n[25]=te,n[26]=L):L=n[26];let A;n[27]!==x||n[28]!==r||n[29]!==Se||n[30]!==v||n[31]!==oe?(A=oe.length?T.jsx(B.Stepper,{active:x,size:"sm",children:oe.map(h=>T.jsx(B.Stepper.Step,{...v&&v[h-1]?{label:v[h-1].label}:{},children:r.filter(m=>m.step===h).map(m=>Se(m))},h))}):r.map(h=>Se(h)),n[27]=x,n[28]=r,n[29]=Se,n[30]=v,n[31]=oe,n[32]=A):A=n[32];let g;n[33]!==x||n[34]!==O||n[35]!==ue||n[36]!==s||n[37]!==oe.length?(g=!O&&T.jsxs(B.Group,{mt:"md",justify:"end",children:[T.jsx(B.Button,{onClick:()=>oe.length?x===0?s():C(x-1):s(),variant:"outline",children:oe.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),T.jsx(B.Button,{type:"submit",loading:ue,children:oe.length?x===oe.length-1?"Speichern":"Weiter":"Speichern"})]}),n[33]=x,n[34]=O,n[35]=ue,n[36]=s,n[37]=oe.length,n[38]=g):g=n[38];let p;n[39]!==g||n[40]!==L||n[41]!==A?(p=T.jsxs("form",{onSubmit:L,children:[A,g]}),n[39]=g,n[40]=L,n[41]=A,n[42]=p):p=n[42];let w;return n[43]!==p||n[44]!==Y?(w=T.jsxs(T.Fragment,{children:[Y,p]}),n[43]=p,n[44]=Y,n[45]=w):w=n[45],w}function W1(i,n){return i[n.id]=z1,i}function z1(i){return i?null:"Pflichtfeld"}function q1(i){return i.required}function H1(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function G1(i){return i.step}function V1(i){return typeof i.step=="number"}var[Z1,Oa]=B.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Uc=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:d,resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:C}=i,[O,R]=ye.useState(""),[N,E]=ye.useState("");return T.jsx(Z1,{value:{sourceColumn:O,setSourceColumn:R,targetColumn:N,setTargetColumn:E,columnsToggle:l,setColumnsToggle:d,swapColumns:()=>{if(!r||!s||!O||!N)return;let I=r.indexOf(O),$=r.indexOf(N);if(I!==-1&&$!==-1){let j=r.splice(I,1)[0];r.splice($,0,j),s([...r])}},resetColumnsOrder:v,resetColumnsToggle:c,setColumnWidth:x,resetColumnsWidth:C},children:n})};function K1(){return T.jsx("tr",{className:"mantine-datatable-empty-row",children:T.jsx("td",{})})}function Q1(){return T.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.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"}),T.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"}),T.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"}),T.jsx("path",{d:"M3 3l18 18"})]})}function J1({icon:i,text:n,pt:r,pb:s,active:l,children:d}){return T.jsx(B.Center,{pt:r,pb:s,className:"mantine-datatable-empty-state","data-active":l||void 0,children:d||T.jsxs(T.Fragment,{children:[i||T.jsx("div",{className:"mantine-datatable-empty-state-icon",children:T.jsx(Q1,{})}),T.jsx(B.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var X1=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(V,ce){let oe=[];return V.forEach(ee=>{ce.find(de=>de.accessor===ee)&&oe.push(ee)}),ce.forEach(ee=>{oe.includes(ee.accessor)||oe.push(ee.accessor)}),oe}function l(V,ce){let oe=[];return V.forEach(ee=>{ce.find(de=>de.accessor===ee.accessor)&&oe.push(ee)}),ce.forEach(ee=>{oe.find(de=>de.accessor===ee.accessor)||oe.push({accessor:ee.accessor,defaultToggle:ee.defaultToggle||!0,toggleable:ee.toggleable,toggled:ee.defaultToggle===void 0?!0:ee.defaultToggle})}),oe}function d(V,ce){let oe=[];return V.forEach(ee=>{let de=Object.keys(ee)[0];ce.find(pe=>pe.accessor===de)&&oe.push(ee)}),ce.forEach(ee=>{let de=ee.accessor;if(!oe.find(pe=>Object.keys(pe)[0]===de)){let pe={};pe[de]="",oe.push(pe)}}),oe}function v(){let[V,ce]=At.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?C:void 0,getInitialValueInEffect:r});function oe(pe){i&&ce(pe)}if(!i)return[V,oe];let ee=s(V,n),de=JSON.stringify(V);return JSON.stringify(ee)!==de&&oe(ee),[ee,oe]}function c(){let[V,ce]=At.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?R:void 0,getInitialValueInEffect:r});function oe(pe){i&&ce(pe)}if(!i)return[V,oe];let ee=l(V,n),de=JSON.stringify(V);return JSON.stringify(ee)!==de&&oe(ee),[l(V,n),oe]}function x(){let[V,ce]=At.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?O:void 0,getInitialValueInEffect:r});function oe(pe){i&&ce(pe)}if(!i)return[V,oe];let ee=d(V,n),de=JSON.stringify(V);return JSON.stringify(ee)!==de&&oe(ee),[d(V,n),oe]}let C=n&&n.map(V=>V.accessor)||[],O=n&&n.map(V=>({[V.accessor]:V.width??"initial"}))||[],R=n&&n.map(V=>({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})),[N,E]=v(),[I,$]=c(),[j,X]=x(),te=()=>E(C),ne=()=>{$(R)},ue=()=>X(O);return{effectiveColumns:ye.useMemo(()=>N?N.map(V=>n.find(ce=>ce.accessor===V)).map(V=>{var ce;return{...V,hidden:(V==null?void 0:V.hidden)||!((ce=I.find(oe=>oe.accessor===(V==null?void 0:V.accessor)))!=null&&ce.toggled)}}).map(V=>{var ce;return{...V,width:(ce=j.find(oe=>oe[V==null?void 0:V.accessor]))==null?void 0:ce[V==null?void 0:V.accessor]}}):n,[n,N,I,j]),setColumnsOrder:E,columnsOrder:N,resetColumnsOrder:te,columnsToggle:I,setColumnsToggle:$,resetColumnsToggle:ne,columnsWidth:j,setColumnsWidth:X,setColumnWidth:(V,ce)=>{let oe=j.map(ee=>ee[V]?{[V]:ce}:ee);X(oe)},resetColumnsWidth:ue}};function ti(){var s;let[i]=At.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 e0=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function t0(i){let[n,r]=ye.useState(null),s=(i==null?void 0:i.join(":"))||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function n0(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 r0(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function i0(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=ye.useState(r?n:r0(i,n)),d=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return d.current=i.map(v=>window.matchMedia(v)),l(d.current.map(v=>v.matches)),n0(d.current,v=>{l(v)})},[i]),s}function o0(i){let n=B.useMantineTheme(),r=ye.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return i0(r,s)}function Zo(i){let n=B.useMantineTheme(),r=typeof i=="function"?i(n):i;return At.useMediaQuery(r||"",!0)}function Ta(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function s0(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Ma(i,n){return i.filter((r,s,l)=>s===l.findIndex(d=>n(r)===n(d)))}function Fc(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Bt(i,n){return typeof n=="string"?Fc(i,n):n(i)}function a0({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(O=>Bt(O,r)):C&&(s=n.filter((O,R)=>C({record:O,index:R})).map(O=>Bt(O,r)),x||(s=[s[0]]))}let l,d,v=ye.useState(s);if(i){let{expandable:c,trigger:x,allowMultiple:C,collapseProps:O,content:R}=i;i.expanded?{recordIds:l,onRecordIdsChange:d}=i.expanded:[l,d]=v;let N=E=>d==null?void 0:d(l.filter(I=>I!==Bt(E,r)));return{expandOnClick:x!=="always"&&x!=="never",isRowExpanded:E=>x==="always"?!0:l.includes(Bt(E,r)),isExpandable:({record:E,index:I})=>c?c({record:E,index:I}):!0,expandRow:E=>{let I=Bt(E,r);d==null||d(C?[...l,I]:[I])},collapseRow:N,collapseProps:O,content:({record:E,index:I})=>()=>R({record:E,index:I,collapse:()=>N(E)})}}}function u0(i,n){let[r,s]=ye.useState(i),[l,d]=ye.useState(i),v=At.useTimeout(()=>s(!0),0),c=At.useTimeout(()=>d(!1),n||200);return ye.useEffect(()=>{i?(c.clear(),d(!0),v.start()):(v.clear(),s(!1),c.start())},[v,c,i]),{expanded:r,visible:l}}var Ea="mantine-datatable-nowrap",Ra="mantine-datatable-ellipsis",ni="mantine-datatable-pointer-cursor",Wc="mantine-datatable-context-menu-cursor",l0="mantine-datatable-text-selection-disabled",Ko="mantine-datatable-text-align-left",Qo="mantine-datatable-text-align-center",Jo="mantine-datatable-text-align-right";function c0({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:d,textAlign:v,width:c}){return Zo(r)?T.jsx(B.TableTh,{className:mt({[Ea]:l||d,[Ra]:d,[Ko]:v==="left",[Qo]:v==="center",[Jo]:v==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},n],children:s}):null}function f0({shadowVisible:i}){return T.jsx(B.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}var h0=ye.forwardRef(function({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:d,scrollDiff:v},c){let x=v<0;return T.jsx(B.TableTfoot,{ref:c,className:mt("mantine-datatable-footer",i),style:[{position:x?"relative":"sticky",bottom:B.rem(x?v:0)},n],children:T.jsxs(B.TableTr,{children:[l&&T.jsx(f0,{shadowVisible:d}),r.map(({hidden:C,...O})=>{if(C)return null;let{accessor:R,visibleMediaQuery:N,textAlign:E,width:I,footer:$,footerClassName:j,footerStyle:X,noWrap:te,ellipsis:ne}={...s,...O};return T.jsx(c0,{className:j,style:X,visibleMediaQuery:N,textAlign:E,width:I,title:$,noWrap:te,ellipsis:ne},R)})]})})});function d0({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:d}}){let v=ye.useMemo(()=>n.map(({visibleMediaQuery:C})=>C),[n]),c=o0(v),x=ye.useMemo(()=>n.filter(({hidden:C},O)=>!C&&(c==null?void 0:c[O])).length,[n,c]);return x>0?T.jsx(B.TableTh,{colSpan:x,className:mt("mantine-datatable-column-group-header-cell",{[Ko]:s==="left",[Qo]:s==="center",[Jo]:s==="right"},l),style:d,children:r??Ta(i)}):null}function p0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.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 g0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.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 m0({children:i,isActive:n,filterPopoverProps:r}){let[s,{close:l,toggle:d}]=At.useDisclosure(!1),v=n?g0:p0,c=At.useClickOutside(l);return T.jsxs(B.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[T.jsx(B.PopoverTarget,{children:T.jsx(B.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:x=>{x.preventDefault(),d()},onKeyDown:x=>x.stopPropagation(),children:T.jsx(v,{})})}),T.jsx(B.PopoverDropdown,{ref:c,onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),children:typeof i=="function"?i({close:l}):i})]})}var v0=i=>{let{accessor:n,columnRef:r}=i,s=ye.useRef(null),[l,d]=ye.useState(0),{setColumnWidth:v}=Oa(),c=O=>{O.preventDefault(),O.stopPropagation(),document.addEventListener("mousemove",x),document.addEventListener("mouseup",C),document.body.style.cursor="col-resize"},x=O=>{if(!r.current)return;let R=O.clientX-r.current.getBoundingClientRect().right,N=`${r.current.getBoundingClientRect().width+R}px`;r.current.style.width=N,v(n,r.current.style.width),d(-R)},C=()=>{r.current&&(document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",C),document.body.style.cursor="initial",v(n,r.current.style.width),d(0))};return T.jsx("div",{ref:s,onClick:O=>O.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:B.rem(l)}})};function y0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.jsx("path",{d:"M12 5l0 14"}),T.jsx("path",{d:"M16 9l-4 -4"}),T.jsx("path",{d:"M8 9l4 -4"})]})}function _0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.jsx("path",{d:"M8 7l4 -4l4 4"}),T.jsx("path",{d:"M8 17l4 4l4 -4"}),T.jsx("path",{d:"M12 3l0 18"})]})}function w0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),T.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),T.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),T.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),T.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),T.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function b0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.jsx("path",{d:"M18 6l-12 12"}),T.jsx("path",{d:"M6 6l12 12"})]})}function x0({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:d,draggable:v,toggleable:c,resizable:x,sortIcons:C,textAlign:O,width:R,sortStatus:N,onSortStatusChange:E,filter:I,filterPopoverProps:$,filtering:j,sortKey:X}){let{setSourceColumn:te,setTargetColumn:ne,swapColumns:ue,setColumnsToggle:V}=Oa(),[ce,oe]=ye.useState(!1),ee=ye.useRef(null);if(!Zo(s))return null;let de=l??Ta(r),pe=typeof de=="string"?de:void 0,re=d&&E?p=>{p!=null&&p.defaultPrevented||E({sortKey:X,columnAccessor:r,direction:(N==null?void 0:N.columnAccessor)===r?N.direction==="asc"?"desc":"asc":(N==null?void 0:N.direction)??"asc"})}:void 0,Ae=p=>{p.stopPropagation(),te(r),oe(!1)},Se=p=>{p.preventDefault(),ne(r),oe(!0)},Y=()=>{ne(r),oe(!1),ue()},L=()=>{oe(!0)},A=()=>{oe(!1)},g=p=>{p.stopPropagation(),V(w=>w.map(h=>h.accessor===r?{...h,toggled:!1}:h))};return T.jsxs(B.TableTh,{className:mt({"mantine-datatable-header-cell-sortable":d,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":x},i),style:[{width:R,...x?{minWidth:"1px"}:{minWidth:R,maxWidth:R}},n],role:d?"button":void 0,tabIndex:d?0:void 0,onClick:re,onKeyDown:p=>p.key==="Enter"&&(re==null?void 0:re()),ref:ee,children:[T.jsxs(B.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[T.jsxs(B.Flex,{align:"center",w:"100%",className:mt({"mantine-datatable-header-cell-draggable":v,"mantine-datatable-header-cell-drag-over":ce}),draggable:v,onDragStart:v?Ae:void 0,onDragEnter:v?L:void 0,onDragOver:v?Se:void 0,onDrop:v?Y:void 0,onDragLeave:v?A:void 0,children:[v?T.jsx(B.Center,{role:"img","aria-label":"Drag column",children:T.jsx(B.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:p=>{p.stopPropagation()},children:T.jsx(w0,{})})}):null,T.jsx(B.Box,{className:mt("mantine-datatable-header-cell-sortable-text",{[Ko]:O==="left",[Qo]:O==="center",[Jo]:O==="right"},Ea,Ra),title:pe,children:de})]}),c?T.jsx(B.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:T.jsx(B.ActionIcon,{size:"xs",variant:"light",onClick:g,children:T.jsx(b0,{})})}):null,d||(N==null?void 0:N.columnAccessor)===r?T.jsx(T.Fragment,{children:(N==null?void 0:N.columnAccessor)===r?T.jsx(B.Center,{className:mt("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":N.direction==="desc"}),role:"img","aria-label":`Sorted ${N.direction==="desc"?"descending":"ascending"}`,children:(C==null?void 0:C.sorted)||T.jsx(y0,{})}):T.jsx(B.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(C==null?void 0:C.unsorted)||T.jsx(_0,{})})}):null,I?T.jsx(m0,{filterPopoverProps:$,isActive:!!j,children:I}):null]}),x?T.jsx(v0,{accessor:r,columnRef:ee}):null]})}var S0=ye.forwardRef(function({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:d,checkboxProps:v,onChange:c,rowSpan:x},C){let O=!v.disabled;return T.jsx(B.TableTh,{ref:C,className:mt("mantine-datatable-header-selector-cell",{[ni]:r==="cell"&&O},i),style:n,rowSpan:x,"data-shadow-visible":s||void 0,onClick:r==="cell"&&O?c:void 0,children:T.jsx(B.Checkbox,{classNames:O?{input:ni}:void 0,checked:l,indeterminate:d,onChange:c,...v,disabled:!(c||v.onChange)||v.disabled})})}),C0=ye.forwardRef(function({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:d,columns:v,defaultColumnProps:c,groups:x,selectionTrigger:C,selectionVisible:O,selectionChecked:R,selectionIndeterminate:N,onSelectionChange:E,selectionCheckboxProps:I,selectorCellShadowVisible:$,selectionColumnClassName:j,selectionColumnStyle:X},te){let ne=O?T.jsx(S0,{ref:i,className:j,style:X,trigger:C,shadowVisible:$,checked:R,indeterminate:N,checkboxProps:I,onChange:E,rowSpan:x?2:void 0}):null,{columnsToggle:ue,setColumnsToggle:V}=Oa(),[ce,oe]=ye.useState(!1),ee=v.some(re=>re.toggleable),de=ee?Object.fromEntries(v.map(({accessor:re,title:Ae})=>[re,Ae??Ta(String(re))])):void 0,pe=T.jsxs(B.TableThead,{className:mt("mantine-datatable-header",n),style:r,ref:te,onContextMenu:ee?re=>{re.preventDefault(),oe(Ae=>!Ae)}:void 0,children:[x&&T.jsxs(B.TableTr,{children:[ne,x.map(re=>T.jsx(d0,{group:re},re.id))]}),T.jsxs(B.TableTr,{children:[!x&&ne,v.map(({hidden:re,...Ae},Se)=>{if(re)return null;let{accessor:Y,visibleMediaQuery:L,textAlign:A,width:g,title:p,sortable:w,draggable:h,toggleable:m,resizable:D,titleClassName:z,titleStyle:Z,filter:ae,filterPopoverProps:fe,filtering:_e,sortKey:J}={...c,...Ae};return T.jsx(x0,{accessor:Y,className:z,style:Z,visibleMediaQuery:L,textAlign:A,width:g,title:p,sortable:w,draggable:h,toggleable:m,resizable:D&&Se<v.length-1,sortStatus:s,sortIcons:l,sortKey:J,onSortStatusChange:d,filter:ae,filterPopoverProps:fe,filtering:_e},Y)})]})]});return ee?T.jsxs(B.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ce,onChange:oe,children:[T.jsx(B.PopoverTarget,{children:pe}),T.jsx(B.PopoverDropdown,{children:T.jsx(B.Stack,{children:ue.filter(re=>re.toggleable).map(re=>T.jsx(B.Group,{children:T.jsx(B.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[re.accessor],checked:re.toggled,onChange:Ae=>{V(ue.map(Se=>Se.accessor===re.accessor?{...Se,toggled:Ae.currentTarget.checked}:Se))}})},re.accessor))})})]}):pe});function A0({pt:i,pb:n,fetching:r,customContent:s,backgroundBlur:l,size:d,type:v,color:c}){return T.jsx(B.Center,{pt:i,pb:n,className:mt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||T.jsx(B.Loader,{size:d,type:v,color:c}))})}function bt(i,n,r){return i?B.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function D0({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:d,highlightOnHoverColor:v}){return{"--mantine-datatable-color-light":bt(n,i,"light"),"--mantine-datatable-color-dark":bt(n,i,"dark"),"--mantine-datatable-background-color-light":bt(r,i,"light"),"--mantine-datatable-background-color-dark":bt(r,i,"dark"),"--mantine-datatable-border-color-light":bt(s,i,"light"),"--mantine-datatable-border-color-dark":bt(s,i,"dark"),"--mantine-datatable-row-border-color-light":bt(l,i,"light"),"--mantine-datatable-row-border-color-dark":bt(l,i,"dark"),"--mantine-datatable-striped-color-light":bt(d,i,"light"),"--mantine-datatable-striped-color-dark":bt(d,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":bt(v,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":bt(v,i,"dark")}}function zc({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":bt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":bt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":bt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":bt(r,i,"dark")}}function O0({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":bt(n,i,"light"),"--mantine-datatable-row-color-dark":bt(n,i,"dark"),"--mantine-datatable-row-background-color-light":bt(r,i,"light"),"--mantine-datatable-row-background-color-dark":bt(r,i,"dark")}}function T0(){return T.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[T.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),T.jsx("path",{d:"M8 9l4 -4l4 4"}),T.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var qc={xs:B.rem(22),sm:B.rem(26),md:B.rem(32),lg:B.rem(38),xl:B.rem(44)};function M0({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:d,onChange:v}){return T.jsxs(B.Group,{gap:"xs",children:[T.jsx(B.Text,{component:"div",size:i,children:n}),T.jsxs(B.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[T.jsx(B.MenuTarget,{children:T.jsx(B.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:T.jsx(T0,{}),style:[{fontWeight:"normal"},c=>({height:qc[i],paddingLeft:c.spacing[i],paddingRight:c.spacing[i]})],children:s})}),T.jsx(B.MenuDropdown,{children:r.map(c=>{let x=c===s;return T.jsx(B.MenuItem,{className:mt({"mantine-datatable-page-size-selector-active":x}),style:[{height:qc[i]},x&&(l||d)?C=>zc({theme:C,paginationActiveTextColor:l,paginationActiveBackgroundColor:d}):void 0],disabled:x,onClick:()=>v(c),children:T.jsx(B.Text,{component:"div",size:i,children:c})},c)})})]})]})}var E0=ye.forwardRef(function({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:d,paginationWithControls:v,paginationActiveTextColor:c,paginationActiveBackgroundColor:x,paginationSize:C,loadingText:O,noRecordsText:R,paginationText:N,totalRecords:E,recordsPerPage:I,onRecordsPerPageChange:$,recordsPerPageLabel:j,recordsPerPageOptions:X,recordsLength:te,horizontalSpacing:ne,paginationWrapBreakpoint:ue,getPaginationControlProps:V},ce){let oe;if(E){let de=(s-1)*I+1,pe=de+(te||0)-1;oe=N({from:de,to:pe,totalRecords:E})}else oe=r?O:R;let ee=Zo(({breakpoints:de})=>`(min-width: ${typeof ue=="number"?`${B.rem(ue)}rem`:de[ue]||ue})`);return T.jsxs(B.Box,{ref:ce,px:ne??"xs",py:"xs",className:mt("mantine-datatable-pagination",i),style:[{flexDirection:ee?"row":"column"},n],children:[T.jsx(B.Text,{component:"div",className:"mantine-datatable-pagination-text",size:C,children:oe}),X&&T.jsx(M0,{activeTextColor:c,activeBackgroundColor:x,size:C,label:j,values:X,value:I,onChange:$}),T.jsx(B.Pagination,{classNames:{root:mt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!te}),control:"mantine-datatable-pagination-pages-control"},style:c||x?de=>zc({theme:de,paginationActiveTextColor:c,paginationActiveBackgroundColor:x}):void 0,withEdges:d,withControls:v,value:s,onChange:l,size:C,total:Math.ceil(E/I),getControlProps:V})]})});function R0({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:d,onDoubleClick:v,onContextMenu:c,noWrap:x,ellipsis:C,textAlign:O,width:R,accessor:N,render:E,defaultRender:I,customCellAttributes:$}){return Zo(r)?T.jsx(B.TableTd,{className:mt({[Ea]:x||C,[Ra]:C,[ni]:d||v,[Wc]:c,[Ko]:O==="left",[Qo]:O==="center",[Jo]:O==="right"},i),style:[{width:R,minWidth:R,maxWidth:R},n],onClick:d,onDoubleClick:v,onContextMenu:c,...$==null?void 0:$(s,l),children:E?E(s,l):I?I(s,l,N):Fc(s,N)}):null}function L0({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:d}=u0(i,s==null?void 0:s.transitionDuration);return d?T.jsxs(T.Fragment,{children:[T.jsx(B.TableTr,{}),T.jsx(B.TableTr,{children:T.jsx(B.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:T.jsx(B.Collapse,{in:l,...s,children:T.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function k0({className:i,style:n,record:r,index:s,trigger:l,onChange:d,withRightShadow:v,checkboxProps:c,getCheckboxProps:x,...C}){let O={...c,...x(r,s)},R=!C.disabled&&!O.disabled,N=E=>{E.stopPropagation(),l==="cell"&&R&&(d==null||d(E))};return T.jsx(B.TableTd,{className:mt("mantine-datatable-row-selector-cell",{[ni]:l==="cell"&&R},i),style:n,"data-shadow-visible":v||void 0,onClick:N,children:T.jsx(B.Checkbox,{classNames:R?{input:ni}:void 0,onChange:d,...C,...O})})}function I0({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:d,selectionVisible:v,selectionChecked:c,onSelectionChange:x,isRecordSelectable:C,selectionCheckboxProps:O,getSelectionCheckboxProps:R,onClick:N,onDoubleClick:E,onContextMenu:I,onCellClick:$,onCellDoubleClick:j,onCellContextMenu:X,expansion:te,customAttributes:ne,color:ue,backgroundColor:V,className:ce,style:oe,selectorCellShadowVisible:ee,selectionColumnClassName:de,selectionColumnStyle:pe,rowFactory:re}){let Ae=T.jsxs(T.Fragment,{children:[v&&T.jsx(k0,{className:de,style:pe,record:i,index:n,trigger:d,withRightShadow:ee,checked:c,disabled:!x||(C?!C(i,n):!1),onChange:x,checkboxProps:O,getCheckboxProps:R}),r.map(({hidden:L,hiddenContent:A,...g},p)=>{if(L||A)return null;let{accessor:w,visibleMediaQuery:h,textAlign:m,noWrap:D,ellipsis:z,width:Z,render:ae,cellsClassName:fe,cellsStyle:_e,customCellAttributes:J}={...s,...g};return T.jsx(R0,{className:typeof fe=="function"?fe(i,n):fe,style:_e==null?void 0:_e(i,n),visibleMediaQuery:h,record:i,index:n,onClick:$?he=>$({event:he,record:i,index:n,column:g,columnIndex:p}):void 0,onDoubleClick:j?he=>j({event:he,record:i,index:n,column:g,columnIndex:p}):void 0,onContextMenu:X?he=>X({event:he,record:i,index:n,column:g,columnIndex:p}):void 0,accessor:w,textAlign:m,noWrap:D,ellipsis:z,width:Z,render:ae,defaultRender:l,customCellAttributes:J},w)})]}),Se=te&&T.jsx(L0,{colSpan:r.filter(({hidden:L})=>!L).length+(v?1:0),open:te.isRowExpanded(i),content:te.content({record:i,index:n}),collapseProps:te.collapseProps}),Y=P0({record:i,index:n,selectionChecked:c,onClick:N,onDoubleClick:E,onContextMenu:I,expansion:te,customAttributes:ne,color:ue,backgroundColor:V,className:ce,style:oe});return re?re({record:i,index:n,rowProps:Y,children:Ae,expandedElement:Se}):T.jsxs(T.Fragment,{children:[T.jsx(B.TableTr,{...Y,children:Ae}),Se]})}function P0({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:d,expansion:v,customAttributes:c,color:x,backgroundColor:C,className:O,style:R}){return{className:mt("mantine-datatable-row",{[ni]:s||l||(v==null?void 0:v.isExpandable({record:i,index:n}))&&(v==null?void 0:v.expandOnClick)},{[Wc]:d},typeof O=="function"?O(i,n):O),"data-selected":r||void 0,onClick:N=>{if(v){let{isExpandable:E,isRowExpanded:I,expandOnClick:$,expandRow:j,collapseRow:X}=v;E({record:i,index:n})&&$&&(I(i)?X(i):j(i))}s==null||s({event:N,record:i,index:n})},onDoubleClick:l?N=>l({event:N,record:i,index:n}):void 0,onContextMenu:d?N=>d({event:N,record:i,index:n}):void 0,style:[x||C?N=>{let E=x==null?void 0:x(i,n),I=C==null?void 0:C(i,n);return O0({theme:N,color:E,backgroundColor:I})}:void 0,R==null?void 0:R(i,n)],...(c==null?void 0:c(i,n))??{}}}function N0({topShadowVisible:i,leftShadowVisible:n,leftShadowBehind:r,rightShadowVisible:s,rightShadowBehind:l,bottomShadowVisible:d,headerHeight:v,footerHeight:c,onScrollPositionChange:x,children:C,viewportRef:O,scrollAreaProps:R}){return T.jsxs(B.ScrollArea,{...R,viewportRef:O,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,T.jsx(B.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:v?B.rem(v):0}}),T.jsx("div",{className:mt("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})}),T.jsx("div",{className:mt("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})}),T.jsx(B.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":d}),style:{bottom:c?B.rem(c+1):0}})]})}function $0({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:d,shadow:v,verticalAlign:c="center",fetching:x,columns:C,storeColumnsKey:O,groups:R,pinFirstColumn:N,pinLastColumn:E,defaultColumnProps:I,defaultColumnRender:$,idAccessor:j="id",records:X,selectionTrigger:te="checkbox",selectedRecords:ne,onSelectedRecordsChange:ue,selectionColumnClassName:V,selectionColumnStyle:ce,isRecordSelectable:oe,selectionCheckboxProps:ee,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:pe=(Ht,jn)=>({"aria-label":`Select record ${jn+1}`}),sortStatus:re,sortIcons:Ae,onSortStatusChange:Se,horizontalSpacing:Y,page:L,onPageChange:A,totalRecords:g,recordsPerPage:p,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m="Records per page",paginationWithEdges:D,paginationWithControls:z,paginationActiveTextColor:Z,paginationActiveBackgroundColor:ae,paginationSize:fe="sm",paginationText:_e=({from:Ht,to:jn,totalRecords:Yn})=>`${Ht} - ${jn} / ${Yn}`,paginationWrapBreakpoint:J="sm",getPaginationControlProps:he=Ht=>Ht==="previous"?{"aria-label":"Previous page"}:Ht==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:De,customLoader:be,loaderSize:P,loaderType:q,loaderColor:F,loadingText:K="...",emptyState:se,noRecordsText:Oe="No records",noRecordsIcon:u,highlightOnHover:f,striped:_,noHeader:M,onRowClick:W,onRowDoubleClick:Q,onRowContextMenu:xe,onCellClick:Me,onCellDoubleClick:Ie,onCellContextMenu:Ce,onScroll:ke,onScrollToTop:Ne,onScrollToBottom:Re,onScrollToLeft:Ge,onScrollToRight:Je,c:Ve,backgroundColor:xt,borderColor:vt,rowBorderColor:ut,stripedColor:qt,highlightOnHoverColor:Dt,rowColor:$n,rowBackgroundColor:fn,rowExpansion:Qt,rowClassName:xn,rowStyle:Bn,customRowAttributes:En,scrollViewportRef:it,scrollAreaProps:It,tableRef:Sn,bodyRef:dr,m:dt,my:Mt,mx:pr,mt:gr,mb:mr,ml:ci,mr:fi,className:hi,classNames:Et,style:La,styles:Rt,rowFactory:ka,tableWrapper:Gi,...Vi}){let{ref:Ht,width:jn,height:Yn}=ti(),Br=ye.useMemo(()=>(R==null?void 0:R.flatMap(Ze=>Ze.columns))??C,[C,R]),Xo=X1({key:O,columns:Br}),{ref:Ia,height:vr}=ti(),{ref:Pa,width:yr,height:jr}=ti(),{ref:Na,height:$a}=ti(),{ref:es,height:Zi}=ti(),{ref:ts,width:Ba}=ti(),ja=At.useMergedRef(Pa,Sn),Ya=At.useMergedRef(Ht,it),[Ki,Qi]=ye.useState(!0),[di,Ji]=ye.useState(!0),[Un,ns]=ye.useState(!0),[Yr,Ur]=ye.useState(!0),rs=a0({rowExpansion:Qt,records:X,idAccessor:j}),Xi=ye.useCallback(()=>{var wr,br;let Ze=((wr=Ht.current)==null?void 0:wr.scrollTop)??0,Jt=((br=Ht.current)==null?void 0:br.scrollLeft)??0;if(x||jr<=Yn)Qi(!0),Ji(!0);else{let hn=Ze===0,Xt=jr-Ze-Yn<1;Qi(hn),Ji(Xt),hn&&hn!==Ki&&(Ne==null||Ne()),Xt&&Xt!==di&&(Re==null||Re())}if(x||yr===jn)ns(!0),Ur(!0);else{let hn=Jt===0,Xt=yr-Jt-jn<1;ns(hn),Ur(Xt),hn&&hn!==Un&&(Ge==null||Ge()),Xt&&Xt!==Yr&&(Je==null||Je())}},[x,Re,Ge,Je,Ne,Yn,Ht,jn,di,Un,Yr,Ki,jr,yr]);e0(Xi,[Xi]);let eo=At.useDebouncedCallback(Xi,50),is=ye.useCallback(Ze=>{ke==null||ke(Ze),eo()},[eo,ke]),to=ye.useCallback(Ze=>{var Jt;(Jt=Ht.current)==null||Jt.scrollTo({top:0,left:0}),A(Ze)},[A,Ht]),pi=X==null?void 0:X.length,no=X==null?void 0:X.map(Ze=>Bt(Ze,j)),Rn=!!ne,Cn=ne==null?void 0:ne.map(Ze=>Bt(Ze,j)),Fn=no!==void 0&&Cn!==void 0&&Cn.length>0,_r=oe?X==null?void 0:X.filter(oe):X,Fr=_r==null?void 0:_r.map(Ze=>Bt(Ze,j)),gi=Fn&&Fr.every(Ze=>Cn.includes(Ze)),os=Fn&&Fr.some(Ze=>Cn.includes(Ze)),ss=ye.useCallback(()=>{ne&&ue&&ue(gi?ne.filter(Ze=>!Fr.includes(Bt(Ze,j))):Ma([...ne,..._r],Ze=>Bt(Ze,j)))},[gi,j,ue,Fr,_r,ne]),{lastSelectionChangeIndex:Wr,setLastSelectionChangeIndex:as}=t0(no),ro=Rn&&!Un&&!N,Ua={m:dt,my:Mt,mx:pr,mt:gr,mb:mr,ml:ci,mr:fi},Fa=ye.useCallback(({children:Ze})=>Gi?Gi({children:Ze}):Ze,[Gi]);return T.jsx(Uc,{...Xo,children:T.jsxs(B.Box,{...Ua,className:mt("mantine-datatable",{"mantine-datatable-with-border":i},hi,Et==null?void 0:Et.root),style:[Ze=>({...D0({theme:Ze,c:Ve,backgroundColor:xt,borderColor:vt,rowBorderColor:ut,stripedColor:qt,highlightOnHoverColor:Dt}),borderRadius:Ze.radius[n]||n,boxShadow:Ze.shadows[v]||v,height:s,minHeight:l,maxHeight:d}),La,Rt==null?void 0:Rt.root,{position:"relative"}],children:[T.jsx(N0,{viewportRef:Ya,topShadowVisible:!Ki,leftShadowVisible:!Un,leftShadowBehind:Rn||!!N,rightShadowVisible:!Yr,rightShadowBehind:E,bottomShadowVisible:!di,headerHeight:vr,footerHeight:$a,onScrollPositionChange:is,scrollAreaProps:It,children:T.jsx(Fa,{children:T.jsxs(B.Table,{ref:ja,horizontalSpacing:Y,className:mt("mantine-datatable-table",{[l0]:r,"mantine-datatable-vertical-align-top":c==="top","mantine-datatable-vertical-align-bottom":c==="bottom","mantine-datatable-last-row-border-bottom-visible":Vi.withRowBorders&&jr<Yn,"mantine-datatable-pin-last-column":E,"mantine-datatable-pin-last-column-scrolled":!Yr&&E,"mantine-datatable-selection-column-visible":Rn,"mantine-datatable-pin-first-column":N,"mantine-datatable-pin-first-column-scrolled":!Un&&N},Et==null?void 0:Et.table),style:{...Rt==null?void 0:Rt.table,"--mantine-datatable-selection-column-width":`${Ba}px`},"data-striped":pi&&_||void 0,"data-highlight-on-hover":f||void 0,...Vi,children:[M?null:T.jsx(Uc,{...Xo,children:T.jsx(C0,{ref:Ia,selectionColumnHeaderRef:ts,className:Et==null?void 0:Et.header,style:Rt==null?void 0:Rt.header,columns:Br,defaultColumnProps:I,groups:R,sortStatus:re,sortIcons:Ae,onSortStatusChange:Se,selectionTrigger:te,selectionVisible:Rn,selectionChecked:gi,selectionIndeterminate:os&&!gi,onSelectionChange:ss,selectionCheckboxProps:{...ee,...de},selectorCellShadowVisible:ro,selectionColumnClassName:V,selectionColumnStyle:ce})}),T.jsx("tbody",{ref:dr,children:pi?X.map((Ze,Jt)=>{let wr=Bt(Ze,j),br=(Cn==null?void 0:Cn.includes(wr))||!1,hn;return ue&&ne&&(hn=Xt=>{if(Xt.nativeEvent.shiftKey&&Wr!==null){let xr=X.filter(Jt>Wr?(Wn,zn)=>zn>=Wr&&zn<=Jt&&(oe?oe(Wn,zn):!0):(Wn,zn)=>zn>=Jt&&zn<=Wr&&(oe?oe(Wn,zn):!0));ue(br?s0(ne,xr,Wn=>Bt(Wn,j)):Ma([...ne,...xr],Wn=>Bt(Wn,j)))}else ue(br?ne.filter(xr=>Bt(xr,j)!==wr):Ma([...ne,Ze],xr=>Bt(xr,j)));as(Jt)}),T.jsx(I0,{record:Ze,index:Jt,columns:Br,defaultColumnProps:I,defaultColumnRender:$,selectionTrigger:te,selectionVisible:Rn,selectionChecked:br,onSelectionChange:hn,isRecordSelectable:oe,selectionCheckboxProps:ee,getSelectionCheckboxProps:pe,onClick:W,onDoubleClick:Q,onCellClick:Me,onCellDoubleClick:Ie,onContextMenu:xe,onCellContextMenu:Ce,expansion:rs,color:$n,backgroundColor:fn,className:xn,style:Bn,customAttributes:En,selectorCellShadowVisible:ro,selectionColumnClassName:V,selectionColumnStyle:ce,idAccessor:j,rowFactory:ka},wr)}):T.jsx(K1,{})}),Br.some(({footer:Ze})=>Ze)&&T.jsx(h0,{ref:Na,className:Et==null?void 0:Et.footer,style:Rt==null?void 0:Rt.footer,columns:Br,defaultColumnProps:I,selectionVisible:Rn,selectorCellShadowVisible:ro,scrollDiff:jr-Yn})]})})}),L&&T.jsx(E0,{ref:es,className:Et==null?void 0:Et.pagination,style:Rt==null?void 0:Rt.pagination,horizontalSpacing:Y,fetching:x,page:L,onPageChange:to,totalRecords:g,recordsPerPage:p,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:m,paginationWithEdges:D,paginationWithControls:z,paginationActiveTextColor:Z,paginationActiveBackgroundColor:ae,paginationSize:fe,paginationText:_e,paginationWrapBreakpoint:J,getPaginationControlProps:he,noRecordsText:Oe,loadingText:K,recordsLength:pi}),T.jsx(A0,{pt:vr,pb:Zi,fetching:x,backgroundBlur:De,customContent:be,size:P,type:q,color:F}),T.jsx(J1,{pt:vr,pb:Zi,icon:u,text:Oe,active:!x&&!pi,children:se})]})})}var B0=ye.forwardRef(function({children:i,isDragging:n,...r},s){let l=ye.useRef(null),d=At.useMergedRef(l,s);return ye.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]),T.jsx(B.TableTr,{"data-is-dragging":n,ref:d,...r,children:i})});B0.displayName="DataTableDraggableRow";var zi={exports:{}};/**
118
118
  * @license
119
119
  * Lodash <https://lodash.com/>
120
120
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
121
121
  * Released under MIT license <https://lodash.com/license>
122
122
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
123
123
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
124
- */var Q0=Yi.exports,Vc;function J0(){return Vc||(Vc=1,function(i,t){(function(){var r,s="4.17.21",l=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",c="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",C=500,O="__lodash_placeholder__",L=1,k=2,E=4,R=1,M=2,$=1,Q=2,X=4,J=8,se=16,q=32,ue=64,ne=128,ee=256,fe=512,de=30,ie="...",Ae=800,Ce=16,U=1,I=2,A=3,v=1/0,p=9007199254740991,_=17976931348623157e292,d=NaN,m=4294967295,T=m-1,H=m>>>1,Z=[["ary",ne],["bind",$],["bindKey",Q],["curry",J],["curryRight",se],["flip",fe],["partial",q],["partialRight",ue],["rearg",ee]],le="[object Arguments]",pe="[object Array]",we="[object AsyncFunction]",re="[object Boolean]",ce="[object Date]",Oe="[object DOMException]",be="[object Error]",B="[object Function]",Y="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ae="[object Null]",Te="[object Object]",u="[object Promise]",h="[object Proxy]",w="[object RegExp]",N="[object Set]",z="[object String]",te="[object Symbol]",xe="[object Undefined]",Ee="[object WeakMap]",Re="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",$e="[object Float32Array]",ke="[object Float64Array]",Ke="[object Int8Array]",He="[object Int16Array]",tt="[object Int32Array]",dt="[object Uint8Array]",St="[object Uint8ClampedArray]",lt="[object Uint16Array]",Ct="[object Uint32Array]",Sn=/\b__p \+= '';/g,Bn=/\b(__p \+=) '' \+/g,xt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Cn=/[&<>"']/g,jn=RegExp(Qt.source),Rn=RegExp(Cn.source),fn=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,nt=/<%=([\s\S]+?)%>/g,qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pt=/^\w*$/,Mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/[\\^$.*+?()[\]{}|]/g,pr=RegExp(dr.source),gr=/^\s+/,ci=/\s/,fi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hi=/\{\n\/\* \[wrapped with (.+)\] \*/,Rt=/,? & /,Pa=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/[()=,{}\[\]\/\s]/,$a=/\\(\\)?/g,Gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vi=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,Un=/^0b[01]+$/i,zn=/^\[object .+?Constructor\]$/,Br=/^0o[0-7]+$/i,ns=/^(?:0|[1-9]\d*)$/,Na=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,Ba=/['\n\r\u2028\u2029\\]/g,mr="\\ud800-\\udfff",jr="\\u0300-\\u036f",ja="\\ufe20-\\ufe2f",Ua="\\u20d0-\\u20ff",rs=jr+ja+Ua,Zi="\\u2700-\\u27bf",is="a-z\\xdf-\\xf6\\xf8-\\xff",za="\\xac\\xb1\\xd7\\xf7",Fa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wa="\\u2000-\\u206f",Ki=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qi="A-Z\\xc0-\\xd6\\xd8-\\xde",di="\\ufe0e\\ufe0f",Ji=za+Fa+Wa+Ki,Fn="['’]",os="["+mr+"]",Ur="["+Ji+"]",zr="["+rs+"]",ss="\\d+",Xi="["+Zi+"]",eo="["+is+"]",as="[^"+mr+Ji+ss+Zi+is+Qi+"]",to="\\ud83c[\\udffb-\\udfff]",pi="(?:"+zr+"|"+to+")",no="[^"+mr+"]",Ln="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Wn="["+Qi+"]",yr="\\u200d",Fr="(?:"+eo+"|"+as+")",gi="(?:"+Wn+"|"+as+")",us="(?:"+Fn+"(?:d|ll|m|re|s|t|ve))?",ls="(?:"+Fn+"(?:D|LL|M|RE|S|T|VE))?",Wr=pi+"?",cs="["+di+"]?",ro="(?:"+yr+"(?:"+[no,Ln,An].join("|")+")"+cs+Wr+")*",Ya="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ve=cs+Wr+ro,Jt="(?:"+[Xi,Ln,An].join("|")+")"+Ve,wr="(?:"+[no+zr+"?",zr,Ln,An,os].join("|")+")",_r=RegExp(Fn,"g"),dn=RegExp(zr,"g"),Xt=RegExp(to+"(?="+to+")|"+wr+Ve,"g"),br=RegExp([Wn+"?"+eo+"+"+us+"(?="+[Ur,Wn,"$"].join("|")+")",gi+"+"+ls+"(?="+[Ur,Wn+Fr,"$"].join("|")+")",Wn+"?"+Fr+"+"+us,Wn+"+"+ls,qa,Ya,ss,Jt].join("|"),"g"),Yn=RegExp("["+yr+mr+rs+di+"]"),qn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yv=["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"],wv=-1,ft={};ft[$e]=ft[ke]=ft[Ke]=ft[He]=ft[tt]=ft[dt]=ft[St]=ft[lt]=ft[Ct]=!0,ft[le]=ft[pe]=ft[Se]=ft[re]=ft[Le]=ft[ce]=ft[be]=ft[B]=ft[W]=ft[K]=ft[Te]=ft[w]=ft[N]=ft[z]=ft[Ee]=!1;var ct={};ct[le]=ct[pe]=ct[Se]=ct[Le]=ct[re]=ct[ce]=ct[$e]=ct[ke]=ct[Ke]=ct[He]=ct[tt]=ct[W]=ct[K]=ct[Te]=ct[w]=ct[N]=ct[z]=ct[te]=ct[dt]=ct[St]=ct[lt]=ct[Ct]=!0,ct[be]=ct[B]=ct[Ee]=!1;var _v={À:"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"},bv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xv={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cv=parseFloat,Av=parseInt,nf=typeof bo=="object"&&bo&&bo.Object===Object&&bo,Ov=typeof self=="object"&&self&&self.Object===Object&&self,kt=nf||Ov||Function("return this")(),Ha=t&&!t.nodeType&&t,Yr=Ha&&!0&&i&&!i.nodeType&&i,rf=Yr&&Yr.exports===Ha,Ga=rf&&nf.process,pn=function(){try{var G=Yr&&Yr.require&&Yr.require("util").types;return G||Ga&&Ga.binding&&Ga.binding("util")}catch{}}(),of=pn&&pn.isArrayBuffer,sf=pn&&pn.isDate,af=pn&&pn.isMap,uf=pn&&pn.isRegExp,lf=pn&&pn.isSet,cf=pn&&pn.isTypedArray;function en(G,he,oe){switch(oe.length){case 0:return G.call(he);case 1:return G.call(he,oe[0]);case 2:return G.call(he,oe[0],oe[1]);case 3:return G.call(he,oe[0],oe[1],oe[2])}return G.apply(he,oe)}function Tv(G,he,oe,Me){for(var Fe=-1,rt=G==null?0:G.length;++Fe<rt;){var At=G[Fe];he(Me,At,oe(At),G)}return Me}function gn(G,he){for(var oe=-1,Me=G==null?0:G.length;++oe<Me&&he(G[oe],oe,G)!==!1;);return G}function Dv(G,he){for(var oe=G==null?0:G.length;oe--&&he(G[oe],oe,G)!==!1;);return G}function ff(G,he){for(var oe=-1,Me=G==null?0:G.length;++oe<Me;)if(!he(G[oe],oe,G))return!1;return!0}function xr(G,he){for(var oe=-1,Me=G==null?0:G.length,Fe=0,rt=[];++oe<Me;){var At=G[oe];he(At,oe,G)&&(rt[Fe++]=At)}return rt}function fs(G,he){var oe=G==null?0:G.length;return!!oe&&vi(G,he,0)>-1}function Va(G,he,oe){for(var Me=-1,Fe=G==null?0:G.length;++Me<Fe;)if(oe(he,G[Me]))return!0;return!1}function gt(G,he){for(var oe=-1,Me=G==null?0:G.length,Fe=Array(Me);++oe<Me;)Fe[oe]=he(G[oe],oe,G);return Fe}function Sr(G,he){for(var oe=-1,Me=he.length,Fe=G.length;++oe<Me;)G[Fe+oe]=he[oe];return G}function Za(G,he,oe,Me){var Fe=-1,rt=G==null?0:G.length;for(Me&&rt&&(oe=G[++Fe]);++Fe<rt;)oe=he(oe,G[Fe],Fe,G);return oe}function Ev(G,he,oe,Me){var Fe=G==null?0:G.length;for(Me&&Fe&&(oe=G[--Fe]);Fe--;)oe=he(oe,G[Fe],Fe,G);return oe}function Ka(G,he){for(var oe=-1,Me=G==null?0:G.length;++oe<Me;)if(he(G[oe],oe,G))return!0;return!1}var Mv=Qa("length");function Rv(G){return G.split("")}function Lv(G){return G.match(Pa)||[]}function hf(G,he,oe){var Me;return oe(G,function(Fe,rt,At){if(he(Fe,rt,At))return Me=rt,!1}),Me}function hs(G,he,oe,Me){for(var Fe=G.length,rt=oe+(Me?1:-1);Me?rt--:++rt<Fe;)if(he(G[rt],rt,G))return rt;return-1}function vi(G,he,oe){return he===he?Yv(G,he,oe):hs(G,df,oe)}function kv(G,he,oe,Me){for(var Fe=oe-1,rt=G.length;++Fe<rt;)if(Me(G[Fe],he))return Fe;return-1}function df(G){return G!==G}function pf(G,he){var oe=G==null?0:G.length;return oe?Xa(G,he)/oe:d}function Qa(G){return function(he){return he==null?r:he[G]}}function Ja(G){return function(he){return G==null?r:G[he]}}function gf(G,he,oe,Me,Fe){return Fe(G,function(rt,At,ut){oe=Me?(Me=!1,rt):he(oe,rt,At,ut)}),oe}function Iv(G,he){var oe=G.length;for(G.sort(he);oe--;)G[oe]=G[oe].value;return G}function Xa(G,he){for(var oe,Me=-1,Fe=G.length;++Me<Fe;){var rt=he(G[Me]);rt!==r&&(oe=oe===r?rt:oe+rt)}return oe}function eu(G,he){for(var oe=-1,Me=Array(G);++oe<G;)Me[oe]=he(oe);return Me}function Pv(G,he){return gt(he,function(oe){return[oe,G[oe]]})}function vf(G){return G&&G.slice(0,_f(G)+1).replace(gr,"")}function tn(G){return function(he){return G(he)}}function tu(G,he){return gt(he,function(oe){return G[oe]})}function io(G,he){return G.has(he)}function mf(G,he){for(var oe=-1,Me=G.length;++oe<Me&&vi(he,G[oe],0)>-1;);return oe}function yf(G,he){for(var oe=G.length;oe--&&vi(he,G[oe],0)>-1;);return oe}function $v(G,he){for(var oe=G.length,Me=0;oe--;)G[oe]===he&&++Me;return Me}var Nv=Ja(_v),Bv=Ja(bv);function jv(G){return"\\"+Sv[G]}function Uv(G,he){return G==null?r:G[he]}function mi(G){return Yn.test(G)}function zv(G){return qn.test(G)}function Fv(G){for(var he,oe=[];!(he=G.next()).done;)oe.push(he.value);return oe}function nu(G){var he=-1,oe=Array(G.size);return G.forEach(function(Me,Fe){oe[++he]=[Fe,Me]}),oe}function wf(G,he){return function(oe){return G(he(oe))}}function Cr(G,he){for(var oe=-1,Me=G.length,Fe=0,rt=[];++oe<Me;){var At=G[oe];(At===he||At===O)&&(G[oe]=O,rt[Fe++]=oe)}return rt}function ds(G){var he=-1,oe=Array(G.size);return G.forEach(function(Me){oe[++he]=Me}),oe}function Wv(G){var he=-1,oe=Array(G.size);return G.forEach(function(Me){oe[++he]=[Me,Me]}),oe}function Yv(G,he,oe){for(var Me=oe-1,Fe=G.length;++Me<Fe;)if(G[Me]===he)return Me;return-1}function qv(G,he,oe){for(var Me=oe+1;Me--;)if(G[Me]===he)return Me;return Me}function yi(G){return mi(G)?Gv(G):Mv(G)}function On(G){return mi(G)?Vv(G):Rv(G)}function _f(G){for(var he=G.length;he--&&ci.test(G.charAt(he)););return he}var Hv=Ja(xv);function Gv(G){for(var he=Xt.lastIndex=0;Xt.test(G);)++he;return he}function Vv(G){return G.match(Xt)||[]}function Zv(G){return G.match(br)||[]}var Kv=function G(he){he=he==null?kt:wi.defaults(kt.Object(),he,wi.pick(kt,yv));var oe=he.Array,Me=he.Date,Fe=he.Error,rt=he.Function,At=he.Math,ut=he.Object,ru=he.RegExp,Qv=he.String,vn=he.TypeError,ps=oe.prototype,Jv=rt.prototype,_i=ut.prototype,gs=he["__core-js_shared__"],vs=Jv.toString,st=_i.hasOwnProperty,Xv=0,bf=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ms=_i.toString,em=vs.call(ut),tm=kt._,nm=ru("^"+vs.call(st).replace(dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ys=rf?he.Buffer:r,Ar=he.Symbol,ws=he.Uint8Array,xf=ys?ys.allocUnsafe:r,_s=wf(ut.getPrototypeOf,ut),Sf=ut.create,Cf=_i.propertyIsEnumerable,bs=ps.splice,Af=Ar?Ar.isConcatSpreadable:r,oo=Ar?Ar.iterator:r,qr=Ar?Ar.toStringTag:r,xs=function(){try{var e=Kr(ut,"defineProperty");return e({},"",{}),e}catch{}}(),rm=he.clearTimeout!==kt.clearTimeout&&he.clearTimeout,im=Me&&Me.now!==kt.Date.now&&Me.now,om=he.setTimeout!==kt.setTimeout&&he.setTimeout,Ss=At.ceil,Cs=At.floor,iu=ut.getOwnPropertySymbols,sm=ys?ys.isBuffer:r,Of=he.isFinite,am=ps.join,um=wf(ut.keys,ut),Ot=At.max,Pt=At.min,lm=Me.now,cm=he.parseInt,Tf=At.random,fm=ps.reverse,ou=Kr(he,"DataView"),so=Kr(he,"Map"),su=Kr(he,"Promise"),bi=Kr(he,"Set"),ao=Kr(he,"WeakMap"),uo=Kr(ut,"create"),As=ao&&new ao,xi={},hm=Qr(ou),dm=Qr(so),pm=Qr(su),gm=Qr(bi),vm=Qr(ao),Os=Ar?Ar.prototype:r,lo=Os?Os.valueOf:r,Df=Os?Os.toString:r;function x(e){if(yt(e)&&!We(e)&&!(e instanceof Je)){if(e instanceof mn)return e;if(st.call(e,"__wrapped__"))return Eh(e)}return new mn(e)}var Si=function(){function e(){}return function(n){if(!vt(n))return{};if(Sf)return Sf(n);e.prototype=n;var o=new e;return e.prototype=r,o}}();function Ts(){}function mn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=r}x.templateSettings={escape:fn,evaluate:hn,interpolate:nt,variable:"",imports:{_:x}},x.prototype=Ts.prototype,x.prototype.constructor=x,mn.prototype=Si(Ts.prototype),mn.prototype.constructor=mn;function Je(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function mm(){var e=new Je(this.__wrapped__);return e.__actions__=Gt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Gt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Gt(this.__views__),e}function ym(){if(this.__filtered__){var e=new Je(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function wm(){var e=this.__wrapped__.value(),n=this.__dir__,o=We(e),a=n<0,y=o?e.length:0,S=Ry(0,y,this.__views__),P=S.start,F=S.end,V=F-P,ge=a?F:P-1,ve=this.__iteratees__,_e=ve.length,De=0,Pe=Pt(V,this.__takeCount__);if(!o||!a&&y==V&&Pe==V)return Jf(e,this.__actions__);var Be=[];e:for(;V--&&De<Pe;){ge+=n;for(var qe=-1,je=e[ge];++qe<_e;){var Qe=ve[qe],et=Qe.iteratee,on=Qe.type,Ft=et(je);if(on==I)je=Ft;else if(!Ft){if(on==U)continue e;break e}}Be[De++]=je}return Be}Je.prototype=Si(Ts.prototype),Je.prototype.constructor=Je;function Hr(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var a=e[n];this.set(a[0],a[1])}}function _m(){this.__data__=uo?uo(null):{},this.size=0}function bm(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function xm(e){var n=this.__data__;if(uo){var o=n[e];return o===b?r:o}return st.call(n,e)?n[e]:r}function Sm(e){var n=this.__data__;return uo?n[e]!==r:st.call(n,e)}function Cm(e,n){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=uo&&n===r?b:n,this}Hr.prototype.clear=_m,Hr.prototype.delete=bm,Hr.prototype.get=xm,Hr.prototype.has=Sm,Hr.prototype.set=Cm;function Hn(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var a=e[n];this.set(a[0],a[1])}}function Am(){this.__data__=[],this.size=0}function Om(e){var n=this.__data__,o=Ds(n,e);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():bs.call(n,o,1),--this.size,!0}function Tm(e){var n=this.__data__,o=Ds(n,e);return o<0?r:n[o][1]}function Dm(e){return Ds(this.__data__,e)>-1}function Em(e,n){var o=this.__data__,a=Ds(o,e);return a<0?(++this.size,o.push([e,n])):o[a][1]=n,this}Hn.prototype.clear=Am,Hn.prototype.delete=Om,Hn.prototype.get=Tm,Hn.prototype.has=Dm,Hn.prototype.set=Em;function Gn(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var a=e[n];this.set(a[0],a[1])}}function Mm(){this.size=0,this.__data__={hash:new Hr,map:new(so||Hn),string:new Hr}}function Rm(e){var n=Us(this,e).delete(e);return this.size-=n?1:0,n}function Lm(e){return Us(this,e).get(e)}function km(e){return Us(this,e).has(e)}function Im(e,n){var o=Us(this,e),a=o.size;return o.set(e,n),this.size+=o.size==a?0:1,this}Gn.prototype.clear=Mm,Gn.prototype.delete=Rm,Gn.prototype.get=Lm,Gn.prototype.has=km,Gn.prototype.set=Im;function Gr(e){var n=-1,o=e==null?0:e.length;for(this.__data__=new Gn;++n<o;)this.add(e[n])}function Pm(e){return this.__data__.set(e,b),this}function $m(e){return this.__data__.has(e)}Gr.prototype.add=Gr.prototype.push=Pm,Gr.prototype.has=$m;function Tn(e){var n=this.__data__=new Hn(e);this.size=n.size}function Nm(){this.__data__=new Hn,this.size=0}function Bm(e){var n=this.__data__,o=n.delete(e);return this.size=n.size,o}function jm(e){return this.__data__.get(e)}function Um(e){return this.__data__.has(e)}function zm(e,n){var o=this.__data__;if(o instanceof Hn){var a=o.__data__;if(!so||a.length<l-1)return a.push([e,n]),this.size=++o.size,this;o=this.__data__=new Gn(a)}return o.set(e,n),this.size=o.size,this}Tn.prototype.clear=Nm,Tn.prototype.delete=Bm,Tn.prototype.get=jm,Tn.prototype.has=Um,Tn.prototype.set=zm;function Ef(e,n){var o=We(e),a=!o&&Jr(e),y=!o&&!a&&Mr(e),S=!o&&!a&&!y&&Ti(e),P=o||a||y||S,F=P?eu(e.length,Qv):[],V=F.length;for(var ge in e)(n||st.call(e,ge))&&!(P&&(ge=="length"||y&&(ge=="offset"||ge=="parent")||S&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Qn(ge,V)))&&F.push(ge);return F}function Mf(e){var n=e.length;return n?e[mu(0,n-1)]:r}function Fm(e,n){return zs(Gt(e),Vr(n,0,e.length))}function Wm(e){return zs(Gt(e))}function au(e,n,o){(o!==r&&!Dn(e[n],o)||o===r&&!(n in e))&&Vn(e,n,o)}function co(e,n,o){var a=e[n];(!(st.call(e,n)&&Dn(a,o))||o===r&&!(n in e))&&Vn(e,n,o)}function Ds(e,n){for(var o=e.length;o--;)if(Dn(e[o][0],n))return o;return-1}function Ym(e,n,o,a){return Or(e,function(y,S,P){n(a,y,o(y),P)}),a}function Rf(e,n){return e&&In(n,Dt(n),e)}function qm(e,n){return e&&In(n,Zt(n),e)}function Vn(e,n,o){n=="__proto__"&&xs?xs(e,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[n]=o}function uu(e,n){for(var o=-1,a=n.length,y=oe(a),S=e==null;++o<a;)y[o]=S?r:Fu(e,n[o]);return y}function Vr(e,n,o){return e===e&&(o!==r&&(e=e<=o?e:o),n!==r&&(e=e>=n?e:n)),e}function yn(e,n,o,a,y,S){var P,F=n&L,V=n&k,ge=n&E;if(o&&(P=y?o(e,a,y,S):o(e)),P!==r)return P;if(!vt(e))return e;var ve=We(e);if(ve){if(P=ky(e),!F)return Gt(e,P)}else{var _e=$t(e),De=_e==B||_e==Y;if(Mr(e))return th(e,F);if(_e==Te||_e==le||De&&!y){if(P=V||De?{}:_h(e),!F)return V?xy(e,qm(P,e)):by(e,Rf(P,e))}else{if(!ct[_e])return y?e:{};P=Iy(e,_e,F)}}S||(S=new Tn);var Pe=S.get(e);if(Pe)return Pe;S.set(e,P),Zh(e)?e.forEach(function(je){P.add(yn(je,n,o,je,e,S))}):Gh(e)&&e.forEach(function(je,Qe){P.set(Qe,yn(je,n,o,Qe,e,S))});var Be=ge?V?Du:Tu:V?Zt:Dt,qe=ve?r:Be(e);return gn(qe||e,function(je,Qe){qe&&(Qe=je,je=e[Qe]),co(P,Qe,yn(je,n,o,Qe,e,S))}),P}function Hm(e){var n=Dt(e);return function(o){return Lf(o,e,n)}}function Lf(e,n,o){var a=o.length;if(e==null)return!a;for(e=ut(e);a--;){var y=o[a],S=n[y],P=e[y];if(P===r&&!(y in e)||!S(P))return!1}return!0}function kf(e,n,o){if(typeof e!="function")throw new vn(f);return yo(function(){e.apply(r,o)},n)}function fo(e,n,o,a){var y=-1,S=fs,P=!0,F=e.length,V=[],ge=n.length;if(!F)return V;o&&(n=gt(n,tn(o))),a?(S=Va,P=!1):n.length>=l&&(S=io,P=!1,n=new Gr(n));e:for(;++y<F;){var ve=e[y],_e=o==null?ve:o(ve);if(ve=a||ve!==0?ve:0,P&&_e===_e){for(var De=ge;De--;)if(n[De]===_e)continue e;V.push(ve)}else S(n,_e,a)||V.push(ve)}return V}var Or=sh(kn),If=sh(cu,!0);function Gm(e,n){var o=!0;return Or(e,function(a,y,S){return o=!!n(a,y,S),o}),o}function Es(e,n,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],P=n(S);if(P!=null&&(F===r?P===P&&!rn(P):o(P,F)))var F=P,V=S}return V}function Vm(e,n,o,a){var y=e.length;for(o=Ye(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:Ye(a),a<0&&(a+=y),a=o>a?0:Qh(a);o<a;)e[o++]=n;return e}function Pf(e,n){var o=[];return Or(e,function(a,y,S){n(a,y,S)&&o.push(a)}),o}function It(e,n,o,a,y){var S=-1,P=e.length;for(o||(o=$y),y||(y=[]);++S<P;){var F=e[S];n>0&&o(F)?n>1?It(F,n-1,o,a,y):Sr(y,F):a||(y[y.length]=F)}return y}var lu=ah(),$f=ah(!0);function kn(e,n){return e&&lu(e,n,Dt)}function cu(e,n){return e&&$f(e,n,Dt)}function Ms(e,n){return xr(n,function(o){return Jn(e[o])})}function Zr(e,n){n=Dr(n,e);for(var o=0,a=n.length;e!=null&&o<a;)e=e[Pn(n[o++])];return o&&o==a?e:r}function Nf(e,n,o){var a=n(e);return We(e)?a:Sr(a,o(e))}function Ut(e){return e==null?e===r?xe:ae:qr&&qr in ut(e)?My(e):Wy(e)}function fu(e,n){return e>n}function Zm(e,n){return e!=null&&st.call(e,n)}function Km(e,n){return e!=null&&n in ut(e)}function Qm(e,n,o){return e>=Pt(n,o)&&e<Ot(n,o)}function hu(e,n,o){for(var a=o?Va:fs,y=e[0].length,S=e.length,P=S,F=oe(S),V=1/0,ge=[];P--;){var ve=e[P];P&&n&&(ve=gt(ve,tn(n))),V=Pt(ve.length,V),F[P]=!o&&(n||y>=120&&ve.length>=120)?new Gr(P&&ve):r}ve=e[0];var _e=-1,De=F[0];e:for(;++_e<y&&ge.length<V;){var Pe=ve[_e],Be=n?n(Pe):Pe;if(Pe=o||Pe!==0?Pe:0,!(De?io(De,Be):a(ge,Be,o))){for(P=S;--P;){var qe=F[P];if(!(qe?io(qe,Be):a(e[P],Be,o)))continue e}De&&De.push(Be),ge.push(Pe)}}return ge}function Jm(e,n,o,a){return kn(e,function(y,S,P){n(a,o(y),S,P)}),a}function ho(e,n,o){n=Dr(n,e),e=Ch(e,n);var a=e==null?e:e[Pn(_n(n))];return a==null?r:en(a,e,o)}function Bf(e){return yt(e)&&Ut(e)==le}function Xm(e){return yt(e)&&Ut(e)==Se}function ey(e){return yt(e)&&Ut(e)==ce}function po(e,n,o,a,y){return e===n?!0:e==null||n==null||!yt(e)&&!yt(n)?e!==e&&n!==n:ty(e,n,o,a,po,y)}function ty(e,n,o,a,y,S){var P=We(e),F=We(n),V=P?pe:$t(e),ge=F?pe:$t(n);V=V==le?Te:V,ge=ge==le?Te:ge;var ve=V==Te,_e=ge==Te,De=V==ge;if(De&&Mr(e)){if(!Mr(n))return!1;P=!0,ve=!1}if(De&&!ve)return S||(S=new Tn),P||Ti(e)?mh(e,n,o,a,y,S):Dy(e,n,V,o,a,y,S);if(!(o&R)){var Pe=ve&&st.call(e,"__wrapped__"),Be=_e&&st.call(n,"__wrapped__");if(Pe||Be){var qe=Pe?e.value():e,je=Be?n.value():n;return S||(S=new Tn),y(qe,je,o,a,S)}}return De?(S||(S=new Tn),Ey(e,n,o,a,y,S)):!1}function ny(e){return yt(e)&&$t(e)==W}function du(e,n,o,a){var y=o.length,S=y,P=!a;if(e==null)return!S;for(e=ut(e);y--;){var F=o[y];if(P&&F[2]?F[1]!==e[F[0]]:!(F[0]in e))return!1}for(;++y<S;){F=o[y];var V=F[0],ge=e[V],ve=F[1];if(P&&F[2]){if(ge===r&&!(V in e))return!1}else{var _e=new Tn;if(a)var De=a(ge,ve,V,e,n,_e);if(!(De===r?po(ve,ge,R|M,a,_e):De))return!1}}return!0}function jf(e){if(!vt(e)||By(e))return!1;var n=Jn(e)?nm:zn;return n.test(Qr(e))}function ry(e){return yt(e)&&Ut(e)==w}function iy(e){return yt(e)&&$t(e)==N}function oy(e){return yt(e)&&Gs(e.length)&&!!ft[Ut(e)]}function Uf(e){return typeof e=="function"?e:e==null?Kt:typeof e=="object"?We(e)?Wf(e[0],e[1]):Ff(e):ud(e)}function pu(e){if(!mo(e))return um(e);var n=[];for(var o in ut(e))st.call(e,o)&&o!="constructor"&&n.push(o);return n}function sy(e){if(!vt(e))return Fy(e);var n=mo(e),o=[];for(var a in e)a=="constructor"&&(n||!st.call(e,a))||o.push(a);return o}function gu(e,n){return e<n}function zf(e,n){var o=-1,a=Vt(e)?oe(e.length):[];return Or(e,function(y,S,P){a[++o]=n(y,S,P)}),a}function Ff(e){var n=Mu(e);return n.length==1&&n[0][2]?xh(n[0][0],n[0][1]):function(o){return o===e||du(o,e,n)}}function Wf(e,n){return Lu(e)&&bh(n)?xh(Pn(e),n):function(o){var a=Fu(o,e);return a===r&&a===n?Wu(o,e):po(n,a,R|M)}}function Rs(e,n,o,a,y){e!==n&&lu(n,function(S,P){if(y||(y=new Tn),vt(S))ay(e,n,P,o,Rs,a,y);else{var F=a?a(Iu(e,P),S,P+"",e,n,y):r;F===r&&(F=S),au(e,P,F)}},Zt)}function ay(e,n,o,a,y,S,P){var F=Iu(e,o),V=Iu(n,o),ge=P.get(V);if(ge){au(e,o,ge);return}var ve=S?S(F,V,o+"",e,n,P):r,_e=ve===r;if(_e){var De=We(V),Pe=!De&&Mr(V),Be=!De&&!Pe&&Ti(V);ve=V,De||Pe||Be?We(F)?ve=F:wt(F)?ve=Gt(F):Pe?(_e=!1,ve=th(V,!0)):Be?(_e=!1,ve=nh(V,!0)):ve=[]:wo(V)||Jr(V)?(ve=F,Jr(F)?ve=Jh(F):(!vt(F)||Jn(F))&&(ve=_h(V))):_e=!1}_e&&(P.set(V,ve),y(ve,V,a,S,P),P.delete(V)),au(e,o,ve)}function Yf(e,n){var o=e.length;if(o)return n+=n<0?o:0,Qn(n,o)?e[n]:r}function qf(e,n,o){n.length?n=gt(n,function(S){return We(S)?function(P){return Zr(P,S.length===1?S[0]:S)}:S}):n=[Kt];var a=-1;n=gt(n,tn(Ne()));var y=zf(e,function(S,P,F){var V=gt(n,function(ge){return ge(S)});return{criteria:V,index:++a,value:S}});return Iv(y,function(S,P){return _y(S,P,o)})}function uy(e,n){return Hf(e,n,function(o,a){return Wu(e,a)})}function Hf(e,n,o){for(var a=-1,y=n.length,S={};++a<y;){var P=n[a],F=Zr(e,P);o(F,P)&&go(S,Dr(P,e),F)}return S}function ly(e){return function(n){return Zr(n,e)}}function vu(e,n,o,a){var y=a?kv:vi,S=-1,P=n.length,F=e;for(e===n&&(n=Gt(n)),o&&(F=gt(e,tn(o)));++S<P;)for(var V=0,ge=n[S],ve=o?o(ge):ge;(V=y(F,ve,V,a))>-1;)F!==e&&bs.call(F,V,1),bs.call(e,V,1);return e}function Gf(e,n){for(var o=e?n.length:0,a=o-1;o--;){var y=n[o];if(o==a||y!==S){var S=y;Qn(y)?bs.call(e,y,1):_u(e,y)}}return e}function mu(e,n){return e+Cs(Tf()*(n-e+1))}function cy(e,n,o,a){for(var y=-1,S=Ot(Ss((n-e)/(o||1)),0),P=oe(S);S--;)P[a?S:++y]=e,e+=o;return P}function yu(e,n){var o="";if(!e||n<1||n>p)return o;do n%2&&(o+=e),n=Cs(n/2),n&&(e+=e);while(n);return o}function Ge(e,n){return Pu(Sh(e,n,Kt),e+"")}function fy(e){return Mf(Di(e))}function hy(e,n){var o=Di(e);return zs(o,Vr(n,0,o.length))}function go(e,n,o,a){if(!vt(e))return e;n=Dr(n,e);for(var y=-1,S=n.length,P=S-1,F=e;F!=null&&++y<S;){var V=Pn(n[y]),ge=o;if(V==="__proto__"||V==="constructor"||V==="prototype")return e;if(y!=P){var ve=F[V];ge=a?a(ve,V,F):r,ge===r&&(ge=vt(ve)?ve:Qn(n[y+1])?[]:{})}co(F,V,ge),F=F[V]}return e}var Vf=As?function(e,n){return As.set(e,n),e}:Kt,dy=xs?function(e,n){return xs(e,"toString",{configurable:!0,enumerable:!1,value:qu(n),writable:!0})}:Kt;function py(e){return zs(Di(e))}function wn(e,n,o){var a=-1,y=e.length;n<0&&(n=-n>y?0:y+n),o=o>y?y:o,o<0&&(o+=y),y=n>o?0:o-n>>>0,n>>>=0;for(var S=oe(y);++a<y;)S[a]=e[a+n];return S}function gy(e,n){var o;return Or(e,function(a,y,S){return o=n(a,y,S),!o}),!!o}function Ls(e,n,o){var a=0,y=e==null?a:e.length;if(typeof n=="number"&&n===n&&y<=H){for(;a<y;){var S=a+y>>>1,P=e[S];P!==null&&!rn(P)&&(o?P<=n:P<n)?a=S+1:y=S}return y}return wu(e,n,Kt,o)}function wu(e,n,o,a){var y=0,S=e==null?0:e.length;if(S===0)return 0;n=o(n);for(var P=n!==n,F=n===null,V=rn(n),ge=n===r;y<S;){var ve=Cs((y+S)/2),_e=o(e[ve]),De=_e!==r,Pe=_e===null,Be=_e===_e,qe=rn(_e);if(P)var je=a||Be;else ge?je=Be&&(a||De):F?je=Be&&De&&(a||!Pe):V?je=Be&&De&&!Pe&&(a||!qe):Pe||qe?je=!1:je=a?_e<=n:_e<n;je?y=ve+1:S=ve}return Pt(S,T)}function Zf(e,n){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var P=e[o],F=n?n(P):P;if(!o||!Dn(F,V)){var V=F;S[y++]=P===0?0:P}}return S}function Kf(e){return typeof e=="number"?e:rn(e)?d:+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 n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function Tr(e,n,o){var a=-1,y=fs,S=e.length,P=!0,F=[],V=F;if(o)P=!1,y=Va;else if(S>=l){var ge=n?null:Oy(e);if(ge)return ds(ge);P=!1,y=io,V=new Gr}else V=n?[]:F;e:for(;++a<S;){var ve=e[a],_e=n?n(ve):ve;if(ve=o||ve!==0?ve:0,P&&_e===_e){for(var De=V.length;De--;)if(V[De]===_e)continue e;n&&V.push(_e),F.push(ve)}else y(V,_e,o)||(V!==F&&V.push(_e),F.push(ve))}return F}function _u(e,n){return n=Dr(n,e),e=Ch(e,n),e==null||delete e[Pn(_n(n))]}function Qf(e,n,o,a){return go(e,n,o(Zr(e,n)),a)}function ks(e,n,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&n(e[S],S,e););return o?wn(e,a?0:S,a?S+1:y):wn(e,a?S+1:0,a?y:S)}function Jf(e,n){var o=e;return o instanceof Je&&(o=o.value()),Za(n,function(a,y){return y.func.apply(y.thisArg,Sr([a],y.args))},o)}function bu(e,n,o){var a=e.length;if(a<2)return a?Tr(e[0]):[];for(var y=-1,S=oe(a);++y<a;)for(var P=e[y],F=-1;++F<a;)F!=y&&(S[y]=fo(S[y]||P,e[F],n,o));return Tr(It(S,1),n,o)}function Xf(e,n,o){for(var a=-1,y=e.length,S=n.length,P={};++a<y;){var F=a<S?n[a]:r;o(P,e[a],F)}return P}function xu(e){return wt(e)?e:[]}function Su(e){return typeof e=="function"?e:Kt}function Dr(e,n){return We(e)?e:Lu(e,n)?[e]:Dh(ot(e))}var vy=Ge;function Er(e,n,o){var a=e.length;return o=o===r?a:o,!n&&o>=a?e:wn(e,n,o)}var eh=rm||function(e){return kt.clearTimeout(e)};function th(e,n){if(n)return e.slice();var o=e.length,a=xf?xf(o):new e.constructor(o);return e.copy(a),a}function Cu(e){var n=new e.constructor(e.byteLength);return new ws(n).set(new ws(e)),n}function my(e,n){var o=n?Cu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function yy(e){var n=new e.constructor(e.source,Vi.exec(e));return n.lastIndex=e.lastIndex,n}function wy(e){return lo?ut(lo.call(e)):{}}function nh(e,n){var o=n?Cu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function rh(e,n){if(e!==n){var o=e!==r,a=e===null,y=e===e,S=rn(e),P=n!==r,F=n===null,V=n===n,ge=rn(n);if(!F&&!ge&&!S&&e>n||S&&P&&V&&!F&&!ge||a&&P&&V||!o&&V||!y)return 1;if(!a&&!S&&!ge&&e<n||ge&&o&&y&&!a&&!S||F&&o&&y||!P&&y||!V)return-1}return 0}function _y(e,n,o){for(var a=-1,y=e.criteria,S=n.criteria,P=y.length,F=o.length;++a<P;){var V=rh(y[a],S[a]);if(V){if(a>=F)return V;var ge=o[a];return V*(ge=="desc"?-1:1)}}return e.index-n.index}function ih(e,n,o,a){for(var y=-1,S=e.length,P=o.length,F=-1,V=n.length,ge=Ot(S-P,0),ve=oe(V+ge),_e=!a;++F<V;)ve[F]=n[F];for(;++y<P;)(_e||y<S)&&(ve[o[y]]=e[y]);for(;ge--;)ve[F++]=e[y++];return ve}function oh(e,n,o,a){for(var y=-1,S=e.length,P=-1,F=o.length,V=-1,ge=n.length,ve=Ot(S-F,0),_e=oe(ve+ge),De=!a;++y<ve;)_e[y]=e[y];for(var Pe=y;++V<ge;)_e[Pe+V]=n[V];for(;++P<F;)(De||y<S)&&(_e[Pe+o[P]]=e[y++]);return _e}function Gt(e,n){var o=-1,a=e.length;for(n||(n=oe(a));++o<a;)n[o]=e[o];return n}function In(e,n,o,a){var y=!o;o||(o={});for(var S=-1,P=n.length;++S<P;){var F=n[S],V=a?a(o[F],e[F],F,o,e):r;V===r&&(V=e[F]),y?Vn(o,F,V):co(o,F,V)}return o}function by(e,n){return In(e,Ru(e),n)}function xy(e,n){return In(e,yh(e),n)}function Is(e,n){return function(o,a){var y=We(o)?Tv:Ym,S=n?n():{};return y(o,e,Ne(a,2),S)}}function Ci(e){return Ge(function(n,o){var a=-1,y=o.length,S=y>1?o[y-1]:r,P=y>2?o[2]:r;for(S=e.length>3&&typeof S=="function"?(y--,S):r,P&&zt(o[0],o[1],P)&&(S=y<3?r:S,y=1),n=ut(n);++a<y;){var F=o[a];F&&e(n,F,a,S)}return n})}function sh(e,n){return function(o,a){if(o==null)return o;if(!Vt(o))return e(o,a);for(var y=o.length,S=n?y:-1,P=ut(o);(n?S--:++S<y)&&a(P[S],S,P)!==!1;);return o}}function ah(e){return function(n,o,a){for(var y=-1,S=ut(n),P=a(n),F=P.length;F--;){var V=P[e?F:++y];if(o(S[V],V,S)===!1)break}return n}}function Sy(e,n,o){var a=n&$,y=vo(e);function S(){var P=this&&this!==kt&&this instanceof S?y:e;return P.apply(a?o:this,arguments)}return S}function uh(e){return function(n){n=ot(n);var o=mi(n)?On(n):r,a=o?o[0]:n.charAt(0),y=o?Er(o,1).join(""):n.slice(1);return a[e]()+y}}function Ai(e){return function(n){return Za(sd(od(n).replace(_r,"")),e,"")}}function vo(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var o=Si(e.prototype),a=e.apply(o,n);return vt(a)?a:o}}function Cy(e,n,o){var a=vo(e);function y(){for(var S=arguments.length,P=oe(S),F=S,V=Oi(y);F--;)P[F]=arguments[F];var ge=S<3&&P[0]!==V&&P[S-1]!==V?[]:Cr(P,V);if(S-=ge.length,S<o)return dh(e,n,Ps,y.placeholder,r,P,ge,r,r,o-S);var ve=this&&this!==kt&&this instanceof y?a:e;return en(ve,this,P)}return y}function lh(e){return function(n,o,a){var y=ut(n);if(!Vt(n)){var S=Ne(o,3);n=Dt(n),o=function(F){return S(y[F],F,y)}}var P=e(n,o,a);return P>-1?y[S?n[P]:P]:r}}function ch(e){return Kn(function(n){var o=n.length,a=o,y=mn.prototype.thru;for(e&&n.reverse();a--;){var S=n[a];if(typeof S!="function")throw new vn(f);if(y&&!P&&js(S)=="wrapper")var P=new mn([],!0)}for(a=P?a:o;++a<o;){S=n[a];var F=js(S),V=F=="wrapper"?Eu(S):r;V&&ku(V[0])&&V[1]==(ne|J|q|ee)&&!V[4].length&&V[9]==1?P=P[js(V[0])].apply(P,V[3]):P=S.length==1&&ku(S)?P[F]():P.thru(S)}return function(){var ge=arguments,ve=ge[0];if(P&&ge.length==1&&We(ve))return P.plant(ve).value();for(var _e=0,De=o?n[_e].apply(this,ge):ve;++_e<o;)De=n[_e].call(this,De);return De}})}function Ps(e,n,o,a,y,S,P,F,V,ge){var ve=n&ne,_e=n&$,De=n&Q,Pe=n&(J|se),Be=n&fe,qe=De?r:vo(e);function je(){for(var Qe=arguments.length,et=oe(Qe),on=Qe;on--;)et[on]=arguments[on];if(Pe)var Ft=Oi(je),sn=$v(et,Ft);if(a&&(et=ih(et,a,y,Pe)),S&&(et=oh(et,S,P,Pe)),Qe-=sn,Pe&&Qe<ge){var _t=Cr(et,Ft);return dh(e,n,Ps,je.placeholder,o,et,_t,F,V,ge-Qe)}var En=_e?o:this,er=De?En[e]:e;return Qe=et.length,F?et=Yy(et,F):Be&&Qe>1&&et.reverse(),ve&&V<Qe&&(et.length=V),this&&this!==kt&&this instanceof je&&(er=qe||vo(er)),er.apply(En,et)}return je}function fh(e,n){return function(o,a){return Jm(o,e,n(a),{})}}function $s(e,n){return function(o,a){var y;if(o===r&&a===r)return n;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=Kf(o),a=Kf(a)),y=e(o,a)}return y}}function Au(e){return Kn(function(n){return n=gt(n,tn(Ne())),Ge(function(o){var a=this;return e(n,function(y){return en(y,a,o)})})})}function Ns(e,n){n=n===r?" ":nn(n);var o=n.length;if(o<2)return o?yu(n,e):n;var a=yu(n,Ss(e/yi(n)));return mi(n)?Er(On(a),0,e).join(""):a.slice(0,e)}function Ay(e,n,o,a){var y=n&$,S=vo(e);function P(){for(var F=-1,V=arguments.length,ge=-1,ve=a.length,_e=oe(ve+V),De=this&&this!==kt&&this instanceof P?S:e;++ge<ve;)_e[ge]=a[ge];for(;V--;)_e[ge++]=arguments[++F];return en(De,y?o:this,_e)}return P}function hh(e){return function(n,o,a){return a&&typeof a!="number"&&zt(n,o,a)&&(o=a=r),n=Xn(n),o===r?(o=n,n=0):o=Xn(o),a=a===r?n<o?1:-1:Xn(a),cy(n,o,a,e)}}function Bs(e){return function(n,o){return typeof n=="string"&&typeof o=="string"||(n=bn(n),o=bn(o)),e(n,o)}}function dh(e,n,o,a,y,S,P,F,V,ge){var ve=n&J,_e=ve?P:r,De=ve?r:P,Pe=ve?S:r,Be=ve?r:S;n|=ve?q:ue,n&=~(ve?ue:q),n&X||(n&=-4);var qe=[e,n,y,Pe,_e,Be,De,F,V,ge],je=o.apply(r,qe);return ku(e)&&Ah(je,qe),je.placeholder=a,Oh(je,e,n)}function Ou(e){var n=At[e];return function(o,a){if(o=bn(o),a=a==null?0:Pt(Ye(a),292),a&&Of(o)){var y=(ot(o)+"e").split("e"),S=n(y[0]+"e"+(+y[1]+a));return y=(ot(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return n(o)}}var Oy=bi&&1/ds(new bi([,-0]))[1]==v?function(e){return new bi(e)}:Vu;function ph(e){return function(n){var o=$t(n);return o==W?nu(n):o==N?Wv(n):Pv(n,e(n))}}function Zn(e,n,o,a,y,S,P,F){var V=n&Q;if(!V&&typeof e!="function")throw new vn(f);var ge=a?a.length:0;if(ge||(n&=-97,a=y=r),P=P===r?P:Ot(Ye(P),0),F=F===r?F:Ye(F),ge-=y?y.length:0,n&ue){var ve=a,_e=y;a=y=r}var De=V?r:Eu(e),Pe=[e,n,o,a,y,ve,_e,S,P,F];if(De&&zy(Pe,De),e=Pe[0],n=Pe[1],o=Pe[2],a=Pe[3],y=Pe[4],F=Pe[9]=Pe[9]===r?V?0:e.length:Ot(Pe[9]-ge,0),!F&&n&(J|se)&&(n&=-25),!n||n==$)var Be=Sy(e,n,o);else n==J||n==se?Be=Cy(e,n,F):(n==q||n==($|q))&&!y.length?Be=Ay(e,n,o,a):Be=Ps.apply(r,Pe);var qe=De?Vf:Ah;return Oh(qe(Be,Pe),e,n)}function gh(e,n,o,a){return e===r||Dn(e,_i[o])&&!st.call(a,o)?n:e}function vh(e,n,o,a,y,S){return vt(e)&&vt(n)&&(S.set(n,e),Rs(e,n,r,vh,S),S.delete(n)),e}function Ty(e){return wo(e)?r:e}function mh(e,n,o,a,y,S){var P=o&R,F=e.length,V=n.length;if(F!=V&&!(P&&V>F))return!1;var ge=S.get(e),ve=S.get(n);if(ge&&ve)return ge==n&&ve==e;var _e=-1,De=!0,Pe=o&M?new Gr:r;for(S.set(e,n),S.set(n,e);++_e<F;){var Be=e[_e],qe=n[_e];if(a)var je=P?a(qe,Be,_e,n,e,S):a(Be,qe,_e,e,n,S);if(je!==r){if(je)continue;De=!1;break}if(Pe){if(!Ka(n,function(Qe,et){if(!io(Pe,et)&&(Be===Qe||y(Be,Qe,o,a,S)))return Pe.push(et)})){De=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){De=!1;break}}return S.delete(e),S.delete(n),De}function Dy(e,n,o,a,y,S,P){switch(o){case Le:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case Se:return!(e.byteLength!=n.byteLength||!S(new ws(e),new ws(n)));case re:case ce:case K:return Dn(+e,+n);case be:return e.name==n.name&&e.message==n.message;case w:case z:return e==n+"";case W:var F=nu;case N:var V=a&R;if(F||(F=ds),e.size!=n.size&&!V)return!1;var ge=P.get(e);if(ge)return ge==n;a|=M,P.set(e,n);var ve=mh(F(e),F(n),a,y,S,P);return P.delete(e),ve;case te:if(lo)return lo.call(e)==lo.call(n)}return!1}function Ey(e,n,o,a,y,S){var P=o&R,F=Tu(e),V=F.length,ge=Tu(n),ve=ge.length;if(V!=ve&&!P)return!1;for(var _e=V;_e--;){var De=F[_e];if(!(P?De in n:st.call(n,De)))return!1}var Pe=S.get(e),Be=S.get(n);if(Pe&&Be)return Pe==n&&Be==e;var qe=!0;S.set(e,n),S.set(n,e);for(var je=P;++_e<V;){De=F[_e];var Qe=e[De],et=n[De];if(a)var on=P?a(et,Qe,De,n,e,S):a(Qe,et,De,e,n,S);if(!(on===r?Qe===et||y(Qe,et,o,a,S):on)){qe=!1;break}je||(je=De=="constructor")}if(qe&&!je){var Ft=e.constructor,sn=n.constructor;Ft!=sn&&"constructor"in e&&"constructor"in n&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof sn=="function"&&sn instanceof sn)&&(qe=!1)}return S.delete(e),S.delete(n),qe}function Kn(e){return Pu(Sh(e,r,Lh),e+"")}function Tu(e){return Nf(e,Dt,Ru)}function Du(e){return Nf(e,Zt,yh)}var Eu=As?function(e){return As.get(e)}:Vu;function js(e){for(var n=e.name+"",o=xi[n],a=st.call(xi,n)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return n}function Oi(e){var n=st.call(x,"placeholder")?x:e;return n.placeholder}function Ne(){var e=x.iteratee||Hu;return e=e===Hu?Uf:e,arguments.length?e(arguments[0],arguments[1]):e}function Us(e,n){var o=e.__data__;return Ny(n)?o[typeof n=="string"?"string":"hash"]:o.map}function Mu(e){for(var n=Dt(e),o=n.length;o--;){var a=n[o],y=e[a];n[o]=[a,y,bh(y)]}return n}function Kr(e,n){var o=Uv(e,n);return jf(o)?o:r}function My(e){var n=st.call(e,qr),o=e[qr];try{e[qr]=r;var a=!0}catch{}var y=ms.call(e);return a&&(n?e[qr]=o:delete e[qr]),y}var Ru=iu?function(e){return e==null?[]:(e=ut(e),xr(iu(e),function(n){return Cf.call(e,n)}))}:Zu,yh=iu?function(e){for(var n=[];e;)Sr(n,Ru(e)),e=_s(e);return n}:Zu,$t=Ut;(ou&&$t(new ou(new ArrayBuffer(1)))!=Le||so&&$t(new so)!=W||su&&$t(su.resolve())!=u||bi&&$t(new bi)!=N||ao&&$t(new ao)!=Ee)&&($t=function(e){var n=Ut(e),o=n==Te?e.constructor:r,a=o?Qr(o):"";if(a)switch(a){case hm:return Le;case dm:return W;case pm:return u;case gm:return N;case vm:return Ee}return n});function Ry(e,n,o){for(var a=-1,y=o.length;++a<y;){var S=o[a],P=S.size;switch(S.type){case"drop":e+=P;break;case"dropRight":n-=P;break;case"take":n=Pt(n,e+P);break;case"takeRight":e=Ot(e,n-P);break}}return{start:e,end:n}}function Ly(e){var n=e.match(hi);return n?n[1].split(Rt):[]}function wh(e,n,o){n=Dr(n,e);for(var a=-1,y=n.length,S=!1;++a<y;){var P=Pn(n[a]);if(!(S=e!=null&&o(e,P)))break;e=e[P]}return S||++a!=y?S:(y=e==null?0:e.length,!!y&&Gs(y)&&Qn(P,y)&&(We(e)||Jr(e)))}function ky(e){var n=e.length,o=new e.constructor(n);return n&&typeof e[0]=="string"&&st.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function _h(e){return typeof e.constructor=="function"&&!mo(e)?Si(_s(e)):{}}function Iy(e,n,o){var a=e.constructor;switch(n){case Se:return Cu(e);case re:case ce:return new a(+e);case Le:return my(e,o);case $e:case ke:case Ke:case He:case tt:case dt:case St:case lt:case Ct:return nh(e,o);case W:return new a;case K:case z:return new a(e);case w:return yy(e);case N:return new a;case te:return wy(e)}}function Py(e,n){var o=n.length;if(!o)return e;var a=o-1;return n[a]=(o>1?"& ":"")+n[a],n=n.join(o>2?", ":" "),e.replace(fi,`{
125
- /* [wrapped with `+n+`] */
126
- `)}function $y(e){return We(e)||Jr(e)||!!(Af&&e&&e[Af])}function Qn(e,n){var o=typeof e;return n=n??p,!!n&&(o=="number"||o!="symbol"&&ns.test(e))&&e>-1&&e%1==0&&e<n}function zt(e,n,o){if(!vt(o))return!1;var a=typeof n;return(a=="number"?Vt(o)&&Qn(n,o.length):a=="string"&&n in o)?Dn(o[n],e):!1}function Lu(e,n){if(We(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||rn(e)?!0:pt.test(e)||!qt.test(e)||n!=null&&e in ut(n)}function Ny(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function ku(e){var n=js(e),o=x[n];if(typeof o!="function"||!(n in Je.prototype))return!1;if(e===o)return!0;var a=Eu(o);return!!a&&e===a[0]}function By(e){return!!bf&&bf in e}var jy=gs?Jn:Ku;function mo(e){var n=e&&e.constructor,o=typeof n=="function"&&n.prototype||_i;return e===o}function bh(e){return e===e&&!vt(e)}function xh(e,n){return function(o){return o==null?!1:o[e]===n&&(n!==r||e in ut(o))}}function Uy(e){var n=qs(e,function(a){return o.size===C&&o.clear(),a}),o=n.cache;return n}function zy(e,n){var o=e[1],a=n[1],y=o|a,S=y<($|Q|ne),P=a==ne&&o==J||a==ne&&o==ee&&e[7].length<=n[8]||a==(ne|ee)&&n[7].length<=n[8]&&o==J;if(!(S||P))return e;a&$&&(e[2]=n[2],y|=o&$?0:X);var F=n[3];if(F){var V=e[3];e[3]=V?ih(V,F,n[4]):F,e[4]=V?Cr(e[3],O):n[4]}return F=n[5],F&&(V=e[5],e[5]=V?oh(V,F,n[6]):F,e[6]=V?Cr(e[5],O):n[6]),F=n[7],F&&(e[7]=F),a&ne&&(e[8]=e[8]==null?n[8]:Pt(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=y,e}function Fy(e){var n=[];if(e!=null)for(var o in ut(e))n.push(o);return n}function Wy(e){return ms.call(e)}function Sh(e,n,o){return n=Ot(n===r?e.length-1:n,0),function(){for(var a=arguments,y=-1,S=Ot(a.length-n,0),P=oe(S);++y<S;)P[y]=a[n+y];y=-1;for(var F=oe(n+1);++y<n;)F[y]=a[y];return F[n]=o(P),en(e,this,F)}}function Ch(e,n){return n.length<2?e:Zr(e,wn(n,0,-1))}function Yy(e,n){for(var o=e.length,a=Pt(n.length,o),y=Gt(e);a--;){var S=n[a];e[a]=Qn(S,o)?y[S]:r}return e}function Iu(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Ah=Th(Vf),yo=om||function(e,n){return kt.setTimeout(e,n)},Pu=Th(dy);function Oh(e,n,o){var a=n+"";return Pu(e,Py(a,qy(Ly(a),o)))}function Th(e){var n=0,o=0;return function(){var a=lm(),y=Ce-(a-o);if(o=a,y>0){if(++n>=Ae)return arguments[0]}else n=0;return e.apply(r,arguments)}}function zs(e,n){var o=-1,a=e.length,y=a-1;for(n=n===r?a:n;++o<n;){var S=mu(o,y),P=e[S];e[S]=e[o],e[o]=P}return e.length=n,e}var Dh=Uy(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Mt,function(o,a,y,S){n.push(y?S.replace($a,"$1"):a||o)}),n});function Pn(e){if(typeof e=="string"||rn(e))return e;var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function Qr(e){if(e!=null){try{return vs.call(e)}catch{}try{return e+""}catch{}}return""}function qy(e,n){return gn(Z,function(o){var a="_."+o[0];n&o[1]&&!fs(e,a)&&e.push(a)}),e.sort()}function Eh(e){if(e instanceof Je)return e.clone();var n=new mn(e.__wrapped__,e.__chain__);return n.__actions__=Gt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Hy(e,n,o){(o?zt(e,n,o):n===r)?n=1:n=Ot(Ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var y=0,S=0,P=oe(Ss(a/n));y<a;)P[S++]=wn(e,y,y+=n);return P}function Gy(e){for(var n=-1,o=e==null?0:e.length,a=0,y=[];++n<o;){var S=e[n];S&&(y[a++]=S)}return y}function Vy(){var e=arguments.length;if(!e)return[];for(var n=oe(e-1),o=arguments[0],a=e;a--;)n[a-1]=arguments[a];return Sr(We(o)?Gt(o):[o],It(n,1))}var Zy=Ge(function(e,n){return wt(e)?fo(e,It(n,1,wt,!0)):[]}),Ky=Ge(function(e,n){var o=_n(n);return wt(o)&&(o=r),wt(e)?fo(e,It(n,1,wt,!0),Ne(o,2)):[]}),Qy=Ge(function(e,n){var o=_n(n);return wt(o)&&(o=r),wt(e)?fo(e,It(n,1,wt,!0),r,o):[]});function Jy(e,n,o){var a=e==null?0:e.length;return a?(n=o||n===r?1:Ye(n),wn(e,n<0?0:n,a)):[]}function Xy(e,n,o){var a=e==null?0:e.length;return a?(n=o||n===r?1:Ye(n),n=a-n,wn(e,0,n<0?0:n)):[]}function e2(e,n){return e&&e.length?ks(e,Ne(n,3),!0,!0):[]}function t2(e,n){return e&&e.length?ks(e,Ne(n,3),!0):[]}function n2(e,n,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&zt(e,n,o)&&(o=0,a=y),Vm(e,n,o,a)):[]}function Mh(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:Ye(o);return y<0&&(y=Ot(a+y,0)),hs(e,Ne(n,3),y)}function Rh(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=Ye(o),y=o<0?Ot(a+y,0):Pt(y,a-1)),hs(e,Ne(n,3),y,!0)}function Lh(e){var n=e==null?0:e.length;return n?It(e,1):[]}function r2(e){var n=e==null?0:e.length;return n?It(e,v):[]}function i2(e,n){var o=e==null?0:e.length;return o?(n=n===r?1:Ye(n),It(e,n)):[]}function o2(e){for(var n=-1,o=e==null?0:e.length,a={};++n<o;){var y=e[n];a[y[0]]=y[1]}return a}function kh(e){return e&&e.length?e[0]:r}function s2(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:Ye(o);return y<0&&(y=Ot(a+y,0)),vi(e,n,y)}function a2(e){var n=e==null?0:e.length;return n?wn(e,0,-1):[]}var u2=Ge(function(e){var n=gt(e,xu);return n.length&&n[0]===e[0]?hu(n):[]}),l2=Ge(function(e){var n=_n(e),o=gt(e,xu);return n===_n(o)?n=r:o.pop(),o.length&&o[0]===e[0]?hu(o,Ne(n,2)):[]}),c2=Ge(function(e){var n=_n(e),o=gt(e,xu);return n=typeof n=="function"?n:r,n&&o.pop(),o.length&&o[0]===e[0]?hu(o,r,n):[]});function f2(e,n){return e==null?"":am.call(e,n)}function _n(e){var n=e==null?0:e.length;return n?e[n-1]:r}function h2(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=Ye(o),y=y<0?Ot(a+y,0):Pt(y,a-1)),n===n?qv(e,n,y):hs(e,df,y,!0)}function d2(e,n){return e&&e.length?Yf(e,Ye(n)):r}var p2=Ge(Ih);function Ih(e,n){return e&&e.length&&n&&n.length?vu(e,n):e}function g2(e,n,o){return e&&e.length&&n&&n.length?vu(e,n,Ne(o,2)):e}function v2(e,n,o){return e&&e.length&&n&&n.length?vu(e,n,r,o):e}var m2=Kn(function(e,n){var o=e==null?0:e.length,a=uu(e,n);return Gf(e,gt(n,function(y){return Qn(y,o)?+y:y}).sort(rh)),a});function y2(e,n){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],S=e.length;for(n=Ne(n,3);++a<S;){var P=e[a];n(P,a,e)&&(o.push(P),y.push(a))}return Gf(e,y),o}function $u(e){return e==null?e:fm.call(e)}function w2(e,n,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&zt(e,n,o)?(n=0,o=a):(n=n==null?0:Ye(n),o=o===r?a:Ye(o)),wn(e,n,o)):[]}function _2(e,n){return Ls(e,n)}function b2(e,n,o){return wu(e,n,Ne(o,2))}function x2(e,n){var o=e==null?0:e.length;if(o){var a=Ls(e,n);if(a<o&&Dn(e[a],n))return a}return-1}function S2(e,n){return Ls(e,n,!0)}function C2(e,n,o){return wu(e,n,Ne(o,2),!0)}function A2(e,n){var o=e==null?0:e.length;if(o){var a=Ls(e,n,!0)-1;if(Dn(e[a],n))return a}return-1}function O2(e){return e&&e.length?Zf(e):[]}function T2(e,n){return e&&e.length?Zf(e,Ne(n,2)):[]}function D2(e){var n=e==null?0:e.length;return n?wn(e,1,n):[]}function E2(e,n,o){return e&&e.length?(n=o||n===r?1:Ye(n),wn(e,0,n<0?0:n)):[]}function M2(e,n,o){var a=e==null?0:e.length;return a?(n=o||n===r?1:Ye(n),n=a-n,wn(e,n<0?0:n,a)):[]}function R2(e,n){return e&&e.length?ks(e,Ne(n,3),!1,!0):[]}function L2(e,n){return e&&e.length?ks(e,Ne(n,3)):[]}var k2=Ge(function(e){return Tr(It(e,1,wt,!0))}),I2=Ge(function(e){var n=_n(e);return wt(n)&&(n=r),Tr(It(e,1,wt,!0),Ne(n,2))}),P2=Ge(function(e){var n=_n(e);return n=typeof n=="function"?n:r,Tr(It(e,1,wt,!0),r,n)});function $2(e){return e&&e.length?Tr(e):[]}function N2(e,n){return e&&e.length?Tr(e,Ne(n,2)):[]}function B2(e,n){return n=typeof n=="function"?n:r,e&&e.length?Tr(e,r,n):[]}function Nu(e){if(!(e&&e.length))return[];var n=0;return e=xr(e,function(o){if(wt(o))return n=Ot(o.length,n),!0}),eu(n,function(o){return gt(e,Qa(o))})}function Ph(e,n){if(!(e&&e.length))return[];var o=Nu(e);return n==null?o:gt(o,function(a){return en(n,r,a)})}var j2=Ge(function(e,n){return wt(e)?fo(e,n):[]}),U2=Ge(function(e){return bu(xr(e,wt))}),z2=Ge(function(e){var n=_n(e);return wt(n)&&(n=r),bu(xr(e,wt),Ne(n,2))}),F2=Ge(function(e){var n=_n(e);return n=typeof n=="function"?n:r,bu(xr(e,wt),r,n)}),W2=Ge(Nu);function Y2(e,n){return Xf(e||[],n||[],co)}function q2(e,n){return Xf(e||[],n||[],go)}var H2=Ge(function(e){var n=e.length,o=n>1?e[n-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Ph(e,o)});function $h(e){var n=x(e);return n.__chain__=!0,n}function G2(e,n){return n(e),e}function Fs(e,n){return n(e)}var V2=Kn(function(e){var n=e.length,o=n?e[0]:0,a=this.__wrapped__,y=function(S){return uu(S,e)};return n>1||this.__actions__.length||!(a instanceof Je)||!Qn(o)?this.thru(y):(a=a.slice(o,+o+(n?1:0)),a.__actions__.push({func:Fs,args:[y],thisArg:r}),new mn(a,this.__chain__).thru(function(S){return n&&!S.length&&S.push(r),S}))});function Z2(){return $h(this)}function K2(){return new mn(this.value(),this.__chain__)}function Q2(){this.__values__===r&&(this.__values__=Kh(this.value()));var e=this.__index__>=this.__values__.length,n=e?r:this.__values__[this.__index__++];return{done:e,value:n}}function J2(){return this}function X2(e){for(var n,o=this;o instanceof Ts;){var a=Eh(o);a.__index__=0,a.__values__=r,n?y.__wrapped__=a:n=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,n}function ew(){var e=this.__wrapped__;if(e instanceof Je){var n=e;return this.__actions__.length&&(n=new Je(this)),n=n.reverse(),n.__actions__.push({func:Fs,args:[$u],thisArg:r}),new mn(n,this.__chain__)}return this.thru($u)}function tw(){return Jf(this.__wrapped__,this.__actions__)}var nw=Is(function(e,n,o){st.call(e,o)?++e[o]:Vn(e,o,1)});function rw(e,n,o){var a=We(e)?ff:Gm;return o&&zt(e,n,o)&&(n=r),a(e,Ne(n,3))}function iw(e,n){var o=We(e)?xr:Pf;return o(e,Ne(n,3))}var ow=lh(Mh),sw=lh(Rh);function aw(e,n){return It(Ws(e,n),1)}function uw(e,n){return It(Ws(e,n),v)}function lw(e,n,o){return o=o===r?1:Ye(o),It(Ws(e,n),o)}function Nh(e,n){var o=We(e)?gn:Or;return o(e,Ne(n,3))}function Bh(e,n){var o=We(e)?Dv:If;return o(e,Ne(n,3))}var cw=Is(function(e,n,o){st.call(e,o)?e[o].push(n):Vn(e,o,[n])});function fw(e,n,o,a){e=Vt(e)?e:Di(e),o=o&&!a?Ye(o):0;var y=e.length;return o<0&&(o=Ot(y+o,0)),Vs(e)?o<=y&&e.indexOf(n,o)>-1:!!y&&vi(e,n,o)>-1}var hw=Ge(function(e,n,o){var a=-1,y=typeof n=="function",S=Vt(e)?oe(e.length):[];return Or(e,function(P){S[++a]=y?en(n,P,o):ho(P,n,o)}),S}),dw=Is(function(e,n,o){Vn(e,o,n)});function Ws(e,n){var o=We(e)?gt:zf;return o(e,Ne(n,3))}function pw(e,n,o,a){return e==null?[]:(We(n)||(n=n==null?[]:[n]),o=a?r:o,We(o)||(o=o==null?[]:[o]),qf(e,n,o))}var gw=Is(function(e,n,o){e[o?0:1].push(n)},function(){return[[],[]]});function vw(e,n,o){var a=We(e)?Za:gf,y=arguments.length<3;return a(e,Ne(n,4),o,y,Or)}function mw(e,n,o){var a=We(e)?Ev:gf,y=arguments.length<3;return a(e,Ne(n,4),o,y,If)}function yw(e,n){var o=We(e)?xr:Pf;return o(e,Hs(Ne(n,3)))}function ww(e){var n=We(e)?Mf:fy;return n(e)}function _w(e,n,o){(o?zt(e,n,o):n===r)?n=1:n=Ye(n);var a=We(e)?Fm:hy;return a(e,n)}function bw(e){var n=We(e)?Wm:py;return n(e)}function xw(e){if(e==null)return 0;if(Vt(e))return Vs(e)?yi(e):e.length;var n=$t(e);return n==W||n==N?e.size:pu(e).length}function Sw(e,n,o){var a=We(e)?Ka:gy;return o&&zt(e,n,o)&&(n=r),a(e,Ne(n,3))}var Cw=Ge(function(e,n){if(e==null)return[];var o=n.length;return o>1&&zt(e,n[0],n[1])?n=[]:o>2&&zt(n[0],n[1],n[2])&&(n=[n[0]]),qf(e,It(n,1),[])}),Ys=im||function(){return kt.Date.now()};function Aw(e,n){if(typeof n!="function")throw new vn(f);return e=Ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function jh(e,n,o){return n=o?r:n,n=e&&n==null?e.length:n,Zn(e,ne,r,r,r,r,n)}function Uh(e,n){var o;if(typeof n!="function")throw new vn(f);return e=Ye(e),function(){return--e>0&&(o=n.apply(this,arguments)),e<=1&&(n=r),o}}var Bu=Ge(function(e,n,o){var a=$;if(o.length){var y=Cr(o,Oi(Bu));a|=q}return Zn(e,a,n,o,y)}),zh=Ge(function(e,n,o){var a=$|Q;if(o.length){var y=Cr(o,Oi(zh));a|=q}return Zn(n,a,e,o,y)});function Fh(e,n,o){n=o?r:n;var a=Zn(e,J,r,r,r,r,r,n);return a.placeholder=Fh.placeholder,a}function Wh(e,n,o){n=o?r:n;var a=Zn(e,se,r,r,r,r,r,n);return a.placeholder=Wh.placeholder,a}function Yh(e,n,o){var a,y,S,P,F,V,ge=0,ve=!1,_e=!1,De=!0;if(typeof e!="function")throw new vn(f);n=bn(n)||0,vt(o)&&(ve=!!o.leading,_e="maxWait"in o,S=_e?Ot(bn(o.maxWait)||0,n):S,De="trailing"in o?!!o.trailing:De);function Pe(_t){var En=a,er=y;return a=y=r,ge=_t,P=e.apply(er,En),P}function Be(_t){return ge=_t,F=yo(Qe,n),ve?Pe(_t):P}function qe(_t){var En=_t-V,er=_t-ge,ld=n-En;return _e?Pt(ld,S-er):ld}function je(_t){var En=_t-V,er=_t-ge;return V===r||En>=n||En<0||_e&&er>=S}function Qe(){var _t=Ys();if(je(_t))return et(_t);F=yo(Qe,qe(_t))}function et(_t){return F=r,De&&a?Pe(_t):(a=y=r,P)}function on(){F!==r&&eh(F),ge=0,a=V=y=F=r}function Ft(){return F===r?P:et(Ys())}function sn(){var _t=Ys(),En=je(_t);if(a=arguments,y=this,V=_t,En){if(F===r)return Be(V);if(_e)return eh(F),F=yo(Qe,n),Pe(V)}return F===r&&(F=yo(Qe,n)),P}return sn.cancel=on,sn.flush=Ft,sn}var Ow=Ge(function(e,n){return kf(e,1,n)}),Tw=Ge(function(e,n,o){return kf(e,bn(n)||0,o)});function Dw(e){return Zn(e,fe)}function qs(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new vn(f);var o=function(){var a=arguments,y=n?n.apply(this,a):a[0],S=o.cache;if(S.has(y))return S.get(y);var P=e.apply(this,a);return o.cache=S.set(y,P)||S,P};return o.cache=new(qs.Cache||Gn),o}qs.Cache=Gn;function Hs(e){if(typeof e!="function")throw new vn(f);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Ew(e){return Uh(2,e)}var Mw=vy(function(e,n){n=n.length==1&&We(n[0])?gt(n[0],tn(Ne())):gt(It(n,1),tn(Ne()));var o=n.length;return Ge(function(a){for(var y=-1,S=Pt(a.length,o);++y<S;)a[y]=n[y].call(this,a[y]);return en(e,this,a)})}),ju=Ge(function(e,n){var o=Cr(n,Oi(ju));return Zn(e,q,r,n,o)}),qh=Ge(function(e,n){var o=Cr(n,Oi(qh));return Zn(e,ue,r,n,o)}),Rw=Kn(function(e,n){return Zn(e,ee,r,r,r,n)});function Lw(e,n){if(typeof e!="function")throw new vn(f);return n=n===r?n:Ye(n),Ge(e,n)}function kw(e,n){if(typeof e!="function")throw new vn(f);return n=n==null?0:Ot(Ye(n),0),Ge(function(o){var a=o[n],y=Er(o,0,n);return a&&Sr(y,a),en(e,this,y)})}function Iw(e,n,o){var a=!0,y=!0;if(typeof e!="function")throw new vn(f);return vt(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Yh(e,n,{leading:a,maxWait:n,trailing:y})}function Pw(e){return jh(e,1)}function $w(e,n){return ju(Su(n),e)}function Nw(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function Bw(e){return yn(e,E)}function jw(e,n){return n=typeof n=="function"?n:r,yn(e,E,n)}function Uw(e){return yn(e,L|E)}function zw(e,n){return n=typeof n=="function"?n:r,yn(e,L|E,n)}function Fw(e,n){return n==null||Lf(e,n,Dt(n))}function Dn(e,n){return e===n||e!==e&&n!==n}var Ww=Bs(fu),Yw=Bs(function(e,n){return e>=n}),Jr=Bf(function(){return arguments}())?Bf:function(e){return yt(e)&&st.call(e,"callee")&&!Cf.call(e,"callee")},We=oe.isArray,qw=of?tn(of):Xm;function Vt(e){return e!=null&&Gs(e.length)&&!Jn(e)}function wt(e){return yt(e)&&Vt(e)}function Hw(e){return e===!0||e===!1||yt(e)&&Ut(e)==re}var Mr=sm||Ku,Gw=sf?tn(sf):ey;function Vw(e){return yt(e)&&e.nodeType===1&&!wo(e)}function Zw(e){if(e==null)return!0;if(Vt(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||Mr(e)||Ti(e)||Jr(e)))return!e.length;var n=$t(e);if(n==W||n==N)return!e.size;if(mo(e))return!pu(e).length;for(var o in e)if(st.call(e,o))return!1;return!0}function Kw(e,n){return po(e,n)}function Qw(e,n,o){o=typeof o=="function"?o:r;var a=o?o(e,n):r;return a===r?po(e,n,r,o):!!a}function Uu(e){if(!yt(e))return!1;var n=Ut(e);return n==be||n==Oe||typeof e.message=="string"&&typeof e.name=="string"&&!wo(e)}function Jw(e){return typeof e=="number"&&Of(e)}function Jn(e){if(!vt(e))return!1;var n=Ut(e);return n==B||n==Y||n==we||n==h}function Hh(e){return typeof e=="number"&&e==Ye(e)}function Gs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=p}function vt(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function yt(e){return e!=null&&typeof e=="object"}var Gh=af?tn(af):ny;function Xw(e,n){return e===n||du(e,n,Mu(n))}function e_(e,n,o){return o=typeof o=="function"?o:r,du(e,n,Mu(n),o)}function t_(e){return Vh(e)&&e!=+e}function n_(e){if(jy(e))throw new Fe(g);return jf(e)}function r_(e){return e===null}function i_(e){return e==null}function Vh(e){return typeof e=="number"||yt(e)&&Ut(e)==K}function wo(e){if(!yt(e)||Ut(e)!=Te)return!1;var n=_s(e);if(n===null)return!0;var o=st.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&vs.call(o)==em}var zu=uf?tn(uf):ry;function o_(e){return Hh(e)&&e>=-9007199254740991&&e<=p}var Zh=lf?tn(lf):iy;function Vs(e){return typeof e=="string"||!We(e)&&yt(e)&&Ut(e)==z}function rn(e){return typeof e=="symbol"||yt(e)&&Ut(e)==te}var Ti=cf?tn(cf):oy;function s_(e){return e===r}function a_(e){return yt(e)&&$t(e)==Ee}function u_(e){return yt(e)&&Ut(e)==Re}var l_=Bs(gu),c_=Bs(function(e,n){return e<=n});function Kh(e){if(!e)return[];if(Vt(e))return Vs(e)?On(e):Gt(e);if(oo&&e[oo])return Fv(e[oo]());var n=$t(e),o=n==W?nu:n==N?ds:Di;return o(e)}function Xn(e){if(!e)return e===0?e:0;if(e=bn(e),e===v||e===-1/0){var n=e<0?-1:1;return n*_}return e===e?e:0}function Ye(e){var n=Xn(e),o=n%1;return n===n?o?n-o:n:0}function Qh(e){return e?Vr(Ye(e),0,m):0}function bn(e){if(typeof e=="number")return e;if(rn(e))return d;if(vt(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=vt(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=vf(e);var o=Un.test(e);return o||Br.test(e)?Av(e.slice(2),o?2:8):Ht.test(e)?d:+e}function Jh(e){return In(e,Zt(e))}function f_(e){return e?Vr(Ye(e),-9007199254740991,p):e===0?e:0}function ot(e){return e==null?"":nn(e)}var h_=Ci(function(e,n){if(mo(n)||Vt(n)){In(n,Dt(n),e);return}for(var o in n)st.call(n,o)&&co(e,o,n[o])}),Xh=Ci(function(e,n){In(n,Zt(n),e)}),Zs=Ci(function(e,n,o,a){In(n,Zt(n),e,a)}),d_=Ci(function(e,n,o,a){In(n,Dt(n),e,a)}),p_=Kn(uu);function g_(e,n){var o=Si(e);return n==null?o:Rf(o,n)}var v_=Ge(function(e,n){e=ut(e);var o=-1,a=n.length,y=a>2?n[2]:r;for(y&&zt(n[0],n[1],y)&&(a=1);++o<a;)for(var S=n[o],P=Zt(S),F=-1,V=P.length;++F<V;){var ge=P[F],ve=e[ge];(ve===r||Dn(ve,_i[ge])&&!st.call(e,ge))&&(e[ge]=S[ge])}return e}),m_=Ge(function(e){return e.push(r,vh),en(ed,r,e)});function y_(e,n){return hf(e,Ne(n,3),kn)}function w_(e,n){return hf(e,Ne(n,3),cu)}function __(e,n){return e==null?e:lu(e,Ne(n,3),Zt)}function b_(e,n){return e==null?e:$f(e,Ne(n,3),Zt)}function x_(e,n){return e&&kn(e,Ne(n,3))}function S_(e,n){return e&&cu(e,Ne(n,3))}function C_(e){return e==null?[]:Ms(e,Dt(e))}function A_(e){return e==null?[]:Ms(e,Zt(e))}function Fu(e,n,o){var a=e==null?r:Zr(e,n);return a===r?o:a}function O_(e,n){return e!=null&&wh(e,n,Zm)}function Wu(e,n){return e!=null&&wh(e,n,Km)}var T_=fh(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=ms.call(n)),e[n]=o},qu(Kt)),D_=fh(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=ms.call(n)),st.call(e,n)?e[n].push(o):e[n]=[o]},Ne),E_=Ge(ho);function Dt(e){return Vt(e)?Ef(e):pu(e)}function Zt(e){return Vt(e)?Ef(e,!0):sy(e)}function M_(e,n){var o={};return n=Ne(n,3),kn(e,function(a,y,S){Vn(o,n(a,y,S),a)}),o}function R_(e,n){var o={};return n=Ne(n,3),kn(e,function(a,y,S){Vn(o,y,n(a,y,S))}),o}var L_=Ci(function(e,n,o){Rs(e,n,o)}),ed=Ci(function(e,n,o,a){Rs(e,n,o,a)}),k_=Kn(function(e,n){var o={};if(e==null)return o;var a=!1;n=gt(n,function(S){return S=Dr(S,e),a||(a=S.length>1),S}),In(e,Du(e),o),a&&(o=yn(o,L|k|E,Ty));for(var y=n.length;y--;)_u(o,n[y]);return o});function I_(e,n){return td(e,Hs(Ne(n)))}var P_=Kn(function(e,n){return e==null?{}:uy(e,n)});function td(e,n){if(e==null)return{};var o=gt(Du(e),function(a){return[a]});return n=Ne(n),Hf(e,o,function(a,y){return n(a,y[0])})}function $_(e,n,o){n=Dr(n,e);var a=-1,y=n.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[Pn(n[a])];S===r&&(a=y,S=o),e=Jn(S)?S.call(e):S}return e}function N_(e,n,o){return e==null?e:go(e,n,o)}function B_(e,n,o,a){return a=typeof a=="function"?a:r,e==null?e:go(e,n,o,a)}var nd=ph(Dt),rd=ph(Zt);function j_(e,n,o){var a=We(e),y=a||Mr(e)||Ti(e);if(n=Ne(n,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:vt(e)?o=Jn(S)?Si(_s(e)):{}:o={}}return(y?gn:kn)(e,function(P,F,V){return n(o,P,F,V)}),o}function U_(e,n){return e==null?!0:_u(e,n)}function z_(e,n,o){return e==null?e:Qf(e,n,Su(o))}function F_(e,n,o,a){return a=typeof a=="function"?a:r,e==null?e:Qf(e,n,Su(o),a)}function Di(e){return e==null?[]:tu(e,Dt(e))}function W_(e){return e==null?[]:tu(e,Zt(e))}function Y_(e,n,o){return o===r&&(o=n,n=r),o!==r&&(o=bn(o),o=o===o?o:0),n!==r&&(n=bn(n),n=n===n?n:0),Vr(bn(e),n,o)}function q_(e,n,o){return n=Xn(n),o===r?(o=n,n=0):o=Xn(o),e=bn(e),Qm(e,n,o)}function H_(e,n,o){if(o&&typeof o!="boolean"&&zt(e,n,o)&&(n=o=r),o===r&&(typeof n=="boolean"?(o=n,n=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&n===r?(e=0,n=1):(e=Xn(e),n===r?(n=e,e=0):n=Xn(n)),e>n){var a=e;e=n,n=a}if(o||e%1||n%1){var y=Tf();return Pt(e+y*(n-e+Cv("1e-"+((y+"").length-1))),n)}return mu(e,n)}var G_=Ai(function(e,n,o){return n=n.toLowerCase(),e+(o?id(n):n)});function id(e){return Yu(ot(e).toLowerCase())}function od(e){return e=ot(e),e&&e.replace(Na,Nv).replace(dn,"")}function V_(e,n,o){e=ot(e),n=nn(n);var a=e.length;o=o===r?a:Vr(Ye(o),0,a);var y=o;return o-=n.length,o>=0&&e.slice(o,y)==n}function Z_(e){return e=ot(e),e&&Rn.test(e)?e.replace(Cn,Bv):e}function K_(e){return e=ot(e),e&&pr.test(e)?e.replace(dr,"\\$&"):e}var Q_=Ai(function(e,n,o){return e+(o?"-":"")+n.toLowerCase()}),J_=Ai(function(e,n,o){return e+(o?" ":"")+n.toLowerCase()}),X_=uh("toLowerCase");function eb(e,n,o){e=ot(e),n=Ye(n);var a=n?yi(e):0;if(!n||a>=n)return e;var y=(n-a)/2;return Ns(Cs(y),o)+e+Ns(Ss(y),o)}function tb(e,n,o){e=ot(e),n=Ye(n);var a=n?yi(e):0;return n&&a<n?e+Ns(n-a,o):e}function nb(e,n,o){e=ot(e),n=Ye(n);var a=n?yi(e):0;return n&&a<n?Ns(n-a,o)+e:e}function rb(e,n,o){return o||n==null?n=0:n&&(n=+n),cm(ot(e).replace(gr,""),n||0)}function ib(e,n,o){return(o?zt(e,n,o):n===r)?n=1:n=Ye(n),yu(ot(e),n)}function ob(){var e=arguments,n=ot(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var sb=Ai(function(e,n,o){return e+(o?"_":"")+n.toLowerCase()});function ab(e,n,o){return o&&typeof o!="number"&&zt(e,n,o)&&(n=o=r),o=o===r?m:o>>>0,o?(e=ot(e),e&&(typeof n=="string"||n!=null&&!zu(n))&&(n=nn(n),!n&&mi(e))?Er(On(e),0,o):e.split(n,o)):[]}var ub=Ai(function(e,n,o){return e+(o?" ":"")+Yu(n)});function lb(e,n,o){return e=ot(e),o=o==null?0:Vr(Ye(o),0,e.length),n=nn(n),e.slice(o,o+n.length)==n}function cb(e,n,o){var a=x.templateSettings;o&&zt(e,n,o)&&(n=r),e=ot(e),n=Zs({},n,a,gh);var y=Zs({},n.imports,a.imports,gh),S=Dt(y),P=tu(y,S),F,V,ge=0,ve=n.interpolate||vr,_e="__p += '",De=ru((n.escape||vr).source+"|"+ve.source+"|"+(ve===nt?Gi:vr).source+"|"+(n.evaluate||vr).source+"|$","g"),Pe="//# sourceURL="+(st.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wv+"]")+`
127
- `;e.replace(De,function(je,Qe,et,on,Ft,sn){return et||(et=on),_e+=e.slice(ge,sn).replace(Ba,jv),Qe&&(F=!0,_e+=`' +
124
+ */var j0=zi.exports,Hc;function Y0(){return Hc||(Hc=1,function(i,n){(function(){var r,s="4.17.21",l=200,d="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,O="__lodash_placeholder__",R=1,N=2,E=4,I=1,$=2,j=1,X=2,te=4,ne=8,ue=16,V=32,ce=64,oe=128,ee=256,de=512,pe=30,re="...",Ae=800,Se=16,Y=1,L=2,A=3,g=1/0,p=9007199254740991,w=17976931348623157e292,h=NaN,m=4294967295,D=m-1,z=m>>>1,Z=[["ary",oe],["bind",j],["bindKey",X],["curry",ne],["curryRight",ue],["flip",de],["partial",V],["partialRight",ce],["rearg",ee]],ae="[object Arguments]",fe="[object Array]",_e="[object AsyncFunction]",J="[object Boolean]",he="[object Date]",De="[object DOMException]",be="[object Error]",P="[object Function]",q="[object GeneratorFunction]",F="[object Map]",K="[object Number]",se="[object Null]",Oe="[object Object]",u="[object Promise]",f="[object Proxy]",_="[object RegExp]",M="[object Set]",W="[object String]",Q="[object Symbol]",xe="[object Undefined]",Me="[object WeakMap]",Ie="[object WeakSet]",Ce="[object ArrayBuffer]",ke="[object DataView]",Ne="[object Float32Array]",Re="[object Float64Array]",Ge="[object Int8Array]",Je="[object Int16Array]",Ve="[object Int32Array]",xt="[object Uint8Array]",vt="[object Uint8ClampedArray]",ut="[object Uint16Array]",qt="[object Uint32Array]",Dt=/\b__p \+= '';/g,$n=/\b(__p \+=) '' \+/g,fn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,xn=/[&<>"']/g,Bn=RegExp(Qt.source),En=RegExp(xn.source),it=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,Sn=/<%=([\s\S]+?)%>/g,dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dt=/^\w*$/,Mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/[\\^$.*+?()[\]{}|]/g,gr=RegExp(pr.source),mr=/^\s+/,ci=/\s/,fi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hi=/\{\n\/\* \[wrapped with (.+)\] \*/,Et=/,? & /,La=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rt=/[()=,{}\[\]\/\s]/,ka=/\\(\\)?/g,Gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vi=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,jn=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,Br=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Ia=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,Pa=/['\n\r\u2028\u2029\\]/g,yr="\\ud800-\\udfff",jr="\\u0300-\\u036f",Na="\\ufe20-\\ufe2f",$a="\\u20d0-\\u20ff",es=jr+Na+$a,Zi="\\u2700-\\u27bf",ts="a-z\\xdf-\\xf6\\xf8-\\xff",Ba="\\xac\\xb1\\xd7\\xf7",ja="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ya="\\u2000-\\u206f",Ki=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qi="A-Z\\xc0-\\xd6\\xd8-\\xde",di="\\ufe0e\\ufe0f",Ji=Ba+ja+Ya+Ki,Un="['’]",ns="["+yr+"]",Yr="["+Ji+"]",Ur="["+es+"]",rs="\\d+",Xi="["+Zi+"]",eo="["+ts+"]",is="[^"+yr+Ji+rs+Zi+ts+Qi+"]",to="\\ud83c[\\udffb-\\udfff]",pi="(?:"+Ur+"|"+to+")",no="[^"+yr+"]",Rn="(?:\\ud83c[\\udde6-\\uddff]){2}",Cn="[\\ud800-\\udbff][\\udc00-\\udfff]",Fn="["+Qi+"]",_r="\\u200d",Fr="(?:"+eo+"|"+is+")",gi="(?:"+Fn+"|"+is+")",os="(?:"+Un+"(?:d|ll|m|re|s|t|ve))?",ss="(?:"+Un+"(?:D|LL|M|RE|S|T|VE))?",Wr=pi+"?",as="["+di+"]?",ro="(?:"+_r+"(?:"+[no,Rn,Cn].join("|")+")"+as+Wr+")*",Ua="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ze=as+Wr+ro,Jt="(?:"+[Xi,Rn,Cn].join("|")+")"+Ze,wr="(?:"+[no+Ur+"?",Ur,Rn,Cn,ns].join("|")+")",br=RegExp(Un,"g"),hn=RegExp(Ur,"g"),Xt=RegExp(to+"(?="+to+")|"+wr+Ze,"g"),xr=RegExp([Fn+"?"+eo+"+"+os+"(?="+[Yr,Fn,"$"].join("|")+")",gi+"+"+ss+"(?="+[Yr,Fn+Fr,"$"].join("|")+")",Fn+"?"+Fr+"+"+os,Fn+"+"+ss,Fa,Ua,rs,Jt].join("|"),"g"),Wn=RegExp("["+_r+yr+es+di+"]"),zn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sm=["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"],am=-1,ft={};ft[Ne]=ft[Re]=ft[Ge]=ft[Je]=ft[Ve]=ft[xt]=ft[vt]=ft[ut]=ft[qt]=!0,ft[ae]=ft[fe]=ft[Ce]=ft[J]=ft[ke]=ft[he]=ft[be]=ft[P]=ft[F]=ft[K]=ft[Oe]=ft[_]=ft[M]=ft[W]=ft[Me]=!1;var ct={};ct[ae]=ct[fe]=ct[Ce]=ct[ke]=ct[J]=ct[he]=ct[Ne]=ct[Re]=ct[Ge]=ct[Je]=ct[Ve]=ct[F]=ct[K]=ct[Oe]=ct[_]=ct[M]=ct[W]=ct[Q]=ct[xt]=ct[vt]=ct[ut]=ct[qt]=!0,ct[be]=ct[P]=ct[Me]=!1;var um={À:"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"},lm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},fm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hm=parseFloat,dm=parseInt,ef=typeof bo=="object"&&bo&&bo.Object===Object&&bo,pm=typeof self=="object"&&self&&self.Object===Object&&self,Lt=ef||pm||Function("return this")(),Wa=n&&!n.nodeType&&n,zr=Wa&&!0&&i&&!i.nodeType&&i,tf=zr&&zr.exports===Wa,za=tf&&ef.process,dn=function(){try{var H=zr&&zr.require&&zr.require("util").types;return H||za&&za.binding&&za.binding("util")}catch{}}(),nf=dn&&dn.isArrayBuffer,rf=dn&&dn.isDate,of=dn&&dn.isMap,sf=dn&&dn.isRegExp,af=dn&&dn.isSet,uf=dn&&dn.isTypedArray;function en(H,le,ie){switch(ie.length){case 0:return H.call(le);case 1:return H.call(le,ie[0]);case 2:return H.call(le,ie[0],ie[1]);case 3:return H.call(le,ie[0],ie[1],ie[2])}return H.apply(le,ie)}function gm(H,le,ie,Le){for(var Fe=-1,nt=H==null?0:H.length;++Fe<nt;){var St=H[Fe];le(Le,St,ie(St),H)}return Le}function pn(H,le){for(var ie=-1,Le=H==null?0:H.length;++ie<Le&&le(H[ie],ie,H)!==!1;);return H}function mm(H,le){for(var ie=H==null?0:H.length;ie--&&le(H[ie],ie,H)!==!1;);return H}function lf(H,le){for(var ie=-1,Le=H==null?0:H.length;++ie<Le;)if(!le(H[ie],ie,H))return!1;return!0}function Sr(H,le){for(var ie=-1,Le=H==null?0:H.length,Fe=0,nt=[];++ie<Le;){var St=H[ie];le(St,ie,H)&&(nt[Fe++]=St)}return nt}function us(H,le){var ie=H==null?0:H.length;return!!ie&&mi(H,le,0)>-1}function qa(H,le,ie){for(var Le=-1,Fe=H==null?0:H.length;++Le<Fe;)if(ie(le,H[Le]))return!0;return!1}function pt(H,le){for(var ie=-1,Le=H==null?0:H.length,Fe=Array(Le);++ie<Le;)Fe[ie]=le(H[ie],ie,H);return Fe}function Cr(H,le){for(var ie=-1,Le=le.length,Fe=H.length;++ie<Le;)H[Fe+ie]=le[ie];return H}function Ha(H,le,ie,Le){var Fe=-1,nt=H==null?0:H.length;for(Le&&nt&&(ie=H[++Fe]);++Fe<nt;)ie=le(ie,H[Fe],Fe,H);return ie}function vm(H,le,ie,Le){var Fe=H==null?0:H.length;for(Le&&Fe&&(ie=H[--Fe]);Fe--;)ie=le(ie,H[Fe],Fe,H);return ie}function Ga(H,le){for(var ie=-1,Le=H==null?0:H.length;++ie<Le;)if(le(H[ie],ie,H))return!0;return!1}var ym=Va("length");function _m(H){return H.split("")}function wm(H){return H.match(La)||[]}function cf(H,le,ie){var Le;return ie(H,function(Fe,nt,St){if(le(Fe,nt,St))return Le=nt,!1}),Le}function ls(H,le,ie,Le){for(var Fe=H.length,nt=ie+(Le?1:-1);Le?nt--:++nt<Fe;)if(le(H[nt],nt,H))return nt;return-1}function mi(H,le,ie){return le===le?Lm(H,le,ie):ls(H,ff,ie)}function bm(H,le,ie,Le){for(var Fe=ie-1,nt=H.length;++Fe<nt;)if(Le(H[Fe],le))return Fe;return-1}function ff(H){return H!==H}function hf(H,le){var ie=H==null?0:H.length;return ie?Ka(H,le)/ie:h}function Va(H){return function(le){return le==null?r:le[H]}}function Za(H){return function(le){return H==null?r:H[le]}}function df(H,le,ie,Le,Fe){return Fe(H,function(nt,St,lt){ie=Le?(Le=!1,nt):le(ie,nt,St,lt)}),ie}function xm(H,le){var ie=H.length;for(H.sort(le);ie--;)H[ie]=H[ie].value;return H}function Ka(H,le){for(var ie,Le=-1,Fe=H.length;++Le<Fe;){var nt=le(H[Le]);nt!==r&&(ie=ie===r?nt:ie+nt)}return ie}function Qa(H,le){for(var ie=-1,Le=Array(H);++ie<H;)Le[ie]=le(ie);return Le}function Sm(H,le){return pt(le,function(ie){return[ie,H[ie]]})}function pf(H){return H&&H.slice(0,yf(H)+1).replace(mr,"")}function tn(H){return function(le){return H(le)}}function Ja(H,le){return pt(le,function(ie){return H[ie]})}function io(H,le){return H.has(le)}function gf(H,le){for(var ie=-1,Le=H.length;++ie<Le&&mi(le,H[ie],0)>-1;);return ie}function mf(H,le){for(var ie=H.length;ie--&&mi(le,H[ie],0)>-1;);return ie}function Cm(H,le){for(var ie=H.length,Le=0;ie--;)H[ie]===le&&++Le;return Le}var Am=Za(um),Dm=Za(lm);function Om(H){return"\\"+fm[H]}function Tm(H,le){return H==null?r:H[le]}function vi(H){return Wn.test(H)}function Mm(H){return zn.test(H)}function Em(H){for(var le,ie=[];!(le=H.next()).done;)ie.push(le.value);return ie}function Xa(H){var le=-1,ie=Array(H.size);return H.forEach(function(Le,Fe){ie[++le]=[Fe,Le]}),ie}function vf(H,le){return function(ie){return H(le(ie))}}function Ar(H,le){for(var ie=-1,Le=H.length,Fe=0,nt=[];++ie<Le;){var St=H[ie];(St===le||St===O)&&(H[ie]=O,nt[Fe++]=ie)}return nt}function cs(H){var le=-1,ie=Array(H.size);return H.forEach(function(Le){ie[++le]=Le}),ie}function Rm(H){var le=-1,ie=Array(H.size);return H.forEach(function(Le){ie[++le]=[Le,Le]}),ie}function Lm(H,le,ie){for(var Le=ie-1,Fe=H.length;++Le<Fe;)if(H[Le]===le)return Le;return-1}function km(H,le,ie){for(var Le=ie+1;Le--;)if(H[Le]===le)return Le;return Le}function yi(H){return vi(H)?Pm(H):ym(H)}function An(H){return vi(H)?Nm(H):_m(H)}function yf(H){for(var le=H.length;le--&&ci.test(H.charAt(le)););return le}var Im=Za(cm);function Pm(H){for(var le=Xt.lastIndex=0;Xt.test(H);)++le;return le}function Nm(H){return H.match(Xt)||[]}function $m(H){return H.match(xr)||[]}var Bm=function H(le){le=le==null?Lt:_i.defaults(Lt.Object(),le,_i.pick(Lt,sm));var ie=le.Array,Le=le.Date,Fe=le.Error,nt=le.Function,St=le.Math,lt=le.Object,eu=le.RegExp,jm=le.String,gn=le.TypeError,fs=ie.prototype,Ym=nt.prototype,wi=lt.prototype,hs=le["__core-js_shared__"],ds=Ym.toString,st=wi.hasOwnProperty,Um=0,_f=function(){var e=/[^.]+$/.exec(hs&&hs.keys&&hs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ps=wi.toString,Fm=ds.call(lt),Wm=Lt._,zm=eu("^"+ds.call(st).replace(pr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gs=tf?le.Buffer:r,Dr=le.Symbol,ms=le.Uint8Array,wf=gs?gs.allocUnsafe:r,vs=vf(lt.getPrototypeOf,lt),bf=lt.create,xf=wi.propertyIsEnumerable,ys=fs.splice,Sf=Dr?Dr.isConcatSpreadable:r,oo=Dr?Dr.iterator:r,qr=Dr?Dr.toStringTag:r,_s=function(){try{var e=Kr(lt,"defineProperty");return e({},"",{}),e}catch{}}(),qm=le.clearTimeout!==Lt.clearTimeout&&le.clearTimeout,Hm=Le&&Le.now!==Lt.Date.now&&Le.now,Gm=le.setTimeout!==Lt.setTimeout&&le.setTimeout,ws=St.ceil,bs=St.floor,tu=lt.getOwnPropertySymbols,Vm=gs?gs.isBuffer:r,Cf=le.isFinite,Zm=fs.join,Km=vf(lt.keys,lt),Ct=St.max,Pt=St.min,Qm=Le.now,Jm=le.parseInt,Af=St.random,Xm=fs.reverse,nu=Kr(le,"DataView"),so=Kr(le,"Map"),ru=Kr(le,"Promise"),bi=Kr(le,"Set"),ao=Kr(le,"WeakMap"),uo=Kr(lt,"create"),xs=ao&&new ao,xi={},ev=Qr(nu),tv=Qr(so),nv=Qr(ru),rv=Qr(bi),iv=Qr(ao),Ss=Dr?Dr.prototype:r,lo=Ss?Ss.valueOf:r,Df=Ss?Ss.toString:r;function b(e){if(yt(e)&&!We(e)&&!(e instanceof Xe)){if(e instanceof mn)return e;if(st.call(e,"__wrapped__"))return Oh(e)}return new mn(e)}var Si=function(){function e(){}return function(t){if(!gt(t))return{};if(bf)return bf(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Cs(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:it,evaluate:It,interpolate:Sn,variable:"",imports:{_:b}},b.prototype=Cs.prototype,b.prototype.constructor=b,mn.prototype=Si(Cs.prototype),mn.prototype.constructor=mn;function Xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function ov(){var e=new Xe(this.__wrapped__);return e.__actions__=Gt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Gt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Gt(this.__views__),e}function sv(){if(this.__filtered__){var e=new Xe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function av(){var e=this.__wrapped__.value(),t=this.__dir__,o=We(e),a=t<0,y=o?e.length:0,S=_y(0,y,this.__views__),k=S.start,U=S.end,G=U-k,ge=a?U:k-1,me=this.__iteratees__,we=me.length,Te=0,Pe=Pt(G,this.__takeCount__);if(!o||!a&&y==G&&Pe==G)return Kf(e,this.__actions__);var Be=[];e:for(;G--&&Te<Pe;){ge+=t;for(var qe=-1,je=e[ge];++qe<we;){var Qe=me[qe],tt=Qe.iteratee,on=Qe.type,Ft=tt(je);if(on==L)je=Ft;else if(!Ft){if(on==Y)continue e;break e}}Be[Te++]=je}return Be}Xe.prototype=Si(Cs.prototype),Xe.prototype.constructor=Xe;function Hr(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 uv(){this.__data__=uo?uo(null):{},this.size=0}function lv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function cv(e){var t=this.__data__;if(uo){var o=t[e];return o===x?r:o}return st.call(t,e)?t[e]:r}function fv(e){var t=this.__data__;return uo?t[e]!==r:st.call(t,e)}function hv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=uo&&t===r?x:t,this}Hr.prototype.clear=uv,Hr.prototype.delete=lv,Hr.prototype.get=cv,Hr.prototype.has=fv,Hr.prototype.set=hv;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 dv(){this.__data__=[],this.size=0}function pv(e){var t=this.__data__,o=As(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():ys.call(t,o,1),--this.size,!0}function gv(e){var t=this.__data__,o=As(t,e);return o<0?r:t[o][1]}function mv(e){return As(this.__data__,e)>-1}function vv(e,t){var o=this.__data__,a=As(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}qn.prototype.clear=dv,qn.prototype.delete=pv,qn.prototype.get=gv,qn.prototype.has=mv,qn.prototype.set=vv;function Hn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function yv(){this.size=0,this.__data__={hash:new Hr,map:new(so||qn),string:new Hr}}function _v(e){var t=$s(this,e).delete(e);return this.size-=t?1:0,t}function wv(e){return $s(this,e).get(e)}function bv(e){return $s(this,e).has(e)}function xv(e,t){var o=$s(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Hn.prototype.clear=yv,Hn.prototype.delete=_v,Hn.prototype.get=wv,Hn.prototype.has=bv,Hn.prototype.set=xv;function Gr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Hn;++t<o;)this.add(e[t])}function Sv(e){return this.__data__.set(e,x),this}function Cv(e){return this.__data__.has(e)}Gr.prototype.add=Gr.prototype.push=Sv,Gr.prototype.has=Cv;function Dn(e){var t=this.__data__=new qn(e);this.size=t.size}function Av(){this.__data__=new qn,this.size=0}function Dv(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Ov(e){return this.__data__.get(e)}function Tv(e){return this.__data__.has(e)}function Mv(e,t){var o=this.__data__;if(o instanceof qn){var a=o.__data__;if(!so||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Hn(a)}return o.set(e,t),this.size=o.size,this}Dn.prototype.clear=Av,Dn.prototype.delete=Dv,Dn.prototype.get=Ov,Dn.prototype.has=Tv,Dn.prototype.set=Mv;function Of(e,t){var o=We(e),a=!o&&Jr(e),y=!o&&!a&&Rr(e),S=!o&&!a&&!y&&Oi(e),k=o||a||y||S,U=k?Qa(e.length,jm):[],G=U.length;for(var ge in e)(t||st.call(e,ge))&&!(k&&(ge=="length"||y&&(ge=="offset"||ge=="parent")||S&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Kn(ge,G)))&&U.push(ge);return U}function Tf(e){var t=e.length;return t?e[pu(0,t-1)]:r}function Ev(e,t){return Bs(Gt(e),Vr(t,0,e.length))}function Rv(e){return Bs(Gt(e))}function iu(e,t,o){(o!==r&&!On(e[t],o)||o===r&&!(t in e))&&Gn(e,t,o)}function co(e,t,o){var a=e[t];(!(st.call(e,t)&&On(a,o))||o===r&&!(t in e))&&Gn(e,t,o)}function As(e,t){for(var o=e.length;o--;)if(On(e[o][0],t))return o;return-1}function Lv(e,t,o,a){return Or(e,function(y,S,k){t(a,y,o(y),k)}),a}function Mf(e,t){return e&&kn(t,Ot(t),e)}function kv(e,t){return e&&kn(t,Zt(t),e)}function Gn(e,t,o){t=="__proto__"&&_s?_s(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ou(e,t){for(var o=-1,a=t.length,y=ie(a),S=e==null;++o<a;)y[o]=S?r:ju(e,t[o]);return y}function Vr(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,S){var k,U=t&R,G=t&N,ge=t&E;if(o&&(k=y?o(e,a,y,S):o(e)),k!==r)return k;if(!gt(e))return e;var me=We(e);if(me){if(k=by(e),!U)return Gt(e,k)}else{var we=Nt(e),Te=we==P||we==q;if(Rr(e))return Xf(e,U);if(we==Oe||we==ae||Te&&!y){if(k=G||Te?{}:yh(e),!U)return G?cy(e,kv(k,e)):ly(e,Mf(k,e))}else{if(!ct[we])return y?e:{};k=xy(e,we,U)}}S||(S=new Dn);var Pe=S.get(e);if(Pe)return Pe;S.set(e,k),Gh(e)?e.forEach(function(je){k.add(vn(je,t,o,je,e,S))}):qh(e)&&e.forEach(function(je,Qe){k.set(Qe,vn(je,t,o,Qe,e,S))});var Be=ge?G?Au:Cu:G?Zt:Ot,qe=me?r:Be(e);return pn(qe||e,function(je,Qe){qe&&(Qe=je,je=e[Qe]),co(k,Qe,vn(je,t,o,Qe,e,S))}),k}function Iv(e){var t=Ot(e);return function(o){return Ef(o,e,t)}}function Ef(e,t,o){var a=o.length;if(e==null)return!a;for(e=lt(e);a--;){var y=o[a],S=t[y],k=e[y];if(k===r&&!(y in e)||!S(k))return!1}return!0}function Rf(e,t,o){if(typeof e!="function")throw new gn(v);return yo(function(){e.apply(r,o)},t)}function fo(e,t,o,a){var y=-1,S=us,k=!0,U=e.length,G=[],ge=t.length;if(!U)return G;o&&(t=pt(t,tn(o))),a?(S=qa,k=!1):t.length>=l&&(S=io,k=!1,t=new Gr(t));e:for(;++y<U;){var me=e[y],we=o==null?me:o(me);if(me=a||me!==0?me:0,k&&we===we){for(var Te=ge;Te--;)if(t[Te]===we)continue e;G.push(me)}else S(t,we,a)||G.push(me)}return G}var Or=ih(Ln),Lf=ih(au,!0);function Pv(e,t){var o=!0;return Or(e,function(a,y,S){return o=!!t(a,y,S),o}),o}function Ds(e,t,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],k=t(S);if(k!=null&&(U===r?k===k&&!rn(k):o(k,U)))var U=k,G=S}return G}function Nv(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 Or(e,function(a,y,S){t(a,y,S)&&o.push(a)}),o}function kt(e,t,o,a,y){var S=-1,k=e.length;for(o||(o=Cy),y||(y=[]);++S<k;){var U=e[S];t>0&&o(U)?t>1?kt(U,t-1,o,a,y):Cr(y,U):a||(y[y.length]=U)}return y}var su=oh(),If=oh(!0);function Ln(e,t){return e&&su(e,t,Ot)}function au(e,t){return e&&If(e,t,Ot)}function Os(e,t){return Sr(t,function(o){return Qn(e[o])})}function Zr(e,t){t=Mr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[In(t[o++])];return o&&o==a?e:r}function Pf(e,t,o){var a=t(e);return We(e)?a:Cr(a,o(e))}function Yt(e){return e==null?e===r?xe:se:qr&&qr in lt(e)?yy(e):Ry(e)}function uu(e,t){return e>t}function $v(e,t){return e!=null&&st.call(e,t)}function Bv(e,t){return e!=null&&t in lt(e)}function jv(e,t,o){return e>=Pt(t,o)&&e<Ct(t,o)}function lu(e,t,o){for(var a=o?qa:us,y=e[0].length,S=e.length,k=S,U=ie(S),G=1/0,ge=[];k--;){var me=e[k];k&&t&&(me=pt(me,tn(t))),G=Pt(me.length,G),U[k]=!o&&(t||y>=120&&me.length>=120)?new Gr(k&&me):r}me=e[0];var we=-1,Te=U[0];e:for(;++we<y&&ge.length<G;){var Pe=me[we],Be=t?t(Pe):Pe;if(Pe=o||Pe!==0?Pe:0,!(Te?io(Te,Be):a(ge,Be,o))){for(k=S;--k;){var qe=U[k];if(!(qe?io(qe,Be):a(e[k],Be,o)))continue e}Te&&Te.push(Be),ge.push(Pe)}}return ge}function Yv(e,t,o,a){return Ln(e,function(y,S,k){t(a,o(y),S,k)}),a}function ho(e,t,o){t=Mr(t,e),e=xh(e,t);var a=e==null?e:e[In(_n(t))];return a==null?r:en(a,e,o)}function Nf(e){return yt(e)&&Yt(e)==ae}function Uv(e){return yt(e)&&Yt(e)==Ce}function Fv(e){return yt(e)&&Yt(e)==he}function po(e,t,o,a,y){return e===t?!0:e==null||t==null||!yt(e)&&!yt(t)?e!==e&&t!==t:Wv(e,t,o,a,po,y)}function Wv(e,t,o,a,y,S){var k=We(e),U=We(t),G=k?fe:Nt(e),ge=U?fe:Nt(t);G=G==ae?Oe:G,ge=ge==ae?Oe:ge;var me=G==Oe,we=ge==Oe,Te=G==ge;if(Te&&Rr(e)){if(!Rr(t))return!1;k=!0,me=!1}if(Te&&!me)return S||(S=new Dn),k||Oi(e)?gh(e,t,o,a,y,S):my(e,t,G,o,a,y,S);if(!(o&I)){var Pe=me&&st.call(e,"__wrapped__"),Be=we&&st.call(t,"__wrapped__");if(Pe||Be){var qe=Pe?e.value():e,je=Be?t.value():t;return S||(S=new Dn),y(qe,je,o,a,S)}}return Te?(S||(S=new Dn),vy(e,t,o,a,y,S)):!1}function zv(e){return yt(e)&&Nt(e)==F}function cu(e,t,o,a){var y=o.length,S=y,k=!a;if(e==null)return!S;for(e=lt(e);y--;){var U=o[y];if(k&&U[2]?U[1]!==e[U[0]]:!(U[0]in e))return!1}for(;++y<S;){U=o[y];var G=U[0],ge=e[G],me=U[1];if(k&&U[2]){if(ge===r&&!(G in e))return!1}else{var we=new Dn;if(a)var Te=a(ge,me,G,e,t,we);if(!(Te===r?po(me,ge,I|$,a,we):Te))return!1}}return!0}function $f(e){if(!gt(e)||Dy(e))return!1;var t=Qn(e)?zm:Yn;return t.test(Qr(e))}function qv(e){return yt(e)&&Yt(e)==_}function Hv(e){return yt(e)&&Nt(e)==M}function Gv(e){return yt(e)&&zs(e.length)&&!!ft[Yt(e)]}function Bf(e){return typeof e=="function"?e:e==null?Kt:typeof e=="object"?We(e)?Uf(e[0],e[1]):Yf(e):sd(e)}function fu(e){if(!vo(e))return Km(e);var t=[];for(var o in lt(e))st.call(e,o)&&o!="constructor"&&t.push(o);return t}function Vv(e){if(!gt(e))return Ey(e);var t=vo(e),o=[];for(var a in e)a=="constructor"&&(t||!st.call(e,a))||o.push(a);return o}function hu(e,t){return e<t}function jf(e,t){var o=-1,a=Vt(e)?ie(e.length):[];return Or(e,function(y,S,k){a[++o]=t(y,S,k)}),a}function Yf(e){var t=Ou(e);return t.length==1&&t[0][2]?wh(t[0][0],t[0][1]):function(o){return o===e||cu(o,e,t)}}function Uf(e,t){return Mu(e)&&_h(t)?wh(In(e),t):function(o){var a=ju(o,e);return a===r&&a===t?Yu(o,e):po(t,a,I|$)}}function Ts(e,t,o,a,y){e!==t&&su(t,function(S,k){if(y||(y=new Dn),gt(S))Zv(e,t,k,o,Ts,a,y);else{var U=a?a(Ru(e,k),S,k+"",e,t,y):r;U===r&&(U=S),iu(e,k,U)}},Zt)}function Zv(e,t,o,a,y,S,k){var U=Ru(e,o),G=Ru(t,o),ge=k.get(G);if(ge){iu(e,o,ge);return}var me=S?S(U,G,o+"",e,t,k):r,we=me===r;if(we){var Te=We(G),Pe=!Te&&Rr(G),Be=!Te&&!Pe&&Oi(G);me=G,Te||Pe||Be?We(U)?me=U:_t(U)?me=Gt(U):Pe?(we=!1,me=Xf(G,!0)):Be?(we=!1,me=eh(G,!0)):me=[]:_o(G)||Jr(G)?(me=U,Jr(U)?me=Kh(U):(!gt(U)||Qn(U))&&(me=yh(G))):we=!1}we&&(k.set(G,me),y(me,G,a,S,k),k.delete(G)),iu(e,o,me)}function Ff(e,t){var o=e.length;if(o)return t+=t<0?o:0,Kn(t,o)?e[t]:r}function Wf(e,t,o){t.length?t=pt(t,function(S){return We(S)?function(k){return Zr(k,S.length===1?S[0]:S)}:S}):t=[Kt];var a=-1;t=pt(t,tn($e()));var y=jf(e,function(S,k,U){var G=pt(t,function(ge){return ge(S)});return{criteria:G,index:++a,value:S}});return xm(y,function(S,k){return uy(S,k,o)})}function Kv(e,t){return zf(e,t,function(o,a){return Yu(e,a)})}function zf(e,t,o){for(var a=-1,y=t.length,S={};++a<y;){var k=t[a],U=Zr(e,k);o(U,k)&&go(S,Mr(k,e),U)}return S}function Qv(e){return function(t){return Zr(t,e)}}function du(e,t,o,a){var y=a?bm:mi,S=-1,k=t.length,U=e;for(e===t&&(t=Gt(t)),o&&(U=pt(e,tn(o)));++S<k;)for(var G=0,ge=t[S],me=o?o(ge):ge;(G=y(U,me,G,a))>-1;)U!==e&&ys.call(U,G,1),ys.call(e,G,1);return e}function qf(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==S){var S=y;Kn(y)?ys.call(e,y,1):vu(e,y)}}return e}function pu(e,t){return e+bs(Af()*(t-e+1))}function Jv(e,t,o,a){for(var y=-1,S=Ct(ws((t-e)/(o||1)),0),k=ie(S);S--;)k[a?S:++y]=e,e+=o;return k}function gu(e,t){var o="";if(!e||t<1||t>p)return o;do t%2&&(o+=e),t=bs(t/2),t&&(e+=e);while(t);return o}function He(e,t){return Lu(bh(e,t,Kt),e+"")}function Xv(e){return Tf(Ti(e))}function ey(e,t){var o=Ti(e);return Bs(o,Vr(t,0,o.length))}function go(e,t,o,a){if(!gt(e))return e;t=Mr(t,e);for(var y=-1,S=t.length,k=S-1,U=e;U!=null&&++y<S;){var G=In(t[y]),ge=o;if(G==="__proto__"||G==="constructor"||G==="prototype")return e;if(y!=k){var me=U[G];ge=a?a(me,G,U):r,ge===r&&(ge=gt(me)?me:Kn(t[y+1])?[]:{})}co(U,G,ge),U=U[G]}return e}var Hf=xs?function(e,t){return xs.set(e,t),e}:Kt,ty=_s?function(e,t){return _s(e,"toString",{configurable:!0,enumerable:!1,value:Fu(t),writable:!0})}:Kt;function ny(e){return Bs(Ti(e))}function yn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var S=ie(y);++a<y;)S[a]=e[a+t];return S}function ry(e,t){var o;return Or(e,function(a,y,S){return o=t(a,y,S),!o}),!!o}function Ms(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=z){for(;a<y;){var S=a+y>>>1,k=e[S];k!==null&&!rn(k)&&(o?k<=t:k<t)?a=S+1:y=S}return y}return mu(e,t,Kt,o)}function mu(e,t,o,a){var y=0,S=e==null?0:e.length;if(S===0)return 0;t=o(t);for(var k=t!==t,U=t===null,G=rn(t),ge=t===r;y<S;){var me=bs((y+S)/2),we=o(e[me]),Te=we!==r,Pe=we===null,Be=we===we,qe=rn(we);if(k)var je=a||Be;else ge?je=Be&&(a||Te):U?je=Be&&Te&&(a||!Pe):G?je=Be&&Te&&!Pe&&(a||!qe):Pe||qe?je=!1:je=a?we<=t:we<t;je?y=me+1:S=me}return Pt(S,D)}function Gf(e,t){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var k=e[o],U=t?t(k):k;if(!o||!On(U,G)){var G=U;S[y++]=k===0?0:k}}return S}function Vf(e){return typeof e=="number"?e:rn(e)?h:+e}function nn(e){if(typeof e=="string")return e;if(We(e))return pt(e,nn)+"";if(rn(e))return Df?Df.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Tr(e,t,o){var a=-1,y=us,S=e.length,k=!0,U=[],G=U;if(o)k=!1,y=qa;else if(S>=l){var ge=t?null:py(e);if(ge)return cs(ge);k=!1,y=io,G=new Gr}else G=t?[]:U;e:for(;++a<S;){var me=e[a],we=t?t(me):me;if(me=o||me!==0?me:0,k&&we===we){for(var Te=G.length;Te--;)if(G[Te]===we)continue e;t&&G.push(we),U.push(me)}else y(G,we,o)||(G!==U&&G.push(we),U.push(me))}return U}function vu(e,t){return t=Mr(t,e),e=xh(e,t),e==null||delete e[In(_n(t))]}function Zf(e,t,o,a){return go(e,t,o(Zr(e,t)),a)}function Es(e,t,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&t(e[S],S,e););return o?yn(e,a?0:S,a?S+1:y):yn(e,a?S+1:0,a?y:S)}function Kf(e,t){var o=e;return o instanceof Xe&&(o=o.value()),Ha(t,function(a,y){return y.func.apply(y.thisArg,Cr([a],y.args))},o)}function yu(e,t,o){var a=e.length;if(a<2)return a?Tr(e[0]):[];for(var y=-1,S=ie(a);++y<a;)for(var k=e[y],U=-1;++U<a;)U!=y&&(S[y]=fo(S[y]||k,e[U],t,o));return Tr(kt(S,1),t,o)}function Qf(e,t,o){for(var a=-1,y=e.length,S=t.length,k={};++a<y;){var U=a<S?t[a]:r;o(k,e[a],U)}return k}function _u(e){return _t(e)?e:[]}function wu(e){return typeof e=="function"?e:Kt}function Mr(e,t){return We(e)?e:Mu(e,t)?[e]:Dh(ot(e))}var iy=He;function Er(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:yn(e,t,o)}var Jf=qm||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 bu(e){var t=new e.constructor(e.byteLength);return new ms(t).set(new ms(e)),t}function oy(e,t){var o=t?bu(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function sy(e){var t=new e.constructor(e.source,Vi.exec(e));return t.lastIndex=e.lastIndex,t}function ay(e){return lo?lt(lo.call(e)):{}}function eh(e,t){var o=t?bu(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),k=t!==r,U=t===null,G=t===t,ge=rn(t);if(!U&&!ge&&!S&&e>t||S&&k&&G&&!U&&!ge||a&&k&&G||!o&&G||!y)return 1;if(!a&&!S&&!ge&&e<t||ge&&o&&y&&!a&&!S||U&&o&&y||!k&&y||!G)return-1}return 0}function uy(e,t,o){for(var a=-1,y=e.criteria,S=t.criteria,k=y.length,U=o.length;++a<k;){var G=th(y[a],S[a]);if(G){if(a>=U)return G;var ge=o[a];return G*(ge=="desc"?-1:1)}}return e.index-t.index}function nh(e,t,o,a){for(var y=-1,S=e.length,k=o.length,U=-1,G=t.length,ge=Ct(S-k,0),me=ie(G+ge),we=!a;++U<G;)me[U]=t[U];for(;++y<k;)(we||y<S)&&(me[o[y]]=e[y]);for(;ge--;)me[U++]=e[y++];return me}function rh(e,t,o,a){for(var y=-1,S=e.length,k=-1,U=o.length,G=-1,ge=t.length,me=Ct(S-U,0),we=ie(me+ge),Te=!a;++y<me;)we[y]=e[y];for(var Pe=y;++G<ge;)we[Pe+G]=t[G];for(;++k<U;)(Te||y<S)&&(we[Pe+o[k]]=e[y++]);return we}function Gt(e,t){var o=-1,a=e.length;for(t||(t=ie(a));++o<a;)t[o]=e[o];return t}function kn(e,t,o,a){var y=!o;o||(o={});for(var S=-1,k=t.length;++S<k;){var U=t[S],G=a?a(o[U],e[U],U,o,e):r;G===r&&(G=e[U]),y?Gn(o,U,G):co(o,U,G)}return o}function ly(e,t){return kn(e,Tu(e),t)}function cy(e,t){return kn(e,mh(e),t)}function Rs(e,t){return function(o,a){var y=We(o)?gm:Lv,S=t?t():{};return y(o,e,$e(a,2),S)}}function Ci(e){return He(function(t,o){var a=-1,y=o.length,S=y>1?o[y-1]:r,k=y>2?o[2]:r;for(S=e.length>3&&typeof S=="function"?(y--,S):r,k&&Ut(o[0],o[1],k)&&(S=y<3?r:S,y=1),t=lt(t);++a<y;){var U=o[a];U&&e(t,U,a,S)}return t})}function ih(e,t){return function(o,a){if(o==null)return o;if(!Vt(o))return e(o,a);for(var y=o.length,S=t?y:-1,k=lt(o);(t?S--:++S<y)&&a(k[S],S,k)!==!1;);return o}}function oh(e){return function(t,o,a){for(var y=-1,S=lt(t),k=a(t),U=k.length;U--;){var G=k[e?U:++y];if(o(S[G],G,S)===!1)break}return t}}function fy(e,t,o){var a=t&j,y=mo(e);function S(){var k=this&&this!==Lt&&this instanceof S?y:e;return k.apply(a?o:this,arguments)}return S}function sh(e){return function(t){t=ot(t);var o=vi(t)?An(t):r,a=o?o[0]:t.charAt(0),y=o?Er(o,1).join(""):t.slice(1);return a[e]()+y}}function Ai(e){return function(t){return Ha(id(rd(t).replace(br,"")),e,"")}}function mo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Si(e.prototype),a=e.apply(o,t);return gt(a)?a:o}}function hy(e,t,o){var a=mo(e);function y(){for(var S=arguments.length,k=ie(S),U=S,G=Di(y);U--;)k[U]=arguments[U];var ge=S<3&&k[0]!==G&&k[S-1]!==G?[]:Ar(k,G);if(S-=ge.length,S<o)return fh(e,t,Ls,y.placeholder,r,k,ge,r,r,o-S);var me=this&&this!==Lt&&this instanceof y?a:e;return en(me,this,k)}return y}function ah(e){return function(t,o,a){var y=lt(t);if(!Vt(t)){var S=$e(o,3);t=Ot(t),o=function(U){return S(y[U],U,y)}}var k=e(t,o,a);return k>-1?y[S?t[k]:k]:r}}function uh(e){return Zn(function(t){var o=t.length,a=o,y=mn.prototype.thru;for(e&&t.reverse();a--;){var S=t[a];if(typeof S!="function")throw new gn(v);if(y&&!k&&Ns(S)=="wrapper")var k=new mn([],!0)}for(a=k?a:o;++a<o;){S=t[a];var U=Ns(S),G=U=="wrapper"?Du(S):r;G&&Eu(G[0])&&G[1]==(oe|ne|V|ee)&&!G[4].length&&G[9]==1?k=k[Ns(G[0])].apply(k,G[3]):k=S.length==1&&Eu(S)?k[U]():k.thru(S)}return function(){var ge=arguments,me=ge[0];if(k&&ge.length==1&&We(me))return k.plant(me).value();for(var we=0,Te=o?t[we].apply(this,ge):me;++we<o;)Te=t[we].call(this,Te);return Te}})}function Ls(e,t,o,a,y,S,k,U,G,ge){var me=t&oe,we=t&j,Te=t&X,Pe=t&(ne|ue),Be=t&de,qe=Te?r:mo(e);function je(){for(var Qe=arguments.length,tt=ie(Qe),on=Qe;on--;)tt[on]=arguments[on];if(Pe)var Ft=Di(je),sn=Cm(tt,Ft);if(a&&(tt=nh(tt,a,y,Pe)),S&&(tt=rh(tt,S,k,Pe)),Qe-=sn,Pe&&Qe<ge){var wt=Ar(tt,Ft);return fh(e,t,Ls,je.placeholder,o,tt,wt,U,G,ge-Qe)}var Tn=we?o:this,Xn=Te?Tn[e]:e;return Qe=tt.length,U?tt=Ly(tt,U):Be&&Qe>1&&tt.reverse(),me&&G<Qe&&(tt.length=G),this&&this!==Lt&&this instanceof je&&(Xn=qe||mo(Xn)),Xn.apply(Tn,tt)}return je}function lh(e,t){return function(o,a){return Yv(o,e,t(a),{})}}function ks(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=nn(o),a=nn(a)):(o=Vf(o),a=Vf(a)),y=e(o,a)}return y}}function xu(e){return Zn(function(t){return t=pt(t,tn($e())),He(function(o){var a=this;return e(t,function(y){return en(y,a,o)})})})}function Is(e,t){t=t===r?" ":nn(t);var o=t.length;if(o<2)return o?gu(t,e):t;var a=gu(t,ws(e/yi(t)));return vi(t)?Er(An(a),0,e).join(""):a.slice(0,e)}function dy(e,t,o,a){var y=t&j,S=mo(e);function k(){for(var U=-1,G=arguments.length,ge=-1,me=a.length,we=ie(me+G),Te=this&&this!==Lt&&this instanceof k?S:e;++ge<me;)we[ge]=a[ge];for(;G--;)we[ge++]=arguments[++U];return en(Te,y?o:this,we)}return k}function ch(e){return function(t,o,a){return a&&typeof a!="number"&&Ut(t,o,a)&&(o=a=r),t=Jn(t),o===r?(o=t,t=0):o=Jn(o),a=a===r?t<o?1:-1:Jn(a),Jv(t,o,a,e)}}function Ps(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=wn(t),o=wn(o)),e(t,o)}}function fh(e,t,o,a,y,S,k,U,G,ge){var me=t&ne,we=me?k:r,Te=me?r:k,Pe=me?S:r,Be=me?r:S;t|=me?V:ce,t&=~(me?ce:V),t&te||(t&=-4);var qe=[e,t,y,Pe,we,Be,Te,U,G,ge],je=o.apply(r,qe);return Eu(e)&&Sh(je,qe),je.placeholder=a,Ch(je,e,t)}function Su(e){var t=St[e];return function(o,a){if(o=wn(o),a=a==null?0:Pt(ze(a),292),a&&Cf(o)){var y=(ot(o)+"e").split("e"),S=t(y[0]+"e"+(+y[1]+a));return y=(ot(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var py=bi&&1/cs(new bi([,-0]))[1]==g?function(e){return new bi(e)}:qu;function hh(e){return function(t){var o=Nt(t);return o==F?Xa(t):o==M?Rm(t):Sm(t,e(t))}}function Vn(e,t,o,a,y,S,k,U){var G=t&X;if(!G&&typeof e!="function")throw new gn(v);var ge=a?a.length:0;if(ge||(t&=-97,a=y=r),k=k===r?k:Ct(ze(k),0),U=U===r?U:ze(U),ge-=y?y.length:0,t&ce){var me=a,we=y;a=y=r}var Te=G?r:Du(e),Pe=[e,t,o,a,y,me,we,S,k,U];if(Te&&My(Pe,Te),e=Pe[0],t=Pe[1],o=Pe[2],a=Pe[3],y=Pe[4],U=Pe[9]=Pe[9]===r?G?0:e.length:Ct(Pe[9]-ge,0),!U&&t&(ne|ue)&&(t&=-25),!t||t==j)var Be=fy(e,t,o);else t==ne||t==ue?Be=hy(e,t,U):(t==V||t==(j|V))&&!y.length?Be=dy(e,t,o,a):Be=Ls.apply(r,Pe);var qe=Te?Hf:Sh;return Ch(qe(Be,Pe),e,t)}function dh(e,t,o,a){return e===r||On(e,wi[o])&&!st.call(a,o)?t:e}function ph(e,t,o,a,y,S){return gt(e)&&gt(t)&&(S.set(t,e),Ts(e,t,r,ph,S),S.delete(t)),e}function gy(e){return _o(e)?r:e}function gh(e,t,o,a,y,S){var k=o&I,U=e.length,G=t.length;if(U!=G&&!(k&&G>U))return!1;var ge=S.get(e),me=S.get(t);if(ge&&me)return ge==t&&me==e;var we=-1,Te=!0,Pe=o&$?new Gr:r;for(S.set(e,t),S.set(t,e);++we<U;){var Be=e[we],qe=t[we];if(a)var je=k?a(qe,Be,we,t,e,S):a(Be,qe,we,e,t,S);if(je!==r){if(je)continue;Te=!1;break}if(Pe){if(!Ga(t,function(Qe,tt){if(!io(Pe,tt)&&(Be===Qe||y(Be,Qe,o,a,S)))return Pe.push(tt)})){Te=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){Te=!1;break}}return S.delete(e),S.delete(t),Te}function my(e,t,o,a,y,S,k){switch(o){case ke:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ce:return!(e.byteLength!=t.byteLength||!S(new ms(e),new ms(t)));case J:case he:case K:return On(+e,+t);case be:return e.name==t.name&&e.message==t.message;case _:case W:return e==t+"";case F:var U=Xa;case M:var G=a&I;if(U||(U=cs),e.size!=t.size&&!G)return!1;var ge=k.get(e);if(ge)return ge==t;a|=$,k.set(e,t);var me=gh(U(e),U(t),a,y,S,k);return k.delete(e),me;case Q:if(lo)return lo.call(e)==lo.call(t)}return!1}function vy(e,t,o,a,y,S){var k=o&I,U=Cu(e),G=U.length,ge=Cu(t),me=ge.length;if(G!=me&&!k)return!1;for(var we=G;we--;){var Te=U[we];if(!(k?Te in t:st.call(t,Te)))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=k;++we<G;){Te=U[we];var Qe=e[Te],tt=t[Te];if(a)var on=k?a(tt,Qe,Te,t,e,S):a(Qe,tt,Te,e,t,S);if(!(on===r?Qe===tt||y(Qe,tt,o,a,S):on)){qe=!1;break}je||(je=Te=="constructor")}if(qe&&!je){var Ft=e.constructor,sn=t.constructor;Ft!=sn&&"constructor"in e&&"constructor"in t&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof sn=="function"&&sn instanceof sn)&&(qe=!1)}return S.delete(e),S.delete(t),qe}function Zn(e){return Lu(bh(e,r,Eh),e+"")}function Cu(e){return Pf(e,Ot,Tu)}function Au(e){return Pf(e,Zt,mh)}var Du=xs?function(e){return xs.get(e)}:qu;function Ns(e){for(var t=e.name+"",o=xi[t],a=st.call(xi,t)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return t}function Di(e){var t=st.call(b,"placeholder")?b:e;return t.placeholder}function $e(){var e=b.iteratee||Wu;return e=e===Wu?Bf:e,arguments.length?e(arguments[0],arguments[1]):e}function $s(e,t){var o=e.__data__;return Ay(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ou(e){for(var t=Ot(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,_h(y)]}return t}function Kr(e,t){var o=Tm(e,t);return $f(o)?o:r}function yy(e){var t=st.call(e,qr),o=e[qr];try{e[qr]=r;var a=!0}catch{}var y=ps.call(e);return a&&(t?e[qr]=o:delete e[qr]),y}var Tu=tu?function(e){return e==null?[]:(e=lt(e),Sr(tu(e),function(t){return xf.call(e,t)}))}:Hu,mh=tu?function(e){for(var t=[];e;)Cr(t,Tu(e)),e=vs(e);return t}:Hu,Nt=Yt;(nu&&Nt(new nu(new ArrayBuffer(1)))!=ke||so&&Nt(new so)!=F||ru&&Nt(ru.resolve())!=u||bi&&Nt(new bi)!=M||ao&&Nt(new ao)!=Me)&&(Nt=function(e){var t=Yt(e),o=t==Oe?e.constructor:r,a=o?Qr(o):"";if(a)switch(a){case ev:return ke;case tv:return F;case nv:return u;case rv:return M;case iv:return Me}return t});function _y(e,t,o){for(var a=-1,y=o.length;++a<y;){var S=o[a],k=S.size;switch(S.type){case"drop":e+=k;break;case"dropRight":t-=k;break;case"take":t=Pt(t,e+k);break;case"takeRight":e=Ct(e,t-k);break}}return{start:e,end:t}}function wy(e){var t=e.match(hi);return t?t[1].split(Et):[]}function vh(e,t,o){t=Mr(t,e);for(var a=-1,y=t.length,S=!1;++a<y;){var k=In(t[a]);if(!(S=e!=null&&o(e,k)))break;e=e[k]}return S||++a!=y?S:(y=e==null?0:e.length,!!y&&zs(y)&&Kn(k,y)&&(We(e)||Jr(e)))}function by(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&st.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function yh(e){return typeof e.constructor=="function"&&!vo(e)?Si(vs(e)):{}}function xy(e,t,o){var a=e.constructor;switch(t){case Ce:return bu(e);case J:case he:return new a(+e);case ke:return oy(e,o);case Ne:case Re:case Ge:case Je:case Ve:case xt:case vt:case ut:case qt:return eh(e,o);case F:return new a;case K:case W:return new a(e);case _:return sy(e);case M:return new a;case Q:return ay(e)}}function Sy(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(fi,`{
125
+ /* [wrapped with `+t+`] */
126
+ `)}function Cy(e){return We(e)||Jr(e)||!!(Sf&&e&&e[Sf])}function Kn(e,t){var o=typeof e;return t=t??p,!!t&&(o=="number"||o!="symbol"&&Xo.test(e))&&e>-1&&e%1==0&&e<t}function Ut(e,t,o){if(!gt(o))return!1;var a=typeof t;return(a=="number"?Vt(o)&&Kn(t,o.length):a=="string"&&t in o)?On(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:dt.test(e)||!dr.test(e)||t!=null&&e in lt(t)}function Ay(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Eu(e){var t=Ns(e),o=b[t];if(typeof o!="function"||!(t in Xe.prototype))return!1;if(e===o)return!0;var a=Du(o);return!!a&&e===a[0]}function Dy(e){return!!_f&&_f in e}var Oy=hs?Qn:Gu;function vo(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||wi;return e===o}function _h(e){return e===e&&!gt(e)}function wh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in lt(o))}}function Ty(e){var t=Fs(e,function(a){return o.size===C&&o.clear(),a}),o=t.cache;return t}function My(e,t){var o=e[1],a=t[1],y=o|a,S=y<(j|X|oe),k=a==oe&&o==ne||a==oe&&o==ee&&e[7].length<=t[8]||a==(oe|ee)&&t[7].length<=t[8]&&o==ne;if(!(S||k))return e;a&j&&(e[2]=t[2],y|=o&j?0:te);var U=t[3];if(U){var G=e[3];e[3]=G?nh(G,U,t[4]):U,e[4]=G?Ar(e[3],O):t[4]}return U=t[5],U&&(G=e[5],e[5]=G?rh(G,U,t[6]):U,e[6]=G?Ar(e[5],O):t[6]),U=t[7],U&&(e[7]=U),a&oe&&(e[8]=e[8]==null?t[8]:Pt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Ey(e){var t=[];if(e!=null)for(var o in lt(e))t.push(o);return t}function Ry(e){return ps.call(e)}function bh(e,t,o){return t=Ct(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,S=Ct(a.length-t,0),k=ie(S);++y<S;)k[y]=a[t+y];y=-1;for(var U=ie(t+1);++y<t;)U[y]=a[y];return U[t]=o(k),en(e,this,U)}}function xh(e,t){return t.length<2?e:Zr(e,yn(t,0,-1))}function Ly(e,t){for(var o=e.length,a=Pt(t.length,o),y=Gt(e);a--;){var S=t[a];e[a]=Kn(S,o)?y[S]:r}return e}function Ru(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sh=Ah(Hf),yo=Gm||function(e,t){return Lt.setTimeout(e,t)},Lu=Ah(ty);function Ch(e,t,o){var a=t+"";return Lu(e,Sy(a,ky(wy(a),o)))}function Ah(e){var t=0,o=0;return function(){var a=Qm(),y=Se-(a-o);if(o=a,y>0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Bs(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var S=pu(o,y),k=e[S];e[S]=e[o],e[o]=k}return e.length=t,e}var Dh=Ty(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mt,function(o,a,y,S){t.push(y?S.replace(ka,"$1"):a||o)}),t});function In(e){if(typeof e=="string"||rn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Qr(e){if(e!=null){try{return ds.call(e)}catch{}try{return e+""}catch{}}return""}function ky(e,t){return pn(Z,function(o){var a="_."+o[0];t&o[1]&&!us(e,a)&&e.push(a)}),e.sort()}function Oh(e){if(e instanceof Xe)return e.clone();var t=new mn(e.__wrapped__,e.__chain__);return t.__actions__=Gt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Iy(e,t,o){(o?Ut(e,t,o):t===r)?t=1:t=Ct(ze(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,S=0,k=ie(ws(a/t));y<a;)k[S++]=yn(e,y,y+=t);return k}function Py(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 Ny(){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 Cr(We(o)?Gt(o):[o],kt(t,1))}var $y=He(function(e,t){return _t(e)?fo(e,kt(t,1,_t,!0)):[]}),By=He(function(e,t){var o=_n(t);return _t(o)&&(o=r),_t(e)?fo(e,kt(t,1,_t,!0),$e(o,2)):[]}),jy=He(function(e,t){var o=_n(t);return _t(o)&&(o=r),_t(e)?fo(e,kt(t,1,_t,!0),r,o):[]});function Yy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),yn(e,t<0?0:t,a)):[]}function Uy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,yn(e,0,t<0?0:t)):[]}function Fy(e,t){return e&&e.length?Es(e,$e(t,3),!0,!0):[]}function Wy(e,t){return e&&e.length?Es(e,$e(t,3),!0):[]}function zy(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&Ut(e,t,o)&&(o=0,a=y),Nv(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=Ct(a+y,0)),ls(e,$e(t,3),y)}function Mh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=ze(o),y=o<0?Ct(a+y,0):Pt(y,a-1)),ls(e,$e(t,3),y,!0)}function Eh(e){var t=e==null?0:e.length;return t?kt(e,1):[]}function qy(e){var t=e==null?0:e.length;return t?kt(e,g):[]}function Hy(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:ze(t),kt(e,t)):[]}function Gy(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 Vy(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=Ct(a+y,0)),mi(e,t,y)}function Zy(e){var t=e==null?0:e.length;return t?yn(e,0,-1):[]}var Ky=He(function(e){var t=pt(e,_u);return t.length&&t[0]===e[0]?lu(t):[]}),Qy=He(function(e){var t=_n(e),o=pt(e,_u);return t===_n(o)?t=r:o.pop(),o.length&&o[0]===e[0]?lu(o,$e(t,2)):[]}),Jy=He(function(e){var t=_n(e),o=pt(e,_u);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?lu(o,r,t):[]});function Xy(e,t){return e==null?"":Zm.call(e,t)}function _n(e){var t=e==null?0:e.length;return t?e[t-1]:r}function e2(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?Ct(a+y,0):Pt(y,a-1)),t===t?km(e,t,y):ls(e,ff,y,!0)}function t2(e,t){return e&&e.length?Ff(e,ze(t)):r}var n2=He(Lh);function Lh(e,t){return e&&e.length&&t&&t.length?du(e,t):e}function r2(e,t,o){return e&&e.length&&t&&t.length?du(e,t,$e(o,2)):e}function i2(e,t,o){return e&&e.length&&t&&t.length?du(e,t,r,o):e}var o2=Zn(function(e,t){var o=e==null?0:e.length,a=ou(e,t);return qf(e,pt(t,function(y){return Kn(y,o)?+y:y}).sort(th)),a});function s2(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 k=e[a];t(k,a,e)&&(o.push(k),y.push(a))}return qf(e,y),o}function ku(e){return e==null?e:Xm.call(e)}function a2(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&Ut(e,t,o)?(t=0,o=a):(t=t==null?0:ze(t),o=o===r?a:ze(o)),yn(e,t,o)):[]}function u2(e,t){return Ms(e,t)}function l2(e,t,o){return mu(e,t,$e(o,2))}function c2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t);if(a<o&&On(e[a],t))return a}return-1}function f2(e,t){return Ms(e,t,!0)}function h2(e,t,o){return mu(e,t,$e(o,2),!0)}function d2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t,!0)-1;if(On(e[a],t))return a}return-1}function p2(e){return e&&e.length?Gf(e):[]}function g2(e,t){return e&&e.length?Gf(e,$e(t,2)):[]}function m2(e){var t=e==null?0:e.length;return t?yn(e,1,t):[]}function v2(e,t,o){return e&&e.length?(t=o||t===r?1:ze(t),yn(e,0,t<0?0:t)):[]}function y2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:ze(t),t=a-t,yn(e,t<0?0:t,a)):[]}function _2(e,t){return e&&e.length?Es(e,$e(t,3),!1,!0):[]}function w2(e,t){return e&&e.length?Es(e,$e(t,3)):[]}var b2=He(function(e){return Tr(kt(e,1,_t,!0))}),x2=He(function(e){var t=_n(e);return _t(t)&&(t=r),Tr(kt(e,1,_t,!0),$e(t,2))}),S2=He(function(e){var t=_n(e);return t=typeof t=="function"?t:r,Tr(kt(e,1,_t,!0),r,t)});function C2(e){return e&&e.length?Tr(e):[]}function A2(e,t){return e&&e.length?Tr(e,$e(t,2)):[]}function D2(e,t){return t=typeof t=="function"?t:r,e&&e.length?Tr(e,r,t):[]}function Iu(e){if(!(e&&e.length))return[];var t=0;return e=Sr(e,function(o){if(_t(o))return t=Ct(o.length,t),!0}),Qa(t,function(o){return pt(e,Va(o))})}function kh(e,t){if(!(e&&e.length))return[];var o=Iu(e);return t==null?o:pt(o,function(a){return en(t,r,a)})}var O2=He(function(e,t){return _t(e)?fo(e,t):[]}),T2=He(function(e){return yu(Sr(e,_t))}),M2=He(function(e){var t=_n(e);return _t(t)&&(t=r),yu(Sr(e,_t),$e(t,2))}),E2=He(function(e){var t=_n(e);return t=typeof t=="function"?t:r,yu(Sr(e,_t),r,t)}),R2=He(Iu);function L2(e,t){return Qf(e||[],t||[],co)}function k2(e,t){return Qf(e||[],t||[],go)}var I2=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 P2(e,t){return t(e),e}function js(e,t){return t(e)}var N2=Zn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(S){return ou(S,e)};return t>1||this.__actions__.length||!(a instanceof Xe)||!Kn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:js,args:[y],thisArg:r}),new mn(a,this.__chain__).thru(function(S){return t&&!S.length&&S.push(r),S}))});function $2(){return Ih(this)}function B2(){return new mn(this.value(),this.__chain__)}function j2(){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 Y2(){return this}function U2(e){for(var t,o=this;o instanceof Cs;){var a=Oh(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function F2(){var e=this.__wrapped__;if(e instanceof Xe){var t=e;return this.__actions__.length&&(t=new Xe(this)),t=t.reverse(),t.__actions__.push({func:js,args:[ku],thisArg:r}),new mn(t,this.__chain__)}return this.thru(ku)}function W2(){return Kf(this.__wrapped__,this.__actions__)}var z2=Rs(function(e,t,o){st.call(e,o)?++e[o]:Gn(e,o,1)});function q2(e,t,o){var a=We(e)?lf:Pv;return o&&Ut(e,t,o)&&(t=r),a(e,$e(t,3))}function H2(e,t){var o=We(e)?Sr:kf;return o(e,$e(t,3))}var G2=ah(Th),V2=ah(Mh);function Z2(e,t){return kt(Ys(e,t),1)}function K2(e,t){return kt(Ys(e,t),g)}function Q2(e,t,o){return o=o===r?1:ze(o),kt(Ys(e,t),o)}function Ph(e,t){var o=We(e)?pn:Or;return o(e,$e(t,3))}function Nh(e,t){var o=We(e)?mm:Lf;return o(e,$e(t,3))}var J2=Rs(function(e,t,o){st.call(e,o)?e[o].push(t):Gn(e,o,[t])});function X2(e,t,o,a){e=Vt(e)?e:Ti(e),o=o&&!a?ze(o):0;var y=e.length;return o<0&&(o=Ct(y+o,0)),qs(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&mi(e,t,o)>-1}var e_=He(function(e,t,o){var a=-1,y=typeof t=="function",S=Vt(e)?ie(e.length):[];return Or(e,function(k){S[++a]=y?en(t,k,o):ho(k,t,o)}),S}),t_=Rs(function(e,t,o){Gn(e,o,t)});function Ys(e,t){var o=We(e)?pt:jf;return o(e,$e(t,3))}function n_(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 r_=Rs(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function i_(e,t,o){var a=We(e)?Ha:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Or)}function o_(e,t,o){var a=We(e)?vm:df,y=arguments.length<3;return a(e,$e(t,4),o,y,Lf)}function s_(e,t){var o=We(e)?Sr:kf;return o(e,Ws($e(t,3)))}function a_(e){var t=We(e)?Tf:Xv;return t(e)}function u_(e,t,o){(o?Ut(e,t,o):t===r)?t=1:t=ze(t);var a=We(e)?Ev:ey;return a(e,t)}function l_(e){var t=We(e)?Rv:ny;return t(e)}function c_(e){if(e==null)return 0;if(Vt(e))return qs(e)?yi(e):e.length;var t=Nt(e);return t==F||t==M?e.size:fu(e).length}function f_(e,t,o){var a=We(e)?Ga:ry;return o&&Ut(e,t,o)&&(t=r),a(e,$e(t,3))}var h_=He(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Ut(e,t[0],t[1])?t=[]:o>2&&Ut(t[0],t[1],t[2])&&(t=[t[0]]),Wf(e,kt(t,1),[])}),Us=Hm||function(){return Lt.Date.now()};function d_(e,t){if(typeof t!="function")throw new gn(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,Vn(e,oe,r,r,r,r,t)}function Bh(e,t){var o;if(typeof t!="function")throw new gn(v);return e=ze(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Pu=He(function(e,t,o){var a=j;if(o.length){var y=Ar(o,Di(Pu));a|=V}return Vn(e,a,t,o,y)}),jh=He(function(e,t,o){var a=j|X;if(o.length){var y=Ar(o,Di(jh));a|=V}return Vn(t,a,e,o,y)});function Yh(e,t,o){t=o?r:t;var a=Vn(e,ne,r,r,r,r,r,t);return a.placeholder=Yh.placeholder,a}function Uh(e,t,o){t=o?r:t;var a=Vn(e,ue,r,r,r,r,r,t);return a.placeholder=Uh.placeholder,a}function Fh(e,t,o){var a,y,S,k,U,G,ge=0,me=!1,we=!1,Te=!0;if(typeof e!="function")throw new gn(v);t=wn(t)||0,gt(o)&&(me=!!o.leading,we="maxWait"in o,S=we?Ct(wn(o.maxWait)||0,t):S,Te="trailing"in o?!!o.trailing:Te);function Pe(wt){var Tn=a,Xn=y;return a=y=r,ge=wt,k=e.apply(Xn,Tn),k}function Be(wt){return ge=wt,U=yo(Qe,t),me?Pe(wt):k}function qe(wt){var Tn=wt-G,Xn=wt-ge,ad=t-Tn;return we?Pt(ad,S-Xn):ad}function je(wt){var Tn=wt-G,Xn=wt-ge;return G===r||Tn>=t||Tn<0||we&&Xn>=S}function Qe(){var wt=Us();if(je(wt))return tt(wt);U=yo(Qe,qe(wt))}function tt(wt){return U=r,Te&&a?Pe(wt):(a=y=r,k)}function on(){U!==r&&Jf(U),ge=0,a=G=y=U=r}function Ft(){return U===r?k:tt(Us())}function sn(){var wt=Us(),Tn=je(wt);if(a=arguments,y=this,G=wt,Tn){if(U===r)return Be(G);if(we)return Jf(U),U=yo(Qe,t),Pe(G)}return U===r&&(U=yo(Qe,t)),k}return sn.cancel=on,sn.flush=Ft,sn}var p_=He(function(e,t){return Rf(e,1,t)}),g_=He(function(e,t,o){return Rf(e,wn(t)||0,o)});function m_(e){return Vn(e,de)}function Fs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new gn(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 k=e.apply(this,a);return o.cache=S.set(y,k)||S,k};return o.cache=new(Fs.Cache||Hn),o}Fs.Cache=Hn;function Ws(e){if(typeof e!="function")throw new gn(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 v_(e){return Bh(2,e)}var y_=iy(function(e,t){t=t.length==1&&We(t[0])?pt(t[0],tn($e())):pt(kt(t,1),tn($e()));var o=t.length;return He(function(a){for(var y=-1,S=Pt(a.length,o);++y<S;)a[y]=t[y].call(this,a[y]);return en(e,this,a)})}),Nu=He(function(e,t){var o=Ar(t,Di(Nu));return Vn(e,V,r,t,o)}),Wh=He(function(e,t){var o=Ar(t,Di(Wh));return Vn(e,ce,r,t,o)}),__=Zn(function(e,t){return Vn(e,ee,r,r,r,t)});function w_(e,t){if(typeof e!="function")throw new gn(v);return t=t===r?t:ze(t),He(e,t)}function b_(e,t){if(typeof e!="function")throw new gn(v);return t=t==null?0:Ct(ze(t),0),He(function(o){var a=o[t],y=Er(o,0,t);return a&&Cr(y,a),en(e,this,y)})}function x_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new gn(v);return gt(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 S_(e){return $h(e,1)}function C_(e,t){return Nu(wu(t),e)}function A_(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function D_(e){return vn(e,E)}function O_(e,t){return t=typeof t=="function"?t:r,vn(e,E,t)}function T_(e){return vn(e,R|E)}function M_(e,t){return t=typeof t=="function"?t:r,vn(e,R|E,t)}function E_(e,t){return t==null||Ef(e,t,Ot(t))}function On(e,t){return e===t||e!==e&&t!==t}var R_=Ps(uu),L_=Ps(function(e,t){return e>=t}),Jr=Nf(function(){return arguments}())?Nf:function(e){return yt(e)&&st.call(e,"callee")&&!xf.call(e,"callee")},We=ie.isArray,k_=nf?tn(nf):Uv;function Vt(e){return e!=null&&zs(e.length)&&!Qn(e)}function _t(e){return yt(e)&&Vt(e)}function I_(e){return e===!0||e===!1||yt(e)&&Yt(e)==J}var Rr=Vm||Gu,P_=rf?tn(rf):Fv;function N_(e){return yt(e)&&e.nodeType===1&&!_o(e)}function $_(e){if(e==null)return!0;if(Vt(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||Rr(e)||Oi(e)||Jr(e)))return!e.length;var t=Nt(e);if(t==F||t==M)return!e.size;if(vo(e))return!fu(e).length;for(var o in e)if(st.call(e,o))return!1;return!0}function B_(e,t){return po(e,t)}function j_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?po(e,t,r,o):!!a}function $u(e){if(!yt(e))return!1;var t=Yt(e);return t==be||t==De||typeof e.message=="string"&&typeof e.name=="string"&&!_o(e)}function Y_(e){return typeof e=="number"&&Cf(e)}function Qn(e){if(!gt(e))return!1;var t=Yt(e);return t==P||t==q||t==_e||t==f}function zh(e){return typeof e=="number"&&e==ze(e)}function zs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=p}function gt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yt(e){return e!=null&&typeof e=="object"}var qh=of?tn(of):zv;function U_(e,t){return e===t||cu(e,t,Ou(t))}function F_(e,t,o){return o=typeof o=="function"?o:r,cu(e,t,Ou(t),o)}function W_(e){return Hh(e)&&e!=+e}function z_(e){if(Oy(e))throw new Fe(d);return $f(e)}function q_(e){return e===null}function H_(e){return e==null}function Hh(e){return typeof e=="number"||yt(e)&&Yt(e)==K}function _o(e){if(!yt(e)||Yt(e)!=Oe)return!1;var t=vs(e);if(t===null)return!0;var o=st.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ds.call(o)==Fm}var Bu=sf?tn(sf):qv;function G_(e){return zh(e)&&e>=-9007199254740991&&e<=p}var Gh=af?tn(af):Hv;function qs(e){return typeof e=="string"||!We(e)&&yt(e)&&Yt(e)==W}function rn(e){return typeof e=="symbol"||yt(e)&&Yt(e)==Q}var Oi=uf?tn(uf):Gv;function V_(e){return e===r}function Z_(e){return yt(e)&&Nt(e)==Me}function K_(e){return yt(e)&&Yt(e)==Ie}var Q_=Ps(hu),J_=Ps(function(e,t){return e<=t});function Vh(e){if(!e)return[];if(Vt(e))return qs(e)?An(e):Gt(e);if(oo&&e[oo])return Em(e[oo]());var t=Nt(e),o=t==F?Xa:t==M?cs:Ti;return o(e)}function Jn(e){if(!e)return e===0?e:0;if(e=wn(e),e===g||e===-1/0){var t=e<0?-1:1;return t*w}return e===e?e:0}function ze(e){var t=Jn(e),o=t%1;return t===t?o?t-o:t:0}function Zh(e){return e?Vr(ze(e),0,m):0}function wn(e){if(typeof e=="number")return e;if(rn(e))return h;if(gt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pf(e);var o=jn.test(e);return o||Br.test(e)?dm(e.slice(2),o?2:8):Ht.test(e)?h:+e}function Kh(e){return kn(e,Zt(e))}function X_(e){return e?Vr(ze(e),-9007199254740991,p):e===0?e:0}function ot(e){return e==null?"":nn(e)}var ew=Ci(function(e,t){if(vo(t)||Vt(t)){kn(t,Ot(t),e);return}for(var o in t)st.call(t,o)&&co(e,o,t[o])}),Qh=Ci(function(e,t){kn(t,Zt(t),e)}),Hs=Ci(function(e,t,o,a){kn(t,Zt(t),e,a)}),tw=Ci(function(e,t,o,a){kn(t,Ot(t),e,a)}),nw=Zn(ou);function rw(e,t){var o=Si(e);return t==null?o:Mf(o,t)}var iw=He(function(e,t){e=lt(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&Ut(t[0],t[1],y)&&(a=1);++o<a;)for(var S=t[o],k=Zt(S),U=-1,G=k.length;++U<G;){var ge=k[U],me=e[ge];(me===r||On(me,wi[ge])&&!st.call(e,ge))&&(e[ge]=S[ge])}return e}),ow=He(function(e){return e.push(r,ph),en(Jh,r,e)});function sw(e,t){return cf(e,$e(t,3),Ln)}function aw(e,t){return cf(e,$e(t,3),au)}function uw(e,t){return e==null?e:su(e,$e(t,3),Zt)}function lw(e,t){return e==null?e:If(e,$e(t,3),Zt)}function cw(e,t){return e&&Ln(e,$e(t,3))}function fw(e,t){return e&&au(e,$e(t,3))}function hw(e){return e==null?[]:Os(e,Ot(e))}function dw(e){return e==null?[]:Os(e,Zt(e))}function ju(e,t,o){var a=e==null?r:Zr(e,t);return a===r?o:a}function pw(e,t){return e!=null&&vh(e,t,$v)}function Yu(e,t){return e!=null&&vh(e,t,Bv)}var gw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=ps.call(t)),e[t]=o},Fu(Kt)),mw=lh(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=ps.call(t)),st.call(e,t)?e[t].push(o):e[t]=[o]},$e),vw=He(ho);function Ot(e){return Vt(e)?Of(e):fu(e)}function Zt(e){return Vt(e)?Of(e,!0):Vv(e)}function yw(e,t){var o={};return t=$e(t,3),Ln(e,function(a,y,S){Gn(o,t(a,y,S),a)}),o}function _w(e,t){var o={};return t=$e(t,3),Ln(e,function(a,y,S){Gn(o,y,t(a,y,S))}),o}var ww=Ci(function(e,t,o){Ts(e,t,o)}),Jh=Ci(function(e,t,o,a){Ts(e,t,o,a)}),bw=Zn(function(e,t){var o={};if(e==null)return o;var a=!1;t=pt(t,function(S){return S=Mr(S,e),a||(a=S.length>1),S}),kn(e,Au(e),o),a&&(o=vn(o,R|N|E,gy));for(var y=t.length;y--;)vu(o,t[y]);return o});function xw(e,t){return Xh(e,Ws($e(t)))}var Sw=Zn(function(e,t){return e==null?{}:Kv(e,t)});function Xh(e,t){if(e==null)return{};var o=pt(Au(e),function(a){return[a]});return t=$e(t),zf(e,o,function(a,y){return t(a,y[0])})}function Cw(e,t,o){t=Mr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[In(t[a])];S===r&&(a=y,S=o),e=Qn(S)?S.call(e):S}return e}function Aw(e,t,o){return e==null?e:go(e,t,o)}function Dw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:go(e,t,o,a)}var ed=hh(Ot),td=hh(Zt);function Ow(e,t,o){var a=We(e),y=a||Rr(e)||Oi(e);if(t=$e(t,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:gt(e)?o=Qn(S)?Si(vs(e)):{}:o={}}return(y?pn:Ln)(e,function(k,U,G){return t(o,k,U,G)}),o}function Tw(e,t){return e==null?!0:vu(e,t)}function Mw(e,t,o){return e==null?e:Zf(e,t,wu(o))}function Ew(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Zf(e,t,wu(o),a)}function Ti(e){return e==null?[]:Ja(e,Ot(e))}function Rw(e){return e==null?[]:Ja(e,Zt(e))}function Lw(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=wn(o),o=o===o?o:0),t!==r&&(t=wn(t),t=t===t?t:0),Vr(wn(e),t,o)}function kw(e,t,o){return t=Jn(t),o===r?(o=t,t=0):o=Jn(o),e=wn(e),jv(e,t,o)}function Iw(e,t,o){if(o&&typeof o!="boolean"&&Ut(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Jn(e),t===r?(t=e,e=0):t=Jn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Af();return Pt(e+y*(t-e+hm("1e-"+((y+"").length-1))),t)}return pu(e,t)}var Pw=Ai(function(e,t,o){return t=t.toLowerCase(),e+(o?nd(t):t)});function nd(e){return Uu(ot(e).toLowerCase())}function rd(e){return e=ot(e),e&&e.replace(Ia,Am).replace(hn,"")}function Nw(e,t,o){e=ot(e),t=nn(t);var a=e.length;o=o===r?a:Vr(ze(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function $w(e){return e=ot(e),e&&En.test(e)?e.replace(xn,Dm):e}function Bw(e){return e=ot(e),e&&gr.test(e)?e.replace(pr,"\\$&"):e}var jw=Ai(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Yw=Ai(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Uw=sh("toLowerCase");function Fw(e,t,o){e=ot(e),t=ze(t);var a=t?yi(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Is(bs(y),o)+e+Is(ws(y),o)}function Ww(e,t,o){e=ot(e),t=ze(t);var a=t?yi(e):0;return t&&a<t?e+Is(t-a,o):e}function zw(e,t,o){e=ot(e),t=ze(t);var a=t?yi(e):0;return t&&a<t?Is(t-a,o)+e:e}function qw(e,t,o){return o||t==null?t=0:t&&(t=+t),Jm(ot(e).replace(mr,""),t||0)}function Hw(e,t,o){return(o?Ut(e,t,o):t===r)?t=1:t=ze(t),gu(ot(e),t)}function Gw(){var e=arguments,t=ot(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Vw=Ai(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function Zw(e,t,o){return o&&typeof o!="number"&&Ut(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=ot(e),e&&(typeof t=="string"||t!=null&&!Bu(t))&&(t=nn(t),!t&&vi(e))?Er(An(e),0,o):e.split(t,o)):[]}var Kw=Ai(function(e,t,o){return e+(o?" ":"")+Uu(t)});function Qw(e,t,o){return e=ot(e),o=o==null?0:Vr(ze(o),0,e.length),t=nn(t),e.slice(o,o+t.length)==t}function Jw(e,t,o){var a=b.templateSettings;o&&Ut(e,t,o)&&(t=r),e=ot(e),t=Hs({},t,a,dh);var y=Hs({},t.imports,a.imports,dh),S=Ot(y),k=Ja(y,S),U,G,ge=0,me=t.interpolate||vr,we="__p += '",Te=eu((t.escape||vr).source+"|"+me.source+"|"+(me===Sn?Gi:vr).source+"|"+(t.evaluate||vr).source+"|$","g"),Pe="//# sourceURL="+(st.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++am+"]")+`
127
+ `;e.replace(Te,function(je,Qe,tt,on,Ft,sn){return tt||(tt=on),we+=e.slice(ge,sn).replace(Pa,Om),Qe&&(U=!0,we+=`' +
128
128
  __e(`+Qe+`) +
129
- '`),Ft&&(V=!0,_e+=`';
129
+ '`),Ft&&(G=!0,we+=`';
130
130
  `+Ft+`;
131
- __p += '`),et&&(_e+=`' +
132
- ((__t = (`+et+`)) == null ? '' : __t) +
133
- '`),ge=sn+je.length,je}),_e+=`';
134
- `;var Be=st.call(n,"variable")&&n.variable;if(!Be)_e=`with (obj) {
135
- `+_e+`
131
+ __p += '`),tt&&(we+=`' +
132
+ ((__t = (`+tt+`)) == null ? '' : __t) +
133
+ '`),ge=sn+je.length,je}),we+=`';
134
+ `;var Be=st.call(t,"variable")&&t.variable;if(!Be)we=`with (obj) {
135
+ `+we+`
136
136
  }
137
- `;else if(Lt.test(Be))throw new Fe(c);_e=(V?_e.replace(Sn,""):_e).replace(Bn,"$1").replace(xt,"$1;"),_e="function("+(Be||"obj")+`) {
137
+ `;else if(Rt.test(Be))throw new Fe(c);we=(G?we.replace(Dt,""):we).replace($n,"$1").replace(fn,"$1;"),we="function("+(Be||"obj")+`) {
138
138
  `+(Be?"":`obj || (obj = {});
139
- `)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(V?`, __j = Array.prototype.join;
139
+ `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
140
140
  function print() { __p += __j.call(arguments, '') }
141
141
  `:`;
142
- `)+_e+`return __p
143
- }`;var qe=ad(function(){return rt(S,Pe+"return "+_e).apply(r,P)});if(qe.source=_e,Uu(qe))throw qe;return qe}function fb(e){return ot(e).toLowerCase()}function hb(e){return ot(e).toUpperCase()}function db(e,n,o){if(e=ot(e),e&&(o||n===r))return vf(e);if(!e||!(n=nn(n)))return e;var a=On(e),y=On(n),S=mf(a,y),P=yf(a,y)+1;return Er(a,S,P).join("")}function pb(e,n,o){if(e=ot(e),e&&(o||n===r))return e.slice(0,_f(e)+1);if(!e||!(n=nn(n)))return e;var a=On(e),y=yf(a,On(n))+1;return Er(a,0,y).join("")}function gb(e,n,o){if(e=ot(e),e&&(o||n===r))return e.replace(gr,"");if(!e||!(n=nn(n)))return e;var a=On(e),y=mf(a,On(n));return Er(a,y).join("")}function vb(e,n){var o=de,a=ie;if(vt(n)){var y="separator"in n?n.separator:y;o="length"in n?Ye(n.length):o,a="omission"in n?nn(n.omission):a}e=ot(e);var S=e.length;if(mi(e)){var P=On(e);S=P.length}if(o>=S)return e;var F=o-yi(a);if(F<1)return a;var V=P?Er(P,0,F).join(""):e.slice(0,F);if(y===r)return V+a;if(P&&(F+=V.length-F),zu(y)){if(e.slice(F).search(y)){var ge,ve=V;for(y.global||(y=ru(y.source,ot(Vi.exec(y))+"g")),y.lastIndex=0;ge=y.exec(ve);)var _e=ge.index;V=V.slice(0,_e===r?F:_e)}}else if(e.indexOf(nn(y),F)!=F){var De=V.lastIndexOf(y);De>-1&&(V=V.slice(0,De))}return V+a}function mb(e){return e=ot(e),e&&jn.test(e)?e.replace(Qt,Hv):e}var yb=Ai(function(e,n,o){return e+(o?" ":"")+n.toUpperCase()}),Yu=uh("toUpperCase");function sd(e,n,o){return e=ot(e),n=o?r:n,n===r?zv(e)?Zv(e):Lv(e):e.match(n)||[]}var ad=Ge(function(e,n){try{return en(e,r,n)}catch(o){return Uu(o)?o:new Fe(o)}}),wb=Kn(function(e,n){return gn(n,function(o){o=Pn(o),Vn(e,o,Bu(e[o],e))}),e});function _b(e){var n=e==null?0:e.length,o=Ne();return e=n?gt(e,function(a){if(typeof a[1]!="function")throw new vn(f);return[o(a[0]),a[1]]}):[],Ge(function(a){for(var y=-1;++y<n;){var S=e[y];if(en(S[0],this,a))return en(S[1],this,a)}})}function bb(e){return Hm(yn(e,L))}function qu(e){return function(){return e}}function xb(e,n){return e==null||e!==e?n:e}var Sb=ch(),Cb=ch(!0);function Kt(e){return e}function Hu(e){return Uf(typeof e=="function"?e:yn(e,L))}function Ab(e){return Ff(yn(e,L))}function Ob(e,n){return Wf(e,yn(n,L))}var Tb=Ge(function(e,n){return function(o){return ho(o,e,n)}}),Db=Ge(function(e,n){return function(o){return ho(e,o,n)}});function Gu(e,n,o){var a=Dt(n),y=Ms(n,a);o==null&&!(vt(n)&&(y.length||!a.length))&&(o=n,n=e,e=this,y=Ms(n,Dt(n)));var S=!(vt(o)&&"chain"in o)||!!o.chain,P=Jn(e);return gn(y,function(F){var V=n[F];e[F]=V,P&&(e.prototype[F]=function(){var ge=this.__chain__;if(S||ge){var ve=e(this.__wrapped__),_e=ve.__actions__=Gt(this.__actions__);return _e.push({func:V,args:arguments,thisArg:e}),ve.__chain__=ge,ve}return V.apply(e,Sr([this.value()],arguments))})}),e}function Eb(){return kt._===this&&(kt._=tm),this}function Vu(){}function Mb(e){return e=Ye(e),Ge(function(n){return Yf(n,e)})}var Rb=Au(gt),Lb=Au(ff),kb=Au(Ka);function ud(e){return Lu(e)?Qa(Pn(e)):ly(e)}function Ib(e){return function(n){return e==null?r:Zr(e,n)}}var Pb=hh(),$b=hh(!0);function Zu(){return[]}function Ku(){return!1}function Nb(){return{}}function Bb(){return""}function jb(){return!0}function Ub(e,n){if(e=Ye(e),e<1||e>p)return[];var o=m,a=Pt(e,m);n=Ne(n),e-=m;for(var y=eu(a,n);++o<e;)n(o);return y}function zb(e){return We(e)?gt(e,Pn):rn(e)?[e]:Gt(Dh(ot(e)))}function Fb(e){var n=++Xv;return ot(e)+n}var Wb=$s(function(e,n){return e+n},0),Yb=Ou("ceil"),qb=$s(function(e,n){return e/n},1),Hb=Ou("floor");function Gb(e){return e&&e.length?Es(e,Kt,fu):r}function Vb(e,n){return e&&e.length?Es(e,Ne(n,2),fu):r}function Zb(e){return pf(e,Kt)}function Kb(e,n){return pf(e,Ne(n,2))}function Qb(e){return e&&e.length?Es(e,Kt,gu):r}function Jb(e,n){return e&&e.length?Es(e,Ne(n,2),gu):r}var Xb=$s(function(e,n){return e*n},1),ex=Ou("round"),tx=$s(function(e,n){return e-n},0);function nx(e){return e&&e.length?Xa(e,Kt):0}function rx(e,n){return e&&e.length?Xa(e,Ne(n,2)):0}return x.after=Aw,x.ary=jh,x.assign=h_,x.assignIn=Xh,x.assignInWith=Zs,x.assignWith=d_,x.at=p_,x.before=Uh,x.bind=Bu,x.bindAll=wb,x.bindKey=zh,x.castArray=Nw,x.chain=$h,x.chunk=Hy,x.compact=Gy,x.concat=Vy,x.cond=_b,x.conforms=bb,x.constant=qu,x.countBy=nw,x.create=g_,x.curry=Fh,x.curryRight=Wh,x.debounce=Yh,x.defaults=v_,x.defaultsDeep=m_,x.defer=Ow,x.delay=Tw,x.difference=Zy,x.differenceBy=Ky,x.differenceWith=Qy,x.drop=Jy,x.dropRight=Xy,x.dropRightWhile=e2,x.dropWhile=t2,x.fill=n2,x.filter=iw,x.flatMap=aw,x.flatMapDeep=uw,x.flatMapDepth=lw,x.flatten=Lh,x.flattenDeep=r2,x.flattenDepth=i2,x.flip=Dw,x.flow=Sb,x.flowRight=Cb,x.fromPairs=o2,x.functions=C_,x.functionsIn=A_,x.groupBy=cw,x.initial=a2,x.intersection=u2,x.intersectionBy=l2,x.intersectionWith=c2,x.invert=T_,x.invertBy=D_,x.invokeMap=hw,x.iteratee=Hu,x.keyBy=dw,x.keys=Dt,x.keysIn=Zt,x.map=Ws,x.mapKeys=M_,x.mapValues=R_,x.matches=Ab,x.matchesProperty=Ob,x.memoize=qs,x.merge=L_,x.mergeWith=ed,x.method=Tb,x.methodOf=Db,x.mixin=Gu,x.negate=Hs,x.nthArg=Mb,x.omit=k_,x.omitBy=I_,x.once=Ew,x.orderBy=pw,x.over=Rb,x.overArgs=Mw,x.overEvery=Lb,x.overSome=kb,x.partial=ju,x.partialRight=qh,x.partition=gw,x.pick=P_,x.pickBy=td,x.property=ud,x.propertyOf=Ib,x.pull=p2,x.pullAll=Ih,x.pullAllBy=g2,x.pullAllWith=v2,x.pullAt=m2,x.range=Pb,x.rangeRight=$b,x.rearg=Rw,x.reject=yw,x.remove=y2,x.rest=Lw,x.reverse=$u,x.sampleSize=_w,x.set=N_,x.setWith=B_,x.shuffle=bw,x.slice=w2,x.sortBy=Cw,x.sortedUniq=O2,x.sortedUniqBy=T2,x.split=ab,x.spread=kw,x.tail=D2,x.take=E2,x.takeRight=M2,x.takeRightWhile=R2,x.takeWhile=L2,x.tap=G2,x.throttle=Iw,x.thru=Fs,x.toArray=Kh,x.toPairs=nd,x.toPairsIn=rd,x.toPath=zb,x.toPlainObject=Jh,x.transform=j_,x.unary=Pw,x.union=k2,x.unionBy=I2,x.unionWith=P2,x.uniq=$2,x.uniqBy=N2,x.uniqWith=B2,x.unset=U_,x.unzip=Nu,x.unzipWith=Ph,x.update=z_,x.updateWith=F_,x.values=Di,x.valuesIn=W_,x.without=j2,x.words=sd,x.wrap=$w,x.xor=U2,x.xorBy=z2,x.xorWith=F2,x.zip=W2,x.zipObject=Y2,x.zipObjectDeep=q2,x.zipWith=H2,x.entries=nd,x.entriesIn=rd,x.extend=Xh,x.extendWith=Zs,Gu(x,x),x.add=Wb,x.attempt=ad,x.camelCase=G_,x.capitalize=id,x.ceil=Yb,x.clamp=Y_,x.clone=Bw,x.cloneDeep=Uw,x.cloneDeepWith=zw,x.cloneWith=jw,x.conformsTo=Fw,x.deburr=od,x.defaultTo=xb,x.divide=qb,x.endsWith=V_,x.eq=Dn,x.escape=Z_,x.escapeRegExp=K_,x.every=rw,x.find=ow,x.findIndex=Mh,x.findKey=y_,x.findLast=sw,x.findLastIndex=Rh,x.findLastKey=w_,x.floor=Hb,x.forEach=Nh,x.forEachRight=Bh,x.forIn=__,x.forInRight=b_,x.forOwn=x_,x.forOwnRight=S_,x.get=Fu,x.gt=Ww,x.gte=Yw,x.has=O_,x.hasIn=Wu,x.head=kh,x.identity=Kt,x.includes=fw,x.indexOf=s2,x.inRange=q_,x.invoke=E_,x.isArguments=Jr,x.isArray=We,x.isArrayBuffer=qw,x.isArrayLike=Vt,x.isArrayLikeObject=wt,x.isBoolean=Hw,x.isBuffer=Mr,x.isDate=Gw,x.isElement=Vw,x.isEmpty=Zw,x.isEqual=Kw,x.isEqualWith=Qw,x.isError=Uu,x.isFinite=Jw,x.isFunction=Jn,x.isInteger=Hh,x.isLength=Gs,x.isMap=Gh,x.isMatch=Xw,x.isMatchWith=e_,x.isNaN=t_,x.isNative=n_,x.isNil=i_,x.isNull=r_,x.isNumber=Vh,x.isObject=vt,x.isObjectLike=yt,x.isPlainObject=wo,x.isRegExp=zu,x.isSafeInteger=o_,x.isSet=Zh,x.isString=Vs,x.isSymbol=rn,x.isTypedArray=Ti,x.isUndefined=s_,x.isWeakMap=a_,x.isWeakSet=u_,x.join=f2,x.kebabCase=Q_,x.last=_n,x.lastIndexOf=h2,x.lowerCase=J_,x.lowerFirst=X_,x.lt=l_,x.lte=c_,x.max=Gb,x.maxBy=Vb,x.mean=Zb,x.meanBy=Kb,x.min=Qb,x.minBy=Jb,x.stubArray=Zu,x.stubFalse=Ku,x.stubObject=Nb,x.stubString=Bb,x.stubTrue=jb,x.multiply=Xb,x.nth=d2,x.noConflict=Eb,x.noop=Vu,x.now=Ys,x.pad=eb,x.padEnd=tb,x.padStart=nb,x.parseInt=rb,x.random=H_,x.reduce=vw,x.reduceRight=mw,x.repeat=ib,x.replace=ob,x.result=$_,x.round=ex,x.runInContext=G,x.sample=ww,x.size=xw,x.snakeCase=sb,x.some=Sw,x.sortedIndex=_2,x.sortedIndexBy=b2,x.sortedIndexOf=x2,x.sortedLastIndex=S2,x.sortedLastIndexBy=C2,x.sortedLastIndexOf=A2,x.startCase=ub,x.startsWith=lb,x.subtract=tx,x.sum=nx,x.sumBy=rx,x.template=cb,x.times=Ub,x.toFinite=Xn,x.toInteger=Ye,x.toLength=Qh,x.toLower=fb,x.toNumber=bn,x.toSafeInteger=f_,x.toString=ot,x.toUpper=hb,x.trim=db,x.trimEnd=pb,x.trimStart=gb,x.truncate=vb,x.unescape=mb,x.uniqueId=Fb,x.upperCase=yb,x.upperFirst=Yu,x.each=Nh,x.eachRight=Bh,x.first=kh,Gu(x,function(){var e={};return kn(x,function(n,o){st.call(x.prototype,o)||(e[o]=n)}),e}(),{chain:!1}),x.VERSION=s,gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){x[e].placeholder=x}),gn(["drop","take"],function(e,n){Je.prototype[e]=function(o){o=o===r?1:Ot(Ye(o),0);var a=this.__filtered__&&!n?new Je(this):this.clone();return a.__filtered__?a.__takeCount__=Pt(o,a.__takeCount__):a.__views__.push({size:Pt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Je.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),gn(["filter","map","takeWhile"],function(e,n){var o=n+1,a=o==U||o==A;Je.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:Ne(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),gn(["head","last"],function(e,n){var o="take"+(n?"Right":"");Je.prototype[e]=function(){return this[o](1).value()[0]}}),gn(["initial","tail"],function(e,n){var o="drop"+(n?"":"Right");Je.prototype[e]=function(){return this.__filtered__?new Je(this):this[o](1)}}),Je.prototype.compact=function(){return this.filter(Kt)},Je.prototype.find=function(e){return this.filter(e).head()},Je.prototype.findLast=function(e){return this.reverse().find(e)},Je.prototype.invokeMap=Ge(function(e,n){return typeof e=="function"?new Je(this):this.map(function(o){return ho(o,e,n)})}),Je.prototype.reject=function(e){return this.filter(Hs(Ne(e)))},Je.prototype.slice=function(e,n){e=Ye(e);var o=this;return o.__filtered__&&(e>0||n<0)?new Je(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),n!==r&&(n=Ye(n),o=n<0?o.dropRight(-n):o.take(n-e)),o)},Je.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Je.prototype.toArray=function(){return this.take(m)},kn(Je.prototype,function(e,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),y=x[a?"take"+(n=="last"?"Right":""):n],S=a||/^find/.test(n);y&&(x.prototype[n]=function(){var P=this.__wrapped__,F=a?[1]:arguments,V=P instanceof Je,ge=F[0],ve=V||We(P),_e=function(Qe){var et=y.apply(x,Sr([Qe],F));return a&&De?et[0]:et};ve&&o&&typeof ge=="function"&&ge.length!=1&&(V=ve=!1);var De=this.__chain__,Pe=!!this.__actions__.length,Be=S&&!De,qe=V&&!Pe;if(!S&&ve){P=qe?P:new Je(this);var je=e.apply(P,F);return je.__actions__.push({func:Fs,args:[_e],thisArg:r}),new mn(je,De)}return Be&&qe?e.apply(this,F):(je=this.thru(_e),Be?a?je.value()[0]:je.value():je)})}),gn(["pop","push","shift","sort","splice","unshift"],function(e){var n=ps[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);x.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var S=this.value();return n.apply(We(S)?S:[],y)}return this[o](function(P){return n.apply(We(P)?P:[],y)})}}),kn(Je.prototype,function(e,n){var o=x[n];if(o){var a=o.name+"";st.call(xi,a)||(xi[a]=[]),xi[a].push({name:n,func:o})}}),xi[Ps(r,Q).name]=[{name:"wrapper",func:r}],Je.prototype.clone=mm,Je.prototype.reverse=ym,Je.prototype.value=wm,x.prototype.at=V2,x.prototype.chain=Z2,x.prototype.commit=K2,x.prototype.next=Q2,x.prototype.plant=X2,x.prototype.reverse=ew,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=tw,x.prototype.first=x.prototype.head,oo&&(x.prototype[oo]=J2),x},wi=Kv();Yr?((Yr.exports=wi)._=wi,Ha._=wi):kt._=wi}).call(Q0)}(Yi,Yi.exports)),Yi.exports}var Zc=J0();function X0(i){const t=an.c(40),{fields:r,onClose:s,queryKey:l,apiPath:g,id:f,steps:c}=i,[b,C]=me.useState(0),[O,L]=me.useState(!1),{data:k,isLoading:E}=mc(g,l,f),{mutateAsync:R,isError:M,error:$,isPending:Q}=Ca(g,l);let X;t[0]!==r?(X=new Set(r.filter(sv).map(ov)),t[0]=r,t[1]=X):X=t[1];let J;t[2]!==X?(J=[...X],t[2]=X,t[3]=J):J=t[3];const se=J;let q;t[4]!==r?(q=r.reduce(iv,{}),t[4]=r,t[5]=q):q=t[5];let ue;t[6]!==r?(ue=r.filter(rv).reduce(tv,{}),t[6]=r,t[7]=ue):ue=t[7];let ne;t[8]!==q||t[9]!==ue?(ne={mode:"uncontrolled",initialValues:q,validate:ue},t[8]=q,t[9]=ue,t[10]=ne):ne=t[10];const ee=Ei.useForm(ne);let fe;t[11]!==k||t[12]!==r||t[13]!==ee?(fe=()=>{if(k){const A=r.reduce((v,p)=>{const _=p.id;return v[_]=Array.isArray(k[_])?k[_]:p.type==="boolean"?k[_]??!1:p.type==="date"?k[_]?new Date(k[_]):"":k[_]??"",v},{});ee.initialize(A),ee.setValues(A)}},t[11]=k,t[12]=r,t[13]=ee,t[14]=fe):fe=t[14];let de;t[15]!==k?(de=[k],t[15]=k,t[16]=de):de=t[16],me.useEffect(fe,de);let ie;t[17]!==ee?(ie=function(v){return D.jsxs(me.Fragment,{children:[(v.type===void 0||v.type=="text")&&D.jsx(j.TextInput,{label:v.column.title,placeholder:v.placeholder??"",...ee.getInputProps(v.id),type:v.id.includes("email")?"email":void 0},ee.key(v.id)),v.type==="number"&&D.jsx(j.NumberInput,{decimalSeparator:",",label:v.column.title,placeholder:v.placeholder??"",...ee.getInputProps(v.id)},ee.key(v.id)),v.type==="date"&&D.jsx(Qo,{label:v.column.title,placeholder:v.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ee.getInputProps(v.id)},ee.key(v.id)),v.type==="boolean"&&D.jsx(j.Checkbox,{mt:"md",label:v.column.title,...ee.getInputProps(v.id,{type:"checkbox"})},ee.key(v.id)),v.type==="custom"&&v.render&&v.render(ee.getValues(),ee.setValues,L)]},v.id)},t[17]=ee,t[18]=ie):ie=t[18];const Ae=ie;let Ce;t[19]!==M||t[20]!==($==null?void 0:$.message)||t[21]!==($==null?void 0:$.name)?(Ce=M&&D.jsx(j.Alert,{variant:"outline",color:"red",title:($==null?void 0:$.name)??"Fehler aufgetreten",mb:"lg",children:($==null?void 0:$.message)??"Fehler aufgetreten"}),t[19]=M,t[20]=$==null?void 0:$.message,t[21]=$==null?void 0:$.name,t[22]=Ce):Ce=t[22];let U;t[23]!==b||t[24]!==r||t[25]!==ee||t[26]!==O||t[27]!==f||t[28]!==E||t[29]!==Q||t[30]!==M||t[31]!==s||t[32]!==Ae||t[33]!==c||t[34]!==se||t[35]!==R?(U=E?D.jsxs(j.Stack,{gap:"md",children:[D.jsx(j.Skeleton,{height:40}),Array(r.length).fill(0).map(ev),D.jsxs(j.Group,{mt:"md",justify:"end",children:[D.jsx(j.Skeleton,{width:100,height:36}),D.jsx(j.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:ee.onSubmit(async A=>{await R({...A,id:f}),se.length&&b<se.length-1?M||C(b+1):M||(ee.setInitialValues(A),ee.reset(),s())}),children:[se.length?D.jsx(j.Stepper,{active:b,size:"sm",children:se.map(A=>D.jsx(j.Stepper.Step,{...c&&c[A-1]?{label:c[A-1].label}:{},children:r.filter(v=>v.step===A).map(v=>Ae(v))},A))}):r.map(A=>Ae(A)),!O&&D.jsxs(j.Group,{mt:"md",justify:"end",children:[D.jsx(j.Button,{onClick:()=>se.length?b===0?s():C(b-1):s(),variant:"outline",children:se.length?b===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(j.Button,{type:"submit",loading:Q,children:se.length?b===se.length-1?"Speichern":"Weiter":"Speichern"})]})]}),t[23]=b,t[24]=r,t[25]=ee,t[26]=O,t[27]=f,t[28]=E,t[29]=Q,t[30]=M,t[31]=s,t[32]=Ae,t[33]=c,t[34]=se,t[35]=R,t[36]=U):U=t[36];let I;return t[37]!==U||t[38]!==Ce?(I=D.jsxs(D.Fragment,{children:[Ce,U]}),t[37]=U,t[38]=Ce,t[39]=I):I=t[39],I}function ev(i,t){return D.jsx(j.Skeleton,{height:35},`skeleton-field-${t}`)}function tv(i,t){return i[t.id]=nv,i}function nv(i){return i?null:"Pflichtfeld"}function rv(i){return i.required}function iv(i,t){return i[t.id]=t.type==="boolean"?t.defaultValue??!1:t.defaultValue??"",i}function ov(i){return i.step}function sv(i){return typeof i.step=="number"}function av(i){const t=an.c(28),{queryKey:r,apiPath:s,onClose:l,selectedRecords:g}=i,{mutateAsync:f,isError:c,error:b,isPending:C}=_c(s,r),[O,L]=me.useState(g);let k;t[0]!==l||t[1]!==O.length?(k=()=>{O.length||l()},t[0]=l,t[1]=O.length,t[2]=k):k=t[2];let E;if(t[3]!==l||t[4]!==O?(E=[l,O],t[3]=l,t[4]=O,t[5]=E):E=t[5],me.useEffect(k,E),!O.length){let ue;return t[6]===Symbol.for("react.memo_cache_sentinel")?(ue=D.jsx(D.Fragment,{}),t[6]=ue):ue=t[6],ue}let R;t[7]!==b||t[8]!==c?(R=c&&b.message&&D.jsx(j.Alert,{variant:"outline",color:"red",title:b.name,children:b.message}),t[7]=b,t[8]=c,t[9]=R):R=t[9];let M;t[10]===Symbol.for("react.memo_cache_sentinel")?(M=D.jsx("br",{}),t[10]=M):M=t[10];let $;t[11]!==g[0].id?($=D.jsxs(j.Text,{children:["Bist du sicher, dass du folgenden Eintrag löschen möchtest?",M,g[0].id]}),t[11]=g[0].id,t[12]=$):$=t[12];let Q;t[13]!==l?(Q=D.jsx(j.Button,{onClick:l,variant:"outline",children:"Abbrechen"}),t[13]=l,t[14]=Q):Q=t[14];let X;t[15]!==f||t[16]!==O[0].id?(X=async()=>{await f(O[0].id),L(ue=>ue.filter(ne=>ne.id!==O[0].id))},t[15]=f,t[16]=O[0].id,t[17]=X):X=t[17];let J;t[18]!==C||t[19]!==X?(J=D.jsx(j.Button,{color:"red",loading:C,onClick:X,children:"Delete"}),t[18]=C,t[19]=X,t[20]=J):J=t[20];let se;t[21]!==Q||t[22]!==J?(se=D.jsxs(j.Group,{mt:"md",justify:"end",children:[Q,J]}),t[21]=Q,t[22]=J,t[23]=se):se=t[23];let q;return t[24]!==R||t[25]!==$||t[26]!==se?(q=D.jsxs(D.Fragment,{children:[R,$,se]}),t[24]=R,t[25]=$,t[26]=se,t[27]=q):q=t[27],q}function Kc(i,t){const r=an.c(8);let s;r[0]!==i||r[1]!==t?(s=()=>{const C=localStorage.getItem(`use_persistent_storage_${t}`);return C?JSON.parse(C):i},r[0]=i,r[1]=t,r[2]=s):s=r[2];const[l,g]=me.useState(s);let f;r[3]!==t?(f=C=>{g(C),localStorage.setItem(`use_persistent_storage_${t}`,JSON.stringify(C))},r[3]=t,r[4]=f):f=r[4];const c=f;let b;return r[5]!==c||r[6]!==l?(b=[l,c],r[5]=c,r[6]=l,r[7]=b):b=r[7],b}const Qc=[10,15,20,50,100,500];function uv(i){const t=an.c(130),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:g,buttons:f,fields:c,selection:b,pagination:C,filters:O,actions:L,steps:k,defaultSort:E,createButtonText:R}=i,{data:M,isLoading:$,isError:Q,isRefetching:X,refetch:J}=yc(g,s);let se;t[0]===Symbol.for("react.memo_cache_sentinel")?(se=[],t[0]=se):se=t[0];const[q,ue]=me.useState(se),{queryClient:ne}=rr();let ee;t[1]!==M||t[2]!==l||t[3]!==O||t[4]!==ne?(ee=()=>{if(!(!M||!Array.isArray(M))){if(l==null||l.forEach(pt=>ne.invalidateQueries({queryKey:pt})),!O||O.length===0){ue(M);return}ue(M.filter(pt=>O.every(Mt=>{const dr=Mt.id;if(Mt.type==="query"&&typeof Mt.value=="string"){const pr=pt[dr];return typeof pr=="string"&&pr.includes(Mt.value)}else if(Mt.type==="date"){if(!Mt.value)return!0;const pr=Mt.value,[gr,ci]=pr;if(gr&&ci){const fi=pt[dr];if(typeof fi=="string"){const hi=new Date(fi);return hi>=gr&&hi<=ci}}return!0}return!0})))}},t[1]=M,t[2]=l,t[3]=O,t[4]=ne,t[5]=ee):ee=t[5];let fe;t[6]!==M||t[7]!==O?(fe=[M,O],t[6]=M,t[7]=O,t[8]=fe):fe=t[8],me.useEffect(ee,fe);const de=(E==null?void 0:E.field)??c[0].id,ie=(E==null?void 0:E.direction)??"desc";let Ae;t[9]!==de||t[10]!==ie?(Ae={columnAccessor:de,direction:ie},t[9]=de,t[10]=ie,t[11]=Ae):Ae=t[11];const[Ce,U]=me.useState(Ae);let I;t[12]!==q||t[13]!==(E==null?void 0:E.direction)||t[14]!==(E==null?void 0:E.field)||t[15]!==c[0]?(I=()=>{const pt=Zc.sortBy(q,(E==null?void 0:E.field)??c[0].id);return(E==null?void 0:E.direction)==="asc"?pt:pt.reverse()},t[12]=q,t[13]=E==null?void 0:E.direction,t[14]=E==null?void 0:E.field,t[15]=c[0],t[16]=I):I=t[16];const[A,v]=me.useState(I);let p;t[17]!==q||t[18]!==Ce.columnAccessor||t[19]!==Ce.direction?(p=()=>{const pt=Zc.sortBy(q,Ce.columnAccessor);v(Ce.direction==="desc"?pt.reverse():pt)},t[17]=q,t[18]=Ce.columnAccessor,t[19]=Ce.direction,t[20]=p):p=t[20];let _;t[21]!==q||t[22]!==Ce?(_=[Ce,q],t[21]=q,t[22]=Ce,t[23]=_):_=t[23],me.useEffect(p,_);const[d,m]=Kc(Qc[1],"mantine-table-page-size"),[T,H]=me.useState(1);let Z;t[24]!==d||t[25]!==C||t[26]!==A?(Z=C?A.slice(0,d):A,t[24]=d,t[25]=C,t[26]=A,t[27]=Z):Z=t[27];const[le,pe]=me.useState(Z);let we;t[28]===Symbol.for("react.memo_cache_sentinel")?(we=()=>{H(1)},t[28]=we):we=t[28];let re;t[29]!==d?(re=[d],t[29]=d,t[30]=re):re=t[30],me.useEffect(we,re);let ce,Oe;t[31]!==T||t[32]!==d||t[33]!==C||t[34]!==A?(ce=()=>{if(C){const pt=(T-1)*d,Mt=pt+d;pe(A.slice(pt,Mt))}else pe(A)},Oe=[T,A,C,d],t[31]=T,t[32]=d,t[33]=C,t[34]=A,t[35]=ce,t[36]=Oe):(ce=t[35],Oe=t[36]),me.useEffect(ce,Oe);let be;t[37]===Symbol.for("react.memo_cache_sentinel")?(be=[],t[37]=be):be=t[37];const[B,Y]=me.useState(be);let W;t[38]!==B||t[39]!==b||t[40]!==A?(W=()=>{b&&Y(A.filter(pt=>B.some(Mt=>Mt.id===pt.id)))},t[38]=B,t[39]=b,t[40]=A,t[41]=W):W=t[41];let K;t[42]!==A?(K=[A],t[42]=A,t[43]=K):K=t[43],me.useEffect(W,K);const[ae,Te]=me.useState(!1),[u,h]=me.useState(!1),[w,N]=me.useState(!1),z=r?"space-between":"end";let te;t[44]!==r?(te=r&&(typeof r=="string"?D.jsx(j.Title,{order:4,children:r}):r),t[44]=r,t[45]=te):te=t[45];let xe;t[46]!==J?(xe=()=>J(),t[46]=J,t[47]=xe):xe=t[47];let Ee;t[48]===Symbol.for("react.memo_cache_sentinel")?(Ee=D.jsx(Mi.IconRefresh,{}),t[48]=Ee):Ee=t[48];let Re;t[49]!==xe?(Re=D.jsx(j.ActionIcon,{variant:"subtle",onClick:xe,"aria-label":"Neuladen",children:Ee}),t[49]=xe,t[50]=Re):Re=t[50];let Se;t[51]!==L||t[52]!==c||t[53]!==B||t[54]!==b?(Se=(c.some(vv)||b)&&D.jsxs(j.Menu,{shadow:"md",children:[D.jsx(j.Menu.Target,{children:D.jsx(j.Button,{variant:"outline",rightSection:D.jsx(Mi.IconCaretDownFilled,{size:14}),disabled:!B.length,children:"Aktionen"})}),D.jsxs(j.Menu.Dropdown,{children:[c.find(gv)&&D.jsx(j.Menu.Item,{leftSection:D.jsx(Mi.IconPencil,{size:14}),onClick:()=>h(!0),disabled:B.length!==1,children:"Bearbeiten"}),(L??[]).map((pt,Mt)=>me.createElement(j.Menu.Item,{...pt.icon&&{leftSection:pt.icon},key:`custom_action_${Mt}`,onClick:()=>pt.onClick(B)},pt.label)),c.find(pv)&&D.jsx(j.Menu.Item,{leftSection:D.jsx(Mi.IconTrash,{size:14}),onClick:()=>N(!0),color:"red",children:"Löschen"})]})]}),t[51]=L,t[52]=c,t[53]=B,t[54]=b,t[55]=Se):Se=t[55];let Le;t[56]!==R||t[57]!==c||t[58]!==$?(Le=c.find(dv)&&D.jsx(j.Button,{onClick:()=>Te(!0),disabled:$,children:R??"Erstellen"}),t[56]=R,t[57]=c,t[58]=$,t[59]=Le):Le=t[59];let $e;t[60]!==f||t[61]!==Re||t[62]!==Se||t[63]!==Le?($e=D.jsxs(j.Group,{align:"center",gap:"xs",children:[Re,Se,Le,f]}),t[60]=f,t[61]=Re,t[62]=Se,t[63]=Le,t[64]=$e):$e=t[64];let ke;t[65]!==z||t[66]!==te||t[67]!==$e?(ke=D.jsxs(j.Group,{gap:"xs",justify:z,align:"center",children:[te,$e]}),t[65]=z,t[66]=te,t[67]=$e,t[68]=ke):ke=t[68];let Ke;t[69]!==Q?(Ke=Q&&D.jsx(j.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(Mi.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),t[69]=Q,t[70]=Ke):Ke=t[70];let He;t[71]!==$||t[72]!==X?(He=($||X)&&D.jsxs(j.Stack,{my:"md",children:[D.jsx(j.Skeleton,{height:40}),Array(5).fill(0).map(hv)]}),t[71]=$,t[72]=X,t[73]=He):He=t[73];let tt;t[74]!==c||t[75]!==Q||t[76]!==$||t[77]!==X||t[78]!==T||t[79]!==d||t[80]!==C||t[81]!==le||t[82]!==B||t[83]!==b||t[84]!==m||t[85]!==Ce||t[86]!==A?(tt=!$&&!X&&D.jsx(Z0,{my:"md",striped:!0,minHeight:150,fetching:Q,records:le,sortStatus:Ce,onSortStatusChange:U,...b&&{selectedRecords:B,onSelectedRecordsChange:Y},...C&&le.length&&{totalRecords:A.length,recordsPerPage:d,onPageChange:H,page:T,recordsPerPageOptions:Qc,onRecordsPerPageChange:m,recordsPerPageLabel:"Einträge pro Seite"},columns:c.map(fv),noRecordsText:"Keine Einträge gefunden"}),t[74]=c,t[75]=Q,t[76]=$,t[77]=X,t[78]=T,t[79]=d,t[80]=C,t[81]=le,t[82]=B,t[83]=b,t[84]=m,t[85]=Ce,t[86]=A,t[87]=tt):tt=t[87];let dt;t[88]===Symbol.for("react.memo_cache_sentinel")?(dt=()=>{h(!1),Y([])},t[88]=dt):dt=t[88];const St=r??"Bearbeiten";let lt;t[89]!==g||t[90]!==c||t[91]!==s||t[92]!==B[0]||t[93]!==B.length||t[94]!==k?(lt=B.length>0&&D.jsx(X0,{fields:c.filter(cv),queryKey:s,apiPath:g,id:B[0].id,onClose:()=>{h(!1),Y([])},steps:k}),t[89]=g,t[90]=c,t[91]=s,t[92]=B[0],t[93]=B.length,t[94]=k,t[95]=lt):lt=t[95];let Ct;t[96]!==St||t[97]!==lt||t[98]!==u?(Ct=D.jsx(j.Modal,{opened:u,onClose:dt,title:St,children:lt}),t[96]=St,t[97]=lt,t[98]=u,t[99]=Ct):Ct=t[99];let Sn;t[100]===Symbol.for("react.memo_cache_sentinel")?(Sn=()=>{N(!1),Y([])},t[100]=Sn):Sn=t[100];const Bn=r??"Löschen";let xt;t[101]!==g||t[102]!==s||t[103]!==B?(xt=B.length>0&&D.jsx(av,{onClose:()=>{N(!1),Y([])},queryKey:s,apiPath:g,selectedRecords:B}),t[101]=g,t[102]=s,t[103]=B,t[104]=xt):xt=t[104];let Qt;t[105]!==w||t[106]!==Bn||t[107]!==xt?(Qt=D.jsx(j.Modal,{opened:w,onClose:Sn,title:Bn,children:xt}),t[105]=w,t[106]=Bn,t[107]=xt,t[108]=Qt):Qt=t[108];let Cn;t[109]===Symbol.for("react.memo_cache_sentinel")?(Cn=()=>{Te(!1)},t[109]=Cn):Cn=t[109];const jn=r??"Anlegen";let Rn;t[110]===Symbol.for("react.memo_cache_sentinel")?(Rn=()=>{Te(!1)},t[110]=Rn):Rn=t[110];let fn;t[111]!==c?(fn=c.filter(lv),t[111]=c,t[112]=fn):fn=t[112];let hn;t[113]!==g||t[114]!==s||t[115]!==k||t[116]!==fn?(hn=D.jsx(e0,{queryKey:s,apiPath:g,onClose:Rn,fields:fn,steps:k}),t[113]=g,t[114]=s,t[115]=k,t[116]=fn,t[117]=hn):hn=t[117];let nt;t[118]!==ae||t[119]!==jn||t[120]!==hn?(nt=D.jsx(j.Modal,{opened:ae,onClose:Cn,title:jn,children:hn}),t[118]=ae,t[119]=jn,t[120]=hn,t[121]=nt):nt=t[121];let qt;return t[122]!==ke||t[123]!==Ke||t[124]!==He||t[125]!==tt||t[126]!==Ct||t[127]!==Qt||t[128]!==nt?(qt=D.jsxs(D.Fragment,{children:[ke,Ke,He,tt,Ct,Qt,nt]}),t[122]=ke,t[123]=Ke,t[124]=He,t[125]=tt,t[126]=Ct,t[127]=Qt,t[128]=nt,t[129]=qt):qt=t[129],qt}function lv(i){return i.create}function cv(i){return i.update}function fv(i){return i.column}function hv(i,t){return D.jsx(j.Skeleton,{height:35},`skeleton-${t}`)}function dv(i){return i.create}function pv(i){return i.delete}function gv(i){return i.update}function vv(i){return i.update}function mv(i){const t=an.c(5),{queryClient:r}=rr();let s;t[0]!==i?(s=D.jsx(uv,{...i}),t[0]=i,t[1]=s):s=t[1];let l;return t[2]!==r||t[3]!==s?(l=D.jsx(xl,{client:r,children:s}),t[2]=r,t[3]=s,t[4]=l):l=t[4],l}ze.DataTable=mv,ze.DataTableProvider=jg,ze.api=zg,ze.createOne=gc,ze.deleteOne=pc,ze.getAll=hc,ze.getApiHeaders=Lr,ze.getOne=dc,ze.updateOne=vc,ze.useAddOne=wc,ze.useDataTable=rr,ze.useDeleteOne=_c,ze.useGetAll=yc,ze.useGetOne=mc,ze.usePersistentState=Kc,ze.useUpdateOne=Ca,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
142
+ `)+we+`return __p
143
+ }`;var qe=od(function(){return nt(S,Pe+"return "+we).apply(r,k)});if(qe.source=we,$u(qe))throw qe;return qe}function Xw(e){return ot(e).toLowerCase()}function eb(e){return ot(e).toUpperCase()}function tb(e,t,o){if(e=ot(e),e&&(o||t===r))return pf(e);if(!e||!(t=nn(t)))return e;var a=An(e),y=An(t),S=gf(a,y),k=mf(a,y)+1;return Er(a,S,k).join("")}function nb(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=An(e),y=mf(a,An(t))+1;return Er(a,0,y).join("")}function rb(e,t,o){if(e=ot(e),e&&(o||t===r))return e.replace(mr,"");if(!e||!(t=nn(t)))return e;var a=An(e),y=gf(a,An(t));return Er(a,y).join("")}function ib(e,t){var o=pe,a=re;if(gt(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(vi(e)){var k=An(e);S=k.length}if(o>=S)return e;var U=o-yi(a);if(U<1)return a;var G=k?Er(k,0,U).join(""):e.slice(0,U);if(y===r)return G+a;if(k&&(U+=G.length-U),Bu(y)){if(e.slice(U).search(y)){var ge,me=G;for(y.global||(y=eu(y.source,ot(Vi.exec(y))+"g")),y.lastIndex=0;ge=y.exec(me);)var we=ge.index;G=G.slice(0,we===r?U:we)}}else if(e.indexOf(nn(y),U)!=U){var Te=G.lastIndexOf(y);Te>-1&&(G=G.slice(0,Te))}return G+a}function ob(e){return e=ot(e),e&&Bn.test(e)?e.replace(Qt,Im):e}var sb=Ai(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Uu=sh("toUpperCase");function id(e,t,o){return e=ot(e),t=o?r:t,t===r?Mm(e)?$m(e):wm(e):e.match(t)||[]}var od=He(function(e,t){try{return en(e,r,t)}catch(o){return $u(o)?o:new Fe(o)}}),ab=Zn(function(e,t){return pn(t,function(o){o=In(o),Gn(e,o,Pu(e[o],e))}),e});function ub(e){var t=e==null?0:e.length,o=$e();return e=t?pt(e,function(a){if(typeof a[1]!="function")throw new gn(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 lb(e){return Iv(vn(e,R))}function Fu(e){return function(){return e}}function cb(e,t){return e==null||e!==e?t:e}var fb=uh(),hb=uh(!0);function Kt(e){return e}function Wu(e){return Bf(typeof e=="function"?e:vn(e,R))}function db(e){return Yf(vn(e,R))}function pb(e,t){return Uf(e,vn(t,R))}var gb=He(function(e,t){return function(o){return ho(o,e,t)}}),mb=He(function(e,t){return function(o){return ho(e,o,t)}});function zu(e,t,o){var a=Ot(t),y=Os(t,a);o==null&&!(gt(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Os(t,Ot(t)));var S=!(gt(o)&&"chain"in o)||!!o.chain,k=Qn(e);return pn(y,function(U){var G=t[U];e[U]=G,k&&(e.prototype[U]=function(){var ge=this.__chain__;if(S||ge){var me=e(this.__wrapped__),we=me.__actions__=Gt(this.__actions__);return we.push({func:G,args:arguments,thisArg:e}),me.__chain__=ge,me}return G.apply(e,Cr([this.value()],arguments))})}),e}function vb(){return Lt._===this&&(Lt._=Wm),this}function qu(){}function yb(e){return e=ze(e),He(function(t){return Ff(t,e)})}var _b=xu(pt),wb=xu(lf),bb=xu(Ga);function sd(e){return Mu(e)?Va(In(e)):Qv(e)}function xb(e){return function(t){return e==null?r:Zr(e,t)}}var Sb=ch(),Cb=ch(!0);function Hu(){return[]}function Gu(){return!1}function Ab(){return{}}function Db(){return""}function Ob(){return!0}function Tb(e,t){if(e=ze(e),e<1||e>p)return[];var o=m,a=Pt(e,m);t=$e(t),e-=m;for(var y=Qa(a,t);++o<e;)t(o);return y}function Mb(e){return We(e)?pt(e,In):rn(e)?[e]:Gt(Dh(ot(e)))}function Eb(e){var t=++Um;return ot(e)+t}var Rb=ks(function(e,t){return e+t},0),Lb=Su("ceil"),kb=ks(function(e,t){return e/t},1),Ib=Su("floor");function Pb(e){return e&&e.length?Ds(e,Kt,uu):r}function Nb(e,t){return e&&e.length?Ds(e,$e(t,2),uu):r}function $b(e){return hf(e,Kt)}function Bb(e,t){return hf(e,$e(t,2))}function jb(e){return e&&e.length?Ds(e,Kt,hu):r}function Yb(e,t){return e&&e.length?Ds(e,$e(t,2),hu):r}var Ub=ks(function(e,t){return e*t},1),Fb=Su("round"),Wb=ks(function(e,t){return e-t},0);function zb(e){return e&&e.length?Ka(e,Kt):0}function qb(e,t){return e&&e.length?Ka(e,$e(t,2)):0}return b.after=d_,b.ary=$h,b.assign=ew,b.assignIn=Qh,b.assignInWith=Hs,b.assignWith=tw,b.at=nw,b.before=Bh,b.bind=Pu,b.bindAll=ab,b.bindKey=jh,b.castArray=A_,b.chain=Ih,b.chunk=Iy,b.compact=Py,b.concat=Ny,b.cond=ub,b.conforms=lb,b.constant=Fu,b.countBy=z2,b.create=rw,b.curry=Yh,b.curryRight=Uh,b.debounce=Fh,b.defaults=iw,b.defaultsDeep=ow,b.defer=p_,b.delay=g_,b.difference=$y,b.differenceBy=By,b.differenceWith=jy,b.drop=Yy,b.dropRight=Uy,b.dropRightWhile=Fy,b.dropWhile=Wy,b.fill=zy,b.filter=H2,b.flatMap=Z2,b.flatMapDeep=K2,b.flatMapDepth=Q2,b.flatten=Eh,b.flattenDeep=qy,b.flattenDepth=Hy,b.flip=m_,b.flow=fb,b.flowRight=hb,b.fromPairs=Gy,b.functions=hw,b.functionsIn=dw,b.groupBy=J2,b.initial=Zy,b.intersection=Ky,b.intersectionBy=Qy,b.intersectionWith=Jy,b.invert=gw,b.invertBy=mw,b.invokeMap=e_,b.iteratee=Wu,b.keyBy=t_,b.keys=Ot,b.keysIn=Zt,b.map=Ys,b.mapKeys=yw,b.mapValues=_w,b.matches=db,b.matchesProperty=pb,b.memoize=Fs,b.merge=ww,b.mergeWith=Jh,b.method=gb,b.methodOf=mb,b.mixin=zu,b.negate=Ws,b.nthArg=yb,b.omit=bw,b.omitBy=xw,b.once=v_,b.orderBy=n_,b.over=_b,b.overArgs=y_,b.overEvery=wb,b.overSome=bb,b.partial=Nu,b.partialRight=Wh,b.partition=r_,b.pick=Sw,b.pickBy=Xh,b.property=sd,b.propertyOf=xb,b.pull=n2,b.pullAll=Lh,b.pullAllBy=r2,b.pullAllWith=i2,b.pullAt=o2,b.range=Sb,b.rangeRight=Cb,b.rearg=__,b.reject=s_,b.remove=s2,b.rest=w_,b.reverse=ku,b.sampleSize=u_,b.set=Aw,b.setWith=Dw,b.shuffle=l_,b.slice=a2,b.sortBy=h_,b.sortedUniq=p2,b.sortedUniqBy=g2,b.split=Zw,b.spread=b_,b.tail=m2,b.take=v2,b.takeRight=y2,b.takeRightWhile=_2,b.takeWhile=w2,b.tap=P2,b.throttle=x_,b.thru=js,b.toArray=Vh,b.toPairs=ed,b.toPairsIn=td,b.toPath=Mb,b.toPlainObject=Kh,b.transform=Ow,b.unary=S_,b.union=b2,b.unionBy=x2,b.unionWith=S2,b.uniq=C2,b.uniqBy=A2,b.uniqWith=D2,b.unset=Tw,b.unzip=Iu,b.unzipWith=kh,b.update=Mw,b.updateWith=Ew,b.values=Ti,b.valuesIn=Rw,b.without=O2,b.words=id,b.wrap=C_,b.xor=T2,b.xorBy=M2,b.xorWith=E2,b.zip=R2,b.zipObject=L2,b.zipObjectDeep=k2,b.zipWith=I2,b.entries=ed,b.entriesIn=td,b.extend=Qh,b.extendWith=Hs,zu(b,b),b.add=Rb,b.attempt=od,b.camelCase=Pw,b.capitalize=nd,b.ceil=Lb,b.clamp=Lw,b.clone=D_,b.cloneDeep=T_,b.cloneDeepWith=M_,b.cloneWith=O_,b.conformsTo=E_,b.deburr=rd,b.defaultTo=cb,b.divide=kb,b.endsWith=Nw,b.eq=On,b.escape=$w,b.escapeRegExp=Bw,b.every=q2,b.find=G2,b.findIndex=Th,b.findKey=sw,b.findLast=V2,b.findLastIndex=Mh,b.findLastKey=aw,b.floor=Ib,b.forEach=Ph,b.forEachRight=Nh,b.forIn=uw,b.forInRight=lw,b.forOwn=cw,b.forOwnRight=fw,b.get=ju,b.gt=R_,b.gte=L_,b.has=pw,b.hasIn=Yu,b.head=Rh,b.identity=Kt,b.includes=X2,b.indexOf=Vy,b.inRange=kw,b.invoke=vw,b.isArguments=Jr,b.isArray=We,b.isArrayBuffer=k_,b.isArrayLike=Vt,b.isArrayLikeObject=_t,b.isBoolean=I_,b.isBuffer=Rr,b.isDate=P_,b.isElement=N_,b.isEmpty=$_,b.isEqual=B_,b.isEqualWith=j_,b.isError=$u,b.isFinite=Y_,b.isFunction=Qn,b.isInteger=zh,b.isLength=zs,b.isMap=qh,b.isMatch=U_,b.isMatchWith=F_,b.isNaN=W_,b.isNative=z_,b.isNil=H_,b.isNull=q_,b.isNumber=Hh,b.isObject=gt,b.isObjectLike=yt,b.isPlainObject=_o,b.isRegExp=Bu,b.isSafeInteger=G_,b.isSet=Gh,b.isString=qs,b.isSymbol=rn,b.isTypedArray=Oi,b.isUndefined=V_,b.isWeakMap=Z_,b.isWeakSet=K_,b.join=Xy,b.kebabCase=jw,b.last=_n,b.lastIndexOf=e2,b.lowerCase=Yw,b.lowerFirst=Uw,b.lt=Q_,b.lte=J_,b.max=Pb,b.maxBy=Nb,b.mean=$b,b.meanBy=Bb,b.min=jb,b.minBy=Yb,b.stubArray=Hu,b.stubFalse=Gu,b.stubObject=Ab,b.stubString=Db,b.stubTrue=Ob,b.multiply=Ub,b.nth=t2,b.noConflict=vb,b.noop=qu,b.now=Us,b.pad=Fw,b.padEnd=Ww,b.padStart=zw,b.parseInt=qw,b.random=Iw,b.reduce=i_,b.reduceRight=o_,b.repeat=Hw,b.replace=Gw,b.result=Cw,b.round=Fb,b.runInContext=H,b.sample=a_,b.size=c_,b.snakeCase=Vw,b.some=f_,b.sortedIndex=u2,b.sortedIndexBy=l2,b.sortedIndexOf=c2,b.sortedLastIndex=f2,b.sortedLastIndexBy=h2,b.sortedLastIndexOf=d2,b.startCase=Kw,b.startsWith=Qw,b.subtract=Wb,b.sum=zb,b.sumBy=qb,b.template=Jw,b.times=Tb,b.toFinite=Jn,b.toInteger=ze,b.toLength=Zh,b.toLower=Xw,b.toNumber=wn,b.toSafeInteger=X_,b.toString=ot,b.toUpper=eb,b.trim=tb,b.trimEnd=nb,b.trimStart=rb,b.truncate=ib,b.unescape=ob,b.uniqueId=Eb,b.upperCase=sb,b.upperFirst=Uu,b.each=Ph,b.eachRight=Nh,b.first=Rh,zu(b,function(){var e={};return Ln(b,function(t,o){st.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),pn(["drop","take"],function(e,t){Xe.prototype[e]=function(o){o=o===r?1:Ct(ze(o),0);var a=this.__filtered__&&!t?new Xe(this):this.clone();return a.__filtered__?a.__takeCount__=Pt(o,a.__takeCount__):a.__views__.push({size:Pt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),pn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==Y||o==A;Xe.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:$e(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),pn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Xe.prototype[e]=function(){return this[o](1).value()[0]}}),pn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Xe.prototype[e]=function(){return this.__filtered__?new Xe(this):this[o](1)}}),Xe.prototype.compact=function(){return this.filter(Kt)},Xe.prototype.find=function(e){return this.filter(e).head()},Xe.prototype.findLast=function(e){return this.reverse().find(e)},Xe.prototype.invokeMap=He(function(e,t){return typeof e=="function"?new Xe(this):this.map(function(o){return ho(o,e,t)})}),Xe.prototype.reject=function(e){return this.filter(Ws($e(e)))},Xe.prototype.slice=function(e,t){e=ze(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=ze(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Xe.prototype.toArray=function(){return this.take(m)},Ln(Xe.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=b[a?"take"+(t=="last"?"Right":""):t],S=a||/^find/.test(t);y&&(b.prototype[t]=function(){var k=this.__wrapped__,U=a?[1]:arguments,G=k instanceof Xe,ge=U[0],me=G||We(k),we=function(Qe){var tt=y.apply(b,Cr([Qe],U));return a&&Te?tt[0]:tt};me&&o&&typeof ge=="function"&&ge.length!=1&&(G=me=!1);var Te=this.__chain__,Pe=!!this.__actions__.length,Be=S&&!Te,qe=G&&!Pe;if(!S&&me){k=qe?k:new Xe(this);var je=e.apply(k,U);return je.__actions__.push({func:js,args:[we],thisArg:r}),new mn(je,Te)}return Be&&qe?e.apply(this,U):(je=this.thru(we),Be?a?je.value()[0]:je.value():je)})}),pn(["pop","push","shift","sort","splice","unshift"],function(e){var t=fs[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);b.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var S=this.value();return t.apply(We(S)?S:[],y)}return this[o](function(k){return t.apply(We(k)?k:[],y)})}}),Ln(Xe.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";st.call(xi,a)||(xi[a]=[]),xi[a].push({name:t,func:o})}}),xi[Ls(r,X).name]=[{name:"wrapper",func:r}],Xe.prototype.clone=ov,Xe.prototype.reverse=sv,Xe.prototype.value=av,b.prototype.at=N2,b.prototype.chain=$2,b.prototype.commit=B2,b.prototype.next=j2,b.prototype.plant=U2,b.prototype.reverse=F2,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=W2,b.prototype.first=b.prototype.head,oo&&(b.prototype[oo]=Y2),b},_i=Bm();zr?((zr.exports=_i)._=_i,Wa._=_i):Lt._=_i}).call(j0)}(zi,zi.exports)),zi.exports}var Gc=Y0();function U0(i){const n=an.c(40),{fields:r,onClose:s,queryKey:l,apiPath:d,id:v,steps:c}=i,[x,C]=ye.useState(0),[O,R]=ye.useState(!1),{data:N,isLoading:E}=gc(d,l,v),{mutateAsync:I,isError:$,error:j,isPending:X}=ba(d,l);let te;n[0]!==r?(te=new Set(r.filter(V0).map(G0)),n[0]=r,n[1]=te):te=n[1];let ne;n[2]!==te?(ne=[...te],n[2]=te,n[3]=ne):ne=n[3];const ue=ne;let V;n[4]!==r?(V=r.reduce(H0,{}),n[4]=r,n[5]=V):V=n[5];let ce;n[6]!==r?(ce=r.filter(q0).reduce(W0,{}),n[6]=r,n[7]=ce):ce=n[7];let oe;n[8]!==V||n[9]!==ce?(oe={mode:"uncontrolled",initialValues:V,validate:ce},n[8]=V,n[9]=ce,n[10]=oe):oe=n[10];const ee=Mi.useForm(oe);let de;n[11]!==N||n[12]!==r||n[13]!==ee?(de=()=>{if(N){const A=r.reduce((g,p)=>{const w=p.id;return g[w]=Array.isArray(N[w])?N[w]:p.type==="boolean"?N[w]??!1:p.type==="date"?N[w]?new Date(N[w]):"":N[w]??"",g},{});ee.initialize(A),ee.setValues(A)}},n[11]=N,n[12]=r,n[13]=ee,n[14]=de):de=n[14];let pe;n[15]!==N?(pe=[N],n[15]=N,n[16]=pe):pe=n[16],ye.useEffect(de,pe);let re;n[17]!==ee?(re=function(g){return T.jsxs(ye.Fragment,{children:[(g.type===void 0||g.type=="text")&&T.jsx(B.TextInput,{label:g.column.title,placeholder:g.placeholder??"",...ee.getInputProps(g.id),type:g.id.includes("email")?"email":void 0},ee.key(g.id)),g.type==="number"&&T.jsx(B.NumberInput,{decimalSeparator:",",label:g.column.title,placeholder:g.placeholder??"",...ee.getInputProps(g.id)},ee.key(g.id)),g.type==="date"&&T.jsx(Vo,{label:g.column.title,placeholder:g.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ee.getInputProps(g.id)},ee.key(g.id)),g.type==="boolean"&&T.jsx(B.Checkbox,{mt:"md",label:g.column.title,...ee.getInputProps(g.id,{type:"checkbox"})},ee.key(g.id)),g.type==="custom"&&g.render&&g.render(ee.getValues(),ee.setValues,R)]},g.id)},n[17]=ee,n[18]=re):re=n[18];const Ae=re;let Se;n[19]!==$||n[20]!==(j==null?void 0:j.message)||n[21]!==(j==null?void 0:j.name)?(Se=$&&T.jsx(B.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[19]=$,n[20]=j==null?void 0:j.message,n[21]=j==null?void 0:j.name,n[22]=Se):Se=n[22];let Y;n[23]!==x||n[24]!==r||n[25]!==ee||n[26]!==O||n[27]!==v||n[28]!==E||n[29]!==X||n[30]!==$||n[31]!==s||n[32]!==Ae||n[33]!==c||n[34]!==ue||n[35]!==I?(Y=E?T.jsxs(B.Stack,{gap:"md",children:[T.jsx(B.Skeleton,{height:40}),Array(r.length).fill(0).map(F0),T.jsxs(B.Group,{mt:"md",justify:"end",children:[T.jsx(B.Skeleton,{width:100,height:36}),T.jsx(B.Skeleton,{width:100,height:36})]})]}):T.jsxs("form",{onSubmit:ee.onSubmit(async A=>{await I({...A,id:v}),ue.length&&x<ue.length-1?$||C(x+1):$||(ee.setInitialValues(A),ee.reset(),s())}),children:[ue.length?T.jsx(B.Stepper,{active:x,size:"sm",children:ue.map(A=>T.jsx(B.Stepper.Step,{...c&&c[A-1]?{label:c[A-1].label}:{},children:r.filter(g=>g.step===A).map(g=>Ae(g))},A))}):r.map(A=>Ae(A)),!O&&T.jsxs(B.Group,{mt:"md",justify:"end",children:[T.jsx(B.Button,{onClick:()=>ue.length?x===0?s():C(x-1):s(),variant:"outline",children:ue.length?x===0?"Abbrechen":"Zurück":"Abbrechen"}),T.jsx(B.Button,{type:"submit",loading:X,children:ue.length?x===ue.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[23]=x,n[24]=r,n[25]=ee,n[26]=O,n[27]=v,n[28]=E,n[29]=X,n[30]=$,n[31]=s,n[32]=Ae,n[33]=c,n[34]=ue,n[35]=I,n[36]=Y):Y=n[36];let L;return n[37]!==Y||n[38]!==Se?(L=T.jsxs(T.Fragment,{children:[Se,Y]}),n[37]=Y,n[38]=Se,n[39]=L):L=n[39],L}function F0(i,n){return T.jsx(B.Skeleton,{height:35},`skeleton-field-${n}`)}function W0(i,n){return i[n.id]=z0,i}function z0(i){return i?null:"Pflichtfeld"}function q0(i){return i.required}function H0(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function G0(i){return i.step}function V0(i){return typeof i.step=="number"}function Z0(i){const n=an.c(28),{queryKey:r,apiPath:s,onClose:l,selectedRecords:d}=i,{mutateAsync:v,isError:c,error:x,isPending:C}=yc(s,r),[O,R]=ye.useState(d);let N;n[0]!==l||n[1]!==O.length?(N=()=>{O.length||l()},n[0]=l,n[1]=O.length,n[2]=N):N=n[2];let E;if(n[3]!==l||n[4]!==O?(E=[l,O],n[3]=l,n[4]=O,n[5]=E):E=n[5],ye.useEffect(N,E),!O.length){let ce;return n[6]===Symbol.for("react.memo_cache_sentinel")?(ce=T.jsx(T.Fragment,{}),n[6]=ce):ce=n[6],ce}let I;n[7]!==x||n[8]!==c?(I=c&&x.message&&T.jsx(B.Alert,{variant:"outline",color:"red",title:x.name,children:x.message}),n[7]=x,n[8]=c,n[9]=I):I=n[9];let $;n[10]===Symbol.for("react.memo_cache_sentinel")?($=T.jsx("br",{}),n[10]=$):$=n[10];let j;n[11]!==d[0].id?(j=T.jsxs(B.Text,{children:["Bist du sicher, dass du folgenden Eintrag löschen möchtest?",$,d[0].id]}),n[11]=d[0].id,n[12]=j):j=n[12];let X;n[13]!==l?(X=T.jsx(B.Button,{onClick:l,variant:"outline",children:"Abbrechen"}),n[13]=l,n[14]=X):X=n[14];let te;n[15]!==v||n[16]!==O[0].id?(te=async()=>{await v(O[0].id),R(ce=>ce.filter(oe=>oe.id!==O[0].id))},n[15]=v,n[16]=O[0].id,n[17]=te):te=n[17];let ne;n[18]!==C||n[19]!==te?(ne=T.jsx(B.Button,{color:"red",loading:C,onClick:te,children:"Delete"}),n[18]=C,n[19]=te,n[20]=ne):ne=n[20];let ue;n[21]!==X||n[22]!==ne?(ue=T.jsxs(B.Group,{mt:"md",justify:"end",children:[X,ne]}),n[21]=X,n[22]=ne,n[23]=ue):ue=n[23];let V;return n[24]!==I||n[25]!==j||n[26]!==ue?(V=T.jsxs(T.Fragment,{children:[I,j,ue]}),n[24]=I,n[25]=j,n[26]=ue,n[27]=V):V=n[27],V}function Vc(i,n){const r=an.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,d]=ye.useState(s);let v;r[3]!==n?(v=C=>{d(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 K0(i){const n=an.c(130),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:d,buttons:v,fields:c,selection:x,pagination:C,filters:O,actions:R,steps:N,defaultSort:E,createButtonText:I}=i,{data:$,isLoading:j,isError:X,isRefetching:te,refetch:ne}=mc(d,s);let ue;n[0]===Symbol.for("react.memo_cache_sentinel")?(ue=[],n[0]=ue):ue=n[0];const[V,ce]=ye.useState(ue),{queryClient:oe}=nr();let ee;n[1]!==$||n[2]!==l||n[3]!==O||n[4]!==oe?(ee=()=>{if(!(!$||!Array.isArray($))){if(l==null||l.forEach(dt=>oe.invalidateQueries({queryKey:dt})),!O||O.length===0){ce($);return}ce($.filter(dt=>O.every(Mt=>{const pr=Mt.id;if(Mt.type==="query"&&typeof Mt.value=="string"){const gr=dt[pr];return typeof gr=="string"&&gr.includes(Mt.value)}else if(Mt.type==="date"){if(!Mt.value)return!0;const gr=Mt.value,[mr,ci]=gr;if(mr&&ci){const fi=dt[pr];if(typeof fi=="string"){const hi=new Date(fi);return hi>=mr&&hi<=ci}}return!0}return!0})))}},n[1]=$,n[2]=l,n[3]=O,n[4]=oe,n[5]=ee):ee=n[5];let de;n[6]!==$||n[7]!==O?(de=[$,O],n[6]=$,n[7]=O,n[8]=de):de=n[8],ye.useEffect(ee,de);const pe=(E==null?void 0:E.field)??c[0].id,re=(E==null?void 0:E.direction)??"desc";let Ae;n[9]!==pe||n[10]!==re?(Ae={columnAccessor:pe,direction:re},n[9]=pe,n[10]=re,n[11]=Ae):Ae=n[11];const[Se,Y]=ye.useState(Ae);let L;n[12]!==V||n[13]!==(E==null?void 0:E.direction)||n[14]!==(E==null?void 0:E.field)||n[15]!==c[0]?(L=()=>{const dt=Gc.sortBy(V,(E==null?void 0:E.field)??c[0].id);return(E==null?void 0:E.direction)==="asc"?dt:dt.reverse()},n[12]=V,n[13]=E==null?void 0:E.direction,n[14]=E==null?void 0:E.field,n[15]=c[0],n[16]=L):L=n[16];const[A,g]=ye.useState(L);let p;n[17]!==V||n[18]!==Se.columnAccessor||n[19]!==Se.direction?(p=()=>{const dt=Gc.sortBy(V,Se.columnAccessor);g(Se.direction==="desc"?dt.reverse():dt)},n[17]=V,n[18]=Se.columnAccessor,n[19]=Se.direction,n[20]=p):p=n[20];let w;n[21]!==V||n[22]!==Se?(w=[Se,V],n[21]=V,n[22]=Se,n[23]=w):w=n[23],ye.useEffect(p,w);const[h,m]=Vc(Zc[1],"mantine-table-page-size"),[D,z]=ye.useState(1);let Z;n[24]!==h||n[25]!==C||n[26]!==A?(Z=C?A.slice(0,h):A,n[24]=h,n[25]=C,n[26]=A,n[27]=Z):Z=n[27];const[ae,fe]=ye.useState(Z);let _e;n[28]===Symbol.for("react.memo_cache_sentinel")?(_e=()=>{z(1)},n[28]=_e):_e=n[28];let J;n[29]!==h?(J=[h],n[29]=h,n[30]=J):J=n[30],ye.useEffect(_e,J);let he,De;n[31]!==D||n[32]!==h||n[33]!==C||n[34]!==A?(he=()=>{if(C){const dt=(D-1)*h,Mt=dt+h;fe(A.slice(dt,Mt))}else fe(A)},De=[D,A,C,h],n[31]=D,n[32]=h,n[33]=C,n[34]=A,n[35]=he,n[36]=De):(he=n[35],De=n[36]),ye.useEffect(he,De);let be;n[37]===Symbol.for("react.memo_cache_sentinel")?(be=[],n[37]=be):be=n[37];const[P,q]=ye.useState(be);let F;n[38]!==P||n[39]!==x||n[40]!==A?(F=()=>{x&&q(A.filter(dt=>P.some(Mt=>Mt.id===dt.id)))},n[38]=P,n[39]=x,n[40]=A,n[41]=F):F=n[41];let K;n[42]!==A?(K=[A],n[42]=A,n[43]=K):K=n[43],ye.useEffect(F,K);const[se,Oe]=ye.useState(!1),[u,f]=ye.useState(!1),[_,M]=ye.useState(!1),W=r?"space-between":"end";let Q;n[44]!==r?(Q=r&&(typeof r=="string"?T.jsx(B.Title,{order:4,children:r}):r),n[44]=r,n[45]=Q):Q=n[45];let xe;n[46]!==ne?(xe=()=>ne(),n[46]=ne,n[47]=xe):xe=n[47];let Me;n[48]===Symbol.for("react.memo_cache_sentinel")?(Me=T.jsx(Ei.IconRefresh,{}),n[48]=Me):Me=n[48];let Ie;n[49]!==xe?(Ie=T.jsx(B.ActionIcon,{variant:"subtle",onClick:xe,"aria-label":"Neuladen",children:Me}),n[49]=xe,n[50]=Ie):Ie=n[50];let Ce;n[51]!==R||n[52]!==c||n[53]!==P||n[54]!==x?(Ce=(c.some(im)||x)&&T.jsxs(B.Menu,{shadow:"md",children:[T.jsx(B.Menu.Target,{children:T.jsx(B.Button,{variant:"outline",rightSection:T.jsx(Ei.IconCaretDownFilled,{size:14}),disabled:!P.length,children:"Aktionen"})}),T.jsxs(B.Menu.Dropdown,{children:[c.find(rm)&&T.jsx(B.Menu.Item,{leftSection:T.jsx(Ei.IconPencil,{size:14}),onClick:()=>f(!0),disabled:P.length!==1,children:"Bearbeiten"}),(R??[]).map((dt,Mt)=>ye.createElement(B.Menu.Item,{...dt.icon&&{leftSection:dt.icon},key:`custom_action_${Mt}`,onClick:()=>dt.onClick(P)},dt.label)),c.find(nm)&&T.jsx(B.Menu.Item,{leftSection:T.jsx(Ei.IconTrash,{size:14}),onClick:()=>M(!0),color:"red",children:"Löschen"})]})]}),n[51]=R,n[52]=c,n[53]=P,n[54]=x,n[55]=Ce):Ce=n[55];let ke;n[56]!==I||n[57]!==c||n[58]!==j?(ke=c.find(tm)&&T.jsx(B.Button,{onClick:()=>Oe(!0),disabled:j,children:I??"Erstellen"}),n[56]=I,n[57]=c,n[58]=j,n[59]=ke):ke=n[59];let Ne;n[60]!==v||n[61]!==Ie||n[62]!==Ce||n[63]!==ke?(Ne=T.jsxs(B.Group,{align:"center",gap:"xs",children:[Ie,Ce,ke,v]}),n[60]=v,n[61]=Ie,n[62]=Ce,n[63]=ke,n[64]=Ne):Ne=n[64];let Re;n[65]!==W||n[66]!==Q||n[67]!==Ne?(Re=T.jsxs(B.Group,{gap:"xs",justify:W,align:"center",children:[Q,Ne]}),n[65]=W,n[66]=Q,n[67]=Ne,n[68]=Re):Re=n[68];let Ge;n[69]!==X?(Ge=X&&T.jsx(B.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:T.jsx(Ei.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[69]=X,n[70]=Ge):Ge=n[70];let Je;n[71]!==j||n[72]!==te?(Je=(j||te)&&T.jsxs(B.Stack,{my:"md",children:[T.jsx(B.Skeleton,{height:40}),Array(5).fill(0).map(em)]}),n[71]=j,n[72]=te,n[73]=Je):Je=n[73];let Ve;n[74]!==c||n[75]!==X||n[76]!==j||n[77]!==te||n[78]!==D||n[79]!==h||n[80]!==C||n[81]!==ae||n[82]!==P||n[83]!==x||n[84]!==m||n[85]!==Se||n[86]!==A?(Ve=!j&&!te&&T.jsx($0,{my:"md",striped:!0,minHeight:150,fetching:X,records:ae,sortStatus:Se,onSortStatusChange:Y,...x&&{selectedRecords:P,onSelectedRecordsChange:q},...C&&ae.length&&{totalRecords:A.length,recordsPerPage:h,onPageChange:z,page:D,recordsPerPageOptions:Zc,onRecordsPerPageChange:m,recordsPerPageLabel:"Einträge pro Seite"},columns:c.map(X0),noRecordsText:"Keine Einträge gefunden"}),n[74]=c,n[75]=X,n[76]=j,n[77]=te,n[78]=D,n[79]=h,n[80]=C,n[81]=ae,n[82]=P,n[83]=x,n[84]=m,n[85]=Se,n[86]=A,n[87]=Ve):Ve=n[87];let xt;n[88]===Symbol.for("react.memo_cache_sentinel")?(xt=()=>{f(!1),q([])},n[88]=xt):xt=n[88];const vt=r??"Bearbeiten";let ut;n[89]!==d||n[90]!==c||n[91]!==s||n[92]!==P[0]||n[93]!==P.length||n[94]!==N?(ut=P.length>0&&T.jsx(U0,{fields:c.filter(J0),queryKey:s,apiPath:d,id:P[0].id,onClose:()=>{f(!1),q([])},steps:N}),n[89]=d,n[90]=c,n[91]=s,n[92]=P[0],n[93]=P.length,n[94]=N,n[95]=ut):ut=n[95];let qt;n[96]!==vt||n[97]!==ut||n[98]!==u?(qt=T.jsx(B.Modal,{opened:u,onClose:xt,title:vt,children:ut}),n[96]=vt,n[97]=ut,n[98]=u,n[99]=qt):qt=n[99];let Dt;n[100]===Symbol.for("react.memo_cache_sentinel")?(Dt=()=>{M(!1),q([])},n[100]=Dt):Dt=n[100];const $n=r??"Löschen";let fn;n[101]!==d||n[102]!==s||n[103]!==P?(fn=P.length>0&&T.jsx(Z0,{onClose:()=>{M(!1),q([])},queryKey:s,apiPath:d,selectedRecords:P}),n[101]=d,n[102]=s,n[103]=P,n[104]=fn):fn=n[104];let Qt;n[105]!==_||n[106]!==$n||n[107]!==fn?(Qt=T.jsx(B.Modal,{opened:_,onClose:Dt,title:$n,children:fn}),n[105]=_,n[106]=$n,n[107]=fn,n[108]=Qt):Qt=n[108];let xn;n[109]===Symbol.for("react.memo_cache_sentinel")?(xn=()=>{Oe(!1)},n[109]=xn):xn=n[109];const Bn=r??"Anlegen";let En;n[110]===Symbol.for("react.memo_cache_sentinel")?(En=()=>{Oe(!1)},n[110]=En):En=n[110];let it;n[111]!==c?(it=c.filter(Q0),n[111]=c,n[112]=it):it=n[112];let It;n[113]!==d||n[114]!==s||n[115]!==N||n[116]!==it?(It=T.jsx(F1,{queryKey:s,apiPath:d,onClose:En,fields:it,steps:N}),n[113]=d,n[114]=s,n[115]=N,n[116]=it,n[117]=It):It=n[117];let Sn;n[118]!==se||n[119]!==Bn||n[120]!==It?(Sn=T.jsx(B.Modal,{opened:se,onClose:xn,title:Bn,children:It}),n[118]=se,n[119]=Bn,n[120]=It,n[121]=Sn):Sn=n[121];let dr;return n[122]!==Re||n[123]!==Ge||n[124]!==Je||n[125]!==Ve||n[126]!==qt||n[127]!==Qt||n[128]!==Sn?(dr=T.jsxs(T.Fragment,{children:[Re,Ge,Je,Ve,qt,Qt,Sn]}),n[122]=Re,n[123]=Ge,n[124]=Je,n[125]=Ve,n[126]=qt,n[127]=Qt,n[128]=Sn,n[129]=dr):dr=n[129],dr}function Q0(i){return i.create}function J0(i){return i.update}function X0(i){return i.column}function em(i,n){return T.jsx(B.Skeleton,{height:35},`skeleton-${n}`)}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=an.c(5),{queryClient:r}=nr();let s;n[0]!==i?(s=T.jsx(K0,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=T.jsx(wl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}Ue.DataTable=om,Ue.DataTableProvider=$g,Ue.api=jg,Ue.createOne=dc,Ue.deleteOne=hc,Ue.getAll=cc,Ue.getApiHeaders=kr,Ue.getOne=fc,Ue.updateOne=pc,Ue.useAddOne=vc,Ue.useDataTable=nr,Ue.useDeleteOne=yc,Ue.useGetAll=mc,Ue.useGetOne=gc,Ue.usePersistentState=Vc,Ue.useUpdateOne=ba,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
144
144
  //# sourceMappingURL=index.umd.js.map