@accounter/client 0.0.7-alpha-20251020200226-c4c384016342edbee15e58d7c5eb760466cc5cc6 → 0.0.7-alpha-20251020200446-96c478a53fb842e6ec19dc4940f7708c376237ba

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.
@@ -108,532 +108,532 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
108
108
  * This source code is licensed under the MIT license found in the
109
109
  * LICENSE file in the root directory of this source tree.
110
110
  */var bhe;function ght(){if(bhe)return Wi;bhe=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function k(C){if(typeof C=="object"&&C!==null){var N=C.$$typeof;switch(N){case e:switch(C=C.type,C){case l:case c:case r:case a:case i:case f:return C;default:switch(C=C&&C.$$typeof,C){case s:case u:case A:case m:case o:return C;default:return N}}case n:return N}}}function S(C){return k(C)===c}return Wi.AsyncMode=l,Wi.ConcurrentMode=c,Wi.ContextConsumer=s,Wi.ContextProvider=o,Wi.Element=e,Wi.ForwardRef=u,Wi.Fragment=r,Wi.Lazy=A,Wi.Memo=m,Wi.Portal=n,Wi.Profiler=a,Wi.StrictMode=i,Wi.Suspense=f,Wi.isAsyncMode=function(C){return S(C)||k(C)===l},Wi.isConcurrentMode=S,Wi.isContextConsumer=function(C){return k(C)===s},Wi.isContextProvider=function(C){return k(C)===o},Wi.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Wi.isForwardRef=function(C){return k(C)===u},Wi.isFragment=function(C){return k(C)===r},Wi.isLazy=function(C){return k(C)===A},Wi.isMemo=function(C){return k(C)===m},Wi.isPortal=function(C){return k(C)===n},Wi.isProfiler=function(C){return k(C)===a},Wi.isStrictMode=function(C){return k(C)===i},Wi.isSuspense=function(C){return k(C)===f},Wi.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===c||C===a||C===i||C===f||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===A||C.$$typeof===m||C.$$typeof===o||C.$$typeof===s||C.$$typeof===u||C.$$typeof===v||C.$$typeof===y||C.$$typeof===x||C.$$typeof===p)},Wi.typeOf=k,Wi}var xhe;function vht(){return xhe||(xhe=1,gz.exports=ght()),gz.exports}var vz,whe;function yht(){if(whe)return vz;whe=1;var t=vht(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=i;function o(A){return t.isMemo(A)?i:a[A.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(A,p,v){if(typeof p!="string"){if(h){var y=f(p);y&&y!==h&&m(A,y,v)}var x=l(p);c&&(x=x.concat(c(p)));for(var k=o(A),S=o(p),C=0;C<x.length;++C){var N=x[C];if(!n[N]&&!(v&&v[N])&&!(S&&S[N])&&!(k&&k[N])){var E=u(p,N);try{s(A,N,E)}catch{}}}}return A}return vz=m,vz}yht();var bht=!0;function Hte(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Vte=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||bht===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Z$=function(e,n,r){Vte(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a=n;do e.insert(n===a?"."+i:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function xht(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var wht={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kht=/[A-Z]|^ms/g,Sht=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lPe=function(e){return e.charCodeAt(1)===45},khe=function(e){return e!=null&&typeof e!="boolean"},yz=aPe(function(t){return lPe(t)?t:t.replace(kht,"-$&").toLowerCase()}),She=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Sht,function(r,i,a){return up={name:i,styles:a,next:up},i})}return wht[e]!==1&&!lPe(e)&&typeof n=="number"&&n!==0?n+"px":n};function cE(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return up={name:i.name,styles:i.styles,next:up},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)up={name:o.name,styles:o.styles,next:up},o=o.next;var s=a.styles+";";return s}return Cht(t,e,n)}case"function":{if(t!==void 0){var l=up,c=n(t);return up=l,cE(t,e,c)}break}}var u=n;if(e==null)return u;var f=e[u];return f!==void 0?f:u}function Cht(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=cE(t,e,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object"){var s=o;e!=null&&e[s]!==void 0?r+=a+"{"+e[s]+"}":khe(s)&&(r+=yz(a)+":"+She(a,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var l=0;l<o.length;l++)khe(o[l])&&(r+=yz(a)+":"+She(a,o[l])+";");else{var c=cE(t,e,o);switch(a){case"animation":case"animationName":{r+=yz(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var Che=/label:\s*([^\s;{]+)\s*(;|$)/g,up;function hC(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";up=void 0;var a=t[0];if(a==null||a.raw===void 0)r=!1,i+=cE(n,e,a);else{var o=a;i+=o[0]}for(var s=1;s<t.length;s++)if(i+=cE(n,e,t[s]),r){var l=a;i+=l[s]}Che.lastIndex=0;for(var c="",u;(u=Che.exec(i))!==null;)c+="-"+u[1];var f=xht(i)+c;return{name:f,styles:i,next:up}}var _ht=function(e){return e()},cPe=ix.useInsertionEffect?ix.useInsertionEffect:!1,uPe=cPe||_ht,_he=cPe||w.useLayoutEffect,dPe=w.createContext(typeof HTMLElement<"u"?sPe({key:"css"}):null);dPe.Provider;var Qte=function(e){return w.forwardRef(function(n,r){var i=w.useContext(dPe);return e(n,i,r)})},ax=w.createContext({}),Nht=function(e,n){if(typeof n=="function"){var r=n(e);return r}return lt({},e,n)},Eht=vhe(function(t){return vhe(function(e){return Nht(t,e)})}),Fht=function(e){var n=w.useContext(ax);return e.theme!==n&&(n=Eht(n)(e.theme)),w.createElement(ax.Provider,{value:n},e.children)},qte={}.hasOwnProperty,NY="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dht=function(e,n){var r={};for(var i in n)qte.call(n,i)&&(r[i]=n[i]);return r[NY]=e,r},Tht=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Vte(n,r,i),uPe(function(){return Z$(n,r,i)}),null},Oht=Qte(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[NY],a=[r],o="";typeof t.className=="string"?o=Hte(e.registered,a,t.className):t.className!=null&&(o=t.className+" ");var s=hC(a,void 0,w.useContext(ax));o+=e.key+"-"+s.name;var l={};for(var c in t)qte.call(t,c)&&c!=="css"&&c!==NY&&(l[c]=t[c]);return l.className=o,n&&(l.ref=n),w.createElement(w.Fragment,null,w.createElement(Tht,{cache:e,serialized:s,isStringTag:typeof i=="string"}),w.createElement(i,l))}),Bht=Oht,Nhe=function(e,n){var r=arguments;if(n==null||!qte.call(n,"css"))return w.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=Bht,a[1]=Dht(e,n);for(var o=2;o<i;o++)a[o]=r[o];return w.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Nhe||(Nhe={}));var nD=Qte(function(t,e){var n=t.styles,r=hC([n],void 0,w.useContext(ax)),i=w.useRef();return _he(function(){var a=e.key+"-global",o=new e.sheet.constructor({key:a,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return e.sheet.tags.length&&(o.before=e.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[e]),_he(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Z$(e,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}e.insert("",r,o,!1)},[e,r.name]),null});function Gte(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return hC(e)}function $x(){var t=Gte.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var jht=Object.defineProperty,Iht=Object.defineProperties,Pht=Object.getOwnPropertyDescriptors,Ehe=Object.getOwnPropertySymbols,Mht=Object.prototype.hasOwnProperty,Rht=Object.prototype.propertyIsEnumerable,Fhe=(t,e,n)=>e in t?jht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$ht=(t,e)=>{for(var n in e||(e={}))Mht.call(e,n)&&Fhe(t,n,e[n]);if(Ehe)for(var n of Ehe(e))Rht.call(e,n)&&Fhe(t,n,e[n]);return t},Lht=(t,e)=>Iht(t,Pht(e));function Uht({theme:t}){return L.createElement(nD,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:t.colorScheme==="dark"?"dark":"light"},body:Lht($ht({},t.fn.fontStyles()),{backgroundColor:t.colorScheme==="dark"?t.colors.dark[7]:t.white,color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,lineHeight:t.lineHeight,fontSize:t.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function M_(t,e,n,r=He){Object.keys(e).forEach(i=>{t[`--mantine-${n}-${i}`]=r(e[i])})}function zht({theme:t}){const e={"--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-transition-timing-function":t.transitionTimingFunction,"--mantine-line-height":`${t.lineHeight}`,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":`${t.headings.fontWeight}`};M_(e,t.shadows,"shadow"),M_(e,t.fontSizes,"font-size"),M_(e,t.radius,"radius"),M_(e,t.spacing,"spacing"),M_(e,t.breakpoints,"breakpoints",dC),Object.keys(t.colors).forEach(r=>{t.colors[r].forEach((i,a)=>{e[`--mantine-color-${r}-${a}`]=i})});const n=t.headings.sizes;return Object.keys(n).forEach(r=>{e[`--mantine-${r}-font-size`]=n[r].fontSize,e[`--mantine-${r}-line-height`]=`${n[r].lineHeight}`}),L.createElement(nD,{styles:{":root":e}})}var Hht=Object.defineProperty,Vht=Object.defineProperties,Qht=Object.getOwnPropertyDescriptors,Dhe=Object.getOwnPropertySymbols,qht=Object.prototype.hasOwnProperty,Ght=Object.prototype.propertyIsEnumerable,The=(t,e,n)=>e in t?Hht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Um=(t,e)=>{for(var n in e||(e={}))qht.call(e,n)&&The(t,n,e[n]);if(Dhe)for(var n of Dhe(e))Ght.call(e,n)&&The(t,n,e[n]);return t},bz=(t,e)=>Vht(t,Qht(e));function Wht(t,e){var n;if(!e)return t;const r=Object.keys(t).reduce((i,a)=>{if(a==="headings"&&e.headings){const o=e.headings.sizes?Object.keys(t.headings.sizes).reduce((s,l)=>(s[l]=Um(Um({},t.headings.sizes[l]),e.headings.sizes[l]),s),{}):t.headings.sizes;return bz(Um({},i),{headings:bz(Um(Um({},t.headings),e.headings),{sizes:o})})}if(a==="breakpoints"&&e.breakpoints){const o=Um(Um({},t.breakpoints),e.breakpoints);return bz(Um({},i),{breakpoints:Object.fromEntries(Object.entries(o).sort((s,l)=>Xh(s[1])-Xh(l[1])))})}return i[a]=typeof e[a]=="object"?Um(Um({},t[a]),e[a]):typeof e[a]=="number"||typeof e[a]=="boolean"||typeof e[a]=="function"?e[a]:e[a]||t[a],i},{});if(e?.fontFamily&&!((n=e?.headings)!=null&&n.fontFamily)&&(r.headings.fontFamily=e.fontFamily),!(r.primaryColor in r.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return r}function Kht(t,e){return XIe(Wht(t,e))}function fPe(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}const Yht={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${He(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function Xht(){return L.createElement(nD,{styles:Yht})}var Zht=Object.defineProperty,Ohe=Object.getOwnPropertySymbols,Jht=Object.prototype.hasOwnProperty,emt=Object.prototype.propertyIsEnumerable,Bhe=(t,e,n)=>e in t?Zht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x2=(t,e)=>{for(var n in e||(e={}))Jht.call(e,n)&&Bhe(t,n,e[n]);if(Ohe)for(var n of Ohe(e))emt.call(e,n)&&Bhe(t,n,e[n]);return t};const YI=w.createContext({theme:$te});function Vu(){var t;return((t=w.useContext(YI))==null?void 0:t.theme)||$te}function tmt(t){const e=Vu(),n=r=>{var i,a,o,s;return{styles:((i=e.components[r])==null?void 0:i.styles)||{},classNames:((a=e.components[r])==null?void 0:a.classNames)||{},variants:(o=e.components[r])==null?void 0:o.variants,sizes:(s=e.components[r])==null?void 0:s.sizes}};return Array.isArray(t)?t.map(n):[n(t)]}function hPe(){var t;return(t=w.useContext(YI))==null?void 0:t.emotionCache}function Qt(t,e,n){var r;const i=Vu(),a=(r=i.components[t])==null?void 0:r.defaultProps,o=typeof a=="function"?a(i):a;return x2(x2(x2({},e),o),fPe(n))}function mPe({theme:t,emotionCache:e,withNormalizeCSS:n=!1,withGlobalStyles:r=!1,withCSSVariables:i=!1,inherit:a=!1,children:o}){const s=w.useContext(YI),l=Kht($te,a?x2(x2({},s.theme),t):t);return L.createElement(Fht,{theme:l},L.createElement(YI.Provider,{value:{theme:l,emotionCache:e}},n&&L.createElement(Xht,null),r&&L.createElement(Uht,{theme:l}),i&&L.createElement(zht,{theme:l}),typeof l.globalStyles=="function"&&L.createElement(nD,{styles:l.globalStyles(l)}),o))}mPe.displayName="@mantine/core/MantineProvider";const nmt={app:100,modal:200,popover:300,overlay:400,max:9999};function Qp(t){return nmt[t]}function rmt(t,e){const n=w.useRef();return(!n.current||e.length!==n.current.prevDeps.length||n.current.prevDeps.map((r,i)=>r===e[i]).indexOf(!1)>=0)&&(n.current={v:t(),prevDeps:[...e]}),n.current.v}const imt=sPe({key:"mantine",prepend:!0});function amt(){return hPe()||imt}var omt=Object.defineProperty,jhe=Object.getOwnPropertySymbols,smt=Object.prototype.hasOwnProperty,lmt=Object.prototype.propertyIsEnumerable,Ihe=(t,e,n)=>e in t?omt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cmt=(t,e)=>{for(var n in e||(e={}))smt.call(e,n)&&Ihe(t,n,e[n]);if(jhe)for(var n of jhe(e))lmt.call(e,n)&&Ihe(t,n,e[n]);return t};const xz="ref";function umt(t){let e;if(t.length!==1)return{args:t,ref:e};const[n]=t;if(!(n instanceof Object))return{args:t,ref:e};if(!(xz in n))return{args:t,ref:e};e=n[xz];const r=cmt({},n);return delete r[xz],{args:[r],ref:e}}const{cssFactory:dmt}=(()=>{function t(n,r,i){const a=[],o=Hte(n,a,i);return a.length<2?i:o+r(a)}function e(n){const{cache:r}=n,i=(...o)=>{const{ref:s,args:l}=umt(o),c=hC(l,r.registered);return Z$(r,c,!1),`${r.key}-${c.name}${s===void 0?"":` ${s}`}`};return{css:i,cx:(...o)=>t(r.registered,i,GIe(o))}}return{cssFactory:e}})();function pPe(){const t=amt();return rmt(()=>dmt({cache:t}),[t])}function fmt({cx:t,classes:e,context:n,classNames:r,name:i,cache:a}){const o=n.reduce((s,l)=>(Object.keys(l.classNames).forEach(c=>{typeof s[c]!="string"?s[c]=`${l.classNames[c]}`:s[c]=`${s[c]} ${l.classNames[c]}`}),s),{});return Object.keys(e).reduce((s,l)=>(s[l]=t(e[l],o[l],r!=null&&r[l],Array.isArray(i)?i.filter(Boolean).map(c=>`${a?.key||"mantine"}-${c}-${l}`).join(" "):i?`${a?.key||"mantine"}-${i}-${l}`:null),s),{})}var hmt=Object.defineProperty,Phe=Object.getOwnPropertySymbols,mmt=Object.prototype.hasOwnProperty,pmt=Object.prototype.propertyIsEnumerable,Mhe=(t,e,n)=>e in t?hmt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wz=(t,e)=>{for(var n in e||(e={}))mmt.call(e,n)&&Mhe(t,n,e[n]);if(Phe)for(var n of Phe(e))pmt.call(e,n)&&Mhe(t,n,e[n]);return t};function EY(t,e){return e&&Object.keys(e).forEach(n=>{t[n]?t[n]=wz(wz({},t[n]),e[n]):t[n]=wz({},e[n])}),t}function Rhe(t,e,n,r){const i=a=>typeof a=="function"?a(e,n||{},r):a||{};return Array.isArray(t)?t.map(a=>i(a.styles)).reduce((a,o)=>EY(a,o),{}):i(t)}function Amt({ctx:t,theme:e,params:n,variant:r,size:i}){return t.reduce((a,o)=>(o.variants&&r in o.variants&&EY(a,o.variants[r](e,n,{variant:r,size:i})),o.sizes&&i in o.sizes&&EY(a,o.sizes[i](e,n,{variant:r,size:i})),a),{})}function cn(t){const e=typeof t=="function"?t:()=>t;function n(r,i){const a=Vu(),o=tmt(i?.name),s=hPe(),l={variant:i?.variant,size:i?.size},{css:c,cx:u}=pPe(),f=e(a,r,l),h=Rhe(i?.styles,a,r,l),m=Rhe(o,a,r,l),A=Amt({ctx:o,theme:a,params:r,variant:i?.variant,size:i?.size}),p=Object.fromEntries(Object.keys(f).map(v=>{const y=u({[c(f[v])]:!i?.unstyled},c(A[v]),c(m[v]),c(h[v]));return[v,y]}));return{classes:fmt({cx:u,classes:p,context:o,classNames:i?.classNames,name:i?.name,cache:s}),cx:u,theme:a}}return n}function Lb(t){return`___ref-${t||""}`}var gmt=Object.defineProperty,vmt=Object.defineProperties,ymt=Object.getOwnPropertyDescriptors,$he=Object.getOwnPropertySymbols,bmt=Object.prototype.hasOwnProperty,xmt=Object.prototype.propertyIsEnumerable,Lhe=(t,e,n)=>e in t?gmt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R_=(t,e)=>{for(var n in e||(e={}))bmt.call(e,n)&&Lhe(t,n,e[n]);if($he)for(var n of $he(e))xmt.call(e,n)&&Lhe(t,n,e[n]);return t},$_=(t,e)=>vmt(t,ymt(e));const L_={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${He(10)})`},transitionProperty:"transform, opacity"},zO={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(-${He(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${He(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${He(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${He(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:$_(R_({},L_),{common:{transformOrigin:"center center"}}),"pop-bottom-left":$_(R_({},L_),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":$_(R_({},L_),{common:{transformOrigin:"bottom right"}}),"pop-top-left":$_(R_({},L_),{common:{transformOrigin:"top left"}}),"pop-top-right":$_(R_({},L_),{common:{transformOrigin:"top right"}})},Uhe=["mousedown","touchstart"];function wmt(t,e,n){const r=w.useRef();return w.useEffect(()=>{const i=a=>{const{target:o}=a??{};if(Array.isArray(n)){const s=o?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(o)&&o.tagName!=="HTML";n.every(c=>!!c&&!a.composedPath().includes(c))&&!s&&t()}else r.current&&!r.current.contains(o)&&t()};return(e||Uhe).forEach(a=>document.addEventListener(a,i)),()=>{(e||Uhe).forEach(a=>document.removeEventListener(a,i))}},[r,t,n]),r}function kmt(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function Smt(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function Cmt(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=w.useState(n?e:Smt(t)),a=w.useRef();return w.useEffect(()=>{if("matchMedia"in window)return a.current=window.matchMedia(t),i(a.current.matches),kmt(a.current,o=>i(o.matches))},[t]),r}function w2(t,e,n){return Math.min(Math.max(t,e),n)}const Wte=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Gl(t,e){const n=w.useRef(!1);w.useEffect(()=>()=>{n.current=!1},[]),w.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function APe({opened:t,shouldReturnFocus:e=!0}){const n=w.useRef(),r=()=>{var i;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((i=n.current)==null||i.focus({preventScroll:!0}))};return Gl(()=>{let i=-1;const a=o=>{o.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",a),t?n.current=document.activeElement:e&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a)}},[t,e]),r}const _mt=/input|select|textarea|button|object/,gPe="a, input, select, textarea, button, object, [tabindex]";function Nmt(t){return t.style.display==="none"}function Emt(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if(Nmt(n))return!1;n=n.parentNode}return!0}function vPe(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function FY(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(vPe(t));return(_mt.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&Emt(t)}function yPe(t){const e=vPe(t);return(Number.isNaN(e)||e>=0)&&FY(t)}function Fmt(t){return Array.from(t.querySelectorAll(gPe)).filter(yPe)}function Dmt(t,e){const n=Fmt(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],i=t.getRootNode();if(!(r===i.activeElement||t===i.activeElement))return;e.preventDefault();const o=n[e.shiftKey?n.length-1:0];o&&o.focus()}function Kte(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function Tmt(t,e="body > :not(script)"){const n=Kte(),r=Array.from(document.querySelectorAll(e)).map(i=>{var a;if((a=i?.shadowRoot)!=null&&a.contains(t)||i.contains(t))return;const o=i.getAttribute("aria-hidden"),s=i.getAttribute("data-hidden"),l=i.getAttribute("data-focus-id");return i.setAttribute("data-focus-id",n),o===null||o==="false"?i.setAttribute("aria-hidden","true"):!s&&!l&&i.setAttribute("data-hidden",o),{node:i,ariaHidden:s||null}});return()=>{r.forEach(i=>{!i||n!==i.node.getAttribute("data-focus-id")||(i.ariaHidden===null?i.node.removeAttribute("aria-hidden"):i.node.setAttribute("aria-hidden",i.ariaHidden),i.node.removeAttribute("data-focus-id"),i.node.removeAttribute("data-hidden"))})}}function Omt(t=!0){const e=w.useRef(),n=w.useRef(null),r=a=>{let o=a.querySelector("[data-autofocus]");if(!o){const s=Array.from(a.querySelectorAll(gPe));o=s.find(yPe)||s.find(FY)||null,!o&&FY(a)&&(o=a)}o&&o.focus({preventScroll:!0})},i=w.useCallback(a=>{if(t){if(a===null){n.current&&(n.current(),n.current=null);return}n.current=Tmt(a),e.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&r(a)}),e.current=a):e.current=null)}},[t]);return w.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>r(e.current));const a=o=>{o.key==="Tab"&&e.current&&Dmt(e.current,o)};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a),n.current&&n.current()}},[t]),i}const Bmt=L.useId||(()=>{});function jmt(){const t=Bmt();return t?`mantine-${t.replace(/:/g,"")}`:""}function Lx(t){const e=jmt(),[n,r]=w.useState(e);return Wte(()=>{r(Kte())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function DY(t,e,n){w.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function J$(t,e){typeof t=="function"?t(e):typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function bPe(...t){return e=>{t.forEach(n=>J$(n,e))}}function qp(...t){return w.useCallback(bPe(...t),t)}function Kc({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[i,a]=w.useState(e!==void 0?e:n),o=s=>{a(s),r?.(s)};return t!==void 0?[t,r,!0]:[i,o,!1]}function kv(t,e){const n=e-t+1;return Array.from({length:n},(r,i)=>i+t)}const HO="dots";function Imt({total:t,siblings:e=1,boundaries:n=1,page:r,initialPage:i=1,onChange:a}){const o=Math.max(Math.trunc(t),0),[s,l]=Kc({value:r,onChange:a,defaultValue:i,finalValue:i}),c=p=>{p<=0?l(1):p>o?l(o):l(p)},u=()=>c(s+1),f=()=>c(s-1),h=()=>c(1),m=()=>c(o);return{range:w.useMemo(()=>{if(e*2+3+n*2>=o)return kv(1,o);const v=Math.max(s-e,n),y=Math.min(s+e,o-n),x=v>n+2,k=y<o-(n+1);if(!x&&k){const S=e*2+n+2;return[...kv(1,S),HO,...kv(o-(n-1),o)]}if(x&&!k){const S=n+1+2*e;return[...kv(1,n),HO,...kv(o-S,o)]}return[...kv(1,n),HO,...kv(v,y),HO,...kv(o-n+1,o)]},[o,e,s]),active:s,setPage:c,next:u,previous:f,first:h,last:m}}function e3(t,e){return Cmt("(prefers-reduced-motion: reduce)",t,e)}const Pmt=t=>t<.5?2*t*t:-1+(4-2*t)*t,Mmt=({axis:t,target:e,parent:n,alignment:r,offset:i,isList:a})=>{if(!e||!n&&typeof document>"u")return 0;const o=!!n,l=(n||document.body).getBoundingClientRect(),c=e.getBoundingClientRect(),u=f=>c[f]-l[f];if(t==="y"){const f=u("top");if(f===0)return 0;if(r==="start"){const m=f-i;return m<=c.height*(a?0:1)||!a?m:0}const h=o?l.height:window.innerHeight;if(r==="end"){const m=f+i-h+c.height;return m>=-c.height*(a?0:1)||!a?m:0}return r==="center"?f-h/2+c.height/2:0}if(t==="x"){const f=u("left");if(f===0)return 0;if(r==="start"){const m=f-i;return m<=c.width||!a?m:0}const h=o?l.width:window.innerWidth;if(r==="end"){const m=f+i-h+c.width;return m>=-c.width||!a?m:0}return r==="center"?f-h/2+c.width/2:0}return 0},Rmt=({axis:t,parent:e})=>{if(!e&&typeof document>"u")return 0;const n=t==="y"?"scrollTop":"scrollLeft";if(e)return e[n];const{body:r,documentElement:i}=document;return r[n]+i[n]},$mt=({axis:t,parent:e,distance:n})=>{if(!e&&typeof document>"u")return;const r=t==="y"?"scrollTop":"scrollLeft";if(e)e[r]=n;else{const{body:i,documentElement:a}=document;i[r]=n,a[r]=n}};function xPe({duration:t=1250,axis:e="y",onScrollFinish:n,easing:r=Pmt,offset:i=0,cancelable:a=!0,isList:o=!1}={}){const s=w.useRef(0),l=w.useRef(0),c=w.useRef(!1),u=w.useRef(null),f=w.useRef(null),h=e3(),m=()=>{s.current&&cancelAnimationFrame(s.current)},A=w.useCallback(({alignment:v="start"}={})=>{var y;c.current=!1,s.current&&m();const x=(y=Rmt({parent:u.current,axis:e}))!=null?y:0,k=Mmt({parent:u.current,target:f.current,axis:e,alignment:v,offset:i,isList:o})-(u.current?0:x);function S(){l.current===0&&(l.current=performance.now());const N=performance.now()-l.current,E=h||t===0?1:N/t,D=x+k*r(E);$mt({parent:u.current,axis:e,distance:D}),!c.current&&E<1?s.current=requestAnimationFrame(S):(typeof n=="function"&&n(),l.current=0,s.current=0,m())}S()},[e,t,r,o,i,n,h]),p=()=>{a&&(c.current=!0)};return DY("wheel",p,{passive:!0}),DY("touchmove",p,{passive:!0}),w.useEffect(()=>m,[]),{scrollableRef:u,targetRef:f,scrollIntoView:A,cancel:m}}function zhe(){if(typeof window>"u")return"undetermined";const{userAgent:t}=window.navigator,e=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,n=/(Win32)|(Win64)|(Windows)|(WinCE)/i,r=/(iPhone)|(iPad)|(iPod)/i;return e.test(t)?"macos":r.test(t)?"ios":n.test(t)?"windows":/Android/i.test(t)?"android":/Linux/i.test(t)?"linux":"undetermined"}function Lmt(t={getValueInEffect:!0}){const[e,n]=w.useState(t.getValueInEffect?"undetermined":zhe());return Wte(()=>{t.getValueInEffect&&n(zhe)},[]),e}function gs(t=!1,e){const{onOpen:n,onClose:r}={},[i,a]=w.useState(t),o=w.useCallback(()=>{a(c=>c||(n?.(),!0))},[n]),s=w.useCallback(()=>{a(c=>c&&(r?.(),!1))},[r]),l=w.useCallback(()=>{i?s():o()},[s,o,i]);return[i,{open:o,close:s,toggle:l}]}function Hhe(t){return typeof t!="string"?"":t.charAt(0).toUpperCase()+t.slice(1)}const XI={context:"Accordion component was not found in the tree",itemContext:"Accordion.Item component was not found in the tree",value:"Accordion.Item component was rendered with invalid value or without value"},[Umt,ZI]=Kf(XI.context);function zmt({children:t,multiple:e,value:n,defaultValue:r,onChange:i,id:a,loop:o,transitionDuration:s,disableChevronRotation:l,chevronPosition:c,chevronSize:u,order:f,chevron:h,variant:m,radius:A,classNames:p,styles:v,unstyled:y}){const x=Lx(a),[k,S]=Kc({value:n,defaultValue:r,finalValue:e?[]:null,onChange:i}),C=E=>Array.isArray(k)?k.includes(E):E===k,N=E=>{const D=Array.isArray(k)?k.includes(E)?k.filter(T=>T!==E):[...k,E]:E===k?null:E;S(D)};return L.createElement(Umt,{value:{isItemActive:C,onChange:N,getControlId:uhe(`${x}-control`,XI.value),getRegionId:uhe(`${x}-panel`,XI.value),transitionDuration:s,disableChevronRotation:l,chevronPosition:c,chevronSize:u,order:f,chevron:h,loop:o,variant:m,radius:A,classNames:p,styles:v,unstyled:y}},t)}const[Hmt,wPe]=Kf(XI.itemContext);function Vmt(t,e,{radius:n}){const r=t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[3],i=t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[0],a=t.fn.radius(n);return e==="default"?{color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,borderBottom:`${He(1)} solid ${r}`}:e==="contained"?{border:`${He(1)} solid ${r}`,transition:"background-color 150ms ease","&[data-active]":{backgroundColor:i},"&:first-of-type":{borderTopRightRadius:a,borderTopLeftRadius:a,"& > [data-accordion-control]":{borderTopRightRadius:a,borderTopLeftRadius:a}},"&:last-of-type":{borderBottomRightRadius:a,borderBottomLeftRadius:a,"& > [data-accordion-control]":{borderBottomRightRadius:a,borderBottomLeftRadius:a}},"& + &":{borderTop:0}}:e==="filled"?{borderRadius:a,"&[data-active]":{backgroundColor:i}}:e==="separated"?{borderRadius:a,backgroundColor:i,border:`${He(1)} solid transparent`,transition:"background-color 150ms ease","& + &":{marginTop:t.spacing.md},"&[data-active]":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[7]:t.white,borderColor:r}}:{}}var Qmt=cn((t,e,{variant:n})=>({item:Vmt(t,n,e)})),Vhe=Object.getOwnPropertySymbols,qmt=Object.prototype.hasOwnProperty,Gmt=Object.prototype.propertyIsEnumerable,Wmt=(t,e)=>{var n={};for(var r in t)qmt.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Vhe)for(var r of Vhe(t))e.indexOf(r)<0&&Gmt.call(t,r)&&(n[r]=t[r]);return n};function mC(t){const e=t,{m:n,mx:r,my:i,mt:a,mb:o,ml:s,mr:l,p:c,px:u,py:f,pt:h,pb:m,pl:A,pr:p,bg:v,c:y,opacity:x,ff:k,fz:S,fw:C,lts:N,ta:E,lh:D,fs:T,tt:I,td:O,w:B,miw:M,maw:$,h:U,mih:P,mah:Q,bgsz:G,bgp:X,bgr:he,bga:ne,pos:H,top:W,left:q,bottom:Z,right:re,inset:te,display:ue}=e,fe=Wmt(e,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:fPe({m:n,mx:r,my:i,mt:a,mb:o,ml:s,mr:l,p:c,px:u,py:f,pt:h,pb:m,pl:A,pr:p,bg:v,c:y,opacity:x,ff:k,fz:S,fw:C,lts:N,ta:E,lh:D,fs:T,tt:I,td:O,w:B,miw:M,maw:$,h:U,mih:P,mah:Q,bgsz:G,bgp:X,bgr:he,bga:ne,pos:H,top:W,left:q,bottom:Z,right:re,inset:te,display:ue}),rest:fe}}function Kmt(t,e){const n=Object.keys(t).filter(r=>r!=="base").sort((r,i)=>Xh(Tt({size:r,sizes:e.breakpoints}))-Xh(Tt({size:i,sizes:e.breakpoints})));return"base"in t?["base",...n]:n}function Ymt({value:t,theme:e,getValue:n,property:r}){if(t==null)return;if(typeof t=="object")return Kmt(t,e).reduce((o,s)=>{if(s==="base"&&t.base!==void 0){const c=n(t.base,e);return Array.isArray(r)?(r.forEach(u=>{o[u]=c}),o):(o[r]=c,o)}const l=n(t[s],e);return Array.isArray(r)?(o[e.fn.largerThan(s)]={},r.forEach(c=>{o[e.fn.largerThan(s)][c]=l}),o):(o[e.fn.largerThan(s)]={[r]:l},o)},{});const i=n(t,e);return Array.isArray(r)?r.reduce((a,o)=>(a[o]=i,a),{}):{[r]:i}}function Xmt(t,e){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:e.fn.variant({variant:"filled",color:t,primaryFallback:!1}).background}function Zmt(t){return He(t)}function Jmt(t){return t}function ept(t,e){return Tt({size:t,sizes:e.fontSizes})}const tpt=["-xs","-sm","-md","-lg","-xl"];function npt(t,e){return tpt.includes(t)?`calc(${Tt({size:t.replace("-",""),sizes:e.spacing})} * -1)`:Tt({size:t,sizes:e.spacing})}const rpt={identity:Jmt,color:Xmt,size:Zmt,fontSize:ept,spacing:npt},ipt={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"}};var apt=Object.defineProperty,Qhe=Object.getOwnPropertySymbols,opt=Object.prototype.hasOwnProperty,spt=Object.prototype.propertyIsEnumerable,qhe=(t,e,n)=>e in t?apt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ghe=(t,e)=>{for(var n in e||(e={}))opt.call(e,n)&&qhe(t,n,e[n]);if(Qhe)for(var n of Qhe(e))spt.call(e,n)&&qhe(t,n,e[n]);return t};function Whe(t,e,n=ipt){return Object.keys(n).reduce((i,a)=>(a in t&&t[a]!==void 0&&i.push(Ymt({value:t[a],getValue:rpt[n[a].type],property:n[a].property,theme:e})),i),[]).reduce((i,a)=>(Object.keys(a).forEach(o=>{typeof a[o]=="object"&&a[o]!==null&&o in i?i[o]=Ghe(Ghe({},i[o]),a[o]):i[o]=a[o]}),i),{})}function Khe(t,e){return typeof t=="function"?t(e):t}function lpt(t,e,n){const r=Vu(),{css:i,cx:a}=pPe();return Array.isArray(t)?a(n,i(Whe(e,r)),t.map(o=>i(Khe(o,r)))):a(n,i(Khe(t,r)),i(Whe(e,r)))}var cpt=Object.defineProperty,JI=Object.getOwnPropertySymbols,kPe=Object.prototype.hasOwnProperty,SPe=Object.prototype.propertyIsEnumerable,Yhe=(t,e,n)=>e in t?cpt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,upt=(t,e)=>{for(var n in e||(e={}))kPe.call(e,n)&&Yhe(t,n,e[n]);if(JI)for(var n of JI(e))SPe.call(e,n)&&Yhe(t,n,e[n]);return t},dpt=(t,e)=>{var n={};for(var r in t)kPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&JI)for(var r of JI(t))e.indexOf(r)<0&&SPe.call(t,r)&&(n[r]=t[r]);return n};const CPe=w.forwardRef((t,e)=>{var n=t,{className:r,component:i,style:a,sx:o}=n,s=dpt(n,["className","component","style","sx"]);const{systemStyles:l,rest:c}=mC(s),u=i||"div";return L.createElement(u,upt({ref:e,className:lpt(o,l,r),style:a},c))});CPe.displayName="@mantine/core/Box";const En=CPe;var fpt=Object.defineProperty,eP=Object.getOwnPropertySymbols,_Pe=Object.prototype.hasOwnProperty,NPe=Object.prototype.propertyIsEnumerable,Xhe=(t,e,n)=>e in t?fpt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hpt=(t,e)=>{for(var n in e||(e={}))_Pe.call(e,n)&&Xhe(t,n,e[n]);if(eP)for(var n of eP(e))NPe.call(e,n)&&Xhe(t,n,e[n]);return t},mpt=(t,e)=>{var n={};for(var r in t)_Pe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&eP)for(var r of eP(t))e.indexOf(r)<0&&NPe.call(t,r)&&(n[r]=t[r]);return n};const ppt={},EPe=w.forwardRef((t,e)=>{const n=Qt("AccordionItem",ppt,t),{children:r,className:i,value:a}=n,o=mpt(n,["children","className","value"]),s=ZI(),{classes:l,cx:c}=Qmt({radius:s.radius},{name:"Accordion",classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant});return L.createElement(Hmt,{value:{value:a}},L.createElement(En,hpt({ref:e,className:c(l.item,i),"data-active":s.isItemActive(a)||void 0},o),r))});EPe.displayName="@mantine/core/AccordionItem";var Apt=Object.defineProperty,gpt=Object.defineProperties,vpt=Object.getOwnPropertyDescriptors,Zhe=Object.getOwnPropertySymbols,ypt=Object.prototype.hasOwnProperty,bpt=Object.prototype.propertyIsEnumerable,Jhe=(t,e,n)=>e in t?Apt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,VO=(t,e)=>{for(var n in e||(e={}))ypt.call(e,n)&&Jhe(t,n,e[n]);if(Zhe)for(var n of Zhe(e))bpt.call(e,n)&&Jhe(t,n,e[n]);return t},xpt=(t,e)=>gpt(t,vpt(e));function wpt(t,e){return e==="default"||e==="contained"?t.fn.hover({backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[0]}):{}}var kpt=cn((t,{transitionDuration:e,chevronPosition:n,chevronSize:r},{variant:i})=>({icon:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:n==="left"?0:t.spacing.sm,marginLeft:n==="left"?t.spacing.lg:0},chevron:{display:"flex",alignItems:"center",justifyContent:"center",transition:`transform ${e}ms ease`,marginRight:n==="right"?0:t.spacing.sm,marginLeft:n==="right"?t.spacing.lg:0,width:He(r),minWidth:He(r),"&[data-rotate]":{transform:"rotate(180deg)"}},label:{color:"inherit",fontWeight:400,flex:1,overflow:"hidden",textOverflow:"ellipsis",paddingTop:t.spacing.md,paddingBottom:t.spacing.md},itemTitle:{margin:0,padding:0},control:xpt(VO(VO(VO({},t.fn.focusStyles()),t.fn.fontStyles()),wpt(t,i)),{width:"100%",display:"flex",alignItems:"center",flexDirection:n==="right"?"row-reverse":"row",paddingRight:t.spacing.md,paddingLeft:n==="right"?`calc(${t.spacing.md} + ${He(4)})`:t.spacing.xs,textAlign:"left",color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,"&:disabled":VO({opacity:.4,cursor:"not-allowed"},t.fn.hover({backgroundColor:"transparent"}))})})),Spt=Object.defineProperty,Cpt=Object.defineProperties,_pt=Object.getOwnPropertyDescriptors,eme=Object.getOwnPropertySymbols,Npt=Object.prototype.hasOwnProperty,Ept=Object.prototype.propertyIsEnumerable,tme=(t,e,n)=>e in t?Spt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nme=(t,e)=>{for(var n in e||(e={}))Npt.call(e,n)&&tme(t,n,e[n]);if(eme)for(var n of eme(e))Ept.call(e,n)&&tme(t,n,e[n]);return t},Fpt=(t,e)=>Cpt(t,_pt(e)),Dpt=cn(t=>({root:Fpt(nme(nme({},t.fn.focusStyles()),t.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:t.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,textDecoration:"none",boxSizing:"border-box"})})),Tpt=Object.defineProperty,tP=Object.getOwnPropertySymbols,FPe=Object.prototype.hasOwnProperty,DPe=Object.prototype.propertyIsEnumerable,rme=(t,e,n)=>e in t?Tpt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Opt=(t,e)=>{for(var n in e||(e={}))FPe.call(e,n)&&rme(t,n,e[n]);if(tP)for(var n of tP(e))DPe.call(e,n)&&rme(t,n,e[n]);return t},Bpt=(t,e)=>{var n={};for(var r in t)FPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&tP)for(var r of tP(t))e.indexOf(r)<0&&DPe.call(t,r)&&(n[r]=t[r]);return n};const TPe=w.forwardRef((t,e)=>{const n=Qt("UnstyledButton",{},t),{className:r,component:i="button",unstyled:a,variant:o}=n,s=Bpt(n,["className","component","unstyled","variant"]),{classes:l,cx:c}=Dpt(null,{name:"UnstyledButton",unstyled:a,variant:o});return L.createElement(En,Opt({component:i,ref:e,className:c(l.root,r),type:i==="button"?"button":void 0},s))});TPe.displayName="@mantine/core/UnstyledButton";const Od=TPe;var jpt=Object.defineProperty,Ipt=Object.defineProperties,Ppt=Object.getOwnPropertyDescriptors,nP=Object.getOwnPropertySymbols,OPe=Object.prototype.hasOwnProperty,BPe=Object.prototype.propertyIsEnumerable,ime=(t,e,n)=>e in t?jpt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mpt=(t,e)=>{for(var n in e||(e={}))OPe.call(e,n)&&ime(t,n,e[n]);if(nP)for(var n of nP(e))BPe.call(e,n)&&ime(t,n,e[n]);return t},Rpt=(t,e)=>Ipt(t,Ppt(e)),$pt=(t,e)=>{var n={};for(var r in t)OPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&nP)for(var r of nP(t))e.indexOf(r)<0&&BPe.call(t,r)&&(n[r]=t[r]);return n};const Lpt={},jPe=w.forwardRef((t,e)=>{const n=Qt("AccordionControl",Lpt,t),{disabled:r,onKeyDown:i,onClick:a,chevron:o,children:s,className:l,icon:c}=n,u=$pt(n,["disabled","onKeyDown","onClick","chevron","children","className","icon"]),f=ZI(),{value:h}=wPe(),{classes:m,cx:A}=kpt({transitionDuration:f.transitionDuration,chevronPosition:f.chevronPosition,chevronSize:f.chevronSize,radius:f.radius},{name:"Accordion",classNames:f.classNames,styles:f.styles,unstyled:f.unstyled,variant:f.variant}),p=f.isItemActive(h),v=typeof f.order=="number",y=`h${f.order}`,x=L.createElement(Od,Rpt(Mpt({},u),{ref:e,"data-accordion-control":!0,disabled:r,className:A(m.control,l),onClick:k=>{a?.(k),f.onChange(h)},type:"button","data-active":p||void 0,"aria-expanded":p,"aria-controls":f.getRegionId(h),id:f.getControlId(h),unstyled:f.unstyled,onKeyDown:HIe({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:f.loop,orientation:"vertical",onKeyDown:i})}),L.createElement("span",{className:m.chevron,"data-rotate":!f.disableChevronRotation&&p||void 0},o||f.chevron),L.createElement("span",{className:m.label},s),c&&L.createElement("span",{className:m.icon},c));return v?L.createElement(y,{className:m.itemTitle},x):x});jPe.displayName="@mantine/core/AccordionControl";var Upt=Object.defineProperty,zpt=Object.defineProperties,Hpt=Object.getOwnPropertyDescriptors,ame=Object.getOwnPropertySymbols,Vpt=Object.prototype.hasOwnProperty,Qpt=Object.prototype.propertyIsEnumerable,ome=(t,e,n)=>e in t?Upt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qpt=(t,e)=>{for(var n in e||(e={}))Vpt.call(e,n)&&ome(t,n,e[n]);if(ame)for(var n of ame(e))Qpt.call(e,n)&&ome(t,n,e[n]);return t},Gpt=(t,e)=>zpt(t,Hpt(e)),Wpt=cn((t,e)=>({panel:Gpt(qpt({},t.fn.fontStyles()),{wordBreak:"break-word",lineHeight:t.lineHeight}),content:{padding:t.spacing.md,paddingTop:`calc(${t.spacing.xs} / 2)`}})),Kpt=Object.defineProperty,Ypt=Object.defineProperties,Xpt=Object.getOwnPropertyDescriptors,rP=Object.getOwnPropertySymbols,IPe=Object.prototype.hasOwnProperty,PPe=Object.prototype.propertyIsEnumerable,sme=(t,e,n)=>e in t?Kpt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,L0=(t,e)=>{for(var n in e||(e={}))IPe.call(e,n)&&sme(t,n,e[n]);if(rP)for(var n of rP(e))PPe.call(e,n)&&sme(t,n,e[n]);return t},kz=(t,e)=>Ypt(t,Xpt(e)),Zpt=(t,e)=>{var n={};for(var r in t)IPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&rP)for(var r of rP(t))e.indexOf(r)<0&&PPe.call(t,r)&&(n[r]=t[r]);return n};function Jpt(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function Sz(t){return t?.current?t.current.scrollHeight:"auto"}const QO=typeof window<"u"&&window.requestAnimationFrame;function eAt({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r}){const i=w.useRef(null),a=0,o={display:"none",height:0,overflow:"hidden"},[s,l]=w.useState(r?{}:o),c=A=>{Wf.flushSync(()=>l(A))},u=A=>{c(p=>L0(L0({},p),A))};function f(A){return{transition:`height ${t||Jpt(A)}ms ${e}`}}Gl(()=>{QO(r?()=>{u({willChange:"height",display:"block",overflow:"hidden"}),QO(()=>{const A=Sz(i);u(kz(L0({},f(A)),{height:A}))})}:()=>{const A=Sz(i);u(kz(L0({},f(A)),{willChange:"height",height:A})),QO(()=>u({height:a,overflow:"hidden"}))})},[r]);const h=A=>{if(!(A.target!==i.current||A.propertyName!=="height"))if(r){const p=Sz(i);p===s.height?c({}):u({height:p}),n()}else s.height===a&&(c(o),n())};function m(A={}){var p=A,{style:v={},refKey:y="ref"}=p,x=Zpt(p,["style","refKey"]);const k=x[y];return kz(L0({"aria-hidden":!r},x),{[y]:bPe(i,k),onTransitionEnd:h,style:L0(L0({boxSizing:"border-box"},v),s)})}return m}var tAt=Object.defineProperty,iP=Object.getOwnPropertySymbols,MPe=Object.prototype.hasOwnProperty,RPe=Object.prototype.propertyIsEnumerable,lme=(t,e,n)=>e in t?tAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qO=(t,e)=>{for(var n in e||(e={}))MPe.call(e,n)&&lme(t,n,e[n]);if(iP)for(var n of iP(e))RPe.call(e,n)&&lme(t,n,e[n]);return t},nAt=(t,e)=>{var n={};for(var r in t)MPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&iP)for(var r of iP(t))e.indexOf(r)<0&&RPe.call(t,r)&&(n[r]=t[r]);return n};const rAt={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},t3=w.forwardRef((t,e)=>{const n=Qt("Collapse",rAt,t),{children:r,in:i,transitionDuration:a,transitionTimingFunction:o,style:s,onTransitionEnd:l,animateOpacity:c}=n,u=nAt(n,["children","in","transitionDuration","transitionTimingFunction","style","onTransitionEnd","animateOpacity"]),f=Vu(),h=e3(),A=(f.respectReducedMotion?h:!1)?0:a,{systemStyles:p,rest:v}=mC(u),y=eAt({opened:i,transitionDuration:A,transitionTimingFunction:o,onTransitionEnd:l});return A===0?i?L.createElement(En,qO({},v),r):null:L.createElement(En,qO({},y(qO(qO({style:s,ref:e},v),p))),L.createElement("div",{style:{opacity:i||!c?1:0,transition:c?`opacity ${A}ms ${o}`:"none"}},r))});t3.displayName="@mantine/core/Collapse";var iAt=Object.defineProperty,aAt=Object.defineProperties,oAt=Object.getOwnPropertyDescriptors,aP=Object.getOwnPropertySymbols,$Pe=Object.prototype.hasOwnProperty,LPe=Object.prototype.propertyIsEnumerable,cme=(t,e,n)=>e in t?iAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sAt=(t,e)=>{for(var n in e||(e={}))$Pe.call(e,n)&&cme(t,n,e[n]);if(aP)for(var n of aP(e))LPe.call(e,n)&&cme(t,n,e[n]);return t},lAt=(t,e)=>aAt(t,oAt(e)),cAt=(t,e)=>{var n={};for(var r in t)$Pe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&aP)for(var r of aP(t))e.indexOf(r)<0&&LPe.call(t,r)&&(n[r]=t[r]);return n};const uAt={};function UPe(t){const e=Qt("AccordionPanel",uAt,t),{children:n,className:r}=e,i=cAt(e,["children","className"]),a=ZI(),{value:o}=wPe(),{classNames:s,styles:l,unstyled:c}=ZI(),{classes:u,cx:f}=Wpt({radius:a.radius},{name:"Accordion",classNames:s,styles:l,unstyled:c,variant:a.variant});return L.createElement(t3,lAt(sAt({},i),{className:f(u.panel,r),in:a.isItemActive(o),transitionDuration:a.transitionDuration,role:"region",id:a.getRegionId(o),"aria-labelledby":a.getControlId(o)}),L.createElement("div",{className:u.content},n))}UPe.displayName="@mantine/core/AccordionPanel";var dAt=Object.defineProperty,oP=Object.getOwnPropertySymbols,zPe=Object.prototype.hasOwnProperty,HPe=Object.prototype.propertyIsEnumerable,ume=(t,e,n)=>e in t?dAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dme=(t,e)=>{for(var n in e||(e={}))zPe.call(e,n)&&ume(t,n,e[n]);if(oP)for(var n of oP(e))HPe.call(e,n)&&ume(t,n,e[n]);return t},fAt=(t,e)=>{var n={};for(var r in t)zPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&oP)for(var r of oP(t))e.indexOf(r)<0&&HPe.call(t,r)&&(n[r]=t[r]);return n};function uE(t){const e=t,{style:n}=e,r=fAt(e,["style"]);return L.createElement("svg",dme({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:dme({width:He(16),height:He(16)},n)},r),L.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var hAt=Object.defineProperty,mAt=Object.defineProperties,pAt=Object.getOwnPropertyDescriptors,sP=Object.getOwnPropertySymbols,VPe=Object.prototype.hasOwnProperty,QPe=Object.prototype.propertyIsEnumerable,fme=(t,e,n)=>e in t?hAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,AAt=(t,e)=>{for(var n in e||(e={}))VPe.call(e,n)&&fme(t,n,e[n]);if(sP)for(var n of sP(e))QPe.call(e,n)&&fme(t,n,e[n]);return t},gAt=(t,e)=>mAt(t,pAt(e)),vAt=(t,e)=>{var n={};for(var r in t)VPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&sP)for(var r of sP(t))e.indexOf(r)<0&&QPe.call(t,r)&&(n[r]=t[r]);return n};const yAt={multiple:!1,disableChevronRotation:!1,transitionDuration:200,chevronPosition:"right",variant:"default",chevronSize:24,chevron:L.createElement(uE,null)};function Mn(t){const e=Qt("Accordion",yAt,t),{id:n,loop:r,children:i,multiple:a,value:o,defaultValue:s,onChange:l,transitionDuration:c,disableChevronRotation:u,chevronPosition:f,chevronSize:h,order:m,chevron:A,classNames:p,styles:v,unstyled:y,variant:x,radius:k}=e,S=vAt(e,["id","loop","children","multiple","value","defaultValue","onChange","transitionDuration","disableChevronRotation","chevronPosition","chevronSize","order","chevron","classNames","styles","unstyled","variant","radius"]);return L.createElement(zmt,{id:n,multiple:a,value:o,defaultValue:s,onChange:l,loop:r,transitionDuration:c,disableChevronRotation:u,chevronPosition:f,chevronSize:h,order:m,chevron:A,variant:x,radius:k,classNames:p,styles:v,unstyled:y},L.createElement(En,gAt(AAt({},S),{"data-accordion":!0}),i))}Mn.Item=EPe;Mn.Control=jPe;Mn.Panel=UPe;Mn.displayName="@mantine/core/Accordion";var bAt=Object.defineProperty,xAt=Object.defineProperties,wAt=Object.getOwnPropertyDescriptors,hme=Object.getOwnPropertySymbols,kAt=Object.prototype.hasOwnProperty,SAt=Object.prototype.propertyIsEnumerable,mme=(t,e,n)=>e in t?bAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,TY=(t,e)=>{for(var n in e||(e={}))kAt.call(e,n)&&mme(t,n,e[n]);if(hme)for(var n of hme(e))SAt.call(e,n)&&mme(t,n,e[n]);return t},pme=(t,e)=>xAt(t,wAt(e));const CAt=["subtle","filled","outline","light","default","transparent","gradient"],GO={xs:He(18),sm:He(22),md:He(28),lg:He(34),xl:He(44)};function _At({variant:t,theme:e,color:n,gradient:r}){const i=e.fn.variant({color:n,variant:t,gradient:r});return t==="gradient"?{border:0,backgroundImage:i.background,color:i.color,"&:hover":e.fn.hover({backgroundSize:"200%"})}:CAt.includes(t)?TY({border:`${He(1)} solid ${i.border}`,backgroundColor:i.background,color:i.color},e.fn.hover({backgroundColor:i.hover})):null}var NAt=cn((t,{radius:e,color:n,gradient:r},{variant:i,size:a})=>({root:pme(TY({position:"relative",borderRadius:t.fn.radius(e),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:Tt({size:a,sizes:GO}),minHeight:Tt({size:a,sizes:GO}),width:Tt({size:a,sizes:GO}),minWidth:Tt({size:a,sizes:GO})},_At({variant:i,theme:t,color:n,gradient:r})),{"&:active":t.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:t.colors.gray[t.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:i==="transparent"?void 0:t.fn.themeColor("gray",t.colorScheme==="dark"?8:1),borderColor:i==="transparent"?void 0:t.fn.themeColor("gray",t.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":pme(TY({content:'""'},t.fn.cover(He(-1))),{backgroundColor:t.colorScheme==="dark"?t.fn.rgba(t.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:t.fn.radius(e),cursor:"not-allowed"})}})})),EAt=Object.defineProperty,lP=Object.getOwnPropertySymbols,qPe=Object.prototype.hasOwnProperty,GPe=Object.prototype.propertyIsEnumerable,Ame=(t,e,n)=>e in t?EAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gme=(t,e)=>{for(var n in e||(e={}))qPe.call(e,n)&&Ame(t,n,e[n]);if(lP)for(var n of lP(e))GPe.call(e,n)&&Ame(t,n,e[n]);return t},vme=(t,e)=>{var n={};for(var r in t)qPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&lP)for(var r of lP(t))e.indexOf(r)<0&&GPe.call(t,r)&&(n[r]=t[r]);return n};function FAt(t){var e=t,{size:n,color:r}=e,i=vme(e,["size","color"]);const a=i,{style:o}=a,s=vme(a,["style"]);return L.createElement("svg",gme({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:r,style:gme({width:n},o)},s),L.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},L.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),L.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},L.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),L.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},L.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),L.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},L.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),L.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},L.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var DAt=Object.defineProperty,cP=Object.getOwnPropertySymbols,WPe=Object.prototype.hasOwnProperty,KPe=Object.prototype.propertyIsEnumerable,yme=(t,e,n)=>e in t?DAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bme=(t,e)=>{for(var n in e||(e={}))WPe.call(e,n)&&yme(t,n,e[n]);if(cP)for(var n of cP(e))KPe.call(e,n)&&yme(t,n,e[n]);return t},xme=(t,e)=>{var n={};for(var r in t)WPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&cP)for(var r of cP(t))e.indexOf(r)<0&&KPe.call(t,r)&&(n[r]=t[r]);return n};function TAt(t){var e=t,{size:n,color:r}=e,i=xme(e,["size","color"]);const a=i,{style:o}=a,s=xme(a,["style"]);return L.createElement("svg",bme({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:r,style:bme({width:n,height:n},o)},s),L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},L.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),L.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},L.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var OAt=Object.defineProperty,uP=Object.getOwnPropertySymbols,YPe=Object.prototype.hasOwnProperty,XPe=Object.prototype.propertyIsEnumerable,wme=(t,e,n)=>e in t?OAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kme=(t,e)=>{for(var n in e||(e={}))YPe.call(e,n)&&wme(t,n,e[n]);if(uP)for(var n of uP(e))XPe.call(e,n)&&wme(t,n,e[n]);return t},Sme=(t,e)=>{var n={};for(var r in t)YPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&uP)for(var r of uP(t))e.indexOf(r)<0&&XPe.call(t,r)&&(n[r]=t[r]);return n};function BAt(t){var e=t,{size:n,color:r}=e,i=Sme(e,["size","color"]);const a=i,{style:o}=a,s=Sme(a,["style"]);return L.createElement("svg",kme({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,style:kme({width:n},o)},s),L.createElement("circle",{cx:"15",cy:"15",r:"15"},L.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),L.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},L.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),L.createElement("circle",{cx:"105",cy:"15",r:"15"},L.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),L.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var jAt=Object.defineProperty,dP=Object.getOwnPropertySymbols,ZPe=Object.prototype.hasOwnProperty,JPe=Object.prototype.propertyIsEnumerable,Cme=(t,e,n)=>e in t?jAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,IAt=(t,e)=>{for(var n in e||(e={}))ZPe.call(e,n)&&Cme(t,n,e[n]);if(dP)for(var n of dP(e))JPe.call(e,n)&&Cme(t,n,e[n]);return t},PAt=(t,e)=>{var n={};for(var r in t)ZPe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&dP)for(var r of dP(t))e.indexOf(r)<0&&JPe.call(t,r)&&(n[r]=t[r]);return n};const Cz={bars:FAt,oval:TAt,dots:BAt},MAt={xs:He(18),sm:He(22),md:He(36),lg:He(44),xl:He(58)},RAt={size:"md"};function fo(t){const e=Qt("Loader",RAt,t),{size:n,color:r,variant:i}=e,a=PAt(e,["size","color","variant"]),o=Vu(),s=i in Cz?i:o.loader;return L.createElement(En,IAt({role:"presentation",component:Cz[s]||Cz.bars,size:Tt({size:n,sizes:MAt}),color:o.fn.variant({variant:"filled",primaryFallback:!1,color:r||o.primaryColor}).background},a))}fo.displayName="@mantine/core/Loader";var $At=Object.defineProperty,fP=Object.getOwnPropertySymbols,e4e=Object.prototype.hasOwnProperty,t4e=Object.prototype.propertyIsEnumerable,_me=(t,e,n)=>e in t?$At(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Nme=(t,e)=>{for(var n in e||(e={}))e4e.call(e,n)&&_me(t,n,e[n]);if(fP)for(var n of fP(e))t4e.call(e,n)&&_me(t,n,e[n]);return t},LAt=(t,e)=>{var n={};for(var r in t)e4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&fP)for(var r of fP(t))e.indexOf(r)<0&&t4e.call(t,r)&&(n[r]=t[r]);return n};const UAt={color:"gray",size:"md",variant:"subtle"},n4e=w.forwardRef((t,e)=>{const n=Qt("ActionIcon",UAt,t),{className:r,color:i,children:a,radius:o,size:s,variant:l,gradient:c,disabled:u,loaderProps:f,loading:h,unstyled:m,__staticSelector:A}=n,p=LAt(n,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:v,cx:y,theme:x}=NAt({radius:o,color:i,gradient:c},{name:["ActionIcon",A],unstyled:m,size:s,variant:l}),k=L.createElement(fo,Nme({color:x.fn.variant({color:i,variant:l}).color,size:"100%","data-action-icon-loader":!0},f));return L.createElement(Od,Nme({className:y(v.root,r),ref:e,disabled:u,"data-disabled":u||void 0,"data-loading":h||void 0,unstyled:m},p),h?k:a)});n4e.displayName="@mantine/core/ActionIcon";const r4e=n4e;var zAt=Object.defineProperty,HAt=Object.defineProperties,VAt=Object.getOwnPropertyDescriptors,hP=Object.getOwnPropertySymbols,i4e=Object.prototype.hasOwnProperty,a4e=Object.prototype.propertyIsEnumerable,Eme=(t,e,n)=>e in t?zAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,QAt=(t,e)=>{for(var n in e||(e={}))i4e.call(e,n)&&Eme(t,n,e[n]);if(hP)for(var n of hP(e))a4e.call(e,n)&&Eme(t,n,e[n]);return t},qAt=(t,e)=>HAt(t,VAt(e)),GAt=(t,e)=>{var n={};for(var r in t)i4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hP)for(var r of hP(t))e.indexOf(r)<0&&a4e.call(t,r)&&(n[r]=t[r]);return n};function o4e(t){const e=Qt("Portal",{},t),{children:n,target:r,className:i,innerRef:a}=e,o=GAt(e,["children","target","className","innerRef"]),s=Vu(),[l,c]=w.useState(!1),u=w.useRef();return Wte(()=>(c(!0),u.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(u.current),()=>{!r&&document.body.removeChild(u.current)}),[r]),l?Wf.createPortal(L.createElement("div",qAt(QAt({className:i,dir:s.dir},o),{ref:a}),n),u.current):null}o4e.displayName="@mantine/core/Portal";var WAt=Object.defineProperty,mP=Object.getOwnPropertySymbols,s4e=Object.prototype.hasOwnProperty,l4e=Object.prototype.propertyIsEnumerable,Fme=(t,e,n)=>e in t?WAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KAt=(t,e)=>{for(var n in e||(e={}))s4e.call(e,n)&&Fme(t,n,e[n]);if(mP)for(var n of mP(e))l4e.call(e,n)&&Fme(t,n,e[n]);return t},YAt=(t,e)=>{var n={};for(var r in t)s4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&mP)for(var r of mP(t))e.indexOf(r)<0&&l4e.call(t,r)&&(n[r]=t[r]);return n};function pC(t){var e=t,{withinPortal:n=!0,children:r}=e,i=YAt(e,["withinPortal","children"]);return n?L.createElement(o4e,KAt({},i),r):L.createElement(L.Fragment,null,r)}pC.displayName="@mantine/core/OptionalPortal";var XAt=Object.defineProperty,pP=Object.getOwnPropertySymbols,c4e=Object.prototype.hasOwnProperty,u4e=Object.prototype.propertyIsEnumerable,Dme=(t,e,n)=>e in t?XAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tme=(t,e)=>{for(var n in e||(e={}))c4e.call(e,n)&&Dme(t,n,e[n]);if(pP)for(var n of pP(e))u4e.call(e,n)&&Dme(t,n,e[n]);return t},ZAt=(t,e)=>{var n={};for(var r in t)c4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&pP)for(var r of pP(t))e.indexOf(r)<0&&u4e.call(t,r)&&(n[r]=t[r]);return n};function d4e(t){const e=t,{width:n,height:r,style:i}=e,a=ZAt(e,["width","height","style"]);return L.createElement("svg",Tme({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Tme({width:n,height:r},i)},a),L.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}d4e.displayName="@mantine/core/CloseIcon";var JAt=Object.defineProperty,AP=Object.getOwnPropertySymbols,f4e=Object.prototype.hasOwnProperty,h4e=Object.prototype.propertyIsEnumerable,Ome=(t,e,n)=>e in t?JAt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,egt=(t,e)=>{for(var n in e||(e={}))f4e.call(e,n)&&Ome(t,n,e[n]);if(AP)for(var n of AP(e))h4e.call(e,n)&&Ome(t,n,e[n]);return t},tgt=(t,e)=>{var n={};for(var r in t)f4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&AP)for(var r of AP(t))e.indexOf(r)<0&&h4e.call(t,r)&&(n[r]=t[r]);return n};const ngt={xs:He(12),sm:He(16),md:He(20),lg:He(28),xl:He(34)},rgt={size:"sm"},m4e=w.forwardRef((t,e)=>{const n=Qt("CloseButton",rgt,t),{iconSize:r,size:i,children:a}=n,o=tgt(n,["iconSize","size","children"]),s=He(r||ngt[i]);return L.createElement(r4e,egt({ref:e,__staticSelector:"CloseButton",size:i},o),a||L.createElement(d4e,{width:s,height:s}))});m4e.displayName="@mantine/core/CloseButton";const rD=m4e;var igt=Object.defineProperty,agt=Object.defineProperties,ogt=Object.getOwnPropertyDescriptors,Bme=Object.getOwnPropertySymbols,sgt=Object.prototype.hasOwnProperty,lgt=Object.prototype.propertyIsEnumerable,jme=(t,e,n)=>e in t?igt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WO=(t,e)=>{for(var n in e||(e={}))sgt.call(e,n)&&jme(t,n,e[n]);if(Bme)for(var n of Bme(e))lgt.call(e,n)&&jme(t,n,e[n]);return t},cgt=(t,e)=>agt(t,ogt(e));function ugt({underline:t,strikethrough:e}){const n=[];return t&&n.push("underline"),e&&n.push("line-through"),n.length>0?n.join(" "):"none"}function dgt({theme:t,color:e}){return e==="dimmed"?t.fn.dimmed():typeof e=="string"&&(e in t.colors||e.split(".")[0]in t.colors)?t.fn.variant({variant:"filled",color:e}).background:e||"inherit"}function fgt(t){return typeof t=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical"}:null}function hgt({theme:t,truncate:e}){return e==="start"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:t.dir==="ltr"?"rtl":"ltr",textAlign:t.dir==="ltr"?"right":"left"}:e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var mgt=cn((t,{color:e,lineClamp:n,truncate:r,inline:i,inherit:a,underline:o,gradient:s,weight:l,transform:c,align:u,strikethrough:f,italic:h},{size:m})=>{const A=t.fn.variant({variant:"gradient",gradient:s});return{root:cgt(WO(WO(WO(WO({},t.fn.fontStyles()),t.fn.focusStyles()),fgt(n)),hgt({theme:t,truncate:r})),{color:dgt({color:e,theme:t}),fontFamily:a?"inherit":t.fontFamily,fontSize:a||m===void 0?"inherit":Tt({size:m,sizes:t.fontSizes}),lineHeight:a?"inherit":i?1:t.lineHeight,textDecoration:ugt({underline:o,strikethrough:f}),WebkitTapHighlightColor:"transparent",fontWeight:a?"inherit":l,textTransform:c,textAlign:u,fontStyle:h?"italic":void 0}),gradient:{backgroundImage:A.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),pgt=Object.defineProperty,gP=Object.getOwnPropertySymbols,p4e=Object.prototype.hasOwnProperty,A4e=Object.prototype.propertyIsEnumerable,Ime=(t,e,n)=>e in t?pgt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Agt=(t,e)=>{for(var n in e||(e={}))p4e.call(e,n)&&Ime(t,n,e[n]);if(gP)for(var n of gP(e))A4e.call(e,n)&&Ime(t,n,e[n]);return t},ggt=(t,e)=>{var n={};for(var r in t)p4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&gP)for(var r of gP(t))e.indexOf(r)<0&&A4e.call(t,r)&&(n[r]=t[r]);return n};const vgt={variant:"text"},g4e=w.forwardRef((t,e)=>{const n=Qt("Text",vgt,t),{className:r,size:i,weight:a,transform:o,color:s,align:l,variant:c,lineClamp:u,truncate:f,gradient:h,inline:m,inherit:A,underline:p,strikethrough:v,italic:y,classNames:x,styles:k,unstyled:S,span:C,__staticSelector:N}=n,E=ggt(n,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:D,cx:T}=mgt({color:s,lineClamp:u,truncate:f,inline:m,inherit:A,underline:p,strikethrough:v,italic:y,weight:a,transform:o,align:l,gradient:h},{unstyled:S,name:N||"Text",variant:c,size:i});return L.createElement(En,Agt({ref:e,className:T(D.root,{[D.gradient]:c==="gradient"},r),component:C?"span":"div"},E))});g4e.displayName="@mantine/core/Text";const Jn=g4e,KO={xs:He(1),sm:He(2),md:He(3),lg:He(4),xl:He(5)};function YO(t,e){const n=t.fn.variant({variant:"outline",color:e}).border;return typeof e=="string"&&(e in t.colors||e.split(".")[0]in t.colors)?n:e===void 0?t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[4]:e}var ygt=cn((t,{color:e},{size:n,variant:r})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:He(1),borderTop:`${Tt({size:n,sizes:KO})} ${r} ${YO(t,e)}`,marginRight:t.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${Tt({size:n,sizes:KO})} ${r} ${YO(t,e)}`,marginLeft:t.spacing.xs}},labelDefaultStyles:{color:e==="dark"?t.colors.dark[1]:t.fn.themeColor(e,t.colorScheme==="dark"?5:t.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:He(Tt({size:n,sizes:KO})),borderTopColor:YO(t,e),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:He(Tt({size:n,sizes:KO})),borderLeftColor:YO(t,e),borderLeftStyle:r}})),bgt=Object.defineProperty,xgt=Object.defineProperties,wgt=Object.getOwnPropertyDescriptors,vP=Object.getOwnPropertySymbols,v4e=Object.prototype.hasOwnProperty,y4e=Object.prototype.propertyIsEnumerable,Pme=(t,e,n)=>e in t?bgt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mme=(t,e)=>{for(var n in e||(e={}))v4e.call(e,n)&&Pme(t,n,e[n]);if(vP)for(var n of vP(e))y4e.call(e,n)&&Pme(t,n,e[n]);return t},kgt=(t,e)=>xgt(t,wgt(e)),Sgt=(t,e)=>{var n={};for(var r in t)v4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&vP)for(var r of vP(t))e.indexOf(r)<0&&y4e.call(t,r)&&(n[r]=t[r]);return n};const Cgt={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},OY=w.forwardRef((t,e)=>{const n=Qt("Divider",Cgt,t),{className:r,color:i,orientation:a,size:o,label:s,labelPosition:l,labelProps:c,variant:u,styles:f,classNames:h,unstyled:m}=n,A=Sgt(n,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:p,cx:v}=ygt({color:i},{classNames:h,styles:f,unstyled:m,name:"Divider",variant:u,size:o}),y=a==="vertical",x=a==="horizontal",k=!!s&&x,S=!c?.color;return L.createElement(En,Mme({ref:e,className:v(p.root,{[p.vertical]:y,[p.horizontal]:x,[p.withLabel]:k},r),role:"separator"},A),k&&L.createElement(Jn,kgt(Mme({},c),{size:c?.size||"xs",mt:He(2),className:v(p.label,p[l],{[p.labelDefaultStyles]:S})}),s))});OY.displayName="@mantine/core/Divider";var _gt=Object.defineProperty,Ngt=Object.defineProperties,Egt=Object.getOwnPropertyDescriptors,Rme=Object.getOwnPropertySymbols,Fgt=Object.prototype.hasOwnProperty,Dgt=Object.prototype.propertyIsEnumerable,$me=(t,e,n)=>e in t?_gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lme=(t,e)=>{for(var n in e||(e={}))Fgt.call(e,n)&&$me(t,n,e[n]);if(Rme)for(var n of Rme(e))Dgt.call(e,n)&&$me(t,n,e[n]);return t},Tgt=(t,e)=>Ngt(t,Egt(e)),Ogt=cn((t,e,{size:n})=>({item:Tgt(Lme({},t.fn.fontStyles()),{boxSizing:"border-box",wordBreak:"break-all",textAlign:"left",width:"100%",padding:`calc(${Tt({size:n,sizes:t.spacing})} / 1.5) ${Tt({size:n,sizes:t.spacing})}`,cursor:"pointer",fontSize:Tt({size:n,sizes:t.fontSizes}),color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,borderRadius:t.fn.radius(),"&[data-hovered]":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[1]},"&[data-selected]":Lme({backgroundColor:t.fn.variant({variant:"filled"}).background,color:t.fn.variant({variant:"filled"}).color},t.fn.hover({backgroundColor:t.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:t.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:t.colors.gray[6],paddingTop:`calc(${Tt({size:n,sizes:t.spacing})} / 2)`,paddingBottom:`calc(${Tt({size:n,sizes:t.spacing})} / 2)`,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`calc(${Tt({size:n,sizes:t.spacing})} / 1.5) ${Tt({size:n,sizes:t.spacing})}`},separatorLabel:{color:t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[5]}})),Bgt=Object.defineProperty,Ume=Object.getOwnPropertySymbols,jgt=Object.prototype.hasOwnProperty,Igt=Object.prototype.propertyIsEnumerable,zme=(t,e,n)=>e in t?Bgt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pgt=(t,e)=>{for(var n in e||(e={}))jgt.call(e,n)&&zme(t,n,e[n]);if(Ume)for(var n of Ume(e))Igt.call(e,n)&&zme(t,n,e[n]);return t};function Yte({data:t,hovered:e,classNames:n,styles:r,isItemSelected:i,uuid:a,__staticSelector:o,onItemHover:s,onItemSelect:l,itemsRefs:c,itemComponent:u,size:f,nothingFound:h,creatable:m,createLabel:A,unstyled:p,variant:v}){const{classes:y}=Ogt(null,{classNames:n,styles:r,unstyled:p,name:o,variant:v,size:f}),x=[],k=[];let S=null;const C=(E,D)=>{const T=typeof i=="function"?i(E.value):!1;return L.createElement(u,Pgt({key:E.value,className:y.item,"data-disabled":E.disabled||void 0,"data-hovered":!E.disabled&&e===D||void 0,"data-selected":!E.disabled&&T||void 0,selected:T,onMouseEnter:()=>s(D),id:`${a}-${D}`,role:"option",tabIndex:-1,"aria-selected":e===D,ref:I=>{c&&c.current&&(c.current[E.value]=I)},onMouseDown:E.disabled?null:I=>{I.preventDefault(),l(E)},disabled:E.disabled,variant:v},E))};let N=null;if(t.forEach((E,D)=>{E.creatable?S=D:E.group?(N!==E.group&&(N=E.group,k.push(L.createElement("div",{className:y.separator,key:`__mantine-divider-${D}`},L.createElement(OY,{classNames:{label:y.separatorLabel},label:E.group})))),k.push(C(E,D))):x.push(C(E,D))}),m){const E=t[S];x.push(L.createElement("div",{key:Kte(),className:y.item,"data-hovered":e===S||void 0,onMouseEnter:()=>s(S),onMouseDown:D=>{D.preventDefault(),l(E)},tabIndex:-1,ref:D=>{c&&c.current&&(c.current[E.value]=D)}},A))}return k.length>0&&x.length>0&&x.unshift(L.createElement("div",{className:y.separator,key:"empty-group-separator"},L.createElement(OY,null))),k.length>0||x.length>0?L.createElement(L.Fragment,null,k,x):L.createElement(Jn,{size:f,unstyled:p,className:y.nothingFound},h)}Yte.displayName="@mantine/core/SelectItems";var Mgt=Object.defineProperty,yP=Object.getOwnPropertySymbols,b4e=Object.prototype.hasOwnProperty,x4e=Object.prototype.propertyIsEnumerable,Hme=(t,e,n)=>e in t?Mgt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rgt=(t,e)=>{for(var n in e||(e={}))b4e.call(e,n)&&Hme(t,n,e[n]);if(yP)for(var n of yP(e))x4e.call(e,n)&&Hme(t,n,e[n]);return t},$gt=(t,e)=>{var n={};for(var r in t)b4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&yP)for(var r of yP(t))e.indexOf(r)<0&&x4e.call(t,r)&&(n[r]=t[r]);return n};const Xte=w.forwardRef((t,e)=>{var n=t,{label:r,value:i}=n,a=$gt(n,["label","value"]);return L.createElement("div",Rgt({ref:e},a),r||i)});Xte.displayName="@mantine/core/DefaultItem";function Lgt(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function w4e(...t){return e=>t.forEach(n=>Lgt(n,e))}function Ux(...t){return w.useCallback(w4e(...t),t)}const k4e=w.forwardRef((t,e)=>{const{children:n,...r}=t,i=w.Children.toArray(n),a=i.find(zgt);if(a){const o=a.props.children,s=i.map(l=>l===a?w.Children.count(o)>1?w.Children.only(null):w.isValidElement(o)?o.props.children:null:l);return w.createElement(BY,lt({},r,{ref:e}),w.isValidElement(o)?w.cloneElement(o,void 0,s):null)}return w.createElement(BY,lt({},r,{ref:e}),n)});k4e.displayName="Slot";const BY=w.forwardRef((t,e)=>{const{children:n,...r}=t;return w.isValidElement(n)?w.cloneElement(n,{...Hgt(r,n.props),ref:w4e(e,n.ref)}):w.Children.count(n)>1?w.Children.only(null):null});BY.displayName="SlotClone";const Ugt=({children:t})=>w.createElement(w.Fragment,null,t);function zgt(t){return w.isValidElement(t)&&t.type===Ugt}function Hgt(t,e){const n={...e};for(const r in e){const i=t[r],a=e[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...t,...n}}const Vgt=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],iD=Vgt.reduce((t,e)=>{const n=w.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?k4e:e;return w.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),w.createElement(s,lt({},o,{ref:i}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{}),jY=globalThis?.document?w.useLayoutEffect:()=>{};function Qgt(t,e){return w.useReducer((n,r)=>{const i=e[n][r];return i??n},t)}const aD=t=>{const{present:e,children:n}=t,r=qgt(e),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),a=Ux(r.ref,i.ref);return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:a}):null};aD.displayName="Presence";function qgt(t){const[e,n]=w.useState(),r=w.useRef({}),i=w.useRef(t),a=w.useRef("none"),o=t?"mounted":"unmounted",[s,l]=Qgt(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const c=XO(r.current);a.current=s==="mounted"?c:"none"},[s]),jY(()=>{const c=r.current,u=i.current;if(u!==t){const h=a.current,m=XO(c);t?l("MOUNT"):m==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&h!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),jY(()=>{if(e){const c=f=>{const m=XO(r.current).includes(f.animationName);f.target===e&&m&&Wf.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===e&&(a.current=XO(r.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:w.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function XO(t){return t?.animationName||"none"}function Ggt(t,e=[]){let n=[];function r(a,o){const s=w.createContext(o),l=n.length;n=[...n,o];function c(f){const{scope:h,children:m,...A}=f,p=h?.[t][l]||s,v=w.useMemo(()=>A,Object.values(A));return w.createElement(p.Provider,{value:v},m)}function u(f,h){const m=h?.[t][l]||s,A=w.useContext(m);if(A)return A;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const i=()=>{const a=n.map(o=>w.createContext(o));return function(s){const l=s?.[t]||a;return w.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return i.scopeName=t,[r,Wgt(i,...e)]}function Wgt(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return w.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function mb(t){const e=w.useRef(t);return w.useEffect(()=>{e.current=t}),w.useMemo(()=>(...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}const Kgt=w.createContext(void 0);function Ygt(t){const e=w.useContext(Kgt);return t||e||"ltr"}function Xgt(t,[e,n]){return Math.min(n,Math.max(e,t))}function Ub(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),n===!1||!i.defaultPrevented)return e?.(i)}}function Zgt(t,e){return w.useReducer((n,r)=>{const i=e[n][r];return i??n},t)}const S4e="ScrollArea",[C4e]=Ggt(S4e),[Jgt,Yf]=C4e(S4e),evt=w.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=t,[s,l]=w.useState(null),[c,u]=w.useState(null),[f,h]=w.useState(null),[m,A]=w.useState(null),[p,v]=w.useState(null),[y,x]=w.useState(0),[k,S]=w.useState(0),[C,N]=w.useState(!1),[E,D]=w.useState(!1),T=Ux(e,O=>l(O)),I=Ygt(i);return w.createElement(Jgt,{scope:n,type:r,dir:I,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:u,content:f,onContentChange:h,scrollbarX:m,onScrollbarXChange:A,scrollbarXEnabled:C,onScrollbarXEnabledChange:N,scrollbarY:p,onScrollbarYChange:v,scrollbarYEnabled:E,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:S},w.createElement(iD.div,lt({dir:I},o,{ref:T,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":k+"px",...t.style}})))}),tvt="ScrollAreaViewport",nvt=w.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:r,...i}=t,a=Yf(tvt,n),o=w.useRef(null),s=Ux(e,o,a.onViewportChange);return w.createElement(w.Fragment,null,w.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),w.createElement(iD.div,lt({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style}}),w.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),Eg="ScrollAreaScrollbar",rvt=w.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=Yf(Eg,t.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=t.orientation==="horizontal";return w.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?w.createElement(ivt,lt({},r,{ref:e,forceMount:n})):i.type==="scroll"?w.createElement(avt,lt({},r,{ref:e,forceMount:n})):i.type==="auto"?w.createElement(_4e,lt({},r,{ref:e,forceMount:n})):i.type==="always"?w.createElement(Zte,lt({},r,{ref:e})):null}),ivt=w.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=Yf(Eg,t.__scopeScrollArea),[a,o]=w.useState(!1);return w.useEffect(()=>{const s=i.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),o(!0)},u=()=>{l=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[i.scrollArea,i.scrollHideDelay]),w.createElement(aD,{present:n||a},w.createElement(_4e,lt({"data-state":a?"visible":"hidden"},r,{ref:e})))}),avt=w.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=Yf(Eg,t.__scopeScrollArea),a=t.orientation==="horizontal",o=r3(()=>l("SCROLL_END"),100),[s,l]=Zgt("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return w.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,i.scrollHideDelay,l]),w.useEffect(()=>{const c=i.viewport,u=a?"scrollLeft":"scrollTop";if(c){let f=c[u];const h=()=>{const m=c[u];f!==m&&(l("SCROLL"),o()),f=m};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[i.viewport,a,l,o]),w.createElement(aD,{present:n||s!=="hidden"},w.createElement(Zte,lt({"data-state":s==="hidden"?"hidden":"visible"},r,{ref:e,onPointerEnter:Ub(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ub(t.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),_4e=w.forwardRef((t,e)=>{const n=Yf(Eg,t.__scopeScrollArea),{forceMount:r,...i}=t,[a,o]=w.useState(!1),s=t.orientation==="horizontal",l=r3(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?c:u)}},10);return rS(n.viewport,l),rS(n.content,l),w.createElement(aD,{present:r||a},w.createElement(Zte,lt({"data-state":a?"visible":"hidden"},i,{ref:e})))}),Zte=w.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,i=Yf(Eg,t.__scopeScrollArea),a=w.useRef(null),o=w.useRef(0),[s,l]=w.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=D4e(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function f(h,m){return hvt(h,o.current,s,m)}return n==="horizontal"?w.createElement(ovt,lt({},u,{ref:e,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollLeft,m=Vme(h,s,i.dir);a.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=f(h,i.dir))}})):n==="vertical"?w.createElement(svt,lt({},u,{ref:e,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollTop,m=Vme(h,s);a.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=f(h))}})):null}),ovt=w.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...i}=t,a=Yf(Eg,t.__scopeScrollArea),[o,s]=w.useState(),l=w.useRef(null),c=Ux(e,l,a.onScrollbarXChange);return w.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),w.createElement(E4e,lt({"data-orientation":"horizontal"},i,{ref:c,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":n3(n)+"px",...t.style},onThumbPointerDown:u=>t.onThumbPointerDown(u.x),onDragScroll:u=>t.onDragScroll(u.x),onWheelScroll:(u,f)=>{if(a.viewport){const h=a.viewport.scrollLeft+u.deltaX;t.onWheelScroll(h),O4e(h,f)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:bP(o.paddingLeft),paddingEnd:bP(o.paddingRight)}})}}))}),svt=w.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...i}=t,a=Yf(Eg,t.__scopeScrollArea),[o,s]=w.useState(),l=w.useRef(null),c=Ux(e,l,a.onScrollbarYChange);return w.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),w.createElement(E4e,lt({"data-orientation":"vertical"},i,{ref:c,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":n3(n)+"px",...t.style},onThumbPointerDown:u=>t.onThumbPointerDown(u.y),onDragScroll:u=>t.onDragScroll(u.y),onWheelScroll:(u,f)=>{if(a.viewport){const h=a.viewport.scrollTop+u.deltaY;t.onWheelScroll(h),O4e(h,f)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:bP(o.paddingTop),paddingEnd:bP(o.paddingBottom)}})}}))}),[lvt,N4e]=C4e(Eg),E4e=w.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:f,...h}=t,m=Yf(Eg,n),[A,p]=w.useState(null),v=Ux(e,T=>p(T)),y=w.useRef(null),x=w.useRef(""),k=m.viewport,S=r.content-r.viewport,C=mb(u),N=mb(l),E=r3(f,10);function D(T){if(y.current){const I=T.clientX-y.current.left,O=T.clientY-y.current.top;c({x:I,y:O})}}return w.useEffect(()=>{const T=I=>{const O=I.target;A?.contains(O)&&C(I,S)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[k,A,S,C]),w.useEffect(N,[r,N]),rS(A,E),rS(m.content,E),w.createElement(lvt,{scope:n,scrollbar:A,hasThumb:i,onThumbChange:mb(a),onThumbPointerUp:mb(o),onThumbPositionChange:N,onThumbPointerDown:mb(s)},w.createElement(iD.div,lt({},h,{ref:v,style:{position:"absolute",...h.style},onPointerDown:Ub(t.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),y.current=A.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(T))}),onPointerMove:Ub(t.onPointerMove,D),onPointerUp:Ub(t.onPointerUp,T=>{const I=T.target;I.hasPointerCapture(T.pointerId)&&I.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=x.current,y.current=null})})))}),IY="ScrollAreaThumb",cvt=w.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=N4e(IY,t.__scopeScrollArea);return w.createElement(aD,{present:n||i.hasThumb},w.createElement(uvt,lt({ref:e},r)))}),uvt=w.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:r,...i}=t,a=Yf(IY,n),o=N4e(IY,n),{onThumbPositionChange:s}=o,l=Ux(e,f=>o.onThumbChange(f)),c=w.useRef(),u=r3(()=>{c.current&&(c.current(),c.current=void 0)},100);return w.useEffect(()=>{const f=a.viewport;if(f){const h=()=>{if(u(),!c.current){const m=mvt(f,s);c.current=m,s()}};return s(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[a.viewport,u,s]),w.createElement(iD.div,lt({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ub(t.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),A=f.clientX-m.left,p=f.clientY-m.top;o.onThumbPointerDown({x:A,y:p})}),onPointerUp:Ub(t.onPointerUp,o.onThumbPointerUp)}))}),F4e="ScrollAreaCorner",dvt=w.forwardRef((t,e)=>{const n=Yf(F4e,t.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?w.createElement(fvt,lt({},t,{ref:e})):null}),fvt=w.forwardRef((t,e)=>{const{__scopeScrollArea:n,...r}=t,i=Yf(F4e,n),[a,o]=w.useState(0),[s,l]=w.useState(0),c=!!(a&&s);return rS(i.scrollbarX,()=>{var u;const f=((u=i.scrollbarX)===null||u===void 0?void 0:u.offsetHeight)||0;i.onCornerHeightChange(f),l(f)}),rS(i.scrollbarY,()=>{var u;const f=((u=i.scrollbarY)===null||u===void 0?void 0:u.offsetWidth)||0;i.onCornerWidthChange(f),o(f)}),c?w.createElement(iD.div,lt({},r,{ref:e,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...t.style}})):null});function bP(t){return t?parseInt(t,10):0}function D4e(t,e){const n=t/e;return isNaN(n)?0:n}function n3(t){const e=D4e(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function hvt(t,e,n,r="ltr"){const i=n3(n),a=i/2,o=e||a,s=i-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,f=r==="ltr"?[0,u]:[u*-1,0];return T4e([l,c],f)(t)}function Vme(t,e,n="ltr"){const r=n3(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-i,o=e.content-e.viewport,s=a-r,l=n==="ltr"?[0,o]:[o*-1,0],c=Xgt(t,l);return T4e([0,o],[0,s])(c)}function T4e(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function O4e(t,e){return t>0&&t<e}const mvt=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function i(){const a={left:t.scrollLeft,top:t.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&e(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function r3(t,e){const n=mb(t),r=w.useRef(0);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),w.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,e)},[n,e])}function rS(t,e){const n=mb(e);jY(()=>{let r=0;if(t){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(t),()=>{window.cancelAnimationFrame(r),i.unobserve(t)}}},[t,n])}const pvt=evt,Avt=nvt,Qme=rvt,qme=cvt,gvt=dvt;var vvt=cn((t,{scrollbarSize:e,offsetScrollbars:n,scrollbarHovered:r,hidden:i})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:n?He(e):void 0,paddingBottom:n?He(e):void 0},scrollbar:{display:i?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${He(e)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[8]:t.colors.gray[0],[`& .${Lb("thumb")}`]:{backgroundColor:t.colorScheme==="dark"?t.fn.rgba(t.white,.5):t.fn.rgba(t.black,.5)}},'&[data-orientation="vertical"]':{width:He(e)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:He(e)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:Lb("thumb"),flex:1,backgroundColor:t.colorScheme==="dark"?t.fn.rgba(t.white,.4):t.fn.rgba(t.black,.4),borderRadius:He(e),position:"relative",transition:"background-color 150ms ease",display:i?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:He(44),minHeight:He(44)}},corner:{backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[0],transition:"opacity 150ms ease",opacity:r?1:0,display:i?"none":void 0}})),yvt=Object.defineProperty,bvt=Object.defineProperties,xvt=Object.getOwnPropertyDescriptors,xP=Object.getOwnPropertySymbols,B4e=Object.prototype.hasOwnProperty,j4e=Object.prototype.propertyIsEnumerable,Gme=(t,e,n)=>e in t?yvt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,PY=(t,e)=>{for(var n in e||(e={}))B4e.call(e,n)&&Gme(t,n,e[n]);if(xP)for(var n of xP(e))j4e.call(e,n)&&Gme(t,n,e[n]);return t},I4e=(t,e)=>bvt(t,xvt(e)),P4e=(t,e)=>{var n={};for(var r in t)B4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xP)for(var r of xP(t))e.indexOf(r)<0&&j4e.call(t,r)&&(n[r]=t[r]);return n};const M4e={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},i3=w.forwardRef((t,e)=>{const n=Qt("ScrollArea",M4e,t),{children:r,className:i,classNames:a,styles:o,scrollbarSize:s,scrollHideDelay:l,type:c,dir:u,offsetScrollbars:f,viewportRef:h,onScrollPositionChange:m,unstyled:A,variant:p,viewportProps:v}=n,y=P4e(n,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[x,k]=w.useState(!1),S=Vu(),{classes:C,cx:N}=vvt({scrollbarSize:s,offsetScrollbars:f,scrollbarHovered:x,hidden:c==="never"},{name:"ScrollArea",classNames:a,styles:o,unstyled:A,variant:p});return L.createElement(pvt,{type:c==="never"?"always":c,scrollHideDelay:l,dir:u||S.dir,ref:e,asChild:!0},L.createElement(En,PY({className:N(C.root,i)},y),L.createElement(Avt,I4e(PY({},v),{className:C.viewport,ref:h,onScroll:typeof m=="function"?({currentTarget:E})=>m({x:E.scrollLeft,y:E.scrollTop}):void 0}),r),L.createElement(Qme,{orientation:"horizontal",className:C.scrollbar,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1)},L.createElement(qme,{className:C.thumb})),L.createElement(Qme,{orientation:"vertical",className:C.scrollbar,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1)},L.createElement(qme,{className:C.thumb})),L.createElement(gvt,{className:C.corner})))}),R4e=w.forwardRef((t,e)=>{const n=Qt("ScrollAreaAutosize",M4e,t),{children:r,classNames:i,styles:a,scrollbarSize:o,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:u,viewportRef:f,onScrollPositionChange:h,unstyled:m,sx:A,variant:p,viewportProps:v}=n,y=P4e(n,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return L.createElement(En,I4e(PY({},y),{ref:e,sx:[{display:"flex"},...VIe(A)]}),L.createElement(En,{sx:{display:"flex",flexDirection:"column",flex:1}},L.createElement(i3,{classNames:i,styles:a,scrollHideDelay:s,scrollbarSize:o,type:l,dir:c,offsetScrollbars:u,viewportRef:f,onScrollPositionChange:h,unstyled:m,variant:p,viewportProps:v},r)))});R4e.displayName="@mantine/core/ScrollAreaAutosize";i3.displayName="@mantine/core/ScrollArea";i3.Autosize=R4e;const wvt=i3;var kvt=Object.defineProperty,Svt=Object.defineProperties,Cvt=Object.getOwnPropertyDescriptors,wP=Object.getOwnPropertySymbols,$4e=Object.prototype.hasOwnProperty,L4e=Object.prototype.propertyIsEnumerable,Wme=(t,e,n)=>e in t?kvt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kme=(t,e)=>{for(var n in e||(e={}))$4e.call(e,n)&&Wme(t,n,e[n]);if(wP)for(var n of wP(e))L4e.call(e,n)&&Wme(t,n,e[n]);return t},_vt=(t,e)=>Svt(t,Cvt(e)),Nvt=(t,e)=>{var n={};for(var r in t)$4e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&wP)for(var r of wP(t))e.indexOf(r)<0&&L4e.call(t,r)&&(n[r]=t[r]);return n};const a3=w.forwardRef((t,e)=>{var n=t,{style:r}=n,i=Nvt(n,["style"]);return L.createElement(wvt,_vt(Kme({},i),{style:Kme({width:"100%"},r),viewportProps:{tabIndex:-1},viewportRef:e}),i.children)});a3.displayName="@mantine/core/SelectScrollArea";var Evt=cn(()=>({dropdown:{},itemsWrapper:{padding:He(4),display:"flex",width:"100%",boxSizing:"border-box"}})),Fvt=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},lw=new WeakMap,ZO=new WeakMap,JO={},_z=0,U4e=function(t){return t&&(t.host||U4e(t.parentNode))},Dvt=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=U4e(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Tvt=function(t,e,n,r){var i=Dvt(e,Array.isArray(t)?t:[t]);JO[n]||(JO[n]=new WeakMap);var a=JO[n],o=[],s=new Set,l=new Set(i),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};i.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(s.has(h))u(h);else try{var m=h.getAttribute(r),A=m!==null&&m!=="false",p=(lw.get(h)||0)+1,v=(a.get(h)||0)+1;lw.set(h,p),a.set(h,v),o.push(h),p===1&&A&&ZO.set(h,!0),v===1&&h.setAttribute(n,"true"),A||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return u(e),s.clear(),_z++,function(){o.forEach(function(f){var h=lw.get(f)-1,m=a.get(f)-1;lw.set(f,h),a.set(f,m),h||(ZO.has(f)||f.removeAttribute(r),ZO.delete(f)),m||f.removeAttribute(n)}),_z--,_z||(lw=new WeakMap,lw=new WeakMap,ZO=new WeakMap,JO={})}},o3=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=Fvt(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Tvt(r,i,n,"aria-hidden")):function(){return null}};const Ovt=["top","right","bottom","left"],Zh=Math.min,Ac=Math.max,kP=Math.round,e5=Math.floor,wp=t=>({x:t,y:t}),Bvt={left:"right",right:"left",bottom:"top",top:"bottom"},jvt={start:"end",end:"start"};function MY(t,e,n){return Ac(t,Zh(e,n))}function Op(t,e){return typeof t=="function"?t(e):t}function Jh(t){return t.split("-")[0]}function AC(t){return t.split("-")[1]}function Jte(t){return t==="x"?"y":"x"}function ene(t){return t==="y"?"height":"width"}const Ivt=new Set(["top","bottom"]);function Lh(t){return Ivt.has(Jh(t))?"y":"x"}function tne(t){return Jte(Lh(t))}function Pvt(t,e,n){n===void 0&&(n=!1);const r=AC(t),i=tne(t),a=ene(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=SP(o)),[o,SP(o)]}function Mvt(t){const e=SP(t);return[RY(t),e,RY(e)]}function RY(t){return t.replace(/start|end/g,e=>jvt[e])}const Yme=["left","right"],Xme=["right","left"],Rvt=["top","bottom"],$vt=["bottom","top"];function Lvt(t,e,n){switch(t){case"top":case"bottom":return n?e?Xme:Yme:e?Yme:Xme;case"left":case"right":return e?Rvt:$vt;default:return[]}}function Uvt(t,e,n,r){const i=AC(t);let a=Lvt(Jh(t),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(RY)))),a}function SP(t){return t.replace(/left|right|bottom|top/g,e=>Bvt[e])}function zvt(t){return{top:0,right:0,bottom:0,left:0,...t}}function nne(t){return typeof t!="number"?zvt(t):{top:t,right:t,bottom:t,left:t}}function iS(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Zme(t,e,n){let{reference:r,floating:i}=t;const a=Lh(e),o=tne(e),s=ene(o),l=Jh(e),c=a==="y",u=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-i.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(AC(e)){case"start":m[o]-=h*(n&&c?-1:1);break;case"end":m[o]+=h*(n&&c?-1:1);break}return m}const Hvt=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=Zme(c,r,l),h=r,m={},A=0;for(let p=0;p<s.length;p++){const{name:v,fn:y}=s[p],{x,y:k,data:S,reset:C}=await y({x:u,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:c,platform:o,elements:{reference:t,floating:e}});u=x??u,f=k??f,m={...m,[v]:{...m[v],...S}},C&&A<=50&&(A++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(c=C.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):C.rects),{x:u,y:f}=Zme(c,h,l)),p=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:m}};async function dE(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=Op(e,t),A=nne(m),v=s[h?f==="floating"?"reference":"floating":f],y=iS(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},C=iS(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:k,strategy:l}):x);return{top:(y.top-C.top+A.top)/S.y,bottom:(C.bottom-y.bottom+A.bottom)/S.y,left:(y.left-C.left+A.left)/S.x,right:(C.right-y.right+A.right)/S.x}}const Vvt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=Op(t,e)||{};if(c==null)return{};const f=nne(u),h={x:n,y:r},m=tne(i),A=ene(m),p=await o.getDimensions(c),v=m==="y",y=v?"top":"left",x=v?"bottom":"right",k=v?"clientHeight":"clientWidth",S=a.reference[A]+a.reference[m]-h[m]-a.floating[A],C=h[m]-a.reference[m],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=N?N[k]:0;(!E||!await(o.isElement==null?void 0:o.isElement(N)))&&(E=s.floating[k]||a.floating[A]);const D=S/2-C/2,T=E/2-p[A]/2-1,I=Zh(f[y],T),O=Zh(f[x],T),B=I,M=E-p[A]-O,$=E/2-p[A]/2+D,U=MY(B,$,M),P=!l.arrow&&AC(i)!=null&&$!==U&&a.reference[A]/2-($<B?I:O)-p[A]/2<0,Q=P?$<B?$-B:$-M:0;return{[m]:h[m]+Q,data:{[m]:U,centerOffset:$-U-Q,...P&&{alignmentOffset:Q}},reset:P}}}),Qvt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:p=!0,...v}=Op(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Jh(i),x=Lh(s),k=Jh(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=h||(k||!p?[SP(s)]:Mvt(s)),N=A!=="none";!h&&N&&C.push(...Uvt(s,p,A,S));const E=[s,...C],D=await dE(e,v),T=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&T.push(D[y]),f){const $=Pvt(i,o,S);T.push(D[$[0]],D[$[1]])}if(I=[...I,{placement:i,overflows:T}],!T.every($=>$<=0)){var O,B;const $=(((O=a.flip)==null?void 0:O.index)||0)+1,U=E[$];if(U&&(!(f==="alignment"?x!==Lh(U):!1)||I.every(G=>Lh(G.placement)===x?G.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:U}};let P=(B=I.filter(Q=>Q.overflows[0]<=0).sort((Q,G)=>Q.overflows[1]-G.overflows[1])[0])==null?void 0:B.placement;if(!P)switch(m){case"bestFit":{var M;const Q=(M=I.filter(G=>{if(N){const X=Lh(G.placement);return X===x||X==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(X=>X>0).reduce((X,he)=>X+he,0)]).sort((G,X)=>G[1]-X[1])[0])==null?void 0:M[0];Q&&(P=Q);break}case"initialPlacement":P=s;break}if(i!==P)return{reset:{placement:P}}}return{}}}};function Jme(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function epe(t){return Ovt.some(e=>t[e]>=0)}const qvt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=Op(t,e);switch(r){case"referenceHidden":{const a=await dE(e,{...i,elementContext:"reference"}),o=Jme(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:epe(o)}}}case"escaped":{const a=await dE(e,{...i,altBoundary:!0}),o=Jme(a,n.floating);return{data:{escapedOffsets:o,escaped:epe(o)}}}default:return{}}}}};function z4e(t){const e=Zh(...t.map(a=>a.left)),n=Zh(...t.map(a=>a.top)),r=Ac(...t.map(a=>a.right)),i=Ac(...t.map(a=>a.bottom));return{x:e,y:n,width:r-e,height:i-n}}function Gvt(t){const e=t.slice().sort((i,a)=>i.y-a.y),n=[];let r=null;for(let i=0;i<e.length;i++){const a=e[i];!r||a.y-r.y>r.height/2?n.push([a]):n[n.length-1].push(a),r=a}return n.map(i=>iS(z4e(i)))}const Wvt=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:i,platform:a,strategy:o}=e,{padding:s=2,x:l,y:c}=Op(t,e),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),f=Gvt(u),h=iS(z4e(u)),m=nne(s);function A(){if(f.length===2&&f[0].left>f[1].right&&l!=null&&c!=null)return f.find(v=>l>v.left-m.left&&l<v.right+m.right&&c>v.top-m.top&&c<v.bottom+m.bottom)||h;if(f.length>=2){if(Lh(n)==="y"){const I=f[0],O=f[f.length-1],B=Jh(n)==="top",M=I.top,$=O.bottom,U=B?I.left:O.left,P=B?I.right:O.right,Q=P-U,G=$-M;return{top:M,bottom:$,left:U,right:P,width:Q,height:G,x:U,y:M}}const v=Jh(n)==="left",y=Ac(...f.map(I=>I.right)),x=Zh(...f.map(I=>I.left)),k=f.filter(I=>v?I.left===x:I.right===y),S=k[0].top,C=k[k.length-1].bottom,N=x,E=y,D=E-N,T=C-S;return{top:S,bottom:C,left:N,right:E,width:D,height:T,x:N,y:S}}return h}const p=await a.getElementRects({reference:{getBoundingClientRect:A},floating:r.floating,strategy:o});return i.reference.x!==p.reference.x||i.reference.y!==p.reference.y||i.reference.width!==p.reference.width||i.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},H4e=new Set(["left","top"]);async function Kvt(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Jh(n),s=AC(n),l=Lh(n)==="y",c=H4e.has(o)?-1:1,u=a&&l?-1:1,f=Op(e,t);let{mainAxis:h,crossAxis:m,alignmentAxis:A}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof A=="number"&&(m=s==="end"?A*-1:A),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const Yvt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=e,l=await Kvt(e,t);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},Xvt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...l}=Op(t,e),c={x:n,y:r},u=await dE(e,l),f=Lh(Jh(i)),h=Jte(f);let m=c[h],A=c[f];if(a){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=m+u[v],k=m-u[y];m=MY(x,m,k)}if(o){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=A+u[v],k=A-u[y];A=MY(x,A,k)}const p=s.fn({...e,[h]:m,[f]:A});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:a,[f]:o}}}}}},Zvt=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Op(t,e),u={x:n,y:r},f=Lh(i),h=Jte(f);let m=u[h],A=u[f];const p=Op(s,e),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const k=h==="y"?"height":"width",S=a.reference[h]-a.floating[k]+v.mainAxis,C=a.reference[h]+a.reference[k]-v.mainAxis;m<S?m=S:m>C&&(m=C)}if(c){var y,x;const k=h==="y"?"width":"height",S=H4e.has(Jh(i)),C=a.reference[f]-a.floating[k]+(S&&((y=o.offset)==null?void 0:y[f])||0)+(S?0:v.crossAxis),N=a.reference[f]+a.reference[k]+(S?0:((x=o.offset)==null?void 0:x[f])||0)-(S?v.crossAxis:0);A<C?A=C:A>N&&(A=N)}return{[h]:m,[f]:A}}}},Jvt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:a,platform:o,elements:s}=e,{apply:l=()=>{},...c}=Op(t,e),u=await dE(e,c),f=Jh(i),h=AC(i),m=Lh(i)==="y",{width:A,height:p}=a.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,v=h==="end"?"top":"bottom");const x=p-u.top-u.bottom,k=A-u.left-u.right,S=Zh(p-u[v],x),C=Zh(A-u[y],k),N=!e.middlewareData.shift;let E=S,D=C;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=k),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(E=x),N&&!h){const I=Ac(u.left,0),O=Ac(u.right,0),B=Ac(u.top,0),M=Ac(u.bottom,0);m?D=A-2*(I!==0||O!==0?I+O:Ac(u.left,u.right)):E=p-2*(B!==0||M!==0?B+M:Ac(u.top,u.bottom))}await l({...e,availableWidth:D,availableHeight:E});const T=await o.getDimensions(s.floating);return A!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function s3(){return typeof window<"u"}function gC(t){return V4e(t)?(t.nodeName||"").toLowerCase():"#document"}function Bd(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gp(t){var e;return(e=(V4e(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function V4e(t){return s3()?t instanceof Node||t instanceof Bd(t).Node:!1}function em(t){return s3()?t instanceof Element||t instanceof Bd(t).Element:!1}function Bp(t){return s3()?t instanceof HTMLElement||t instanceof Bd(t).HTMLElement:!1}function tpe(t){return!s3()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bd(t).ShadowRoot}const eyt=new Set(["inline","contents"]);function oD(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=tm(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!eyt.has(i)}const tyt=new Set(["table","td","th"]);function nyt(t){return tyt.has(gC(t))}const ryt=[":popover-open",":modal"];function l3(t){return ryt.some(e=>{try{return t.matches(e)}catch{return!1}})}const iyt=["transform","translate","scale","rotate","perspective"],ayt=["transform","translate","scale","rotate","perspective","filter"],oyt=["paint","layout","strict","content"];function rne(t){const e=ine(),n=em(t)?tm(t):t;return iyt.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ayt.some(r=>(n.willChange||"").includes(r))||oyt.some(r=>(n.contain||"").includes(r))}function syt(t){let e=xy(t);for(;Bp(e)&&!aS(e);){if(rne(e))return e;if(l3(e))return null;e=xy(e)}return null}function ine(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lyt=new Set(["html","body","#document"]);function aS(t){return lyt.has(gC(t))}function tm(t){return Bd(t).getComputedStyle(t)}function c3(t){return em(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function xy(t){if(gC(t)==="html")return t;const e=t.assignedSlot||t.parentNode||tpe(t)&&t.host||Gp(t);return tpe(e)?e.host:e}function Q4e(t){const e=xy(t);return aS(e)?t.ownerDocument?t.ownerDocument.body:t.body:Bp(e)&&oD(e)?e:Q4e(e)}function ug(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Q4e(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),o=Bd(i);if(a){const s=$Y(o);return e.concat(o,o.visualViewport||[],oD(i)?i:[],s&&n?ug(s):[])}return e.concat(i,ug(i,[],n))}function $Y(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function q4e(t){const e=tm(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Bp(t),a=i?t.offsetWidth:n,o=i?t.offsetHeight:r,s=kP(n)!==a||kP(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ane(t){return em(t)?t:t.contextElement}function _k(t){const e=ane(t);if(!Bp(e))return wp(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=q4e(e);let o=(a?kP(n.width):n.width)/r,s=(a?kP(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const cyt=wp(0);function G4e(t){const e=Bd(t);return!ine()||!e.visualViewport?cyt:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uyt(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bd(t)?!1:e}function ox(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=ane(t);let o=wp(1);e&&(r?em(r)&&(o=_k(r)):o=_k(t));const s=uyt(a,n,r)?G4e(a):wp(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){const h=Bd(a),m=r&&em(r)?Bd(r):r;let A=h,p=$Y(A);for(;p&&r&&m!==A;){const v=_k(p),y=p.getBoundingClientRect(),x=tm(p),k=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,S=y.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,f*=v.y,l+=k,c+=S,A=Bd(p),p=$Y(A)}}return iS({width:u,height:f,x:l,y:c})}function u3(t,e){const n=c3(t).scrollLeft;return e?e.left+n:ox(Gp(t)).left+n}function W4e(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-u3(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function dyt(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",o=Gp(r),s=e?l3(e.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=wp(1);const u=wp(0),f=Bp(r);if((f||!f&&!a)&&((gC(r)!=="body"||oD(o))&&(l=c3(r)),Bp(r))){const m=ox(r);c=_k(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=o&&!f&&!a?W4e(o,l):wp(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function fyt(t){return Array.from(t.getClientRects())}function hyt(t){const e=Gp(t),n=c3(t),r=t.ownerDocument.body,i=Ac(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Ac(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+u3(t);const s=-n.scrollTop;return tm(r).direction==="rtl"&&(o+=Ac(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const npe=25;function myt(t,e){const n=Bd(t),r=Gp(t),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=ine();(!u||u&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=u3(r);if(c<=0){const u=r.ownerDocument,f=u.body,h=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,A=Math.abs(r.clientWidth-f.clientWidth-m);A<=npe&&(a-=A)}else c<=npe&&(a+=c);return{width:a,height:o,x:s,y:l}}const pyt=new Set(["absolute","fixed"]);function Ayt(t,e){const n=ox(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=Bp(t)?_k(t):wp(1),o=t.clientWidth*a.x,s=t.clientHeight*a.y,l=i*a.x,c=r*a.y;return{width:o,height:s,x:l,y:c}}function rpe(t,e,n){let r;if(e==="viewport")r=myt(t,n);else if(e==="document")r=hyt(Gp(t));else if(em(e))r=Ayt(e,n);else{const i=G4e(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return iS(r)}function K4e(t,e){const n=xy(t);return n===e||!em(n)||aS(n)?!1:tm(n).position==="fixed"||K4e(n,e)}function gyt(t,e){const n=e.get(t);if(n)return n;let r=ug(t,[],!1).filter(s=>em(s)&&gC(s)!=="body"),i=null;const a=tm(t).position==="fixed";let o=a?xy(t):t;for(;em(o)&&!aS(o);){const s=tm(o),l=rne(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&pyt.has(i.position)||oD(o)&&!l&&K4e(t,o))?r=r.filter(u=>u!==o):i=s,o=xy(o)}return e.set(t,r),r}function vyt(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?l3(e)?[]:gyt(e,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{const f=rpe(e,u,i);return c.top=Ac(f.top,c.top),c.right=Zh(f.right,c.right),c.bottom=Zh(f.bottom,c.bottom),c.left=Ac(f.left,c.left),c},rpe(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yyt(t){const{width:e,height:n}=q4e(t);return{width:e,height:n}}function byt(t,e,n){const r=Bp(e),i=Gp(e),a=n==="fixed",o=ox(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const l=wp(0);function c(){l.x=u3(i)}if(r||!r&&!a)if((gC(e)!=="body"||oD(i))&&(s=c3(e)),r){const m=ox(e,!0,a,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else i&&c();a&&!r&&i&&c();const u=i&&!r&&!a?W4e(i,s):wp(0),f=o.left+s.scrollLeft-l.x-u.x,h=o.top+s.scrollTop-l.y-u.y;return{x:f,y:h,width:o.width,height:o.height}}function Nz(t){return tm(t).position==="static"}function ipe(t,e){if(!Bp(t)||tm(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Gp(t)===n&&(n=n.ownerDocument.body),n}function Y4e(t,e){const n=Bd(t);if(l3(t))return n;if(!Bp(t)){let i=xy(t);for(;i&&!aS(i);){if(em(i)&&!Nz(i))return i;i=xy(i)}return n}let r=ipe(t,e);for(;r&&nyt(r)&&Nz(r);)r=ipe(r,e);return r&&aS(r)&&Nz(r)&&!rne(r)?n:r||syt(t)||n}const xyt=async function(t){const e=this.getOffsetParent||Y4e,n=this.getDimensions,r=await n(t.floating);return{reference:byt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wyt(t){return tm(t).direction==="rtl"}const kyt={convertOffsetParentRelativeRectToViewportRelativeRect:dyt,getDocumentElement:Gp,getClippingRect:vyt,getOffsetParent:Y4e,getElementRects:xyt,getClientRects:fyt,getDimensions:yyt,getScale:_k,isElement:em,isRTL:wyt};function X4e(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Syt(t,e){let n=null,r;const i=Gp(t);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:m}=c;if(s||e(),!h||!m)return;const A=e5(f),p=e5(i.clientWidth-(u+h)),v=e5(i.clientHeight-(f+m)),y=e5(u),k={rootMargin:-A+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Ac(0,Zh(1,l))||1};let S=!0;function C(N){const E=N[0].intersectionRatio;if(E!==l){if(!S)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!X4e(c,t.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,k)}n.observe(t)}return o(!0),a}function Z4e(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ane(t),u=i||a?[...c?ug(c):[],...ug(e)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=c&&s?Syt(c,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(e)})),n()}),c&&!l&&m.observe(c),m.observe(e));let A,p=l?ox(t):null;l&&v();function v(){const y=ox(t);p&&!X4e(p,y)&&n(),p=y,A=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),f?.(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(A)}}const one=Yvt,d3=Xvt,sne=Qvt,J4e=Jvt,Cyt=qvt,CP=Vvt,eMe=Wvt,tMe=Zvt,nMe=(t,e,n)=>{const r=new Map,i={platform:kyt,...n},a={...i.platform,_c:r};return Hvt(t,e,{...i,platform:a})},rMe=t=>{const{element:e,padding:n}=t;function r(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return r(e)?e.current!=null?CP({element:e.current,padding:n}).fn(i):{}:e?CP({element:e,padding:n}).fn(i):{}}}};var Qj=typeof document<"u"?w.useLayoutEffect:w.useEffect;function _P(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!_P(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!_P(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function ape(t){const e=w.useRef(t);return Qj(()=>{e.current=t}),e}function _yt(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,whileElementsMounted:a,open:o}=t,[s,l]=w.useState({x:null,y:null,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[c,u]=w.useState(r);_P(c,r)||u(r);const f=w.useRef(null),h=w.useRef(null),m=w.useRef(s),A=ape(a),p=ape(i),[v,y]=w.useState(null),[x,k]=w.useState(null),S=w.useCallback(I=>{f.current!==I&&(f.current=I,y(I))},[]),C=w.useCallback(I=>{h.current!==I&&(h.current=I,k(I))},[]),N=w.useCallback(()=>{if(!f.current||!h.current)return;const I={placement:e,strategy:n,middleware:c};p.current&&(I.platform=p.current),nMe(f.current,h.current,I).then(O=>{const B={...O,isPositioned:!0};E.current&&!_P(m.current,B)&&(m.current=B,Wf.flushSync(()=>{l(B)}))})},[c,e,n,p]);Qj(()=>{o===!1&&m.current.isPositioned&&(m.current.isPositioned=!1,l(I=>({...I,isPositioned:!1})))},[o]);const E=w.useRef(!1);Qj(()=>(E.current=!0,()=>{E.current=!1}),[]),Qj(()=>{if(v&&x){if(A.current)return A.current(v,x,N);N()}},[v,x,N,A]);const D=w.useMemo(()=>({reference:f,floating:h,setReference:S,setFloating:C}),[S,C]),T=w.useMemo(()=>({reference:v,floating:x}),[v,x]);return w.useMemo(()=>({...s,update:N,refs:D,elements:T,reference:S,floating:C}),[s,N,D,T,S,C])}var oS=typeof document<"u"?w.useLayoutEffect:w.useEffect;let Ez=!1,Nyt=0;const ope=()=>"floating-ui-"+Nyt++;function Eyt(){const[t,e]=w.useState(()=>Ez?ope():void 0);return oS(()=>{t==null&&e(ope())},[]),w.useEffect(()=>{Ez||(Ez=!0)},[]),t}const Fyt=ix.useId,spe=Fyt||Eyt;function Dyt(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){t.set(e,(t.get(e)||[]).filter(r=>r!==n))}}}const Tyt=w.createContext(null),Oyt=w.createContext(null),iMe=()=>{var t;return((t=w.useContext(Tyt))==null?void 0:t.id)||null},lne=()=>w.useContext(Oyt);function Yv(t){return t?.ownerDocument||document}function Byt(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function jyt(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function cne(t){return Yv(t).defaultView||window}function mp(t){return t?t instanceof cne(t).Element:!1}function aMe(t){return t?t instanceof cne(t).HTMLElement:!1}function Iyt(t){if(typeof ShadowRoot>"u")return!1;const e=cne(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Pyt(t){if(t.mozInputSource===0&&t.isTrusted)return!0;const e=/Android/i;return(e.test(Byt())||e.test(jyt()))&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Myt(t){return t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType!=="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0}function oMe(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}function lpe(t){const e=w.useRef(t);return oS(()=>{e.current=t}),e}const cpe="data-floating-ui-safe-polygon";function qj(t,e,n){return n&&!oMe(n)?0:typeof t=="number"?t:t?.[e]}const Ryt=function(t,e){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0}=e===void 0?{}:e;const{open:l,onOpenChange:c,dataRef:u,events:f,elements:{domReference:h,floating:m},refs:A}=t,p=lne(),v=iMe(),y=lpe(i),x=lpe(r),k=w.useRef(),S=w.useRef(),C=w.useRef(),N=w.useRef(),E=w.useRef(!0),D=w.useRef(!1),T=w.useRef(()=>{}),I=w.useCallback(()=>{var $;const U=($=u.current.openEvent)==null?void 0:$.type;return U?.includes("mouse")&&U!=="mousedown"},[u]);w.useEffect(()=>{if(!n)return;function $(){clearTimeout(S.current),clearTimeout(N.current),E.current=!0}return f.on("dismiss",$),()=>{f.off("dismiss",$)}},[n,f]),w.useEffect(()=>{if(!n||!y.current||!l)return;function $(){I()&&c(!1)}const U=Yv(m).documentElement;return U.addEventListener("mouseleave",$),()=>{U.removeEventListener("mouseleave",$)}},[m,l,c,n,y,u,I]);const O=w.useCallback(function($){$===void 0&&($=!0);const U=qj(x.current,"close",k.current);U&&!C.current?(clearTimeout(S.current),S.current=setTimeout(()=>c(!1),U)):$&&(clearTimeout(S.current),c(!1))},[x,c]),B=w.useCallback(()=>{T.current(),C.current=void 0},[]),M=w.useCallback(()=>{if(D.current){const $=Yv(A.floating.current).body;$.style.pointerEvents="",$.removeAttribute(cpe),D.current=!1}},[A]);return w.useEffect(()=>{if(!n)return;function $(){return u.current.openEvent?["click","mousedown"].includes(u.current.openEvent.type):!1}function U(G){if(clearTimeout(S.current),E.current=!1,a&&!oMe(k.current)||o>0&&qj(x.current,"open")===0)return;u.current.openEvent=G;const X=qj(x.current,"open",k.current);X?S.current=setTimeout(()=>{c(!0)},X):c(!0)}function P(G){if($())return;T.current();const X=Yv(m);if(clearTimeout(N.current),y.current){l||clearTimeout(S.current),C.current=y.current({...t,tree:p,x:G.clientX,y:G.clientY,onClose(){M(),B(),O()}});const he=C.current;X.addEventListener("mousemove",he),T.current=()=>{X.removeEventListener("mousemove",he)};return}O()}function Q(G){$()||y.current==null||y.current({...t,tree:p,x:G.clientX,y:G.clientY,onClose(){M(),B(),O()}})(G)}if(mp(h)){const G=h;return l&&G.addEventListener("mouseleave",Q),m?.addEventListener("mouseleave",Q),s&&G.addEventListener("mousemove",U,{once:!0}),G.addEventListener("mouseenter",U),G.addEventListener("mouseleave",P),()=>{l&&G.removeEventListener("mouseleave",Q),m?.removeEventListener("mouseleave",Q),s&&G.removeEventListener("mousemove",U),G.removeEventListener("mouseenter",U),G.removeEventListener("mouseleave",P)}}},[h,m,n,t,a,o,s,O,B,M,c,l,p,x,y,u]),oS(()=>{var $;if(n&&l&&($=y.current)!=null&&$.__options.blockPointerEvents&&I()){const Q=Yv(m).body;if(Q.setAttribute(cpe,""),Q.style.pointerEvents="none",D.current=!0,mp(h)&&m){var U,P;const G=h,X=p==null||(U=p.nodesRef.current.find(he=>he.id===v))==null||(P=U.context)==null?void 0:P.elements.floating;return X&&(X.style.pointerEvents=""),G.style.pointerEvents="auto",m.style.pointerEvents="auto",()=>{G.style.pointerEvents="",m.style.pointerEvents=""}}}},[n,l,v,m,h,p,y,u,I]),oS(()=>{l||(k.current=void 0,B(),M())},[l,B,M]),w.useEffect(()=>()=>{B(),clearTimeout(S.current),clearTimeout(N.current),M()},[n,B,M]),w.useMemo(()=>{if(!n)return{};function $(U){k.current=U.pointerType}return{reference:{onPointerDown:$,onPointerEnter:$,onMouseMove(){l||o===0||(clearTimeout(N.current),N.current=setTimeout(()=>{E.current||c(!0)},o))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){f.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),O(!1)}}}},[f,n,o,l,c,O])},sMe=w.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),lMe=()=>w.useContext(sMe),$yt=t=>{let{children:e,delay:n,timeoutMs:r=0}=t;const[i,a]=w.useReducer((l,c)=>({...l,...c}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=w.useRef(null),s=w.useCallback(l=>{a({currentId:l})},[]);return oS(()=>{i.currentId?o.current===null?o.current=i.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),o.current=null)},[i.currentId]),w.createElement(sMe.Provider,{value:w.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,a,s])},e)},Lyt=(t,e)=>{let{open:n,onOpenChange:r}=t,{id:i}=e;const{currentId:a,setCurrentId:o,initialDelay:s,setState:l,timeoutMs:c}=lMe();w.useEffect(()=>{a&&(l({delay:{open:1,close:qj(s,"close")}}),a!==i&&r(!1))},[i,r,l,a,s]),w.useEffect(()=>{function u(){r(!1),l({delay:s,currentId:null})}if(!n&&a===i)if(c){const f=window.setTimeout(u,c);return()=>{clearTimeout(f)}}else u()},[n,l,a,i,r,s,c]),w.useEffect(()=>{n&&o(i)},[n,o,i])};function Uyt(t){let e=t.activeElement;for(;((n=e)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;e=e.shadowRoot.activeElement}return e}function upe(t,e){if(!t||!e)return!1;const n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Iyt(n)){let r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function Fz(t,e){let n=t.filter(i=>{var a;return i.parentId===e&&((a=i.context)==null?void 0:a.open)})||[],r=n;for(;r.length;)r=t.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})})||[],n=n.concat(r);return n}function zyt(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Hyt=ix.useInsertionEffect,Vyt=Hyt||(t=>t());function cMe(t){const e=w.useRef(()=>{});return Vyt(()=>{e.current=t}),w.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Gj(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}const Qyt={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qyt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Gyt=function(t){var e,n;return t===void 0&&(t=!0),{escapeKeyBubbles:typeof t=="boolean"?t:(e=t.escapeKey)!=null?e:!0,outsidePressBubbles:typeof t=="boolean"?t:(n=t.outsidePress)!=null?n:!0}},Wyt=function(t,e){let{open:n,onOpenChange:r,events:i,nodeId:a,elements:{reference:o,domReference:s,floating:l},dataRef:c}=t,{enabled:u=!0,escapeKey:f=!0,outsidePress:h=!0,outsidePressEvent:m="pointerdown",referencePress:A=!1,referencePressEvent:p="pointerdown",ancestorScroll:v=!1,bubbles:y=!0}=e===void 0?{}:e;const x=lne(),k=iMe()!=null,S=cMe(typeof h=="function"?h:()=>!1),C=typeof h=="function"?S:h,N=w.useRef(!1),{escapeKeyBubbles:E,outsidePressBubbles:D}=Gyt(y);return w.useEffect(()=>{if(!n||!u)return;c.current.__escapeKeyBubbles=E,c.current.__outsidePressBubbles=D;function T($){if($.key==="Escape"){const U=x?Fz(x.nodesRef.current,a):[];if(U.length>0){let P=!0;if(U.forEach(Q=>{var G;if((G=Q.context)!=null&&G.open&&!Q.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}i.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function I($){const U=N.current;if(N.current=!1,U||typeof C=="function"&&!C($))return;const P=zyt($);if(aMe(P)&&l){const X=l.ownerDocument.defaultView||window,he=P.scrollWidth>P.clientWidth,ne=P.scrollHeight>P.clientHeight;let H=ne&&$.offsetX>P.clientWidth;if(ne&&X.getComputedStyle(P).direction==="rtl"&&(H=$.offsetX<=P.offsetWidth-P.clientWidth),H||he&&$.offsetY>P.clientHeight)return}const Q=x&&Fz(x.nodesRef.current,a).some(X=>{var he;return Gj($,(he=X.context)==null?void 0:he.elements.floating)});if(Gj($,l)||Gj($,s)||Q)return;const G=x?Fz(x.nodesRef.current,a):[];if(G.length>0){let X=!0;if(G.forEach(he=>{var ne;if((ne=he.context)!=null&&ne.open&&!he.context.dataRef.current.__outsidePressBubbles){X=!1;return}}),!X)return}i.emit("dismiss",{type:"outsidePress",data:{returnFocus:k?{preventScroll:!0}:Pyt($)||Myt($)}}),r(!1)}function O(){r(!1)}const B=Yv(l);f&&B.addEventListener("keydown",T),C&&B.addEventListener(m,I);let M=[];return v&&(mp(s)&&(M=ug(s)),mp(l)&&(M=M.concat(ug(l))),!mp(o)&&o&&o.contextElement&&(M=M.concat(ug(o.contextElement)))),M=M.filter($=>{var U;return $!==((U=B.defaultView)==null?void 0:U.visualViewport)}),M.forEach($=>{$.addEventListener("scroll",O,{passive:!0})}),()=>{f&&B.removeEventListener("keydown",T),C&&B.removeEventListener(m,I),M.forEach($=>{$.removeEventListener("scroll",O)})}},[c,l,s,o,f,C,m,i,x,a,n,r,v,u,E,D,k]),w.useEffect(()=>{N.current=!1},[C,m]),w.useMemo(()=>u?{reference:{[Qyt[p]]:()=>{A&&(i.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[qyt[m]]:()=>{N.current=!0}}}:{},[u,i,A,m,p,r])},Kyt=function(t,e){let{open:n,onOpenChange:r,dataRef:i,events:a,refs:o,elements:{floating:s,domReference:l}}=t,{enabled:c=!0,keyboardOnly:u=!0}=e===void 0?{}:e;const f=w.useRef(""),h=w.useRef(!1),m=w.useRef();return w.useEffect(()=>{if(!c)return;const p=Yv(s).defaultView||window;function v(){!n&&aMe(l)&&l===Uyt(Yv(l))&&(h.current=!0)}return p.addEventListener("blur",v),()=>{p.removeEventListener("blur",v)}},[s,l,n,c]),w.useEffect(()=>{if(!c)return;function A(p){(p.type==="referencePress"||p.type==="escapeKey")&&(h.current=!0)}return a.on("dismiss",A),()=>{a.off("dismiss",A)}},[a,c]),w.useEffect(()=>()=>{clearTimeout(m.current)},[]),w.useMemo(()=>c?{reference:{onPointerDown(A){let{pointerType:p}=A;f.current=p,h.current=!!(p&&u)},onMouseLeave(){h.current=!1},onFocus(A){var p;h.current||A.type==="focus"&&((p=i.current.openEvent)==null?void 0:p.type)==="mousedown"&&i.current.openEvent&&Gj(i.current.openEvent,l)||(i.current.openEvent=A.nativeEvent,r(!0))},onBlur(A){h.current=!1;const p=A.relatedTarget,v=mp(p)&&p.hasAttribute("data-floating-ui-focus-guard")&&p.getAttribute("data-type")==="outside";m.current=setTimeout(()=>{upe(o.floating.current,p)||upe(l,p)||v||r(!1)})}}}:{},[c,u,l,o,i,r])},Yyt=function(t,e){let{open:n}=t,{enabled:r=!0,role:i="dialog"}=e===void 0?{}:e;const a=spe(),o=spe();return w.useMemo(()=>{const s={id:a,role:i};return r?i==="tooltip"?{reference:{"aria-describedby":n?a:void 0},floating:s}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":n?a:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:o}},floating:{...s,...i==="menu"&&{"aria-labelledby":o}}}:{}},[r,i,n,a,o])};function une(t){t===void 0&&(t={});const{open:e=!1,onOpenChange:n,nodeId:r}=t,i=_yt(t),a=lne(),o=w.useRef(null),s=w.useRef({}),l=w.useState(()=>Dyt())[0],[c,u]=w.useState(null),f=w.useCallback(y=>{const x=mp(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;i.refs.setReference(x)},[i.refs]),h=w.useCallback(y=>{(mp(y)||y===null)&&(o.current=y,u(y)),(mp(i.refs.reference.current)||i.refs.reference.current===null||y!==null&&!mp(y))&&i.refs.setReference(y)},[i.refs]),m=w.useMemo(()=>({...i.refs,setReference:h,setPositionReference:f,domReference:o}),[i.refs,h,f]),A=w.useMemo(()=>({...i.elements,domReference:c}),[i.elements,c]),p=cMe(n),v=w.useMemo(()=>({...i,refs:m,elements:A,dataRef:s,nodeId:r,events:l,open:e,onOpenChange:p}),[i,r,l,e,p,m,A]);return oS(()=>{const y=a?.nodesRef.current.find(x=>x.id===r);y&&(y.context=v)}),w.useMemo(()=>({...i,context:v,refs:m,reference:h,positionReference:f}),[i,m,v,h,f])}function Dz(t,e,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...t,...e.map(i=>i?i[n]:null).concat(t).reduce((i,a)=>(a&&Object.entries(a).forEach(o=>{let[s,l]=o;if(s.indexOf("on")===0){if(r.has(s)||r.set(s,[]),typeof l=="function"){var c;(c=r.get(s))==null||c.push(l),i[s]=function(){for(var u,f=arguments.length,h=new Array(f),m=0;m<f;m++)h[m]=arguments[m];(u=r.get(s))==null||u.forEach(A=>A(...h))}}}else i[s]=l}),i),{})}}const Xyt=function(t){t===void 0&&(t=[]);const e=t,n=w.useCallback(a=>Dz(a,t,"reference"),e),r=w.useCallback(a=>Dz(a,t,"floating"),e),i=w.useCallback(a=>Dz(a,t,"item"),t.map(a=>a?.item));return w.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])};function uMe({opened:t,floating:e,position:n,positionDependencies:r}){const[i,a]=w.useState(0);w.useEffect(()=>{if(e.refs.reference.current&&e.refs.floating.current)return Z4e(e.refs.reference.current,e.refs.floating.current,e.update)},[e.refs.reference.current,e.refs.floating.current,t,i,n]),Gl(()=>{e.update()},r),Gl(()=>{a(o=>o+1)},[t])}function Zyt(t,e){const n=[one(t.offset)];return t.middlewares.shift&&n.push(d3({limiter:tMe()})),t.middlewares.flip&&n.push(sne()),t.middlewares.inline&&n.push(eMe()),n.push(rMe({element:t.arrowRef,padding:t.arrowOffset})),(t.middlewares.size||t.width==="target")&&n.push(J4e({apply({rects:r,availableWidth:i,availableHeight:a}){var o,s;const c=(s=(o=e().refs.floating.current)==null?void 0:o.style)!=null?s:{};t.middlewares.size&&Object.assign(c,{maxWidth:`${i}px`,maxHeight:`${a}px`}),t.width==="target"&&Object.assign(c,{width:`${r.reference.width}px`})}})),n}function Jyt(t){const[e,n]=Kc({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),r=()=>{var o;(o=t.onClose)==null||o.call(t),n(!1)},i=()=>{var o,s;e?((o=t.onClose)==null||o.call(t),n(!1)):((s=t.onOpen)==null||s.call(t),n(!0))},a=une({placement:t.position,middleware:Zyt(t,()=>a)});return uMe({opened:t.opened,position:t.position,positionDependencies:t.positionDependencies,floating:a}),Gl(()=>{var o;(o=t.onPositionChange)==null||o.call(t,a.placement)},[a.placement]),Gl(()=>{var o,s;t.opened?(s=t.onOpen)==null||s.call(t):(o=t.onClose)==null||o.call(t)},[t.opened]),{floating:a,controlled:typeof t.opened=="boolean",opened:e,onClose:r,onToggle:i}}const dMe={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[e0t,fMe]=Kf(dMe.context);var t0t=Object.defineProperty,n0t=Object.defineProperties,r0t=Object.getOwnPropertyDescriptors,NP=Object.getOwnPropertySymbols,hMe=Object.prototype.hasOwnProperty,mMe=Object.prototype.propertyIsEnumerable,dpe=(t,e,n)=>e in t?t0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,t5=(t,e)=>{for(var n in e||(e={}))hMe.call(e,n)&&dpe(t,n,e[n]);if(NP)for(var n of NP(e))mMe.call(e,n)&&dpe(t,n,e[n]);return t},i0t=(t,e)=>n0t(t,r0t(e)),a0t=(t,e)=>{var n={};for(var r in t)hMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&NP)for(var r of NP(t))e.indexOf(r)<0&&mMe.call(t,r)&&(n[r]=t[r]);return n};const o0t={refProp:"ref",popupType:"dialog",shouldOverrideDefaultTargetId:!0},pMe=w.forwardRef((t,e)=>{const n=Qt("PopoverTarget",o0t,t),{children:r,refProp:i,popupType:a,shouldOverrideDefaultTargetId:o}=n,s=a0t(n,["children","refProp","popupType","shouldOverrideDefaultTargetId"]);if(!uC(r))throw new Error(dMe.children);const l=s,c=fMe(),u=qp(c.reference,r.ref,e),f=c.withRoles?{"aria-haspopup":a,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:o?c.getTargetId():r.props.id}:{};return w.cloneElement(r,t5(i0t(t5(t5(t5({},l),f),c.targetProps),{className:GIe(c.targetProps.className,l.className,r.props.className),[i]:u}),c.controlled?null:{onClick:c.onToggle}))});pMe.displayName="@mantine/core/PopoverTarget";var s0t=cn((t,{radius:e,shadow:n})=>({dropdown:{position:"absolute",backgroundColor:t.white,background:t.colorScheme==="dark"?t.colors.dark[6]:t.white,border:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[2]}`,padding:`${t.spacing.sm} ${t.spacing.md}`,boxShadow:t.shadows[n]||n||"none",borderRadius:t.fn.radius(e),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[2]}`,zIndex:1}})),l0t=Object.defineProperty,fpe=Object.getOwnPropertySymbols,c0t=Object.prototype.hasOwnProperty,u0t=Object.prototype.propertyIsEnumerable,hpe=(t,e,n)=>e in t?l0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cw=(t,e)=>{for(var n in e||(e={}))c0t.call(e,n)&&hpe(t,n,e[n]);if(fpe)for(var n of fpe(e))u0t.call(e,n)&&hpe(t,n,e[n]);return t};const mpe={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function d0t({transition:t,state:e,duration:n,timingFunction:r}){const i={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in zO?cw(cw(cw({transitionProperty:zO[t].transitionProperty},i),zO[t].common),zO[t][mpe[e]]):null:cw(cw(cw({transitionProperty:t.transitionProperty},i),t.common),t[mpe[e]])}function f0t({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s}){const l=Vu(),c=e3(),u=l.respectReducedMotion?c:!1,[f,h]=w.useState(u?0:t),[m,A]=w.useState(r?"entered":"exited"),p=w.useRef(-1),v=y=>{const x=y?i:a,k=y?o:s;A(y?"pre-entering":"pre-exiting"),window.clearTimeout(p.current);const S=u?0:y?t:e;if(h(S),S===0)typeof x=="function"&&x(),typeof k=="function"&&k(),A(y?"entered":"exited");else{const C=window.setTimeout(()=>{typeof x=="function"&&x(),A(y?"entering":"exiting")},10);p.current=window.setTimeout(()=>{window.clearTimeout(C),typeof k=="function"&&k(),A(y?"entered":"exited")},S)}};return Gl(()=>{v(r)},[r]),w.useEffect(()=>()=>window.clearTimeout(p.current),[]),{transitionDuration:f,transitionStatus:m,transitionTimingFunction:n||l.transitionTimingFunction}}function vC({keepMounted:t,transition:e,duration:n=250,exitDuration:r=n,mounted:i,children:a,timingFunction:o,onExit:s,onEntered:l,onEnter:c,onExited:u}){const{transitionDuration:f,transitionStatus:h,transitionTimingFunction:m}=f0t({mounted:i,exitDuration:r,duration:n,timingFunction:o,onExit:s,onEntered:l,onEnter:c,onExited:u});return f===0?i?L.createElement(L.Fragment,null,a({})):t?a({display:"none"}):null:h==="exited"?t?a({display:"none"}):null:L.createElement(L.Fragment,null,a(d0t({transition:e,duration:f,state:h,timingFunction:m})))}vC.displayName="@mantine/core/Transition";function dne({children:t,active:e=!0,refProp:n="ref"}){const r=Omt(e),i=qp(r,t?.ref);return uC(t)?w.cloneElement(t,{[n]:i}):t}dne.displayName="@mantine/core/FocusTrap";var h0t=Object.defineProperty,m0t=Object.defineProperties,p0t=Object.getOwnPropertyDescriptors,ppe=Object.getOwnPropertySymbols,A0t=Object.prototype.hasOwnProperty,g0t=Object.prototype.propertyIsEnumerable,Ape=(t,e,n)=>e in t?h0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Sv=(t,e)=>{for(var n in e||(e={}))A0t.call(e,n)&&Ape(t,n,e[n]);if(ppe)for(var n of ppe(e))g0t.call(e,n)&&Ape(t,n,e[n]);return t},n5=(t,e)=>m0t(t,p0t(e));function gpe(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function vpe(t,e,n,r,i){return t==="center"||r==="center"?{left:e}:t==="end"?{[i==="ltr"?"right":"left"]:n}:t==="start"?{[i==="ltr"?"left":"right"]:n}:{}}const v0t={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function y0t({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){const[l,c="center"]=t.split("-"),u={width:He(e),height:He(e),transform:"rotate(45deg)",position:"absolute",[v0t[l]]:He(r)},f=He(-e/2);return l==="left"?n5(Sv(Sv({},u),gpe(c,o,n,i)),{right:f,borderLeftColor:"transparent",borderBottomColor:"transparent"}):l==="right"?n5(Sv(Sv({},u),gpe(c,o,n,i)),{left:f,borderRightColor:"transparent",borderTopColor:"transparent"}):l==="top"?n5(Sv(Sv({},u),vpe(c,a,n,i,s)),{bottom:f,borderTopColor:"transparent",borderLeftColor:"transparent"}):l==="bottom"?n5(Sv(Sv({},u),vpe(c,a,n,i,s)),{top:f,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var b0t=Object.defineProperty,x0t=Object.defineProperties,w0t=Object.getOwnPropertyDescriptors,EP=Object.getOwnPropertySymbols,AMe=Object.prototype.hasOwnProperty,gMe=Object.prototype.propertyIsEnumerable,ype=(t,e,n)=>e in t?b0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k0t=(t,e)=>{for(var n in e||(e={}))AMe.call(e,n)&&ype(t,n,e[n]);if(EP)for(var n of EP(e))gMe.call(e,n)&&ype(t,n,e[n]);return t},S0t=(t,e)=>x0t(t,w0t(e)),C0t=(t,e)=>{var n={};for(var r in t)AMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&EP)for(var r of EP(t))e.indexOf(r)<0&&gMe.call(t,r)&&(n[r]=t[r]);return n};const fne=w.forwardRef((t,e)=>{var n=t,{position:r,arrowSize:i,arrowOffset:a,arrowRadius:o,arrowPosition:s,visible:l,arrowX:c,arrowY:u}=n,f=C0t(n,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const h=Vu();return l?L.createElement("div",S0t(k0t({},f),{ref:e,style:y0t({position:r,arrowSize:i,arrowOffset:a,arrowRadius:o,arrowPosition:s,dir:h.dir,arrowX:c,arrowY:u})})):null});fne.displayName="@mantine/core/FloatingArrow";var _0t=Object.defineProperty,N0t=Object.defineProperties,E0t=Object.getOwnPropertyDescriptors,FP=Object.getOwnPropertySymbols,vMe=Object.prototype.hasOwnProperty,yMe=Object.prototype.propertyIsEnumerable,bpe=(t,e,n)=>e in t?_0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uw=(t,e)=>{for(var n in e||(e={}))vMe.call(e,n)&&bpe(t,n,e[n]);if(FP)for(var n of FP(e))yMe.call(e,n)&&bpe(t,n,e[n]);return t},r5=(t,e)=>N0t(t,E0t(e)),F0t=(t,e)=>{var n={};for(var r in t)vMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&FP)for(var r of FP(t))e.indexOf(r)<0&&yMe.call(t,r)&&(n[r]=t[r]);return n};const D0t={};function bMe(t){var e;const n=Qt("PopoverDropdown",D0t,t),{style:r,className:i,children:a,onKeyDownCapture:o}=n,s=F0t(n,["style","className","children","onKeyDownCapture"]),l=fMe(),{classes:c,cx:u}=s0t({radius:l.radius,shadow:l.shadow},{name:l.__staticSelector,classNames:l.classNames,styles:l.styles,unstyled:l.unstyled,variant:l.variant}),f=APe({opened:l.opened,shouldReturnFocus:l.returnFocus}),h=l.withRoles?{"aria-labelledby":l.getTargetId(),id:l.getDropdownId(),role:"dialog"}:{};return l.disabled?null:L.createElement(pC,r5(uw({},l.portalProps),{withinPortal:l.withinPortal}),L.createElement(vC,r5(uw({mounted:l.opened},l.transitionProps),{transition:l.transitionProps.transition||"fade",duration:(e=l.transitionProps.duration)!=null?e:150,keepMounted:l.keepMounted,exitDuration:typeof l.transitionProps.exitDuration=="number"?l.transitionProps.exitDuration:l.transitionProps.duration}),m=>{var A,p;return L.createElement(dne,{active:l.trapFocus},L.createElement(En,uw(r5(uw({},h),{tabIndex:-1,ref:l.floating,style:r5(uw(uw({},r),m),{zIndex:l.zIndex,top:(A=l.y)!=null?A:0,left:(p=l.x)!=null?p:0,width:l.width==="target"?void 0:He(l.width)}),className:u(c.dropdown,i),onKeyDownCapture:uft(l.onClose,{active:l.closeOnEscape,onTrigger:f,onKeyDown:o}),"data-position":l.placement}),s),a,L.createElement(fne,{ref:l.arrowRef,arrowX:l.arrowX,arrowY:l.arrowY,visible:l.withArrow,position:l.placement,arrowSize:l.arrowSize,arrowRadius:l.arrowRadius,arrowOffset:l.arrowOffset,arrowPosition:l.arrowPosition,className:c.arrow})))}))}bMe.displayName="@mantine/core/PopoverDropdown";function xMe(t,e){if(t==="rtl"&&(e.includes("right")||e.includes("left"))){const[n,r]=e.split("-"),i=n==="right"?"left":"right";return r===void 0?i:`${i}-${r}`}return e}var xpe=Object.getOwnPropertySymbols,T0t=Object.prototype.hasOwnProperty,O0t=Object.prototype.propertyIsEnumerable,B0t=(t,e)=>{var n={};for(var r in t)T0t.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xpe)for(var r of xpe(t))e.indexOf(r)<0&&O0t.call(t,r)&&(n[r]=t[r]);return n};const j0t={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Qp("popover"),__staticSelector:"Popover",width:"max-content"};function Gc(t){var e,n,r,i,a,o;const s=w.useRef(null),l=Qt("Popover",j0t,t),{children:c,position:u,offset:f,onPositionChange:h,positionDependencies:m,opened:A,transitionProps:p,width:v,middlewares:y,withArrow:x,arrowSize:k,arrowOffset:S,arrowRadius:C,arrowPosition:N,unstyled:E,classNames:D,styles:T,closeOnClickOutside:I,withinPortal:O,portalProps:B,closeOnEscape:M,clickOutsideEvents:$,trapFocus:U,onClose:P,onOpen:Q,onChange:G,zIndex:X,radius:he,shadow:ne,id:H,defaultOpened:W,__staticSelector:q,withRoles:Z,disabled:re,returnFocus:te,variant:ue,keepMounted:fe}=l,ge=B0t(l,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[oe,J]=w.useState(null),[Se,ye]=w.useState(null),xe=Lx(H),pe=Vu(),K=Jyt({middlewares:y,width:v,position:xMe(pe.dir,u),offset:typeof f=="number"?f+(x?k/2:0):f,arrowRef:s,arrowOffset:S,onPositionChange:h,positionDependencies:m,opened:A,defaultOpened:W,onChange:G,onOpen:Q,onClose:P});wmt(()=>K.opened&&I&&K.onClose(),$,[oe,Se]);const ie=w.useCallback(ce=>{J(ce),K.floating.reference(ce)},[K.floating.reference]),le=w.useCallback(ce=>{ye(ce),K.floating.floating(ce)},[K.floating.floating]);return L.createElement(e0t,{value:{returnFocus:te,disabled:re,controlled:K.controlled,reference:ie,floating:le,x:K.floating.x,y:K.floating.y,arrowX:(r=(n=(e=K.floating)==null?void 0:e.middlewareData)==null?void 0:n.arrow)==null?void 0:r.x,arrowY:(o=(a=(i=K.floating)==null?void 0:i.middlewareData)==null?void 0:a.arrow)==null?void 0:o.y,opened:K.opened,arrowRef:s,transitionProps:p,width:v,withArrow:x,arrowSize:k,arrowOffset:S,arrowRadius:C,arrowPosition:N,placement:K.floating.placement,trapFocus:U,withinPortal:O,portalProps:B,zIndex:X,radius:he,shadow:ne,closeOnEscape:M,onClose:K.onClose,onToggle:K.onToggle,getTargetId:()=>`${xe}-target`,getDropdownId:()=>`${xe}-dropdown`,withRoles:Z,targetProps:ge,__staticSelector:q,classNames:D,styles:T,unstyled:E,variant:ue,keepMounted:fe}},c)}Gc.Target=pMe;Gc.Dropdown=bMe;Gc.displayName="@mantine/core/Popover";var I0t=Object.defineProperty,DP=Object.getOwnPropertySymbols,wMe=Object.prototype.hasOwnProperty,kMe=Object.prototype.propertyIsEnumerable,wpe=(t,e,n)=>e in t?I0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,P0t=(t,e)=>{for(var n in e||(e={}))wMe.call(e,n)&&wpe(t,n,e[n]);if(DP)for(var n of DP(e))kMe.call(e,n)&&wpe(t,n,e[n]);return t},M0t=(t,e)=>{var n={};for(var r in t)wMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&DP)for(var r of DP(t))e.indexOf(r)<0&&kMe.call(t,r)&&(n[r]=t[r]);return n};function R0t(t){var e=t,{children:n,component:r="div",maxHeight:i=220,direction:a="column",id:o,innerRef:s,__staticSelector:l,styles:c,classNames:u,unstyled:f}=e,h=M0t(e,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);const{classes:m}=Evt(null,{name:l,styles:c,classNames:u,unstyled:f});return L.createElement(Gc.Dropdown,P0t({p:0,onMouseDown:A=>A.preventDefault()},h),L.createElement("div",{style:{maxHeight:He(i),display:"flex"}},L.createElement(En,{component:r||"div",id:`${o}-items`,"aria-labelledby":`${o}-label`,role:"listbox",onMouseDown:A=>A.preventDefault(),style:{flex:1,overflowY:r!==a3?"auto":void 0},"data-combobox-popover":!0,tabIndex:-1,ref:s},L.createElement("div",{className:m.itemsWrapper,style:{flexDirection:a}},n))))}function uy({opened:t,transitionProps:e={transition:"fade",duration:0},shadow:n,withinPortal:r,portalProps:i,children:a,__staticSelector:o,onDirectionChange:s,switchDirectionOnFlip:l,zIndex:c,dropdownPosition:u,positionDependencies:f=[],classNames:h,styles:m,unstyled:A,readOnly:p,variant:v}){return L.createElement(Gc,{unstyled:A,classNames:h,styles:m,width:"target",withRoles:!1,opened:t,middlewares:{flip:u==="flip",shift:!1},position:u==="flip"?"bottom":u,positionDependencies:f,zIndex:c,__staticSelector:o,withinPortal:r,portalProps:i,transitionProps:e,shadow:n,disabled:p,onPositionChange:y=>l&&s?.(y==="top"?"column-reverse":"column"),variant:v},a)}uy.Target=Gc.Target;uy.Dropdown=R0t;var $0t=Object.defineProperty,L0t=Object.defineProperties,U0t=Object.getOwnPropertyDescriptors,TP=Object.getOwnPropertySymbols,SMe=Object.prototype.hasOwnProperty,CMe=Object.prototype.propertyIsEnumerable,kpe=(t,e,n)=>e in t?$0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,i5=(t,e)=>{for(var n in e||(e={}))SMe.call(e,n)&&kpe(t,n,e[n]);if(TP)for(var n of TP(e))CMe.call(e,n)&&kpe(t,n,e[n]);return t},z0t=(t,e)=>L0t(t,U0t(e)),H0t=(t,e)=>{var n={};for(var r in t)SMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&TP)for(var r of TP(t))e.indexOf(r)<0&&CMe.call(t,r)&&(n[r]=t[r]);return n};function f3(t,e,n){const r=Qt(t,e,n),{label:i,description:a,error:o,required:s,classNames:l,styles:c,className:u,unstyled:f,__staticSelector:h,sx:m,errorProps:A,labelProps:p,descriptionProps:v,wrapperProps:y,id:x,size:k,style:S,inputContainer:C,inputWrapperOrder:N,withAsterisk:E,variant:D}=r,T=H0t(r,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk","variant"]),I=Lx(x),{systemStyles:O,rest:B}=mC(T),M=i5({label:i,description:a,error:o,required:s,classNames:l,className:u,__staticSelector:h,sx:m,errorProps:A,labelProps:p,descriptionProps:v,unstyled:f,styles:c,id:I,size:k,style:S,inputContainer:C,inputWrapperOrder:N,withAsterisk:E,variant:D},y);return z0t(i5({},B),{classNames:l,styles:c,unstyled:f,wrapperProps:i5(i5({},M),O),inputProps:{required:s,classNames:l,styles:c,unstyled:f,id:I,size:k,__staticSelector:h,error:o,variant:D}})}var V0t=cn((t,e,{size:n})=>({label:{display:"inline-block",fontSize:Tt({size:n,sizes:t.fontSizes}),fontWeight:500,color:t.colorScheme==="dark"?t.colors.dark[0]:t.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:t.fn.variant({variant:"filled",color:"red"}).background}})),Q0t=Object.defineProperty,OP=Object.getOwnPropertySymbols,_Me=Object.prototype.hasOwnProperty,NMe=Object.prototype.propertyIsEnumerable,Spe=(t,e,n)=>e in t?Q0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q0t=(t,e)=>{for(var n in e||(e={}))_Me.call(e,n)&&Spe(t,n,e[n]);if(OP)for(var n of OP(e))NMe.call(e,n)&&Spe(t,n,e[n]);return t},G0t=(t,e)=>{var n={};for(var r in t)_Me.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&OP)for(var r of OP(t))e.indexOf(r)<0&&NMe.call(t,r)&&(n[r]=t[r]);return n};const W0t={labelElement:"label",size:"sm"},hne=w.forwardRef((t,e)=>{const n=Qt("InputLabel",W0t,t),{labelElement:r,children:i,required:a,size:o,classNames:s,styles:l,unstyled:c,className:u,htmlFor:f,__staticSelector:h,variant:m,onMouseDown:A}=n,p=G0t(n,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector","variant","onMouseDown"]),{classes:v,cx:y}=V0t(null,{name:["InputWrapper",h],classNames:s,styles:l,unstyled:c,variant:m,size:o});return L.createElement(En,q0t({component:r,ref:e,className:y(v.label,u),htmlFor:r==="label"?f:void 0,onMouseDown:x=>{A?.(x),!x.defaultPrevented&&x.detail>1&&x.preventDefault()}},p),i,a&&L.createElement("span",{className:v.required,"aria-hidden":!0}," *"))});hne.displayName="@mantine/core/InputLabel";var K0t=cn((t,e,{size:n})=>({error:{wordBreak:"break-word",color:t.fn.variant({variant:"filled",color:"red"}).background,fontSize:`calc(${Tt({size:n,sizes:t.fontSizes})} - ${He(2)})`,lineHeight:1.2,display:"block"}})),Y0t=Object.defineProperty,BP=Object.getOwnPropertySymbols,EMe=Object.prototype.hasOwnProperty,FMe=Object.prototype.propertyIsEnumerable,Cpe=(t,e,n)=>e in t?Y0t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X0t=(t,e)=>{for(var n in e||(e={}))EMe.call(e,n)&&Cpe(t,n,e[n]);if(BP)for(var n of BP(e))FMe.call(e,n)&&Cpe(t,n,e[n]);return t},Z0t=(t,e)=>{var n={};for(var r in t)EMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&BP)for(var r of BP(t))e.indexOf(r)<0&&FMe.call(t,r)&&(n[r]=t[r]);return n};const J0t={size:"sm"},mne=w.forwardRef((t,e)=>{const n=Qt("InputError",J0t,t),{children:r,className:i,classNames:a,styles:o,unstyled:s,size:l,__staticSelector:c,variant:u}=n,f=Z0t(n,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:h,cx:m}=K0t(null,{name:["InputWrapper",c],classNames:a,styles:o,unstyled:s,variant:u,size:l});return L.createElement(Jn,X0t({className:m(h.error,i),ref:e},f),r)});mne.displayName="@mantine/core/InputError";var ebt=cn((t,e,{size:n})=>({description:{wordBreak:"break-word",color:t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6],fontSize:`calc(${Tt({size:n,sizes:t.fontSizes})} - ${He(2)})`,lineHeight:1.2,display:"block"}})),tbt=Object.defineProperty,jP=Object.getOwnPropertySymbols,DMe=Object.prototype.hasOwnProperty,TMe=Object.prototype.propertyIsEnumerable,_pe=(t,e,n)=>e in t?tbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nbt=(t,e)=>{for(var n in e||(e={}))DMe.call(e,n)&&_pe(t,n,e[n]);if(jP)for(var n of jP(e))TMe.call(e,n)&&_pe(t,n,e[n]);return t},rbt=(t,e)=>{var n={};for(var r in t)DMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&jP)for(var r of jP(t))e.indexOf(r)<0&&TMe.call(t,r)&&(n[r]=t[r]);return n};const ibt={size:"sm"},pne=w.forwardRef((t,e)=>{const n=Qt("InputDescription",ibt,t),{children:r,className:i,classNames:a,styles:o,unstyled:s,size:l,__staticSelector:c,variant:u}=n,f=rbt(n,["children","className","classNames","styles","unstyled","size","__staticSelector","variant"]),{classes:h,cx:m}=ebt(null,{name:["InputWrapper",c],classNames:a,styles:o,unstyled:s,variant:u,size:l});return L.createElement(Jn,nbt({color:"dimmed",className:m(h.description,i),ref:e,unstyled:s},f),r)});pne.displayName="@mantine/core/InputDescription";const OMe=w.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),abt=OMe.Provider,obt=()=>w.useContext(OMe);function sbt(t,{hasDescription:e,hasError:n}){const r=t.findIndex(l=>l==="input"),i=t[r-1],a=t[r+1];return{offsetBottom:e&&a==="description"||n&&a==="error",offsetTop:e&&i==="description"||n&&i==="error"}}var lbt=Object.defineProperty,cbt=Object.defineProperties,ubt=Object.getOwnPropertyDescriptors,Npe=Object.getOwnPropertySymbols,dbt=Object.prototype.hasOwnProperty,fbt=Object.prototype.propertyIsEnumerable,Epe=(t,e,n)=>e in t?lbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hbt=(t,e)=>{for(var n in e||(e={}))dbt.call(e,n)&&Epe(t,n,e[n]);if(Npe)for(var n of Npe(e))fbt.call(e,n)&&Epe(t,n,e[n]);return t},mbt=(t,e)=>cbt(t,ubt(e)),pbt=cn(t=>({root:mbt(hbt({},t.fn.fontStyles()),{lineHeight:t.lineHeight})})),Abt=Object.defineProperty,gbt=Object.defineProperties,vbt=Object.getOwnPropertyDescriptors,IP=Object.getOwnPropertySymbols,BMe=Object.prototype.hasOwnProperty,jMe=Object.prototype.propertyIsEnumerable,Fpe=(t,e,n)=>e in t?Abt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cv=(t,e)=>{for(var n in e||(e={}))BMe.call(e,n)&&Fpe(t,n,e[n]);if(IP)for(var n of IP(e))jMe.call(e,n)&&Fpe(t,n,e[n]);return t},Dpe=(t,e)=>gbt(t,vbt(e)),ybt=(t,e)=>{var n={};for(var r in t)BMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&IP)for(var r of IP(t))e.indexOf(r)<0&&jMe.call(t,r)&&(n[r]=t[r]);return n};const bbt={labelElement:"label",size:"sm",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},IMe=w.forwardRef((t,e)=>{const n=Qt("InputWrapper",bbt,t),{className:r,label:i,children:a,required:o,id:s,error:l,description:c,labelElement:u,labelProps:f,descriptionProps:h,errorProps:m,classNames:A,styles:p,size:v,inputContainer:y,__staticSelector:x,unstyled:k,inputWrapperOrder:S,withAsterisk:C,variant:N}=n,E=ybt(n,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk","variant"]),{classes:D,cx:T}=pbt(null,{classNames:A,styles:p,name:["InputWrapper",x],unstyled:k,variant:N,size:v}),I={classNames:A,styles:p,unstyled:k,size:v,variant:N,__staticSelector:x},O=typeof C=="boolean"?C:o,B=s?`${s}-error`:m?.id,M=s?`${s}-description`:h?.id,U=`${!!l&&typeof l!="boolean"?B:""} ${c?M:""}`,P=U.trim().length>0?U.trim():void 0,Q=i&&L.createElement(hne,Cv(Cv({key:"label",labelElement:u,id:s?`${s}-label`:void 0,htmlFor:s,required:O},I),f),i),G=c&&L.createElement(pne,Dpe(Cv(Cv({key:"description"},h),I),{size:h?.size||I.size,id:h?.id||M}),c),X=L.createElement(w.Fragment,{key:"input"},y(a)),he=typeof l!="boolean"&&l&&L.createElement(mne,Dpe(Cv(Cv({},m),I),{size:m?.size||I.size,key:"error",id:m?.id||B}),l),ne=S.map(H=>{switch(H){case"label":return Q;case"input":return X;case"description":return G;case"error":return he;default:return null}});return L.createElement(abt,{value:Cv({describedBy:P},sbt(S,{hasDescription:!!G,hasError:!!he}))},L.createElement(En,Cv({className:T(D.root,r),ref:e},E),ne))});IMe.displayName="@mantine/core/InputWrapper";var xbt=Object.defineProperty,PP=Object.getOwnPropertySymbols,PMe=Object.prototype.hasOwnProperty,MMe=Object.prototype.propertyIsEnumerable,Tpe=(t,e,n)=>e in t?xbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wbt=(t,e)=>{for(var n in e||(e={}))PMe.call(e,n)&&Tpe(t,n,e[n]);if(PP)for(var n of PP(e))MMe.call(e,n)&&Tpe(t,n,e[n]);return t},kbt=(t,e)=>{var n={};for(var r in t)PMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&PP)for(var r of PP(t))e.indexOf(r)<0&&MMe.call(t,r)&&(n[r]=t[r]);return n};const Sbt={},RMe=w.forwardRef((t,e)=>{const n=Qt("InputPlaceholder",Sbt,t),{sx:r}=n,i=kbt(n,["sx"]);return L.createElement(En,wbt({component:"span",sx:[a=>a.fn.placeholderStyles(),...VIe(r)],ref:e},i))});RMe.displayName="@mantine/core/InputPlaceholder";var Cbt=Object.defineProperty,_bt=Object.defineProperties,Nbt=Object.getOwnPropertyDescriptors,Ope=Object.getOwnPropertySymbols,Ebt=Object.prototype.hasOwnProperty,Fbt=Object.prototype.propertyIsEnumerable,Bpe=(t,e,n)=>e in t?Cbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a5=(t,e)=>{for(var n in e||(e={}))Ebt.call(e,n)&&Bpe(t,n,e[n]);if(Ope)for(var n of Ope(e))Fbt.call(e,n)&&Bpe(t,n,e[n]);return t},Tz=(t,e)=>_bt(t,Nbt(e));const ku={xs:He(30),sm:He(36),md:He(42),lg:He(50),xl:He(60)},Dbt=["default","filled","unstyled"];function Tbt({theme:t,variant:e}){return Dbt.includes(e)?e==="default"?{border:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[4]}`,backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.white,transition:"border-color 100ms ease","&:focus, &:focus-within":t.focusRingStyles.inputStyles(t)}:e==="filled"?{border:`${He(1)} solid transparent`,backgroundColor:t.colorScheme==="dark"?t.colors.dark[5]:t.colors.gray[1],"&:focus, &:focus-within":t.focusRingStyles.inputStyles(t)}:{borderWidth:0,color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,backgroundColor:"transparent",minHeight:He(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}var Obt=cn((t,{multiline:e,radius:n,invalid:r,rightSectionWidth:i,withRightSection:a,iconWidth:o,offsetBottom:s,offsetTop:l,pointer:c},{variant:u,size:f})=>{const h=t.fn.variant({variant:"filled",color:"red"}).background,m=u==="default"||u==="filled"?{minHeight:Tt({size:f,sizes:ku}),paddingLeft:`calc(${Tt({size:f,sizes:ku})} / 3)`,paddingRight:a?i||Tt({size:f,sizes:ku}):`calc(${Tt({size:f,sizes:ku})} / 3)`,borderRadius:t.fn.radius(n)}:u==="unstyled"&&a?{paddingRight:i||Tt({size:f,sizes:ku})}:null;return{wrapper:{position:"relative",marginTop:l?`calc(${t.spacing.xs} / 2)`:void 0,marginBottom:s?`calc(${t.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:Tz(a5(a5(Tz(a5({},t.fn.fontStyles()),{height:e?u==="unstyled"?void 0:"auto":Tt({size:f,sizes:ku}),WebkitTapHighlightColor:"transparent",lineHeight:e?t.lineHeight:`calc(${Tt({size:f,sizes:ku})} - ${He(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:Tt({size:f,sizes:t.fontSizes}),width:"100%",color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,display:"block",textAlign:"left",cursor:c?"pointer":void 0}),Tbt({theme:t,variant:u})),m),{"&:disabled, &[data-disabled]":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[1],color:t.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:t.colors.dark[2]}},"&[data-invalid]":{color:h,borderColor:h,"&::placeholder":{opacity:1,color:h}},"&[data-with-icon]":{paddingLeft:typeof o=="number"?He(o):Tt({size:f,sizes:ku})},"&::placeholder":Tz(a5({},t.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:o?He(o):Tt({size:f,sizes:ku}),color:r?t.colors.red[t.colorScheme==="dark"?6:7]:t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:i||Tt({size:f,sizes:ku})}}}),Bbt=Object.defineProperty,jbt=Object.defineProperties,Ibt=Object.getOwnPropertyDescriptors,MP=Object.getOwnPropertySymbols,$Me=Object.prototype.hasOwnProperty,LMe=Object.prototype.propertyIsEnumerable,jpe=(t,e,n)=>e in t?Bbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,o5=(t,e)=>{for(var n in e||(e={}))$Me.call(e,n)&&jpe(t,n,e[n]);if(MP)for(var n of MP(e))LMe.call(e,n)&&jpe(t,n,e[n]);return t},Ipe=(t,e)=>jbt(t,Ibt(e)),Pbt=(t,e)=>{var n={};for(var r in t)$Me.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&MP)for(var r of MP(t))e.indexOf(r)<0&&LMe.call(t,r)&&(n[r]=t[r]);return n};const Mbt={size:"sm",variant:"default"},zx=w.forwardRef((t,e)=>{const n=Qt("Input",Mbt,t),{className:r,error:i,required:a,disabled:o,variant:s,icon:l,style:c,rightSectionWidth:u,iconWidth:f,rightSection:h,rightSectionProps:m,radius:A,size:p,wrapperProps:v,classNames:y,styles:x,__staticSelector:k,multiline:S,sx:C,unstyled:N,pointer:E}=n,D=Pbt(n,["className","error","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:T,offsetTop:I,describedBy:O}=obt(),{classes:B,cx:M}=Obt({radius:A,multiline:S,invalid:!!i,rightSectionWidth:u?He(u):void 0,iconWidth:f,withRightSection:!!h,offsetBottom:T,offsetTop:I,pointer:E},{classNames:y,styles:x,name:["Input",k],unstyled:N,variant:s,size:p}),{systemStyles:$,rest:U}=mC(D);return L.createElement(En,o5(o5({className:M(B.wrapper,r),sx:C,style:c},$),v),l&&L.createElement("div",{className:B.icon},l),L.createElement(En,Ipe(o5({component:"input"},U),{ref:e,required:a,"aria-invalid":!!i,"aria-describedby":O,disabled:o,"data-disabled":o||void 0,"data-with-icon":!!l||void 0,"data-invalid":!!i||void 0,className:B.input})),h&&L.createElement("div",Ipe(o5({},m),{className:B.rightSection}),h))});zx.displayName="@mantine/core/Input";zx.Wrapper=IMe;zx.Label=hne;zx.Description=pne;zx.Error=mne;zx.Placeholder=RMe;const Wl=zx;var Rbt=Object.defineProperty,$bt=Object.defineProperties,Lbt=Object.getOwnPropertyDescriptors,Ppe=Object.getOwnPropertySymbols,Ubt=Object.prototype.hasOwnProperty,zbt=Object.prototype.propertyIsEnumerable,Mpe=(t,e,n)=>e in t?Rbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Oz=(t,e)=>{for(var n in e||(e={}))Ubt.call(e,n)&&Mpe(t,n,e[n]);if(Ppe)for(var n of Ppe(e))zbt.call(e,n)&&Mpe(t,n,e[n]);return t},Hbt=(t,e)=>$bt(t,Lbt(e));const Vbt=["light","filled","outline","dot","gradient"],Bz={xs:{fontSize:He(9),height:He(16)},sm:{fontSize:He(10),height:He(18)},md:{fontSize:He(11),height:He(20)},lg:{fontSize:He(13),height:He(26)},xl:{fontSize:He(16),height:He(32)}},Qbt={xs:He(4),sm:He(4),md:He(6),lg:He(8),xl:He(10)};function qbt({theme:t,variant:e,color:n,size:r,gradient:i}){if(!Vbt.includes(e))return null;if(e==="dot"){const o=Tt({size:r,sizes:Qbt});return{backgroundColor:"transparent",color:t.colorScheme==="dark"?t.colors.dark[0]:t.colors.gray[7],border:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[3]}`,paddingLeft:`calc(${Tt({size:r,sizes:t.spacing})} / 1.5 - ${o} / 2)`,"&::before":{content:'""',display:"block",width:o,height:o,borderRadius:o,backgroundColor:t.fn.themeColor(n,t.colorScheme==="dark"?4:t.fn.primaryShade("light"),!0),marginRight:o}}}const a=t.fn.variant({color:n,variant:e,gradient:i});return{background:a.background,color:a.color,border:`${He(e==="gradient"?0:1)} solid ${a.border}`}}var Gbt=cn((t,{color:e,radius:n,gradient:r,fullWidth:i},{variant:a,size:o})=>{const{fontSize:s,height:l}=o in Bz?Bz[o]:Bz.md;return{leftSection:{marginRight:`calc(${t.spacing.xs} / 2)`},rightSection:{marginLeft:`calc(${t.spacing.xs} / 2)`},inner:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},root:Oz(Hbt(Oz(Oz({},t.fn.focusStyles()),t.fn.fontStyles()),{fontSize:s,height:l,WebkitTapHighlightColor:"transparent",lineHeight:`calc(${l} - ${He(2)})`,textDecoration:"none",padding:`0 calc(${Tt({size:o,sizes:t.spacing})} / 1.5)`,boxSizing:"border-box",display:i?"flex":"inline-flex",alignItems:"center",justifyContent:"center",width:i?"100%":"auto",textTransform:"uppercase",borderRadius:t.fn.radius(n),fontWeight:700,letterSpacing:He(.25),cursor:"inherit",textOverflow:"ellipsis",overflow:"hidden"}),qbt({theme:t,variant:a,color:e,size:o,gradient:r}))}}),Wbt=Object.defineProperty,RP=Object.getOwnPropertySymbols,UMe=Object.prototype.hasOwnProperty,zMe=Object.prototype.propertyIsEnumerable,Rpe=(t,e,n)=>e in t?Wbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kbt=(t,e)=>{for(var n in e||(e={}))UMe.call(e,n)&&Rpe(t,n,e[n]);if(RP)for(var n of RP(e))zMe.call(e,n)&&Rpe(t,n,e[n]);return t},Ybt=(t,e)=>{var n={};for(var r in t)UMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&RP)for(var r of RP(t))e.indexOf(r)<0&&zMe.call(t,r)&&(n[r]=t[r]);return n};const Xbt={variant:"light",size:"md",radius:"xl"},HMe=w.forwardRef((t,e)=>{const n=Qt("Badge",Xbt,t),{className:r,color:i,variant:a,fullWidth:o,children:s,size:l,leftSection:c,rightSection:u,radius:f,gradient:h,classNames:m,styles:A,unstyled:p}=n,v=Ybt(n,["className","color","variant","fullWidth","children","size","leftSection","rightSection","radius","gradient","classNames","styles","unstyled"]),{classes:y,cx:x}=Gbt({fullWidth:o,color:i,radius:f,gradient:h},{classNames:m,styles:A,name:"Badge",unstyled:p,variant:a,size:l});return L.createElement(En,Kbt({className:x(y.root,r),ref:e},v),c&&L.createElement("span",{className:y.leftSection},c),L.createElement("span",{className:y.inner},s),u&&L.createElement("span",{className:y.rightSection},u))});HMe.displayName="@mantine/core/Badge";const LY=HMe,Zbt={xs:He(12),sm:He(18),md:He(24),lg:He(34),xl:He(42)};var Jbt=cn((t,{color:e,transitionDuration:n},{size:r})=>{const i=Tt({size:r,sizes:Zbt}),a=e||(t.colorScheme==="dark"?t.white:t.black);return{root:{borderRadius:t.radius.sm,width:`calc(${i} + ${t.spacing.xs})`,height:`calc(${i} + ${t.spacing.xs})`,padding:`calc(${t.spacing.xs} / 2)`,cursor:"pointer"},burger:{position:"relative",userSelect:"none",boxSizing:"border-box","&, &::before, &::after":{display:"block",width:i,height:`calc(${i} / 12)`,backgroundColor:a,outline:`${He(1)} solid transparent`,transitionProperty:"background-color, transform",transitionDuration:`${n}ms`,"@media (prefers-reduced-motion)":{transitionDuration:t.respectReducedMotion?"0ms":void 0}},"&::before, &::after":{position:"absolute",content:'""',left:0},"&::before":{top:`calc((${i} / 3) * -1)`},"&::after":{top:`calc(${i} / 3)`},"&[data-opened]":{backgroundColor:"transparent","&::before":{transform:`translateY(calc(${i} / 3)) rotate(45deg)`},"&::after":{transform:`translateY(calc(-${i} / 3)) rotate(-45deg)`}}}}}),ext=Object.defineProperty,$P=Object.getOwnPropertySymbols,VMe=Object.prototype.hasOwnProperty,QMe=Object.prototype.propertyIsEnumerable,$pe=(t,e,n)=>e in t?ext(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,txt=(t,e)=>{for(var n in e||(e={}))VMe.call(e,n)&&$pe(t,n,e[n]);if($P)for(var n of $P(e))QMe.call(e,n)&&$pe(t,n,e[n]);return t},nxt=(t,e)=>{var n={};for(var r in t)VMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$P)for(var r of $P(t))e.indexOf(r)<0&&QMe.call(t,r)&&(n[r]=t[r]);return n};const rxt={size:"md",transitionDuration:300},Ane=w.forwardRef((t,e)=>{const n=Qt("Burger",rxt,t),{className:r,opened:i,color:a,size:o,classNames:s,styles:l,transitionDuration:c,variant:u}=n,f=nxt(n,["className","opened","color","size","classNames","styles","transitionDuration","variant"]),{classes:h,cx:m}=Jbt({color:a,transitionDuration:c},{classNames:s,styles:l,name:"Burger",variant:u,size:o});return L.createElement(Od,txt({className:m(h.root,r),ref:e},f),L.createElement("div",{"data-opened":i||void 0,className:h.burger}))});Ane.displayName="@mantine/core/Burger";var ixt=cn((t,{radius:e,shadow:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,backgroundColor:t.colorScheme==="dark"?t.colors.dark[7]:t.white,boxSizing:"border-box",borderRadius:t.fn.radius(e),boxShadow:t.shadows[n]||n||"none","&[data-with-border]":{border:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[3]}`}}})),axt=Object.defineProperty,LP=Object.getOwnPropertySymbols,qMe=Object.prototype.hasOwnProperty,GMe=Object.prototype.propertyIsEnumerable,Lpe=(t,e,n)=>e in t?axt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oxt=(t,e)=>{for(var n in e||(e={}))qMe.call(e,n)&&Lpe(t,n,e[n]);if(LP)for(var n of LP(e))GMe.call(e,n)&&Lpe(t,n,e[n]);return t},sxt=(t,e)=>{var n={};for(var r in t)qMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&LP)for(var r of LP(t))e.indexOf(r)<0&&GMe.call(t,r)&&(n[r]=t[r]);return n};const lxt={},WMe=w.forwardRef((t,e)=>{const n=Qt("Paper",lxt,t),{className:r,children:i,radius:a,withBorder:o,shadow:s,unstyled:l,variant:c}=n,u=sxt(n,["className","children","radius","withBorder","shadow","unstyled","variant"]),{classes:f,cx:h}=ixt({radius:a,shadow:s},{name:"Paper",unstyled:l,variant:c});return L.createElement(En,oxt({className:h(f.root,r),"data-with-border":o||void 0,ref:e},u),i)});WMe.displayName="@mantine/core/Paper";const Fg=WMe,KMe=w.createContext({padding:0}),cxt=KMe.Provider,uxt=()=>w.useContext(KMe).padding;var dxt=cn((t,{padding:e,withBorder:n,inheritPadding:r})=>{const i=Tt({size:e,sizes:t.spacing}),a=`calc(-1 * ${i})`,o=t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[3];return{cardSection:{display:"block",marginLeft:a,marginRight:a,paddingLeft:r?i:void 0,paddingRight:r?i:void 0,borderTop:n?`${He(1)} solid ${o}`:void 0,borderBottom:n?`${He(1)} solid ${o}`:void 0,"& + &":{borderTop:0},"&[data-first]":{marginTop:a,borderTop:0,borderBottom:n?`${He(1)} solid ${o}`:void 0},"&[data-last]":{marginBottom:a,borderBottom:0}}}}),fxt=Object.defineProperty,UP=Object.getOwnPropertySymbols,YMe=Object.prototype.hasOwnProperty,XMe=Object.prototype.propertyIsEnumerable,Upe=(t,e,n)=>e in t?fxt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hxt=(t,e)=>{for(var n in e||(e={}))YMe.call(e,n)&&Upe(t,n,e[n]);if(UP)for(var n of UP(e))XMe.call(e,n)&&Upe(t,n,e[n]);return t},mxt=(t,e)=>{var n={};for(var r in t)YMe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&UP)for(var r of UP(t))e.indexOf(r)<0&&XMe.call(t,r)&&(n[r]=t[r]);return n};const pxt={withBorder:!1,inheritPadding:!1},ZMe=w.forwardRef((t,e)=>{const n=Qt("CardSection",pxt,t),{className:r,withBorder:i,inheritPadding:a,unstyled:o,variant:s}=n,l=mxt(n,["className","withBorder","inheritPadding","unstyled","variant"]),{classes:c,cx:u}=dxt({padding:uxt(),withBorder:i,inheritPadding:a},{name:"Card",unstyled:o,variant:s});return L.createElement(En,hxt({className:u(c.cardSection,r),ref:e},l))});ZMe.displayName="@mantine/core/CardSection";const JMe=ZMe;var Axt=cn(t=>({root:{position:"relative",overflow:"hidden",backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.white}})),gxt=Object.defineProperty,zP=Object.getOwnPropertySymbols,eRe=Object.prototype.hasOwnProperty,tRe=Object.prototype.propertyIsEnumerable,zpe=(t,e,n)=>e in t?gxt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vxt=(t,e)=>{for(var n in e||(e={}))eRe.call(e,n)&&zpe(t,n,e[n]);if(zP)for(var n of zP(e))tRe.call(e,n)&&zpe(t,n,e[n]);return t},yxt=(t,e)=>{var n={};for(var r in t)eRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&zP)for(var r of zP(t))e.indexOf(r)<0&&tRe.call(t,r)&&(n[r]=t[r]);return n};const bxt={padding:"md"},gne=w.forwardRef((t,e)=>{const n=Qt("Card",bxt,t),{className:r,padding:i,radius:a,children:o,unstyled:s,variant:l}=n,c=yxt(n,["className","padding","radius","children","unstyled","variant"]),{classes:u,cx:f}=Axt(null,{name:"Card",unstyled:s,variant:l}),h=w.Children.toArray(o),m=h.map((A,p)=>typeof A=="object"&&A&&"type"in A&&A.type===JMe?w.cloneElement(A,{variant:l,padding:i,"data-first":p===0||void 0,"data-last":p===h.length-1||void 0}):A);return L.createElement(cxt,{value:{padding:i}},L.createElement(Fg,vxt({className:f(u.root,r),radius:a,p:i,ref:e},c),m))});gne.Section=JMe;gne.displayName="@mantine/core/Card";const HP=gne,nRe=w.createContext(null),xxt=nRe.Provider,wxt=()=>w.useContext(nRe);var kxt=Object.defineProperty,VP=Object.getOwnPropertySymbols,rRe=Object.prototype.hasOwnProperty,iRe=Object.prototype.propertyIsEnumerable,Hpe=(t,e,n)=>e in t?kxt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vpe=(t,e)=>{for(var n in e||(e={}))rRe.call(e,n)&&Hpe(t,n,e[n]);if(VP)for(var n of VP(e))iRe.call(e,n)&&Hpe(t,n,e[n]);return t},Sxt=(t,e)=>{var n={};for(var r in t)rRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&VP)for(var r of VP(t))e.indexOf(r)<0&&iRe.call(t,r)&&(n[r]=t[r]);return n};const Cxt={size:"sm"},aRe=w.forwardRef((t,e)=>{const n=Qt("CheckboxGroup",Cxt,t),{children:r,value:i,defaultValue:a,onChange:o,size:s,wrapperProps:l}=n,c=Sxt(n,["children","value","defaultValue","onChange","size","wrapperProps"]),[u,f]=Kc({value:i,defaultValue:a,finalValue:[],onChange:o}),h=m=>{const A=m.currentTarget.value;f(u.includes(A)?u.filter(p=>p!==A):[...u,A])};return L.createElement(xxt,{value:{value:u,onChange:h,size:s}},L.createElement(Wl.Wrapper,Vpe(Vpe({labelElement:"div",size:s,__staticSelector:"CheckboxGroup",ref:e},l),c),r))});aRe.displayName="@mantine/core/CheckboxGroup";var _xt=Object.defineProperty,QP=Object.getOwnPropertySymbols,oRe=Object.prototype.hasOwnProperty,sRe=Object.prototype.propertyIsEnumerable,Qpe=(t,e,n)=>e in t?_xt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qP=(t,e)=>{for(var n in e||(e={}))oRe.call(e,n)&&Qpe(t,n,e[n]);if(QP)for(var n of QP(e))sRe.call(e,n)&&Qpe(t,n,e[n]);return t},lRe=(t,e)=>{var n={};for(var r in t)oRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&QP)for(var r of QP(t))e.indexOf(r)<0&&sRe.call(t,r)&&(n[r]=t[r]);return n};function cRe(t){const e=t,{width:n,height:r,style:i}=e,a=lRe(e,["width","height","style"]);return L.createElement("svg",qP({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:qP({width:n,height:r},i)},a),L.createElement("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Nxt(t){var e=t,{indeterminate:n}=e,r=lRe(e,["indeterminate"]);return n?L.createElement("svg",qP({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},r),L.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):L.createElement(cRe,qP({},r))}var Ext=Object.defineProperty,Fxt=Object.defineProperties,Dxt=Object.getOwnPropertyDescriptors,qpe=Object.getOwnPropertySymbols,Txt=Object.prototype.hasOwnProperty,Oxt=Object.prototype.propertyIsEnumerable,Gpe=(t,e,n)=>e in t?Ext(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wpe=(t,e)=>{for(var n in e||(e={}))Txt.call(e,n)&&Gpe(t,n,e[n]);if(qpe)for(var n of qpe(e))Oxt.call(e,n)&&Gpe(t,n,e[n]);return t},Kpe=(t,e)=>Fxt(t,Dxt(e));const Bxt={xs:He(16),sm:He(20),md:He(24),lg:He(30),xl:He(36)};var jxt=cn((t,{radius:e,color:n,transitionDuration:r,labelPosition:i,error:a,indeterminate:o},{size:s})=>{const l=Tt({size:s,sizes:Bxt}),c=t.fn.variant({variant:"filled",color:n});return{icon:Kpe(Wpe({},t.fn.cover()),{ref:Lb("icon"),color:o?"inherit":t.white,transform:o?"none":`translateY(${He(5)}) scale(0.5)`,opacity:o?1:0,transitionProperty:"opacity, transform",transitionTimingFunction:"ease",transitionDuration:`${r}ms`,pointerEvents:"none",width:"60%",position:"absolute",zIndex:1,margin:"auto","@media (prefers-reduced-motion)":{transitionDuration:t.respectReducedMotion?"0ms":void 0}}),inner:{position:"relative",width:l,height:l,order:i==="left"?2:1},input:Kpe(Wpe({},t.fn.focusStyles()),{appearance:"none",backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.white,border:`${He(1)} solid ${a?t.fn.variant({variant:"filled",color:"red"}).background:t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[4]}`,width:l,height:l,borderRadius:t.fn.radius(e),padding:0,display:"block",margin:0,transition:`border-color ${r}ms ease, background-color ${r}ms ease`,cursor:t.cursorType,"&:checked":{backgroundColor:c.background,borderColor:c.background,[`& + .${Lb("icon")}`]:{opacity:1,color:t.white,transform:"translateY(0) scale(1)"}},"&:disabled":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[2],borderColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[3],cursor:"not-allowed",pointerEvents:"none",[`& + .${Lb("icon")}`]:{color:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[5]}}})}}),Ixt=Object.defineProperty,Pxt=Object.defineProperties,Mxt=Object.getOwnPropertyDescriptors,Ype=Object.getOwnPropertySymbols,Rxt=Object.prototype.hasOwnProperty,$xt=Object.prototype.propertyIsEnumerable,Xpe=(t,e,n)=>e in t?Ixt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lxt=(t,e)=>{for(var n in e||(e={}))Rxt.call(e,n)&&Xpe(t,n,e[n]);if(Ype)for(var n of Ype(e))$xt.call(e,n)&&Xpe(t,n,e[n]);return t},Uxt=(t,e)=>Pxt(t,Mxt(e));const jz={xs:He(16),sm:He(20),md:He(24),lg:He(30),xl:He(36)};var zxt=cn((t,{labelPosition:e},{size:n})=>({root:{},body:{display:"flex","&:has(input:disabled) label":{color:t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[5]}},labelWrapper:Uxt(Lxt({},t.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:n in jz?Tt({size:n,sizes:t.fontSizes}):void 0,lineHeight:n in jz?Tt({size:n,sizes:jz}):void 0,color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,cursor:t.cursorType,order:e==="left"?1:2}),description:{marginTop:`calc(${t.spacing.xs} / 2)`,[e==="left"?"paddingRight":"paddingLeft"]:t.spacing.sm},error:{marginTop:`calc(${t.spacing.xs} / 2)`,[e==="left"?"paddingRight":"paddingLeft"]:t.spacing.sm},label:{cursor:t.cursorType,[e==="left"?"paddingRight":"paddingLeft"]:t.spacing.sm,"&:disabled, &[data-disabled]":{color:t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[5]}}})),Hxt=Object.defineProperty,GP=Object.getOwnPropertySymbols,uRe=Object.prototype.hasOwnProperty,dRe=Object.prototype.propertyIsEnumerable,Zpe=(t,e,n)=>e in t?Hxt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vxt=(t,e)=>{for(var n in e||(e={}))uRe.call(e,n)&&Zpe(t,n,e[n]);if(GP)for(var n of GP(e))dRe.call(e,n)&&Zpe(t,n,e[n]);return t},Qxt=(t,e)=>{var n={};for(var r in t)uRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&GP)for(var r of GP(t))e.indexOf(r)<0&&dRe.call(t,r)&&(n[r]=t[r]);return n};const fRe=w.forwardRef((t,e)=>{var n=t,{__staticSelector:r,className:i,classNames:a,styles:o,unstyled:s,children:l,label:c,description:u,id:f,disabled:h,error:m,size:A,labelPosition:p,bodyElement:v="div",labelElement:y="label",variant:x}=n,k=Qxt(n,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition","bodyElement","labelElement","variant"]);const{classes:S,cx:C}=zxt({labelPosition:p},{name:r,styles:o,classNames:a,unstyled:s,variant:x,size:A});return L.createElement(En,Vxt({className:C(S.root,i),ref:e},k),L.createElement(En,{component:v,htmlFor:v==="label"?f:void 0,className:C(S.body)},l,L.createElement("div",{className:S.labelWrapper},c!=null&&L.createElement(En,{component:y,htmlFor:y==="label"?f:void 0,className:S.label,"data-disabled":h||void 0},c),u&&L.createElement(Wl.Description,{className:S.description},u),m&&m!=="boolean"&&L.createElement(Wl.Error,{className:S.error},m))))});fRe.displayName="@mantine/core/InlineInput";var qxt=Object.defineProperty,WP=Object.getOwnPropertySymbols,hRe=Object.prototype.hasOwnProperty,mRe=Object.prototype.propertyIsEnumerable,Jpe=(t,e,n)=>e in t?qxt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s5=(t,e)=>{for(var n in e||(e={}))hRe.call(e,n)&&Jpe(t,n,e[n]);if(WP)for(var n of WP(e))mRe.call(e,n)&&Jpe(t,n,e[n]);return t},Gxt=(t,e)=>{var n={};for(var r in t)hRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&WP)for(var r of WP(t))e.indexOf(r)<0&&mRe.call(t,r)&&(n[r]=t[r]);return n};const Wxt={size:"sm",transitionDuration:100,icon:Nxt,labelPosition:"right"},h3=w.forwardRef((t,e)=>{const n=Qt("Checkbox",Wxt,t),{className:r,style:i,sx:a,checked:o,disabled:s,color:l,label:c,indeterminate:u,id:f,size:h,radius:m,wrapperProps:A,children:p,classNames:v,styles:y,transitionDuration:x,icon:k,unstyled:S,labelPosition:C,description:N,error:E,variant:D}=n,T=Gxt(n,["className","style","sx","checked","disabled","color","label","indeterminate","id","size","radius","wrapperProps","children","classNames","styles","transitionDuration","icon","unstyled","labelPosition","description","error","variant"]),I=wxt(),O=Lx(f),{systemStyles:B,rest:M}=mC(T),{classes:$}=jxt({radius:m,color:l,transitionDuration:x,labelPosition:C,error:!!E,indeterminate:u},{name:"Checkbox",classNames:v,styles:y,unstyled:S,variant:D,size:I?.size||h}),U=I?{checked:I.value.includes(M.value),onChange:I.onChange}:{};return L.createElement(fRe,s5(s5({className:r,sx:a,style:i,id:O,size:I?.size||h,labelPosition:C,label:c,description:N,error:E,disabled:s,__staticSelector:"Checkbox",classNames:v,styles:y,unstyled:S,"data-checked":U.checked||void 0,variant:D},B),A),L.createElement("div",{className:$.inner},L.createElement("input",s5(s5({id:O,ref:e,type:"checkbox",className:$.input,checked:o,disabled:s},M),U)),L.createElement(k,{indeterminate:u,className:$.icon})))});h3.displayName="@mantine/core/Checkbox";h3.Group=aRe;var Kxt=cn((t,{fluid:e,sizes:n},{size:r})=>({root:{paddingLeft:t.spacing.md,paddingRight:t.spacing.md,maxWidth:e?"100%":Tt({size:r,sizes:n}),marginLeft:"auto",marginRight:"auto"}})),Yxt=Object.defineProperty,KP=Object.getOwnPropertySymbols,pRe=Object.prototype.hasOwnProperty,ARe=Object.prototype.propertyIsEnumerable,eAe=(t,e,n)=>e in t?Yxt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xxt=(t,e)=>{for(var n in e||(e={}))pRe.call(e,n)&&eAe(t,n,e[n]);if(KP)for(var n of KP(e))ARe.call(e,n)&&eAe(t,n,e[n]);return t},Zxt=(t,e)=>{var n={};for(var r in t)pRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&KP)for(var r of KP(t))e.indexOf(r)<0&&ARe.call(t,r)&&(n[r]=t[r]);return n};const Jxt={sizes:{xs:He(540),sm:He(720),md:He(960),lg:He(1140),xl:He(1320)}},vne=w.forwardRef((t,e)=>{const n=Qt("Container",Jxt,t),{className:r,fluid:i,size:a,unstyled:o,sizes:s,variant:l}=n,c=Zxt(n,["className","fluid","size","unstyled","sizes","variant"]),{classes:u,cx:f}=Kxt({fluid:i,sizes:s},{unstyled:o,name:"Container",variant:l,size:a});return L.createElement(En,Xxt({className:f(u.root,r),ref:e},c))});vne.displayName="@mantine/core/Container";const[e1t,t1t]=Kf("Drawer component was not found in tree"),tAe={xs:He(320),sm:He(380),md:He(440),lg:He(620),xl:He(780)};var n1t=cn((t,{position:e},{size:n})=>({header:{zIndex:1e3},content:{flex:e==="right"||e==="left"?`0 0 ${Tt({size:n,sizes:tAe})}`:"0 0 100%",maxWidth:"100%",maxHeight:"100%",height:e==="right"||e==="left"?"100%":Tt({size:n,sizes:tAe}),borderRadius:0,overflowY:"auto"},inner:{display:"flex",justifyContent:e==="right"?"flex-end":"flex-start",alignItems:e==="bottom"?"flex-end":"flex-start"}}));const[r1t,yC]=Kf("ModalBase component was not found in tree");var i1t=cn(()=>({close:{marginLeft:"auto",marginRight:0}})),a1t=Object.defineProperty,YP=Object.getOwnPropertySymbols,gRe=Object.prototype.hasOwnProperty,vRe=Object.prototype.propertyIsEnumerable,nAe=(t,e,n)=>e in t?a1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,o1t=(t,e)=>{for(var n in e||(e={}))gRe.call(e,n)&&nAe(t,n,e[n]);if(YP)for(var n of YP(e))vRe.call(e,n)&&nAe(t,n,e[n]);return t},s1t=(t,e)=>{var n={};for(var r in t)gRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&YP)for(var r of YP(t))e.indexOf(r)<0&&vRe.call(t,r)&&(n[r]=t[r]);return n};const l1t={size:"sm"},c1t=w.forwardRef((t,e)=>{const n=yC(),r=Qt(`${n.__staticSelector}CloseButton`,l1t,t),{className:i}=r,a=s1t(r,["className"]),{classes:o,cx:s}=i1t(null,n.stylesApi);return L.createElement(rD,o1t({className:s(o.close,i),ref:e,onClick:n.onClose},a))});var u1t=cn(()=>({overlay:{}})),d1t=Object.defineProperty,f1t=Object.defineProperties,h1t=Object.getOwnPropertyDescriptors,rAe=Object.getOwnPropertySymbols,m1t=Object.prototype.hasOwnProperty,p1t=Object.prototype.propertyIsEnumerable,iAe=(t,e,n)=>e in t?d1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A1t=(t,e)=>{for(var n in e||(e={}))m1t.call(e,n)&&iAe(t,n,e[n]);if(rAe)for(var n of rAe(e))p1t.call(e,n)&&iAe(t,n,e[n]);return t},g1t=(t,e)=>f1t(t,h1t(e)),v1t=cn((t,{color:e,opacity:n,blur:r,radius:i,gradient:a,fixed:o,zIndex:s})=>({root:g1t(A1t({},t.fn.cover(0)),{position:o?"fixed":"absolute",backgroundColor:a?void 0:t.fn.rgba(e,n),backgroundImage:a,backdropFilter:r?`blur(${He(r)})`:void 0,borderRadius:t.fn.radius(i),zIndex:s,"&[data-center]":{display:"flex",alignItems:"center",justifyContent:"center"}})})),y1t=Object.defineProperty,XP=Object.getOwnPropertySymbols,yRe=Object.prototype.hasOwnProperty,bRe=Object.prototype.propertyIsEnumerable,aAe=(t,e,n)=>e in t?y1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b1t=(t,e)=>{for(var n in e||(e={}))yRe.call(e,n)&&aAe(t,n,e[n]);if(XP)for(var n of XP(e))bRe.call(e,n)&&aAe(t,n,e[n]);return t},x1t=(t,e)=>{var n={};for(var r in t)yRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&XP)for(var r of XP(t))e.indexOf(r)<0&&bRe.call(t,r)&&(n[r]=t[r]);return n};const w1t={opacity:.6,color:"#000",zIndex:Qp("modal"),radius:0},xRe=w.forwardRef((t,e)=>{const n=Qt("Overlay",w1t,t),{variant:r,opacity:i,color:a,blur:o,gradient:s,zIndex:l,radius:c,children:u,className:f,classNames:h,styles:m,unstyled:A,center:p,fixed:v}=n,y=x1t(n,["variant","opacity","color","blur","gradient","zIndex","radius","children","className","classNames","styles","unstyled","center","fixed"]),{classes:x,cx:k}=v1t({color:a,opacity:i,blur:o,radius:c,gradient:s,fixed:v,zIndex:l},{name:"Overlay",classNames:h,styles:m,unstyled:A,variant:r});return L.createElement(En,b1t({ref:e,className:k(x.root,f),"data-center":p||void 0},y),u)});xRe.displayName="@mantine/core/Overlay";const lm=xRe;var k1t=Object.defineProperty,S1t=Object.defineProperties,C1t=Object.getOwnPropertyDescriptors,ZP=Object.getOwnPropertySymbols,wRe=Object.prototype.hasOwnProperty,kRe=Object.prototype.propertyIsEnumerable,oAe=(t,e,n)=>e in t?k1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U_=(t,e)=>{for(var n in e||(e={}))wRe.call(e,n)&&oAe(t,n,e[n]);if(ZP)for(var n of ZP(e))kRe.call(e,n)&&oAe(t,n,e[n]);return t},_1t=(t,e)=>S1t(t,C1t(e)),N1t=(t,e)=>{var n={};for(var r in t)wRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ZP)for(var r of ZP(t))e.indexOf(r)<0&&kRe.call(t,r)&&(n[r]=t[r]);return n};const E1t={},F1t=w.forwardRef((t,e)=>{const n=yC(),r=Qt(`${n.__staticSelector}Overlay`,E1t,t),{onClick:i,transitionProps:a,style:o,className:s}=r,l=N1t(r,["onClick","transitionProps","style","className"]),{classes:c,cx:u}=u1t(null,n.stylesApi),f=h=>{i?.(h),n.closeOnClickOutside&&n.onClose()};return L.createElement(vC,_1t(U_(U_({mounted:n.opened},n.transitionProps),a),{transition:"fade"}),h=>L.createElement(lm,U_({ref:e,onClick:f,fixed:!0,style:U_(U_({},o),h),className:u(c.overlay,s),zIndex:n.zIndex},l)))});var D1t=cn((t,{zIndex:e})=>({inner:{position:"fixed",width:"100%",top:0,bottom:0,maxHeight:"100%",zIndex:e,pointerEvents:"none"},content:{pointerEvents:"all"}})),T1t=Object.defineProperty,JP=Object.getOwnPropertySymbols,SRe=Object.prototype.hasOwnProperty,CRe=Object.prototype.propertyIsEnumerable,sAe=(t,e,n)=>e in t?T1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,z_=(t,e)=>{for(var n in e||(e={}))SRe.call(e,n)&&sAe(t,n,e[n]);if(JP)for(var n of JP(e))CRe.call(e,n)&&sAe(t,n,e[n]);return t},O1t=(t,e)=>{var n={};for(var r in t)SRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&JP)for(var r of JP(t))e.indexOf(r)<0&&CRe.call(t,r)&&(n[r]=t[r]);return n};const B1t={},j1t=w.forwardRef((t,e)=>{const n=yC(),r=Qt(`${n.__staticSelector}Content`,B1t,t),{className:i,transitionProps:a,style:o,onKeyDown:s}=r,l=O1t(r,["className","transitionProps","style","onKeyDown"]),{classes:c,cx:u}=D1t({zIndex:n.zIndex},n.stylesApi),f=h=>{var m;((m=h.target)==null?void 0:m.getAttribute("data-mantine-stop-propagation"))!=="true"&&h.key==="Escape"&&n.closeOnEscape&&n.onClose(),s?.(h)};return L.createElement(vC,z_(z_({mounted:n.opened,transition:"pop"},n.transitionProps),a),h=>L.createElement("div",{className:u(c.inner)},L.createElement(dne,{active:n.opened&&n.trapFocus},L.createElement(Fg,z_({component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":n.bodyMounted?n.getBodyId():void 0,"aria-labelledby":n.titleMounted?n.getTitleId():void 0,onKeyDown:f,ref:e,className:u(c.content,i),style:z_(z_({},o),h),shadow:n.shadow},l),l.children))))});var I1t=cn((t,{padding:e})=>{const n=Tt({size:e,sizes:t.spacing});return{header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:n,paddingRight:`calc(${n} - ${He(5)})`,position:"sticky",top:0,backgroundColor:t.colorScheme==="dark"?t.colors.dark[7]:t.white,zIndex:1e3}}}),P1t=Object.defineProperty,e4=Object.getOwnPropertySymbols,_Re=Object.prototype.hasOwnProperty,NRe=Object.prototype.propertyIsEnumerable,lAe=(t,e,n)=>e in t?P1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M1t=(t,e)=>{for(var n in e||(e={}))_Re.call(e,n)&&lAe(t,n,e[n]);if(e4)for(var n of e4(e))NRe.call(e,n)&&lAe(t,n,e[n]);return t},R1t=(t,e)=>{var n={};for(var r in t)_Re.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&e4)for(var r of e4(t))e.indexOf(r)<0&&NRe.call(t,r)&&(n[r]=t[r]);return n};const $1t={},L1t=w.forwardRef((t,e)=>{const n=yC(),r=Qt(`${n.__staticSelector}Header`,$1t,t),{className:i}=r,a=R1t(r,["className"]),{classes:o,cx:s}=I1t({padding:n.padding},n.stylesApi);return L.createElement(En,M1t({ref:e,className:s(o.header,i)},a))});var U1t=cn(t=>({title:{lineHeight:1,padding:0,margin:0,fontWeight:400,fontSize:t.fontSizes.md}})),z1t=Object.defineProperty,t4=Object.getOwnPropertySymbols,ERe=Object.prototype.hasOwnProperty,FRe=Object.prototype.propertyIsEnumerable,cAe=(t,e,n)=>e in t?z1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H1t=(t,e)=>{for(var n in e||(e={}))ERe.call(e,n)&&cAe(t,n,e[n]);if(t4)for(var n of t4(e))FRe.call(e,n)&&cAe(t,n,e[n]);return t},V1t=(t,e)=>{var n={};for(var r in t)ERe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&t4)for(var r of t4(t))e.indexOf(r)<0&&FRe.call(t,r)&&(n[r]=t[r]);return n};const Q1t={},q1t=w.forwardRef((t,e)=>{const n=yC(),r=Qt(`${n.__staticSelector}Title`,Q1t,t),{className:i}=r,a=V1t(r,["className"]),{classes:o,cx:s}=U1t(null,n.stylesApi);return w.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),L.createElement(En,H1t({component:"h2",id:n.getTitleId(),className:s(o.title,i),ref:e},a))});var G1t=cn((t,{padding:e})=>({body:{padding:Tt({size:e,sizes:t.spacing}),"&:not(:only-child)":{paddingTop:0}}})),W1t=Object.defineProperty,n4=Object.getOwnPropertySymbols,DRe=Object.prototype.hasOwnProperty,TRe=Object.prototype.propertyIsEnumerable,uAe=(t,e,n)=>e in t?W1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,K1t=(t,e)=>{for(var n in e||(e={}))DRe.call(e,n)&&uAe(t,n,e[n]);if(n4)for(var n of n4(e))TRe.call(e,n)&&uAe(t,n,e[n]);return t},Y1t=(t,e)=>{var n={};for(var r in t)DRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&n4)for(var r of n4(t))e.indexOf(r)<0&&TRe.call(t,r)&&(n[r]=t[r]);return n};const X1t={},Z1t=w.forwardRef((t,e)=>{const n=yC(),r=Qt(`${n.__staticSelector}Body`,X1t,t),{className:i}=r,a=Y1t(r,["className"]),{classes:o,cx:s}=G1t({padding:n.padding},n.stylesApi);return w.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),L.createElement(En,K1t({id:n.getBodyId(),className:s(o.body,i),ref:e},a))});function J1t({children:t}){return L.createElement(L.Fragment,null,t)}function ewt({opened:t,transitionDuration:e}){const[n,r]=w.useState(t),i=w.useRef(),o=e3()?0:e;return w.useEffect(()=>(t?(r(!0),window.clearTimeout(i.current)):o===0?r(!1):i.current=window.setTimeout(()=>r(!1),o),()=>window.clearTimeout(i.current)),[t,o]),n}var twt=cn(()=>({root:{}})),nwt=Object.defineProperty,rwt=Object.defineProperties,iwt=Object.getOwnPropertyDescriptors,r4=Object.getOwnPropertySymbols,ORe=Object.prototype.hasOwnProperty,BRe=Object.prototype.propertyIsEnumerable,dAe=(t,e,n)=>e in t?nwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Iz=(t,e)=>{for(var n in e||(e={}))ORe.call(e,n)&&dAe(t,n,e[n]);if(r4)for(var n of r4(e))BRe.call(e,n)&&dAe(t,n,e[n]);return t},fAe=(t,e)=>rwt(t,iwt(e)),awt=(t,e)=>{var n={};for(var r in t)ORe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&r4)for(var r of r4(t))e.indexOf(r)<0&&BRe.call(t,r)&&(n[r]=t[r]);return n};const sD={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Qp("modal"),padding:"md",size:"md",shadow:"xl"};function wi(t){const e=Qt("ModalBase",sD,t),{opened:n,onClose:r,children:i,closeOnClickOutside:a,__staticSelector:o,transitionProps:s,withinPortal:l,portalProps:c,keepMounted:u,target:f,zIndex:h,lockScroll:m,trapFocus:A,closeOnEscape:p,returnFocus:v,padding:y,shadow:x,id:k,size:S,variant:C,classNames:N,unstyled:E,styles:D,className:T}=e,I=awt(e,["opened","onClose","children","closeOnClickOutside","__staticSelector","transitionProps","withinPortal","portalProps","keepMounted","target","zIndex","lockScroll","trapFocus","closeOnEscape","returnFocus","padding","shadow","id","size","variant","classNames","unstyled","styles","className"]),{classes:O,cx:B}=twt(null,{name:o,classNames:N,styles:D,unstyled:E,variant:C,size:S}),M=Lx(k),[$,U]=w.useState(!1),[P,Q]=w.useState(!1),G=typeof s?.duration=="number"?s?.duration:200,X=ewt({opened:n,transitionDuration:G});return DY("keydown",he=>{!A&&he.key==="Escape"&&p&&r()}),APe({opened:n,shouldReturnFocus:A&&v}),L.createElement(pC,fAe(Iz({},c),{withinPortal:l,target:f}),L.createElement(r1t,{value:{__staticSelector:o,opened:n,onClose:r,closeOnClickOutside:a,transitionProps:fAe(Iz({},s),{duration:G,keepMounted:u}),zIndex:h,padding:y,id:M,getTitleId:()=>`${M}-title`,getBodyId:()=>`${M}-body`,titleMounted:$,bodyMounted:P,setTitleMounted:U,setBodyMounted:Q,trapFocus:A,closeOnEscape:p,shadow:x,stylesApi:{name:o,size:S,variant:C,classNames:N,styles:D,unstyled:E}}},L.createElement(cC,{enabled:X&&m},L.createElement(En,Iz({className:B(O.root,T)},I),i))))}wi.CloseButton=c1t;wi.Overlay=F1t;wi.Content=j1t;wi.Header=L1t;wi.Title=q1t;wi.Body=Z1t;wi.NativeScrollArea=J1t;var owt=Object.defineProperty,swt=Object.defineProperties,lwt=Object.getOwnPropertyDescriptors,i4=Object.getOwnPropertySymbols,jRe=Object.prototype.hasOwnProperty,IRe=Object.prototype.propertyIsEnumerable,hAe=(t,e,n)=>e in t?owt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wj=(t,e)=>{for(var n in e||(e={}))jRe.call(e,n)&&hAe(t,n,e[n]);if(i4)for(var n of i4(e))IRe.call(e,n)&&hAe(t,n,e[n]);return t},PRe=(t,e)=>swt(t,lwt(e)),cwt=(t,e)=>{var n={};for(var r in t)jRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&i4)for(var r of i4(t))e.indexOf(r)<0&&IRe.call(t,r)&&(n[r]=t[r]);return n};const uwt={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},dwt={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},fwt=PRe(Wj({},sD),{position:"left"});function MRe(t){const e=Qt("DrawerRoot",fwt,t),{classNames:n,variant:r,size:i,scrollAreaComponent:a,position:o,transitionProps:s}=e,l=cwt(e,["classNames","variant","size","scrollAreaComponent","position","transitionProps"]),{classes:c,cx:u,theme:f}=n1t({position:o},{name:"Drawer",variant:r,size:i}),h=(f.dir==="rtl"?dwt:uwt)[o];return L.createElement(e1t,{value:{scrollAreaComponent:a}},L.createElement(wi,Wj({__staticSelector:"Drawer",size:i,variant:r,transitionProps:Wj({transition:h,duration:200},s),classNames:PRe(Wj({},n),{content:u(c.content,n?.content),inner:u(c.inner,n?.inner)})},l)))}var hwt=Object.defineProperty,a4=Object.getOwnPropertySymbols,RRe=Object.prototype.hasOwnProperty,$Re=Object.prototype.propertyIsEnumerable,mAe=(t,e,n)=>e in t?hwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mwt=(t,e)=>{for(var n in e||(e={}))RRe.call(e,n)&&mAe(t,n,e[n]);if(a4)for(var n of a4(e))$Re.call(e,n)&&mAe(t,n,e[n]);return t},pwt=(t,e)=>{var n={};for(var r in t)RRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&a4)for(var r of a4(t))e.indexOf(r)<0&&$Re.call(t,r)&&(n[r]=t[r]);return n};const Awt={shadow:"xl"},LRe=w.forwardRef((t,e)=>{const n=Qt("ModalContent",Awt,t),{children:r,scrollAreaComponent:i}=n,a=pwt(n,["children","scrollAreaComponent"]),o=t1t(),s=i||o.scrollAreaComponent||wi.NativeScrollArea;return L.createElement(wi.Content,mwt({ref:e,radius:0},a),L.createElement(s,{style:{height:"100vh"}},r))});var gwt=Object.defineProperty,vwt=Object.defineProperties,ywt=Object.getOwnPropertyDescriptors,o4=Object.getOwnPropertySymbols,URe=Object.prototype.hasOwnProperty,zRe=Object.prototype.propertyIsEnumerable,pAe=(t,e,n)=>e in t?gwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kj=(t,e)=>{for(var n in e||(e={}))URe.call(e,n)&&pAe(t,n,e[n]);if(o4)for(var n of o4(e))zRe.call(e,n)&&pAe(t,n,e[n]);return t},bwt=(t,e)=>vwt(t,ywt(e)),xwt=(t,e)=>{var n={};for(var r in t)URe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&o4)for(var r of o4(t))e.indexOf(r)<0&&zRe.call(t,r)&&(n[r]=t[r]);return n};const wwt=bwt(Kj({},sD),{withOverlay:!0,withCloseButton:!0});function cm(t){const e=Qt("Drawer",wwt,t),{title:n,withOverlay:r,overlayProps:i,withCloseButton:a,closeButtonProps:o,children:s}=e,l=xwt(e,["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children"]),c=!!n||a;return L.createElement(MRe,Kj({},l),r&&L.createElement(wi.Overlay,Kj({},i)),L.createElement(LRe,null,c&&L.createElement(wi.Header,null,n&&L.createElement(wi.Title,null,n),a&&L.createElement(wi.CloseButton,Kj({},o))),L.createElement(wi.Body,null,s)))}cm.Root=MRe;cm.CloseButton=wi.CloseButton;cm.Overlay=wi.Overlay;cm.Content=LRe;cm.Header=wi.Header;cm.Title=wi.Title;cm.Body=wi.Body;cm.NativeScrollArea=wi.NativeScrollArea;var kwt=Object.defineProperty,s4=Object.getOwnPropertySymbols,HRe=Object.prototype.hasOwnProperty,VRe=Object.prototype.propertyIsEnumerable,AAe=(t,e,n)=>e in t?kwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gAe=(t,e)=>{for(var n in e||(e={}))HRe.call(e,n)&&AAe(t,n,e[n]);if(s4)for(var n of s4(e))VRe.call(e,n)&&AAe(t,n,e[n]);return t},Swt=(t,e)=>{var n={};for(var r in t)HRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&s4)for(var r of s4(t))e.indexOf(r)<0&&VRe.call(t,r)&&(n[r]=t[r]);return n};const Cwt={multiple:!1},QRe=w.forwardRef((t,e)=>{const n=Qt("FileButton",Cwt,t),{onChange:r,children:i,multiple:a,accept:o,name:s,form:l,resetRef:c,disabled:u,capture:f,inputProps:h}=n,m=Swt(n,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture","inputProps"]),A=w.useRef(),p=()=>{!u&&A.current.click()},v=x=>{r(a?Array.from(x.currentTarget.files):x.currentTarget.files[0]||null)};return J$(c,()=>{A.current.value=""}),L.createElement(L.Fragment,null,i(gAe({onClick:p},m)),L.createElement("input",gAe({style:{display:"none"},type:"file",accept:o,multiple:a,onChange:v,ref:qp(e,A),name:s,form:l,capture:f},h)))});QRe.displayName="@mantine/core/FileButton";var _wt=cn(()=>({placeholder:{},input:{cursor:"pointer"}})),Nwt=Object.defineProperty,Ewt=Object.defineProperties,Fwt=Object.getOwnPropertyDescriptors,l4=Object.getOwnPropertySymbols,qRe=Object.prototype.hasOwnProperty,GRe=Object.prototype.propertyIsEnumerable,vAe=(t,e,n)=>e in t?Nwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dw=(t,e)=>{for(var n in e||(e={}))qRe.call(e,n)&&vAe(t,n,e[n]);if(l4)for(var n of l4(e))GRe.call(e,n)&&vAe(t,n,e[n]);return t},l5=(t,e)=>Ewt(t,Fwt(e)),Dwt=(t,e)=>{var n={};for(var r in t)qRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&l4)for(var r of l4(t))e.indexOf(r)<0&&GRe.call(t,r)&&(n[r]=t[r]);return n};const Twt=({value:t})=>L.createElement(Jn,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Array.isArray(t)?t.map(e=>e.name).join(", "):t?.name),Owt={size:"sm",valueComponent:Twt},WRe=w.forwardRef((t,e)=>{const n=f3("FileInput",Owt,t),{inputProps:r,wrapperProps:i,placeholder:a,value:o,defaultValue:s,onChange:l,multiple:c,accept:u,name:f,form:h,classNames:m,styles:A,unstyled:p,valueComponent:v,rightSection:y,clearable:x,clearButtonProps:k,readOnly:S,capture:C,fileInputProps:N}=n,E=Dwt(n,["inputProps","wrapperProps","placeholder","value","defaultValue","onChange","multiple","accept","name","form","classNames","styles","unstyled","valueComponent","rightSection","clearable","clearButtonProps","readOnly","capture","fileInputProps"]),D=w.useRef(),{classes:T,cx:I}=_wt(null,{name:"FileInput",classNames:m,styles:A,unstyled:p}),[O,B]=Kc({value:o,defaultValue:s,onChange:l,finalValue:c?[]:null}),M=Array.isArray(O)?O.length!==0:O!==null,$=y||(x&&M&&!S?L.createElement(rD,l5(dw({},k),{variant:"transparent",onClick:()=>B(c?[]:null),size:r.size,unstyled:p})):null);return w.useEffect(()=>{(Array.isArray(O)&&O.length===0||O===null)&&D.current()},[O]),L.createElement(Wl.Wrapper,l5(dw({},i),{__staticSelector:"FileInput"}),L.createElement(QRe,{onChange:B,multiple:c,accept:u,name:f,form:h,resetRef:D,disabled:S,capture:C,inputProps:N},U=>L.createElement(Wl,l5(dw(dw(dw({multiline:!0},U),r),E),{component:"button",type:"button",ref:e,__staticSelector:"FileInput",rightSection:$,classNames:l5(dw({},m),{input:I(T.input,m?.input)})}),M?L.createElement(v,{value:O}):L.createElement(Wl.Placeholder,{className:T.placeholder},a))))});WRe.displayName="@mantine/core/FileInput";const Bwt=WRe,[jwt,Iwt]=Kf("Grid component was not found in tree");var Pwt=Object.defineProperty,yAe=Object.getOwnPropertySymbols,Mwt=Object.prototype.hasOwnProperty,Rwt=Object.prototype.propertyIsEnumerable,bAe=(t,e,n)=>e in t?Pwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$wt=(t,e)=>{for(var n in e||(e={}))Mwt.call(e,n)&&bAe(t,n,e[n]);if(yAe)for(var n of yAe(e))Rwt.call(e,n)&&bAe(t,n,e[n]);return t};const yne=(t,e)=>t==="content"?"auto":t==="auto"?"0rem":t?`${100/(e/t)}%`:void 0,KRe=(t,e,n)=>n||t==="auto"||t==="content"?"unset":yne(t,e),YRe=(t,e)=>{if(t)return t==="auto"||e?1:0},XRe=(t,e)=>t===0?0:t?`${100/(e/t)}%`:void 0,ZRe=(t,e)=>typeof t<"u"?`calc(${Tt({size:t,sizes:e.spacing})} / 2)`:void 0;function Lwt({sizes:t,offsets:e,orders:n,theme:r,columns:i,gutters:a,grow:o}){return ZIe.reduce((s,l)=>(s[`@media (min-width: ${dC(r.breakpoints[l])})`]={order:n[l],flexBasis:yne(t[l],i),padding:ZRe(a[l],r),flexShrink:0,width:t[l]==="content"?"auto":void 0,maxWidth:KRe(t[l],i,o),marginLeft:XRe(e[l],i),flexGrow:YRe(t[l],o)},s),{})}var Uwt=cn((t,{gutter:e,gutterXs:n,gutterSm:r,gutterMd:i,gutterLg:a,gutterXl:o,grow:s,offset:l,offsetXs:c,offsetSm:u,offsetMd:f,offsetLg:h,offsetXl:m,columns:A,span:p,xs:v,sm:y,md:x,lg:k,xl:S,order:C,orderXs:N,orderSm:E,orderMd:D,orderLg:T,orderXl:I})=>({col:$wt({boxSizing:"border-box",flexGrow:YRe(p,s),order:C,padding:ZRe(e,t),marginLeft:XRe(l,A),flexBasis:yne(p,A),flexShrink:0,width:p==="content"?"auto":void 0,maxWidth:KRe(p,A,s)},Lwt({sizes:{xs:v,sm:y,md:x,lg:k,xl:S},offsets:{xs:c,sm:u,md:f,lg:h,xl:m},orders:{xs:N,sm:E,md:D,lg:T,xl:I},gutters:{xs:n,sm:r,md:i,lg:a,xl:o},theme:t,columns:A,grow:s}))})),zwt=Object.defineProperty,c4=Object.getOwnPropertySymbols,JRe=Object.prototype.hasOwnProperty,e$e=Object.prototype.propertyIsEnumerable,xAe=(t,e,n)=>e in t?zwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hwt=(t,e)=>{for(var n in e||(e={}))JRe.call(e,n)&&xAe(t,n,e[n]);if(c4)for(var n of c4(e))e$e.call(e,n)&&xAe(t,n,e[n]);return t},Vwt=(t,e)=>{var n={};for(var r in t)JRe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&c4)for(var r of c4(t))e.indexOf(r)<0&&e$e.call(t,r)&&(n[r]=t[r]);return n};const Qwt={};function qwt(t){return t==="auto"||t==="content"?!0:typeof t=="number"&&t>0&&t%1===0}const t$e=w.forwardRef((t,e)=>{const n=Qt("GridCol",Qwt,t),{children:r,span:i,offset:a,offsetXs:o,offsetSm:s,offsetMd:l,offsetLg:c,offsetXl:u,xs:f,sm:h,md:m,lg:A,xl:p,order:v,orderXs:y,orderSm:x,orderMd:k,orderLg:S,orderXl:C,className:N,unstyled:E,variant:D}=n,T=Vwt(n,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","order","orderXs","orderSm","orderMd","orderLg","orderXl","className","unstyled","variant"]),I=Iwt(),O=i||I.columns,{classes:B,cx:M}=Uwt({gutter:I.gutter,gutterXs:I.gutterXs,gutterSm:I.gutterSm,gutterMd:I.gutterMd,gutterLg:I.gutterLg,gutterXl:I.gutterXl,offset:a,offsetXs:o,offsetSm:s,offsetMd:l,offsetLg:c,offsetXl:u,xs:f,sm:h,md:m,lg:A,xl:p,order:v,orderXs:y,orderSm:x,orderMd:k,orderLg:S,orderXl:C,grow:I.grow,columns:I.columns,span:O},{unstyled:E,name:"Grid",variant:D});return!qwt(O)||O>I.columns?null:L.createElement(En,Hwt({className:M(B.col,N),ref:e},T),r)});t$e.displayName="@mantine/core/Col";var Gwt=Object.defineProperty,wAe=Object.getOwnPropertySymbols,Wwt=Object.prototype.hasOwnProperty,Kwt=Object.prototype.propertyIsEnumerable,kAe=(t,e,n)=>e in t?Gwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ywt=(t,e)=>{for(var n in e||(e={}))Wwt.call(e,n)&&kAe(t,n,e[n]);if(wAe)for(var n of wAe(e))Kwt.call(e,n)&&kAe(t,n,e[n]);return t};function Xwt(t,e){return ZIe.reduce((n,r)=>(typeof t[r]<"u"&&(n[`@media (min-width: ${e.breakpoints[r]})`]={margin:`calc(-${Tt({size:t[r],sizes:e.spacing})} / 2)`}),n),{})}var Zwt=cn((t,{justify:e,align:n,gutter:r,gutterXs:i,gutterSm:a,gutterMd:o,gutterLg:s,gutterXl:l})=>({root:Ywt({margin:`calc(-${Tt({size:r,sizes:t.spacing})} / 2)`,display:"flex",flexWrap:"wrap",justifyContent:e,alignItems:n},Xwt({xs:i,sm:a,md:o,lg:s,xl:l},t))})),Jwt=Object.defineProperty,u4=Object.getOwnPropertySymbols,n$e=Object.prototype.hasOwnProperty,r$e=Object.prototype.propertyIsEnumerable,SAe=(t,e,n)=>e in t?Jwt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ekt=(t,e)=>{for(var n in e||(e={}))n$e.call(e,n)&&SAe(t,n,e[n]);if(u4)for(var n of u4(e))r$e.call(e,n)&&SAe(t,n,e[n]);return t},tkt=(t,e)=>{var n={};for(var r in t)n$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&u4)for(var r of u4(t))e.indexOf(r)<0&&r$e.call(t,r)&&(n[r]=t[r]);return n};const nkt={gutter:"md",justify:"flex-start",align:"stretch",columns:12},us=w.forwardRef((t,e)=>{const n=Qt("Grid",nkt,t),{gutter:r,gutterXs:i,gutterSm:a,gutterMd:o,gutterLg:s,gutterXl:l,children:c,grow:u,justify:f,align:h,columns:m,className:A,unstyled:p,variant:v}=n,y=tkt(n,["gutter","gutterXs","gutterSm","gutterMd","gutterLg","gutterXl","children","grow","justify","align","columns","className","unstyled","variant"]),{classes:x,cx:k}=Zwt({gutter:r,justify:f,align:h,gutterXs:i,gutterSm:a,gutterMd:o,gutterLg:s,gutterXl:l},{unstyled:p,name:"Grid",variant:v});return L.createElement(jwt,{value:{gutter:r,gutterXs:i,gutterSm:a,gutterMd:o,gutterLg:s,gutterXl:l,grow:u,columns:m}},L.createElement(En,ekt({className:k(x.root,A),ref:e},y),c))});us.Col=t$e;us.displayName="@mantine/core/Grid";function rkt(t){return w.Children.toArray(t).filter(Boolean)}const ikt={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var akt=cn((t,{spacing:e,position:n,noWrap:r,grow:i,align:a,count:o})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:a||"center",flexWrap:r?"nowrap":"wrap",justifyContent:ikt[n],gap:Tt({size:e,sizes:t.spacing}),"& > *":{boxSizing:"border-box",maxWidth:i?`calc(${100/o}% - (${He(Tt({size:e,sizes:t.spacing}))} - ${Tt({size:e,sizes:t.spacing})} / ${o}))`:void 0,flexGrow:i?1:0}}})),okt=Object.defineProperty,d4=Object.getOwnPropertySymbols,i$e=Object.prototype.hasOwnProperty,a$e=Object.prototype.propertyIsEnumerable,CAe=(t,e,n)=>e in t?okt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,skt=(t,e)=>{for(var n in e||(e={}))i$e.call(e,n)&&CAe(t,n,e[n]);if(d4)for(var n of d4(e))a$e.call(e,n)&&CAe(t,n,e[n]);return t},lkt=(t,e)=>{var n={};for(var r in t)i$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&d4)for(var r of d4(t))e.indexOf(r)<0&&a$e.call(t,r)&&(n[r]=t[r]);return n};const ckt={position:"left",spacing:"md"},sS=w.forwardRef((t,e)=>{const n=Qt("Group",ckt,t),{className:r,position:i,align:a,children:o,noWrap:s,grow:l,spacing:c,unstyled:u,variant:f}=n,h=lkt(n,["className","position","align","children","noWrap","grow","spacing","unstyled","variant"]),m=rkt(o),{classes:A,cx:p}=akt({align:a,grow:l,noWrap:s,spacing:c,position:i,count:m.length},{unstyled:u,name:"Group",variant:f});return L.createElement(En,skt({className:p(A.root,r),ref:e},h),m)});sS.displayName="@mantine/core/Group";var ukt=cn((t,{color:e})=>({root:{backgroundColor:t.fn.themeColor(e,t.colorScheme==="dark"?5:2),color:t.colorScheme==="dark"?t.colors.dark[9]:"inherit"}})),dkt=Object.defineProperty,f4=Object.getOwnPropertySymbols,o$e=Object.prototype.hasOwnProperty,s$e=Object.prototype.propertyIsEnumerable,_Ae=(t,e,n)=>e in t?dkt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fkt=(t,e)=>{for(var n in e||(e={}))o$e.call(e,n)&&_Ae(t,n,e[n]);if(f4)for(var n of f4(e))s$e.call(e,n)&&_Ae(t,n,e[n]);return t},hkt=(t,e)=>{var n={};for(var r in t)o$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&f4)for(var r of f4(t))e.indexOf(r)<0&&s$e.call(t,r)&&(n[r]=t[r]);return n};const mkt={color:"yellow"},wy=w.forwardRef((t,e)=>{const n=Qt("Mark",mkt,t),{color:r,className:i,unstyled:a,variant:o}=n,s=hkt(n,["color","className","unstyled","variant"]),{classes:l,cx:c}=ukt({color:r},{unstyled:a,name:"Mark",variant:o});return L.createElement(En,fkt({component:"mark",ref:e,className:c(l.root,i)},s))});wy.displayName="@mantine/core/Mark";function pkt({open:t,close:e,openDelay:n,closeDelay:r}){const i=w.useRef(-1),a=w.useRef(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)},s=()=>{o(),n===0?t():i.current=window.setTimeout(t,n)},l=()=>{o(),r===0?e():a.current=window.setTimeout(e,r)};return w.useEffect(()=>o,[]),{openDropdown:s,closeDropdown:l}}var Akt=Object.defineProperty,h4=Object.getOwnPropertySymbols,l$e=Object.prototype.hasOwnProperty,c$e=Object.prototype.propertyIsEnumerable,NAe=(t,e,n)=>e in t?Akt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,EAe=(t,e)=>{for(var n in e||(e={}))l$e.call(e,n)&&NAe(t,n,e[n]);if(h4)for(var n of h4(e))c$e.call(e,n)&&NAe(t,n,e[n]);return t},gkt=(t,e)=>{var n={};for(var r in t)l$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&h4)for(var r of h4(t))e.indexOf(r)<0&&c$e.call(t,r)&&(n[r]=t[r]);return n};function vkt(t){const e=t,{width:n,height:r,style:i}=e,a=gkt(e,["width","height","style"]);return L.createElement("svg",EAe({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:EAe({width:n,height:r},i)},a),L.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var ykt=Object.defineProperty,bkt=Object.defineProperties,xkt=Object.getOwnPropertyDescriptors,FAe=Object.getOwnPropertySymbols,wkt=Object.prototype.hasOwnProperty,kkt=Object.prototype.propertyIsEnumerable,DAe=(t,e,n)=>e in t?ykt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,TAe=(t,e)=>{for(var n in e||(e={}))wkt.call(e,n)&&DAe(t,n,e[n]);if(FAe)for(var n of FAe(e))kkt.call(e,n)&&DAe(t,n,e[n]);return t},OAe=(t,e)=>bkt(t,xkt(e)),Skt=cn((t,{radius:e})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:OAe(TAe({},t.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:t.fn.radius(e)}),caption:{color:t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[7],marginTop:t.spacing.xs},placeholder:OAe(TAe({},t.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6],backgroundColor:t.colorScheme==="dark"?t.colors.dark[8]:t.colors.gray[0],borderRadius:t.fn.radius(e)})})),Ckt=Object.defineProperty,_kt=Object.defineProperties,Nkt=Object.getOwnPropertyDescriptors,m4=Object.getOwnPropertySymbols,u$e=Object.prototype.hasOwnProperty,d$e=Object.prototype.propertyIsEnumerable,BAe=(t,e,n)=>e in t?Ckt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H_=(t,e)=>{for(var n in e||(e={}))u$e.call(e,n)&&BAe(t,n,e[n]);if(m4)for(var n of m4(e))d$e.call(e,n)&&BAe(t,n,e[n]);return t},Ekt=(t,e)=>_kt(t,Nkt(e)),Fkt=(t,e)=>{var n={};for(var r in t)u$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&m4)for(var r of m4(t))e.indexOf(r)<0&&d$e.call(t,r)&&(n[r]=t[r]);return n};const Dkt={fit:"cover",width:"100%",height:"auto",radius:0},bC=w.forwardRef((t,e)=>{const n=Qt("Image",Dkt,t),{className:r,alt:i,src:a,fit:o,width:s,height:l,radius:c,imageProps:u,withPlaceholder:f,placeholder:h,imageRef:m,classNames:A,styles:p,caption:v,unstyled:y,style:x,variant:k}=n,S=Fkt(n,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style","variant"]),{classes:C,cx:N}=Skt({radius:c},{classNames:A,styles:p,unstyled:y,name:"Image",variant:k}),[E,D]=w.useState(!a),T=f&&E;return Gl(()=>{D(!a)},[a]),L.createElement(En,H_({className:N(C.root,r),style:H_({width:He(s)},x),ref:e},S),L.createElement("figure",{className:C.figure},L.createElement("div",{className:C.imageWrapper},L.createElement("img",Ekt(H_({src:a,alt:i,ref:m},u),{className:N(C.image,u?.className),onError:I=>{D(!0),typeof u?.onError=="function"&&u.onError(I)},style:H_(H_({objectFit:o,width:He(s),height:He(l)},T&&{overflow:"hidden"}),u?.style)})),T&&L.createElement("div",{className:C.placeholder,title:i},h||L.createElement("div",null,L.createElement(vkt,{width:He(40),height:He(40)})))),!!v&&L.createElement(Jn,{component:"figcaption",size:"sm",align:"center",className:C.caption},v)))});bC.displayName="@mantine/core/Image";var Tkt=Object.defineProperty,Okt=Object.defineProperties,Bkt=Object.getOwnPropertyDescriptors,jAe=Object.getOwnPropertySymbols,jkt=Object.prototype.hasOwnProperty,Ikt=Object.prototype.propertyIsEnumerable,IAe=(t,e,n)=>e in t?Tkt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,PAe=(t,e)=>{for(var n in e||(e={}))jkt.call(e,n)&&IAe(t,n,e[n]);if(jAe)for(var n of jAe(e))Ikt.call(e,n)&&IAe(t,n,e[n]);return t},MAe=(t,e)=>Okt(t,Bkt(e));const Pkt=t=>$x({from:{boxShadow:`0 0 ${He(.5)} 0 ${t}`,opacity:.6},to:{boxShadow:`0 0 ${He(.5)} ${He(4.4)} ${t}`,opacity:0}});function RAe(t,e=0){const n={},[r,i]=t.split("-");let a="",o="";return r==="top"&&(n.top=e,o="-50%"),r==="middle"&&(n.top="50%",o="-50%"),r==="bottom"&&(n.bottom=e,o="50%"),i==="start"&&(n.left=e,a="-50%"),i==="center"&&(n.left="50%",a="-50%"),i==="end"&&(n.right=e,a="50%"),n.transform=`translate(${a}, ${o})`,n}var Mkt=cn((t,{radius:e,color:n,position:r,offset:i,inline:a,withBorder:o,withLabel:s,zIndex:l},{size:c})=>{const{background:u}=t.fn.variant({variant:"filled",primaryFallback:!1,color:n||t.primaryColor}),f=He(c);return{root:{position:"relative",display:a?"inline-block":"block"},indicator:MAe(PAe({},RAe(r,i)),{zIndex:l,position:"absolute",[s?"minWidth":"width"]:f,height:f,display:"flex",justifyContent:"center",alignItems:"center",fontSize:t.fontSizes.xs,paddingLeft:s?`calc(${t.spacing.xs} / 2)`:0,paddingRight:s?`calc(${t.spacing.xs} / 2)`:0,borderRadius:t.fn.radius(e),backgroundColor:t.fn.variant({variant:"filled",primaryFallback:!1,color:n||t.primaryColor}).background,border:o?`${He(2)} solid ${t.colorScheme==="dark"?t.colors.dark[7]:t.white}`:void 0,color:t.white,whiteSpace:"nowrap"}),processing:{animation:`${Pkt(u)} 1000ms linear infinite`},common:MAe(PAe({},RAe(r,i)),{position:"absolute",[s?"minWidth":"width"]:f,height:f,borderRadius:t.fn.radius(e)})}}),Rkt=Object.defineProperty,p4=Object.getOwnPropertySymbols,f$e=Object.prototype.hasOwnProperty,h$e=Object.prototype.propertyIsEnumerable,$Ae=(t,e,n)=>e in t?Rkt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$kt=(t,e)=>{for(var n in e||(e={}))f$e.call(e,n)&&$Ae(t,n,e[n]);if(p4)for(var n of p4(e))h$e.call(e,n)&&$Ae(t,n,e[n]);return t},Lkt=(t,e)=>{var n={};for(var r in t)f$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&p4)for(var r of p4(t))e.indexOf(r)<0&&h$e.call(t,r)&&(n[r]=t[r]);return n};const Ukt={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1,size:10,radius:1e3,zIndex:Qp("app")},Fa=w.forwardRef((t,e)=>{const n=Qt("Indicator",Ukt,t),{children:r,position:i,offset:a,size:o,radius:s,inline:l,withBorder:c,className:u,color:f,styles:h,label:m,classNames:A,disabled:p,zIndex:v,unstyled:y,processing:x,variant:k}=n,S=Lkt(n,["children","position","offset","size","radius","inline","withBorder","className","color","styles","label","classNames","disabled","zIndex","unstyled","processing","variant"]),{classes:C,cx:N}=Mkt({position:i,offset:a,radius:s,inline:l,color:f,withBorder:c,zIndex:v,withLabel:!!m},{name:"Indicator",classNames:A,styles:h,unstyled:y,variant:k,size:o});return L.createElement(En,$kt({ref:e,className:N(C.root,u)},S),!p&&L.createElement(L.Fragment,null,L.createElement("div",{className:N(C.indicator,C.common)},m),x&&L.createElement("div",{className:N(C.processing,C.common)})),r)});Fa.displayName="@mantine/core/Indicator";function uo(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const[zkt,Hkt]=Kf("List component was not found in tree");var Vkt=cn((t,{spacing:e,center:n})=>({itemWrapper:{ref:Lb("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:n?1:t.lineHeight,"&:not(:first-of-type)":{marginTop:Tt({size:e,sizes:t.spacing})},"&[data-with-icon]":{listStyle:"none",[`& .${Lb("itemWrapper")}`]:{display:"inline-flex",alignItems:n?"center":"flex-start",flexDirection:"row"}}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:t.spacing.sm}})),Qkt=Object.defineProperty,A4=Object.getOwnPropertySymbols,m$e=Object.prototype.hasOwnProperty,p$e=Object.prototype.propertyIsEnumerable,LAe=(t,e,n)=>e in t?Qkt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qkt=(t,e)=>{for(var n in e||(e={}))m$e.call(e,n)&&LAe(t,n,e[n]);if(A4)for(var n of A4(e))p$e.call(e,n)&&LAe(t,n,e[n]);return t},Gkt=(t,e)=>{var n={};for(var r in t)m$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&A4)for(var r of A4(t))e.indexOf(r)<0&&p$e.call(t,r)&&(n[r]=t[r]);return n};const Wkt={},A$e=w.forwardRef((t,e)=>{const n=Qt("ListItem",Wkt,t),{className:r,children:i,icon:a}=n,o=Gkt(n,["className","children","icon"]),{icon:s,spacing:l,center:c,listStyleType:u,size:f,withPadding:h,classNames:m,styles:A,unstyled:p,variant:v}=Hkt(),y=a||s,{classes:x,cx:k}=Vkt({withPadding:h,listStyleType:u,center:c,spacing:l},{classNames:m,styles:A,unstyled:p,name:"List",variant:v,size:f});return L.createElement(En,qkt({component:"li",className:k(x.item,r),"data-with-icon":!!y||void 0,ref:e},o),L.createElement("div",{className:x.itemWrapper},y&&L.createElement("span",{className:x.itemIcon},y),L.createElement("span",null,i)))});A$e.displayName="@mantine/core/ListItem";var Kkt=Object.defineProperty,Ykt=Object.defineProperties,Xkt=Object.getOwnPropertyDescriptors,UAe=Object.getOwnPropertySymbols,Zkt=Object.prototype.hasOwnProperty,Jkt=Object.prototype.propertyIsEnumerable,zAe=(t,e,n)=>e in t?Kkt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,eSt=(t,e)=>{for(var n in e||(e={}))Zkt.call(e,n)&&zAe(t,n,e[n]);if(UAe)for(var n of UAe(e))Jkt.call(e,n)&&zAe(t,n,e[n]);return t},tSt=(t,e)=>Ykt(t,Xkt(e)),nSt=cn((t,{withPadding:e,listStyleType:n},{size:r})=>({root:tSt(eSt({},t.fn.fontStyles()),{listStyleType:n,color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,fontSize:Tt({size:r,sizes:t.fontSizes}),lineHeight:t.lineHeight,margin:0,paddingLeft:e?t.spacing.xl:0,listStylePosition:"inside"})})),rSt=Object.defineProperty,g4=Object.getOwnPropertySymbols,g$e=Object.prototype.hasOwnProperty,v$e=Object.prototype.propertyIsEnumerable,HAe=(t,e,n)=>e in t?rSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iSt=(t,e)=>{for(var n in e||(e={}))g$e.call(e,n)&&HAe(t,n,e[n]);if(g4)for(var n of g4(e))v$e.call(e,n)&&HAe(t,n,e[n]);return t},aSt=(t,e)=>{var n={};for(var r in t)g$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&g4)for(var r of g4(t))e.indexOf(r)<0&&v$e.call(t,r)&&(n[r]=t[r]);return n};const oSt={type:"unordered",size:"md",spacing:0},jp=w.forwardRef((t,e)=>{const n=Qt("List",oSt,t),{children:r,type:i,size:a,listStyleType:o,withPadding:s,center:l,spacing:c,icon:u,className:f,styles:h,classNames:m,unstyled:A,variant:p}=n,v=aSt(n,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled","variant"]),{classes:y,cx:x}=nSt({withPadding:s,listStyleType:o,center:l,spacing:c},{classNames:m,styles:h,name:"List",unstyled:A,size:a,variant:p});return L.createElement(zkt,{value:{spacing:c,center:l,icon:u,listStyleType:o,size:a,withPadding:s,classNames:m,styles:h,unstyled:A,variant:p}},L.createElement(En,iSt({component:i==="unordered"?"ul":"ol",className:x(y.root,f),ref:e},v),r))});jp.Item=A$e;jp.displayName="@mantine/core/List";var sSt=Object.defineProperty,lSt=Object.defineProperties,cSt=Object.getOwnPropertyDescriptors,VAe=Object.getOwnPropertySymbols,uSt=Object.prototype.hasOwnProperty,dSt=Object.prototype.propertyIsEnumerable,QAe=(t,e,n)=>e in t?sSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fSt=(t,e)=>{for(var n in e||(e={}))uSt.call(e,n)&&QAe(t,n,e[n]);if(VAe)for(var n of VAe(e))dSt.call(e,n)&&QAe(t,n,e[n]);return t},hSt=(t,e)=>lSt(t,cSt(e)),mSt=cn(t=>({root:hSt(fSt({},t.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})})),pSt=Object.defineProperty,ASt=Object.defineProperties,gSt=Object.getOwnPropertyDescriptors,v4=Object.getOwnPropertySymbols,y$e=Object.prototype.hasOwnProperty,b$e=Object.prototype.propertyIsEnumerable,qAe=(t,e,n)=>e in t?pSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,c5=(t,e)=>{for(var n in e||(e={}))y$e.call(e,n)&&qAe(t,n,e[n]);if(v4)for(var n of v4(e))b$e.call(e,n)&&qAe(t,n,e[n]);return t},vSt=(t,e)=>ASt(t,gSt(e)),ySt=(t,e)=>{var n={};for(var r in t)y$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&v4)for(var r of v4(t))e.indexOf(r)<0&&b$e.call(t,r)&&(n[r]=t[r]);return n};const bSt={overlayOpacity:.75,transitionDuration:0,radius:0,zIndex:Qp("overlay")},x$e=w.forwardRef((t,e)=>{const n=Qt("LoadingOverlay",bSt,t),{className:r,visible:i,loaderProps:a,overlayOpacity:o,overlayColor:s,transitionDuration:l,exitTransitionDuration:c,zIndex:u,style:f,loader:h,radius:m,overlayBlur:A,unstyled:p,variant:v,keepMounted:y}=n,x=ySt(n,["className","visible","loaderProps","overlayOpacity","overlayColor","transitionDuration","exitTransitionDuration","zIndex","style","loader","radius","overlayBlur","unstyled","variant","keepMounted"]),{classes:k,cx:S,theme:C}=mSt(null,{name:"LoadingOverlay",unstyled:p,variant:v}),N=`calc(${u} + 1)`;return L.createElement(vC,{keepMounted:y,duration:l,exitDuration:c,mounted:i,transition:"fade"},E=>L.createElement(En,c5({className:S(k.root,r),style:vSt(c5(c5({},E),f),{zIndex:u}),ref:e},x),h?L.createElement("div",{style:{zIndex:N}},h):L.createElement(fo,c5({style:{zIndex:N}},a)),L.createElement(lm,{opacity:o,zIndex:u,radius:m,blur:A,unstyled:p,color:s||(C.colorScheme==="dark"?C.colors.dark[5]:C.white)})))});x$e.displayName="@mantine/core/LoadingOverlay";const w$e={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[xSt,lD]=Kf(w$e.context);var wSt=cn(t=>({divider:{marginTop:He(4),marginBottom:He(4),borderTop:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[2]}`}})),kSt=Object.defineProperty,y4=Object.getOwnPropertySymbols,k$e=Object.prototype.hasOwnProperty,S$e=Object.prototype.propertyIsEnumerable,GAe=(t,e,n)=>e in t?kSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,SSt=(t,e)=>{for(var n in e||(e={}))k$e.call(e,n)&&GAe(t,n,e[n]);if(y4)for(var n of y4(e))S$e.call(e,n)&&GAe(t,n,e[n]);return t},CSt=(t,e)=>{var n={};for(var r in t)k$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&y4)for(var r of y4(t))e.indexOf(r)<0&&S$e.call(t,r)&&(n[r]=t[r]);return n};const _St={},C$e=w.forwardRef((t,e)=>{const n=Qt("MenuDivider",_St,t),{children:r,className:i}=n,a=CSt(n,["children","className"]),{classNames:o,styles:s,unstyled:l,variant:c}=lD(),{classes:u,cx:f}=wSt(null,{name:"Menu",classNames:o,styles:s,unstyled:l,variant:c});return L.createElement(En,SSt({className:f(u.divider,i),ref:e},a))});C$e.displayName="@mantine/core/MenuDivider";var NSt=Object.defineProperty,b4=Object.getOwnPropertySymbols,_$e=Object.prototype.hasOwnProperty,N$e=Object.prototype.propertyIsEnumerable,WAe=(t,e,n)=>e in t?NSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ESt=(t,e)=>{for(var n in e||(e={}))_$e.call(e,n)&&WAe(t,n,e[n]);if(b4)for(var n of b4(e))N$e.call(e,n)&&WAe(t,n,e[n]);return t},FSt=(t,e)=>{var n={};for(var r in t)_$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&b4)for(var r of b4(t))e.indexOf(r)<0&&N$e.call(t,r)&&(n[r]=t[r]);return n};const DSt={};function E$e(t){const e=Qt("MenuDropdown",DSt,t),{children:n,onMouseEnter:r,onMouseLeave:i}=e,a=FSt(e,["children","onMouseEnter","onMouseLeave"]),o=w.useRef(),s=lD(),l=f=>{var h;(f.key==="ArrowUp"||f.key==="ArrowDown")&&(f.preventDefault(),(h=o.current.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||h.focus())},c=Ed(r,()=>s.trigger==="hover"&&s.openDropdown()),u=Ed(i,()=>s.trigger==="hover"&&s.closeDropdown());return L.createElement(Gc.Dropdown,ESt({onMouseEnter:c,onMouseLeave:u,role:"menu","aria-orientation":"vertical"},a),L.createElement("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:l,ref:o,style:{outline:0}},n))}E$e.displayName="@mantine/core/MenuDropdown";var TSt=Object.defineProperty,OSt=Object.defineProperties,BSt=Object.getOwnPropertyDescriptors,KAe=Object.getOwnPropertySymbols,jSt=Object.prototype.hasOwnProperty,ISt=Object.prototype.propertyIsEnumerable,YAe=(t,e,n)=>e in t?TSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,PSt=(t,e)=>{for(var n in e||(e={}))jSt.call(e,n)&&YAe(t,n,e[n]);if(KAe)for(var n of KAe(e))ISt.call(e,n)&&YAe(t,n,e[n]);return t},MSt=(t,e)=>OSt(t,BSt(e)),RSt=cn((t,{color:e,radius:n})=>({item:MSt(PSt({},t.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:t.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${t.spacing.xs} ${t.spacing.sm}`,cursor:"pointer",borderRadius:t.fn.radius(n),color:e?t.fn.variant({variant:"filled",primaryFallback:!1,color:e}).background:t.colorScheme==="dark"?t.colors.dark[0]:t.black,display:"flex",alignItems:"center","&:disabled":{color:t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:e?t.fn.variant({variant:"light",color:e}).background:t.colorScheme==="dark"?t.fn.rgba(t.colors.dark[3],.35):t.colors.gray[1]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:t.spacing.xs},itemRightSection:{}})),$St=Object.defineProperty,LSt=Object.defineProperties,USt=Object.getOwnPropertyDescriptors,x4=Object.getOwnPropertySymbols,F$e=Object.prototype.hasOwnProperty,D$e=Object.prototype.propertyIsEnumerable,XAe=(t,e,n)=>e in t?$St(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zSt=(t,e)=>{for(var n in e||(e={}))F$e.call(e,n)&&XAe(t,n,e[n]);if(x4)for(var n of x4(e))D$e.call(e,n)&&XAe(t,n,e[n]);return t},HSt=(t,e)=>LSt(t,USt(e)),VSt=(t,e)=>{var n={};for(var r in t)F$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&x4)for(var r of x4(t))e.indexOf(r)<0&&D$e.call(t,r)&&(n[r]=t[r]);return n};const QSt={},T$e=w.forwardRef((t,e)=>{const n=Qt("MenuItem",QSt,t),{children:r,className:i,color:a,closeMenuOnClick:o,icon:s,rightSection:l}=n,c=VSt(n,["children","className","color","closeMenuOnClick","icon","rightSection"]),u=lD(),{classes:f,cx:h,theme:m}=RSt({radius:u.radius,color:a},{name:"Menu",classNames:u.classNames,styles:u.styles,unstyled:u.unstyled,variant:u.variant}),A=w.useRef(),p=u.getItemIndex(A.current),v=c,y=Ed(v.onMouseLeave,()=>u.setHovered(-1)),x=Ed(v.onMouseEnter,()=>u.setHovered(u.getItemIndex(A.current))),k=Ed(v.onClick,()=>{typeof o=="boolean"?o&&u.closeDropdownImmediately():u.closeOnItemClick&&u.closeDropdownImmediately()}),S=Ed(v.onFocus,()=>u.setHovered(u.getItemIndex(A.current)));return L.createElement(En,HSt(zSt({component:"button",type:"button"},c),{tabIndex:-1,onFocus:S,className:h(f.item,i),ref:qp(A,e),role:"menuitem","data-menu-item":!0,"data-hovered":u.hovered===p?!0:void 0,onMouseEnter:x,onMouseLeave:y,onClick:k,onKeyDown:HIe({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:u.loop,dir:m.dir,orientation:"vertical",onKeyDown:v.onKeydown})}),s&&L.createElement("div",{className:f.itemIcon},s),r&&L.createElement("div",{className:f.itemLabel},r),l&&L.createElement("div",{className:f.itemRightSection},l))});T$e.displayName="@mantine/core/MenuItem";const qSt=T$e;var GSt=cn(t=>({label:{color:t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6],fontWeight:500,fontSize:t.fontSizes.xs,padding:`calc(${t.spacing.xs} / 2) ${t.spacing.sm}`,cursor:"default"}})),WSt=Object.defineProperty,w4=Object.getOwnPropertySymbols,O$e=Object.prototype.hasOwnProperty,B$e=Object.prototype.propertyIsEnumerable,ZAe=(t,e,n)=>e in t?WSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KSt=(t,e)=>{for(var n in e||(e={}))O$e.call(e,n)&&ZAe(t,n,e[n]);if(w4)for(var n of w4(e))B$e.call(e,n)&&ZAe(t,n,e[n]);return t},YSt=(t,e)=>{var n={};for(var r in t)O$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&w4)for(var r of w4(t))e.indexOf(r)<0&&B$e.call(t,r)&&(n[r]=t[r]);return n};const XSt={},j$e=w.forwardRef((t,e)=>{const n=Qt("MenuLabel",XSt,t),{children:r,className:i}=n,a=YSt(n,["children","className"]),{classNames:o,styles:s,unstyled:l,variant:c}=lD(),{classes:u,cx:f}=GSt(null,{name:"Menu",classNames:o,styles:s,unstyled:l,variant:c});return L.createElement(Jn,KSt({className:f(u.label,i),ref:e},a),r)});j$e.displayName="@mantine/core/MenuLabel";var ZSt=Object.defineProperty,k4=Object.getOwnPropertySymbols,I$e=Object.prototype.hasOwnProperty,P$e=Object.prototype.propertyIsEnumerable,JAe=(t,e,n)=>e in t?ZSt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,JSt=(t,e)=>{for(var n in e||(e={}))I$e.call(e,n)&&JAe(t,n,e[n]);if(k4)for(var n of k4(e))P$e.call(e,n)&&JAe(t,n,e[n]);return t},eCt=(t,e)=>{var n={};for(var r in t)I$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&k4)for(var r of k4(t))e.indexOf(r)<0&&P$e.call(t,r)&&(n[r]=t[r]);return n};const tCt={refProp:"ref"},M$e=w.forwardRef((t,e)=>{const n=Qt("MenuTarget",tCt,t),{children:r,refProp:i}=n,a=eCt(n,["children","refProp"]);if(!uC(r))throw new Error(w$e.children);const o=lD(),s=Ed(r.props.onClick,()=>o.trigger==="click"&&o.toggleDropdown()),l=Ed(r.props.onMouseEnter,()=>o.trigger==="hover"&&o.openDropdown()),c=Ed(r.props.onMouseLeave,()=>o.trigger==="hover"&&o.closeDropdown());return L.createElement(Gc.Target,JSt({refProp:i,popupType:"menu",ref:e},a),w.cloneElement(r,{onClick:s,onMouseEnter:l,onMouseLeave:c,"data-expanded":o.opened?!0:void 0}))});M$e.displayName="@mantine/core/MenuTarget";var nCt=cn({dropdown:{padding:He(4)}}),rCt=Object.defineProperty,iCt=Object.defineProperties,aCt=Object.getOwnPropertyDescriptors,S4=Object.getOwnPropertySymbols,R$e=Object.prototype.hasOwnProperty,$$e=Object.prototype.propertyIsEnumerable,ege=(t,e,n)=>e in t?rCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tge=(t,e)=>{for(var n in e||(e={}))R$e.call(e,n)&&ege(t,n,e[n]);if(S4)for(var n of S4(e))$$e.call(e,n)&&ege(t,n,e[n]);return t},nge=(t,e)=>iCt(t,aCt(e)),oCt=(t,e)=>{var n={};for(var r in t)R$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&S4)for(var r of S4(t))e.indexOf(r)<0&&$$e.call(t,r)&&(n[r]=t[r]);return n};const sCt={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function Hi(t){const e=Qt("Menu",sCt,t),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,onChange:s,closeOnItemClick:l,loop:c,closeOnEscape:u,trigger:f,openDelay:h,closeDelay:m,classNames:A,styles:p,unstyled:v,radius:y,variant:x}=e,k=oCt(e,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius","variant"]),{classes:S,cx:C}=nCt(),[N,{setHovered:E,resetHovered:D}]=dft(),[T,I]=Kc({value:a,defaultValue:o,finalValue:!1,onChange:s}),O=()=>{I(!1),T&&i?.()},B=()=>{I(!0),!T&&r?.()},M=()=>T?O():B(),{openDropdown:$,closeDropdown:U}=pkt({open:B,close:O,closeDelay:m,openDelay:h}),P=Q=>lft("[data-menu-item]","[data-menu-dropdown]",Q);return Gl(()=>{D()},[T]),L.createElement(xSt,{value:{opened:T,toggleDropdown:M,getItemIndex:P,hovered:N,setHovered:E,closeOnItemClick:l,closeDropdown:f==="click"?O:U,openDropdown:f==="click"?B:$,closeDropdownImmediately:O,loop:c,trigger:f,radius:y,classNames:A,styles:p,unstyled:v,variant:x}},L.createElement(Gc,nge(tge({},k),{radius:y,opened:T,onChange:M,defaultOpened:o,trapFocus:f==="click"&&T,closeOnEscape:u&&f==="click",__staticSelector:"Menu",classNames:nge(tge({},A),{dropdown:C(S.dropdown,A?.dropdown)}),styles:p,unstyled:v,variant:x}),n))}Hi.displayName="@mantine/core/Menu";Hi.Item=qSt;Hi.Label=j$e;Hi.Dropdown=E$e;Hi.Target=M$e;Hi.Divider=C$e;const[lCt,cCt]=Kf("Modal component was not found in tree"),uCt={xs:He(320),sm:He(380),md:He(440),lg:He(620),xl:He(780)};var dCt=cn((t,{yOffset:e,xOffset:n,centered:r,fullScreen:i},{size:a})=>({content:{flex:i?"0 0 100%":`0 0 ${Tt({size:a,sizes:uCt})}`,maxWidth:"100%",maxHeight:i?void 0:`calc(100dvh - (${He(e)} * 2))`,height:i?"100vh":void 0,borderRadius:i?0:void 0,overflowY:"auto"},inner:{paddingTop:i?0:e,paddingBottom:i?0:e,paddingLeft:i?0:n,paddingRight:i?0:n,display:"flex",justifyContent:"center",alignItems:r?"center":"flex-start"}})),fCt=Object.defineProperty,hCt=Object.defineProperties,mCt=Object.getOwnPropertyDescriptors,C4=Object.getOwnPropertySymbols,L$e=Object.prototype.hasOwnProperty,U$e=Object.prototype.propertyIsEnumerable,rge=(t,e,n)=>e in t?fCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,UY=(t,e)=>{for(var n in e||(e={}))L$e.call(e,n)&&rge(t,n,e[n]);if(C4)for(var n of C4(e))U$e.call(e,n)&&rge(t,n,e[n]);return t},z$e=(t,e)=>hCt(t,mCt(e)),pCt=(t,e)=>{var n={};for(var r in t)L$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&C4)for(var r of C4(t))e.indexOf(r)<0&&U$e.call(t,r)&&(n[r]=t[r]);return n};const ACt=z$e(UY({},sD),{yOffset:"5dvh",xOffset:"5vw"});function H$e(t){const e=Qt("ModalRoot",ACt,t),{classNames:n,variant:r,size:i,yOffset:a,xOffset:o,scrollAreaComponent:s,radius:l,centered:c,fullScreen:u}=e,f=pCt(e,["classNames","variant","size","yOffset","xOffset","scrollAreaComponent","radius","centered","fullScreen"]),{classes:h,cx:m}=dCt({yOffset:a,xOffset:o,centered:c,fullScreen:u},{name:"Modal",variant:r,size:i});return L.createElement(lCt,{value:{yOffset:a,scrollAreaComponent:s,radius:l}},L.createElement(wi,UY({__staticSelector:"Modal",size:i,variant:r,classNames:z$e(UY({},n),{content:m(h.content,n?.content),inner:m(h.inner,n?.inner)})},f)))}var gCt=Object.defineProperty,_4=Object.getOwnPropertySymbols,V$e=Object.prototype.hasOwnProperty,Q$e=Object.prototype.propertyIsEnumerable,ige=(t,e,n)=>e in t?gCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vCt=(t,e)=>{for(var n in e||(e={}))V$e.call(e,n)&&ige(t,n,e[n]);if(_4)for(var n of _4(e))Q$e.call(e,n)&&ige(t,n,e[n]);return t},yCt=(t,e)=>{var n={};for(var r in t)V$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&_4)for(var r of _4(t))e.indexOf(r)<0&&Q$e.call(t,r)&&(n[r]=t[r]);return n};const bCt={shadow:"xl"},q$e=w.forwardRef((t,e)=>{const n=Qt("ModalContent",bCt,t),{children:r,scrollAreaComponent:i}=n,a=yCt(n,["children","scrollAreaComponent"]),o=cCt(),s=i||o.scrollAreaComponent||wi.NativeScrollArea;return L.createElement(wi.Content,vCt({ref:e,radius:o.radius},a),L.createElement(s,{style:{maxHeight:`calc(100dvh - (${He(o.yOffset)} * 2))`}},r))});var xCt=Object.defineProperty,wCt=Object.defineProperties,kCt=Object.getOwnPropertyDescriptors,N4=Object.getOwnPropertySymbols,G$e=Object.prototype.hasOwnProperty,W$e=Object.prototype.propertyIsEnumerable,age=(t,e,n)=>e in t?xCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Yj=(t,e)=>{for(var n in e||(e={}))G$e.call(e,n)&&age(t,n,e[n]);if(N4)for(var n of N4(e))W$e.call(e,n)&&age(t,n,e[n]);return t},SCt=(t,e)=>wCt(t,kCt(e)),CCt=(t,e)=>{var n={};for(var r in t)G$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&N4)for(var r of N4(t))e.indexOf(r)<0&&W$e.call(t,r)&&(n[r]=t[r]);return n};const _Ct=SCt(Yj({},sD),{transitionProps:{duration:200,transition:"pop"},withOverlay:!0,withCloseButton:!0});function kr(t){const e=Qt("Modal",_Ct,t),{title:n,withOverlay:r,overlayProps:i,withCloseButton:a,closeButtonProps:o,children:s}=e,l=CCt(e,["title","withOverlay","overlayProps","withCloseButton","closeButtonProps","children"]),c=!!n||a;return L.createElement(H$e,Yj({},l),r&&L.createElement(wi.Overlay,Yj({},i)),L.createElement(q$e,null,c&&L.createElement(wi.Header,null,n&&L.createElement(wi.Title,null,n),a&&L.createElement(wi.CloseButton,Yj({},o))),L.createElement(wi.Body,null,s)))}kr.Root=H$e;kr.CloseButton=wi.CloseButton;kr.Overlay=wi.Overlay;kr.Content=q$e;kr.Header=wi.Header;kr.Title=wi.Title;kr.Body=wi.Body;kr.NativeScrollArea=wi.NativeScrollArea;const K$e={xs:He(16),sm:He(22),md:He(26),lg:He(30),xl:He(36)},NCt={xs:He(10),sm:He(12),md:He(14),lg:He(16),xl:He(18)};var ECt=cn((t,{disabled:e,radius:n,readOnly:r},{size:i,variant:a})=>({defaultValue:{display:"flex",alignItems:"center",backgroundColor:e?t.colorScheme==="dark"?t.colors.dark[5]:t.colors.gray[3]:t.colorScheme==="dark"?t.colors.dark[7]:a==="filled"?t.white:t.colors.gray[1],color:e?t.colorScheme==="dark"?t.colors.dark[1]:t.colors.gray[7]:t.colorScheme==="dark"?t.colors.dark[0]:t.colors.gray[7],height:Tt({size:i,sizes:K$e}),paddingLeft:`calc(${Tt({size:i,sizes:t.spacing})} / 1.5)`,paddingRight:e||r?Tt({size:i,sizes:t.spacing}):0,fontWeight:500,fontSize:Tt({size:i,sizes:NCt}),borderRadius:Tt({size:n,sizes:t.radius}),cursor:e?"not-allowed":"default",userSelect:"none",maxWidth:`calc(100% - ${He(10)})`},defaultValueRemove:{color:t.colorScheme==="dark"?t.colors.dark[0]:t.colors.gray[7],marginLeft:`calc(${Tt({size:i,sizes:t.spacing})} / 6)`},defaultValueLabel:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}})),FCt=Object.defineProperty,E4=Object.getOwnPropertySymbols,Y$e=Object.prototype.hasOwnProperty,X$e=Object.prototype.propertyIsEnumerable,oge=(t,e,n)=>e in t?FCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,DCt=(t,e)=>{for(var n in e||(e={}))Y$e.call(e,n)&&oge(t,n,e[n]);if(E4)for(var n of E4(e))X$e.call(e,n)&&oge(t,n,e[n]);return t},TCt=(t,e)=>{var n={};for(var r in t)Y$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&E4)for(var r of E4(t))e.indexOf(r)<0&&X$e.call(t,r)&&(n[r]=t[r]);return n};const OCt={xs:16,sm:22,md:24,lg:26,xl:30};function Z$e(t){var e=t,{label:n,classNames:r,styles:i,className:a,onRemove:o,disabled:s,readOnly:l,size:c,radius:u="sm",variant:f,unstyled:h}=e,m=TCt(e,["label","classNames","styles","className","onRemove","disabled","readOnly","size","radius","variant","unstyled"]);const{classes:A,cx:p}=ECt({disabled:s,readOnly:l,radius:u},{name:"MultiSelect",classNames:r,styles:i,unstyled:h,size:c,variant:f});return L.createElement("div",DCt({className:p(A.defaultValue,a)},m),L.createElement("span",{className:A.defaultValueLabel},n),!s&&!l&&L.createElement(rD,{"aria-hidden":!0,onMouseDown:o,size:OCt[c],radius:2,color:"blue",variant:"transparent",iconSize:"70%",className:A.defaultValueRemove,tabIndex:-1,unstyled:h}))}Z$e.displayName="@mantine/core/MultiSelect/DefaultValue";function BCt({data:t,searchable:e,limit:n,searchValue:r,filter:i,value:a,disableSelectedItemFiltering:o}){if(!e&&a.length===0)return t;if(!e){const l=[];for(let c=0;c<t.length;c+=1)(o||!a.some(u=>u===t[c].value&&!t[c].disabled))&&l.push(t[c]);return l}const s=[];for(let l=0;l<t.length&&(i(r,!o&&a.some(c=>c===t[l].value&&!t[l].disabled),t[l])&&s.push(t[l]),!(s.length>=n));l+=1);return s}var jCt=Object.defineProperty,F4=Object.getOwnPropertySymbols,J$e=Object.prototype.hasOwnProperty,e3e=Object.prototype.propertyIsEnumerable,sge=(t,e,n)=>e in t?jCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lge=(t,e)=>{for(var n in e||(e={}))J$e.call(e,n)&&sge(t,n,e[n]);if(F4)for(var n of F4(e))e3e.call(e,n)&&sge(t,n,e[n]);return t},ICt=(t,e)=>{var n={};for(var r in t)J$e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&F4)for(var r of F4(t))e.indexOf(r)<0&&e3e.call(t,r)&&(n[r]=t[r]);return n};const PCt={xs:He(14),sm:He(18),md:He(20),lg:He(24),xl:He(28)};function MCt(t){var e=t,{size:n,error:r,style:i}=e,a=ICt(e,["size","error","style"]);const o=Vu(),s=Tt({size:n,sizes:PCt});return L.createElement("svg",lge({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:lge({color:r?o.colors.red[6]:o.colors.gray[6],width:s,height:s},i),"data-chevron":!0},a),L.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var RCt=Object.defineProperty,$Ct=Object.defineProperties,LCt=Object.getOwnPropertyDescriptors,cge=Object.getOwnPropertySymbols,UCt=Object.prototype.hasOwnProperty,zCt=Object.prototype.propertyIsEnumerable,uge=(t,e,n)=>e in t?RCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HCt=(t,e)=>{for(var n in e||(e={}))UCt.call(e,n)&&uge(t,n,e[n]);if(cge)for(var n of cge(e))zCt.call(e,n)&&uge(t,n,e[n]);return t},VCt=(t,e)=>$Ct(t,LCt(e));function t3e({shouldClear:t,clearButtonProps:e,onClear:n,size:r,error:i}){return t?L.createElement(rD,VCt(HCt({},e),{variant:"transparent",onClick:n,size:r,onMouseDown:a=>a.preventDefault()})):L.createElement(MCt,{error:i,size:r})}t3e.displayName="@mantine/core/SelectRightSection";var QCt=Object.defineProperty,qCt=Object.defineProperties,GCt=Object.getOwnPropertyDescriptors,D4=Object.getOwnPropertySymbols,n3e=Object.prototype.hasOwnProperty,r3e=Object.prototype.propertyIsEnumerable,dge=(t,e,n)=>e in t?QCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pz=(t,e)=>{for(var n in e||(e={}))n3e.call(e,n)&&dge(t,n,e[n]);if(D4)for(var n of D4(e))r3e.call(e,n)&&dge(t,n,e[n]);return t},fge=(t,e)=>qCt(t,GCt(e)),WCt=(t,e)=>{var n={};for(var r in t)n3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&D4)for(var r of D4(t))e.indexOf(r)<0&&r3e.call(t,r)&&(n[r]=t[r]);return n};function i3e(t){var e=t,{styles:n,rightSection:r,rightSectionWidth:i,theme:a}=e,o=WCt(e,["styles","rightSection","rightSectionWidth","theme"]);if(r)return{rightSection:r,rightSectionWidth:i,styles:n};const s=typeof n=="function"?n(a):n;return{rightSection:!o.readOnly&&!(o.disabled&&o.shouldClear)&&L.createElement(t3e,Pz({},o)),styles:fge(Pz({},s),{rightSection:fge(Pz({},s?.rightSection),{pointerEvents:o.shouldClear?void 0:"none"})})}}var KCt=Object.defineProperty,YCt=Object.defineProperties,XCt=Object.getOwnPropertyDescriptors,hge=Object.getOwnPropertySymbols,ZCt=Object.prototype.hasOwnProperty,JCt=Object.prototype.propertyIsEnumerable,mge=(t,e,n)=>e in t?KCt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,e_t=(t,e)=>{for(var n in e||(e={}))ZCt.call(e,n)&&mge(t,n,e[n]);if(hge)for(var n of hge(e))JCt.call(e,n)&&mge(t,n,e[n]);return t},t_t=(t,e)=>YCt(t,XCt(e)),n_t=cn((t,{invalid:e},{size:n})=>({wrapper:{position:"relative","&:has(input:disabled)":{cursor:"not-allowed",pointerEvents:"none","& .mantine-MultiSelect-input":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[1],color:t.colors.dark[2],opacity:.6,"&::placeholder":{color:t.colors.dark[2]}},"& .mantine-MultiSelect-defaultValue":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[5]:t.colors.gray[3],color:t.colorScheme==="dark"?t.colors.dark[1]:t.colors.gray[7]}}},values:{minHeight:`calc(${Tt({size:n,sizes:ku})} - ${He(2)})`,display:"flex",alignItems:"center",flexWrap:"wrap",marginLeft:`calc(-${t.spacing.xs} / 2)`,boxSizing:"border-box","&[data-clearable]":{marginRight:Tt({size:n,sizes:ku})}},value:{margin:`calc(${t.spacing.xs} / 2 - ${He(2)}) calc(${t.spacing.xs} / 2)`},searchInput:t_t(e_t({},t.fn.fontStyles()),{flex:1,minWidth:He(60),backgroundColor:"transparent",border:0,outline:0,fontSize:Tt({size:n,sizes:t.fontSizes}),padding:0,marginLeft:`calc(${t.spacing.xs} / 2)`,appearance:"none",color:"inherit",maxHeight:Tt({size:n,sizes:K$e}),"&::placeholder":{opacity:1,color:e?t.colors.red[t.fn.primaryShade()]:t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[5]},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"}}),searchInputEmpty:{width:"100%"},searchInputInputHidden:{flex:0,width:0,minWidth:0,margin:0,overflow:"hidden"},searchInputPointer:{cursor:"pointer","&:disabled":{cursor:"not-allowed",pointerEvents:"none"}},input:{cursor:"pointer","&:disabled":{cursor:"not-allowed",pointerEvents:"none"}}})),r_t=Object.defineProperty,i_t=Object.defineProperties,a_t=Object.getOwnPropertyDescriptors,T4=Object.getOwnPropertySymbols,a3e=Object.prototype.hasOwnProperty,o3e=Object.prototype.propertyIsEnumerable,pge=(t,e,n)=>e in t?r_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fw=(t,e)=>{for(var n in e||(e={}))a3e.call(e,n)&&pge(t,n,e[n]);if(T4)for(var n of T4(e))o3e.call(e,n)&&pge(t,n,e[n]);return t},Age=(t,e)=>i_t(t,a_t(e)),o_t=(t,e)=>{var n={};for(var r in t)a3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&T4)for(var r of T4(t))e.indexOf(r)<0&&o3e.call(t,r)&&(n[r]=t[r]);return n};function s_t(t,e,n){return e?!1:n.label.toLowerCase().trim().includes(t.toLowerCase().trim())}function l_t(t,e){return!!t&&!e.some(n=>n.value.toLowerCase()===t.toLowerCase())}function gge(t,e){if(!Array.isArray(t))return;if(e.length===0)return[];const n=e.map(r=>typeof r=="object"?r.value:r);return t.filter(r=>n.includes(r))}const c_t={size:"sm",valueComponent:Z$e,itemComponent:Xte,transitionProps:{transition:"fade",duration:0},maxDropdownHeight:220,shadow:"sm",searchable:!1,filter:s_t,limit:1/0,clearSearchOnChange:!0,clearable:!1,clearSearchOnBlur:!1,disabled:!1,initiallyOpened:!1,creatable:!1,shouldCreate:l_t,switchDirectionOnFlip:!1,zIndex:Qp("popover"),selectOnBlur:!1,positionDependencies:[],dropdownPosition:"flip"},Sl=w.forwardRef((t,e)=>{const n=Qt("MultiSelect",c_t,t),{className:r,style:i,required:a,label:o,description:s,size:l,error:c,classNames:u,styles:f,wrapperProps:h,value:m,defaultValue:A,data:p,onChange:v,valueComponent:y,itemComponent:x,id:k,transitionProps:S,maxDropdownHeight:C,shadow:N,nothingFound:E,onFocus:D,onBlur:T,searchable:I,placeholder:O,filter:B,limit:M,clearSearchOnChange:$,clearable:U,clearSearchOnBlur:P,variant:Q,onSearchChange:G,searchValue:X,disabled:he,initiallyOpened:ne,radius:H,icon:W,rightSection:q,rightSectionWidth:Z,creatable:re,getCreateLabel:te,shouldCreate:ue,onCreate:fe,sx:ge,dropdownComponent:oe,onDropdownClose:J,onDropdownOpen:Se,maxSelectedValues:ye,withinPortal:xe,portalProps:pe,switchDirectionOnFlip:K,zIndex:ie,selectOnBlur:le,name:ce,dropdownPosition:ve,errorProps:be,labelProps:$e,descriptionProps:je,form:Re,positionDependencies:Ke,onKeyDown:rt,unstyled:ct,inputContainer:St,inputWrapperOrder:Ae,readOnly:ee,withAsterisk:se,clearButtonProps:Ne,hoverOnSearchChange:Fe,disableSelectedItemFiltering:Ue}=n,De=o_t(n,["className","style","required","label","description","size","error","classNames","styles","wrapperProps","value","defaultValue","data","onChange","valueComponent","itemComponent","id","transitionProps","maxDropdownHeight","shadow","nothingFound","onFocus","onBlur","searchable","placeholder","filter","limit","clearSearchOnChange","clearable","clearSearchOnBlur","variant","onSearchChange","searchValue","disabled","initiallyOpened","radius","icon","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","onCreate","sx","dropdownComponent","onDropdownClose","onDropdownOpen","maxSelectedValues","withinPortal","portalProps","switchDirectionOnFlip","zIndex","selectOnBlur","name","dropdownPosition","errorProps","labelProps","descriptionProps","form","positionDependencies","onKeyDown","unstyled","inputContainer","inputWrapperOrder","readOnly","withAsterisk","clearButtonProps","hoverOnSearchChange","disableSelectedItemFiltering"]),{classes:Le,cx:ot,theme:Ze}=n_t({invalid:!!c},{name:"MultiSelect",classNames:u,styles:f,unstyled:ct,size:l,variant:Q}),{systemStyles:et,rest:st}=mC(De),Mt=w.useRef(),wt=w.useRef({}),kt=Lx(k),[nn,dn]=w.useState(ne),[hn,Gn]=w.useState(-1),[Be,We]=w.useState("column"),[it,vt]=Kc({value:X,defaultValue:"",finalValue:void 0,onChange:G}),[Bt,Kt]=w.useState(!1),{scrollIntoView:Wt,targetRef:Jt,scrollableRef:gn}=xPe({duration:0,offset:5,cancelable:!1,isList:!0}),mn=re&&typeof te=="function";let At=null;const It=p.map(Sn=>typeof Sn=="string"?{label:Sn,value:Sn}:Sn),pn=QIe({data:It}),[fn,Lr]=Kc({value:gge(m,p),defaultValue:gge(A,p),finalValue:[],onChange:v}),Hr=w.useRef(!!ye&&ye<fn.length),pr=Sn=>{if(!ee){const Ur=fn.filter(Xr=>Xr!==Sn);Lr(Ur),ye&&Ur.length<ye&&(Hr.current=!1)}},br=Sn=>{vt(Sn.currentTarget.value),!he&&!Hr.current&&I&&dn(!0)},Do=Sn=>{typeof D=="function"&&D(Sn),!he&&!Hr.current&&I&&dn(!0)},qr=BCt({data:pn,searchable:I,searchValue:it,limit:M,filter:B,value:fn,disableSelectedItemFiltering:Ue});mn&&ue(it,pn)&&(At=te(it),qr.push({label:it,value:it,creatable:!0}));const Gi=Math.min(hn,qr.length-1),ho=(Sn,Ur,Xr)=>{let Ba=Sn;for(;Xr(Ba);)if(Ba=Ur(Ba),!qr[Ba].disabled)return Ba;return Sn};Gl(()=>{Gn(Fe&&it?0:-1)},[it,Fe]),Gl(()=>{!he&&fn.length>p.length&&dn(!1),ye&&fn.length<ye&&(Hr.current=!1),ye&&fn.length>=ye&&(Hr.current=!0,dn(!1))},[fn]);const es=Sn=>{if(!ee)if($&&vt(""),fn.includes(Sn.value))pr(Sn.value);else{if(Sn.creatable&&typeof fe=="function"){const Ur=fe(Sn.value);typeof Ur<"u"&&Ur!==null&&Lr(typeof Ur=="string"?[...fn,Ur]:[...fn,Ur.value])}else Lr([...fn,Sn.value]);fn.length===ye-1&&(Hr.current=!0,dn(!1)),qr.length===1&&dn(!1)}},Pi=Sn=>{typeof T=="function"&&T(Sn),le&&qr[Gi]&&nn&&es(qr[Gi]),P&&vt(""),dn(!1)},Nl=Sn=>{if(Bt||(rt?.(Sn),ee)||Sn.key!=="Backspace"&&ye&&Hr.current)return;const Ur=Be==="column",Xr=()=>{Gn(Us=>{var zr;const mo=ho(Us,Nc=>Nc+1,Nc=>Nc<qr.length-1);return nn&&(Jt.current=wt.current[(zr=qr[mo])==null?void 0:zr.value],Wt({alignment:Ur?"end":"start"})),mo})},Ba=()=>{Gn(Us=>{var zr;const mo=ho(Us,Nc=>Nc-1,Nc=>Nc>0);return nn&&(Jt.current=wt.current[(zr=qr[mo])==null?void 0:zr.value],Wt({alignment:Ur?"start":"end"})),mo})};switch(Sn.key){case"ArrowUp":{Sn.preventDefault(),dn(!0),Ur?Ba():Xr();break}case"ArrowDown":{Sn.preventDefault(),dn(!0),Ur?Xr():Ba();break}case"Enter":{Sn.preventDefault(),qr[Gi]&&nn?es(qr[Gi]):dn(!0);break}case" ":{I||(Sn.preventDefault(),qr[Gi]&&nn?es(qr[Gi]):dn(!0));break}case"Backspace":{fn.length>0&&it.length===0&&(Lr(fn.slice(0,-1)),dn(!0),ye&&(Hr.current=!1));break}case"Home":{if(!I){Sn.preventDefault(),nn||dn(!0);const Us=qr.findIndex(zr=>!zr.disabled);Gn(Us),Wt({alignment:Ur?"end":"start"})}break}case"End":{if(!I){Sn.preventDefault(),nn||dn(!0);const Us=qr.map(zr=>!!zr.disabled).lastIndexOf(!1);Gn(Us),Wt({alignment:Ur?"end":"start"})}break}case"Escape":dn(!1)}},To=fn.map(Sn=>{let Ur=pn.find(Xr=>Xr.value===Sn&&!Xr.disabled);return!Ur&&mn&&(Ur={value:Sn,label:Sn}),Ur}).filter(Sn=>!!Sn).map((Sn,Ur)=>L.createElement(y,Age(fw({},Sn),{variant:Q,disabled:he,className:Le.value,readOnly:ee,onRemove:Xr=>{Xr.preventDefault(),Xr.stopPropagation(),pr(Sn.value)},key:Sn.value,size:l,styles:f,classNames:u,radius:H,index:Ur}))),Cs=Sn=>fn.includes(Sn),Ar=()=>{var Sn;vt(""),Lr([]),(Sn=Mt.current)==null||Sn.focus(),ye&&(Hr.current=!1)},Ji=!ee&&(qr.length>0?nn:nn&&!!E);return Gl(()=>{const Sn=Ji?Se:J;typeof Sn=="function"&&Sn()},[Ji]),L.createElement(Wl.Wrapper,fw(fw({required:a,id:kt,label:o,error:c,description:s,size:l,className:r,style:i,classNames:u,styles:f,__staticSelector:"MultiSelect",sx:ge,errorProps:be,descriptionProps:je,labelProps:$e,inputContainer:St,inputWrapperOrder:Ae,unstyled:ct,withAsterisk:se,variant:Q},et),h),L.createElement(uy,{opened:Ji,transitionProps:S,shadow:"sm",withinPortal:xe,portalProps:pe,__staticSelector:"MultiSelect",onDirectionChange:We,switchDirectionOnFlip:K,zIndex:ie,dropdownPosition:ve,positionDependencies:[...Ke,it],classNames:u,styles:f,unstyled:ct,variant:Q},L.createElement(uy.Target,null,L.createElement("div",{className:Le.wrapper,role:"combobox","aria-haspopup":"listbox","aria-owns":nn&&Ji?`${kt}-items`:null,"aria-controls":kt,"aria-expanded":nn,onMouseLeave:()=>Gn(-1),tabIndex:-1},L.createElement("input",{type:"hidden",name:ce,value:fn.join(","),form:Re,disabled:he}),L.createElement(Wl,fw({__staticSelector:"MultiSelect",style:{overflow:"hidden"},component:"div",multiline:!0,size:l,variant:Q,disabled:he,error:c,required:a,radius:H,icon:W,unstyled:ct,onMouseDown:Sn=>{var Ur;Sn.preventDefault(),!he&&!Hr.current&&dn(!nn),(Ur=Mt.current)==null||Ur.focus()},classNames:Age(fw({},u),{input:ot({[Le.input]:!I},u?.input)})},i3e({theme:Ze,rightSection:q,rightSectionWidth:Z,styles:f,size:l,shouldClear:U&&fn.length>0,onClear:Ar,error:c,disabled:he,clearButtonProps:Ne,readOnly:ee})),L.createElement("div",{className:Le.values,"data-clearable":U||void 0},To,L.createElement("input",fw({ref:qp(e,Mt),type:"search",id:kt,className:ot(Le.searchInput,{[Le.searchInputPointer]:!I,[Le.searchInputInputHidden]:!nn&&fn.length>0||!I&&fn.length>0,[Le.searchInputEmpty]:fn.length===0}),onKeyDown:Nl,value:it,onChange:br,onFocus:Do,onBlur:Pi,readOnly:!I||Hr.current||ee,placeholder:fn.length===0?O:void 0,disabled:he,"data-mantine-stop-propagation":nn,autoComplete:"off",onCompositionStart:()=>Kt(!0),onCompositionEnd:()=>Kt(!1)},st)))))),L.createElement(uy.Dropdown,{component:oe||a3,maxHeight:C,direction:Be,id:kt,innerRef:gn,__staticSelector:"MultiSelect",classNames:u,styles:f},L.createElement(Yte,{data:qr,hovered:Gi,classNames:u,styles:f,uuid:kt,__staticSelector:"MultiSelect",onItemHover:Gn,onItemSelect:es,itemsRefs:wt,itemComponent:x,size:l,nothingFound:E,isItemSelected:Cs,creatable:re&&!!At,createLabel:At,unstyled:ct,variant:Q}))))});Sl.displayName="@mantine/core/MultiSelect";var u_t=Object.defineProperty,d_t=Object.defineProperties,f_t=Object.getOwnPropertyDescriptors,vge=Object.getOwnPropertySymbols,h_t=Object.prototype.hasOwnProperty,m_t=Object.prototype.propertyIsEnumerable,yge=(t,e,n)=>e in t?u_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zY=(t,e)=>{for(var n in e||(e={}))h_t.call(e,n)&&yge(t,n,e[n]);if(vge)for(var n of vge(e))m_t.call(e,n)&&yge(t,n,e[n]);return t},p_t=(t,e)=>d_t(t,f_t(e));const A_t=["filled","light","subtle"];function g_t({theme:t,variant:e,color:n}){if(!A_t.includes(e))return null;const r=t.fn.variant({variant:e,color:n});return{"&[data-active]":zY({backgroundColor:r.background,color:r.color},t.fn.hover({backgroundColor:r.hover}))}}var v_t=cn((t,{noWrap:e,childrenOffset:n,alignIcon:r,color:i},{variant:a})=>({root:p_t(zY(zY({display:"flex",alignItems:"center",width:"100%",padding:`${He(8)} ${t.spacing.sm}`,userSelect:"none"},g_t({theme:t,variant:a,color:i})),t.fn.hover({backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[0]})),{"&[data-disabled]":{opacity:.4,pointerEvents:"none"}}),icon:{marginRight:t.spacing.sm,display:"flex",justifyContent:"center",alignItems:"center",alignSelf:r==="center"?"center":"flex-start",paddingTop:r==="center"?void 0:He(4)},rightSection:{marginLeft:t.spacing.sm,display:"flex",justifyContent:"center",alignItems:"center",transition:`transform 150ms ${t.transitionTimingFunction}`,"&[data-rotate]":{transform:"rotate(90deg)"}},body:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:e?"nowrap":void 0},label:{},description:{display:"block","&[data-active]":{color:"inherit"}},children:{paddingLeft:Tt({size:n,sizes:t.spacing})}})),y_t=Object.defineProperty,O4=Object.getOwnPropertySymbols,s3e=Object.prototype.hasOwnProperty,l3e=Object.prototype.propertyIsEnumerable,bge=(t,e,n)=>e in t?y_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b_t=(t,e)=>{for(var n in e||(e={}))s3e.call(e,n)&&bge(t,n,e[n]);if(O4)for(var n of O4(e))l3e.call(e,n)&&bge(t,n,e[n]);return t},x_t=(t,e)=>{var n={};for(var r in t)s3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&O4)for(var r of O4(t))e.indexOf(r)<0&&l3e.call(t,r)&&(n[r]=t[r]);return n};const w_t={variant:"light",childrenOffset:"lg"},c3e=w.forwardRef((t,e)=>{const n=Qt("NavLink",w_t,t),{label:r,description:i,icon:a,rightSection:o,className:s,classNames:l,styles:c,unstyled:u,active:f,color:h,variant:m,noWrap:A,children:p,opened:v,defaultOpened:y,onChange:x,disableRightSectionRotation:k,childrenOffset:S,disabled:C,onClick:N}=n,E=x_t(n,["label","description","icon","rightSection","className","classNames","styles","unstyled","active","color","variant","noWrap","children","opened","defaultOpened","onChange","disableRightSectionRotation","childrenOffset","disabled","onClick"]),{classes:D,cx:T}=v_t({color:h,noWrap:A,childrenOffset:S,alignIcon:i?"top":"center"},{name:"NavLink",classNames:l,styles:c,unstyled:u,variant:m}),[I,O]=Kc({value:v,defaultValue:y,finalValue:!1,onChange:x}),B=!!p,M=$=>{B?($.preventDefault(),N?.($),O(!I)):N?.($)};return L.createElement(L.Fragment,null,L.createElement(Od,b_t({ref:e,className:T(D.root,s),"data-active":f||void 0,onClick:M,unstyled:u,"data-expanded":I||void 0,"data-disabled":C||void 0,disabled:C},E),a&&L.createElement("span",{className:D.icon},a),L.createElement("span",{className:D.body},L.createElement(Jn,{component:"span",size:"sm",className:D.label},r),L.createElement(Jn,{component:"span",color:"dimmed",size:"xs","data-active":f||void 0,className:D.description},i)),(B||o)&&L.createElement("span",{className:D.rightSection,"data-rotate":I&&!k||void 0},B?o||L.createElement(uE,{width:He(14),height:He(14),style:{transform:"rotate(-90deg)"}}):o)),L.createElement(t3,{in:I},L.createElement("div",{className:D.children},p)))});c3e.displayName="@mantine/core/NavLink";const nm=c3e,k_t=(t,e,n)=>Number.isInteger(t)&&t>=0&&e===0?"numeric":!Number.isInteger(t)&&t>=0&&e!==0?"decimal":Number.isInteger(t)&&t<0&&e===0||!Number.isInteger(t)&&t<0&&e!==0?n==="ios"?"text":"decimal":"numeric";function xge({direction:t,size:e}){return L.createElement("svg",{style:{width:He(e),height:He(e),transform:t==="up"?"rotate(180deg)":void 0},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const u3e={xs:He(20),sm:He(24),md:He(30),lg:He(34),xl:He(36)};var S_t=cn((t,{radius:e},{size:n})=>({rightSection:{display:"flex",flexDirection:"column",height:`calc(100% - ${He(2)})`,margin:He(1),overflow:"hidden",borderTopRightRadius:t.fn.radius(e),borderBottomRightRadius:t.fn.radius(e)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:Tt({size:n,sizes:u3e}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[4]}`,borderLeft:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:He(1),color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,"&:not(:disabled):hover":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[5]:t.colors.gray[0]},"&:disabled":{color:t.colorScheme==="dark"?t.colors.dark[3]:t.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}})),C_t=Object.defineProperty,__t=Object.defineProperties,N_t=Object.getOwnPropertyDescriptors,B4=Object.getOwnPropertySymbols,d3e=Object.prototype.hasOwnProperty,f3e=Object.prototype.propertyIsEnumerable,wge=(t,e,n)=>e in t?C_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mz=(t,e)=>{for(var n in e||(e={}))d3e.call(e,n)&&wge(t,n,e[n]);if(B4)for(var n of B4(e))f3e.call(e,n)&&wge(t,n,e[n]);return t},E_t=(t,e)=>__t(t,N_t(e)),F_t=(t,e)=>{var n={};for(var r in t)d3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&B4)for(var r of B4(t))e.indexOf(r)<0&&f3e.call(t,r)&&(n[r]=t[r]);return n};const D_t={type:"text",size:"sm",__staticSelector:"TextInput"},bne=w.forwardRef((t,e)=>{const n=f3("TextInput",D_t,t),{inputProps:r,wrapperProps:i}=n,a=F_t(n,["inputProps","wrapperProps"]);return L.createElement(Wl.Wrapper,Mz({},i),L.createElement(Wl,E_t(Mz(Mz({},r),a),{ref:e})))});bne.displayName="@mantine/core/TextInput";var T_t=Object.defineProperty,O_t=Object.defineProperties,B_t=Object.getOwnPropertyDescriptors,j4=Object.getOwnPropertySymbols,h3e=Object.prototype.hasOwnProperty,m3e=Object.prototype.propertyIsEnumerable,kge=(t,e,n)=>e in t?T_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j_t=(t,e)=>{for(var n in e||(e={}))h3e.call(e,n)&&kge(t,n,e[n]);if(j4)for(var n of j4(e))m3e.call(e,n)&&kge(t,n,e[n]);return t},I_t=(t,e)=>O_t(t,B_t(e)),P_t=(t,e)=>{var n={};for(var r in t)h3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&j4)for(var r of j4(t))e.indexOf(r)<0&&m3e.call(t,r)&&(n[r]=t[r]);return n};const M_t=t=>t||"",R_t=t=>{if(t==="-")return t;let e=t;e[0]==="."&&(e=`0${t}`);const n=parseFloat(e);return Number.isNaN(n)?"":t},Sge={xs:He(10),sm:He(14),md:He(16),lg:He(18),xl:He(20)},$_t={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,removeTrailingZeros:!1,decimalSeparator:".",formatter:M_t,parser:R_t,type:"text"},Rl=w.forwardRef((t,e)=>{const n=Qt("NumberInput",$_t,t),{readOnly:r,disabled:i,value:a,onChange:o,decimalSeparator:s,thousandsSeparator:l,min:c,max:u,startValue:f,step:h,stepHoldInterval:m,stepHoldDelay:A,onFocus:p,onBlur:v,onKeyDown:y,onKeyUp:x,hideControls:k,radius:S,variant:C,precision:N,removeTrailingZeros:E,defaultValue:D,noClampOnBlur:T,handlersRef:I,classNames:O,styles:B,size:M,rightSection:$,rightSectionWidth:U,formatter:P,parser:Q,inputMode:G,unstyled:X,type:he}=n,ne=P_t(n,["readOnly","disabled","value","onChange","decimalSeparator","thousandsSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onFocus","onBlur","onKeyDown","onKeyUp","hideControls","radius","variant","precision","removeTrailingZeros","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled","type"]),{classes:H,cx:W}=S_t({radius:S},{classNames:O,styles:B,unstyled:X,name:"NumberInput",variant:C,size:M}),q=Fe=>{if(Fe==="")return"";let Ue=Fe.toFixed(N);return E&&N>0&&(Ue=Ue.replace(new RegExp(`[0]{0,${N}}$`),""),Ue.endsWith(".")&&(Ue=Ue.slice(0,-1))),Ue},Z=Fe=>{let Ue=Fe;return s&&(Ue=Ue.replace(".",s)),P(Ue)},re=Fe=>{let Ue=Fe;return s&&(Ue=Ue.replaceAll(l,"").replace(s,".")),Q(Ue)},te=Fe=>Z(q(Fe)),[ue,fe]=w.useState(typeof a=="number"?a:typeof D=="number"?D:""),[ge,oe]=w.useState(()=>te(ue)),J=w.useRef(),[Se,ye]=w.useState(!1),xe=(Fe,Ue)=>{if(!Se||Ue){const De=te(Fe);De!==ge&&oe(De)}Fe!==ue&&fe(Fe)},pe=typeof c=="number"?c:-1/0,K=typeof u=="number"?u:1/0,ie=w.useRef();ie.current=()=>{var Fe;let Ue;ue===""?Ue=(Fe=f??c)!=null?Fe:0:Ue=parseFloat(q(w2(ue+h,pe,K))),xe(Ue,!0),o?.(Ue)};const le=w.useRef();le.current=()=>{var Fe;let Ue;ue===""?Ue=(Fe=f??c)!=null?Fe:0:Ue=parseFloat(q(w2(ue-h,pe,K))),xe(Ue,!0),o?.(Ue)},J$(I,{increment:ie.current,decrement:le.current}),w.useEffect(()=>{Se||xe(a===void 0?ue:a,!0)},[a,Se]);const ce=A!==void 0&&m!==void 0,ve=w.useRef(null),be=w.useRef(0),$e=()=>{ve.current&&window.clearTimeout(ve.current),ve.current=null,be.current=0},je=Fe=>{Fe?ie.current():le.current(),be.current+=1},Re=Fe=>{if(je(Fe),ce){const Ue=typeof m=="number"?m:m(be.current);ve.current=window.setTimeout(()=>Re(Fe),Ue)}},Ke=(Fe,Ue)=>{Fe.preventDefault(),J.current.focus(),je(Ue),ce&&(ve.current=window.setTimeout(()=>Re(Ue),A))};w.useEffect(()=>($e(),$e),[]);const rt=L.createElement("div",{className:H.rightSection},L.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:ue>=u,className:W(H.control,H.controlUp),onPointerDown:Fe=>{Ke(Fe,!0)},onPointerUp:$e,onPointerLeave:$e},L.createElement(xge,{size:Tt({size:M,sizes:Sge}),direction:"up"})),L.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:ue<=c,className:W(H.control,H.controlDown),onPointerDown:Fe=>{Ke(Fe,!1)},onPointerUp:$e,onPointerLeave:$e},L.createElement(xge,{size:Tt({size:M,sizes:Sge}),direction:"down"}))),ct=Fe=>{let Ue=Fe;(Ue[0]===`${s}`||Ue[0]===".")&&(Ue=`0${Ue}`);const De=parseFloat(q(parseFloat(re(Ue)))),Le=T?De:w2(De,pe,K),ot=Number.isNaN(Le)?"":Le,Ze=ue!==ot;oe(Fe),xe(ot),Ze&&o?.(ot)},St=Fe=>{Fe.nativeEvent.isComposing||ct(Fe.target.value)},Ae=Fe=>{ye(!0),p?.(Fe)},ee=Fe=>{ye(!1),v?.(Fe)},se=Fe=>{if(typeof y=="function"&&y(Fe),Fe.repeat&&ce&&(Fe.key==="ArrowUp"||Fe.key==="ArrowDown")){Fe.preventDefault();return}r||(Fe.key==="ArrowUp"?Ke(Fe,!0):Fe.key==="ArrowDown"&&Ke(Fe,!1))},Ne=Fe=>{typeof x=="function"&&x(Fe),(Fe.key==="ArrowUp"||Fe.key==="ArrowDown")&&$e()};return L.createElement(bne,I_t(j_t({},ne),{type:he,variant:C,value:ge,disabled:i,readOnly:r,ref:qp(J,e),onChange:St,onFocus:Ae,onBlur:ee,onKeyDown:se,onKeyUp:Ne,rightSection:$||(i||r||k||C==="unstyled"?null:rt),rightSectionWidth:U??`calc(${Tt({size:M,sizes:u3e})} + ${He(1)})`,radius:S,max:u,min:c,step:h,size:M,styles:B,classNames:O,inputMode:G||k_t(h,N,Lmt()),__staticSelector:"NumberInput",unstyled:X}))});Rl.displayName="@mantine/core/NumberInput";const[L_t,m3]=Kf("Pagination.Root component was not found in tree"),U_t={siblings:1,boundaries:1};function p3e(t){const{total:e,value:n,defaultValue:r,onChange:i,disabled:a,children:o,siblings:s,boundaries:l,color:c,radius:u,onNextPage:f,onPreviousPage:h,onFirstPage:m,onLastPage:A,getItemProps:p,classNames:v,styles:y,unstyled:x,variant:k,size:S}=Qt("PaginationRoot",U_t,t),{range:C,setPage:N,next:E,previous:D,active:T,first:I,last:O}=Imt({page:n,initialPage:r,onChange:i,total:e,siblings:s,boundaries:l}),B=Ed(f,E),M=Ed(h,D),$=Ed(m,I),U=Ed(A,O);return L.createElement(L_t,{value:{total:e,range:C,active:T,disabled:a,color:c,radius:u,getItemProps:p,onChange:N,onNext:B,onPrevious:M,onFirst:$,onLast:U,stylesApi:{name:"Pagination",classNames:v,styles:y,unstyled:x,variant:k,size:S}}},o)}const fE={xs:He(22),sm:He(26),md:He(32),lg:He(38),xl:He(44)};var z_t=cn((t,{color:e,radius:n,withPadding:r},{size:i})=>{const a=t.fn.variant({color:e,variant:"filled"});return{control:{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",border:`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[4]}`,color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,height:Tt({size:i,sizes:fE}),minWidth:Tt({size:i,sizes:fE}),padding:r?`0 calc(${Tt({size:i,sizes:t.spacing})} / 2)`:void 0,fontSize:Tt({size:i,sizes:t.fontSizes}),borderRadius:t.fn.radius(n),lineHeight:1,backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.white,"&:not([data-disabled])":t.fn.hover({backgroundColor:t.colorScheme==="dark"?t.colors.dark[5]:t.colors.gray[0]}),"&:active:not([data-disabled])":t.activeStyles,"&[data-disabled]":{opacity:.4,cursor:"not-allowed",pointerEvents:"none"},"&[data-active]":{borderColor:"transparent",color:a.color,backgroundColor:a.background,"&:not([data-disabled])":t.fn.hover({backgroundColor:a.hover})}}}}),H_t=Object.defineProperty,V_t=Object.defineProperties,Q_t=Object.getOwnPropertyDescriptors,I4=Object.getOwnPropertySymbols,A3e=Object.prototype.hasOwnProperty,g3e=Object.prototype.propertyIsEnumerable,Cge=(t,e,n)=>e in t?H_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q_t=(t,e)=>{for(var n in e||(e={}))A3e.call(e,n)&&Cge(t,n,e[n]);if(I4)for(var n of I4(e))g3e.call(e,n)&&Cge(t,n,e[n]);return t},G_t=(t,e)=>V_t(t,Q_t(e)),W_t=(t,e)=>{var n={};for(var r in t)A3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&I4)for(var r of I4(t))e.indexOf(r)<0&&g3e.call(t,r)&&(n[r]=t[r]);return n};const K_t={withPadding:!0},p3=w.forwardRef((t,e)=>{const n=Qt("PaginationControl",K_t,t),{active:r,className:i,disabled:a,withPadding:o}=n,s=W_t(n,["active","className","disabled","withPadding"]),l=m3(),{classes:c,cx:u}=z_t({color:l.color,radius:l.radius,withPadding:o},l.stylesApi);return L.createElement(Od,G_t(q_t({},s),{disabled:a,"data-active":r||void 0,"data-disabled":a||void 0,ref:e,className:u(c.control,i)}))});p3.displayName="@mantine/core/PaginationControl";var Y_t=Object.defineProperty,X_t=Object.defineProperties,Z_t=Object.getOwnPropertyDescriptors,P4=Object.getOwnPropertySymbols,v3e=Object.prototype.hasOwnProperty,y3e=Object.prototype.propertyIsEnumerable,_ge=(t,e,n)=>e in t?Y_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sx=(t,e)=>{for(var n in e||(e={}))v3e.call(e,n)&&_ge(t,n,e[n]);if(P4)for(var n of P4(e))y3e.call(e,n)&&_ge(t,n,e[n]);return t},cD=(t,e)=>X_t(t,Z_t(e)),J_t=(t,e)=>{var n={};for(var r in t)v3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&P4)for(var r of P4(t))e.indexOf(r)<0&&y3e.call(t,r)&&(n[r]=t[r]);return n};function b3e(t){return`calc(${Tt({size:t,sizes:fE})} / 2)`}function uD(t){var e=t,{size:n,style:r,children:i,path:a}=e,o=J_t(e,["size","style","children","path"]);return L.createElement("svg",sx({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:sx({width:n,height:n},r)},o),L.createElement("path",{d:a,fill:"currentColor"}))}const eNt=t=>L.createElement(uD,cD(sx({},t),{path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"})),tNt=t=>L.createElement(uD,cD(sx({},t),{path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"})),nNt=t=>L.createElement(uD,cD(sx({},t),{path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"})),rNt=t=>L.createElement(uD,cD(sx({},t),{path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"})),iNt=t=>L.createElement(uD,cD(sx({},t),{path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}));var aNt=cn((t,e,{size:n})=>({dots:{height:Tt({size:n,sizes:fE}),minWidth:Tt({size:n,sizes:fE}),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"}})),oNt=Object.defineProperty,M4=Object.getOwnPropertySymbols,x3e=Object.prototype.hasOwnProperty,w3e=Object.prototype.propertyIsEnumerable,Nge=(t,e,n)=>e in t?oNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sNt=(t,e)=>{for(var n in e||(e={}))x3e.call(e,n)&&Nge(t,n,e[n]);if(M4)for(var n of M4(e))w3e.call(e,n)&&Nge(t,n,e[n]);return t},lNt=(t,e)=>{var n={};for(var r in t)x3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&M4)for(var r of M4(t))e.indexOf(r)<0&&w3e.call(t,r)&&(n[r]=t[r]);return n};const cNt={icon:iNt},xne=w.forwardRef((t,e)=>{const n=Qt("PaginationDots",cNt,t),{className:r,icon:i}=n,a=lNt(n,["className","icon"]),o=m3(),{classes:s,cx:l}=aNt(null,o.stylesApi);return L.createElement(En,sNt({ref:e,className:l(s.dots,r)},a),L.createElement(i,{size:b3e(o.stylesApi.size)}))});xne.displayName="@mantine/core/PaginationDots";var uNt=Object.defineProperty,Ege=Object.getOwnPropertySymbols,dNt=Object.prototype.hasOwnProperty,fNt=Object.prototype.propertyIsEnumerable,Fge=(t,e,n)=>e in t?uNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hNt=(t,e)=>{for(var n in e||(e={}))dNt.call(e,n)&&Fge(t,n,e[n]);if(Ege)for(var n of Ege(e))fNt.call(e,n)&&Fge(t,n,e[n]);return t};function wne({dotsIcon:t}){const e=m3(),n=e.range.map((r,i)=>{var a;return r==="dots"?L.createElement(xne,{icon:t,key:i}):L.createElement(p3,hNt({key:i,active:r===e.active,"aria-current":r===e.active?"page":void 0,onClick:()=>e.onChange(r),disabled:e.disabled},(a=e.getItemProps)==null?void 0:a.call(e,r)),r)});return L.createElement(L.Fragment,null,n)}wne.displayName="@mantine/core/PaginationItems";var mNt=cn(t=>({icon:{transform:t.dir==="rtl"?"rotate(180deg)":"unset"}})),pNt=Object.defineProperty,R4=Object.getOwnPropertySymbols,k3e=Object.prototype.hasOwnProperty,S3e=Object.prototype.propertyIsEnumerable,Dge=(t,e,n)=>e in t?pNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ANt=(t,e)=>{for(var n in e||(e={}))k3e.call(e,n)&&Dge(t,n,e[n]);if(R4)for(var n of R4(e))S3e.call(e,n)&&Dge(t,n,e[n]);return t},gNt=(t,e)=>{var n={};for(var r in t)k3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&R4)for(var r of R4(t))e.indexOf(r)<0&&S3e.call(t,r)&&(n[r]=t[r]);return n};function A3({icon:t,name:e,action:n,type:r}){const i={icon:t},a=w.forwardRef((o,s)=>{const l=Qt(e,i,o),{icon:c}=l,u=gNt(l,["icon"]),{classes:f}=mNt(),h=m3(),m=r==="next"?h.active===h.total:h.active===1;return L.createElement(p3,ANt({disabled:h.disabled||m,ref:s,onClick:h[n],withPadding:!1},u),L.createElement(c,{className:f.icon,size:b3e(h.stylesApi.size)}))});return a.displayName=`@mantine/core/${e}`,a}const C3e=A3({icon:eNt,name:"PaginationNext",action:"onNext",type:"next"}),_3e=A3({icon:tNt,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),N3e=A3({icon:nNt,name:"PaginationFirst",action:"onFirst",type:"previous"}),E3e=A3({icon:rNt,name:"PaginationLast",action:"onLast",type:"next"});var vNt=Object.defineProperty,$4=Object.getOwnPropertySymbols,F3e=Object.prototype.hasOwnProperty,D3e=Object.prototype.propertyIsEnumerable,Tge=(t,e,n)=>e in t?vNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,V_=(t,e)=>{for(var n in e||(e={}))F3e.call(e,n)&&Tge(t,n,e[n]);if($4)for(var n of $4(e))D3e.call(e,n)&&Tge(t,n,e[n]);return t},yNt=(t,e)=>{var n={};for(var r in t)F3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$4)for(var r of $4(t))e.indexOf(r)<0&&D3e.call(t,r)&&(n[r]=t[r]);return n};const bNt={withControls:!0,siblings:1,boundaries:1};function Xf(t){const e=Qt("Pagination",bNt,t),{withEdges:n,withControls:r,classNames:i,styles:a,unstyled:o,variant:s,size:l,total:c,value:u,defaultValue:f,onChange:h,disabled:m,siblings:A,boundaries:p,color:v,radius:y,onNextPage:x,onPreviousPage:k,onFirstPage:S,onLastPage:C,getItemProps:N,getControlProps:E,spacing:D,nextIcon:T,previousIcon:I,lastIcon:O,firstIcon:B,dotsIcon:M}=e,$=yNt(e,["withEdges","withControls","classNames","styles","unstyled","variant","size","total","value","defaultValue","onChange","disabled","siblings","boundaries","color","radius","onNextPage","onPreviousPage","onFirstPage","onLastPage","getItemProps","getControlProps","spacing","nextIcon","previousIcon","lastIcon","firstIcon","dotsIcon"]),U=Vu();return c<=0?null:L.createElement(p3e,{classNames:i,styles:a,unstyled:o,variant:s,size:l,total:c,value:u,defaultValue:f,onChange:h,disabled:m,siblings:A,boundaries:p,color:v,radius:y,onNextPage:x,onPreviousPage:k,onFirstPage:S,onLastPage:C,getItemProps:N},L.createElement(sS,V_({spacing:D??`calc(${Tt({size:l,sizes:U.spacing})} / 2)`},$),n&&L.createElement(N3e,V_({icon:B},E?.("first"))),r&&L.createElement(_3e,V_({icon:I},E?.("previous"))),L.createElement(wne,{dotsIcon:M}),r&&L.createElement(C3e,V_({icon:T},E?.("next"))),n&&L.createElement(E3e,V_({icon:O},E?.("last")))))}Xf.displayName="@mantine/core/Pagination";Xf.Root=p3e;Xf.Items=wne;Xf.Control=p3;Xf.Dots=xne;Xf.Next=C3e;Xf.Previous=_3e;Xf.Last=E3e;Xf.First=N3e;const Oge={xs:He(3),sm:He(5),md:He(8),lg:He(12),xl:He(16)},xNt=$x({from:{backgroundPosition:"0 0"},to:{backgroundPosition:`${He(40)} 0`}});var wNt=cn((t,{color:e,radius:n},{size:r})=>({root:{position:"relative",height:Tt({size:r,sizes:Oge}),backgroundColor:t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[2],borderRadius:t.fn.radius(n),overflow:"hidden"},bar:{position:"absolute",top:0,bottom:0,left:0,height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:t.fn.variant({variant:"filled",primaryFallback:!1,color:e||t.primaryColor}).background,transition:"width 100ms linear","&[data-animate]":{animation:`${xNt} 1000ms linear infinite`},"&[data-striped]":{backgroundSize:`${He(20)} ${He(20)}`,backgroundImage:"linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)"},"&:last-of-type":{borderTopRightRadius:t.fn.radius(n),borderBottomRightRadius:t.fn.radius(n)},"&:first-of-type":{borderTopLeftRadius:t.fn.radius(n),borderBottomLeftRadius:t.fn.radius(n)},"@media (prefers-reduced-motion)":{transitionDuration:t.respectReducedMotion?"0ms":void 0}},label:{color:t.white,fontSize:`calc(${Tt({size:r,sizes:Oge})} * 0.65)`,fontWeight:700,userSelect:"none",overflow:"hidden",whiteSpace:"nowrap"}}));const T3e=w.createContext(!1),kNt=T3e.Provider,SNt=()=>w.useContext(T3e);function O3e({children:t,openDelay:e=0,closeDelay:n=0}){return L.createElement(kNt,{value:!0},L.createElement($yt,{delay:{open:e,close:n}},t))}O3e.displayName="@mantine/core/TooltipGroup";var CNt=Object.defineProperty,_Nt=Object.defineProperties,NNt=Object.getOwnPropertyDescriptors,Bge=Object.getOwnPropertySymbols,ENt=Object.prototype.hasOwnProperty,FNt=Object.prototype.propertyIsEnumerable,jge=(t,e,n)=>e in t?CNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ige=(t,e)=>{for(var n in e||(e={}))ENt.call(e,n)&&jge(t,n,e[n]);if(Bge)for(var n of Bge(e))FNt.call(e,n)&&jge(t,n,e[n]);return t},DNt=(t,e)=>_Nt(t,NNt(e));function TNt(t,e){if(!e)return{backgroundColor:t.colorScheme==="dark"?t.colors.gray[2]:t.colors.gray[9],color:t.colorScheme==="dark"?t.black:t.white};const n=t.fn.variant({variant:"filled",color:e,primaryFallback:!1});return{backgroundColor:n.background,color:n.color}}var B3e=cn((t,{color:e,radius:n,width:r,multiline:i})=>({tooltip:DNt(Ige(Ige({},t.fn.fontStyles()),TNt(t,e)),{lineHeight:t.lineHeight,fontSize:t.fontSizes.sm,borderRadius:t.fn.radius(n),padding:`calc(${t.spacing.xs} / 2) ${t.spacing.xs}`,position:"absolute",whiteSpace:i?"unset":"nowrap",pointerEvents:"none",width:r}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}));const j3e={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function ONt({offset:t,position:e}){const[n,r]=w.useState(!1),i=w.useRef(),{x:a,y:o,reference:s,floating:l,refs:c,update:u,placement:f}=une({placement:e,middleware:[d3({crossAxis:!0,padding:5,rootBoundary:"document"})]}),h=f.includes("right")?t:e.includes("left")?t*-1:0,m=f.includes("bottom")?t:e.includes("top")?t*-1:0,A=w.useCallback(({clientX:p,clientY:v})=>{s({getBoundingClientRect(){return{width:0,height:0,x:p,y:v,left:p+h,top:v+m,right:p,bottom:v}}})},[s]);return w.useEffect(()=>{if(c.floating.current){const p=i.current;p.addEventListener("mousemove",A);const v=ug(c.floating.current);return v.forEach(y=>{y.addEventListener("scroll",u)}),()=>{p.removeEventListener("mousemove",A),v.forEach(y=>{y.removeEventListener("scroll",u)})}}},[s,c.floating.current,u,A,n]),{handleMouseMove:A,x:a,y:o,opened:n,setOpened:r,boundaryRef:i,floating:l}}var BNt=Object.defineProperty,jNt=Object.defineProperties,INt=Object.getOwnPropertyDescriptors,L4=Object.getOwnPropertySymbols,I3e=Object.prototype.hasOwnProperty,P3e=Object.prototype.propertyIsEnumerable,Pge=(t,e,n)=>e in t?BNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u5=(t,e)=>{for(var n in e||(e={}))I3e.call(e,n)&&Pge(t,n,e[n]);if(L4)for(var n of L4(e))P3e.call(e,n)&&Pge(t,n,e[n]);return t},d5=(t,e)=>jNt(t,INt(e)),PNt=(t,e)=>{var n={};for(var r in t)I3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&L4)for(var r of L4(t))e.indexOf(r)<0&&P3e.call(t,r)&&(n[r]=t[r]);return n};const MNt={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Qp("popover")};function M3e(t){var e;const n=Qt("TooltipFloating",MNt,t),{children:r,refProp:i,withinPortal:a,portalProps:o,style:s,className:l,classNames:c,styles:u,unstyled:f,radius:h,color:m,label:A,offset:p,position:v,multiline:y,width:x,zIndex:k,disabled:S,variant:C}=n,N=PNt(n,["children","refProp","withinPortal","portalProps","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled","variant"]),{handleMouseMove:E,x:D,y:T,opened:I,boundaryRef:O,floating:B,setOpened:M}=ONt({offset:p,position:v}),{classes:$,cx:U}=B3e({radius:h,color:m,multiline:y,width:x},{name:"TooltipFloating",classNames:c,styles:u,unstyled:f,variant:C});if(!uC(r))throw new Error(j3e.children);const P=qp(O,r.ref),Q=X=>{var he,ne;(ne=(he=r.props).onMouseEnter)==null||ne.call(he,X),E(X),M(!0)},G=X=>{var he,ne;(ne=(he=r.props).onMouseLeave)==null||ne.call(he,X),M(!1)};return L.createElement(L.Fragment,null,L.createElement(pC,d5(u5({},o),{withinPortal:a}),L.createElement(En,d5(u5({},N),{ref:B,className:U($.tooltip,l),style:d5(u5({},s),{zIndex:k,display:!S&&I?"block":"none",top:T??"",left:(e=Math.round(D))!=null?e:""})}),A)),w.cloneElement(r,d5(u5({},r.props),{[i]:P,onMouseEnter:Q,onMouseLeave:G})))}M3e.displayName="@mantine/core/TooltipFloating";function RNt(t){const[e,n]=w.useState(!1),i=typeof t.opened=="boolean"?t.opened:e,a=SNt(),o=Lx(),{delay:s,currentId:l,setCurrentId:c}=lMe(),u=w.useCallback(D=>{n(D),D&&c(o)},[c,o]),{x:f,y:h,reference:m,floating:A,context:p,refs:v,update:y,placement:x,middlewareData:{arrow:{x:k,y:S}={}}}=une({placement:t.position,open:i,onOpenChange:u,middleware:[one(t.offset),d3({padding:8}),sne(),rMe({element:t.arrowRef,padding:t.arrowOffset}),...t.inline?[eMe()]:[]]}),{getReferenceProps:C,getFloatingProps:N}=Xyt([Ryt(p,{enabled:t.events.hover,delay:a?s:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events.touch}),Kyt(p,{enabled:t.events.focus,keyboardOnly:!0}),Yyt(p,{role:"tooltip"}),Wyt(p,{enabled:typeof t.opened===void 0}),Lyt(p,{id:o})]);return uMe({opened:i,position:t.position,positionDependencies:t.positionDependencies,floating:{refs:v,update:y}}),Gl(()=>{var D;(D=t.onPositionChange)==null||D.call(t,x)},[x]),{x:f,y:h,arrowX:k,arrowY:S,reference:m,floating:A,getFloatingProps:N,getReferenceProps:C,isGroupPhase:i&&l&&l!==o,opened:i,placement:x}}var $Nt=Object.defineProperty,LNt=Object.defineProperties,UNt=Object.getOwnPropertyDescriptors,U4=Object.getOwnPropertySymbols,R3e=Object.prototype.hasOwnProperty,$3e=Object.prototype.propertyIsEnumerable,Mge=(t,e,n)=>e in t?$Nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U0=(t,e)=>{for(var n in e||(e={}))R3e.call(e,n)&&Mge(t,n,e[n]);if(U4)for(var n of U4(e))$3e.call(e,n)&&Mge(t,n,e[n]);return t},Rz=(t,e)=>LNt(t,UNt(e)),zNt=(t,e)=>{var n={};for(var r in t)R3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&U4)for(var r of U4(t))e.indexOf(r)<0&&$3e.call(t,r)&&(n[r]=t[r]);return n};const HNt={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:Qp("popover"),positionDependencies:[]},g3=w.forwardRef((t,e)=>{var n;const r=w.useRef(null),i=Qt("Tooltip",HNt,t),{children:a,position:o,refProp:s,label:l,openDelay:c,closeDelay:u,onPositionChange:f,opened:h,withinPortal:m,portalProps:A,radius:p,color:v,classNames:y,styles:x,unstyled:k,style:S,className:C,withArrow:N,arrowSize:E,arrowOffset:D,arrowRadius:T,arrowPosition:I,offset:O,transitionProps:B,multiline:M,width:$,events:U,zIndex:P,disabled:Q,positionDependencies:G,onClick:X,onMouseEnter:he,onMouseLeave:ne,inline:H,variant:W,keepMounted:q}=i,Z=zNt(i,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","portalProps","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transitionProps","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline","variant","keepMounted"]),{classes:re,cx:te,theme:ue}=B3e({radius:p,color:v,width:$,multiline:M},{name:"Tooltip",classNames:y,styles:x,unstyled:k,variant:W}),fe=RNt({position:xMe(ue.dir,o),closeDelay:u,openDelay:c,onPositionChange:f,opened:h,events:U,arrowRef:r,arrowOffset:D,offset:O+(N?E/2:0),positionDependencies:[...G,a],inline:H});if(!uC(a))throw new Error(j3e.children);const ge=qp(fe.reference,a.ref,e);return L.createElement(L.Fragment,null,L.createElement(pC,Rz(U0({},A),{withinPortal:m}),L.createElement(vC,Rz(U0({keepMounted:q,mounted:!Q&&fe.opened},B),{transition:B.transition||"fade",duration:fe.isGroupPhase?10:(n=B.duration)!=null?n:100}),oe=>{var J,Se;return L.createElement(En,U0(U0({},Z),fe.getFloatingProps({ref:fe.floating,className:re.tooltip,style:Rz(U0(U0({},S),oe),{zIndex:P,top:(J=fe.y)!=null?J:0,left:(Se=fe.x)!=null?Se:0})})),l,L.createElement(fne,{ref:r,arrowX:fe.arrowX,arrowY:fe.arrowY,visible:N,position:fe.placement,arrowSize:E,arrowOffset:D,arrowRadius:T,arrowPosition:I,className:re.arrow}))})),w.cloneElement(a,fe.getReferenceProps(U0({onClick:X,onMouseEnter:he,onMouseLeave:ne,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,[s]:ge,className:te(C,a.props.className)},a.props))))});g3.Group=O3e;g3.Floating=M3e;g3.displayName="@mantine/core/Tooltip";const Un=g3;var VNt=Object.defineProperty,QNt=Object.defineProperties,qNt=Object.getOwnPropertyDescriptors,z4=Object.getOwnPropertySymbols,L3e=Object.prototype.hasOwnProperty,U3e=Object.prototype.propertyIsEnumerable,Rge=(t,e,n)=>e in t?VNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HY=(t,e)=>{for(var n in e||(e={}))L3e.call(e,n)&&Rge(t,n,e[n]);if(z4)for(var n of z4(e))U3e.call(e,n)&&Rge(t,n,e[n]);return t},z3e=(t,e)=>QNt(t,qNt(e)),$ge=(t,e)=>{var n={};for(var r in t)L3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&z4)for(var r of z4(t))e.indexOf(r)<0&&U3e.call(t,r)&&(n[r]=t[r]);return n};function GNt(t){return t.reduce((e,n)=>(e.sections.push(z3e(HY({},n),{accumulated:e.accumulated})),e.accumulated+=n.value,e),{accumulated:0,sections:[]}).sections}const WNt={size:"md",radius:"sm",striped:!1,animate:!1,label:""},kne=w.forwardRef((t,e)=>{const n=Qt("Progress",WNt,t),{className:r,value:i,color:a,size:o,radius:s,striped:l,animate:c,label:u,"aria-label":f,classNames:h,styles:m,sections:A,unstyled:p,variant:v}=n,y=$ge(n,["className","value","color","size","radius","striped","animate","label","aria-label","classNames","styles","sections","unstyled","variant"]),{classes:x,cx:k,theme:S}=wNt({color:a,radius:s},{name:"Progress",classNames:h,styles:m,unstyled:p,variant:v,size:o}),C=Array.isArray(A)?GNt(A).map((N,E)=>{var D=N,{tooltip:T,accumulated:I,value:O,label:B,color:M}=D,$=$ge(D,["tooltip","accumulated","value","label","color"]);return L.createElement(Un.Floating,{label:T,disabled:!T,key:E},L.createElement(En,z3e(HY({},$),{className:k(x.bar,$.className),"data-striped":l||c||void 0,"data-animate":c||void 0,sx:{width:`${O}%`,left:`${I}%`,backgroundColor:S.fn.variant({variant:"filled",primaryFallback:!1,color:M||S.primaryColor}).background}}),B&&L.createElement(Jn,{className:x.label},B)))}):null;return L.createElement(En,HY({className:k(x.root,r),ref:e},y),C||L.createElement("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i,"aria-label":f,className:x.bar,style:{width:`${i}%`},"data-striped":l||c||void 0,"data-animate":c||void 0},u?L.createElement(Jn,{className:x.label},u):""))});kne.displayName="@mantine/core/Progress";function KNt({data:t,searchable:e,limit:n,searchValue:r,filter:i,value:a,filterDataOnExactSearchMatch:o}){if(!e)return t;const s=a!=null&&t.find(c=>c.value===a)||null;if(s&&!o&&s?.label===r){if(n){if(n>=t.length)return t;const c=t.indexOf(s),u=c+n,f=u-t.length;return f>0?t.slice(c-f):t.slice(c,u)}return t}const l=[];for(let c=0;c<t.length&&(i(r,t[c])&&l.push(t[c]),!(l.length>=n));c+=1);return l}var YNt=cn(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),XNt=Object.defineProperty,ZNt=Object.defineProperties,JNt=Object.getOwnPropertyDescriptors,H4=Object.getOwnPropertySymbols,H3e=Object.prototype.hasOwnProperty,V3e=Object.prototype.propertyIsEnumerable,Lge=(t,e,n)=>e in t?XNt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Q_=(t,e)=>{for(var n in e||(e={}))H3e.call(e,n)&&Lge(t,n,e[n]);if(H4)for(var n of H4(e))V3e.call(e,n)&&Lge(t,n,e[n]);return t},$z=(t,e)=>ZNt(t,JNt(e)),e2t=(t,e)=>{var n={};for(var r in t)H3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&H4)for(var r of H4(t))e.indexOf(r)<0&&V3e.call(t,r)&&(n[r]=t[r]);return n};function t2t(t,e){return e.label.toLowerCase().trim().includes(t.toLowerCase().trim())}function n2t(t,e){return!!t&&!e.some(n=>n.label.toLowerCase()===t.toLowerCase())}const r2t={required:!1,size:"sm",shadow:"sm",itemComponent:Xte,transitionProps:{transition:"fade",duration:0},initiallyOpened:!1,filter:t2t,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:n2t,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:Qp("popover"),positionDependencies:[],dropdownPosition:"flip"},ri=w.forwardRef((t,e)=>{const n=f3("Select",r2t,t),{inputProps:r,wrapperProps:i,shadow:a,data:o,value:s,defaultValue:l,onChange:c,itemComponent:u,onKeyDown:f,onBlur:h,onFocus:m,transitionProps:A,initiallyOpened:p,unstyled:v,classNames:y,styles:x,filter:k,maxDropdownHeight:S,searchable:C,clearable:N,nothingFound:E,limit:D,disabled:T,onSearchChange:I,searchValue:O,rightSection:B,rightSectionWidth:M,creatable:$,getCreateLabel:U,shouldCreate:P,selectOnBlur:Q,onCreate:G,dropdownComponent:X,onDropdownClose:he,onDropdownOpen:ne,withinPortal:H,portalProps:W,switchDirectionOnFlip:q,zIndex:Z,name:re,dropdownPosition:te,allowDeselect:ue,placeholder:fe,filterDataOnExactSearchMatch:ge,form:oe,positionDependencies:J,readOnly:Se,clearButtonProps:ye,hoverOnSearchChange:xe}=n,pe=e2t(n,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transitionProps","initiallyOpened","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","portalProps","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","form","positionDependencies","readOnly","clearButtonProps","hoverOnSearchChange"]),{classes:K,cx:ie,theme:le}=YNt(),[ce,ve]=w.useState(p),[be,$e]=w.useState(-1),je=w.useRef(),Re=w.useRef({}),[Ke,rt]=w.useState("column"),ct=Ke==="column",{scrollIntoView:St,targetRef:Ae,scrollableRef:ee}=xPe({duration:0,offset:5,cancelable:!1,isList:!0}),se=ue===void 0?N:ue,Ne=At=>{if(ce!==At){ve(At);const It=At?ne:he;typeof It=="function"&&It()}},Fe=$&&typeof U=="function";let Ue=null;const De=o.map(At=>typeof At=="string"?{label:At,value:At}:At),Le=QIe({data:De}),[ot,Ze,et]=Kc({value:s,defaultValue:l,finalValue:null,onChange:c}),st=Le.find(At=>At.value===ot),[Mt,wt]=Kc({value:O,defaultValue:st?.label||"",finalValue:void 0,onChange:I}),kt=At=>{wt(At),C&&typeof I=="function"&&I(At)},nn=()=>{var At;Se||(Ze(null),et||kt(""),(At=je.current)==null||At.focus())};w.useEffect(()=>{const At=Le.find(It=>It.value===ot);At?kt(At.label):(!Fe||!ot)&&kt("")},[ot]),w.useEffect(()=>{st&&(!C||!ce)&&kt(st.label)},[st?.label]);const dn=At=>{if(!Se)if(se&&st?.value===At.value)Ze(null),Ne(!1);else{if(At.creatable&&typeof G=="function"){const It=G(At.value);typeof It<"u"&&It!==null&&Ze(typeof It=="string"?It:It.value)}else Ze(At.value);et||kt(At.label),$e(-1),Ne(!1),je.current.focus()}},hn=KNt({data:Le,searchable:C,limit:D,searchValue:Mt,filter:k,filterDataOnExactSearchMatch:ge,value:ot});Fe&&P(Mt,hn)&&(Ue=U(Mt),hn.push({label:Mt,value:Mt,creatable:!0}));const Gn=(At,It,pn)=>{let fn=At;for(;pn(fn);)if(fn=It(fn),!hn[fn].disabled)return fn;return At};Gl(()=>{$e(xe&&Mt?0:-1)},[Mt,xe]);const Be=ot?hn.findIndex(At=>At.value===ot):0,We=!Se&&(hn.length>0?ce:ce&&!!E),it=()=>{$e(At=>{var It;const pn=Gn(At,fn=>fn-1,fn=>fn>0);return Ae.current=Re.current[(It=hn[pn])==null?void 0:It.value],We&&St({alignment:ct?"start":"end"}),pn})},vt=()=>{$e(At=>{var It;const pn=Gn(At,fn=>fn+1,fn=>fn<hn.length-1);return Ae.current=Re.current[(It=hn[pn])==null?void 0:It.value],We&&St({alignment:ct?"end":"start"}),pn})},Bt=()=>window.setTimeout(()=>{var At;Ae.current=Re.current[(At=hn[Be])==null?void 0:At.value],St({alignment:ct?"end":"start"})},50);Gl(()=>{We&&Bt()},[We]);const Kt=At=>{switch(typeof f=="function"&&f(At),At.key){case"ArrowUp":{At.preventDefault(),ce?ct?it():vt():($e(Be),Ne(!0),Bt());break}case"ArrowDown":{At.preventDefault(),ce?ct?vt():it():($e(Be),Ne(!0),Bt());break}case"Home":{if(!C){At.preventDefault(),ce||Ne(!0);const It=hn.findIndex(pn=>!pn.disabled);$e(It),We&&St({alignment:ct?"end":"start"})}break}case"End":{if(!C){At.preventDefault(),ce||Ne(!0);const It=hn.map(pn=>!!pn.disabled).lastIndexOf(!1);$e(It),We&&St({alignment:ct?"end":"start"})}break}case"Escape":{At.preventDefault(),Ne(!1),$e(-1);break}case" ":{C||(At.preventDefault(),hn[be]&&ce?dn(hn[be]):(Ne(!0),$e(Be),Bt()));break}case"Enter":C||At.preventDefault(),hn[be]&&ce&&(At.preventDefault(),dn(hn[be]))}},Wt=At=>{typeof h=="function"&&h(At);const It=Le.find(pn=>pn.value===ot);Q&&hn[be]&&ce&&dn(hn[be]),kt(It?.label||""),Ne(!1)},Jt=At=>{typeof m=="function"&&m(At),C&&Ne(!0)},gn=At=>{Se||(kt(At.currentTarget.value),N&&At.currentTarget.value===""&&Ze(null),$e(-1),Ne(!0))},mn=()=>{Se||(Ne(!ce),ot&&!ce&&$e(Be))};return L.createElement(Wl.Wrapper,$z(Q_({},i),{__staticSelector:"Select"}),L.createElement(uy,{opened:We,transitionProps:A,shadow:a,withinPortal:H,portalProps:W,__staticSelector:"Select",onDirectionChange:rt,switchDirectionOnFlip:q,zIndex:Z,dropdownPosition:te,positionDependencies:[...J,Mt],classNames:y,styles:x,unstyled:v,variant:r.variant},L.createElement(uy.Target,null,L.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":We?`${r.id}-items`:null,"aria-controls":r.id,"aria-expanded":We,onMouseLeave:()=>$e(-1),tabIndex:-1},L.createElement("input",{type:"hidden",name:re,value:ot||"",form:oe,disabled:T}),L.createElement(Wl,Q_($z(Q_(Q_({autoComplete:"off",type:"search"},r),pe),{ref:qp(e,je),onKeyDown:Kt,__staticSelector:"Select",value:Mt,placeholder:fe,onChange:gn,"aria-autocomplete":"list","aria-controls":We?`${r.id}-items`:null,"aria-activedescendant":be>=0?`${r.id}-${be}`:null,onMouseDown:mn,onBlur:Wt,onFocus:Jt,readOnly:!C||Se,disabled:T,"data-mantine-stop-propagation":We,name:null,classNames:$z(Q_({},y),{input:ie({[K.input]:!C},y?.input)})}),i3e({theme:le,rightSection:B,rightSectionWidth:M,styles:x,size:r.size,shouldClear:N&&!!st,onClear:nn,error:i.error,clearButtonProps:ye,disabled:T,readOnly:Se}))))),L.createElement(uy.Dropdown,{component:X||a3,maxHeight:S,direction:Ke,id:r.id,innerRef:ee,__staticSelector:"Select",classNames:y,styles:x},L.createElement(Yte,{data:hn,hovered:be,classNames:y,styles:x,isItemSelected:At=>At===ot,uuid:r.id,__staticSelector:"Select",onItemHover:$e,onItemSelect:dn,itemsRefs:Re,itemComponent:u,size:r.size,nothingFound:E,creatable:Fe&&!!Ue,createLabel:Ue,"aria-label":i.label,unstyled:v,variant:r.variant}))))});ri.displayName="@mantine/core/Select";function Sne(t,e){if(e.length===0)return e;const n="maxWidth"in e[0]?"maxWidth":"minWidth",r=[...e].sort((i,a)=>Xh(Tt({size:a[n],sizes:t.breakpoints}))-Xh(Tt({size:i[n],sizes:t.breakpoints})));return n==="minWidth"?r.reverse():r}var i2t=Object.defineProperty,Uge=Object.getOwnPropertySymbols,a2t=Object.prototype.hasOwnProperty,o2t=Object.prototype.propertyIsEnumerable,zge=(t,e,n)=>e in t?i2t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s2t=(t,e)=>{for(var n in e||(e={}))a2t.call(e,n)&&zge(t,n,e[n]);if(Uge)for(var n of Uge(e))o2t.call(e,n)&&zge(t,n,e[n]);return t},l2t=cn((t,{spacing:e,breakpoints:n,cols:r,verticalSpacing:i})=>{const a=i!=null,o=Sne(t,n).reduce((s,l)=>{var c,u;const f="maxWidth"in l?"max-width":"min-width",h=Tt({size:f==="max-width"?l.maxWidth:l.minWidth,sizes:t.breakpoints,units:"em"}),m=Xh(h)-(f==="max-width"?1:0);return s[`@media (${f}: ${dC(m)})`]={gridTemplateColumns:`repeat(${l.cols}, minmax(0, 1fr))`,gap:`${Tt({size:(c=l.verticalSpacing)!=null?c:a?i:e,sizes:t.spacing})} ${Tt({size:(u=l.spacing)!=null?u:e,sizes:t.spacing})}`},s},{});return{root:s2t({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${r}, minmax(0, 1fr))`,gap:`${Tt({size:a?i:e,sizes:t.spacing})} ${Tt({size:e,sizes:t.spacing})}`},o)}}),c2t=Object.defineProperty,V4=Object.getOwnPropertySymbols,Q3e=Object.prototype.hasOwnProperty,q3e=Object.prototype.propertyIsEnumerable,Hge=(t,e,n)=>e in t?c2t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u2t=(t,e)=>{for(var n in e||(e={}))Q3e.call(e,n)&&Hge(t,n,e[n]);if(V4)for(var n of V4(e))q3e.call(e,n)&&Hge(t,n,e[n]);return t},d2t=(t,e)=>{var n={};for(var r in t)Q3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&V4)for(var r of V4(t))e.indexOf(r)<0&&q3e.call(t,r)&&(n[r]=t[r]);return n};const f2t={breakpoints:[],cols:1,spacing:"md"},xC=w.forwardRef((t,e)=>{const n=Qt("SimpleGrid",f2t,t),{className:r,breakpoints:i,cols:a,spacing:o,verticalSpacing:s,children:l,unstyled:c,variant:u}=n,f=d2t(n,["className","breakpoints","cols","spacing","verticalSpacing","children","unstyled","variant"]),{classes:h,cx:m}=l2t({breakpoints:i,cols:a,spacing:o,verticalSpacing:s},{name:"SimpleGrid",unstyled:c,variant:u});return L.createElement(En,u2t({className:m(h.root,r),ref:e},f),l)});xC.displayName="@mantine/core/SimpleGrid";var h2t=Object.defineProperty,m2t=Object.defineProperties,p2t=Object.getOwnPropertyDescriptors,Vge=Object.getOwnPropertySymbols,A2t=Object.prototype.hasOwnProperty,g2t=Object.prototype.propertyIsEnumerable,Qge=(t,e,n)=>e in t?h2t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v2t=(t,e)=>{for(var n in e||(e={}))A2t.call(e,n)&&Qge(t,n,e[n]);if(Vge)for(var n of Vge(e))g2t.call(e,n)&&Qge(t,n,e[n]);return t},y2t=(t,e)=>m2t(t,p2t(e)),b2t=cn((t,{captionSide:e,horizontalSpacing:n,verticalSpacing:r,fontSize:i,withBorder:a,withColumnBorders:o})=>{const s=`${He(1)} solid ${t.colorScheme==="dark"?t.colors.dark[4]:t.colors.gray[3]}`;return{root:y2t(v2t({},t.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:e,color:t.colorScheme==="dark"?t.colors.dark[0]:t.black,lineHeight:t.lineHeight,border:a?s:void 0,"& > caption":{marginTop:e==="top"?0:t.spacing.xs,marginBottom:e==="bottom"?0:t.spacing.xs,fontSize:t.fontSizes.sm,color:t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6]},"& > thead > tr > th, & > tfoot > tr > th, & > tbody > tr > th":{textAlign:"left",fontWeight:"bold",color:t.colorScheme==="dark"?t.colors.dark[0]:t.colors.gray[7],fontSize:Tt({size:i,sizes:t.fontSizes}),padding:`${Tt({size:r,sizes:t.spacing})} ${Tt({size:n,sizes:t.spacing})}`},"& > thead > tr > th":{borderBottom:s},"& > tfoot > tr > th, & > tbody > tr > th":{borderTop:s},"& > tbody > tr > td":{padding:`${Tt({size:r,sizes:t.spacing})} ${Tt({size:n,sizes:t.spacing})}`,borderTop:s,fontSize:Tt({size:i,sizes:t.fontSizes})},"& > tbody > tr:first-of-type > td, & > tbody > tr:first-of-type > th":{borderTop:"none"},"& > thead > tr > th, & > tbody > tr > td":{borderRight:o?s:"none","&:last-of-type":{borderRight:"none",borderLeft:o?s:"none"}},"& > tbody > tr > th":{borderRight:o?s:"none"},"&[data-striped] > tbody > tr:nth-of-type(odd)":{backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.colors.gray[0]},"&[data-hover] > tbody > tr":t.fn.hover({backgroundColor:t.colorScheme==="dark"?t.colors.dark[5]:t.colors.gray[1]})})}}),x2t=Object.defineProperty,w2t=Object.defineProperties,k2t=Object.getOwnPropertyDescriptors,Q4=Object.getOwnPropertySymbols,G3e=Object.prototype.hasOwnProperty,W3e=Object.prototype.propertyIsEnumerable,qge=(t,e,n)=>e in t?x2t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,S2t=(t,e)=>{for(var n in e||(e={}))G3e.call(e,n)&&qge(t,n,e[n]);if(Q4)for(var n of Q4(e))W3e.call(e,n)&&qge(t,n,e[n]);return t},C2t=(t,e)=>w2t(t,k2t(e)),_2t=(t,e)=>{var n={};for(var r in t)G3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Q4)for(var r of Q4(t))e.indexOf(r)<0&&W3e.call(t,r)&&(n[r]=t[r]);return n};const N2t={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7,withBorder:!1,withColumnBorders:!1},Fo=w.forwardRef((t,e)=>{const n=Qt("Table",N2t,t),{className:r,children:i,striped:a,highlightOnHover:o,captionSide:s,horizontalSpacing:l,verticalSpacing:c,fontSize:u,unstyled:f,withBorder:h,withColumnBorders:m,variant:A}=n,p=_2t(n,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled","withBorder","withColumnBorders","variant"]),{classes:v,cx:y}=b2t({captionSide:s,verticalSpacing:c,horizontalSpacing:l,fontSize:u,withBorder:h,withColumnBorders:m},{unstyled:f,name:"Table",variant:A});return L.createElement(En,C2t(S2t({},p),{component:"table",ref:e,className:y(v.root,r),"data-striped":a||void 0,"data-hover":o||void 0}),i)});Fo.displayName="@mantine/core/Table";var E2t=Object.defineProperty,F2t=Object.defineProperties,D2t=Object.getOwnPropertyDescriptors,Gge=Object.getOwnPropertySymbols,T2t=Object.prototype.hasOwnProperty,O2t=Object.prototype.propertyIsEnumerable,Wge=(t,e,n)=>e in t?E2t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kge=(t,e)=>{for(var n in e||(e={}))T2t.call(e,n)&&Wge(t,n,e[n]);if(Gge)for(var n of Gge(e))O2t.call(e,n)&&Wge(t,n,e[n]);return t},B2t=(t,e)=>F2t(t,D2t(e));const j2t={xs:He(16),sm:He(20),md:He(26),lg:He(32),xl:He(40)},I2t=["filled","light","gradient","outline","default"];function P2t({theme:t,variant:e,color:n,gradient:r}){if(!I2t.includes(e))return null;const i=t.fn.variant({variant:e,color:n||t.primaryColor,gradient:r,primaryFallback:!1});return{backgroundColor:i.background,color:i.color,backgroundImage:e==="gradient"?i.background:void 0,border:`${He(e==="gradient"?0:1)} solid ${i.border}`}}var M2t=cn((t,{color:e,radius:n,gradient:r},{variant:i,size:a})=>{const o=Tt({size:a,sizes:j2t});return{root:Kge(B2t(Kge({},t.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:o,height:o,minWidth:o,minHeight:o,borderRadius:t.fn.radius(n)}),P2t({theme:t,variant:i,gradient:r,color:e}))}}),R2t=Object.defineProperty,q4=Object.getOwnPropertySymbols,K3e=Object.prototype.hasOwnProperty,Y3e=Object.prototype.propertyIsEnumerable,Yge=(t,e,n)=>e in t?R2t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$2t=(t,e)=>{for(var n in e||(e={}))K3e.call(e,n)&&Yge(t,n,e[n]);if(q4)for(var n of q4(e))Y3e.call(e,n)&&Yge(t,n,e[n]);return t},L2t=(t,e)=>{var n={};for(var r in t)K3e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&q4)for(var r of q4(t))e.indexOf(r)<0&&Y3e.call(t,r)&&(n[r]=t[r]);return n};const U2t={size:"md",variant:"filled"},Cne=w.forwardRef((t,e)=>{const n=Qt("ThemeIcon",U2t,t),{className:r,size:i,radius:a,variant:o,color:s,children:l,gradient:c,unstyled:u}=n,f=L2t(n,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:h,cx:m}=M2t({variant:o,radius:a,color:s,gradient:c},{name:"ThemeIcon",unstyled:u,variant:o,size:i});return L.createElement(En,$2t({className:m(h.root,r),ref:e},f),l)});Cne.displayName="@mantine/core/ThemeIcon";const Xj={Approved:"APPROVED",Pending:"PENDING",Unapproved:"UNAPPROVED"},Xge={DoubleEntry:"DOUBLE_ENTRY",SingleEntry:"SINGLE_ENTRY"},Zge={Computerized:"COMPUTERIZED",Manual:"MANUAL"},z0={Adverse:"ADVERSE",Disclaimer:"DISCLAIMER",None:"NONE",Qualified:"QUALIFIED",Unqualified:"UNQUALIFIED",UnqualifiedWithGoingConcern:"UNQUALIFIED_WITH_GOING_CONCERN",UnqualifiedWithOtherEmphases:"UNQUALIFIED_WITH_OTHER_EMPHASES"},z2t={Monthly:"MONTHLY"},H2t={Accommodation:"ACCOMMODATION",CarRental:"CAR_RENTAL",Flight:"FLIGHT",Other:"OTHER",TravelAndSubsistence:"TRAVEL_AND_SUBSISTENCE"},zb={All:"ALL",Expense:"EXPENSE",Income:"INCOME"},Nk={AbsAmount:"ABS_AMOUNT",Amount:"AMOUNT",Date:"DATE"},Vt={Aud:"AUD",Cad:"CAD",Eth:"ETH",Eur:"EUR",Gbp:"GBP",Grt:"GRT",Ils:"ILS",Jpy:"JPY",Sek:"SEK",Usd:"USD",Usdc:"USDC"},Jge={Dollars:"DOLLARS",Shekels:"SHEKELS"},V2t={GeneralAndManagement:"GENERAL_AND_MANAGEMENT",Marketing:"MARKETING",ResearchAndDevelopment:"RESEARCH_AND_DEVELOPMENT"},Cr={CreditInvoice:"CREDIT_INVOICE",Invoice:"INVOICE",InvoiceReceipt:"INVOICE_RECEIPT",Other:"OTHER",Proforma:"PROFORMA",Receipt:"RECEIPT",Unprocessed:"UNPROCESSED"},Q2t={Jpeg:"JPEG",Pdf:"PDF",Png:"PNG"},X3e={Business:"BUSINESS",Economy:"ECONOMY",FirstClass:"FIRST_CLASS",PremiumEconomy:"PREMIUM_ECONOMY"},ze={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Aq:"AQ",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bv:"BV",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gs:"GS",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hm:"HM",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pn:"PN",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tf:"TF",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Um:"UM",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"},VY={English:"ENGLISH",Hebrew:"HEBREW"},hw={ApplePay:"APPLE_PAY",Bit:"BIT",Culo:"CULO",GooglePay:"GOOGLE_PAY",Paybox:"PAYBOX",PayByPepper:"PAY_BY_PEPPER"},mw={AmericanExpress:"AMERICAN_EXPRESS",Diners:"DINERS",Isracard:"ISRACARD",Mastercard:"MASTERCARD",Unknown:"UNKNOWN",Visa:"VISA"},pw={Credit:"CREDIT",Deferred:"DEFERRED",Other:"OTHER",Payments:"PAYMENTS",Recurring:"RECURRING",Standard:"STANDARD"},_v={Bitcoin:"BITCOIN",BuymeVoucher:"BUYME_VOUCHER",Ethereum:"ETHEREUM",GiftCard:"GIFT_CARD",MoneyEqual:"MONEY_EQUAL",NiiEmployeeDeduction:"NII_EMPLOYEE_DEDUCTION",Payoneer:"PAYONEER",VCheck:"V_CHECK"},$l={Cash:"CASH",Cheque:"CHEQUE",CreditCard:"CREDIT_CARD",Other:"OTHER",OtherDeduction:"OTHER_DEDUCTION",PaymentApp:"PAYMENT_APP",Paypal:"PAYPAL",TaxDeduction:"TAX_DEDUCTION",WireTransfer:"WIRE_TRANSFER"},k2={Default:"DEFAULT",Exempt:"EXEMPT",Mixed:"MIXED"},f5={None:"NONE",Option_1:"OPTION_1",Option_2Adjustments:"OPTION_2_ADJUSTMENTS",Option_3Adjustments:"OPTION_3_ADJUSTMENTS"},dy={Counterparty:"COUNTERPARTY",Description:"DESCRIPTION",Documents:"DOCUMENTS",Tags:"TAGS",TaxCategory:"TAX_CATEGORY",Transactions:"TRANSACTIONS",Vat:"VAT"},Zj={Accrual:"ACCRUAL",Cash:"CASH",DollarRegulations:"DOLLAR_REGULATIONS"},q2t={},G2t={},W2t={},K2t={},Z3e={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableErrorsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"errorsLedger"},name:{kind:"Name",value:"ledger"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Ledger"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LedgerValidation"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]}}]}}]}}]}}]},J3e={},eve={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TableDocumentsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"additionalDocuments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TableDocumentsRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableDocumentsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"isIncome"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"allocationNumber"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"issuedDocumentInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"originalDocument"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}}]}}]}}]},eLe={},tLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargeTableTransactionsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionForTransactionsTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionForTransactionsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"sourceEffectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"cryptoExchangeRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},nLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ConversionChargeInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ConversionCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"eventRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"from"}},{kind:"Field",name:{kind:"Name",value:"to"}},{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"officialRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"from"}},{kind:"Field",name:{kind:"Name",value:"to"}},{kind:"Field",name:{kind:"Name",value:"rate"}}]}}]}}]}}]},rLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CreditcardBankChargeInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creditCardTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionForTransactionsTableFields"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionForTransactionsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"sourceEffectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"cryptoExchangeRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},iLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ExchangeRatesInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"exchangeRates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"aud"}},{kind:"Field",name:{kind:"Name",value:"cad"}},{kind:"Field",name:{kind:"Name",value:"eur"}},{kind:"Field",name:{kind:"Name",value:"gbp"}},{kind:"Field",name:{kind:"Name",value:"ils"}},{kind:"Field",name:{kind:"Name",value:"jpy"}},{kind:"Field",name:{kind:"Name",value:"sek"}},{kind:"Field",name:{kind:"Name",value:"usd"}},{kind:"Field",name:{kind:"Name",value:"eth"}},{kind:"Field",name:{kind:"Name",value:"grt"}},{kind:"Field",name:{kind:"Name",value:"usdc"}}]}}]}}]}}]},Y2t={},aLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TableMiscExpensesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"miscExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EditMiscExpenseFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"EditMiscExpenseFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MiscExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]},oLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TableSalariesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SalaryCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salaryRecords"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"directAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"baseAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"compensationsAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"incomeTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"healthInsuranceAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}}]}}]}}]},X2t={},Z2t={},J2t={},eEt={},tEt={},nEt={},rEt={},iEt={},aEt={},oEt={},sEt={},lEt={},cEt={},uEt={},dEt={},fEt={},hEt={},mEt={},pEt={},AEt={},gEt={},vEt={},yEt={},bEt={},xEt={},wEt={},kEt={},SEt={},CEt={},_Et={},NEt={},EEt={},sLe={},hE={},FEt={},DEt={},lLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DocumentsGalleryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"additionalDocuments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentType"}}]}}]}}]}}]},cLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TableLedgerRecordsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"ledger"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creditAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"reference"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Ledger"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LedgerValidation"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"matches"}},{kind:"Field",name:{kind:"Name",value:"differences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creditAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"reference"}}]}}]}}]}}]}}]}}]}}]},tve={},TEt={},OEt={},BEt={},jEt={},IEt={},uLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},PEt={},MEt={},dLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}}]},REt={},fLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}}]},hLe={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}}]},$Et={},LEt={},H0={},UEt={},zEt={},HEt={},VEt={},QEt={},qEt={},GEt={},WEt={},KEt={},YEt={},XEt={},ZEt={},JEt={},eFt={},tFt={},nFt={},rFt={},iFt={},mLe={},aFt={},oFt={},nve={},rve={},ive={},ave={},sFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessTransactionsInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsFromLedgerRecords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsFromLedgerRecordsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"reference"}},{kind:"Field",name:{kind:"Name",value:"details"}},{kind:"Field",name:{kind:"Name",value:"counterAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"chargeId"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},pLe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessTransactionsSummery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsSumFromLedgerRecords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsSum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"credit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"debit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignCurrenciesSum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"credit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"debit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},lFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessTripScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"dates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}}]}}]}}]}}]},cFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessTripsRowValidation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uncategorizedTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"summary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripSummary"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]}}]}}]},uFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EditableBusinessTrip"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportHeaderFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportAttendeesFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripUncategorizedTransactionsFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportFlightsFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportAccommodationsFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportTravelAndSubsistenceFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCarRentalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportOtherFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportSummaryFields"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uncategorizedTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportCoreExpenseRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"payedByEmployee"}},{kind:"Field",name:{kind:"Name",value:"charges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportFlightsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripFlightExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"payedByEmployee"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCoreExpenseRowFields"}},{kind:"Field",name:{kind:"Name",value:"path"}},{kind:"Field",name:{kind:"Name",value:"class"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportFlightsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripFlightExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportFlightsRowFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportAccommodationsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripAccommodationExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCoreExpenseRowFields"}},{kind:"Field",name:{kind:"Name",value:"payedByEmployee"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"nightsCount"}},{kind:"Field",name:{kind:"Name",value:"attendeesStay"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"attendee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"nightsCount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportAccommodationsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripAccommodationExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportAccommodationsRowFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportAttendeeRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripAttendee"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"arrivalDate"}},{kind:"Field",name:{kind:"Name",value:"departureDate"}},{kind:"Field",name:{kind:"Name",value:"flights"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportFlightsTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"accommodations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportAccommodationsTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionsTableEventDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionsTableDebitDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"sourceEffectiveDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionsTableAccountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionsTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionsTableSourceIDFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionsTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UncategorizedTransactionsTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UncategorizedTransaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"cryptoExchangeRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rate"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"categorizedAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"errors"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportTravelAndSubsistenceRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripTravelAndSubsistenceExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCoreExpenseRowFields"}},{kind:"Field",name:{kind:"Name",value:"payedByEmployee"}},{kind:"Field",name:{kind:"Name",value:"expenseType"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportCarRentalRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCarRentalExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"payedByEmployee"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCoreExpenseRowFields"}},{kind:"Field",name:{kind:"Name",value:"days"}},{kind:"Field",name:{kind:"Name",value:"isFuelExpense"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportOtherRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripOtherExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCoreExpenseRowFields"}},{kind:"Field",name:{kind:"Name",value:"payedByEmployee"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"deductibleExpense"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportHeaderFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"dates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}},{kind:"Field",name:{kind:"Name",value:"end"}}]}},{kind:"Field",name:{kind:"Name",value:"purpose"}},{kind:"Field",name:{kind:"Name",value:"destination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripAccountantApprovalFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportAttendeesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportAttendeeRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripUncategorizedTransactionsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uncategorizedTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionsTableEventDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionsTableDebitDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionsTableAccountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionsTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionsTableSourceIDFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionsTableEntityFields"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"UncategorizedTransactionsTableAmountFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportFlightsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"flightExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportFlightsTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportAccommodationsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accommodationExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportAccommodationsTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportTravelAndSubsistenceFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"travelAndSubsistenceExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportTravelAndSubsistenceRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportCarRentalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"carRentalExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportCarRentalRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportOtherFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"otherExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportOtherRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportSummaryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"summary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"excessExpenditure"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"excessTax"}},{kind:"Field",name:{kind:"Name",value:"rows"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"totalForeignCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalLocalCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxableForeignCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxableLocalCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"maxTaxableForeignCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"maxTaxableLocalCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"excessExpenditure"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]}}]},dFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessTripsScreen"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allBusinessTrips"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"dates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripsRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}}]},fFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllBusinessesForScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allBusinesses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AllBusinessesRowFields"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalPages"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AllBusinessesNameFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AllBusinessesHebrewNameFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hebrewName"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AllBusinessesRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AllBusinessesNameFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AllBusinessesHebrewNameFields"}}]}}]},hFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ChargesLedgerValidation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"ChargeFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"chargesWithLedgerChanges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"stream"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"progress"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validCreditCardAmount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableMoreInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}},{kind:"Field",name:{kind:"Name",value:"isSalary"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidLedger"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableVatFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAmountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableEntityFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableMoreInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTagsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTypeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableVatFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableRowFields"}}]}}]},_h={__meta__:{deferredFields:{DocumentsGalleryFields:["id","additionalDocuments"],TableDocumentsFields:["id","additionalDocuments"],TableLedgerRecordsFields:["id","ledger"],ChargeTableTransactionsFields:["id","transactions"],ConversionChargeInfo:["id","__typename"],CreditcardBankChargeInfo:["id","__typename"],TableSalariesFields:["id","__typename"],ChargesTableErrorsFields:["id"],TableMiscExpensesFields:["id","miscExpenses"],ExchangeRatesInfo:["id","__typename"]}},kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchCharge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"receiptsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"isLedgerLocked"}},{kind:"Field",name:{kind:"Name",value:"openDocuments"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"DocumentsGalleryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"TableDocumentsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"TableLedgerRecordsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargeTableTransactionsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ConversionChargeInfo"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"CreditcardBankChargeInfo"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"TableSalariesFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportFields"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableErrorsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"Field",name:{kind:"Name",value:"miscExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"TableMiscExpensesFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ExchangeRatesInfo"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableDocumentsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"isIncome"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"allocationNumber"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"issuedDocumentInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"originalDocument"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionForTransactionsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"sourceEffectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"cryptoExchangeRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportHeaderFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"dates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}},{kind:"Field",name:{kind:"Name",value:"end"}}]}},{kind:"Field",name:{kind:"Name",value:"purpose"}},{kind:"Field",name:{kind:"Name",value:"destination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripAccountantApprovalFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportSummaryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"summary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"excessExpenditure"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"excessTax"}},{kind:"Field",name:{kind:"Name",value:"rows"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"totalForeignCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalLocalCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxableForeignCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxableLocalCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"maxTaxableForeignCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"maxTaxableLocalCurrency"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"excessExpenditure"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"EditMiscExpenseFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MiscExpense"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DocumentsGalleryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"additionalDocuments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentType"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableDocumentsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"additionalDocuments"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TableDocumentsRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableLedgerRecordsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"ledger"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creditAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"reference"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Ledger"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LedgerValidation"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"matches"}},{kind:"Field",name:{kind:"Name",value:"differences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creditAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAccount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"creditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyCreditAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount1"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"localCurrencyDebitAmount2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"reference"}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargeTableTransactionsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionForTransactionsTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ConversionChargeInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ConversionCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"eventRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"from"}},{kind:"Field",name:{kind:"Name",value:"to"}},{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"officialRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"from"}},{kind:"Field",name:{kind:"Name",value:"to"}},{kind:"Field",name:{kind:"Name",value:"rate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CreditcardBankChargeInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creditCardTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionForTransactionsTableFields"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableSalariesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SalaryCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salaryRecords"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"directAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"baseAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"compensationsAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"incomeTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"healthInsuranceAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessTripReportFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTrip"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportHeaderFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessTripReportSummaryFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableErrorsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"errorsLedger"},name:{kind:"Name",value:"ledger"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Ledger"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LedgerValidation"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableMiscExpensesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"miscExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EditMiscExpenseFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ExchangeRatesInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"exchangeRates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"aud"}},{kind:"Field",name:{kind:"Name",value:"cad"}},{kind:"Field",name:{kind:"Name",value:"eur"}},{kind:"Field",name:{kind:"Name",value:"gbp"}},{kind:"Field",name:{kind:"Name",value:"ils"}},{kind:"Field",name:{kind:"Name",value:"jpy"}},{kind:"Field",name:{kind:"Name",value:"sek"}},{kind:"Field",name:{kind:"Name",value:"usd"}},{kind:"Field",name:{kind:"Name",value:"eth"}},{kind:"Field",name:{kind:"Name",value:"grt"}},{kind:"Field",name:{kind:"Name",value:"usdc"}}]}}]}}]}}]},mFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ChargeForRow"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validCreditCardAmount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableMoreInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}},{kind:"Field",name:{kind:"Name",value:"isSalary"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidLedger"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableVatFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAmountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableEntityFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableMoreInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTagsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTypeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableVatFields"}}]}}]},pFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BankDepositInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"depositByCharge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionForTransactionsTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"isOpen"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionForTransactionsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"sourceEffectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"cryptoExchangeRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},AFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IncomeChargesChart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"ChargeFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allCharges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"eventExchangeRates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"aud"}},{kind:"Field",name:{kind:"Name",value:"cad"}},{kind:"Field",name:{kind:"Name",value:"eur"}},{kind:"Field",name:{kind:"Name",value:"gbp"}},{kind:"Field",name:{kind:"Name",value:"jpy"}},{kind:"Field",name:{kind:"Name",value:"sek"}},{kind:"Field",name:{kind:"Name",value:"usd"}},{kind:"Field",name:{kind:"Name",value:"date"}}]}},{kind:"Field",name:{kind:"Name",value:"debitExchangeRates"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"aud"}},{kind:"Field",name:{kind:"Name",value:"cad"}},{kind:"Field",name:{kind:"Name",value:"eur"}},{kind:"Field",name:{kind:"Name",value:"gbp"}},{kind:"Field",name:{kind:"Name",value:"jpy"}},{kind:"Field",name:{kind:"Name",value:"sek"}},{kind:"Field",name:{kind:"Name",value:"usd"}},{kind:"Field",name:{kind:"Name",value:"date"}}]}}]}}]}}]}}]}}]},gFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MonthlyIncomeExpenseChart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IncomeExpenseChartFilters"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"incomeExpenseChart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fromDate"}},{kind:"Field",name:{kind:"Name",value:"toDate"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MonthlyIncomeExpenseChartInfo"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MonthlyIncomeExpenseChartInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IncomeExpenseChart"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"monthlyData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"expense"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"date"}}]}}]}}]},vFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UncategorizedTransactionsByBusinessTrip"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uncategorizedTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}}]}}]}}]},yFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ChargeDepreciation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"depreciationRecordsByCharge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"DepreciationRecordRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DepreciationRecordRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DepreciationRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"activationDate"}},{kind:"Field",name:{kind:"Name",value:"category"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"percentage"}}]}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}}]},bFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DocumentsToChargeMatcher"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DocumentsFilters"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsByFilters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"DocumentsToMatchFields"}}]}},{kind:"Field",name:{kind:"Name",value:"charge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargeToMatchDocumentsFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DocumentsToMatchFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargeToMatchDocumentsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}}]}}]}}]},xFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RecentClientIssuedDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recentDocumentsByClient"},arguments:[{kind:"Argument",name:{kind:"Name",value:"clientId"},value:{kind:"Variable",name:{kind:"Name",value:"clientId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issuedDocumentInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"externalId"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"TableDocumentsRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableDocumentsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"isIncome"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"allocationNumber"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"issuedDocumentInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"originalDocument"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}}]}}]}}]},wFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RecentIssuedDocumentsOfSameType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DocumentType"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recentIssuedDocumentsByType"},arguments:[{kind:"Argument",name:{kind:"Name",value:"documentType"},value:{kind:"Variable",name:{kind:"Name",value:"documentType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TableDocumentsRowFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TableDocumentsRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"isIncome"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"allocationNumber"}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"issuedDocumentInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"originalDocument"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}}]}}]}}]},kFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchBusiness"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"address"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"exemptDealer"}},{kind:"Field",name:{kind:"Name",value:"governmentId"}},{kind:"Field",name:{kind:"Name",value:"hebrewName"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phoneNumber"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"website"}},{kind:"Field",name:{kind:"Name",value:"suggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phrases"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"emailListener"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"internalEmailLinks"}},{kind:"Field",name:{kind:"Name",value:"emailBody"}},{kind:"Field",name:{kind:"Name",value:"attachments"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"optionalVAT"}},{kind:"Field",name:{kind:"Name",value:"irsCode"}}]}}]}}]}}]},SFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EditDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"vatReportDateOverride"}},{kind:"Field",name:{kind:"Name",value:"noVatAmount"}},{kind:"Field",name:{kind:"Name",value:"allocationNumber"}},{kind:"Field",name:{kind:"Name",value:"exchangeRateOverride"}}]}}]}}]}}]},CFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EditTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsByIDs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionIDs"},value:{kind:"Variable",name:{kind:"Name",value:"transactionIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"isFee"}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},_Ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ClientInfoForDocumentIssuing"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"client"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessId"},value:{kind:"Variable",name:{kind:"Name",value:"businessId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"greenInvoiceInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IssueDocumentClientFields"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IssueDocumentClientFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GreenInvoiceClient"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"taxId"}},{kind:"Field",name:{kind:"Name",value:"address"}},{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"zip"}},{kind:"Field",name:{kind:"Name",value:"fax"}},{kind:"Field",name:{kind:"Name",value:"mobile"}}]}}]},NFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllBusinessTrips"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allBusinessTrips"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},ALe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllDepreciationCategories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"depreciationCategories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"percentage"}}]}}]}}]},gLe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllEmployeesByEmployer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"employerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"employeesByEmployerId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"employerId"},value:{kind:"Variable",name:{kind:"Name",value:"employerId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},EFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllPensionFunds"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allPensionFunds"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},FFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllTrainingFunds"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allTrainingFunds"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},v3={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AttendeesByBusinessTrip"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},DFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchMultipleBusinesses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businesses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"Variable",name:{kind:"Name",value:"businessIds"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},TFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchMultipleCharges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"chargesByIDs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeIDs"},value:{kind:"Variable",name:{kind:"Name",value:"chargeIds"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"invoicesCount"}}]}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"Field",name:{kind:"Name",value:"conversion"}},{kind:"Field",name:{kind:"Name",value:"property"}},{kind:"Field",name:{kind:"Name",value:"isInvoicePaymentDifferentCurrency"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"optionalVAT"}},{kind:"Field",name:{kind:"Name",value:"optionalDocuments"}}]}}]}}]},OFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EditCharge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"property"}},{kind:"Field",name:{kind:"Name",value:"conversion"}},{kind:"Field",name:{kind:"Name",value:"isInvoicePaymentDifferentCurrency"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"optionalVAT"}},{kind:"Field",name:{kind:"Name",value:"optionalDocuments"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"yearsOfRelevance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"amount"}}]}}]}}]}}]},BFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EditSalaryRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"month"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"employeeIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salaryRecordsByDates"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fromDate"},value:{kind:"Variable",name:{kind:"Name",value:"month"}}},{kind:"Argument",name:{kind:"Name",value:"toDate"},value:{kind:"Variable",name:{kind:"Name",value:"month"}}},{kind:"Argument",name:{kind:"Name",value:"employeeIDs"},value:{kind:"Variable",name:{kind:"Name",value:"employeeIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"directAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"baseAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"employer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployeePercentage"}},{kind:"Field",name:{kind:"Name",value:"pensionEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployerPercentage"}},{kind:"Field",name:{kind:"Name",value:"compensationsAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"compensationsPercentage"}},{kind:"Field",name:{kind:"Name",value:"trainingFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployeePercentage"}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployerPercentage"}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"incomeTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"healthInsuranceAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"globalAdditionalHoursAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"bonus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"gift"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"travelAndSubsistence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"recovery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"notionalExpense"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"vacationDays"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"added"}},{kind:"Field",name:{kind:"Name",value:"balance"}}]}},{kind:"Field",name:{kind:"Name",value:"vacationTakeout"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"workDays"}},{kind:"Field",name:{kind:"Name",value:"sicknessDays"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"}}]}}]}}]}}]},jFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SortCodeToUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sortCode"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"defaultIrsCode"}}]}}]}}]},IFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TaxCategoryToUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxCategory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"irsCode"}}]}}]}}]},PFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MiscExpenseTransactionFields"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsByIDs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionIDs"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"transactionId"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"exactEffectiveDate"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},MFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NewDocumentDraftByCharge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newDocumentInfoDraftByCharge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NewDocumentInfo"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IssueDocumentClientFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GreenInvoiceClient"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"taxId"}},{kind:"Field",name:{kind:"Name",value:"address"}},{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"zip"}},{kind:"Field",name:{kind:"Name",value:"fax"}},{kind:"Field",name:{kind:"Name",value:"mobile"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewDocumentInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"remarks"}},{kind:"Field",name:{kind:"Name",value:"footer"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"dueDate"}},{kind:"Field",name:{kind:"Name",value:"lang"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"vatType"}},{kind:"Field",name:{kind:"Name",value:"discount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"rounding"}},{kind:"Field",name:{kind:"Name",value:"signed"}},{kind:"Field",name:{kind:"Name",value:"maxPayments"}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IssueDocumentClientFields"}}]}},{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"itemId"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"vatRate"}},{kind:"Field",name:{kind:"Name",value:"vatType"}}]}},{kind:"Field",name:{kind:"Name",value:"payment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"subType"}},{kind:"Field",name:{kind:"Name",value:"bankName"}},{kind:"Field",name:{kind:"Name",value:"bankBranch"}},{kind:"Field",name:{kind:"Name",value:"bankAccount"}},{kind:"Field",name:{kind:"Name",value:"chequeNum"}},{kind:"Field",name:{kind:"Name",value:"accountId"}},{kind:"Field",name:{kind:"Name",value:"transactionId"}},{kind:"Field",name:{kind:"Name",value:"appType"}},{kind:"Field",name:{kind:"Name",value:"cardType"}},{kind:"Field",name:{kind:"Name",value:"cardNum"}},{kind:"Field",name:{kind:"Name",value:"dealType"}},{kind:"Field",name:{kind:"Name",value:"numPayments"}},{kind:"Field",name:{kind:"Name",value:"firstPayment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedDocumentIds"}},{kind:"Field",name:{kind:"Name",value:"linkedPaymentId"}}]}}]},RFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NewDocumentDraftByDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newDocumentInfoDraftByDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NewDocumentInfo"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IssueDocumentClientFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GreenInvoiceClient"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"taxId"}},{kind:"Field",name:{kind:"Name",value:"address"}},{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"zip"}},{kind:"Field",name:{kind:"Name",value:"fax"}},{kind:"Field",name:{kind:"Name",value:"mobile"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewDocumentInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"remarks"}},{kind:"Field",name:{kind:"Name",value:"footer"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"dueDate"}},{kind:"Field",name:{kind:"Name",value:"lang"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"vatType"}},{kind:"Field",name:{kind:"Name",value:"discount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"rounding"}},{kind:"Field",name:{kind:"Name",value:"signed"}},{kind:"Field",name:{kind:"Name",value:"maxPayments"}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IssueDocumentClientFields"}}]}},{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"itemId"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"vatRate"}},{kind:"Field",name:{kind:"Name",value:"vatType"}}]}},{kind:"Field",name:{kind:"Name",value:"payment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"subType"}},{kind:"Field",name:{kind:"Name",value:"bankName"}},{kind:"Field",name:{kind:"Name",value:"bankBranch"}},{kind:"Field",name:{kind:"Name",value:"bankAccount"}},{kind:"Field",name:{kind:"Name",value:"chequeNum"}},{kind:"Field",name:{kind:"Name",value:"accountId"}},{kind:"Field",name:{kind:"Name",value:"transactionId"}},{kind:"Field",name:{kind:"Name",value:"appType"}},{kind:"Field",name:{kind:"Name",value:"cardType"}},{kind:"Field",name:{kind:"Name",value:"cardNum"}},{kind:"Field",name:{kind:"Name",value:"dealType"}},{kind:"Field",name:{kind:"Name",value:"numPayments"}},{kind:"Field",name:{kind:"Name",value:"firstPayment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedDocumentIds"}},{kind:"Field",name:{kind:"Name",value:"linkedPaymentId"}}]}}]},$Ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SimilarChargesByBusiness"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagsDifferentThan"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"descriptionDifferentThan"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"similarChargesByBusiness"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessId"},value:{kind:"Variable",name:{kind:"Name",value:"businessId"}}},{kind:"Argument",name:{kind:"Name",value:"tagsDifferentThan"},value:{kind:"Variable",name:{kind:"Name",value:"tagsDifferentThan"}}},{kind:"Argument",name:{kind:"Name",value:"descriptionDifferentThan"},value:{kind:"Variable",name:{kind:"Name",value:"descriptionDifferentThan"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SimilarChargesTable"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SimilarChargesTable"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}}]},LFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SimilarCharges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"withMissingTags"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"withMissingDescription"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagsDifferentThan"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"descriptionDifferentThan"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"similarCharges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}},{kind:"Argument",name:{kind:"Name",value:"withMissingTags"},value:{kind:"Variable",name:{kind:"Name",value:"withMissingTags"}}},{kind:"Argument",name:{kind:"Name",value:"withMissingDescription"},value:{kind:"Variable",name:{kind:"Name",value:"withMissingDescription"}}},{kind:"Argument",name:{kind:"Name",value:"tagsDifferentThan"},value:{kind:"Variable",name:{kind:"Name",value:"tagsDifferentThan"}}},{kind:"Argument",name:{kind:"Name",value:"descriptionDifferentThan"},value:{kind:"Variable",name:{kind:"Name",value:"descriptionDifferentThan"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SimilarChargesTable"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SimilarChargesTable"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}}]},UFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SimilarTransactions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"withMissingInfo"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"similarTransactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}},{kind:"Argument",name:{kind:"Name",value:"withMissingInfo"},value:{kind:"Variable",name:{kind:"Name",value:"withMissingInfo"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}}]}}]}}]},zFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UniformFormat"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fromDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"toDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uniformFormat"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fromDate"},value:{kind:"Variable",name:{kind:"Name",value:"fromDate"}}},{kind:"Argument",name:{kind:"Name",value:"toDate"},value:{kind:"Variable",name:{kind:"Name",value:"toDate"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bkmvdata"}},{kind:"Field",name:{kind:"Name",value:"ini"}}]}}]}}]},HFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountantApprovalsChargesTable"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"ChargeFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allCharges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}}]}}]}}]},VFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllContoReports"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allDynamicReports"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"updated"}}]}}]}}]},QFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ContoReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsSumFromLedgerRecords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsSum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"credit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"debit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]}}]},qFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TemplateForContoReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dynamicReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"template"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"parent"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"droppable"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"descendantSortCodes"}},{kind:"Field",name:{kind:"Name",value:"descendantFinancialEntities"}},{kind:"Field",name:{kind:"Name",value:"mergedSortCodes"}},{kind:"Field",name:{kind:"Name",value:"isOpen"}},{kind:"Field",name:{kind:"Name",value:"hebrewText"}}]}}]}}]}}]}}]},GFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CorporateTaxRulingComplianceReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"years"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"corporateTaxRulingComplianceReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"years"},value:{kind:"Variable",name:{kind:"Name",value:"years"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"totalIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"rndRelativeToIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rule"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"}}]}},{kind:"Field",name:{kind:"Name",value:"localDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"localDevelopmentRelativeToRnd"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rule"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignDevelopmentRelativeToRnd"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rule"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"}}]}},{kind:"Field",name:{kind:"Name",value:"businessTripRndExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CorporateTaxRulingComplianceReport"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"differences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"rndRelativeToIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"}}]}},{kind:"Field",name:{kind:"Name",value:"localDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"localDevelopmentRelativeToRnd"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignDevelopmentRelativeToRnd"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"}}]}},{kind:"Field",name:{kind:"Name",value:"businessTripRndExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CorporateTaxRulingReportRuleCellFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CorporateTaxRule"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"rule"}},{kind:"Field",name:{kind:"Name",value:"percentage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"isCompliant"}}]}}]},WFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProfitAndLossReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reportYear"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"referenceYears"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"profitAndLossReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"reportYear"},value:{kind:"Variable",name:{kind:"Name",value:"reportYear"}}},{kind:"Argument",name:{kind:"Name",value:"referenceYears"},value:{kind:"Variable",name:{kind:"Name",value:"referenceYears"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"report"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"revenue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"costOfSales"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"grossProfit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"marketingExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"managementAndGeneralExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"operatingProfit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"financialExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"otherIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"profitBeforeTax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"tax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"netProfit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"revenue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"costOfSales"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"grossProfit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"marketingExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"managementAndGeneralExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"operatingProfit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"financialExpenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"otherIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"profitBeforeTax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"tax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"netProfit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReportSubCommentaryTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ReportCommentarySubRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"financialEntity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReportCommentaryTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ReportCommentary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReportSubCommentaryTableFields"}}]}}]}}]}}]},KFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TaxReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reportYear"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"referenceYears"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"reportYear"},value:{kind:"Variable",name:{kind:"Name",value:"reportYear"}}},{kind:"Argument",name:{kind:"Name",value:"referenceYears"},value:{kind:"Variable",name:{kind:"Name",value:"referenceYears"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"report"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"profitBeforeTax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpensesByRecords"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpensesForTax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"fines"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"untaxableGifts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"businessTripsExcessExpensesAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"salaryExcessExpensesAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"reserves"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"nontaxableLinkage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"taxableIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxRate"}},{kind:"Field",name:{kind:"Name",value:"specialTaxableIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"specialTaxRate"}},{kind:"Field",name:{kind:"Name",value:"annualTaxExpense"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"reference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"profitBeforeTax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpensesByRecords"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"researchAndDevelopmentExpensesForTax"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"fines"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"untaxableGifts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"businessTripsExcessExpensesAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"salaryExcessExpensesAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"reserves"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"nontaxableLinkage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"taxableIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxRate"}},{kind:"Field",name:{kind:"Name",value:"specialTaxableIncome"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ReportCommentaryTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"specialTaxRate"}},{kind:"Field",name:{kind:"Name",value:"annualTaxExpense"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReportSubCommentaryTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ReportCommentarySubRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"financialEntity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReportCommentaryTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ReportCommentary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReportSubCommentaryTableFields"}}]}}]}}]}}]},YFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TrialBalanceReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsSumFromLedgerRecords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TrialBalanceTableFields"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TrialBalanceTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTransactionsSum"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"credit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"debit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"total"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}}]},XFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ValidatePcn874Reports"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fromMonthDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"toMonthDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pcnByDate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessId"},value:{kind:"Variable",name:{kind:"Name",value:"businessId"}}},{kind:"Argument",name:{kind:"Name",value:"fromMonthDate"},value:{kind:"Variable",name:{kind:"Name",value:"fromMonthDate"}}},{kind:"Argument",name:{kind:"Name",value:"toMonthDate"},value:{kind:"Variable",name:{kind:"Name",value:"toMonthDate"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"stream"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"diffContent"}}]}}]}}]},ZFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VatMonthlyReport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"VatReportFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vatReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportIncomeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportExpensesFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportMissingInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportMiscTableFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportBusinessTripsFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"chargeAccountantStatus"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportIncomeRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportAccountantApprovalFields"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"vatNumber"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"documentSerial"}},{kind:"Field",name:{kind:"Name",value:"documentDate"}},{kind:"Field",name:{kind:"Name",value:"chargeDate"}},{kind:"Field",name:{kind:"Name",value:"taxReducedForeignAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxReducedLocalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportExpensesRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportAccountantApprovalFields"}},{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"vatNumber"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"documentSerial"}},{kind:"Field",name:{kind:"Name",value:"documentDate"}},{kind:"Field",name:{kind:"Name",value:"chargeDate"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"localAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"localVat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"foreignVatAfterDeduction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"localVatAfterDeduction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"roundedLocalVatAfterDeduction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"taxReducedLocalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validCreditCardAmount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableMoreInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}},{kind:"Field",name:{kind:"Name",value:"isSalary"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidLedger"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableVatFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAmountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableEntityFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableMoreInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTagsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTypeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableVatFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableRowFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportIncomeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportIncomeRowFields"}},{kind:"Field",name:{kind:"Name",value:"taxReducedLocalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportExpensesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expenses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VatReportExpensesRowFields"}},{kind:"Field",name:{kind:"Name",value:"roundedLocalVatAfterDeduction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"taxReducedLocalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportMissingInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportMiscTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"differentMonthDoc"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VatReportBusinessTripsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VatReportResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrips"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}}]}}]},JFt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratePCN"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"monthDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"financialEntityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pcnFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"monthDate"},value:{kind:"Variable",name:{kind:"Name",value:"monthDate"}}},{kind:"Argument",name:{kind:"Name",value:"financialEntityId"},value:{kind:"Variable",name:{kind:"Name",value:"financialEntityId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reportContent"}},{kind:"Field",name:{kind:"Name",value:"fileName"}}]}}]}}]},eDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"YearlyLedger"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"year"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"yearlyLedgerReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"financialEntitiesInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"openingBalance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCredit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"totalDebit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"closingBalance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"reference"}},{kind:"Field",name:{kind:"Name",value:"counterParty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"LedgerCsvFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LedgerCsvFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"YearlyLedgerReport"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"financialEntitiesInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"openingBalance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCredit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"totalDebit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"closingBalance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"invoiceDate"}},{kind:"Field",name:{kind:"Name",value:"valueDate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"reference"}},{kind:"Field",name:{kind:"Name",value:"counterParty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"balance"}}]}}]}}]}}]},tDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SalaryScreenRecords"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fromDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"toDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"employeeIDs"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salaryRecordsByDates"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fromDate"},value:{kind:"Variable",name:{kind:"Name",value:"fromDate"}}},{kind:"Argument",name:{kind:"Name",value:"toDate"},value:{kind:"Variable",name:{kind:"Name",value:"toDate"}}},{kind:"Argument",name:{kind:"Name",value:"employeeIDs"},value:{kind:"Variable",name:{kind:"Name",value:"employeeIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesRecordEmployeeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesRecordMainSalaryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"baseAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"directAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"globalAdditionalHoursAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"bonus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"gift"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"recovery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"vacationTakeout"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesRecordFundsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployeePercentage"}},{kind:"Field",name:{kind:"Name",value:"pensionEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"pensionEmployerPercentage"}},{kind:"Field",name:{kind:"Name",value:"compensationsAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"compensationsPercentage"}},{kind:"Field",name:{kind:"Name",value:"trainingFund"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployeePercentage"}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"trainingFundEmployerPercentage"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesRecordInsurancesAndTaxesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"healthInsuranceAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployeeAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"socialSecurityEmployerAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"incomeTaxAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"notionalExpense"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesRecordWorkFrameFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"vacationDays"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"added"}},{kind:"Field",name:{kind:"Name",value:"taken"}},{kind:"Field",name:{kind:"Name",value:"balance"}}]}},{kind:"Field",name:{kind:"Name",value:"workDays"}},{kind:"Field",name:{kind:"Name",value:"sicknessDays"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesRecordFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesRecordEmployeeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesRecordMainSalaryFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesRecordFundsFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesRecordInsurancesAndTaxesFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesRecordWorkFrameFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesMonthFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesRecordFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SalariesTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Salary"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SalariesMonthFields"}}]}}]},nDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllCharges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"ChargeFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allCharges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalPages"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validCreditCardAmount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableMoreInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}},{kind:"Field",name:{kind:"Name",value:"isSalary"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidLedger"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableVatFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAmountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableEntityFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableMoreInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTagsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTypeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableVatFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableRowFields"}}]}}]},rDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ChargeScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validCreditCardAmount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableMoreInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}},{kind:"Field",name:{kind:"Name",value:"isSalary"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidLedger"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableVatFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAmountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableEntityFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableMoreInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTagsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTypeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableVatFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableRowFields"}}]}}]},iDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MissingInfoCharges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"chargesWithMissingRequiredInfo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableFields"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalPages"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"accountantApproval"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableAmountFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditcardBankCharge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validCreditCardAmount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripCharge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessTrip"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDateFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"minEventDate"}},{kind:"Field",name:{kind:"Name",value:"minDebitDate"}},{kind:"Field",name:{kind:"Name",value:"minDocumentsDate"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableDescriptionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableEntityFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableMoreInfoFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}},{kind:"Field",name:{kind:"Name",value:"isSalary"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidLedger"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTagsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ValidationData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeSuggestions"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxCategory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableTypeFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableVatFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validationData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missingInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableRowFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChargeMetadata"}},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsCount"}},{kind:"Field",name:{kind:"Name",value:"ledgerCount"}},{kind:"Field",name:{kind:"Name",value:"transactionsCount"}},{kind:"Field",name:{kind:"Name",value:"miscExpensesCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalAmount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAccountantApprovalFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableAmountFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableBusinessTripFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDateFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableDescriptionFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableEntityFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableMoreInfoFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTagsFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTaxCategoryFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"defer"}}]},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableTypeFields"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableVatFields"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ChargesTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Charge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"owner"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ChargesTableRowFields"}}]}}]},aDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DocumentsScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DocumentsFilters"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentsByFilters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"image"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FinancialDocument"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creditor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"debtor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"vat"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}},{kind:"Field",name:{kind:"Name",value:"serialNumber"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]}}]}}]},oDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MonthlyDocumentDraftByClient"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"issueMonth"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clientMonthlyChargeDraft"},arguments:[{kind:"Argument",name:{kind:"Name",value:"clientId"},value:{kind:"Variable",name:{kind:"Name",value:"clientId"}}},{kind:"Argument",name:{kind:"Name",value:"issueMonth"},value:{kind:"Variable",name:{kind:"Name",value:"issueMonth"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NewDocumentInfo"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IssueDocumentClientFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GreenInvoiceClient"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"taxId"}},{kind:"Field",name:{kind:"Name",value:"address"}},{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"zip"}},{kind:"Field",name:{kind:"Name",value:"fax"}},{kind:"Field",name:{kind:"Name",value:"mobile"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewDocumentInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"remarks"}},{kind:"Field",name:{kind:"Name",value:"footer"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"dueDate"}},{kind:"Field",name:{kind:"Name",value:"lang"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"vatType"}},{kind:"Field",name:{kind:"Name",value:"discount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"rounding"}},{kind:"Field",name:{kind:"Name",value:"signed"}},{kind:"Field",name:{kind:"Name",value:"maxPayments"}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IssueDocumentClientFields"}}]}},{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"itemId"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"vatRate"}},{kind:"Field",name:{kind:"Name",value:"vatType"}}]}},{kind:"Field",name:{kind:"Name",value:"payment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"subType"}},{kind:"Field",name:{kind:"Name",value:"bankName"}},{kind:"Field",name:{kind:"Name",value:"bankBranch"}},{kind:"Field",name:{kind:"Name",value:"bankAccount"}},{kind:"Field",name:{kind:"Name",value:"chequeNum"}},{kind:"Field",name:{kind:"Name",value:"accountId"}},{kind:"Field",name:{kind:"Name",value:"transactionId"}},{kind:"Field",name:{kind:"Name",value:"appType"}},{kind:"Field",name:{kind:"Name",value:"cardType"}},{kind:"Field",name:{kind:"Name",value:"cardNum"}},{kind:"Field",name:{kind:"Name",value:"dealType"}},{kind:"Field",name:{kind:"Name",value:"numPayments"}},{kind:"Field",name:{kind:"Name",value:"firstPayment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedDocumentIds"}},{kind:"Field",name:{kind:"Name",value:"linkedPaymentId"}}]}}]},vLe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MonthlyDocumentsDrafts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"issueMonth"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clientMonthlyChargesDrafts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"issueMonth"},value:{kind:"Variable",name:{kind:"Name",value:"issueMonth"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NewDocumentInfo"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IssueDocumentClientFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GreenInvoiceClient"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"taxId"}},{kind:"Field",name:{kind:"Name",value:"address"}},{kind:"Field",name:{kind:"Name",value:"city"}},{kind:"Field",name:{kind:"Name",value:"zip"}},{kind:"Field",name:{kind:"Name",value:"fax"}},{kind:"Field",name:{kind:"Name",value:"mobile"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewDocumentInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"remarks"}},{kind:"Field",name:{kind:"Name",value:"footer"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"dueDate"}},{kind:"Field",name:{kind:"Name",value:"lang"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"vatType"}},{kind:"Field",name:{kind:"Name",value:"discount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"rounding"}},{kind:"Field",name:{kind:"Name",value:"signed"}},{kind:"Field",name:{kind:"Name",value:"maxPayments"}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"IssueDocumentClientFields"}}]}},{kind:"Field",name:{kind:"Name",value:"income"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"itemId"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"quantity"}},{kind:"Field",name:{kind:"Name",value:"vatRate"}},{kind:"Field",name:{kind:"Name",value:"vatType"}}]}},{kind:"Field",name:{kind:"Name",value:"payment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencyRate"}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"subType"}},{kind:"Field",name:{kind:"Name",value:"bankName"}},{kind:"Field",name:{kind:"Name",value:"bankBranch"}},{kind:"Field",name:{kind:"Name",value:"bankAccount"}},{kind:"Field",name:{kind:"Name",value:"chequeNum"}},{kind:"Field",name:{kind:"Name",value:"accountId"}},{kind:"Field",name:{kind:"Name",value:"transactionId"}},{kind:"Field",name:{kind:"Name",value:"appType"}},{kind:"Field",name:{kind:"Name",value:"cardType"}},{kind:"Field",name:{kind:"Name",value:"cardNum"}},{kind:"Field",name:{kind:"Name",value:"dealType"}},{kind:"Field",name:{kind:"Name",value:"numPayments"}},{kind:"Field",name:{kind:"Name",value:"firstPayment"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedDocumentIds"}},{kind:"Field",name:{kind:"Name",value:"linkedPaymentId"}}]}}]},sDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BalanceReportExtendedTransactions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsByIDs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionIDs"},value:{kind:"Variable",name:{kind:"Name",value:"transactionIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionForTransactionsTableFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionForTransactionsTableFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"eventDate"}},{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"sourceEffectiveDate"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"cryptoExchangeRate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rate"}}]}},{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceDescription"}},{kind:"Field",name:{kind:"Name",value:"referenceKey"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"missingInfoSuggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},lDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BalanceReportScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fromDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"toDate"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelessDate"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionsForBalanceReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fromDate"},value:{kind:"Variable",name:{kind:"Name",value:"fromDate"}}},{kind:"Argument",name:{kind:"Name",value:"toDate"},value:{kind:"Variable",name:{kind:"Name",value:"toDate"}}},{kind:"Argument",name:{kind:"Name",value:"ownerId"},value:{kind:"Variable",name:{kind:"Name",value:"ownerId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amountUsd"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"raw"}}]}},{kind:"Field",name:{kind:"Name",value:"date"}},{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"isFee"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]}}]},cDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DepreciationReportScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DepreciationReportFilter"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"depreciationReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"categories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"category"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"percentage"}}]}},{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"chargeId"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"purchaseDate"}},{kind:"Field",name:{kind:"Name",value:"activationDate"}},{kind:"Field",name:{kind:"Name",value:"statutoryDepreciationRate"}},{kind:"Field",name:{kind:"Name",value:"claimedDepreciationRate"}},{kind:"FragmentSpread",name:{kind:"Name",value:"DepreciationReportRecordCore"}}]}},{kind:"Field",name:{kind:"Name",value:"summary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"DepreciationReportRecordCore"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"summary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"DepreciationReportRecordCore"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DepreciationReportRecordCore"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DepreciationCoreRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalCost"}},{kind:"Field",name:{kind:"Name",value:"reportYearDelta"}},{kind:"Field",name:{kind:"Name",value:"totalDepreciableCosts"}},{kind:"Field",name:{kind:"Name",value:"reportYearClaimedDepreciation"}},{kind:"Field",name:{kind:"Name",value:"pastYearsAccumulatedDepreciation"}},{kind:"Field",name:{kind:"Name",value:"totalDepreciation"}},{kind:"Field",name:{kind:"Name",value:"netValue"}}]}}]},uDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Shaam6111ReportScreen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"year"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shaam6111"},arguments:[{kind:"Argument",name:{kind:"Name",value:"year"},value:{kind:"Variable",name:{kind:"Name",value:"year"}}},{kind:"Argument",name:{kind:"Name",value:"businessId"},value:{kind:"Variable",name:{kind:"Name",value:"businessId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"year"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Shaam6111DataContent"}}]}},{kind:"Field",name:{kind:"Name",value:"business"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Shaam6111DataContentHeaderBusiness"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Shaam6111DataContentHeader"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Shaam6111Data"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxYear"}},{kind:"Field",name:{kind:"Name",value:"businessDescription"}},{kind:"Field",name:{kind:"Name",value:"taxFileNumber"}},{kind:"Field",name:{kind:"Name",value:"idNumber"}},{kind:"Field",name:{kind:"Name",value:"vatFileNumber"}},{kind:"Field",name:{kind:"Name",value:"withholdingTaxFileNumber"}},{kind:"Field",name:{kind:"Name",value:"businessType"}},{kind:"Field",name:{kind:"Name",value:"reportingMethod"}},{kind:"Field",name:{kind:"Name",value:"currencyType"}},{kind:"Field",name:{kind:"Name",value:"amountsInThousands"}},{kind:"Field",name:{kind:"Name",value:"accountingMethod"}},{kind:"Field",name:{kind:"Name",value:"accountingSystem"}},{kind:"Field",name:{kind:"Name",value:"softwareRegistrationNumber"}},{kind:"Field",name:{kind:"Name",value:"isPartnership"}},{kind:"Field",name:{kind:"Name",value:"partnershipCount"}},{kind:"Field",name:{kind:"Name",value:"partnershipProfitShare"}},{kind:"Field",name:{kind:"Name",value:"ifrsImplementationYear"}},{kind:"Field",name:{kind:"Name",value:"ifrsReportingOption"}},{kind:"Field",name:{kind:"Name",value:"includesProfitLoss"}},{kind:"Field",name:{kind:"Name",value:"includesTaxAdjustment"}},{kind:"Field",name:{kind:"Name",value:"includesBalanceSheet"}},{kind:"Field",name:{kind:"Name",value:"industryCode"}},{kind:"Field",name:{kind:"Name",value:"auditOpinionType"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Shaam6111DataContentProfitLoss"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Shaam6111Data"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"profitAndLoss"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"label"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Shaam6111DataContentTaxAdjustment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Shaam6111Data"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"taxAdjustment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"label"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Shaam6111DataContentBalanceSheet"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Shaam6111Data"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"balanceSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"label"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Shaam6111DataContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Shaam6111Data"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Shaam6111DataContentHeader"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Shaam6111DataContentProfitLoss"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Shaam6111DataContentTaxAdjustment"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Shaam6111DataContentBalanceSheet"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Shaam6111DataContentHeaderBusiness"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Business"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]},dDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllSortCodesForScreen"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allSortCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"defaultIrsCode"}}]}}]}}]},fDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllTagsScreen"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EditTagFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"EditTagFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tag"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"parent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},hDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllTaxCategoriesForScreen"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxCategories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"sortCode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},mDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddBusinessTripAccommodationsExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddBusinessTripAccommodationsExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addBusinessTripAccommodationsExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},pDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddBusinessTripCarRentalExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddBusinessTripCarRentalExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addBusinessTripCarRentalExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},ADt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddBusinessTripFlightsExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddBusinessTripFlightsExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addBusinessTripFlightsExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},gDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddBusinessTripOtherExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddBusinessTripOtherExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addBusinessTripOtherExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},vDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddBusinessTripTravelAndSubsistenceExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddBusinessTripTravelAndSubsistenceExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addBusinessTripTravelAndSubsistenceExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},yDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddDepreciationRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertDepreciationRecordInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertDepreciationRecord"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DepreciationRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},bDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddSortCode"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"defaultIrsCode"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addSortCode"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"defaultIrsCode"},value:{kind:"Variable",name:{kind:"Name",value:"defaultIrsCode"}}}]}]}}]},xDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"tagName"}}}]}]}}]},wDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GenerateBalanceCharge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"balanceRecords"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertMiscExpenseInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateBalanceCharge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"Argument",name:{kind:"Name",value:"balanceRecords"},value:{kind:"Variable",name:{kind:"Name",value:"balanceRecords"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]},kDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BatchUpdateCharges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateChargeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"batchUpdateCharges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeIds"},value:{kind:"Variable",name:{kind:"Name",value:"chargeIds"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BatchUpdateChargesSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},SDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CategorizeBusinessTripExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CategorizeBusinessTripExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"categorizeBusinessTripExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},CDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CategorizeIntoExistingBusinessTripExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CategorizeIntoExistingBusinessTripExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"categorizeIntoExistingBusinessTripExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},_Dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CloseDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"closeDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}]}]}}]},NDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FlagForeignFeeTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"flagForeignFeeTransactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]},EDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MergeChargesByTransactionReference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mergeChargesByTransactionReference"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]},FDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CalculateCreditcardTransactionsDebitDate"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"calculateCreditcardTransactionsDebitDate"}}]}}]},DDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreditShareholdersBusinessTripTravelAndSubsistence"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creditShareholdersBusinessTripTravelAndSubsistence"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessTripId"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}}}]}]}}]},TDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteBusinessTripAttendee"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteBusinessTripAttendeeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteBusinessTripAttendee"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},ODt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteBusinessTripExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripExpenseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteBusinessTripExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessTripExpenseId"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripExpenseId"}}}]}]}}]},BDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCharge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCharge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}]}]}}]},jDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDepreciationRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"depreciationRecordId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteDepreciationRecord"},arguments:[{kind:"Argument",name:{kind:"Name",value:"depreciationRecordId"},value:{kind:"Variable",name:{kind:"Name",value:"depreciationRecordId"}}}]}]}}]},IDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}]}]}}]},PDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDynamicReportTemplate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteDynamicReportTemplate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}]}]}}]},MDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMiscExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMiscExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}]}]}}]},RDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"tagId"}}}]}]}}]},$Dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FetchIncomeDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fetchIncomeDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerId"},value:{kind:"Variable",name:{kind:"Name",value:"ownerId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewFetchedDocumentFields"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewFetchedDocumentFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},LDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllClients"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allClients"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"greenInvoiceId"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"originalBusiness"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},UDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllOpenContracts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allOpenContracts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"greenInvoiceId"}},{kind:"Field",name:{kind:"Name",value:"emails"}},{kind:"Field",name:{kind:"Name",value:"originalBusiness"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"purchaseOrder"}},{kind:"Field",name:{kind:"Name",value:"startDate"}},{kind:"Field",name:{kind:"Name",value:"endDate"}},{kind:"Field",name:{kind:"Name",value:"remarks"}},{kind:"Field",name:{kind:"Name",value:"amount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"raw"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"formatted"}}]}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"billingCycle"}},{kind:"Field",name:{kind:"Name",value:"isActive"}},{kind:"Field",name:{kind:"Name",value:"product"}},{kind:"Field",name:{kind:"Name",value:"plan"}},{kind:"Field",name:{kind:"Name",value:"signedAgreement"}},{kind:"Field",name:{kind:"Name",value:"msCloud"}}]}}]}}]},zDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllBusinesses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allBusinesses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},HDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllCountries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allCountries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}}]}}]},VDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllFinancialEntities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allFinancialEntities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},QDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllSortCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allSortCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"defaultIrsCode"}}]}}]}}]},qDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allTags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namePath"}}]}}]}}]},GDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllTaxCategories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxCategories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},WDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertBusinessTripAttendee"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertBusinessTripAttendeeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertBusinessTripAttendee"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},KDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertBusinessTrip"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertBusinessTripInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertBusinessTrip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},YDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertBusiness"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertNewBusinessInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertNewBusiness"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},XDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"record"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertDocumentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"record"},value:{kind:"Variable",name:{kind:"Name",value:"record"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InsertDocumentSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"document"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ZDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertDynamicReportTemplate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"template"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertDynamicReportTemplate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"template"},value:{kind:"Variable",name:{kind:"Name",value:"template"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},JDt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertMiscExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertMiscExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertMiscExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]},eTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertSalaryRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"salaryRecords"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SalaryRecordInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertSalaryRecords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"salaryRecords"},value:{kind:"Variable",name:{kind:"Name",value:"salaryRecords"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InsertSalaryRecordsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salaryRecords"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},tTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InsertTaxCategory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InsertTaxCategoryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertTaxCategory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},nTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"IssueGreenInvoiceDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"emailContent"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attachment"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issueGreenInvoiceDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}},{kind:"Argument",name:{kind:"Name",value:"emailContent"},value:{kind:"Variable",name:{kind:"Name",value:"emailContent"}}},{kind:"Argument",name:{kind:"Name",value:"attachment"},value:{kind:"Variable",name:{kind:"Name",value:"attachment"}}},{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]},rTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"IssueMonthlyDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"generateDocumentsInfo"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issueGreenInvoiceDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"generateDocumentsInfo"},value:{kind:"Variable",name:{kind:"Name",value:"generateDocumentsInfo"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"errors"}}]}}]}}]},iTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MergeBusinesses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetBusinessId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessIdsToMerge"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mergeBusinesses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetBusinessId"},value:{kind:"Variable",name:{kind:"Name",value:"targetBusinessId"}}},{kind:"Argument",name:{kind:"Name",value:"businessIdsToMerge"},value:{kind:"Variable",name:{kind:"Name",value:"businessIdsToMerge"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]},aTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MergeCharges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"baseChargeID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeIdsToMerge"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NamedType",name:{kind:"Name",value:"UpdateChargeInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mergeCharges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"baseChargeID"},value:{kind:"Variable",name:{kind:"Name",value:"baseChargeID"}}},{kind:"Argument",name:{kind:"Name",value:"chargeIdsToMerge"},value:{kind:"Variable",name:{kind:"Name",value:"chargeIdsToMerge"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MergeChargeSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},oTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PreviewGreenInvoiceDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"NewDocumentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"previewGreenInvoiceDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}]}]}}]},sTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RegenerateLedger"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"regenerateLedgerRecords"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Ledger"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"records"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},lTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripAccommodationsExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateBusinessTripAccommodationsExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripAccommodationsExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},cTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripAccountantApproval"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AccountantStatus"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripAccountantApproval"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessTripId"},value:{kind:"Variable",name:{kind:"Name",value:"businessTripId"}}},{kind:"Argument",name:{kind:"Name",value:"approvalStatus"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}}]}]}}]},uTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripAttendee"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BusinessTripAttendeeUpdateInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripAttendee"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},dTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripCarRentalExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateBusinessTripCarRentalExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripCarRentalExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},fTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripFlightsExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateBusinessTripFlightsExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripFlightsExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},hTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripOtherExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateBusinessTripOtherExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripOtherExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},mTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTripTravelAndSubsistenceExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateBusinessTripTravelAndSubsistenceExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTripTravelAndSubsistenceExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},pTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusiness"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"businessId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateBusinessInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusiness"},arguments:[{kind:"Argument",name:{kind:"Name",value:"businessId"},value:{kind:"Variable",name:{kind:"Name",value:"businessId"}}},{kind:"Argument",name:{kind:"Name",value:"ownerId"},value:{kind:"Variable",name:{kind:"Name",value:"ownerId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LtdFinancialEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ATt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateChargeAccountantApproval"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AccountantStatus"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateChargeAccountantApproval"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}},{kind:"Argument",name:{kind:"Name",value:"approvalStatus"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}}]}]}}]},gTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCharge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateChargeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCharge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdateChargeSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},vTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDepreciationRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateDepreciationRecordInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateDepreciationRecord"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DepreciationRecord"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},yTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateDocumentFieldsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdateDocumentSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"document"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]},bTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMiscExpense"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateMiscExpenseInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateMiscExpense"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]},xTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSalaryRecord"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"salaryRecord"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SalaryRecordEditInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSalaryRecord"},arguments:[{kind:"Argument",name:{kind:"Name",value:"salaryRecord"},value:{kind:"Variable",name:{kind:"Name",value:"salaryRecord"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdateSalaryRecordSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salaryRecord"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"month"}},{kind:"Field",name:{kind:"Name",value:"employee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},wTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSortCode"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateSortCodeFieldsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSortCode"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},kTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateTagFieldsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"tagId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}]}]}}]},STt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTaxCategory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"taxCategoryId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateTaxCategoryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTaxCategory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"taxCategoryId"},value:{kind:"Variable",name:{kind:"Name",value:"taxCategoryId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TaxCategory"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},CTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateTransactionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTransaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},_Tt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTransactions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fields"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateTransactionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTransactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionIds"},value:{kind:"Variable",name:{kind:"Name",value:"transactionIds"}}},{kind:"Argument",name:{kind:"Name",value:"fields"},value:{kind:"Variable",name:{kind:"Name",value:"fields"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatedTransactionsSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transaction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},NTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UploadDocumentsFromGoogleDrive"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sharedFolderUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isSensitive"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"batchUploadDocumentsFromGoogleDrive"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sharedFolderUrl"},value:{kind:"Variable",name:{kind:"Name",value:"sharedFolderUrl"}}},{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}},{kind:"Argument",name:{kind:"Name",value:"isSensitive"},value:{kind:"Variable",name:{kind:"Name",value:"isSensitive"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UploadDocumentSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"document"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewFetchedDocumentFields"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewFetchedDocumentFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},ETt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UploadMultipleDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documents"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileScalar"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isSensitive"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"batchUploadDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"documents"},value:{kind:"Variable",name:{kind:"Name",value:"documents"}}},{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}},{kind:"Argument",name:{kind:"Name",value:"isSensitive"},value:{kind:"Variable",name:{kind:"Name",value:"isSensitive"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommonError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UploadDocumentSuccessfulResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"document"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewFetchedDocumentFields"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NewFetchedDocumentFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Document"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"documentType"}},{kind:"Field",name:{kind:"Name",value:"charge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userDescription"}},{kind:"Field",name:{kind:"Name",value:"counterparty"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},FTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UploadPayrollFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileScalar"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chargeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"insertSalaryRecordsFromFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"file"},value:{kind:"Variable",name:{kind:"Name",value:"file"}}},{kind:"Argument",name:{kind:"Name",value:"chargeId"},value:{kind:"Variable",name:{kind:"Name",value:"chargeId"}}}]}]}}]},DTt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserContext"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userContext"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminBusinessId"}},{kind:"Field",name:{kind:"Name",value:"defaultLocalCurrency"}},{kind:"Field",name:{kind:"Name",value:"defaultCryptoConversionFiatCurrency"}},{kind:"Field",name:{kind:"Name",value:"ledgerLock"}},{kind:"Field",name:{kind:"Name",value:"financialAccountsBusinessesIds"}}]}}]}}]};function pi(){const{search:t}=Vp(),e=w.useMemo(()=>new URLSearchParams(t),[t]),n=w.useCallback(()=>{if(window.history.pushState){const r=e.keys().next().done?"":`?${e.toString()}`,i=window.location.protocol+"//"+window.location.host+window.location.pathname+r;window.history.pushState({path:i},"",i)}},[e]);return{query:e,queryString:()=>e.toString(),get:r=>e?.get(r),set:(r,i)=>{i==null?e.delete(r):e.set(r,i),n()}}}const ua=w.createContext({filtersContext:null,setFiltersContext:()=>{}});function yLe(t){const[e,n]=w.useState(!1),r=t.moreInfo?t.moreInfo(t.item):null;return d.jsxs(d.Fragment,{children:[d.jsxs("tr",{children:[t.columns.map((i,a)=>i.disabled?null:d.jsx("td",{style:i.style,children:i.value(t.item,t.rowContext?t.rowContext(t.item):void 0)},String(a))),t.moreInfo&&d.jsx("td",{children:r===null?d.jsx("p",{children:"No Data Related"}):d.jsx(Mne,{title:"More Info",onClick:()=>n(!e)})})]}),(t.isShowAll||e)&&r!==null&&d.jsx("tr",{children:d.jsx("td",{colSpan:12,children:d.jsx(Fg,{style:{width:"100%"},withBorder:!0,shadow:"lg",children:r})})})]})}function _ne(t){const[e,n]=w.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex flex-row justify-end w-full",children:[t.pagination&&d.jsx(Xf,{className:"flex-auto",...t.pagination}),t.showButton===!0?d.jsx("button",{className:"inline-flex text-white bg-indigo-500 border-0 py-1.5 px-3 focus:outline-hidden hover:bg-indigo-600 rounded-sm text-sm",type:"button",onClick:()=>{n(r=>!r)},children:e?"Hide All":"Show All"}):null]}),d.jsxs(Fo,{striped:t.striped,highlightOnHover:t.highlightOnHover,children:[d.jsx("thead",{style:t.stickyHeader?{position:"sticky",top:0,zIndex:20}:{},children:d.jsxs("tr",{className:"px-10 py-10 title-font tracking-wider font-medium text-gray-900 text-sm bg-gray-100 rounded-tl rounded-bl",children:[t.columns.map((r,i)=>r.disabled?null:d.jsx("th",{children:r.title},String(i))),t.moreInfo&&d.jsx("th",{children:"More Info"})]})}),d.jsx("tbody",{children:t.items.map((r,i)=>d.jsx(yLe,{columns:t.columns,item:r,moreInfo:t.moreInfo,isShowAll:e,rowContext:t.rowContext},i))})]})]})}function Lt(t,e){return e}function Su(t,e,n){const r=t.__meta__?.deferredFields;if(!r)return!0;const a=e.definitions[0]?.name?.value,o=a&&r[a]||[];return o.length>0&&o.every(s=>n&&s in n)}const bLe=6048e5,TTt=864e5,ove=Symbol.for("constructDateFrom");function vs(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&ove in t?t[ove](e):t instanceof Date?new t.constructor(e):new Date(e)}function ca(t,e){return vs(e||t,t)}function Nne(t,e,n){const r=ca(t,n?.in);return isNaN(e)?vs(t,NaN):(e&&r.setDate(r.getDate()+e),r)}function Ene(t,e,n){const r=ca(t,n?.in);if(isNaN(e))return vs(t,NaN);if(!e)return r;const i=r.getDate(),a=vs(t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}let OTt={};function dD(){return OTt}function lS(t,e){const n=dD(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=ca(t,e?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function mE(t,e){return lS(t,{...e,weekStartsOn:1})}function xLe(t,e){const n=ca(t,e?.in),r=n.getFullYear(),i=vs(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=mE(i),o=vs(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const s=mE(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function sve(t){const e=ca(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Hx(t,...e){const n=vs.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function pE(t,e){const n=ca(t,e?.in);return n.setHours(0,0,0,0),n}function Fne(t,e,n){const[r,i]=Hx(n?.in,t,e),a=pE(r),o=pE(i),s=+a-sve(a),l=+o-sve(o);return Math.round((s-l)/TTt)}function BTt(t,e){const n=xLe(t,e),r=vs(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),mE(r)}function jTt(t,e,n){return Nne(t,e*7,n)}function wLe(t,e,n){return Ene(t,e*12,n)}function ITt(t,e){let n,r=e?.in;return t.forEach(i=>{!r&&typeof i=="object"&&(r=vs.bind(null,i));const a=ca(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),vs(r,n||NaN)}function PTt(t,e){let n,r=e?.in;return t.forEach(i=>{!r&&typeof i=="object"&&(r=vs.bind(null,i));const a=ca(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),vs(r,n||NaN)}function MTt(t,e,n){const[r,i]=Hx(n?.in,t,e);return+pE(r)==+pE(i)}function kLe(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function RTt(t){return!(!kLe(t)&&typeof t!="number"||isNaN(+ca(t)))}function $Tt(t,e,n){const[r,i]=Hx(n?.in,t,e),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function LTt(t,e,n){const[r,i]=Hx(n?.in,t,e),a=lve(r,i),o=Math.abs(Fne(r,i));r.setDate(r.getDate()-a*o);const s=+(lve(r,i)===-a),l=a*(o-s);return l===0?0:l}function lve(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function UTt(t,e){const n=ca(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function SLe(t,e){const[n,r]=Hx(t,e.start,e.end);return{start:n,end:r}}function zTt(t,e){const{start:n,end:r}=SLe(e?.in,t);let i=+n>+r;const a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=1;const l=[];for(;+o<=a;)l.push(vs(n,o)),o.setMonth(o.getMonth()+s);return i?l.reverse():l}function HTt(t,e){const n=ca(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function CLe(t,e){const n=ca(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function y3(t,e){const n=ca(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function VTt(t,e){const{start:n,end:r}=SLe(e?.in,t);let i=+n>+r;const a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=1;const l=[];for(;+o<=a;)l.push(vs(n,o)),o.setFullYear(o.getFullYear()+s);return i?l.reverse():l}function _Le(t,e){const n=dD(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=ca(t,e?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function QTt(t,e){return _Le(t,{...e,weekStartsOn:1})}const qTt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},GTt=(t,e,n)=>{let r;const i=qTt[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Lz(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const WTt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},KTt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},YTt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XTt={date:Lz({formats:WTt,defaultWidth:"full"}),time:Lz({formats:KTt,defaultWidth:"full"}),dateTime:Lz({formats:YTt,defaultWidth:"full"})},ZTt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JTt=(t,e,n,r)=>ZTt[t];function q_(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,s=n?.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{const o=t.defaultWidth,s=n?.width?String(n.width):t.defaultWidth;i=t.values[s]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return i[a]}}const eOt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tOt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nOt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rOt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iOt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},aOt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oOt=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},sOt={ordinalNumber:oOt,era:q_({values:eOt,defaultWidth:"wide"}),quarter:q_({values:tOt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:q_({values:nOt,defaultWidth:"wide"}),day:q_({values:rOt,defaultWidth:"wide"}),dayPeriod:q_({values:iOt,defaultWidth:"wide",formattingValues:aOt,defaultFormattingWidth:"wide"})};function G_(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;const o=a[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?cOt(s,f=>f.test(o)):lOt(s,f=>f.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function lOt(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function cOt(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function uOt(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=e.slice(i.length);return{value:o,rest:s}}}const dOt=/^(\d+)(th|st|nd|rd)?/i,fOt=/\d+/i,hOt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},mOt={any:[/^b/i,/^(a|c)/i]},pOt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},AOt={any:[/1/i,/2/i,/3/i,/4/i]},gOt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vOt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yOt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bOt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xOt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wOt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kOt={ordinalNumber:uOt({matchPattern:dOt,parsePattern:fOt,valueCallback:t=>parseInt(t,10)}),era:G_({matchPatterns:hOt,defaultMatchWidth:"wide",parsePatterns:mOt,defaultParseWidth:"any"}),quarter:G_({matchPatterns:pOt,defaultMatchWidth:"wide",parsePatterns:AOt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:G_({matchPatterns:gOt,defaultMatchWidth:"wide",parsePatterns:vOt,defaultParseWidth:"any"}),day:G_({matchPatterns:yOt,defaultMatchWidth:"wide",parsePatterns:bOt,defaultParseWidth:"any"}),dayPeriod:G_({matchPatterns:xOt,defaultMatchWidth:"any",parsePatterns:wOt,defaultParseWidth:"any"})},Dne={code:"en-US",formatDistance:GTt,formatLong:XTt,formatRelative:JTt,localize:sOt,match:kOt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function SOt(t,e){const n=ca(t,e?.in);return Fne(n,y3(n))+1}function NLe(t,e){const n=ca(t,e?.in),r=+mE(n)-+BTt(n);return Math.round(r/bLe)+1}function ELe(t,e){const n=ca(t,e?.in),r=n.getFullYear(),i=dD(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=vs(e?.in||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=lS(o,e),l=vs(e?.in||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=lS(l,e);return+n>=+s?r+1:+n>=+c?r:r-1}function COt(t,e){const n=dD(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ELe(t,e),a=vs(e?.in||t,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),lS(a,e)}function FLe(t,e){const n=ca(t,e?.in),r=+lS(n,e)-+COt(n,e);return Math.round(r/bLe)+1}function aa(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Nv={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return aa(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):aa(n+1,2)},d(t,e){return aa(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return aa(t.getHours()%12||12,e.length)},H(t,e){return aa(t.getHours(),e.length)},m(t,e){return aa(t.getMinutes(),e.length)},s(t,e){return aa(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return aa(i,e.length)}},Aw={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cve={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Nv.y(t,e)},Y:function(t,e,n,r){const i=ELe(t,r),a=i>0?i:1-i;if(e==="YY"){const o=a%100;return aa(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):aa(a,e.length)},R:function(t,e){const n=xLe(t);return aa(n,e.length)},u:function(t,e){const n=t.getFullYear();return aa(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return aa(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return aa(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Nv.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return aa(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=FLe(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):aa(i,e.length)},I:function(t,e,n){const r=NLe(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):aa(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Nv.d(t,e)},D:function(t,e,n){const r=SOt(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):aa(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return aa(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return aa(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return aa(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=Aw.noon:r===0?i=Aw.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=Aw.evening:r>=12?i=Aw.afternoon:r>=4?i=Aw.morning:i=Aw.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Nv.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Nv.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):aa(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):aa(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Nv.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Nv.s(t,e)},S:function(t,e){return Nv.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return dve(r);case"XXXX":case"XX":return rb(r);case"XXXXX":case"XXX":default:return rb(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return dve(r);case"xxxx":case"xx":return rb(r);case"xxxxx":case"xxx":default:return rb(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+uve(r,":");case"OOOO":default:return"GMT"+rb(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+uve(r,":");case"zzzz":default:return"GMT"+rb(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return aa(r,e.length)},T:function(t,e,n){return aa(+t,e.length)}};function uve(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+e+aa(a,2)}function dve(t,e){return t%60===0?(t>0?"-":"+")+aa(Math.abs(t)/60,2):rb(t,e)}function rb(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=aa(Math.trunc(r/60),2),a=aa(r%60,2);return n+i+e+a}const fve=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},DLe=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},_Ot=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return fve(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",fve(r,e)).replace("{{time}}",DLe(i,e))},NOt={p:DLe,P:_Ot},EOt=/^D+$/,FOt=/^Y+$/,DOt=["D","DD","YY","YYYY"];function TOt(t){return EOt.test(t)}function OOt(t){return FOt.test(t)}function BOt(t,e,n){const r=jOt(t,e,n);if(console.warn(r),DOt.includes(t))throw new RangeError(r)}function jOt(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const IOt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,POt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MOt=/^'([^]*?)'?$/,ROt=/''/g,$Ot=/[a-zA-Z]/;function $t(t,e,n){const r=dD(),i=n?.locale??r.locale??Dne,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=ca(t,n?.in);if(!RTt(s))throw new RangeError("Invalid time value");let l=e.match(POt).map(u=>{const f=u[0];if(f==="p"||f==="P"){const h=NOt[f];return h(u,i.formatLong)}return u}).join("").match(IOt).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:LOt(u)};if(cve[f])return{isToken:!0,value:u};if(f.match($Ot))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&OOt(f)||!n?.useAdditionalDayOfYearTokens&&TOt(f))&&BOt(f,e,String(t));const h=cve[f[0]];return h(s,f,i.localize,c)}).join("")}function LOt(t){const e=t.match(MOt);return e?e[1].replace(ROt,"'"):t}function UOt(t,e){const n=ca(t,e?.in),r=n.getFullYear(),i=n.getMonth(),a=vs(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function zOt(t,e){return ca(t,e?.in).getMonth()}function HOt(t,e){return ca(t,e?.in).getFullYear()}function VOt(t,e){return+ca(t)>+ca(e)}function QOt(t,e){return+ca(t)<+ca(e)}function qOt(t,e,n){const[r,i]=Hx(n?.in,t,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function GOt(t,e,n){const[r,i]=Hx(n?.in,t,e);return r.getFullYear()===i.getFullYear()}function WOt(t,e,n){return Nne(t,-e,n)}function KOt(t,e,n){const r=ca(t,n?.in),i=r.getFullYear(),a=r.getDate(),o=vs(t,0);o.setFullYear(i,e,15),o.setHours(0,0,0,0);const s=UOt(o);return r.setMonth(e,Math.min(a,s)),r}function hve(t,e,n){const r=ca(t,n?.in);return r.setHours(e),r}function YOt(t,e,n){const r=ca(t,n?.in);return isNaN(+r)?vs(t,NaN):(r.setFullYear(e),r)}function Tne(t,e,n){return Ene(t,-e,n)}function fD(t,e,n){const{years:r=0,months:i=0,weeks:a=0,days:o=0,hours:s=0,minutes:l=0,seconds:c=0}=e,u=Tne(t,i+r*12,n),f=WOt(u,o+a*7,n),h=l+s*60,A=(c+h*60)*1e3;return vs(t,+f-A)}function One(t,e,n){return wLe(t,-1,n)}function XOt(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const ZOt=t=>{switch(t){case"success":return t5t;case"info":return r5t;case"warning":return n5t;case"error":return i5t;default:return null}},JOt=Array(12).fill(0),e5t=({visible:t,className:e})=>L.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},L.createElement("div",{className:"sonner-spinner"},JOt.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),t5t=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),n5t=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),r5t=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),i5t=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),a5t=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),o5t=()=>{const[t,e]=L.useState(document.hidden);return L.useEffect(()=>{const n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t};let QY=1;class s5t{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:r,...i}=e,a=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:QY++,o=this.toasts.find(l=>l.id===a),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...e,id:a,title:r}),{...l,...e,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(e instanceof Function?e():e);let a=r!==void 0,o;const s=i.then(async c=>{if(o=["resolve",c],L.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(c5t(c)&&!c.ok){a=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,A=typeof f=="object"&&!L.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...A})}else if(c instanceof Error){a=!1;const f=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,A=typeof f=="object"&&!L.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...A})}else if(n.success!==void 0){a=!1;const f=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,A=typeof f=="object"&&!L.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...A})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){a=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"&&!L.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,u)=>s.then(()=>o[0]==="reject"?u(o[1]):c(o[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,n)=>{const r=n?.id||QY++;return this.create({jsx:e(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Cu=new s5t,l5t=(t,e)=>{const n=e?.id||QY++;return Cu.addToast({title:t,...e,id:n}),n},c5t=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",u5t=l5t,d5t=()=>Cu.toasts,f5t=()=>Cu.getActiveToasts(),Ve=Object.assign(u5t,{success:Cu.success,info:Cu.info,warning:Cu.warning,error:Cu.error,custom:Cu.custom,message:Cu.message,promise:Cu.promise,dismiss:Cu.dismiss,loading:Cu.loading},{getHistory:d5t,getToasts:f5t});XOt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function h5(t){return t.label!==void 0}const h5t=3,m5t="24px",p5t="16px",mve=4e3,A5t=356,g5t=14,v5t=45,y5t=200;function zm(...t){return t.filter(Boolean).join(" ")}function b5t(t){const[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}const x5t=t=>{var e,n,r,i,a,o,s,l,c;const{invert:u,toast:f,unstyled:h,interacting:m,setHeights:A,visibleToasts:p,heights:v,index:y,toasts:x,expanded:k,removeToast:S,defaultRichColors:C,closeButton:N,style:E,cancelButtonStyle:D,actionButtonStyle:T,className:I="",descriptionClassName:O="",duration:B,position:M,gap:$,expandByDefault:U,classNames:P,icons:Q,closeButtonAriaLabel:G="Close toast"}=t,[X,he]=L.useState(null),[ne,H]=L.useState(null),[W,q]=L.useState(!1),[Z,re]=L.useState(!1),[te,ue]=L.useState(!1),[fe,ge]=L.useState(!1),[oe,J]=L.useState(!1),[Se,ye]=L.useState(0),[xe,pe]=L.useState(0),K=L.useRef(f.duration||B||mve),ie=L.useRef(null),le=L.useRef(null),ce=y===0,ve=y+1<=p,be=f.type,$e=f.dismissible!==!1,je=f.className||"",Re=f.descriptionClassName||"",Ke=L.useMemo(()=>v.findIndex(kt=>kt.toastId===f.id)||0,[v,f.id]),rt=L.useMemo(()=>{var kt;return(kt=f.closeButton)!=null?kt:N},[f.closeButton,N]),ct=L.useMemo(()=>f.duration||B||mve,[f.duration,B]),St=L.useRef(0),Ae=L.useRef(0),ee=L.useRef(0),se=L.useRef(null),[Ne,Fe]=M.split("-"),Ue=L.useMemo(()=>v.reduce((kt,nn,dn)=>dn>=Ke?kt:kt+nn.height,0),[v,Ke]),De=o5t(),Le=f.invert||u,ot=be==="loading";Ae.current=L.useMemo(()=>Ke*$+Ue,[Ke,Ue]),L.useEffect(()=>{K.current=ct},[ct]),L.useEffect(()=>{q(!0)},[]),L.useEffect(()=>{const kt=le.current;if(kt){const nn=kt.getBoundingClientRect().height;return pe(nn),A(dn=>[{toastId:f.id,height:nn,position:f.position},...dn]),()=>A(dn=>dn.filter(hn=>hn.toastId!==f.id))}},[A,f.id]),L.useLayoutEffect(()=>{if(!W)return;const kt=le.current,nn=kt.style.height;kt.style.height="auto";const dn=kt.getBoundingClientRect().height;kt.style.height=nn,pe(dn),A(hn=>hn.find(Be=>Be.toastId===f.id)?hn.map(Be=>Be.toastId===f.id?{...Be,height:dn}:Be):[{toastId:f.id,height:dn,position:f.position},...hn])},[W,f.title,f.description,A,f.id,f.jsx,f.action,f.cancel]);const Ze=L.useCallback(()=>{re(!0),ye(Ae.current),A(kt=>kt.filter(nn=>nn.toastId!==f.id)),setTimeout(()=>{S(f)},y5t)},[f,S,A,Ae]);L.useEffect(()=>{if(f.promise&&be==="loading"||f.duration===1/0||f.type==="loading")return;let kt;return k||m||De?(()=>{if(ee.current<St.current){const hn=new Date().getTime()-St.current;K.current=K.current-hn}ee.current=new Date().getTime()})():(()=>{K.current!==1/0&&(St.current=new Date().getTime(),kt=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Ze()},K.current))})(),()=>clearTimeout(kt)},[k,m,f,be,De,Ze]),L.useEffect(()=>{f.delete&&(Ze(),f.onDismiss==null||f.onDismiss.call(f,f))},[Ze,f.delete]);function et(){var kt;if(Q?.loading){var nn;return L.createElement("div",{className:zm(P?.loader,f==null||(nn=f.classNames)==null?void 0:nn.loader,"sonner-loader"),"data-visible":be==="loading"},Q.loading)}return L.createElement(e5t,{className:zm(P?.loader,f==null||(kt=f.classNames)==null?void 0:kt.loader),visible:be==="loading"})}const st=f.icon||Q?.[be]||ZOt(be);var Mt,wt;return L.createElement("li",{tabIndex:0,ref:le,className:zm(I,je,P?.toast,f==null||(e=f.classNames)==null?void 0:e.toast,P?.default,P?.[be],f==null||(n=f.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(Mt=f.richColors)!=null?Mt:C,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":W,"data-promise":!!f.promise,"data-swiped":oe,"data-removed":Z,"data-visible":ve,"data-y-position":Ne,"data-x-position":Fe,"data-index":y,"data-front":ce,"data-swiping":te,"data-dismissible":$e,"data-type":be,"data-invert":Le,"data-swipe-out":fe,"data-swipe-direction":ne,"data-expanded":!!(k||U&&W),"data-testid":f.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${Z?Se:Ae.current}px`,"--initial-height":U?"auto":`${xe}px`,...E,...f.style},onDragEnd:()=>{ue(!1),he(null),se.current=null},onPointerDown:kt=>{kt.button!==2&&(ot||!$e||(ie.current=new Date,ye(Ae.current),kt.target.setPointerCapture(kt.pointerId),kt.target.tagName!=="BUTTON"&&(ue(!0),se.current={x:kt.clientX,y:kt.clientY})))},onPointerUp:()=>{var kt,nn,dn;if(fe||!$e)return;se.current=null;const hn=Number(((kt=le.current)==null?void 0:kt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Gn=Number(((nn=le.current)==null?void 0:nn.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Be=new Date().getTime()-((dn=ie.current)==null?void 0:dn.getTime()),We=X==="x"?hn:Gn,it=Math.abs(We)/Be;if(Math.abs(We)>=v5t||it>.11){ye(Ae.current),f.onDismiss==null||f.onDismiss.call(f,f),H(X==="x"?hn>0?"right":"left":Gn>0?"down":"up"),Ze(),ge(!0);return}else{var vt,Bt;(vt=le.current)==null||vt.style.setProperty("--swipe-amount-x","0px"),(Bt=le.current)==null||Bt.style.setProperty("--swipe-amount-y","0px")}J(!1),ue(!1),he(null)},onPointerMove:kt=>{var nn,dn,hn;if(!se.current||!$e||((nn=window.getSelection())==null?void 0:nn.toString().length)>0)return;const Be=kt.clientY-se.current.y,We=kt.clientX-se.current.x;var it;const vt=(it=t.swipeDirections)!=null?it:b5t(M);!X&&(Math.abs(We)>1||Math.abs(Be)>1)&&he(Math.abs(We)>Math.abs(Be)?"x":"y");let Bt={x:0,y:0};const Kt=Wt=>1/(1.5+Math.abs(Wt)/20);if(X==="y"){if(vt.includes("top")||vt.includes("bottom"))if(vt.includes("top")&&Be<0||vt.includes("bottom")&&Be>0)Bt.y=Be;else{const Wt=Be*Kt(Be);Bt.y=Math.abs(Wt)<Math.abs(Be)?Wt:Be}}else if(X==="x"&&(vt.includes("left")||vt.includes("right")))if(vt.includes("left")&&We<0||vt.includes("right")&&We>0)Bt.x=We;else{const Wt=We*Kt(We);Bt.x=Math.abs(Wt)<Math.abs(We)?Wt:We}(Math.abs(Bt.x)>0||Math.abs(Bt.y)>0)&&J(!0),(dn=le.current)==null||dn.style.setProperty("--swipe-amount-x",`${Bt.x}px`),(hn=le.current)==null||hn.style.setProperty("--swipe-amount-y",`${Bt.y}px`)}},rt&&!f.jsx&&be!=="loading"?L.createElement("button",{"aria-label":G,"data-disabled":ot,"data-close-button":!0,onClick:ot||!$e?()=>{}:()=>{Ze(),f.onDismiss==null||f.onDismiss.call(f,f)},className:zm(P?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(wt=Q?.close)!=null?wt:a5t):null,(be||f.icon||f.promise)&&f.icon!==null&&(Q?.[be]!==null||f.icon)?L.createElement("div",{"data-icon":"",className:zm(P?.icon,f==null||(i=f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||et():null,f.type!=="loading"?st:null):null,L.createElement("div",{"data-content":"",className:zm(P?.content,f==null||(a=f.classNames)==null?void 0:a.content)},L.createElement("div",{"data-title":"",className:zm(P?.title,f==null||(o=f.classNames)==null?void 0:o.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?L.createElement("div",{"data-description":"",className:zm(O,Re,P?.description,f==null||(s=f.classNames)==null?void 0:s.description)},typeof f.description=="function"?f.description():f.description):null),L.isValidElement(f.cancel)?f.cancel:f.cancel&&h5(f.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||D,onClick:kt=>{h5(f.cancel)&&$e&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,kt),Ze())},className:zm(P?.cancelButton,f==null||(l=f.classNames)==null?void 0:l.cancelButton)},f.cancel.label):null,L.isValidElement(f.action)?f.action:f.action&&h5(f.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||T,onClick:kt=>{h5(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,kt),!kt.defaultPrevented&&Ze())},className:zm(P?.actionButton,f==null||(c=f.classNames)==null?void 0:c.actionButton)},f.action.label):null)};function pve(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function w5t(t,e){const n={};return[t,e].forEach((r,i)=>{const a=i===1,o=a?"--mobile-offset":"--offset",s=a?p5t:m5t;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=s:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}const k5t=L.forwardRef(function(e,n){const{id:r,invert:i,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:u,mobileOffset:f,theme:h="light",richColors:m,duration:A,style:p,visibleToasts:v=h5t,toastOptions:y,dir:x=pve(),gap:k=g5t,icons:S,containerAriaLabel:C="Notifications"}=e,[N,E]=L.useState([]),D=L.useMemo(()=>r?N.filter(W=>W.toasterId===r):N.filter(W=>!W.toasterId),[N,r]),T=L.useMemo(()=>Array.from(new Set([a].concat(D.filter(W=>W.position).map(W=>W.position)))),[D,a]),[I,O]=L.useState([]),[B,M]=L.useState(!1),[$,U]=L.useState(!1),[P,Q]=L.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=L.useRef(null),X=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),he=L.useRef(null),ne=L.useRef(!1),H=L.useCallback(W=>{E(q=>{var Z;return(Z=q.find(re=>re.id===W.id))!=null&&Z.delete||Cu.dismiss(W.id),q.filter(({id:re})=>re!==W.id)})},[]);return L.useEffect(()=>Cu.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{E(q=>q.map(Z=>Z.id===W.id?{...Z,delete:!0}:Z))});return}setTimeout(()=>{_Ie.flushSync(()=>{E(q=>{const Z=q.findIndex(re=>re.id===W.id);return Z!==-1?[...q.slice(0,Z),{...q[Z],...W},...q.slice(Z+1)]:[W,...q]})})})}),[N]),L.useEffect(()=>{if(h!=="system"){Q(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:q})=>{Q(q?"dark":"light")})}catch{W.addListener(({matches:Z})=>{try{Q(Z?"dark":"light")}catch(re){console.error(re)}})}},[h]),L.useEffect(()=>{N.length<=1&&M(!1)},[N]),L.useEffect(()=>{const W=q=>{var Z;if(o.every(ue=>q[ue]||q.code===ue)){var te;M(!0),(te=G.current)==null||te.focus()}q.code==="Escape"&&(document.activeElement===G.current||(Z=G.current)!=null&&Z.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[o]),L.useEffect(()=>{if(G.current)return()=>{he.current&&(he.current.focus({preventScroll:!0}),he.current=null,ne.current=!1)}},[G.current]),L.createElement("section",{ref:n,"aria-label":`${C} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((W,q)=>{var Z;const[re,te]=W.split("-");return D.length?L.createElement("ol",{key:W,dir:x==="auto"?pve():x,tabIndex:-1,ref:G,className:c,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":re,"data-x-position":te,style:{"--front-toast-height":`${((Z=I[0])==null?void 0:Z.height)||0}px`,"--width":`${A5t}px`,"--gap":`${k}px`,...p,...w5t(u,f)},onBlur:ue=>{ne.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(ne.current=!1,he.current&&(he.current.focus({preventScroll:!0}),he.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,he.current=ue.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{$||M(!1)},onDragEnd:()=>M(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},D.filter(ue=>!ue.position&&q===0||ue.position===W).map((ue,fe)=>{var ge,oe;return L.createElement(x5t,{key:ue.id,icons:S,index:fe,toast:ue,defaultRichColors:m,duration:(ge=y?.duration)!=null?ge:A,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:i,visibleToasts:v,closeButton:(oe=y?.closeButton)!=null?oe:l,interacting:$,position:W,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:H,toasts:D.filter(J=>J.position==ue.position),heights:I.filter(J=>J.position==ue.position),setHeights:O,expandByDefault:s,gap:k,expanded:B,swipeDirections:e.swipeDirections})})):null}))});function Hn(t,e,n,r){try{if(t.error){const{error:i}=t;if(i.graphQLErrors?.[0]?.extensions?.code){const a=i.graphQLErrors[0],{message:o,extensions:{code:s}}=a;throw console.error(`Error ${s} - ${e}: ${a}`),new Error(o)}throw console.error(i),new Error(`${e}: Error occurred`)}if(!t.data)throw new Error(`${e}: No data`);if(r&&typeof t.data=="object"){const i=t.data;if(r in i&&typeof i[r]=="object"){const a=i[r];if("__typename"in a&&a.__typename==="CommonError")throw console.error(`${e}: ${a}`),new Error(a.message)}}return t.data}catch(i){Ve.error("Error",{id:n,description:i.message,duration:1e5,closeButton:!0});return}}const S5t="updateBusinessTripAccountantApproval",C5t=()=>{const[{fetching:t},e]=zn(cTt),n=w.useCallback(async r=>{const i=`Error toggling accountant approval for trip [${r.businessTripId}]`,a=`${S5t}-${r.businessTripId}`;Ve.loading("Updating accountant approval status",{id:a});try{const o=await e(r),s=Hn(o,i,a);if(s)return Ve.success("Success",{id:a,description:"Accountant approval status updated"}),s.updateBusinessTripAccountantApproval}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateBusinessTripAccountantApproval:n}};function _5t({data:t,onChange:e}){const n=Lt(Z2t,t),[r,i]=w.useState(n.accountantApproval),{updateBusinessTripAccountantApproval:a}=C5t();return w.useEffect(()=>{r==null&&n.accountantApproval!=null&&i(n.accountantApproval)},[r,n.accountantApproval]),d.jsx(Xae,{value:r,onChange:o=>a({businessTripId:n.id,status:o}).then(e)})}/**
111
- * @license lucide-react v0.546.0 - ISC
111
+ * @license lucide-react v0.545.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
115
  */const N5t=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E5t=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ave=t=>{const e=E5t(t);return e.charAt(0).toUpperCase()+e.slice(1)},TLe=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),F5t=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
116
- * @license lucide-react v0.546.0 - ISC
116
+ * @license lucide-react v0.545.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
120
  */var D5t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
121
- * @license lucide-react v0.546.0 - ISC
121
+ * @license lucide-react v0.545.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
125
  */const T5t=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},l)=>w.createElement("svg",{ref:l,...D5t,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:TLe("lucide",i),...!a&&!F5t(s)&&{"aria-hidden":"true"},...s},[...o.map(([c,u])=>w.createElement(c,u)),...Array.isArray(a)?a:[a]]));/**
126
- * @license lucide-react v0.546.0 - ISC
126
+ * @license lucide-react v0.545.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
130
  */const qt=(t,e)=>{const n=w.forwardRef(({className:r,...i},a)=>w.createElement(T5t,{ref:a,iconNode:e,className:TLe(`lucide-${N5t(Ave(t))}`,`lucide-${t}`,r),...i}));return n.displayName=Ave(t),n};/**
131
- * @license lucide-react v0.546.0 - ISC
131
+ * @license lucide-react v0.545.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
135
  */const O5t=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]],B5t=qt("arrow-down-0-1",O5t);/**
136
- * @license lucide-react v0.546.0 - ISC
136
+ * @license lucide-react v0.545.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
140
  */const j5t=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],I5t=qt("arrow-down-wide-narrow",j5t);/**
141
- * @license lucide-react v0.546.0 - ISC
141
+ * @license lucide-react v0.545.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
145
  */const P5t=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],M5t=qt("arrow-left-right",P5t);/**
146
- * @license lucide-react v0.546.0 - ISC
146
+ * @license lucide-react v0.545.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
150
  */const R5t=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],$5t=qt("arrow-right-left",R5t);/**
151
- * @license lucide-react v0.546.0 - ISC
151
+ * @license lucide-react v0.545.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
155
  */const L5t=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],bd=qt("arrow-up-down",L5t);/**
156
- * @license lucide-react v0.546.0 - ISC
156
+ * @license lucide-react v0.545.0 - ISC
157
157
  *
158
158
  * This source code is licensed under the ISC license.
159
159
  * See the LICENSE file in the root directory of this source tree.
160
160
  */const U5t=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],z5t=qt("badge-dollar-sign",U5t);/**
161
- * @license lucide-react v0.546.0 - ISC
161
+ * @license lucide-react v0.545.0 - ISC
162
162
  *
163
163
  * This source code is licensed under the ISC license.
164
164
  * See the LICENSE file in the root directory of this source tree.
165
165
  */const H5t=[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M8 5v14",key:"1ybrkv"}],["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"M17 5v14",key:"ycjyhj"}],["path",{d:"M21 5v14",key:"nzette"}]],gve=qt("barcode",H5t);/**
166
- * @license lucide-react v0.546.0 - ISC
166
+ * @license lucide-react v0.545.0 - ISC
167
167
  *
168
168
  * This source code is licensed under the ISC license.
169
169
  * See the LICENSE file in the root directory of this source tree.
170
170
  */const V5t=[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]],Q5t=qt("book-open-check",V5t);/**
171
- * @license lucide-react v0.546.0 - ISC
171
+ * @license lucide-react v0.545.0 - ISC
172
172
  *
173
173
  * This source code is licensed under the ISC license.
174
174
  * See the LICENSE file in the root directory of this source tree.
175
175
  */const q5t=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],G5t=qt("book",q5t);/**
176
- * @license lucide-react v0.546.0 - ISC
176
+ * @license lucide-react v0.545.0 - ISC
177
177
  *
178
178
  * This source code is licensed under the ISC license.
179
179
  * See the LICENSE file in the root directory of this source tree.
180
180
  */const W5t=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],vve=qt("bookmark",W5t);/**
181
- * @license lucide-react v0.546.0 - ISC
181
+ * @license lucide-react v0.545.0 - ISC
182
182
  *
183
183
  * This source code is licensed under the ISC license.
184
184
  * See the LICENSE file in the root directory of this source tree.
185
185
  */const K5t=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Y5t=qt("building-2",K5t);/**
186
- * @license lucide-react v0.546.0 - ISC
186
+ * @license lucide-react v0.545.0 - ISC
187
187
  *
188
188
  * This source code is licensed under the ISC license.
189
189
  * See the LICENSE file in the root directory of this source tree.
190
190
  */const X5t=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Z5t=qt("calculator",X5t);/**
191
- * @license lucide-react v0.546.0 - ISC
191
+ * @license lucide-react v0.545.0 - ISC
192
192
  *
193
193
  * This source code is licensed under the ISC license.
194
194
  * See the LICENSE file in the root directory of this source tree.
195
195
  */const J5t=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],cS=qt("calendar",J5t);/**
196
- * @license lucide-react v0.546.0 - ISC
196
+ * @license lucide-react v0.545.0 - ISC
197
197
  *
198
198
  * This source code is licensed under the ISC license.
199
199
  * See the LICENSE file in the root directory of this source tree.
200
200
  */const eBt=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],tBt=qt("car",eBt);/**
201
- * @license lucide-react v0.546.0 - ISC
201
+ * @license lucide-react v0.545.0 - ISC
202
202
  *
203
203
  * This source code is licensed under the ISC license.
204
204
  * See the LICENSE file in the root directory of this source tree.
205
205
  */const nBt=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]],Uz=qt("chart-column-big",nBt);/**
206
- * @license lucide-react v0.546.0 - ISC
206
+ * @license lucide-react v0.545.0 - ISC
207
207
  *
208
208
  * This source code is licensed under the ISC license.
209
209
  * See the LICENSE file in the root directory of this source tree.
210
210
  */const rBt=[["path",{d:"M13 17V9",key:"1fwyjl"}],["path",{d:"M18 17v-3",key:"1sqioe"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M8 17V5",key:"1wzmnc"}]],iBt=qt("chart-column-decreasing",rBt);/**
211
- * @license lucide-react v0.546.0 - ISC
211
+ * @license lucide-react v0.545.0 - ISC
212
212
  *
213
213
  * This source code is licensed under the ISC license.
214
214
  * See the LICENSE file in the root directory of this source tree.
215
215
  */const aBt=[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]],oBt=qt("chart-no-axes-combined",aBt);/**
216
- * @license lucide-react v0.546.0 - ISC
216
+ * @license lucide-react v0.545.0 - ISC
217
217
  *
218
218
  * This source code is licensed under the ISC license.
219
219
  * See the LICENSE file in the root directory of this source tree.
220
220
  */const sBt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],lBt=qt("check-check",sBt);/**
221
- * @license lucide-react v0.546.0 - ISC
221
+ * @license lucide-react v0.545.0 - ISC
222
222
  *
223
223
  * This source code is licensed under the ISC license.
224
224
  * See the LICENSE file in the root directory of this source tree.
225
225
  */const cBt=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ls=qt("check",cBt);/**
226
- * @license lucide-react v0.546.0 - ISC
226
+ * @license lucide-react v0.545.0 - ISC
227
227
  *
228
228
  * This source code is licensed under the ISC license.
229
229
  * See the LICENSE file in the root directory of this source tree.
230
230
  */const uBt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ei=qt("chevron-down",uBt);/**
231
- * @license lucide-react v0.546.0 - ISC
231
+ * @license lucide-react v0.545.0 - ISC
232
232
  *
233
233
  * This source code is licensed under the ISC license.
234
234
  * See the LICENSE file in the root directory of this source tree.
235
235
  */const dBt=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Bne=qt("chevron-left",dBt);/**
236
- * @license lucide-react v0.546.0 - ISC
236
+ * @license lucide-react v0.545.0 - ISC
237
237
  *
238
238
  * This source code is licensed under the ISC license.
239
239
  * See the LICENSE file in the root directory of this source tree.
240
240
  */const fBt=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],OLe=qt("chevron-right",fBt);/**
241
- * @license lucide-react v0.546.0 - ISC
241
+ * @license lucide-react v0.545.0 - ISC
242
242
  *
243
243
  * This source code is licensed under the ISC license.
244
244
  * See the LICENSE file in the root directory of this source tree.
245
245
  */const hBt=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Vi=qt("chevron-up",hBt);/**
246
- * @license lucide-react v0.546.0 - ISC
246
+ * @license lucide-react v0.545.0 - ISC
247
247
  *
248
248
  * This source code is licensed under the ISC license.
249
249
  * See the LICENSE file in the root directory of this source tree.
250
250
  */const mBt=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],BLe=qt("chevrons-left-right-ellipsis",mBt);/**
251
- * @license lucide-react v0.546.0 - ISC
251
+ * @license lucide-react v0.545.0 - ISC
252
252
  *
253
253
  * This source code is licensed under the ISC license.
254
254
  * See the LICENSE file in the root directory of this source tree.
255
255
  */const pBt=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],ABt=qt("chevrons-left",pBt);/**
256
- * @license lucide-react v0.546.0 - ISC
256
+ * @license lucide-react v0.545.0 - ISC
257
257
  *
258
258
  * This source code is licensed under the ISC license.
259
259
  * See the LICENSE file in the root directory of this source tree.
260
260
  */const gBt=[["path",{d:"m20 17-5-5 5-5",key:"30x0n2"}],["path",{d:"m4 17 5-5-5-5",key:"16spf4"}]],jLe=qt("chevrons-right-left",gBt);/**
261
- * @license lucide-react v0.546.0 - ISC
261
+ * @license lucide-react v0.545.0 - ISC
262
262
  *
263
263
  * This source code is licensed under the ISC license.
264
264
  * See the LICENSE file in the root directory of this source tree.
265
265
  */const vBt=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],yBt=qt("chevrons-right",vBt);/**
266
- * @license lucide-react v0.546.0 - ISC
266
+ * @license lucide-react v0.545.0 - ISC
267
267
  *
268
268
  * This source code is licensed under the ISC license.
269
269
  * See the LICENSE file in the root directory of this source tree.
270
270
  */const bBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],xBt=qt("circle-alert",bBt);/**
271
- * @license lucide-react v0.546.0 - ISC
271
+ * @license lucide-react v0.545.0 - ISC
272
272
  *
273
273
  * This source code is licensed under the ISC license.
274
274
  * See the LICENSE file in the root directory of this source tree.
275
275
  */const wBt=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],kBt=qt("circle-check-big",wBt);/**
276
- * @license lucide-react v0.546.0 - ISC
276
+ * @license lucide-react v0.545.0 - ISC
277
277
  *
278
278
  * This source code is licensed under the ISC license.
279
279
  * See the LICENSE file in the root directory of this source tree.
280
280
  */const SBt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],yve=qt("circle-x",SBt);/**
281
- * @license lucide-react v0.546.0 - ISC
281
+ * @license lucide-react v0.545.0 - ISC
282
282
  *
283
283
  * This source code is licensed under the ISC license.
284
284
  * See the LICENSE file in the root directory of this source tree.
285
285
  */const CBt=[["path",{d:"m10.852 19.772-.383.924",key:"r7sl7d"}],["path",{d:"m13.148 14.228.383-.923",key:"1d5zpm"}],["path",{d:"M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1ydik7"}],["path",{d:"m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1m1vsf"}],["path",{d:"m14.772 15.852.923-.383",key:"660p6e"}],["path",{d:"m14.772 18.148.923.383",key:"hrcpis"}],["path",{d:"M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2",key:"j2q98n"}],["path",{d:"m9.228 15.852-.923-.383",key:"1p9ong"}],["path",{d:"m9.228 18.148-.923.383",key:"6558rz"}]],_Bt=qt("cloud-cog",CBt);/**
286
- * @license lucide-react v0.546.0 - ISC
286
+ * @license lucide-react v0.545.0 - ISC
287
287
  *
288
288
  * This source code is licensed under the ISC license.
289
289
  * See the LICENSE file in the root directory of this source tree.
290
290
  */const NBt=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],EBt=qt("cloud-upload",NBt);/**
291
- * @license lucide-react v0.546.0 - ISC
291
+ * @license lucide-react v0.545.0 - ISC
292
292
  *
293
293
  * This source code is licensed under the ISC license.
294
294
  * See the LICENSE file in the root directory of this source tree.
295
295
  */const FBt=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],G4=qt("coins",FBt);/**
296
- * @license lucide-react v0.546.0 - ISC
296
+ * @license lucide-react v0.545.0 - ISC
297
297
  *
298
298
  * This source code is licensed under the ISC license.
299
299
  * See the LICENSE file in the root directory of this source tree.
300
300
  */const DBt=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],TBt=qt("combine",DBt);/**
301
- * @license lucide-react v0.546.0 - ISC
301
+ * @license lucide-react v0.545.0 - ISC
302
302
  *
303
303
  * This source code is licensed under the ISC license.
304
304
  * See the LICENSE file in the root directory of this source tree.
305
305
  */const OBt=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],BBt=qt("copy",OBt);/**
306
- * @license lucide-react v0.546.0 - ISC
306
+ * @license lucide-react v0.545.0 - ISC
307
307
  *
308
308
  * This source code is licensed under the ISC license.
309
309
  * See the LICENSE file in the root directory of this source tree.
310
310
  */const jBt=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],ILe=qt("credit-card",jBt);/**
311
- * @license lucide-react v0.546.0 - ISC
311
+ * @license lucide-react v0.545.0 - ISC
312
312
  *
313
313
  * This source code is licensed under the ISC license.
314
314
  * See the LICENSE file in the root directory of this source tree.
315
315
  */const IBt=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],jne=qt("download",IBt);/**
316
- * @license lucide-react v0.546.0 - ISC
316
+ * @license lucide-react v0.545.0 - ISC
317
317
  *
318
318
  * This source code is licensed under the ISC license.
319
319
  * See the LICENSE file in the root directory of this source tree.
320
320
  */const PBt=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],PLe=qt("ellipsis",PBt);/**
321
- * @license lucide-react v0.546.0 - ISC
321
+ * @license lucide-react v0.545.0 - ISC
322
322
  *
323
323
  * This source code is licensed under the ISC license.
324
324
  * See the LICENSE file in the root directory of this source tree.
325
325
  */const MBt=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],RBt=qt("external-link",MBt);/**
326
- * @license lucide-react v0.546.0 - ISC
326
+ * @license lucide-react v0.545.0 - ISC
327
327
  *
328
328
  * This source code is licensed under the ISC license.
329
329
  * See the LICENSE file in the root directory of this source tree.
330
330
  */const $Bt=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],LBt=qt("eye-off",$Bt);/**
331
- * @license lucide-react v0.546.0 - ISC
331
+ * @license lucide-react v0.545.0 - ISC
332
332
  *
333
333
  * This source code is licensed under the ISC license.
334
334
  * See the LICENSE file in the root directory of this source tree.
335
- */const UBt=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ine=qt("eye",UBt);/**
336
- * @license lucide-react v0.546.0 - ISC
335
+ */const UBt=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],zBt=qt("factory",UBt);/**
336
+ * @license lucide-react v0.545.0 - ISC
337
337
  *
338
338
  * This source code is licensed under the ISC license.
339
339
  * See the LICENSE file in the root directory of this source tree.
340
- */const zBt=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],HBt=qt("factory",zBt);/**
341
- * @license lucide-react v0.546.0 - ISC
340
+ */const HBt=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ine=qt("eye",HBt);/**
341
+ * @license lucide-react v0.545.0 - ISC
342
342
  *
343
343
  * This source code is licensed under the ISC license.
344
344
  * See the LICENSE file in the root directory of this source tree.
345
345
  */const VBt=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"4",height:"6",x:"2",y:"12",rx:"2",key:"jm304g"}],["path",{d:"M10 12h2v6",key:"12zw74"}],["path",{d:"M10 18h4",key:"1ulq68"}]],QBt=qt("file-digit",VBt);/**
346
- * @license lucide-react v0.546.0 - ISC
346
+ * @license lucide-react v0.545.0 - ISC
347
347
  *
348
348
  * This source code is licensed under the ISC license.
349
349
  * See the LICENSE file in the root directory of this source tree.
350
350
  */const qBt=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],MLe=qt("file-down",qBt);/**
351
- * @license lucide-react v0.546.0 - ISC
351
+ * @license lucide-react v0.545.0 - ISC
352
352
  *
353
353
  * This source code is licensed under the ISC license.
354
354
  * See the LICENSE file in the root directory of this source tree.
355
355
  */const GBt=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],bve=qt("file-pen",GBt);/**
356
- * @license lucide-react v0.546.0 - ISC
356
+ * @license lucide-react v0.545.0 - ISC
357
357
  *
358
358
  * This source code is licensed under the ISC license.
359
359
  * See the LICENSE file in the root directory of this source tree.
360
360
  */const WBt=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]],xve=qt("file-plus-2",WBt);/**
361
- * @license lucide-react v0.546.0 - ISC
361
+ * @license lucide-react v0.545.0 - ISC
362
362
  *
363
363
  * This source code is licensed under the ISC license.
364
364
  * See the LICENSE file in the root directory of this source tree.
365
365
  */const KBt=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],wve=qt("file-question-mark",KBt);/**
366
- * @license lucide-react v0.546.0 - ISC
366
+ * @license lucide-react v0.545.0 - ISC
367
367
  *
368
368
  * This source code is licensed under the ISC license.
369
369
  * See the LICENSE file in the root directory of this source tree.
370
370
  */const YBt=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],RLe=qt("file-text",YBt);/**
371
- * @license lucide-react v0.546.0 - ISC
371
+ * @license lucide-react v0.545.0 - ISC
372
372
  *
373
373
  * This source code is licensed under the ISC license.
374
374
  * See the LICENSE file in the root directory of this source tree.
375
- */const XBt=[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],kve=qt("files",XBt);/**
376
- * @license lucide-react v0.546.0 - ISC
375
+ */const XBt=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],kve=qt("file",XBt);/**
376
+ * @license lucide-react v0.545.0 - ISC
377
377
  *
378
378
  * This source code is licensed under the ISC license.
379
379
  * See the LICENSE file in the root directory of this source tree.
380
- */const ZBt=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Sve=qt("file",ZBt);/**
381
- * @license lucide-react v0.546.0 - ISC
380
+ */const ZBt=[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],Sve=qt("files",ZBt);/**
381
+ * @license lucide-react v0.545.0 - ISC
382
382
  *
383
383
  * This source code is licensed under the ISC license.
384
384
  * See the LICENSE file in the root directory of this source tree.
385
385
  */const JBt=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],ejt=qt("folder-open",JBt);/**
386
- * @license lucide-react v0.546.0 - ISC
386
+ * @license lucide-react v0.545.0 - ISC
387
387
  *
388
388
  * This source code is licensed under the ISC license.
389
389
  * See the LICENSE file in the root directory of this source tree.
390
390
  */const tjt=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],njt=qt("folder-plus",tjt);/**
391
- * @license lucide-react v0.546.0 - ISC
391
+ * @license lucide-react v0.545.0 - ISC
392
392
  *
393
393
  * This source code is licensed under the ISC license.
394
394
  * See the LICENSE file in the root directory of this source tree.
395
395
  */const rjt=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],ijt=qt("folder",rjt);/**
396
- * @license lucide-react v0.546.0 - ISC
396
+ * @license lucide-react v0.545.0 - ISC
397
397
  *
398
398
  * This source code is licensed under the ISC license.
399
399
  * See the LICENSE file in the root directory of this source tree.
400
400
  */const ajt=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 9h11",key:"1p7c0w"}]],ojt=qt("fuel",ajt);/**
401
- * @license lucide-react v0.546.0 - ISC
401
+ * @license lucide-react v0.545.0 - ISC
402
402
  *
403
403
  * This source code is licensed under the ISC license.
404
404
  * See the LICENSE file in the root directory of this source tree.
405
405
  */const sjt=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Xl=qt("funnel",sjt);/**
406
- * @license lucide-react v0.546.0 - ISC
406
+ * @license lucide-react v0.545.0 - ISC
407
407
  *
408
408
  * This source code is licensed under the ISC license.
409
409
  * See the LICENSE file in the root directory of this source tree.
410
410
  */const ljt=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],cjt=qt("gift",ljt);/**
411
- * @license lucide-react v0.546.0 - ISC
411
+ * @license lucide-react v0.545.0 - ISC
412
412
  *
413
413
  * This source code is licensed under the ISC license.
414
414
  * See the LICENSE file in the root directory of this source tree.
415
415
  */const ujt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],djt=qt("globe",ujt);/**
416
- * @license lucide-react v0.546.0 - ISC
416
+ * @license lucide-react v0.545.0 - ISC
417
417
  *
418
418
  * This source code is licensed under the ISC license.
419
419
  * See the LICENSE file in the root directory of this source tree.
420
420
  */const fjt=[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]],qY=qt("hand-coins",fjt);/**
421
- * @license lucide-react v0.546.0 - ISC
421
+ * @license lucide-react v0.545.0 - ISC
422
422
  *
423
423
  * This source code is licensed under the ISC license.
424
424
  * See the LICENSE file in the root directory of this source tree.
425
425
  */const hjt=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],$Le=qt("id-card",hjt);/**
426
- * @license lucide-react v0.546.0 - ISC
426
+ * @license lucide-react v0.545.0 - ISC
427
427
  *
428
428
  * This source code is licensed under the ISC license.
429
429
  * See the LICENSE file in the root directory of this source tree.
430
430
  */const mjt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],LLe=qt("image",mjt);/**
431
- * @license lucide-react v0.546.0 - ISC
431
+ * @license lucide-react v0.545.0 - ISC
432
432
  *
433
433
  * This source code is licensed under the ISC license.
434
434
  * See the LICENSE file in the root directory of this source tree.
435
435
  */const pjt=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Ajt=qt("link",pjt);/**
436
- * @license lucide-react v0.546.0 - ISC
436
+ * @license lucide-react v0.545.0 - ISC
437
437
  *
438
438
  * This source code is licensed under the ISC license.
439
439
  * See the LICENSE file in the root directory of this source tree.
440
440
  */const gjt=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],kp=qt("list-plus",gjt);/**
441
- * @license lucide-react v0.546.0 - ISC
441
+ * @license lucide-react v0.545.0 - ISC
442
442
  *
443
443
  * This source code is licensed under the ISC license.
444
444
  * See the LICENSE file in the root directory of this source tree.
445
445
  */const vjt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ai=qt("loader-circle",vjt);/**
446
- * @license lucide-react v0.546.0 - ISC
446
+ * @license lucide-react v0.545.0 - ISC
447
447
  *
448
448
  * This source code is licensed under the ISC license.
449
449
  * See the LICENSE file in the root directory of this source tree.
450
450
  */const yjt=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],bjt=qt("mail",yjt);/**
451
- * @license lucide-react v0.546.0 - ISC
451
+ * @license lucide-react v0.545.0 - ISC
452
452
  *
453
453
  * This source code is licensed under the ISC license.
454
454
  * See the LICENSE file in the root directory of this source tree.
455
455
  */const xjt=[["path",{d:"m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V12",key:"svfegj"}],["path",{d:"M15 5.764V12",key:"1ocw4k"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],wjt=qt("map-plus",xjt);/**
456
- * @license lucide-react v0.546.0 - ISC
456
+ * @license lucide-react v0.545.0 - ISC
457
457
  *
458
458
  * This source code is licensed under the ISC license.
459
459
  * See the LICENSE file in the root directory of this source tree.
460
- */const kjt=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Sjt=qt("menu",kjt);/**
461
- * @license lucide-react v0.546.0 - ISC
460
+ */const kjt=[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]],ULe=qt("merge",kjt);/**
461
+ * @license lucide-react v0.545.0 - ISC
462
462
  *
463
463
  * This source code is licensed under the ISC license.
464
464
  * See the LICENSE file in the root directory of this source tree.
465
- */const Cjt=[["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22",key:"1hyw0i"}],["path",{d:"m20 22-5-5",key:"1m27yz"}]],ULe=qt("merge",Cjt);/**
466
- * @license lucide-react v0.546.0 - ISC
465
+ */const Sjt=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Cjt=qt("menu",Sjt);/**
466
+ * @license lucide-react v0.545.0 - ISC
467
467
  *
468
468
  * This source code is licensed under the ISC license.
469
469
  * See the LICENSE file in the root directory of this source tree.
470
470
  */const _jt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 16 3-3 3 3",key:"1idcnm"}]],Qu=qt("panel-top-close",_jt);/**
471
- * @license lucide-react v0.546.0 - ISC
471
+ * @license lucide-react v0.545.0 - ISC
472
472
  *
473
473
  * This source code is licensed under the ISC license.
474
474
  * See the LICENSE file in the root directory of this source tree.
475
475
  */const Njt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m15 14-3 3-3-3",key:"g215vf"}]],qu=qt("panel-top-open",Njt);/**
476
- * @license lucide-react v0.546.0 - ISC
476
+ * @license lucide-react v0.545.0 - ISC
477
477
  *
478
478
  * This source code is licensed under the ISC license.
479
479
  * See the LICENSE file in the root directory of this source tree.
480
480
  */const Ejt=[["path",{d:"M11 15h2",key:"199qp6"}],["path",{d:"M12 12v3",key:"158kv8"}],["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15.282 19a1 1 0 0 0 .948-.68l2.37-6.988a7 7 0 1 0-13.2 0l2.37 6.988a1 1 0 0 0 .948.68z",key:"1jofit"}],["path",{d:"M9 9a3 3 0 1 1 6 0",key:"jdoeu8"}]],Cve=qt("parking-meter",Ejt);/**
481
- * @license lucide-react v0.546.0 - ISC
481
+ * @license lucide-react v0.545.0 - ISC
482
482
  *
483
483
  * This source code is licensed under the ISC license.
484
484
  * See the LICENSE file in the root directory of this source tree.
485
485
  */const Fjt=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Djt=qt("pencil",Fjt);/**
486
- * @license lucide-react v0.546.0 - ISC
486
+ * @license lucide-react v0.545.0 - ISC
487
487
  *
488
488
  * This source code is licensed under the ISC license.
489
489
  * See the LICENSE file in the root directory of this source tree.
490
490
  */const Tjt=[["path",{d:"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z",key:"1piglc"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M2 8v1a2 2 0 0 0 2 2h1",key:"1env43"}]],Ojt=qt("piggy-bank",Tjt);/**
491
- * @license lucide-react v0.546.0 - ISC
491
+ * @license lucide-react v0.545.0 - ISC
492
492
  *
493
493
  * This source code is licensed under the ISC license.
494
494
  * See the LICENSE file in the root directory of this source tree.
495
495
  */const Bjt=[["path",{d:"M2 22h20",key:"272qi7"}],["path",{d:"M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z",key:"fkigj9"}]],jjt=qt("plane-takeoff",Bjt);/**
496
- * @license lucide-react v0.546.0 - ISC
496
+ * @license lucide-react v0.545.0 - ISC
497
497
  *
498
498
  * This source code is licensed under the ISC license.
499
499
  * See the LICENSE file in the root directory of this source tree.
500
500
  */const Ijt=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],Pjt=qt("plane",Ijt);/**
501
- * @license lucide-react v0.546.0 - ISC
501
+ * @license lucide-react v0.545.0 - ISC
502
502
  *
503
503
  * This source code is licensed under the ISC license.
504
504
  * See the LICENSE file in the root directory of this source tree.
505
505
  */const Mjt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],kc=qt("plus",Mjt);/**
506
- * @license lucide-react v0.546.0 - ISC
506
+ * @license lucide-react v0.545.0 - ISC
507
507
  *
508
508
  * This source code is licensed under the ISC license.
509
509
  * See the LICENSE file in the root directory of this source tree.
510
510
  */const Rjt=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],$jt=qt("printer",Rjt);/**
511
- * @license lucide-react v0.546.0 - ISC
511
+ * @license lucide-react v0.545.0 - ISC
512
512
  *
513
513
  * This source code is licensed under the ISC license.
514
514
  * See the LICENSE file in the root directory of this source tree.
515
515
  */const Ljt=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Ujt=qt("puzzle",Ljt);/**
516
- * @license lucide-react v0.546.0 - ISC
516
+ * @license lucide-react v0.545.0 - ISC
517
517
  *
518
518
  * This source code is licensed under the ISC license.
519
519
  * See the LICENSE file in the root directory of this source tree.
520
- */const zjt=[["path",{d:"M13 16H8",key:"wsln4y"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]],Hjt=qt("receipt-text",zjt);/**
521
- * @license lucide-react v0.546.0 - ISC
520
+ */const zjt=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]],Hjt=qt("receipt-text",zjt);/**
521
+ * @license lucide-react v0.545.0 - ISC
522
522
  *
523
523
  * This source code is licensed under the ISC license.
524
524
  * See the LICENSE file in the root directory of this source tree.
525
525
  */const Vjt=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],Ek=qt("receipt",Vjt);/**
526
- * @license lucide-react v0.546.0 - ISC
526
+ * @license lucide-react v0.545.0 - ISC
527
527
  *
528
528
  * This source code is licensed under the ISC license.
529
529
  * See the LICENSE file in the root directory of this source tree.
530
530
  */const Qjt=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],qjt=qt("rectangle-ellipsis",Qjt);/**
531
- * @license lucide-react v0.546.0 - ISC
531
+ * @license lucide-react v0.545.0 - ISC
532
532
  *
533
533
  * This source code is licensed under the ISC license.
534
534
  * See the LICENSE file in the root directory of this source tree.
535
535
  */const Gjt=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Wjt=qt("refresh-ccw-dot",Gjt);/**
536
- * @license lucide-react v0.546.0 - ISC
536
+ * @license lucide-react v0.545.0 - ISC
537
537
  *
538
538
  * This source code is licensed under the ISC license.
539
539
  * See the LICENSE file in the root directory of this source tree.
540
540
  */const Kjt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 7.5H3",key:"1hm9pq"}],["path",{d:"M21 12H3",key:"2avoz0"}],["path",{d:"M21 16.5H3",key:"n7jzkj"}]],Yjt=qt("rows-4",Kjt);/**
541
- * @license lucide-react v0.546.0 - ISC
541
+ * @license lucide-react v0.545.0 - ISC
542
542
  *
543
543
  * This source code is licensed under the ISC license.
544
544
  * See the LICENSE file in the root directory of this source tree.
545
545
  */const Xjt=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Zjt=qt("save",Xjt);/**
546
- * @license lucide-react v0.546.0 - ISC
546
+ * @license lucide-react v0.545.0 - ISC
547
547
  *
548
548
  * This source code is licensed under the ISC license.
549
549
  * See the LICENSE file in the root directory of this source tree.
550
550
  */const Jjt=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],zLe=qt("scale",Jjt);/**
551
- * @license lucide-react v0.546.0 - ISC
551
+ * @license lucide-react v0.545.0 - ISC
552
552
  *
553
553
  * This source code is licensed under the ISC license.
554
554
  * See the LICENSE file in the root directory of this source tree.
555
555
  */const eIt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],HLe=qt("search",eIt);/**
556
- * @license lucide-react v0.546.0 - ISC
556
+ * @license lucide-react v0.545.0 - ISC
557
557
  *
558
558
  * This source code is licensed under the ISC license.
559
559
  * See the LICENSE file in the root directory of this source tree.
560
560
  */const tIt=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],VLe=qt("send",tIt);/**
561
- * @license lucide-react v0.546.0 - ISC
561
+ * @license lucide-react v0.545.0 - ISC
562
562
  *
563
563
  * This source code is licensed under the ISC license.
564
564
  * See the LICENSE file in the root directory of this source tree.
565
565
  */const nIt=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],rIt=qt("settings",nIt);/**
566
- * @license lucide-react v0.546.0 - ISC
566
+ * @license lucide-react v0.545.0 - ISC
567
567
  *
568
568
  * This source code is licensed under the ISC license.
569
569
  * See the LICENSE file in the root directory of this source tree.
570
570
  */const iIt=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],W_=qt("square-check-big",iIt);/**
571
- * @license lucide-react v0.546.0 - ISC
571
+ * @license lucide-react v0.545.0 - ISC
572
572
  *
573
573
  * This source code is licensed under the ISC license.
574
574
  * See the LICENSE file in the root directory of this source tree.
575
575
  */const aIt=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Gu=qt("square-pen",aIt);/**
576
- * @license lucide-react v0.546.0 - ISC
576
+ * @license lucide-react v0.545.0 - ISC
577
577
  *
578
578
  * This source code is licensed under the ISC license.
579
579
  * See the LICENSE file in the root directory of this source tree.
580
580
  */const oIt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],K_=qt("square-x",oIt);/**
581
- * @license lucide-react v0.546.0 - ISC
581
+ * @license lucide-react v0.545.0 - ISC
582
582
  *
583
583
  * This source code is licensed under the ISC license.
584
584
  * See the LICENSE file in the root directory of this source tree.
585
585
  */const sIt=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],lIt=qt("tags",sIt);/**
586
- * @license lucide-react v0.546.0 - ISC
586
+ * @license lucide-react v0.545.0 - ISC
587
587
  *
588
588
  * This source code is licensed under the ISC license.
589
589
  * See the LICENSE file in the root directory of this source tree.
590
590
  */const cIt=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Hy=qt("trash-2",cIt);/**
591
- * @license lucide-react v0.546.0 - ISC
591
+ * @license lucide-react v0.545.0 - ISC
592
592
  *
593
593
  * This source code is licensed under the ISC license.
594
594
  * See the LICENSE file in the root directory of this source tree.
595
595
  */const uIt=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Vx=qt("trash",uIt);/**
596
- * @license lucide-react v0.546.0 - ISC
596
+ * @license lucide-react v0.545.0 - ISC
597
597
  *
598
598
  * This source code is licensed under the ISC license.
599
599
  * See the LICENSE file in the root directory of this source tree.
600
600
  */const dIt=[["path",{d:"M14.828 14.828 21 21",key:"ar5fw7"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"m21 3-9 9-4-4-6 6",key:"1h02xo"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}]],fIt=qt("trending-up-down",dIt);/**
601
- * @license lucide-react v0.546.0 - ISC
601
+ * @license lucide-react v0.545.0 - ISC
602
602
  *
603
603
  * This source code is licensed under the ISC license.
604
604
  * See the LICENSE file in the root directory of this source tree.
605
605
  */const hIt=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],QLe=qt("unlink",hIt);/**
606
- * @license lucide-react v0.546.0 - ISC
606
+ * @license lucide-react v0.545.0 - ISC
607
607
  *
608
608
  * This source code is licensed under the ISC license.
609
609
  * See the LICENSE file in the root directory of this source tree.
610
610
  */const mIt=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],pIt=qt("user-round",mIt);/**
611
- * @license lucide-react v0.546.0 - ISC
611
+ * @license lucide-react v0.545.0 - ISC
612
612
  *
613
613
  * This source code is licensed under the ISC license.
614
614
  * See the LICENSE file in the root directory of this source tree.
615
615
  */const AIt=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],gIt=qt("user",AIt);/**
616
- * @license lucide-react v0.546.0 - ISC
616
+ * @license lucide-react v0.545.0 - ISC
617
617
  *
618
618
  * This source code is licensed under the ISC license.
619
619
  * See the LICENSE file in the root directory of this source tree.
620
620
  */const vIt=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],yIt=qt("wallet",vIt);/**
621
- * @license lucide-react v0.546.0 - ISC
621
+ * @license lucide-react v0.545.0 - ISC
622
622
  *
623
623
  * This source code is licensed under the ISC license.
624
624
  * See the LICENSE file in the root directory of this source tree.
625
625
  */const bIt=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],xIt=qt("wand-sparkles",bIt);/**
626
- * @license lucide-react v0.546.0 - ISC
626
+ * @license lucide-react v0.545.0 - ISC
627
627
  *
628
628
  * This source code is licensed under the ISC license.
629
629
  * See the LICENSE file in the root directory of this source tree.
630
630
  */const wIt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qx=qt("x",wIt);/**
631
- * @license lucide-react v0.546.0 - ISC
631
+ * @license lucide-react v0.545.0 - ISC
632
632
  *
633
633
  * This source code is licensed under the ISC license.
634
634
  * See the LICENSE file in the root directory of this source tree.
635
635
  */const kIt=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],_ve=qt("zoom-in",kIt);/**
636
- * @license lucide-react v0.546.0 - ISC
636
+ * @license lucide-react v0.545.0 - ISC
637
637
  *
638
638
  * This source code is licensed under the ISC license.
639
639
  * See the LICENSE file in the root directory of this source tree.
@@ -689,7 +689,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
689
689
  * LICENSE.md file in the root directory of this source tree.
690
690
  *
691
691
  * @license MIT
692
- */function Zo(t,e){return t?iHt(t)?w.createElement(t,e):t:null}function iHt(t){return aHt(t)||typeof t=="function"||oHt(t)}function aHt(t){return typeof t=="function"&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}function oHt(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function fm(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=w.useState(()=>({current:Z9t(e)})),[r,i]=w.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...t,state:{...r,...t.state},onStateChange:o=>{i(o),t.onStateChange==null||t.onStateChange(o)}})),n.current}function Ku({className:t,...e}){return d.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:d.jsx("table",{"data-slot":"table",className:Ct("w-full caption-bottom text-sm",t),...e})})}function Yu({className:t,...e}){return d.jsx("thead",{"data-slot":"table-header",className:Ct("[&_tr]:border-b",t),...e})}function Xu({className:t,...e}){return d.jsx("tbody",{"data-slot":"table-body",className:Ct("[&_tr:last-child]:border-0",t),...e})}function _r({className:t,...e}){return d.jsx("tr",{"data-slot":"table-row",className:Ct("hover:bg-gray-100/50 data-[state=selected]:bg-gray-100 border-b transition-colors dark:hover:bg-gray-800/50 dark:data-[state=selected]:bg-gray-800",t),...e})}function Wr({className:t,...e}){return d.jsx("th",{"data-slot":"table-head",className:Ct("text-gray-950 h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] dark:text-gray-50",t),...e})}function Rt({className:t,...e}){return d.jsx("td",{"data-slot":"table-cell",className:Ct("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}const sHt="updateDocument",EC=()=>{const[{fetching:t},e]=zn(yTt),n=w.useCallback(async r=>{const i=`Error updating document ID [${r.documentId}]`,a=`${sHt}-${r.documentId}`;Ve.loading("Updating document",{id:a});try{const o=await e(r),s=Hn(o,i,a,"updateDocument");if(s)return Ve.success("Success",{id:a,description:"Document updated"}),s.updateDocument}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateDocument:n}},PVe=(t,e)=>{const n=e?JSON.parse(decodeURIComponent(e)):{};return OD({fromDate:n.fromDate,toDate:n.toDate,ownerIds:n.byOwners,businessIDs:[t]})},MVe=[Cr.Unprocessed,Cr.Other],lHt=({document:t,onChange:e})=>{const{get:n}=pi(),r="creditor"in t?t.creditor:void 0,i=!t.documentType||!MVe.includes(t.documentType),a=i&&!r?.id||Cr.Unprocessed===t.documentType,{selectableBusinesses:o,refresh:s}=Wu(),l=n("chargesFilters"),c=w.useCallback(C=>PVe(C,l),[l]),u=w.useMemo(()=>{if(r||!("missingInfoSuggestions"in t)||!t.missingInfoSuggestions)return;const C=t.missingInfoSuggestions.owner,N=t.missingInfoSuggestions.counterparty;if(t.missingInfoSuggestions?.isIncome==null){if(t.debtor?.id){const E=t.debtor.id;if(C?.id===E&&N)return N;if(N?.id===E&&C)return C}}else{if(t.missingInfoSuggestions.isIncome&&C)return C;if(!t.missingInfoSuggestions.isIncome&&N)return N}},[t,r]),f=!r&&!!u,h=r??u,{name:m="Missing",id:A}=h||{},{updateDocument:p,fetching:v}=EC(),y=w.useCallback(C=>{C!==void 0&&p({documentId:t.id,fields:{creditorId:C}}).then(t.onUpdate)},[t.id,p,t.onUpdate]),[x,k]=w.useState(null),S=w.useCallback(async C=>{await y(C),s(),e?.()},[y,e,s]);return d.jsxs("div",{className:"flex flex-wrap",children:[d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!a,color:"red",zIndex:"auto",children:i&&(A?d.jsx("a",{href:c(A),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:m,className:"[&>*>.mantine-NavLink-label]:font-semibold"})}):d.jsx(GL,{options:o,value:A??null,onChange:C=>C&&y(C),search:x,onSearchChange:k,placeholder:"Choose or create a business",empty:x?d.jsx(sL,{description:x,onAdd:S}):null}))})}),f&&d.jsx(PD,{onClick:()=>y(u.id),disabled:v})]})},cHt=({document:t})=>{const e="amount"in t?t.amount:void 0,n="missingInfoSuggestions"in t?t.missingInfoSuggestions?.amount:void 0,r=!e&&!!n,i=e??n,{updateDocument:a,fetching:o}=EC(),s=w.useCallback(u=>{u!==void 0&&a({documentId:t.id,fields:{amount:{raw:u.raw,currency:u.currency}}}).then(t.onUpdate)},[t.id,a,t.onUpdate]),c=Cr.Other!==t.documentType&&i?.formatted==null;return d.jsxs("div",{className:"flex flex-wrap",children:[d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!c,color:"red",zIndex:"auto",children:d.jsx("p",{className:["whitespace-nowrap",r?"bg-yellow-400":"",Number(i?.raw)>0?"text-green-700":"text-red-500"].join(" "),children:i?.formatted})})}),r&&d.jsx(PD,{onClick:()=>s(n),disabled:o})]})},uHt=({document:t})=>{const e="date"in t?t.date:void 0,n=Cr.Other!==t.documentType,r=n&&!e,i=e?$t(new Date(e),"dd/MM/yy"):"Missing Data",a=n?i:null;return d.jsx(Fa,{inline:!0,size:12,disabled:!r,color:"red",zIndex:"auto",children:d.jsx("div",{children:a})})},dHt=({document:t,onChange:e})=>{const{get:n}=pi(),r="debtor"in t?t.debtor:void 0,i=!t.documentType||!MVe.includes(t.documentType),a=i&&!r?.id||Cr.Unprocessed===t.documentType,{selectableBusinesses:o,refresh:s}=Wu(),l=n("chargesFilters"),c=w.useCallback(C=>PVe(C,l),[l]),u=w.useMemo(()=>{if(r||!("missingInfoSuggestions"in t)||!t.missingInfoSuggestions)return;const C=t.missingInfoSuggestions.owner,N=t.missingInfoSuggestions.counterparty;if(t.missingInfoSuggestions?.isIncome==null){if(t.creditor?.id){const E=t.creditor.id;if(C?.id===E&&N)return N;if(N?.id===E&&C)return C}}else{if(t.missingInfoSuggestions.isIncome&&N)return N;if(!t.missingInfoSuggestions.isIncome&&C)return C}},[t,r]),f=!r&&!!u,h=r??u,{name:m="Missing",id:A}=h||{},{updateDocument:p,fetching:v}=EC(),y=w.useCallback(C=>{C!==void 0&&p({documentId:t.id,fields:{debtorId:C}}).then(t.onUpdate)},[t.id,p,t.onUpdate]),[x,k]=w.useState(null),S=w.useCallback(async C=>{await y(C),s(),e?.()},[y,e,s]);return d.jsxs("div",{className:"flex flex-wrap",children:[d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!a,color:"red",zIndex:"auto",children:i&&(A?d.jsx("a",{href:c(A),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:m,className:"[&>*>.mantine-NavLink-label]:font-semibold"})}):d.jsx(GL,{options:o,value:A??null,onChange:C=>C&&y(C),search:x,onSearchChange:k,placeholder:"Choose or create a business",empty:x?d.jsx(sL,{description:x,onAdd:S}):null}))})}),f&&d.jsx(PD,{onClick:()=>y(u.id),disabled:v})]})},fHt=({document:t})=>{let e="";if("issuedDocumentInfo"in t&&t.issuedDocumentInfo?.originalDocument?.income){const{income:n}=t.issuedDocumentInfo.originalDocument;e=n.map(r=>r.description).join(", ")}return d.jsx("div",{className:"flex flex-col align-center justify-center flex-wrap",children:d.jsx("p",{children:e})})},hHt=({document:{image:t,file:e}})=>{const[n,r]=w.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:d.jsxs(xC,{cols:1,children:[d.jsx(Un,{disabled:!t,label:"Open Image",children:d.jsx(Fa,{inline:!0,size:12,disabled:!!t,color:"red",zIndex:"auto",children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",disabled:!t,onClick:()=>r(!!t),children:d.jsx(LLe,{className:"size-5"})})})}),d.jsx(Un,{disabled:!e,label:"Open File",children:d.jsx(Fa,{inline:!0,size:12,disabled:!!e,color:"red",zIndex:"auto",children:e?d.jsx("a",{href:typeof e=="string"?e:e.href,target:"_blank",rel:"noreferrer",children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",children:d.jsx(Sve,{className:"size-5"})})}):d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",disabled:!0,children:d.jsx(Sve,{className:"size-5"})})})})]})})}),t&&d.jsx(cm,{classNames:{content:"overflow-y-auto drop-shadow-lg"},withCloseButton:!0,withOverlay:!1,position:"right",opened:n,onClose:()=>r(!1),size:"30%",children:d.jsx("div",{className:"m-2",children:d.jsx(AWe,{src:t.toString(),zoomLevel:3,magnifierHeight:300,magnifierWidth:300})})})]})},mHt=({document:t})=>{const e="serialNumber"in t?t.serialNumber:void 0,n="allocationNumber"in t?t.allocationNumber:void 0,i=Cr.Other!==t.documentType&&!e;return d.jsxs("div",{className:"flex flex-col align-center justify-center flex-wrap",children:[d.jsx(Fa,{inline:!0,size:12,disabled:!i,color:"red",zIndex:"auto",children:d.jsx("p",{children:e})}),n&&d.jsxs("p",{className:"text-xs",children:["(",n,")"]})]})},pHt=({document:{documentType:t},isOpen:e})=>{const n=!t||t===Cr.Unprocessed,r=t??Cr.Unprocessed,i=n?"red":e?"orange":"blue";return d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!n&&!e,color:i,zIndex:"auto",children:d.jsx("p",{children:AE(r)})})})})},AHt=({document:t})=>{const e="vat"in t?t.vat:void 0,r=Cr.Other!==t.documentType&&e?.formatted==null;return d.jsx(Fa,{inline:!0,size:12,disabled:!r,color:"red",zIndex:"auto",children:d.jsx("div",{style:{color:Number(e?.raw)>0?"green":"red",whiteSpace:"nowrap"},children:e?.formatted})})},eI=[{id:"date",accessorKey:"date",sortingFn:t=>"date"in t.original&&t.original.date?new Date(t.original.date).getTime():0,header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(uHt,{document:t.original})},{id:"amount",accessorKey:"amount.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(cHt,{document:t.original})},{id:"vat",accessorKey:"vat.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["VAT",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(AHt,{document:t.original})},{id:"type",accessorKey:"documentType",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Type",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(pHt,{document:t.original,isOpen:"issuedDocumentInfo"in t.original&&t.original.issuedDocumentInfo?.status==="OPEN"})},{id:"serial",accessorKey:"serialNumber",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Serial",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(mHt,{document:t.original})},{id:"description",accessorKey:"issuedDocumentInfo.originalDocument.income",header:"Description",cell:({row:t})=>d.jsx(fHt,{document:t.original})},{id:"creditor",accessorKey:"creditor.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Creditor",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(lHt,{document:t.original,onChange:t.original.onUpdate})},{id:"debtor",accessorKey:"debtor.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Debtor",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(dHt,{document:t.original,onChange:t.original.onUpdate})},{id:"file",accessorKey:"file",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["files",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(hHt,{document:t.original})},{id:"edit",accessorKey:"id",header:"Edit",cell:({row:t})=>d.jsxs("div",{className:"flex flex-col items-center gap-2",children:[d.jsx(gL,{onClick:t.original.editDocument,tooltip:"Edit Document"}),"issuedDocumentInfo"in t.original&&t.original.issuedDocumentInfo?.status==="OPEN"&&d.jsxs(d.Fragment,{children:[d.jsx(YHt,{documentId:t.original.id,couldIssueCreditInvoice:t.original.documentType===Cr.Invoice||t.original.documentType===Cr.InvoiceReceipt}),d.jsx($E,{documentId:t.original.id,tooltip:"Issue Document out of This Document"})]})]})}],RVe=({documentsProps:t,onChange:e,limited:n=!1})=>{const[r,i]=w.useState(void 0),[a,o]=w.useState([]),s=w.useMemo(()=>t?.map(h=>{const m=Lt(J3e,h);return{...m,editDocument:()=>i(m.id),onUpdate:e}}),[t,e]),[l,c]=w.useState({}),u=["date","amount","vat","type","serial","file"],f=fm({data:s,columns:n?eI.filter(h=>h.id&&u.includes(h.id)):eI,getCoreRowModel:dm(),onSortingChange:o,getSortedRowModel:jg(),onColumnVisibilityChange:c,state:{sorting:a,columnVisibility:l}});return d.jsxs(d.Fragment,{children:[d.jsxs(Ku,{children:[d.jsx(Yu,{children:f.getHeaderGroups().map(h=>d.jsx(_r,{children:h.headers.map(m=>d.jsx(Wr,{colSpan:m.colSpan,children:m.isPlaceholder?null:Zo(m.column.columnDef.header,m.getContext())},m.id))},h.id))}),d.jsx(Xu,{children:f.getRowModel().rows?.length?f.getRowModel().rows.map(h=>d.jsx(_r,{"data-state":h.getIsSelected()&&"selected",children:h.getVisibleCells().map(m=>d.jsx(Rt,{children:Zo(m.column.columnDef.cell,m.getContext())},m.id))},h.id)):d.jsx(_r,{children:d.jsx(Rt,{colSpan:eI.length,className:"h-24 text-center",children:"No results."})})})]}),d.jsx(IKe,{documentId:r,onDone:()=>i(void 0),onChange:e})]})},gHt=Lne("inline-flex items-center justify-center rounded-md border border-gray-200 px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-gray-950 focus-visible:ring-gray-950/50 focus-visible:ring-[3px] aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 transition-[color,box-shadow] overflow-hidden dark:border-gray-800 dark:focus-visible:border-gray-300 dark:focus-visible:ring-gray-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",{variants:{variant:{default:"border-transparent bg-gray-900 text-gray-50 [a&]:hover:bg-gray-900/90 dark:bg-gray-50 dark:text-gray-900 dark:[a&]:hover:bg-gray-50/90",secondary:"border-transparent bg-gray-100 text-gray-900 [a&]:hover:bg-gray-100/90 dark:bg-gray-800 dark:text-gray-50 dark:[a&]:hover:bg-gray-800/90",destructive:"border-transparent bg-red-500 text-white [a&]:hover:bg-red-500/90 focus-visible:ring-red-500/20 dark:focus-visible:ring-red-500/40 dark:bg-red-500/60 dark:bg-red-900 dark:[a&]:hover:bg-red-900/90 dark:focus-visible:ring-red-900/20 dark:dark:focus-visible:ring-red-900/40 dark:dark:bg-red-900/60",outline:"text-gray-950 [a&]:hover:bg-gray-100 [a&]:hover:text-gray-900 dark:text-gray-50 dark:[a&]:hover:bg-gray-800 dark:[a&]:hover:text-gray-50"}},defaultVariants:{variant:"default"}});function pS({className:t,variant:e,asChild:n=!1,...r}){const i=n?$ne:"span";return d.jsx(i,{"data-slot":"badge",className:Ct(gHt({variant:e}),t),...r})}const j5=({foreignAmount:t,localAmount:e,diff:n})=>{const r=t!=null&&t.currency!==Vt.Ils,i=n&&n.localAmount?.formatted!==e?.formatted,a=n&&n.foreignAmount?.formatted!==t?.formatted;return d.jsx("div",{className:"flex flex-col",children:(e||i)&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex gap-2 items-center",children:[r&&d.jsx("p",{className:a?"line-through":"",children:t.formatted}),a&&n.foreignAmount&&d.jsx("p",{className:"border-2 border-yellow-500 rounded-md",children:n.foreignAmount.formatted})]}),d.jsxs("div",{className:"flex gap-2 items-center",children:[e!=null&&d.jsx("p",{className:i?"line-through":"",children:e.formatted}),i&&n.localAmount&&d.jsx("p",{className:"border-2 border-yellow-500 rounded-md",children:n.localAmount.formatted})]})]})})},I5=({account:t,diffAccount:e})=>{const{get:n}=pi(),r=n("chargesFilters"),i=w.useCallback(o=>{let s={};if(r)try{const l=decodeURIComponent(r);s=JSON.parse(l)}catch(l){console.error("Failed to parse filters from URL:",l)}return OD({ownerIds:s.byOwners||[],businessIDs:[o],...s.fromDate&&{fromDate:s.fromDate},...s.toDate&&{toDate:s.toDate}})},[r]),a=e&&e?.id!==t?.id;return d.jsx("div",{className:"flex flex-col whitespace-normal",children:(t||a)&&d.jsxs(d.Fragment,{children:[t&&d.jsx("a",{href:i(t.id),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:t.name,className:`[&>*>.mantine-NavLink-label]:font-semibold ${a?"line-through":""}`})}),a&&e&&d.jsx("div",{className:"border-2 border-yellow-500 rounded-md",children:d.jsx("a",{href:i(e.id),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:e.name,className:"[&>*>.mantine-NavLink-label]:font-semibold"})})})]})})},bxe=({date:t,diff:e})=>{const n=t?$t(new Date(t),"dd/MM/yy"):void 0,r=e?$t(new Date(e),"dd/MM/yy"):void 0,i=r&&n!==r;return d.jsxs(d.Fragment,{children:[d.jsx("p",{className:i?"line-through":"",children:n??"Missing Data"}),i&&d.jsx("div",{className:"flex flex-col border-2 border-yellow-500 rounded-md",children:r})]})},xxe=[{accessorKey:"invoiceDate",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Invoice Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(bxe,{date:t.original.invoiceDate,diff:t.original.diff?.invoiceDate})},{accessorKey:"valueDate",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Value Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(bxe,{date:t.original.valueDate,diff:t.original.diff?.valueDate})},{header:"Debit Account1",columns:[{accessorKey:"debitAccount1.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.debitAccount1,diffAccount:t.original.diff?.debitAccount1})},{accessorKey:"localCurrencyDebitAmount1.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.debitAmount1,localAmount:t.original.localCurrencyDebitAmount1,diff:t.original.diff?{foreignAmount:t.original.diff.debitAmount1,localAmount:t.original.diff.localCurrencyDebitAmount1}:void 0})}]},{header:"Credit Account1",columns:[{accessorKey:"creditAccount1.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.creditAccount1,diffAccount:t.original.diff?.creditAccount1})},{accessorKey:"localCurrencyCreditAmount1.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.creditAmount1,localAmount:t.original.localCurrencyCreditAmount1,diff:t.original.diff?{foreignAmount:t.original.diff.creditAmount1,localAmount:t.original.diff.localCurrencyCreditAmount1}:void 0})}]},{header:"Debit Account2",columns:[{accessorKey:"debitAccount2.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.debitAccount2,diffAccount:t.original.diff?.debitAccount2})},{accessorKey:"localCurrencyDebitAmount2.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.debitAmount2,localAmount:t.original.localCurrencyDebitAmount2,diff:t.original.diff?{foreignAmount:t.original.diff.debitAmount2,localAmount:t.original.diff.localCurrencyDebitAmount2}:void 0})}]},{header:"Credit Account2",columns:[{accessorKey:"creditAccount2.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.creditAccount2,diffAccount:t.original.diff?.creditAccount2})},{accessorKey:"localCurrencyCreditAmount2.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.creditAmount2,localAmount:t.original.localCurrencyCreditAmount2,diff:t.original.diff?{foreignAmount:t.original.diff.creditAmount2,localAmount:t.original.diff.localCurrencyCreditAmount2}:void 0})}]},{accessorKey:"description",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Details",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:{original:t}})=>{const e=t.diff&&t.diff.description!==t.description;return d.jsxs("div",{className:"flex flex-col whitespace-normal",children:[d.jsx("p",{className:e?"line-through":"",children:t.description}),e&&d.jsx("div",{className:"border-2 border-yellow-500 rounded-md",children:t.diff?.description})]})}},{accessorKey:"reference",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Reference",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:{original:t}})=>{const e=t.diff&&t.diff.reference!==t.reference;return d.jsxs("div",{className:"flex flex-col whitespace-normal",children:[d.jsx("p",{className:e?"line-through":"",children:t.reference}),e&&d.jsx("div",{className:"border-2 border-yellow-500 rounded-md",children:t.diff?.reference})]})}},{accessorKey:"matchingStatus",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Status",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:{original:{matchingStatus:t}}})=>{if(t){const e=t==="Deleted"?"bg-red-500":t==="Diff"?"bg-yellow-500":"bg-green-500";return d.jsx(pS,{variant:"default",className:e,children:t})}return null}}];function vHt(t){let e="";switch(t){case"New":e="bg-green-100/30";break;case"Deleted":e="bg-red-100/30";break;case"Diff":e="bg-yellow-100/30";break}return e}const yHt=({ledgerFragment:t})=>{const{ledger:e}=Lt(cLe,t),[n,r]=w.useState([]),i=w.useMemo(()=>{const o=e.records.map(l=>{const c=e.validate?.differences?.find(u=>u.id===l.id);return{...l,matchingStatus:!e.validate?.matches||e.validate.matches?.includes(l.id)?void 0:c?"Diff":"Deleted",diff:c}}),s=e?.validate?.differences?.filter(l=>l.id===hD).map(l=>({...l,matchingStatus:"New"}))??[];return o.push(...s),o},[e]),a=fm({data:i,columns:xxe,getCoreRowModel:dm(),onSortingChange:r,getSortedRowModel:jg(),state:{sorting:n}});return d.jsxs(Ku,{children:[d.jsx(Yu,{children:a.getHeaderGroups().map(o=>d.jsx(_r,{children:o.headers.map(s=>d.jsx(Wr,{colSpan:s.colSpan,children:s.isPlaceholder?null:Zo(s.column.columnDef.header,s.getContext())},s.id))},o.id))}),d.jsx(Xu,{children:a.getRowModel().rows?.length?a.getRowModel().rows.map(o=>d.jsx(_r,{"data-state":o.getIsSelected()&&"selected",className:vHt(o.original.matchingStatus),children:o.getVisibleCells().map(s=>d.jsx(Rt,{children:Zo(s.column.columnDef.cell,s.getContext())},s.id))},o.id)):d.jsx(_r,{children:d.jsx(Rt,{colSpan:xxe.length,className:"h-24 text-center",children:"No results."})})})]})},bHt=({data:t})=>{const e=Lt(Z3e,t);return e?.errorsLedger?.validate?.errors?.length?d.jsxs(Fg,{shadow:"xs",p:"md",children:[d.jsx(Jn,{c:"red",children:"Errors:"}),d.jsx(jp,{size:"sm",withPadding:!0,children:e.errorsLedger.validate.errors.map((n,r)=>d.jsx(jp.Item,{children:d.jsx(Jn,{c:"red",children:n})},r))})]}):null},$Ve=({transaction:t})=>{const e="effectiveDate"in t?t.effectiveDate:void 0;return d.jsxs("div",{className:"flex flex-col justify-center",children:[d.jsx("div",{children:e&&$t(new Date(e),"dd/MM/yy")}),t.sourceEffectiveDate&&d.jsxs("div",{className:"text-xs text-gray-500",children:["(Originally ",$t(new Date(t.sourceEffectiveDate),"dd/MM/yy"),")"]})]})},LVe=({transaction:t})=>{const e="eventDate"in t?t.eventDate:void 0;return d.jsx("div",{className:"flex flex-col justify-center",children:e&&$t(new Date(e),"dd/MM/yy")})},UVe=({transaction:t})=>{const e="amount"in t?t.amount:void 0;return d.jsxs("div",{style:{color:Number(e?.raw)>0?"green":"red",whiteSpace:"nowrap"},children:[e?.formatted,d.jsx("br",{}),t.cryptoExchangeRate&&d.jsxs("span",{style:{color:"gray",marginLeft:"0.5rem"},children:[`(Rate: ${t.cryptoExchangeRate.rate})`,d.jsx("br",{}),e?.raw?`${ni(e.raw*t.cryptoExchangeRate.rate)}$`:null]})]})},zVe=({transaction:t})=>{const{account:e}=t,n=e.type,r=e.name;return d.jsxs("div",{className:"flex flex-col justify-center",children:[d.jsx("p",{children:n}),d.jsx("p",{children:r})]})},HVe=({transaction:t})=>{const e="sourceDescription"in t?t.sourceDescription:"Missing";return d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:e})})},VVe=({transaction:t})=>d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:t.referenceKey})}),xHt="updateTransaction",oL=()=>{const[{fetching:t},e]=zn(CTt),n=w.useCallback(async r=>{const i=`Error updating transaction ID [${r.transactionId}]`,a=`${xHt}-${r.transactionId}`;Ve.loading("Updating Transaction",{id:a});try{const o=await e(r),s=Hn(o,i,a,"updateTransaction");if(s)return Ve.success("Success",{id:a,description:"Transaction updated"}),s.updateTransaction}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateTransaction:n}},wHt="insertNewBusiness",kHt=()=>{const[{fetching:t},e]=zn(YDt),n=w.useCallback(async r=>{const i=`Error creating business [${r.fields.name}]`,a=`${wHt}-${r.fields.name}`;Ve.loading("Creating Business...",{id:a});try{const o=await e(r),s=Hn(o,i,a,"insertNewBusiness");if(s)return Ve.success("Success",{id:a,description:`Business [${r.fields.name}] was created`}),s.insertNewBusiness}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,insertBusiness:n}};function sL({description:t,onAdd:e}){const[n,r]=w.useState(!1);return d.jsxs(Wa,{open:n,onOpenChange:r,children:[d.jsx(_c,{asChild:!0,children:d.jsx(qe,{children:"Add Business"})}),d.jsxs(Ka,{className:"w-[90vw] max-w-screen-md",children:[d.jsx(ws,{children:d.jsx(ks,{children:"Add New Business"})}),d.jsx(SHt,{description:t,close:()=>r(!1),onAdd:e})]})]})}function SHt({description:t,close:e,onAdd:n}){const r=mr({defaultValues:{name:t,country:"Israel",suggestions:{phrases:[t]}}}),{handleSubmit:i}=r,[a,o]=w.useState(!1),{insertBusiness:s,fetching:l}=kHt(),c=u=>{u.sortCode&&=parseInt(u.sortCode.toString()),s({fields:u}).then(f=>{f?.id&&(n?.(f.id),e())})};return d.jsx(ii,{...r,children:d.jsxs("form",{onSubmit:i(c),children:[d.jsx(gtn,{formManager:r,setFetching:o}),d.jsx("div",{className:"flex justify-center mt-4",children:d.jsx(qe,{type:"submit",disabled:l||a,children:"Add"})})]})})}const CHt=w.createContext(null),sH={didCatch:!1,error:null};class lL extends w.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=sH}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:a,reason:"imperative-api"}),this.setState(sH)}}componentDidCatch(e,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&_Ht(e.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(sH)}}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=e;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")s=n(l);else if(r)s=w.createElement(r,l);else if(i!==void 0)s=i;else throw o}return w.createElement(CHt.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function _Ht(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}const NHt="updateTransactions",EHt=()=>{const[{fetching:t},e]=zn(_Tt),n=w.useCallback(async r=>{const i=Array.isArray(r.transactionIds)?r.transactionIds.join(", "):r.transactionIds,a=`Error updating transactions ID [${i}]`,o=`${NHt}-${i}`;Ve.loading("Updating Transactions",{id:o});try{const s=await e(r),l=Hn(s,a,o,"updateTransactions");if(l)return Ve.success("Success",{id:o,description:"Transactions updated"}),l.updateTransactions.transactions.map(c=>c.id)}catch(s){console.error(`${a}: ${s}`),Ve.error("Error",{id:o,description:a,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateTransactions:n}};function uae(t){const e=w.useRef({value:t,previous:t});return w.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function dae(t){const[e,n]=w.useState(void 0);return bs(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=t.offsetWidth,s=t.offsetHeight;n({width:o,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var cL="Checkbox",[FHt]=Cc(cL),[DHt,fae]=FHt(cL);function THt(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:f}=t,[h,m]=Pd({prop:n,defaultProp:i??!1,onChange:l,caller:cL}),[A,p]=w.useState(null),[v,y]=w.useState(null),x=w.useRef(!1),k=A?!!o||!!A.closest("form"):!0,S={checked:h,disabled:a,setChecked:m,control:A,setControl:p,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:fy(i)?!1:i,isFormControl:k,bubbleInput:v,setBubbleInput:y};return d.jsx(DHt,{scope:e,...S,children:OHt(f)?f(S):r})}var QVe="CheckboxTrigger",qVe=w.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},i)=>{const{control:a,value:o,disabled:s,checked:l,required:c,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:A}=fae(QVe,t),p=$r(i,u),v=w.useRef(l);return w.useEffect(()=>{const y=a?.form;if(y){const x=()=>f(v.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,f]),d.jsx(wn.button,{type:"button",role:"checkbox","aria-checked":fy(l)?"mixed":l,"aria-required":c,"data-state":ZVe(l),"data-disabled":s?"":void 0,disabled:s,value:o,...r,ref:p,onKeyDown:ln(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:ln(n,y=>{f(x=>fy(x)?!0:!x),A&&m&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});qVe.displayName=QVe;var GVe=w.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l,onCheckedChange:c,form:u,...f}=t;return d.jsx(THt,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:h})=>d.jsxs(d.Fragment,{children:[d.jsx(qVe,{...f,ref:e,__scopeCheckbox:n}),h&&d.jsx(XVe,{__scopeCheckbox:n})]})})});GVe.displayName=cL;var WVe="CheckboxIndicator",KVe=w.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...i}=t,a=fae(WVe,n);return d.jsx(cl,{present:r||fy(a.checked)||a.checked===!0,children:d.jsx(wn.span,{"data-state":ZVe(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});KVe.displayName=WVe;var YVe="CheckboxBubbleInput",XVe=w.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:l,name:c,value:u,form:f,bubbleInput:h,setBubbleInput:m}=fae(YVe,t),A=$r(n,m),p=uae(a),v=dae(r);w.useEffect(()=>{const x=h;if(!x)return;const k=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(k,"checked").set,N=!i.current;if(p!==a&&C){const E=new Event("click",{bubbles:N});x.indeterminate=fy(a),C.call(x,fy(a)?!1:a),x.dispatchEvent(E)}},[h,p,a,i]);const y=w.useRef(fy(a)?!1:a);return d.jsx(wn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:l,name:c,value:u,form:f,...e,tabIndex:-1,ref:A,style:{...e.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XVe.displayName=YVe;function OHt(t){return typeof t=="function"}function fy(t){return t==="indeterminate"}function ZVe(t){return fy(t)?"indeterminate":t?"checked":"unchecked"}function hx({className:t,...e}){return d.jsx(GVe,{"data-slot":"checkbox",className:Ct("peer border-gray-200 dark:bg-gray-200/30 data-[state=checked]:bg-gray-900 data-[state=checked]:text-gray-50 dark:data-[state=checked]:bg-gray-900 data-[state=checked]:border-gray-900 focus-visible:border-gray-950 focus-visible:ring-gray-950/50 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:dark:bg-gray-800/30 dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:text-gray-900 dark:dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:border-gray-50 dark:focus-visible:border-gray-300 dark:focus-visible:ring-gray-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",t),...e,children:d.jsx(KVe,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:d.jsx(Ls,{className:"size-3.5"})})})}const BHt=[{id:"select",header:({table:t})=>d.jsx(hx,{checked:t.getIsAllPageRowsSelected()||t.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:e=>t.toggleAllPageRowsSelected(!!e),"aria-label":"Select all"}),cell:({row:t})=>d.jsx(hx,{checked:t.getIsSelected(),onCheckedChange:e=>t.toggleSelected(!!e),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"accountType",header:"Type",cell:({row:t})=>d.jsx("div",{children:t.getValue("accountType")})},{accessorKey:"accountName",header:"Account",cell:({row:t})=>d.jsx("div",{children:t.getValue("accountName")})},{accessorKey:"amountRaw",header:"Amount",cell:({row:t})=>d.jsx("div",{children:t.original.amountFormatted})},{accessorKey:"sourceDescription",header:"Description",cell:({row:t})=>d.jsx("div",{children:t.getValue("sourceDescription")})},{accessorKey:"eventDate",header:"Event Date",cell:({row:t})=>d.jsx("div",{children:$t(t.getValue("eventDate"),"yyyy-MM-dd")})},{accessorKey:"valueDate",header:"Value Date",cell:({row:t})=>d.jsx("div",{children:t.getValue("valueDate")?$t(t.getValue("valueDate"),"yyyy-MM-dd"):""})}];function JVe({transactionId:t,counterpartyId:e,open:n,onOpenChange:r,onClose:i}){const[{data:a,fetching:o},s]=on({pause:!0,query:UFt,variables:{transactionId:t,withMissingInfo:!0}});w.useEffect(()=>{n&&e&&s()},[n,e,s,t]);const l=w.useCallback(u=>{r(u),n&&!u&&i?.()},[r,i,n]),c=w.useMemo(()=>{const u=a?.similarTransactions.map(f=>({id:f.id,amountRaw:f.amount.raw,amountFormatted:f.amount.formatted,sourceDescription:f.sourceDescription,eventDate:new Date(f.eventDate),valueDate:f.effectiveDate?new Date(f.effectiveDate):void 0,accountType:f.account.type,accountName:f.account.name}))??[];return a&&u.length===0&&l(!1),u},[a,l]);return d.jsx(Wa,{open:n&&!!e&&c.length>0,onOpenChange:l,children:d.jsx(Ka,{className:"overflow-scroll max-h-screen w-full sm:max-w-[640px] md:max-w-[768px] lg:max-w-[900px]",children:d.jsx(lL,{fallback:d.jsx("div",{children:"Error fetching similar transactions"}),children:o?d.jsx(Jc,{}):e?d.jsx(jHt,{data:c,counterpartyId:e,onOpenChange:l}):null})})})}function jHt({data:t,counterpartyId:e,onOpenChange:n}){const[r,i]=L.useState([]),[a,o]=L.useState({}),s=fm({data:t,columns:BHt,onSortingChange:i,getCoreRowModel:dm(),getSortedRowModel:jg(),onRowSelectionChange:o,state:{sorting:r,rowSelection:a}}),{updateTransactions:l}=EHt(),c=w.useCallback(async()=>{const u=s.getSelectedRowModel().rows.map(f=>f.original.id);await l({transactionIds:u,fields:{counterpartyId:e}}),n(!1)},[l,n,s,e]);return w.useEffect(()=>{t.length===0&&n(!1)},[t.length,n]),t.length?d.jsxs(d.Fragment,{children:[d.jsxs(ws,{className:"flex flex-row items-center justify-between",children:[d.jsx(ks,{children:"Transactions"}),d.jsx(qe,{onClick:c,children:"Approve selected"})]}),d.jsx(ys,{children:d.jsxs(Ku,{children:[d.jsx(Yu,{children:s.getHeaderGroups().map(u=>d.jsx(_r,{children:u.headers.map(f=>d.jsx(Wr,{children:f.isPlaceholder?null:Zo(f.column.columnDef.header,f.getContext())},f.id))},u.id))}),d.jsx(Xu,{children:s.getRowModel().rows.map(u=>d.jsx(_r,{"data-state":u.getIsSelected()&&"selected",children:u.getVisibleCells().map(f=>d.jsx(Rt,{children:Zo(f.column.columnDef.cell,f.getContext())},f.id))},u.id))})]})})]}):null}function eQe({transaction:t,onChange:e}){const{get:n}=pi(),{id:r,counterparty:i,missingInfoSuggestions:a,id:o,sourceDescription:s,enableEdit:l}=t,c=!!a?.business&&l,u=c?a?.business?.name:"Missing",f=c?a?.business?.id:null,h=i?.name??u,[m,A]=w.useState(!1),{updateTransaction:p,fetching:v}=oL(),y=w.useCallback(async O=>{await p({transactionId:o,fields:{counterpartyId:O}}),A(!0)},[o,p]),x=w.useCallback(async O=>{await y(O),e?.()},[y,e]),k=n("chargesFilters"),S=w.useCallback(O=>{const B=k?JSON.parse(decodeURIComponent(k)):{};return OD({fromDate:B.fromDate,toDate:B.toDate,ownerIds:B.byOwners,businessIDs:[O]})},[k]),{selectableBusinesses:C,fetching:N}=Wu(),[E,D]=w.useState(f??null),[T,I]=w.useState(s);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex flex-wrap flex-col justify-center",children:i?.id?d.jsx("a",{href:S(i.id),target:"_blank",rel:"noreferrer",children:h}):d.jsxs(d.Fragment,{children:[d.jsx(GL,{options:C,value:E,onChange:D,search:T,onSearchChange:I,placeholder:"Choose or create a business",empty:T?d.jsx(sL,{description:T,onAdd:x}):null}),d.jsx(PC,{content:"Approve",children:d.jsx(qe,{variant:"outline",size:"icon",onClick:()=>E&&y(E),disabled:v||N||!E,children:d.jsx(Ls,{className:"size-4"})})})]})}),d.jsx(JVe,{transactionId:r,counterpartyId:i?.id??E,open:m,onOpenChange:A,onClose:e})]})}const lH=[{accessorKey:"counterparty.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Counterparty",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(eQe,{transaction:t.original})},{accessorKey:"eventDate",sortingFn:t=>"eventDate"in t.original&&t.original.eventDate?new Date(t.original.eventDate).getTime():0,header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Event Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(LVe,{transaction:t.original})},{accessorKey:"effectiveDate",sortingFn:t=>"effectiveDate"in t.original&&t.original.effectiveDate?new Date(t.original.effectiveDate).getTime():0,header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Debit Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx($Ve,{transaction:t.original})},{accessorKey:"amount.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(UVe,{transaction:t.original})},{accessorKey:"account.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(zVe,{transaction:t.original})},{accessorKey:"sourceDescription",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Description",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(HVe,{transaction:t.original})},{accessorKey:"referenceKey",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Reference#",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(VVe,{transaction:t.original})}],IHt={accessorKey:"id",header:"Actions",cell:({row:t})=>t.original.enableEdit?d.jsxs(d.Fragment,{children:[d.jsx(gL,{onClick:t.original.editTransaction}),d.jsx(Msn,{chargeId:t.original.chargeId,transactionId:t.original.id,onDone:t.original.onUpdate})]}):t.original.enableChargeLink?d.jsx(tQe,{chargeId:t.original.chargeId}):null},hae=({transactionsProps:t,onChange:e=()=>{},enableEdit:n,enableChargeLink:r})=>{const[i,a]=w.useState(void 0),[o,s]=w.useState([]),l=w.useMemo(()=>t.map(h=>Lt(eLe,h)),[t]),c=w.useMemo(()=>l?.map(h=>({...h,editTransaction:()=>a(h.id),onUpdate:e,enableEdit:n,enableChargeLink:r})),[l,e,n,r]),u=w.useMemo(()=>n||r?[...lH,IHt]:lH,[n,r]),f=fm({data:c,columns:u,getCoreRowModel:dm(),onSortingChange:s,getSortedRowModel:jg(),state:{sorting:o}});return d.jsxs(d.Fragment,{children:[d.jsxs(Ku,{children:[d.jsx(Yu,{children:f.getHeaderGroups().map(h=>d.jsx(_r,{children:h.headers.map(m=>d.jsx(Wr,{colSpan:m.colSpan,children:m.isPlaceholder?null:Zo(m.column.columnDef.header,m.getContext())},m.id))},h.id))}),d.jsx(Xu,{children:f.getRowModel().rows?.length?f.getRowModel().rows.map(h=>d.jsx(_r,{children:h.getVisibleCells().map(m=>d.jsx(Rt,{children:Zo(m.column.columnDef.cell,m.getContext())},m.id))},h.id)):d.jsx(_r,{children:d.jsx(Rt,{colSpan:lH.length,className:"h-24 text-center",children:"No results."})})})]}),d.jsx(Psn,{transactionID:i,close:()=>a(void 0),onChange:e})]})},PHt=({transactionsProps:t,onChange:e})=>{const{transactions:n}=Lt(tLe,t);return d.jsx(hae,{transactionsProps:n,onChange:e,enableEdit:!0})},MHt=({chargeId:t})=>{const[{data:e,fetching:n}]=on({query:pFt,variables:{chargeId:t}}),r=w.useMemo(()=>e?.depositByCharge?.transactions?.filter(i=>i.chargeId!==t)??[],[e?.depositByCharge?.transactions,t]);return n?d.jsx(ai,{className:"h-10 w-10 animate-spin"}):e?.depositByCharge?d.jsxs("div",{children:[d.jsxs("div",{className:"text-lg font-semibold mb-4",children:['Bank Deposit "',e?.depositByCharge?.id,'" Balance:'," ",e?.depositByCharge?.balance.formatted]}),d.jsx("div",{className:"mb-4",children:d.jsx("span",{className:"text-sm text-gray-500",children:e?.depositByCharge?.isOpen?"Deposit is open":"Deposit is closed"})}),r.length===0?d.jsx("div",{className:"text-sm text-gray-500",children:"No transactions found for this deposit."}):d.jsx(hae,{transactionsProps:r,enableChargeLink:!0})]}):d.jsx("div",{className:"text-sm text-gray-500",children:"No bank deposit found for this charge."})},RHt=({chargeProps:t})=>{const e=Lt(nLe,t);if(e.__typename!=="ConversionCharge")return d.jsx(d.Fragment,{});const{eventRate:n,officialRate:r}=e;return d.jsxs(us,{justify:"center",children:[r&&d.jsx(us.Col,{span:"content",children:d.jsx(HP,{shadow:"sm",padding:"xs",radius:"md",withBorder:!0,children:d.jsxs(sS,{position:"apart",children:[d.jsx(Jn,{weight:500,children:"Official Conversion Rate"}),d.jsx(LY,{color:"green",variant:"light",children:`${Number(r.rate)} ${za(r.from)} => ${za(r.to)}`})]})})}),n&&d.jsx(us.Col,{span:"content",children:d.jsx(HP,{shadow:"sm",padding:"xs",radius:"md",withBorder:!0,children:d.jsxs(sS,{position:"apart",children:[d.jsx(Jn,{weight:500,children:"Bank Conversion Rate"}),d.jsx(LY,{color:"green",variant:"light",children:`${Number(n.rate)} ${za(n.from)} => ${za(n.to)}`})]})})})]})},$Ht=({chargeProps:t})=>{const e=Lt(rLe,t),n=w.useMemo(()=>e.__typename==="CreditcardBankCharge"&&e.creditCardTransactions?e.creditCardTransactions.map(r=>Lt(eLe,r)):[],[e]);return n.length?d.jsxs(Ku,{children:[d.jsx(Yu,{children:d.jsxs(_r,{children:[d.jsx(Wr,{children:"Event Date"}),d.jsx(Wr,{children:"Debit Date"}),d.jsx(Wr,{children:"Amount"}),d.jsx(Wr,{children:"Account"}),d.jsx(Wr,{children:"Description"}),d.jsx(Wr,{children:"Reference#"}),d.jsx(Wr,{children:"Counterparty"}),d.jsx(Wr,{children:"Charge"})]})}),d.jsx(Xu,{children:n.map(r=>{const i={...r,onUpdate:()=>{},editTransaction:()=>{},enableEdit:!1,enableChargeLink:!1};return d.jsxs(_r,{children:[d.jsx(Rt,{children:d.jsx(LVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx($Ve,{transaction:i})}),d.jsx(Rt,{children:d.jsx(UVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(zVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(HVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(VVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(eQe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(tQe,{chargeId:r.chargeId})})]},r.id)})})]}):null},LHt=({chargeProps:t})=>{const e=Lt(iLe,t),n=w.useMemo(()=>e.__typename!=="FinancialCharge"?[]:Object.entries(e.exchangeRates??{}).sort((r,i)=>r[0].localeCompare(i[0])),[e]);return e.__typename!=="FinancialCharge"?d.jsx(d.Fragment,{}):d.jsx("div",{className:"flex flex-row flex-wrap gap-2 px-2",children:n.map(([r,i])=>d.jsx(ys,{className:"gap-0 py-2",children:d.jsxs(ll,{className:"flex flex-col px-2",children:[d.jsx(Xc,{className:"text-xl font-semibold",children:r.toLocaleUpperCase()}),d.jsxs("div",{className:"flex items-center space-x-2",children:[d.jsxs("span",{className:"whitespace-nowrap",children:[za(r.toLocaleUpperCase()),"1="]}),d.jsxs(pS,{variant:"default",className:"flex gap-1 rounded-lg text-md",children:[za(Vt.Ils),i]})]})]})},r))})},UHt="deleteMiscExpense",zHt=()=>{const[{fetching:t},e]=zn(MDt),n=w.useCallback(async r=>{const i="Error deleting misc expense",a=`${UHt}-${r.id}`;Ve.loading("Deleting misc expense",{id:a});try{const o=await e(r),s=Hn(o,i,a);if(s)return Ve.success("Success",{id:a,description:"Misc expense was deleted successfully"}),s.deleteMiscExpense}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,deleteMiscExpense:n}};function HHt({miscExpenseId:t,onChange:e}){const{deleteMiscExpense:n}=zHt();async function r(){try{await n({id:t}),e?.()}catch(i){const a="Failed to delete misc expense";console.error(`${a}: ${i}`),Ve.error("Error",{description:a})}}return d.jsx(Vd,{onConfirm:r,title:"Are you sure you want to delete this expense?",children:d.jsx(qe,{className:"size-7.5 text-red-500",variant:"ghost",children:d.jsx(Vx,{className:"size-5"})})})}const VHt=({miscExpensesData:t,onChange:e})=>{const n=Lt(aLe,t),{miscExpenses:r}=n;return d.jsxs("table",{className:"w-full h-full",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"Creditor"}),d.jsx("th",{children:"Debtor"}),d.jsx("th",{children:"Amount"}),d.jsx("th",{children:"Invoice Date"}),d.jsx("th",{children:"Value Date"}),d.jsx("th",{children:"Description"}),d.jsx("th",{children:"Actions"})]})}),d.jsx("tbody",{children:r?.map(i=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("div",{children:i.creditor?.name})}),d.jsx("td",{children:d.jsx("div",{children:i.debtor?.name})}),d.jsx("td",{children:d.jsx("div",{children:i.amount?.formatted})}),d.jsx("td",{children:d.jsx("div",{children:i.invoiceDate})}),d.jsx("td",{children:d.jsx("div",{children:i.valueDate&&$t(new Date(i.valueDate),"yyyy-MM-dd")})}),d.jsx("td",{children:d.jsx("div",{children:i.description})}),d.jsxs("td",{children:[d.jsx(Csn,{onDone:e,data:i}),d.jsx(HHt,{miscExpenseId:i.id,onChange:e})]})]},i?.id))})]})},QHt=({salaryRecordsProps:t})=>{const e=Lt(oLe,t);if(e.__typename!=="SalaryCharge")return d.jsx(d.Fragment,{});const{salaryRecords:n}=e;return d.jsxs("table",{className:"w-full h-full",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"Employee"}),d.jsx("th",{children:"Direct Salary"}),d.jsx("th",{children:"Base Salary"}),d.jsx("th",{children:"Pension"}),d.jsx("th",{children:"Training Fund"}),d.jsx("th",{children:"Social Security"}),d.jsx("th",{children:"Tax"})]})}),d.jsx("tbody",{children:n?.map(r=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("div",{children:r.employee?.name??"Missing"})}),d.jsx("td",{children:d.jsx("div",{children:r.directAmount.formatted})}),d.jsx("td",{children:d.jsx("div",{children:r.baseAmount?.formatted})}),d.jsxs("td",{children:[d.jsx("div",{children:r.pensionFund?.name}),d.jsxs("div",{children:["Employee: ",r.pensionEmployeeAmount?.formatted]}),d.jsxs("div",{children:["Employer: ",r.pensionEmployerAmount?.formatted]}),d.jsxs("div",{children:["Compensation: ",r.compensationsAmount?.formatted]})]}),d.jsxs("td",{children:[d.jsx("div",{children:r.trainingFund?.name}),d.jsxs("div",{children:["Employee: ",r.trainingFundEmployeeAmount?.formatted]}),d.jsxs("div",{children:["Employer: ",r.trainingFundEmployerAmount?.formatted]})]}),d.jsxs("td",{children:[d.jsxs("div",{children:["Employee: ",r.socialSecurityEmployeeAmount?.formatted]}),d.jsxs("div",{children:["Employer: ",r.socialSecurityEmployerAmount?.formatted]}),d.jsxs("div",{children:["Health: ",r.healthInsuranceAmount?.formatted]})]}),d.jsx("td",{children:d.jsx("div",{children:r.incomeTaxAmount?.formatted})})]},`${r.employee?.name}-${r.baseAmount}`))})]})};function mae({chargeID:t,onChange:e=()=>{},fetching:n}){const[r,i]=w.useState([]),[a,o]=w.useState(t),[s,{toggle:l}]=gs(!1),[c,u]=w.useState(void 0),[{data:f,fetching:h},m]=on({query:_h,variables:{chargeId:a}}),A=w.useCallback(()=>{m(),e()},[m,e]);w.useEffect(()=>{f?.charge&&u(f.charge)},[f]),w.useEffect(()=>{n&&m()},[n,m]),w.useEffect(()=>{t!==a&&(o(t),m())},[t,a,m]);const p=c?.__typename,v=!!c?.metadata?.ledgerCount,y=!!c?.metadata?.transactionsCount,x=!!c?.metadata?.documentsCount,k=!!c?.metadata?.receiptsCount,S=p==="SalaryCharge",C=!!c?.miscExpenses?.length,N=c?.metadata?.openDocuments,E=(c?.totalAmount?.raw??0)>0&&!k;w.useEffect(()=>{const G=[];y&&G.push("transactions"),x&&G.push("documents"),v&&G.push("ledger"),S&&G.push("salaries"),C&&G.push("miscExpenses"),p==="BankDepositCharge"&&G.push("bankDeposit"),i(G)},[y,x,v,S,C,p]);function D(G){r.includes(G)?i(X=>X.filter(he=>he!==G)):i(X=>[...X,G])}const T=Su(_h,lLe,c),I=Su(_h,eve,c),O=Su(_h,cLe,c),B=Su(_h,tLe,c),M=Su(_h,aLe,c),$=w.useMemo(()=>p==="ConversionCharge"&&Su(_h,nLe,c),[c,p]),U=w.useMemo(()=>p==="FinancialCharge"&&Su(_h,iLe,c),[c,p]),P=p==="SalaryCharge"&&Su(_h,oLe,c),Q=w.useMemo(()=>p==="CreditcardBankCharge"&&Su(_h,rLe,c),[c,p]);return d.jsxs("div",{className:"flex flex-col gap-5",children:[h&&d.jsx(fo,{className:"flex self-center my-5",color:"dark",size:"xl",variant:"dots"}),Su(_h,Z3e,c)&&d.jsx(bHt,{data:c}),c&&d.jsxs("div",{className:"flex flex-row",children:[d.jsxs(Mn,{className:"w-full",multiple:!0,value:r,chevron:d.jsx(kc,{size:"1rem"}),styles:{chevron:{"&[data-rotate]":{transform:"rotate(45deg)"}}},children:[p==="ConversionCharge"&&d.jsxs(Mn.Item,{value:"conversion",children:[d.jsx(Mn.Control,{disabled:!y,onClick:()=>D("conversion"),children:"Conversion Info"}),d.jsx(Mn.Panel,{children:$&&d.jsx(RHt,{chargeProps:c})})]}),p==="FinancialCharge"&&d.jsxs(Mn.Item,{value:"exchangeRates",children:[d.jsx(Mn.Control,{disabled:!U,onClick:()=>D("exchangeRates"),children:"Exchange Rates"}),d.jsx(Mn.Panel,{children:U&&d.jsx(LHt,{chargeProps:c})})]}),y&&d.jsxs(Mn.Item,{value:"transactions",children:[d.jsx(Mn.Control,{disabled:!y,onClick:()=>D("transactions"),children:d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-between w-full",children:["Transactions",E&&d.jsx($E,{chargeId:c.id})]})}),d.jsx(Mn.Panel,{children:B&&d.jsx(PHt,{transactionsProps:c,onChange:A})})]}),C&&d.jsxs(Mn.Item,{value:"miscExpenses",children:[d.jsx(Mn.Control,{disabled:!C,onClick:()=>D("miscExpenses"),children:"Misc Expenses"}),d.jsx(Mn.Panel,{children:M&&d.jsx(VHt,{miscExpensesData:c,onChange:A})})]}),x&&d.jsxs(Mn.Item,{value:"documents",children:[d.jsx(Mn.Control,{disabled:!x,onClick:()=>D("documents"),children:d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-between w-full",children:[d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-start",children:[x&&d.jsx(Un,{label:"Documents Gallery",children:d.jsx(qe,{onClick:G=>{G.stopPropagation(),l()},variant:"outline",disabled:!T,size:"icon",className:"size-7.5 text-gray-500",children:d.jsx(LLe,{className:"size-5"})})}),"Documents"]}),N&&d.jsx($E,{chargeId:c.id})]})}),d.jsx(Mn.Panel,{children:I&&d.jsx(RVe,{documentsProps:Lt(eve,c)?.additionalDocuments,onChange:A})})]}),p==="SalaryCharge"&&d.jsxs(Mn.Item,{value:"salaries",children:[d.jsx(Mn.Control,{disabled:!S,onClick:()=>D("salaries"),children:"Salaries"}),d.jsx(Mn.Panel,{children:P&&d.jsx(QHt,{salaryRecordsProps:c})})]}),c.__typename==="BusinessTripCharge"&&d.jsxs(Mn.Item,{value:"businessTrip",children:[d.jsx(Mn.Control,{onClick:()=>D("businessTrip"),children:"Business Trip"}),d.jsx(Mn.Panel,{children:d.jsx(TIt,{data:c.businessTrip})})]}),p==="CreditcardBankCharge"&&d.jsxs(Mn.Item,{value:"creditcard",children:[d.jsx(Mn.Control,{onClick:()=>D("creditcard"),children:"CreditCard Transactions"}),d.jsx(Mn.Panel,{children:Q&&d.jsx($Ht,{chargeProps:c})})]}),p==="BankDepositCharge"&&d.jsxs(Mn.Item,{value:"bankDeposit",children:[d.jsx(Mn.Control,{onClick:()=>D("bankDeposit"),children:"Bank Deposit"}),d.jsx(Mn.Panel,{children:d.jsx(MHt,{chargeId:c.id})})]}),v&&d.jsxs(Mn.Item,{value:"ledger",children:[d.jsx(Mn.Control,{disabled:!v,onClick:G=>{G.stopPropagation(),D("ledger")},children:d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-start w-full",children:[!c.metadata?.isLedgerLocked&&d.jsx(uen,{chargeId:c.id,onChange:A,variant:"outline"}),"Ledger Records"]})}),d.jsx(Mn.Panel,{children:O&&d.jsx(yHt,{ledgerFragment:c})})]})]}),T&&d.jsx(En,{maw:"1/6",children:d.jsx(t3,{in:s,transitionDuration:500,transitionTimingFunction:"linear",children:d.jsx(h9t,{chargeProps:c,onChange:A})})})]}),!h&&!c&&d.jsx("p",{children:"Error fetching extended information for this charge"})]})}const qHt=({setEditCharge:t,setInsertDocument:e,setMatchDocuments:n,toggleMergeCharge:r,isSelectedForMerge:i,data:a,isAllOpened:o})=>{const[s,l]=w.useState(!1),[c,u]=w.useState(Lt(H0,a)),[{data:f,fetching:h},m]=on({query:mFt,pause:!0,variables:{chargeId:a.id}}),A=m;w.useEffect(()=>{const y=f?.charge;y&&u(Lt(H0,y))},[f]),w.useEffect(()=>{u(Lt(H0,a))},[a]),w.useEffect(()=>{l(o)},[o]);const p=w.useMemo(()=>!!(c.metadata?.documentsCount||c.metadata?.transactionsCount||c.metadata?.ledgerCount||c.metadata?.miscExpensesCount),[c.metadata?.documentsCount,c.metadata?.transactionsCount,c.metadata?.ledgerCount,c.metadata?.miscExpensesCount]),v=(c?.totalAmount?.raw??0)>0;return d.jsxs(d.Fragment,{children:[d.jsxs("tr",{onClick:()=>{p&&(l(y=>!y),A())},children:[d.jsx(fzt,{data:c}),d.jsx(ozt,{data:c}),d.jsx(mPt,{data:c}),d.jsx(hzt,{data:c}),Su(H0,dLe,c)?d.jsx(azt,{data:c}):d.jsx("td",{}),d.jsx(lzt,{data:c,onChange:A}),Su(H0,fLe,c)?d.jsx(uzt,{data:c,onChange:A}):d.jsx("td",{}),Su(H0,hLe,c)?d.jsx(dzt,{data:c}):d.jsx("td",{}),Su(H0,uLe,c)?d.jsx(pPt,{data:c}):d.jsx("td",{}),d.jsx(czt,{data:c}),d.jsx(hPt,{data:c,onChange:A}),d.jsx("td",{children:d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx(gL,{onClick:y=>{y.stopPropagation(),t(A)}}),r&&d.jsx(BL,{toggleMergeSelected:()=>r(A),mergeSelected:i})]})}),d.jsx("td",{children:d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx(d7t,{chargeId:c.id,chargeType:c.__typename,setInsertDocument:()=>e(A),setMatchDocuments:n,onChange:A,isIncome:v}),p&&d.jsx(TC,{toggleExpansion:l,isExpanded:s,onClickAction:()=>A()})]})})]}),p&&s&&d.jsx("tr",{children:d.jsx("td",{colSpan:13,children:d.jsx(Fg,{style:{width:"100%"},withBorder:!0,shadow:"lg",children:d.jsx(mae,{chargeID:c.id,onChange:A,fetching:h})})})})]})},Xx=({setEditChargeId:t,setInsertDocument:e,setMatchDocuments:n,toggleMergeCharge:r,mergeSelectedCharges:i,data:a,isAllOpened:o})=>{const s=a?.map(l=>Lt(UEt,l))??[];return d.jsxs(Fo,{striped:!0,highlightOnHover:!0,children:[d.jsx("thead",{className:"sticky top-0 z-20",children:d.jsxs("tr",{className:"px-10 py-10 title-font tracking-wider font-medium text-gray-900 text-sm bg-gray-100 rounded-tl rounded-bl",children:[d.jsx("th",{children:"Type"}),d.jsx("th",{children:"Date"}),d.jsx("th",{children:"Amount"}),d.jsx("th",{children:"Vat"}),d.jsx("th",{children:"Counterparty"}),d.jsx("th",{children:"Description"}),d.jsx("th",{children:"Tags"}),d.jsx("th",{children:"Tax Category"}),d.jsx("th",{children:"Business Trip"}),d.jsx("th",{children:"More Info"}),d.jsx("th",{children:"Accountant Approval"}),d.jsx("th",{children:"Edit"}),d.jsx("th",{children:"More Info"})]})}),d.jsx("tbody",{children:s?.map(l=>d.jsx(qHt,{data:l,setEditCharge:c=>t({id:l.id,onChange:c}),setInsertDocument:c=>e({id:l.id,onChange:c}),setMatchDocuments:()=>n({id:l.id,ownerId:l.owner.id}),toggleMergeCharge:r?c=>r(l.id,c):void 0,isSelectedForMerge:i?.has(l.id)??!1,isAllOpened:o},l.id))})]})};function Gy(t){return`/charges/${t}`}const GHt=({chargeId:t})=>{const e=rC("/charges/:chargeId"),n=t||e?.params.chargeId,[r,i]=w.useState(void 0),[a,o]=w.useState(void 0),[s,l]=w.useState(void 0),[{data:c,fetching:u},f]=on({query:rDt,pause:!n,variables:{chargeId:n??""}});return w.useEffect(()=>{n&&f()},[n,f]),n?d.jsxs(d.Fragment,{children:[u?d.jsx(Jc,{}):d.jsx(Xx,{setEditChargeId:i,setInsertDocument:o,setMatchDocuments:l,data:c?.charge?[c.charge]:[],isAllOpened:!0}),r&&d.jsx(KD,{chargeId:r?.id,close:()=>i(void 0),onChange:r.onChange}),a&&d.jsx(YD,{chargeId:a.id,onChange:a.onChange,close:()=>o(void 0)}),s&&d.jsx(iT,{chargeId:s.id,ownerId:s.ownerId,setMatchDocuments:()=>l(void 0)})]}):d.jsx("div",{children:"Charge not found"})};function tQe(t){return d.jsx(Un,{label:"To Charge",children:d.jsx(qe,{onClick:e=>{e.stopPropagation(),window.open(Gy(t.chargeId),"_blank","noreferrer")},...t,className:Ct("size-7.5",t.className),variant:"ghost",children:d.jsx(RBt,{className:"size-5"})})})}const WHt="closeDocument",KHt=()=>{const[{fetching:t},e]=zn(_Dt),n=w.useCallback(async r=>{const i=`Error closing document ID [${r.documentId}]`,a=`${WHt}-${r.documentId}`;Ve.loading("Closing Document...",{id:a});try{const o=await e(r),s=Hn(o,i,a,"closeDocument");if(s)return Ve.success("Success",{id:a,description:"Document closed"}),s.closeDocument}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}return!1},[e]);return{fetching:t,closeDocument:n}};function YHt({documentId:t,couldIssueCreditInvoice:e,...n}){const{closeDocument:r}=KHt(),[i,a]=w.useState(!1),[o,s]=w.useState(!1),l=w.useCallback(()=>{r({documentId:t})},[r,t]);return e?d.jsxs(d.Fragment,{children:[d.jsx(Un,{label:"Close Document",children:d.jsx(qe,{className:"size-7.5 text-red-600",variant:"ghost",...n,onClick:()=>a(!0),children:d.jsx(yve,{className:"size-5"})})}),d.jsx(Wa,{open:i,onOpenChange:a,children:d.jsxs(Ka,{className:"sm:max-w-[425px]",children:[d.jsx(ws,{children:d.jsx(ks,{children:"Should Issue Credit Invoice?"})}),d.jsxs(qy,{children:[d.jsx(qe,{onClick:()=>{a(!1),l()},variant:"secondary",children:"Just Close"}),d.jsx(qe,{onClick:()=>{a(!1),s(!0)},variant:"default",children:"Issue Credit Invoice"})]})]})}),d.jsx($E,{documentId:t,documentType:Cr.CreditInvoice,open:o,setOpen:s})]}):d.jsx(Vd,{onConfirm:l,title:"Are you sure you want to close this document?",children:d.jsx(qe,{className:"size-7.5 text-red-600",variant:"ghost",...n,children:d.jsx(yve,{className:"size-5"})})})}function PD(t){return d.jsx(qe,{...t,variant:"ghost",className:Ct("size-7.5 text-green-500",t.className),children:d.jsx(Ls,{className:"size-5"})})}const Zx=({content:t,isLink:e})=>d.jsx(qe,{variant:"outline",size:"icon",className:"size-7.5",onClick:()=>yPt(t),children:e?d.jsx(Ajt,{className:"size-5"}):d.jsx(BBt,{className:"size-5"})}),XHt="deleteDocument",ZHt=()=>{const[{fetching:t},e]=zn(IDt),n=w.useCallback(async r=>{const i=`Error deleting document ID [${r.documentId}]`,a=`${XHt}-${r.documentId}`;Ve.loading("Deleting Document",{id:a});try{const o=await e(r),s=Hn(o,i,a);if(s)return Ve.success("Success",{id:a,description:"Document was deleted"}),s.deleteDocument}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}return!1},[e]);return{fetching:t,deleteDocument:n}};function JHt({documentId:t}){const{deleteDocument:e}=ZHt();function n(){e({documentId:t})}return d.jsx(Vd,{onConfirm:n,title:"Are you sure you want to delete this document?",children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5 text-red-500",children:d.jsx(Vx,{className:"size-5"})})})}var eVt=typeof document<"u",tVt=function(){},tI=eVt?w.useLayoutEffect:tVt;function PM(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!PM(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!PM(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function nQe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function wxe(t,e){const n=nQe(t);return Math.round(e*n)/n}function cH(t){const e=w.useRef(t);return tI(()=>{e.current=t}),e}function nVt(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=t,[u,f]=w.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,m]=w.useState(r);PM(h,r)||m(r);const[A,p]=w.useState(null),[v,y]=w.useState(null),x=w.useCallback(G=>{G!==N.current&&(N.current=G,p(G))},[]),k=w.useCallback(G=>{G!==E.current&&(E.current=G,y(G))},[]),S=a||A,C=o||v,N=w.useRef(null),E=w.useRef(null),D=w.useRef(u),T=l!=null,I=cH(l),O=cH(i),B=cH(c),M=w.useCallback(()=>{if(!N.current||!E.current)return;const G={placement:e,strategy:n,middleware:h};O.current&&(G.platform=O.current),nMe(N.current,E.current,G).then(X=>{const he={...X,isPositioned:B.current!==!1};$.current&&!PM(D.current,he)&&(D.current=he,Wf.flushSync(()=>{f(he)}))})},[h,e,n,O,B]);tI(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f(G=>({...G,isPositioned:!1})))},[c]);const $=w.useRef(!1);tI(()=>($.current=!0,()=>{$.current=!1}),[]),tI(()=>{if(S&&(N.current=S),C&&(E.current=C),S&&C){if(I.current)return I.current(S,C,M);M()}},[S,C,M,I,T]);const U=w.useMemo(()=>({reference:N,floating:E,setReference:x,setFloating:k}),[x,k]),P=w.useMemo(()=>({reference:S,floating:C}),[S,C]),Q=w.useMemo(()=>{const G={position:n,left:0,top:0};if(!P.floating)return G;const X=wxe(P.floating,u.x),he=wxe(P.floating,u.y);return s?{...G,transform:"translate("+X+"px, "+he+"px)",...nQe(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:he}},[n,s,P.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:M,refs:U,elements:P,floatingStyles:Q}),[u,M,U,P,Q])}const rVt=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?CP({element:r.current,padding:i}).fn(n):{}:r?CP({element:r,padding:i}).fn(n):{}}}},iVt=(t,e)=>({...one(t),options:[t,e]}),aVt=(t,e)=>({...d3(t),options:[t,e]}),oVt=(t,e)=>({...tMe(t),options:[t,e]}),sVt=(t,e)=>({...sne(t),options:[t,e]}),lVt=(t,e)=>({...J4e(t),options:[t,e]}),cVt=(t,e)=>({...Cyt(t),options:[t,e]}),uVt=(t,e)=>({...rVt(t),options:[t,e]});var dVt="Arrow",rQe=w.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...a}=t;return d.jsx(wn.svg,{...a,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});rQe.displayName=dVt;var fVt=rQe,pae="Popper",[iQe,Wy]=Cc(pae),[hVt,aQe]=iQe(pae),oQe=t=>{const{__scopePopper:e,children:n}=t,[r,i]=w.useState(null);return d.jsx(hVt,{scope:e,anchor:r,onAnchorChange:i,children:n})};oQe.displayName=pae;var sQe="PopperAnchor",lQe=w.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,a=aQe(sQe,n),o=w.useRef(null),s=$r(e,o),l=w.useRef(null);return w.useEffect(()=>{const c=l.current;l.current=r?.current||o.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:d.jsx(wn.div,{...i,ref:s})});lQe.displayName=sQe;var Aae="PopperContent",[mVt,pVt]=iQe(Aae),cQe=w.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:A,...p}=t,v=aQe(Aae,n),[y,x]=w.useState(null),k=$r(e,te=>x(te)),[S,C]=w.useState(null),N=dae(S),E=N?.width??0,D=N?.height??0,T=r+(a!=="center"?"-"+a:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(c)?c:[c],B=O.length>0,M={padding:I,boundary:O.filter(gVt),altBoundary:B},{refs:$,floatingStyles:U,placement:P,isPositioned:Q,middlewareData:G}=nVt({strategy:"fixed",placement:T,whileElementsMounted:(...te)=>Z4e(...te,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[iVt({mainAxis:i+D,alignmentAxis:o}),l&&aVt({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?oVt():void 0,...M}),l&&sVt({...M}),lVt({...M,apply:({elements:te,rects:ue,availableWidth:fe,availableHeight:ge})=>{const{width:oe,height:J}=ue.reference,Se=te.floating.style;Se.setProperty("--radix-popper-available-width",`${fe}px`),Se.setProperty("--radix-popper-available-height",`${ge}px`),Se.setProperty("--radix-popper-anchor-width",`${oe}px`),Se.setProperty("--radix-popper-anchor-height",`${J}px`)}}),S&&uVt({element:S,padding:s}),vVt({arrowWidth:E,arrowHeight:D}),h&&cVt({strategy:"referenceHidden",...M})]}),[X,he]=fQe(P),ne=wl(A);bs(()=>{Q&&ne?.()},[Q,ne]);const H=G.arrow?.x,W=G.arrow?.y,q=G.arrow?.centerOffset!==0,[Z,re]=w.useState();return bs(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Q?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d.jsx(mVt,{scope:n,placedSide:X,onArrowChange:C,arrowX:H,arrowY:W,shouldHideArrow:q,children:d.jsx(wn.div,{"data-side":X,"data-align":he,...p,ref:k,style:{...p.style,animation:Q?void 0:"none"}})})})});cQe.displayName=Aae;var uQe="PopperArrow",AVt={top:"bottom",right:"left",bottom:"top",left:"right"},dQe=w.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,a=pVt(uQe,r),o=AVt[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(fVt,{...i,ref:n,style:{...i.style,display:"block"}})})});dQe.displayName=uQe;function gVt(t){return t!==null}var vVt=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,o=i.arrow?.centerOffset!==0,s=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=fQe(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+s/2,m=(i.arrow?.y??0)+l/2;let A="",p="";return c==="bottom"?(A=o?f:`${h}px`,p=`${-l}px`):c==="top"?(A=o?f:`${h}px`,p=`${r.floating.height+l}px`):c==="right"?(A=`${-l}px`,p=o?f:`${m}px`):c==="left"&&(A=`${r.floating.width+l}px`,p=o?f:`${m}px`),{data:{x:A,y:p}}}});function fQe(t){const[e,n="center"]=t.split("-");return[e,n]}var uL=oQe,MD=lQe,dL=cQe,fL=dQe,hQe=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yVt="VisuallyHidden",mQe=w.forwardRef((t,e)=>d.jsx(wn.span,{...t,ref:e,style:{...hQe,...t.style}}));mQe.displayName=yVt;var bVt=mQe,[hL]=Cc("Tooltip",[Wy]),mL=Wy(),pQe="TooltipProvider",xVt=700,yX="tooltip.open",[wVt,gae]=hL(pQe),AQe=t=>{const{__scopeTooltip:e,delayDuration:n=xVt,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=t,o=w.useRef(!0),s=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),d.jsx(wVt,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:w.useCallback(c=>{s.current=c},[]),disableHoverableContent:i,children:a})};AQe.displayName=pQe;var CE="Tooltip",[kVt,RD]=hL(CE),gQe=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=t,l=gae(CE,t.__scopeTooltip),c=mL(e),[u,f]=w.useState(null),h=Rs(),m=w.useRef(0),A=o??l.disableHoverableContent,p=s??l.delayDuration,v=w.useRef(!1),[y,x]=Pd({prop:r,defaultProp:i??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(yX))):l.onClose(),a?.(E)},caller:CE}),k=w.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=w.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),C=w.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),N=w.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},p)},[p,x]);return w.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),d.jsx(uL,{...c,children:d.jsx(kVt,{scope:e,contentId:h,open:y,stateAttribute:k,trigger:u,onTriggerChange:f,onTriggerEnter:w.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:w.useCallback(()=>{A?C():(window.clearTimeout(m.current),m.current=0)},[C,A]),onOpen:S,onClose:C,disableHoverableContent:A,children:n})})};gQe.displayName=CE;var bX="TooltipTrigger",vQe=w.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=RD(bX,n),a=gae(bX,n),o=mL(n),s=w.useRef(null),l=$r(e,s,i.onTriggerChange),c=w.useRef(!1),u=w.useRef(!1),f=w.useCallback(()=>c.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(MD,{asChild:!0,...o,children:d.jsx(wn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:ln(t.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:ln(t.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:ln(t.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ln(t.onFocus,()=>{c.current||i.onOpen()}),onBlur:ln(t.onBlur,i.onClose),onClick:ln(t.onClick,i.onClose)})})});vQe.displayName=bX;var vae="TooltipPortal",[SVt,CVt]=hL(vae,{forceMount:void 0}),yQe=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:i}=t,a=RD(vae,e);return d.jsx(SVt,{scope:e,forceMount:n,children:d.jsx(cl,{present:n||a.open,children:d.jsx(NC,{asChild:!0,container:i,children:r})})})};yQe.displayName=vae;var AS="TooltipContent",bQe=w.forwardRef((t,e)=>{const n=CVt(AS,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=t,o=RD(AS,t.__scopeTooltip);return d.jsx(cl,{present:r||o.open,children:o.disableHoverableContent?d.jsx(xQe,{side:i,...a,ref:e}):d.jsx(_Vt,{side:i,...a,ref:e})})}),_Vt=w.forwardRef((t,e)=>{const n=RD(AS,t.__scopeTooltip),r=gae(AS,t.__scopeTooltip),i=w.useRef(null),a=$r(e,i),[o,s]=w.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:f}=r,h=w.useCallback(()=>{s(null),f(!1)},[f]),m=w.useCallback((A,p)=>{const v=A.currentTarget,y={x:A.clientX,y:A.clientY},x=DVt(y,v.getBoundingClientRect()),k=TVt(y,x),S=OVt(p.getBoundingClientRect()),C=jVt([...k,...S]);s(C),f(!0)},[f]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(l&&u){const A=v=>m(v,u),p=v=>m(v,l);return l.addEventListener("pointerleave",A),u.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",A),u.removeEventListener("pointerleave",p)}}},[l,u,m,h]),w.useEffect(()=>{if(o){const A=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},x=l?.contains(v)||u?.contains(v),k=!BVt(y,o);x?h():k&&(h(),c())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[l,u,o,c,h]),d.jsx(xQe,{...t,ref:a})}),[NVt,EVt]=hL(CE,{isInside:!1}),FVt=FPt("TooltipContent"),xQe=w.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=t,l=RD(AS,n),c=mL(n),{onClose:u}=l;return w.useEffect(()=>(document.addEventListener(yX,u),()=>document.removeEventListener(yX,u)),[u]),w.useEffect(()=>{if(l.trigger){const f=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),d.jsx(_C,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:d.jsxs(dL,{"data-state":l.stateAttribute,...c,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(FVt,{children:r}),d.jsx(NVt,{scope:n,isInside:!0,children:d.jsx(bVt,{id:l.contentId,role:"tooltip",children:i||r})})]})})});bQe.displayName=AS;var wQe="TooltipArrow",kQe=w.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=mL(n);return EVt(wQe,n).isInside?null:d.jsx(fL,{...i,...r,ref:e})});kQe.displayName=wQe;function DVt(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function TVt(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function OVt(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function BVt(t,e){const{x:n,y:r}=t;let i=!1;for(let a=0,o=e.length-1;a<e.length;o=a++){const s=e[a],l=e[o],c=s.x,u=s.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function jVt(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),IVt(e)}function IVt(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const a=e[e.length-1],o=e[e.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var PVt=AQe,MVt=gQe,RVt=vQe,$Vt=yQe,LVt=bQe,UVt=kQe;function pL({delayDuration:t=0,...e}){return d.jsx(PVt,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function Ig({...t}){return d.jsx(pL,{children:d.jsx(MVt,{"data-slot":"tooltip",...t})})}function Pg({...t}){return d.jsx(RVt,{"data-slot":"tooltip-trigger",...t})}function Mg({className:t,sideOffset:e=0,children:n,...r}){return d.jsx($Vt,{children:d.jsxs(LVt,{"data-slot":"tooltip-content",sideOffset:e,className:Ct("bg-gray-900 text-gray-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1001 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance dark:bg-gray-50 dark:text-gray-900",t),...r,children:[n,d.jsx(UVt,{className:"bg-gray-900 fill-primary z-1001 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] dark:bg-gray-50"})]})})}function zVt(t,e){const n=new Uint8Array([239,187,191]),r=new Blob([n,t],{type:"text/csv;charset=UTF-8"}),i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=`${e}.csv`,document.body.appendChild(a),a.click(),document.body.removeChild(a)}const AL=({createFileVariables:t,buttonProps:e,buttonContent:n,label:r})=>{const i=w.useCallback(()=>{t().then(({fileContent:a,fileName:o})=>{zVt(a,o)})},[t]);return d.jsxs(Ig,{children:[d.jsx(Pg,{children:d.jsx(qe,{variant:"outline",className:"p-2",...e,onClick:i,children:n||d.jsx(MLe,{size:20})})}),d.jsx(Mg,{children:d.jsx("p",{children:r||"Download CSV"})})]})};function gL(t){return d.jsx(Un,{disabled:!t.tooltip,label:t.tooltip,children:d.jsx(qe,{className:"size-7.5",variant:"ghost",...t,children:d.jsx(Gu,{className:"size-5"})})})}function SQe(t){return d.jsx(Un,{disabled:!t.tooltip,label:t.tooltip,children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",...t,children:d.jsx(kc,{className:"size-5"})})})}function HVt(){const t=iC(),{authService:e}=w.useContext(TD),n=w.useCallback(()=>{e.logout(),t("/login")},[t,e]);return d.jsx(qe,{variant:"ghost",onClick:n,children:"Log out"})}/*!
692
+ */function Zo(t,e){return t?iHt(t)?w.createElement(t,e):t:null}function iHt(t){return aHt(t)||typeof t=="function"||oHt(t)}function aHt(t){return typeof t=="function"&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}function oHt(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function fm(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=w.useState(()=>({current:Z9t(e)})),[r,i]=w.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...t,state:{...r,...t.state},onStateChange:o=>{i(o),t.onStateChange==null||t.onStateChange(o)}})),n.current}function Ku({className:t,...e}){return d.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:d.jsx("table",{"data-slot":"table",className:Ct("w-full caption-bottom text-sm",t),...e})})}function Yu({className:t,...e}){return d.jsx("thead",{"data-slot":"table-header",className:Ct("[&_tr]:border-b",t),...e})}function Xu({className:t,...e}){return d.jsx("tbody",{"data-slot":"table-body",className:Ct("[&_tr:last-child]:border-0",t),...e})}function _r({className:t,...e}){return d.jsx("tr",{"data-slot":"table-row",className:Ct("hover:bg-gray-100/50 data-[state=selected]:bg-gray-100 border-b transition-colors dark:hover:bg-gray-800/50 dark:data-[state=selected]:bg-gray-800",t),...e})}function Wr({className:t,...e}){return d.jsx("th",{"data-slot":"table-head",className:Ct("text-gray-950 h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] dark:text-gray-50",t),...e})}function Rt({className:t,...e}){return d.jsx("td",{"data-slot":"table-cell",className:Ct("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}const sHt="updateDocument",EC=()=>{const[{fetching:t},e]=zn(yTt),n=w.useCallback(async r=>{const i=`Error updating document ID [${r.documentId}]`,a=`${sHt}-${r.documentId}`;Ve.loading("Updating document",{id:a});try{const o=await e(r),s=Hn(o,i,a,"updateDocument");if(s)return Ve.success("Success",{id:a,description:"Document updated"}),s.updateDocument}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateDocument:n}},PVe=(t,e)=>{const n=e?JSON.parse(decodeURIComponent(e)):{};return OD({fromDate:n.fromDate,toDate:n.toDate,ownerIds:n.byOwners,businessIDs:[t]})},MVe=[Cr.Unprocessed,Cr.Other],lHt=({document:t,onChange:e})=>{const{get:n}=pi(),r="creditor"in t?t.creditor:void 0,i=!t.documentType||!MVe.includes(t.documentType),a=i&&!r?.id||Cr.Unprocessed===t.documentType,{selectableBusinesses:o,refresh:s}=Wu(),l=n("chargesFilters"),c=w.useCallback(C=>PVe(C,l),[l]),u=w.useMemo(()=>{if(r||!("missingInfoSuggestions"in t)||!t.missingInfoSuggestions)return;const C=t.missingInfoSuggestions.owner,N=t.missingInfoSuggestions.counterparty;if(t.missingInfoSuggestions?.isIncome==null){if(t.debtor?.id){const E=t.debtor.id;if(C?.id===E&&N)return N;if(N?.id===E&&C)return C}}else{if(t.missingInfoSuggestions.isIncome&&C)return C;if(!t.missingInfoSuggestions.isIncome&&N)return N}},[t,r]),f=!r&&!!u,h=r??u,{name:m="Missing",id:A}=h||{},{updateDocument:p,fetching:v}=EC(),y=w.useCallback(C=>{C!==void 0&&p({documentId:t.id,fields:{creditorId:C}}).then(t.onUpdate)},[t.id,p,t.onUpdate]),[x,k]=w.useState(null),S=w.useCallback(async C=>{await y(C),s(),e?.()},[y,e,s]);return d.jsxs("div",{className:"flex flex-wrap",children:[d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!a,color:"red",zIndex:"auto",children:i&&(A?d.jsx("a",{href:c(A),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:m,className:"[&>*>.mantine-NavLink-label]:font-semibold"})}):d.jsx(GL,{options:o,value:A??null,onChange:C=>C&&y(C),search:x,onSearchChange:k,placeholder:"Choose or create a business",empty:x?d.jsx(sL,{description:x,onAdd:S}):null}))})}),f&&d.jsx(PD,{onClick:()=>y(u.id),disabled:v})]})},cHt=({document:t})=>{const e="amount"in t?t.amount:void 0,n="missingInfoSuggestions"in t?t.missingInfoSuggestions?.amount:void 0,r=!e&&!!n,i=e??n,{updateDocument:a,fetching:o}=EC(),s=w.useCallback(u=>{u!==void 0&&a({documentId:t.id,fields:{amount:{raw:u.raw,currency:u.currency}}}).then(t.onUpdate)},[t.id,a,t.onUpdate]),c=Cr.Other!==t.documentType&&i?.formatted==null;return d.jsxs("div",{className:"flex flex-wrap",children:[d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!c,color:"red",zIndex:"auto",children:d.jsx("p",{className:["whitespace-nowrap",r?"bg-yellow-400":"",Number(i?.raw)>0?"text-green-700":"text-red-500"].join(" "),children:i?.formatted})})}),r&&d.jsx(PD,{onClick:()=>s(n),disabled:o})]})},uHt=({document:t})=>{const e="date"in t?t.date:void 0,n=Cr.Other!==t.documentType,r=n&&!e,i=e?$t(new Date(e),"dd/MM/yy"):"Missing Data",a=n?i:null;return d.jsx(Fa,{inline:!0,size:12,disabled:!r,color:"red",zIndex:"auto",children:d.jsx("div",{children:a})})},dHt=({document:t,onChange:e})=>{const{get:n}=pi(),r="debtor"in t?t.debtor:void 0,i=!t.documentType||!MVe.includes(t.documentType),a=i&&!r?.id||Cr.Unprocessed===t.documentType,{selectableBusinesses:o,refresh:s}=Wu(),l=n("chargesFilters"),c=w.useCallback(C=>PVe(C,l),[l]),u=w.useMemo(()=>{if(r||!("missingInfoSuggestions"in t)||!t.missingInfoSuggestions)return;const C=t.missingInfoSuggestions.owner,N=t.missingInfoSuggestions.counterparty;if(t.missingInfoSuggestions?.isIncome==null){if(t.creditor?.id){const E=t.creditor.id;if(C?.id===E&&N)return N;if(N?.id===E&&C)return C}}else{if(t.missingInfoSuggestions.isIncome&&N)return N;if(!t.missingInfoSuggestions.isIncome&&C)return C}},[t,r]),f=!r&&!!u,h=r??u,{name:m="Missing",id:A}=h||{},{updateDocument:p,fetching:v}=EC(),y=w.useCallback(C=>{C!==void 0&&p({documentId:t.id,fields:{debtorId:C}}).then(t.onUpdate)},[t.id,p,t.onUpdate]),[x,k]=w.useState(null),S=w.useCallback(async C=>{await y(C),s(),e?.()},[y,e,s]);return d.jsxs("div",{className:"flex flex-wrap",children:[d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!a,color:"red",zIndex:"auto",children:i&&(A?d.jsx("a",{href:c(A),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:m,className:"[&>*>.mantine-NavLink-label]:font-semibold"})}):d.jsx(GL,{options:o,value:A??null,onChange:C=>C&&y(C),search:x,onSearchChange:k,placeholder:"Choose or create a business",empty:x?d.jsx(sL,{description:x,onAdd:S}):null}))})}),f&&d.jsx(PD,{onClick:()=>y(u.id),disabled:v})]})},fHt=({document:t})=>{let e="";if("issuedDocumentInfo"in t&&t.issuedDocumentInfo?.originalDocument?.income){const{income:n}=t.issuedDocumentInfo.originalDocument;e=n.map(r=>r.description).join(", ")}return d.jsx("div",{className:"flex flex-col align-center justify-center flex-wrap",children:d.jsx("p",{children:e})})},hHt=({document:{image:t,file:e}})=>{const[n,r]=w.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:d.jsxs(xC,{cols:1,children:[d.jsx(Un,{disabled:!t,label:"Open Image",children:d.jsx(Fa,{inline:!0,size:12,disabled:!!t,color:"red",zIndex:"auto",children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",disabled:!t,onClick:()=>r(!!t),children:d.jsx(LLe,{className:"size-5"})})})}),d.jsx(Un,{disabled:!e,label:"Open File",children:d.jsx(Fa,{inline:!0,size:12,disabled:!!e,color:"red",zIndex:"auto",children:e?d.jsx("a",{href:typeof e=="string"?e:e.href,target:"_blank",rel:"noreferrer",children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",children:d.jsx(kve,{className:"size-5"})})}):d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",disabled:!0,children:d.jsx(kve,{className:"size-5"})})})})]})})}),t&&d.jsx(cm,{classNames:{content:"overflow-y-auto drop-shadow-lg"},withCloseButton:!0,withOverlay:!1,position:"right",opened:n,onClose:()=>r(!1),size:"30%",children:d.jsx("div",{className:"m-2",children:d.jsx(AWe,{src:t.toString(),zoomLevel:3,magnifierHeight:300,magnifierWidth:300})})})]})},mHt=({document:t})=>{const e="serialNumber"in t?t.serialNumber:void 0,n="allocationNumber"in t?t.allocationNumber:void 0,i=Cr.Other!==t.documentType&&!e;return d.jsxs("div",{className:"flex flex-col align-center justify-center flex-wrap",children:[d.jsx(Fa,{inline:!0,size:12,disabled:!i,color:"red",zIndex:"auto",children:d.jsx("p",{children:e})}),n&&d.jsxs("p",{className:"text-xs",children:["(",n,")"]})]})},pHt=({document:{documentType:t},isOpen:e})=>{const n=!t||t===Cr.Unprocessed,r=t??Cr.Unprocessed,i=n?"red":e?"orange":"blue";return d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:d.jsx(Fa,{inline:!0,size:12,disabled:!n&&!e,color:i,zIndex:"auto",children:d.jsx("p",{children:AE(r)})})})})},AHt=({document:t})=>{const e="vat"in t?t.vat:void 0,r=Cr.Other!==t.documentType&&e?.formatted==null;return d.jsx(Fa,{inline:!0,size:12,disabled:!r,color:"red",zIndex:"auto",children:d.jsx("div",{style:{color:Number(e?.raw)>0?"green":"red",whiteSpace:"nowrap"},children:e?.formatted})})},eI=[{id:"date",accessorKey:"date",sortingFn:t=>"date"in t.original&&t.original.date?new Date(t.original.date).getTime():0,header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(uHt,{document:t.original})},{id:"amount",accessorKey:"amount.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(cHt,{document:t.original})},{id:"vat",accessorKey:"vat.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["VAT",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(AHt,{document:t.original})},{id:"type",accessorKey:"documentType",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Type",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(pHt,{document:t.original,isOpen:"issuedDocumentInfo"in t.original&&t.original.issuedDocumentInfo?.status==="OPEN"})},{id:"serial",accessorKey:"serialNumber",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Serial",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(mHt,{document:t.original})},{id:"description",accessorKey:"issuedDocumentInfo.originalDocument.income",header:"Description",cell:({row:t})=>d.jsx(fHt,{document:t.original})},{id:"creditor",accessorKey:"creditor.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Creditor",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(lHt,{document:t.original,onChange:t.original.onUpdate})},{id:"debtor",accessorKey:"debtor.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Debtor",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(dHt,{document:t.original,onChange:t.original.onUpdate})},{id:"file",accessorKey:"file",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["files",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(hHt,{document:t.original})},{id:"edit",accessorKey:"id",header:"Edit",cell:({row:t})=>d.jsxs("div",{className:"flex flex-col items-center gap-2",children:[d.jsx(gL,{onClick:t.original.editDocument,tooltip:"Edit Document"}),"issuedDocumentInfo"in t.original&&t.original.issuedDocumentInfo?.status==="OPEN"&&d.jsxs(d.Fragment,{children:[d.jsx(YHt,{documentId:t.original.id,couldIssueCreditInvoice:t.original.documentType===Cr.Invoice||t.original.documentType===Cr.InvoiceReceipt}),d.jsx($E,{documentId:t.original.id,tooltip:"Issue Document out of This Document"})]})]})}],RVe=({documentsProps:t,onChange:e,limited:n=!1})=>{const[r,i]=w.useState(void 0),[a,o]=w.useState([]),s=w.useMemo(()=>t?.map(h=>{const m=Lt(J3e,h);return{...m,editDocument:()=>i(m.id),onUpdate:e}}),[t,e]),[l,c]=w.useState({}),u=["date","amount","vat","type","serial","file"],f=fm({data:s,columns:n?eI.filter(h=>h.id&&u.includes(h.id)):eI,getCoreRowModel:dm(),onSortingChange:o,getSortedRowModel:jg(),onColumnVisibilityChange:c,state:{sorting:a,columnVisibility:l}});return d.jsxs(d.Fragment,{children:[d.jsxs(Ku,{children:[d.jsx(Yu,{children:f.getHeaderGroups().map(h=>d.jsx(_r,{children:h.headers.map(m=>d.jsx(Wr,{colSpan:m.colSpan,children:m.isPlaceholder?null:Zo(m.column.columnDef.header,m.getContext())},m.id))},h.id))}),d.jsx(Xu,{children:f.getRowModel().rows?.length?f.getRowModel().rows.map(h=>d.jsx(_r,{"data-state":h.getIsSelected()&&"selected",children:h.getVisibleCells().map(m=>d.jsx(Rt,{children:Zo(m.column.columnDef.cell,m.getContext())},m.id))},h.id)):d.jsx(_r,{children:d.jsx(Rt,{colSpan:eI.length,className:"h-24 text-center",children:"No results."})})})]}),d.jsx(IKe,{documentId:r,onDone:()=>i(void 0),onChange:e})]})},gHt=Lne("inline-flex items-center justify-center rounded-md border border-gray-200 px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-gray-950 focus-visible:ring-gray-950/50 focus-visible:ring-[3px] aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 transition-[color,box-shadow] overflow-hidden dark:border-gray-800 dark:focus-visible:border-gray-300 dark:focus-visible:ring-gray-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",{variants:{variant:{default:"border-transparent bg-gray-900 text-gray-50 [a&]:hover:bg-gray-900/90 dark:bg-gray-50 dark:text-gray-900 dark:[a&]:hover:bg-gray-50/90",secondary:"border-transparent bg-gray-100 text-gray-900 [a&]:hover:bg-gray-100/90 dark:bg-gray-800 dark:text-gray-50 dark:[a&]:hover:bg-gray-800/90",destructive:"border-transparent bg-red-500 text-white [a&]:hover:bg-red-500/90 focus-visible:ring-red-500/20 dark:focus-visible:ring-red-500/40 dark:bg-red-500/60 dark:bg-red-900 dark:[a&]:hover:bg-red-900/90 dark:focus-visible:ring-red-900/20 dark:dark:focus-visible:ring-red-900/40 dark:dark:bg-red-900/60",outline:"text-gray-950 [a&]:hover:bg-gray-100 [a&]:hover:text-gray-900 dark:text-gray-50 dark:[a&]:hover:bg-gray-800 dark:[a&]:hover:text-gray-50"}},defaultVariants:{variant:"default"}});function pS({className:t,variant:e,asChild:n=!1,...r}){const i=n?$ne:"span";return d.jsx(i,{"data-slot":"badge",className:Ct(gHt({variant:e}),t),...r})}const j5=({foreignAmount:t,localAmount:e,diff:n})=>{const r=t!=null&&t.currency!==Vt.Ils,i=n&&n.localAmount?.formatted!==e?.formatted,a=n&&n.foreignAmount?.formatted!==t?.formatted;return d.jsx("div",{className:"flex flex-col",children:(e||i)&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex gap-2 items-center",children:[r&&d.jsx("p",{className:a?"line-through":"",children:t.formatted}),a&&n.foreignAmount&&d.jsx("p",{className:"border-2 border-yellow-500 rounded-md",children:n.foreignAmount.formatted})]}),d.jsxs("div",{className:"flex gap-2 items-center",children:[e!=null&&d.jsx("p",{className:i?"line-through":"",children:e.formatted}),i&&n.localAmount&&d.jsx("p",{className:"border-2 border-yellow-500 rounded-md",children:n.localAmount.formatted})]})]})})},I5=({account:t,diffAccount:e})=>{const{get:n}=pi(),r=n("chargesFilters"),i=w.useCallback(o=>{let s={};if(r)try{const l=decodeURIComponent(r);s=JSON.parse(l)}catch(l){console.error("Failed to parse filters from URL:",l)}return OD({ownerIds:s.byOwners||[],businessIDs:[o],...s.fromDate&&{fromDate:s.fromDate},...s.toDate&&{toDate:s.toDate}})},[r]),a=e&&e?.id!==t?.id;return d.jsx("div",{className:"flex flex-col whitespace-normal",children:(t||a)&&d.jsxs(d.Fragment,{children:[t&&d.jsx("a",{href:i(t.id),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:t.name,className:`[&>*>.mantine-NavLink-label]:font-semibold ${a?"line-through":""}`})}),a&&e&&d.jsx("div",{className:"border-2 border-yellow-500 rounded-md",children:d.jsx("a",{href:i(e.id),target:"_blank",rel:"noreferrer",children:d.jsx(nm,{label:e.name,className:"[&>*>.mantine-NavLink-label]:font-semibold"})})})]})})},bxe=({date:t,diff:e})=>{const n=t?$t(new Date(t),"dd/MM/yy"):void 0,r=e?$t(new Date(e),"dd/MM/yy"):void 0,i=r&&n!==r;return d.jsxs(d.Fragment,{children:[d.jsx("p",{className:i?"line-through":"",children:n??"Missing Data"}),i&&d.jsx("div",{className:"flex flex-col border-2 border-yellow-500 rounded-md",children:r})]})},xxe=[{accessorKey:"invoiceDate",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Invoice Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(bxe,{date:t.original.invoiceDate,diff:t.original.diff?.invoiceDate})},{accessorKey:"valueDate",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Value Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(bxe,{date:t.original.valueDate,diff:t.original.diff?.valueDate})},{header:"Debit Account1",columns:[{accessorKey:"debitAccount1.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.debitAccount1,diffAccount:t.original.diff?.debitAccount1})},{accessorKey:"localCurrencyDebitAmount1.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.debitAmount1,localAmount:t.original.localCurrencyDebitAmount1,diff:t.original.diff?{foreignAmount:t.original.diff.debitAmount1,localAmount:t.original.diff.localCurrencyDebitAmount1}:void 0})}]},{header:"Credit Account1",columns:[{accessorKey:"creditAccount1.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.creditAccount1,diffAccount:t.original.diff?.creditAccount1})},{accessorKey:"localCurrencyCreditAmount1.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.creditAmount1,localAmount:t.original.localCurrencyCreditAmount1,diff:t.original.diff?{foreignAmount:t.original.diff.creditAmount1,localAmount:t.original.diff.localCurrencyCreditAmount1}:void 0})}]},{header:"Debit Account2",columns:[{accessorKey:"debitAccount2.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.debitAccount2,diffAccount:t.original.diff?.debitAccount2})},{accessorKey:"localCurrencyDebitAmount2.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.debitAmount2,localAmount:t.original.localCurrencyDebitAmount2,diff:t.original.diff?{foreignAmount:t.original.diff.debitAmount2,localAmount:t.original.diff.localCurrencyDebitAmount2}:void 0})}]},{header:"Credit Account2",columns:[{accessorKey:"creditAccount2.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(I5,{account:t.original.creditAccount2,diffAccount:t.original.diff?.creditAccount2})},{accessorKey:"localCurrencyCreditAmount2.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(j5,{foreignAmount:t.original.creditAmount2,localAmount:t.original.localCurrencyCreditAmount2,diff:t.original.diff?{foreignAmount:t.original.diff.creditAmount2,localAmount:t.original.diff.localCurrencyCreditAmount2}:void 0})}]},{accessorKey:"description",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Details",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:{original:t}})=>{const e=t.diff&&t.diff.description!==t.description;return d.jsxs("div",{className:"flex flex-col whitespace-normal",children:[d.jsx("p",{className:e?"line-through":"",children:t.description}),e&&d.jsx("div",{className:"border-2 border-yellow-500 rounded-md",children:t.diff?.description})]})}},{accessorKey:"reference",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Reference",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:{original:t}})=>{const e=t.diff&&t.diff.reference!==t.reference;return d.jsxs("div",{className:"flex flex-col whitespace-normal",children:[d.jsx("p",{className:e?"line-through":"",children:t.reference}),e&&d.jsx("div",{className:"border-2 border-yellow-500 rounded-md",children:t.diff?.reference})]})}},{accessorKey:"matchingStatus",header:({column:t})=>d.jsxs(qe,{variant:"ghost",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc"),children:["Status",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:{original:{matchingStatus:t}}})=>{if(t){const e=t==="Deleted"?"bg-red-500":t==="Diff"?"bg-yellow-500":"bg-green-500";return d.jsx(pS,{variant:"default",className:e,children:t})}return null}}];function vHt(t){let e="";switch(t){case"New":e="bg-green-100/30";break;case"Deleted":e="bg-red-100/30";break;case"Diff":e="bg-yellow-100/30";break}return e}const yHt=({ledgerFragment:t})=>{const{ledger:e}=Lt(cLe,t),[n,r]=w.useState([]),i=w.useMemo(()=>{const o=e.records.map(l=>{const c=e.validate?.differences?.find(u=>u.id===l.id);return{...l,matchingStatus:!e.validate?.matches||e.validate.matches?.includes(l.id)?void 0:c?"Diff":"Deleted",diff:c}}),s=e?.validate?.differences?.filter(l=>l.id===hD).map(l=>({...l,matchingStatus:"New"}))??[];return o.push(...s),o},[e]),a=fm({data:i,columns:xxe,getCoreRowModel:dm(),onSortingChange:r,getSortedRowModel:jg(),state:{sorting:n}});return d.jsxs(Ku,{children:[d.jsx(Yu,{children:a.getHeaderGroups().map(o=>d.jsx(_r,{children:o.headers.map(s=>d.jsx(Wr,{colSpan:s.colSpan,children:s.isPlaceholder?null:Zo(s.column.columnDef.header,s.getContext())},s.id))},o.id))}),d.jsx(Xu,{children:a.getRowModel().rows?.length?a.getRowModel().rows.map(o=>d.jsx(_r,{"data-state":o.getIsSelected()&&"selected",className:vHt(o.original.matchingStatus),children:o.getVisibleCells().map(s=>d.jsx(Rt,{children:Zo(s.column.columnDef.cell,s.getContext())},s.id))},o.id)):d.jsx(_r,{children:d.jsx(Rt,{colSpan:xxe.length,className:"h-24 text-center",children:"No results."})})})]})},bHt=({data:t})=>{const e=Lt(Z3e,t);return e?.errorsLedger?.validate?.errors?.length?d.jsxs(Fg,{shadow:"xs",p:"md",children:[d.jsx(Jn,{c:"red",children:"Errors:"}),d.jsx(jp,{size:"sm",withPadding:!0,children:e.errorsLedger.validate.errors.map((n,r)=>d.jsx(jp.Item,{children:d.jsx(Jn,{c:"red",children:n})},r))})]}):null},$Ve=({transaction:t})=>{const e="effectiveDate"in t?t.effectiveDate:void 0;return d.jsxs("div",{className:"flex flex-col justify-center",children:[d.jsx("div",{children:e&&$t(new Date(e),"dd/MM/yy")}),t.sourceEffectiveDate&&d.jsxs("div",{className:"text-xs text-gray-500",children:["(Originally ",$t(new Date(t.sourceEffectiveDate),"dd/MM/yy"),")"]})]})},LVe=({transaction:t})=>{const e="eventDate"in t?t.eventDate:void 0;return d.jsx("div",{className:"flex flex-col justify-center",children:e&&$t(new Date(e),"dd/MM/yy")})},UVe=({transaction:t})=>{const e="amount"in t?t.amount:void 0;return d.jsxs("div",{style:{color:Number(e?.raw)>0?"green":"red",whiteSpace:"nowrap"},children:[e?.formatted,d.jsx("br",{}),t.cryptoExchangeRate&&d.jsxs("span",{style:{color:"gray",marginLeft:"0.5rem"},children:[`(Rate: ${t.cryptoExchangeRate.rate})`,d.jsx("br",{}),e?.raw?`${ni(e.raw*t.cryptoExchangeRate.rate)}$`:null]})]})},zVe=({transaction:t})=>{const{account:e}=t,n=e.type,r=e.name;return d.jsxs("div",{className:"flex flex-col justify-center",children:[d.jsx("p",{children:n}),d.jsx("p",{children:r})]})},HVe=({transaction:t})=>{const e="sourceDescription"in t?t.sourceDescription:"Missing";return d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:e})})},VVe=({transaction:t})=>d.jsx("div",{className:"flex flex-wrap",children:d.jsx("div",{className:"flex flex-col justify-center",children:t.referenceKey})}),xHt="updateTransaction",oL=()=>{const[{fetching:t},e]=zn(CTt),n=w.useCallback(async r=>{const i=`Error updating transaction ID [${r.transactionId}]`,a=`${xHt}-${r.transactionId}`;Ve.loading("Updating Transaction",{id:a});try{const o=await e(r),s=Hn(o,i,a,"updateTransaction");if(s)return Ve.success("Success",{id:a,description:"Transaction updated"}),s.updateTransaction}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateTransaction:n}},wHt="insertNewBusiness",kHt=()=>{const[{fetching:t},e]=zn(YDt),n=w.useCallback(async r=>{const i=`Error creating business [${r.fields.name}]`,a=`${wHt}-${r.fields.name}`;Ve.loading("Creating Business...",{id:a});try{const o=await e(r),s=Hn(o,i,a,"insertNewBusiness");if(s)return Ve.success("Success",{id:a,description:`Business [${r.fields.name}] was created`}),s.insertNewBusiness}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,insertBusiness:n}};function sL({description:t,onAdd:e}){const[n,r]=w.useState(!1);return d.jsxs(Wa,{open:n,onOpenChange:r,children:[d.jsx(_c,{asChild:!0,children:d.jsx(qe,{children:"Add Business"})}),d.jsxs(Ka,{className:"w-[90vw] max-w-screen-md",children:[d.jsx(ws,{children:d.jsx(ks,{children:"Add New Business"})}),d.jsx(SHt,{description:t,close:()=>r(!1),onAdd:e})]})]})}function SHt({description:t,close:e,onAdd:n}){const r=mr({defaultValues:{name:t,country:"Israel",suggestions:{phrases:[t]}}}),{handleSubmit:i}=r,[a,o]=w.useState(!1),{insertBusiness:s,fetching:l}=kHt(),c=u=>{u.sortCode&&=parseInt(u.sortCode.toString()),s({fields:u}).then(f=>{f?.id&&(n?.(f.id),e())})};return d.jsx(ii,{...r,children:d.jsxs("form",{onSubmit:i(c),children:[d.jsx(gtn,{formManager:r,setFetching:o}),d.jsx("div",{className:"flex justify-center mt-4",children:d.jsx(qe,{type:"submit",disabled:l||a,children:"Add"})})]})})}const CHt=w.createContext(null),sH={didCatch:!1,error:null};class lL extends w.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=sH}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:a,reason:"imperative-api"}),this.setState(sH)}}componentDidCatch(e,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&_Ht(e.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(sH)}}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=e;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")s=n(l);else if(r)s=w.createElement(r,l);else if(i!==void 0)s=i;else throw o}return w.createElement(CHt.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function _Ht(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}const NHt="updateTransactions",EHt=()=>{const[{fetching:t},e]=zn(_Tt),n=w.useCallback(async r=>{const i=Array.isArray(r.transactionIds)?r.transactionIds.join(", "):r.transactionIds,a=`Error updating transactions ID [${i}]`,o=`${NHt}-${i}`;Ve.loading("Updating Transactions",{id:o});try{const s=await e(r),l=Hn(s,a,o,"updateTransactions");if(l)return Ve.success("Success",{id:o,description:"Transactions updated"}),l.updateTransactions.transactions.map(c=>c.id)}catch(s){console.error(`${a}: ${s}`),Ve.error("Error",{id:o,description:a,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,updateTransactions:n}};function uae(t){const e=w.useRef({value:t,previous:t});return w.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function dae(t){const[e,n]=w.useState(void 0);return bs(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=t.offsetWidth,s=t.offsetHeight;n({width:o,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var cL="Checkbox",[FHt]=Cc(cL),[DHt,fae]=FHt(cL);function THt(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:f}=t,[h,m]=Pd({prop:n,defaultProp:i??!1,onChange:l,caller:cL}),[A,p]=w.useState(null),[v,y]=w.useState(null),x=w.useRef(!1),k=A?!!o||!!A.closest("form"):!0,S={checked:h,disabled:a,setChecked:m,control:A,setControl:p,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:fy(i)?!1:i,isFormControl:k,bubbleInput:v,setBubbleInput:y};return d.jsx(DHt,{scope:e,...S,children:OHt(f)?f(S):r})}var QVe="CheckboxTrigger",qVe=w.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},i)=>{const{control:a,value:o,disabled:s,checked:l,required:c,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:A}=fae(QVe,t),p=$r(i,u),v=w.useRef(l);return w.useEffect(()=>{const y=a?.form;if(y){const x=()=>f(v.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,f]),d.jsx(wn.button,{type:"button",role:"checkbox","aria-checked":fy(l)?"mixed":l,"aria-required":c,"data-state":ZVe(l),"data-disabled":s?"":void 0,disabled:s,value:o,...r,ref:p,onKeyDown:ln(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:ln(n,y=>{f(x=>fy(x)?!0:!x),A&&m&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});qVe.displayName=QVe;var GVe=w.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l,onCheckedChange:c,form:u,...f}=t;return d.jsx(THt,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:h})=>d.jsxs(d.Fragment,{children:[d.jsx(qVe,{...f,ref:e,__scopeCheckbox:n}),h&&d.jsx(XVe,{__scopeCheckbox:n})]})})});GVe.displayName=cL;var WVe="CheckboxIndicator",KVe=w.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...i}=t,a=fae(WVe,n);return d.jsx(cl,{present:r||fy(a.checked)||a.checked===!0,children:d.jsx(wn.span,{"data-state":ZVe(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});KVe.displayName=WVe;var YVe="CheckboxBubbleInput",XVe=w.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:l,name:c,value:u,form:f,bubbleInput:h,setBubbleInput:m}=fae(YVe,t),A=$r(n,m),p=uae(a),v=dae(r);w.useEffect(()=>{const x=h;if(!x)return;const k=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(k,"checked").set,N=!i.current;if(p!==a&&C){const E=new Event("click",{bubbles:N});x.indeterminate=fy(a),C.call(x,fy(a)?!1:a),x.dispatchEvent(E)}},[h,p,a,i]);const y=w.useRef(fy(a)?!1:a);return d.jsx(wn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:l,name:c,value:u,form:f,...e,tabIndex:-1,ref:A,style:{...e.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XVe.displayName=YVe;function OHt(t){return typeof t=="function"}function fy(t){return t==="indeterminate"}function ZVe(t){return fy(t)?"indeterminate":t?"checked":"unchecked"}function hx({className:t,...e}){return d.jsx(GVe,{"data-slot":"checkbox",className:Ct("peer border-gray-200 dark:bg-gray-200/30 data-[state=checked]:bg-gray-900 data-[state=checked]:text-gray-50 dark:data-[state=checked]:bg-gray-900 data-[state=checked]:border-gray-900 focus-visible:border-gray-950 focus-visible:ring-gray-950/50 aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/40 aria-invalid:border-red-500 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:dark:bg-gray-800/30 dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:text-gray-900 dark:dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:border-gray-50 dark:focus-visible:border-gray-300 dark:focus-visible:ring-gray-300/50 dark:aria-invalid:ring-red-900/20 dark:dark:aria-invalid:ring-red-900/40 dark:aria-invalid:border-red-900",t),...e,children:d.jsx(KVe,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:d.jsx(Ls,{className:"size-3.5"})})})}const BHt=[{id:"select",header:({table:t})=>d.jsx(hx,{checked:t.getIsAllPageRowsSelected()||t.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:e=>t.toggleAllPageRowsSelected(!!e),"aria-label":"Select all"}),cell:({row:t})=>d.jsx(hx,{checked:t.getIsSelected(),onCheckedChange:e=>t.toggleSelected(!!e),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"accountType",header:"Type",cell:({row:t})=>d.jsx("div",{children:t.getValue("accountType")})},{accessorKey:"accountName",header:"Account",cell:({row:t})=>d.jsx("div",{children:t.getValue("accountName")})},{accessorKey:"amountRaw",header:"Amount",cell:({row:t})=>d.jsx("div",{children:t.original.amountFormatted})},{accessorKey:"sourceDescription",header:"Description",cell:({row:t})=>d.jsx("div",{children:t.getValue("sourceDescription")})},{accessorKey:"eventDate",header:"Event Date",cell:({row:t})=>d.jsx("div",{children:$t(t.getValue("eventDate"),"yyyy-MM-dd")})},{accessorKey:"valueDate",header:"Value Date",cell:({row:t})=>d.jsx("div",{children:t.getValue("valueDate")?$t(t.getValue("valueDate"),"yyyy-MM-dd"):""})}];function JVe({transactionId:t,counterpartyId:e,open:n,onOpenChange:r,onClose:i}){const[{data:a,fetching:o},s]=on({pause:!0,query:UFt,variables:{transactionId:t,withMissingInfo:!0}});w.useEffect(()=>{n&&e&&s()},[n,e,s,t]);const l=w.useCallback(u=>{r(u),n&&!u&&i?.()},[r,i,n]),c=w.useMemo(()=>{const u=a?.similarTransactions.map(f=>({id:f.id,amountRaw:f.amount.raw,amountFormatted:f.amount.formatted,sourceDescription:f.sourceDescription,eventDate:new Date(f.eventDate),valueDate:f.effectiveDate?new Date(f.effectiveDate):void 0,accountType:f.account.type,accountName:f.account.name}))??[];return a&&u.length===0&&l(!1),u},[a,l]);return d.jsx(Wa,{open:n&&!!e&&c.length>0,onOpenChange:l,children:d.jsx(Ka,{className:"overflow-scroll max-h-screen w-full sm:max-w-[640px] md:max-w-[768px] lg:max-w-[900px]",children:d.jsx(lL,{fallback:d.jsx("div",{children:"Error fetching similar transactions"}),children:o?d.jsx(Jc,{}):e?d.jsx(jHt,{data:c,counterpartyId:e,onOpenChange:l}):null})})})}function jHt({data:t,counterpartyId:e,onOpenChange:n}){const[r,i]=L.useState([]),[a,o]=L.useState({}),s=fm({data:t,columns:BHt,onSortingChange:i,getCoreRowModel:dm(),getSortedRowModel:jg(),onRowSelectionChange:o,state:{sorting:r,rowSelection:a}}),{updateTransactions:l}=EHt(),c=w.useCallback(async()=>{const u=s.getSelectedRowModel().rows.map(f=>f.original.id);await l({transactionIds:u,fields:{counterpartyId:e}}),n(!1)},[l,n,s,e]);return w.useEffect(()=>{t.length===0&&n(!1)},[t.length,n]),t.length?d.jsxs(d.Fragment,{children:[d.jsxs(ws,{className:"flex flex-row items-center justify-between",children:[d.jsx(ks,{children:"Transactions"}),d.jsx(qe,{onClick:c,children:"Approve selected"})]}),d.jsx(ys,{children:d.jsxs(Ku,{children:[d.jsx(Yu,{children:s.getHeaderGroups().map(u=>d.jsx(_r,{children:u.headers.map(f=>d.jsx(Wr,{children:f.isPlaceholder?null:Zo(f.column.columnDef.header,f.getContext())},f.id))},u.id))}),d.jsx(Xu,{children:s.getRowModel().rows.map(u=>d.jsx(_r,{"data-state":u.getIsSelected()&&"selected",children:u.getVisibleCells().map(f=>d.jsx(Rt,{children:Zo(f.column.columnDef.cell,f.getContext())},f.id))},u.id))})]})})]}):null}function eQe({transaction:t,onChange:e}){const{get:n}=pi(),{id:r,counterparty:i,missingInfoSuggestions:a,id:o,sourceDescription:s,enableEdit:l}=t,c=!!a?.business&&l,u=c?a?.business?.name:"Missing",f=c?a?.business?.id:null,h=i?.name??u,[m,A]=w.useState(!1),{updateTransaction:p,fetching:v}=oL(),y=w.useCallback(async O=>{await p({transactionId:o,fields:{counterpartyId:O}}),A(!0)},[o,p]),x=w.useCallback(async O=>{await y(O),e?.()},[y,e]),k=n("chargesFilters"),S=w.useCallback(O=>{const B=k?JSON.parse(decodeURIComponent(k)):{};return OD({fromDate:B.fromDate,toDate:B.toDate,ownerIds:B.byOwners,businessIDs:[O]})},[k]),{selectableBusinesses:C,fetching:N}=Wu(),[E,D]=w.useState(f??null),[T,I]=w.useState(s);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex flex-wrap flex-col justify-center",children:i?.id?d.jsx("a",{href:S(i.id),target:"_blank",rel:"noreferrer",children:h}):d.jsxs(d.Fragment,{children:[d.jsx(GL,{options:C,value:E,onChange:D,search:T,onSearchChange:I,placeholder:"Choose or create a business",empty:T?d.jsx(sL,{description:T,onAdd:x}):null}),d.jsx(PC,{content:"Approve",children:d.jsx(qe,{variant:"outline",size:"icon",onClick:()=>E&&y(E),disabled:v||N||!E,children:d.jsx(Ls,{className:"size-4"})})})]})}),d.jsx(JVe,{transactionId:r,counterpartyId:i?.id??E,open:m,onOpenChange:A,onClose:e})]})}const lH=[{accessorKey:"counterparty.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Counterparty",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(eQe,{transaction:t.original})},{accessorKey:"eventDate",sortingFn:t=>"eventDate"in t.original&&t.original.eventDate?new Date(t.original.eventDate).getTime():0,header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Event Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(LVe,{transaction:t.original})},{accessorKey:"effectiveDate",sortingFn:t=>"effectiveDate"in t.original&&t.original.effectiveDate?new Date(t.original.effectiveDate).getTime():0,header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Debit Date",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx($Ve,{transaction:t.original})},{accessorKey:"amount.raw",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Amount",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(UVe,{transaction:t.original})},{accessorKey:"account.name",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Account",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(zVe,{transaction:t.original})},{accessorKey:"sourceDescription",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Description",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(HVe,{transaction:t.original})},{accessorKey:"referenceKey",header:({column:t})=>d.jsxs(qe,{variant:"ghost",children:["Reference#",t.getIsSorted()&&(t.getIsSorted()==="asc"?d.jsx(Vi,{className:"ml-2 h-4 w-4"}):d.jsx(ei,{className:"ml-2 h-4 w-4"}))]}),cell:({row:t})=>d.jsx(VVe,{transaction:t.original})}],IHt={accessorKey:"id",header:"Actions",cell:({row:t})=>t.original.enableEdit?d.jsxs(d.Fragment,{children:[d.jsx(gL,{onClick:t.original.editTransaction}),d.jsx(Msn,{chargeId:t.original.chargeId,transactionId:t.original.id,onDone:t.original.onUpdate})]}):t.original.enableChargeLink?d.jsx(tQe,{chargeId:t.original.chargeId}):null},hae=({transactionsProps:t,onChange:e=()=>{},enableEdit:n,enableChargeLink:r})=>{const[i,a]=w.useState(void 0),[o,s]=w.useState([]),l=w.useMemo(()=>t.map(h=>Lt(eLe,h)),[t]),c=w.useMemo(()=>l?.map(h=>({...h,editTransaction:()=>a(h.id),onUpdate:e,enableEdit:n,enableChargeLink:r})),[l,e,n,r]),u=w.useMemo(()=>n||r?[...lH,IHt]:lH,[n,r]),f=fm({data:c,columns:u,getCoreRowModel:dm(),onSortingChange:s,getSortedRowModel:jg(),state:{sorting:o}});return d.jsxs(d.Fragment,{children:[d.jsxs(Ku,{children:[d.jsx(Yu,{children:f.getHeaderGroups().map(h=>d.jsx(_r,{children:h.headers.map(m=>d.jsx(Wr,{colSpan:m.colSpan,children:m.isPlaceholder?null:Zo(m.column.columnDef.header,m.getContext())},m.id))},h.id))}),d.jsx(Xu,{children:f.getRowModel().rows?.length?f.getRowModel().rows.map(h=>d.jsx(_r,{children:h.getVisibleCells().map(m=>d.jsx(Rt,{children:Zo(m.column.columnDef.cell,m.getContext())},m.id))},h.id)):d.jsx(_r,{children:d.jsx(Rt,{colSpan:lH.length,className:"h-24 text-center",children:"No results."})})})]}),d.jsx(Psn,{transactionID:i,close:()=>a(void 0),onChange:e})]})},PHt=({transactionsProps:t,onChange:e})=>{const{transactions:n}=Lt(tLe,t);return d.jsx(hae,{transactionsProps:n,onChange:e,enableEdit:!0})},MHt=({chargeId:t})=>{const[{data:e,fetching:n}]=on({query:pFt,variables:{chargeId:t}}),r=w.useMemo(()=>e?.depositByCharge?.transactions?.filter(i=>i.chargeId!==t)??[],[e?.depositByCharge?.transactions,t]);return n?d.jsx(ai,{className:"h-10 w-10 animate-spin"}):e?.depositByCharge?d.jsxs("div",{children:[d.jsxs("div",{className:"text-lg font-semibold mb-4",children:['Bank Deposit "',e?.depositByCharge?.id,'" Balance:'," ",e?.depositByCharge?.balance.formatted]}),d.jsx("div",{className:"mb-4",children:d.jsx("span",{className:"text-sm text-gray-500",children:e?.depositByCharge?.isOpen?"Deposit is open":"Deposit is closed"})}),r.length===0?d.jsx("div",{className:"text-sm text-gray-500",children:"No transactions found for this deposit."}):d.jsx(hae,{transactionsProps:r,enableChargeLink:!0})]}):d.jsx("div",{className:"text-sm text-gray-500",children:"No bank deposit found for this charge."})},RHt=({chargeProps:t})=>{const e=Lt(nLe,t);if(e.__typename!=="ConversionCharge")return d.jsx(d.Fragment,{});const{eventRate:n,officialRate:r}=e;return d.jsxs(us,{justify:"center",children:[r&&d.jsx(us.Col,{span:"content",children:d.jsx(HP,{shadow:"sm",padding:"xs",radius:"md",withBorder:!0,children:d.jsxs(sS,{position:"apart",children:[d.jsx(Jn,{weight:500,children:"Official Conversion Rate"}),d.jsx(LY,{color:"green",variant:"light",children:`${Number(r.rate)} ${za(r.from)} => ${za(r.to)}`})]})})}),n&&d.jsx(us.Col,{span:"content",children:d.jsx(HP,{shadow:"sm",padding:"xs",radius:"md",withBorder:!0,children:d.jsxs(sS,{position:"apart",children:[d.jsx(Jn,{weight:500,children:"Bank Conversion Rate"}),d.jsx(LY,{color:"green",variant:"light",children:`${Number(n.rate)} ${za(n.from)} => ${za(n.to)}`})]})})})]})},$Ht=({chargeProps:t})=>{const e=Lt(rLe,t),n=w.useMemo(()=>e.__typename==="CreditcardBankCharge"&&e.creditCardTransactions?e.creditCardTransactions.map(r=>Lt(eLe,r)):[],[e]);return n.length?d.jsxs(Ku,{children:[d.jsx(Yu,{children:d.jsxs(_r,{children:[d.jsx(Wr,{children:"Event Date"}),d.jsx(Wr,{children:"Debit Date"}),d.jsx(Wr,{children:"Amount"}),d.jsx(Wr,{children:"Account"}),d.jsx(Wr,{children:"Description"}),d.jsx(Wr,{children:"Reference#"}),d.jsx(Wr,{children:"Counterparty"}),d.jsx(Wr,{children:"Charge"})]})}),d.jsx(Xu,{children:n.map(r=>{const i={...r,onUpdate:()=>{},editTransaction:()=>{},enableEdit:!1,enableChargeLink:!1};return d.jsxs(_r,{children:[d.jsx(Rt,{children:d.jsx(LVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx($Ve,{transaction:i})}),d.jsx(Rt,{children:d.jsx(UVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(zVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(HVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(VVe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(eQe,{transaction:i})}),d.jsx(Rt,{children:d.jsx(tQe,{chargeId:r.chargeId})})]},r.id)})})]}):null},LHt=({chargeProps:t})=>{const e=Lt(iLe,t),n=w.useMemo(()=>e.__typename!=="FinancialCharge"?[]:Object.entries(e.exchangeRates??{}).sort((r,i)=>r[0].localeCompare(i[0])),[e]);return e.__typename!=="FinancialCharge"?d.jsx(d.Fragment,{}):d.jsx("div",{className:"flex flex-row flex-wrap gap-2 px-2",children:n.map(([r,i])=>d.jsx(ys,{className:"gap-0 py-2",children:d.jsxs(ll,{className:"flex flex-col px-2",children:[d.jsx(Xc,{className:"text-xl font-semibold",children:r.toLocaleUpperCase()}),d.jsxs("div",{className:"flex items-center space-x-2",children:[d.jsxs("span",{className:"whitespace-nowrap",children:[za(r.toLocaleUpperCase()),"1="]}),d.jsxs(pS,{variant:"default",className:"flex gap-1 rounded-lg text-md",children:[za(Vt.Ils),i]})]})]})},r))})},UHt="deleteMiscExpense",zHt=()=>{const[{fetching:t},e]=zn(MDt),n=w.useCallback(async r=>{const i="Error deleting misc expense",a=`${UHt}-${r.id}`;Ve.loading("Deleting misc expense",{id:a});try{const o=await e(r),s=Hn(o,i,a);if(s)return Ve.success("Success",{id:a,description:"Misc expense was deleted successfully"}),s.deleteMiscExpense}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[e]);return{fetching:t,deleteMiscExpense:n}};function HHt({miscExpenseId:t,onChange:e}){const{deleteMiscExpense:n}=zHt();async function r(){try{await n({id:t}),e?.()}catch(i){const a="Failed to delete misc expense";console.error(`${a}: ${i}`),Ve.error("Error",{description:a})}}return d.jsx(Vd,{onConfirm:r,title:"Are you sure you want to delete this expense?",children:d.jsx(qe,{className:"size-7.5 text-red-500",variant:"ghost",children:d.jsx(Vx,{className:"size-5"})})})}const VHt=({miscExpensesData:t,onChange:e})=>{const n=Lt(aLe,t),{miscExpenses:r}=n;return d.jsxs("table",{className:"w-full h-full",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"Creditor"}),d.jsx("th",{children:"Debtor"}),d.jsx("th",{children:"Amount"}),d.jsx("th",{children:"Invoice Date"}),d.jsx("th",{children:"Value Date"}),d.jsx("th",{children:"Description"}),d.jsx("th",{children:"Actions"})]})}),d.jsx("tbody",{children:r?.map(i=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("div",{children:i.creditor?.name})}),d.jsx("td",{children:d.jsx("div",{children:i.debtor?.name})}),d.jsx("td",{children:d.jsx("div",{children:i.amount?.formatted})}),d.jsx("td",{children:d.jsx("div",{children:i.invoiceDate})}),d.jsx("td",{children:d.jsx("div",{children:i.valueDate&&$t(new Date(i.valueDate),"yyyy-MM-dd")})}),d.jsx("td",{children:d.jsx("div",{children:i.description})}),d.jsxs("td",{children:[d.jsx(Csn,{onDone:e,data:i}),d.jsx(HHt,{miscExpenseId:i.id,onChange:e})]})]},i?.id))})]})},QHt=({salaryRecordsProps:t})=>{const e=Lt(oLe,t);if(e.__typename!=="SalaryCharge")return d.jsx(d.Fragment,{});const{salaryRecords:n}=e;return d.jsxs("table",{className:"w-full h-full",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"Employee"}),d.jsx("th",{children:"Direct Salary"}),d.jsx("th",{children:"Base Salary"}),d.jsx("th",{children:"Pension"}),d.jsx("th",{children:"Training Fund"}),d.jsx("th",{children:"Social Security"}),d.jsx("th",{children:"Tax"})]})}),d.jsx("tbody",{children:n?.map(r=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("div",{children:r.employee?.name??"Missing"})}),d.jsx("td",{children:d.jsx("div",{children:r.directAmount.formatted})}),d.jsx("td",{children:d.jsx("div",{children:r.baseAmount?.formatted})}),d.jsxs("td",{children:[d.jsx("div",{children:r.pensionFund?.name}),d.jsxs("div",{children:["Employee: ",r.pensionEmployeeAmount?.formatted]}),d.jsxs("div",{children:["Employer: ",r.pensionEmployerAmount?.formatted]}),d.jsxs("div",{children:["Compensation: ",r.compensationsAmount?.formatted]})]}),d.jsxs("td",{children:[d.jsx("div",{children:r.trainingFund?.name}),d.jsxs("div",{children:["Employee: ",r.trainingFundEmployeeAmount?.formatted]}),d.jsxs("div",{children:["Employer: ",r.trainingFundEmployerAmount?.formatted]})]}),d.jsxs("td",{children:[d.jsxs("div",{children:["Employee: ",r.socialSecurityEmployeeAmount?.formatted]}),d.jsxs("div",{children:["Employer: ",r.socialSecurityEmployerAmount?.formatted]}),d.jsxs("div",{children:["Health: ",r.healthInsuranceAmount?.formatted]})]}),d.jsx("td",{children:d.jsx("div",{children:r.incomeTaxAmount?.formatted})})]},`${r.employee?.name}-${r.baseAmount}`))})]})};function mae({chargeID:t,onChange:e=()=>{},fetching:n}){const[r,i]=w.useState([]),[a,o]=w.useState(t),[s,{toggle:l}]=gs(!1),[c,u]=w.useState(void 0),[{data:f,fetching:h},m]=on({query:_h,variables:{chargeId:a}}),A=w.useCallback(()=>{m(),e()},[m,e]);w.useEffect(()=>{f?.charge&&u(f.charge)},[f]),w.useEffect(()=>{n&&m()},[n,m]),w.useEffect(()=>{t!==a&&(o(t),m())},[t,a,m]);const p=c?.__typename,v=!!c?.metadata?.ledgerCount,y=!!c?.metadata?.transactionsCount,x=!!c?.metadata?.documentsCount,k=!!c?.metadata?.receiptsCount,S=p==="SalaryCharge",C=!!c?.miscExpenses?.length,N=c?.metadata?.openDocuments,E=(c?.totalAmount?.raw??0)>0&&!k;w.useEffect(()=>{const G=[];y&&G.push("transactions"),x&&G.push("documents"),v&&G.push("ledger"),S&&G.push("salaries"),C&&G.push("miscExpenses"),p==="BankDepositCharge"&&G.push("bankDeposit"),i(G)},[y,x,v,S,C,p]);function D(G){r.includes(G)?i(X=>X.filter(he=>he!==G)):i(X=>[...X,G])}const T=Su(_h,lLe,c),I=Su(_h,eve,c),O=Su(_h,cLe,c),B=Su(_h,tLe,c),M=Su(_h,aLe,c),$=w.useMemo(()=>p==="ConversionCharge"&&Su(_h,nLe,c),[c,p]),U=w.useMemo(()=>p==="FinancialCharge"&&Su(_h,iLe,c),[c,p]),P=p==="SalaryCharge"&&Su(_h,oLe,c),Q=w.useMemo(()=>p==="CreditcardBankCharge"&&Su(_h,rLe,c),[c,p]);return d.jsxs("div",{className:"flex flex-col gap-5",children:[h&&d.jsx(fo,{className:"flex self-center my-5",color:"dark",size:"xl",variant:"dots"}),Su(_h,Z3e,c)&&d.jsx(bHt,{data:c}),c&&d.jsxs("div",{className:"flex flex-row",children:[d.jsxs(Mn,{className:"w-full",multiple:!0,value:r,chevron:d.jsx(kc,{size:"1rem"}),styles:{chevron:{"&[data-rotate]":{transform:"rotate(45deg)"}}},children:[p==="ConversionCharge"&&d.jsxs(Mn.Item,{value:"conversion",children:[d.jsx(Mn.Control,{disabled:!y,onClick:()=>D("conversion"),children:"Conversion Info"}),d.jsx(Mn.Panel,{children:$&&d.jsx(RHt,{chargeProps:c})})]}),p==="FinancialCharge"&&d.jsxs(Mn.Item,{value:"exchangeRates",children:[d.jsx(Mn.Control,{disabled:!U,onClick:()=>D("exchangeRates"),children:"Exchange Rates"}),d.jsx(Mn.Panel,{children:U&&d.jsx(LHt,{chargeProps:c})})]}),y&&d.jsxs(Mn.Item,{value:"transactions",children:[d.jsx(Mn.Control,{disabled:!y,onClick:()=>D("transactions"),children:d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-between w-full",children:["Transactions",E&&d.jsx($E,{chargeId:c.id})]})}),d.jsx(Mn.Panel,{children:B&&d.jsx(PHt,{transactionsProps:c,onChange:A})})]}),C&&d.jsxs(Mn.Item,{value:"miscExpenses",children:[d.jsx(Mn.Control,{disabled:!C,onClick:()=>D("miscExpenses"),children:"Misc Expenses"}),d.jsx(Mn.Panel,{children:M&&d.jsx(VHt,{miscExpensesData:c,onChange:A})})]}),x&&d.jsxs(Mn.Item,{value:"documents",children:[d.jsx(Mn.Control,{disabled:!x,onClick:()=>D("documents"),children:d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-between w-full",children:[d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-start",children:[x&&d.jsx(Un,{label:"Documents Gallery",children:d.jsx(qe,{onClick:G=>{G.stopPropagation(),l()},variant:"outline",disabled:!T,size:"icon",className:"size-7.5 text-gray-500",children:d.jsx(LLe,{className:"size-5"})})}),"Documents"]}),N&&d.jsx($E,{chargeId:c.id})]})}),d.jsx(Mn.Panel,{children:I&&d.jsx(RVe,{documentsProps:Lt(eve,c)?.additionalDocuments,onChange:A})})]}),p==="SalaryCharge"&&d.jsxs(Mn.Item,{value:"salaries",children:[d.jsx(Mn.Control,{disabled:!S,onClick:()=>D("salaries"),children:"Salaries"}),d.jsx(Mn.Panel,{children:P&&d.jsx(QHt,{salaryRecordsProps:c})})]}),c.__typename==="BusinessTripCharge"&&d.jsxs(Mn.Item,{value:"businessTrip",children:[d.jsx(Mn.Control,{onClick:()=>D("businessTrip"),children:"Business Trip"}),d.jsx(Mn.Panel,{children:d.jsx(TIt,{data:c.businessTrip})})]}),p==="CreditcardBankCharge"&&d.jsxs(Mn.Item,{value:"creditcard",children:[d.jsx(Mn.Control,{onClick:()=>D("creditcard"),children:"CreditCard Transactions"}),d.jsx(Mn.Panel,{children:Q&&d.jsx($Ht,{chargeProps:c})})]}),p==="BankDepositCharge"&&d.jsxs(Mn.Item,{value:"bankDeposit",children:[d.jsx(Mn.Control,{onClick:()=>D("bankDeposit"),children:"Bank Deposit"}),d.jsx(Mn.Panel,{children:d.jsx(MHt,{chargeId:c.id})})]}),v&&d.jsxs(Mn.Item,{value:"ledger",children:[d.jsx(Mn.Control,{disabled:!v,onClick:G=>{G.stopPropagation(),D("ledger")},children:d.jsxs("div",{className:"flex flex-row items-center gap-2 justify-start w-full",children:[!c.metadata?.isLedgerLocked&&d.jsx(uen,{chargeId:c.id,onChange:A,variant:"outline"}),"Ledger Records"]})}),d.jsx(Mn.Panel,{children:O&&d.jsx(yHt,{ledgerFragment:c})})]})]}),T&&d.jsx(En,{maw:"1/6",children:d.jsx(t3,{in:s,transitionDuration:500,transitionTimingFunction:"linear",children:d.jsx(h9t,{chargeProps:c,onChange:A})})})]}),!h&&!c&&d.jsx("p",{children:"Error fetching extended information for this charge"})]})}const qHt=({setEditCharge:t,setInsertDocument:e,setMatchDocuments:n,toggleMergeCharge:r,isSelectedForMerge:i,data:a,isAllOpened:o})=>{const[s,l]=w.useState(!1),[c,u]=w.useState(Lt(H0,a)),[{data:f,fetching:h},m]=on({query:mFt,pause:!0,variables:{chargeId:a.id}}),A=m;w.useEffect(()=>{const y=f?.charge;y&&u(Lt(H0,y))},[f]),w.useEffect(()=>{u(Lt(H0,a))},[a]),w.useEffect(()=>{l(o)},[o]);const p=w.useMemo(()=>!!(c.metadata?.documentsCount||c.metadata?.transactionsCount||c.metadata?.ledgerCount||c.metadata?.miscExpensesCount),[c.metadata?.documentsCount,c.metadata?.transactionsCount,c.metadata?.ledgerCount,c.metadata?.miscExpensesCount]),v=(c?.totalAmount?.raw??0)>0;return d.jsxs(d.Fragment,{children:[d.jsxs("tr",{onClick:()=>{p&&(l(y=>!y),A())},children:[d.jsx(fzt,{data:c}),d.jsx(ozt,{data:c}),d.jsx(mPt,{data:c}),d.jsx(hzt,{data:c}),Su(H0,dLe,c)?d.jsx(azt,{data:c}):d.jsx("td",{}),d.jsx(lzt,{data:c,onChange:A}),Su(H0,fLe,c)?d.jsx(uzt,{data:c,onChange:A}):d.jsx("td",{}),Su(H0,hLe,c)?d.jsx(dzt,{data:c}):d.jsx("td",{}),Su(H0,uLe,c)?d.jsx(pPt,{data:c}):d.jsx("td",{}),d.jsx(czt,{data:c}),d.jsx(hPt,{data:c,onChange:A}),d.jsx("td",{children:d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx(gL,{onClick:y=>{y.stopPropagation(),t(A)}}),r&&d.jsx(BL,{toggleMergeSelected:()=>r(A),mergeSelected:i})]})}),d.jsx("td",{children:d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx(d7t,{chargeId:c.id,chargeType:c.__typename,setInsertDocument:()=>e(A),setMatchDocuments:n,onChange:A,isIncome:v}),p&&d.jsx(TC,{toggleExpansion:l,isExpanded:s,onClickAction:()=>A()})]})})]}),p&&s&&d.jsx("tr",{children:d.jsx("td",{colSpan:13,children:d.jsx(Fg,{style:{width:"100%"},withBorder:!0,shadow:"lg",children:d.jsx(mae,{chargeID:c.id,onChange:A,fetching:h})})})})]})},Xx=({setEditChargeId:t,setInsertDocument:e,setMatchDocuments:n,toggleMergeCharge:r,mergeSelectedCharges:i,data:a,isAllOpened:o})=>{const s=a?.map(l=>Lt(UEt,l))??[];return d.jsxs(Fo,{striped:!0,highlightOnHover:!0,children:[d.jsx("thead",{className:"sticky top-0 z-20",children:d.jsxs("tr",{className:"px-10 py-10 title-font tracking-wider font-medium text-gray-900 text-sm bg-gray-100 rounded-tl rounded-bl",children:[d.jsx("th",{children:"Type"}),d.jsx("th",{children:"Date"}),d.jsx("th",{children:"Amount"}),d.jsx("th",{children:"Vat"}),d.jsx("th",{children:"Counterparty"}),d.jsx("th",{children:"Description"}),d.jsx("th",{children:"Tags"}),d.jsx("th",{children:"Tax Category"}),d.jsx("th",{children:"Business Trip"}),d.jsx("th",{children:"More Info"}),d.jsx("th",{children:"Accountant Approval"}),d.jsx("th",{children:"Edit"}),d.jsx("th",{children:"More Info"})]})}),d.jsx("tbody",{children:s?.map(l=>d.jsx(qHt,{data:l,setEditCharge:c=>t({id:l.id,onChange:c}),setInsertDocument:c=>e({id:l.id,onChange:c}),setMatchDocuments:()=>n({id:l.id,ownerId:l.owner.id}),toggleMergeCharge:r?c=>r(l.id,c):void 0,isSelectedForMerge:i?.has(l.id)??!1,isAllOpened:o},l.id))})]})};function Gy(t){return`/charges/${t}`}const GHt=({chargeId:t})=>{const e=rC("/charges/:chargeId"),n=t||e?.params.chargeId,[r,i]=w.useState(void 0),[a,o]=w.useState(void 0),[s,l]=w.useState(void 0),[{data:c,fetching:u},f]=on({query:rDt,pause:!n,variables:{chargeId:n??""}});return w.useEffect(()=>{n&&f()},[n,f]),n?d.jsxs(d.Fragment,{children:[u?d.jsx(Jc,{}):d.jsx(Xx,{setEditChargeId:i,setInsertDocument:o,setMatchDocuments:l,data:c?.charge?[c.charge]:[],isAllOpened:!0}),r&&d.jsx(KD,{chargeId:r?.id,close:()=>i(void 0),onChange:r.onChange}),a&&d.jsx(YD,{chargeId:a.id,onChange:a.onChange,close:()=>o(void 0)}),s&&d.jsx(iT,{chargeId:s.id,ownerId:s.ownerId,setMatchDocuments:()=>l(void 0)})]}):d.jsx("div",{children:"Charge not found"})};function tQe(t){return d.jsx(Un,{label:"To Charge",children:d.jsx(qe,{onClick:e=>{e.stopPropagation(),window.open(Gy(t.chargeId),"_blank","noreferrer")},...t,className:Ct("size-7.5",t.className),variant:"ghost",children:d.jsx(RBt,{className:"size-5"})})})}const WHt="closeDocument",KHt=()=>{const[{fetching:t},e]=zn(_Dt),n=w.useCallback(async r=>{const i=`Error closing document ID [${r.documentId}]`,a=`${WHt}-${r.documentId}`;Ve.loading("Closing Document...",{id:a});try{const o=await e(r),s=Hn(o,i,a,"closeDocument");if(s)return Ve.success("Success",{id:a,description:"Document closed"}),s.closeDocument}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}return!1},[e]);return{fetching:t,closeDocument:n}};function YHt({documentId:t,couldIssueCreditInvoice:e,...n}){const{closeDocument:r}=KHt(),[i,a]=w.useState(!1),[o,s]=w.useState(!1),l=w.useCallback(()=>{r({documentId:t})},[r,t]);return e?d.jsxs(d.Fragment,{children:[d.jsx(Un,{label:"Close Document",children:d.jsx(qe,{className:"size-7.5 text-red-600",variant:"ghost",...n,onClick:()=>a(!0),children:d.jsx(yve,{className:"size-5"})})}),d.jsx(Wa,{open:i,onOpenChange:a,children:d.jsxs(Ka,{className:"sm:max-w-[425px]",children:[d.jsx(ws,{children:d.jsx(ks,{children:"Should Issue Credit Invoice?"})}),d.jsxs(qy,{children:[d.jsx(qe,{onClick:()=>{a(!1),l()},variant:"secondary",children:"Just Close"}),d.jsx(qe,{onClick:()=>{a(!1),s(!0)},variant:"default",children:"Issue Credit Invoice"})]})]})}),d.jsx($E,{documentId:t,documentType:Cr.CreditInvoice,open:o,setOpen:s})]}):d.jsx(Vd,{onConfirm:l,title:"Are you sure you want to close this document?",children:d.jsx(qe,{className:"size-7.5 text-red-600",variant:"ghost",...n,children:d.jsx(yve,{className:"size-5"})})})}function PD(t){return d.jsx(qe,{...t,variant:"ghost",className:Ct("size-7.5 text-green-500",t.className),children:d.jsx(Ls,{className:"size-5"})})}const Zx=({content:t,isLink:e})=>d.jsx(qe,{variant:"outline",size:"icon",className:"size-7.5",onClick:()=>yPt(t),children:e?d.jsx(Ajt,{className:"size-5"}):d.jsx(BBt,{className:"size-5"})}),XHt="deleteDocument",ZHt=()=>{const[{fetching:t},e]=zn(IDt),n=w.useCallback(async r=>{const i=`Error deleting document ID [${r.documentId}]`,a=`${XHt}-${r.documentId}`;Ve.loading("Deleting Document",{id:a});try{const o=await e(r),s=Hn(o,i,a);if(s)return Ve.success("Success",{id:a,description:"Document was deleted"}),s.deleteDocument}catch(o){console.error(`${i}: ${o}`),Ve.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}return!1},[e]);return{fetching:t,deleteDocument:n}};function JHt({documentId:t}){const{deleteDocument:e}=ZHt();function n(){e({documentId:t})}return d.jsx(Vd,{onConfirm:n,title:"Are you sure you want to delete this document?",children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5 text-red-500",children:d.jsx(Vx,{className:"size-5"})})})}var eVt=typeof document<"u",tVt=function(){},tI=eVt?w.useLayoutEffect:tVt;function PM(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!PM(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!PM(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function nQe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function wxe(t,e){const n=nQe(t);return Math.round(e*n)/n}function cH(t){const e=w.useRef(t);return tI(()=>{e.current=t}),e}function nVt(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=t,[u,f]=w.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,m]=w.useState(r);PM(h,r)||m(r);const[A,p]=w.useState(null),[v,y]=w.useState(null),x=w.useCallback(G=>{G!==N.current&&(N.current=G,p(G))},[]),k=w.useCallback(G=>{G!==E.current&&(E.current=G,y(G))},[]),S=a||A,C=o||v,N=w.useRef(null),E=w.useRef(null),D=w.useRef(u),T=l!=null,I=cH(l),O=cH(i),B=cH(c),M=w.useCallback(()=>{if(!N.current||!E.current)return;const G={placement:e,strategy:n,middleware:h};O.current&&(G.platform=O.current),nMe(N.current,E.current,G).then(X=>{const he={...X,isPositioned:B.current!==!1};$.current&&!PM(D.current,he)&&(D.current=he,Wf.flushSync(()=>{f(he)}))})},[h,e,n,O,B]);tI(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f(G=>({...G,isPositioned:!1})))},[c]);const $=w.useRef(!1);tI(()=>($.current=!0,()=>{$.current=!1}),[]),tI(()=>{if(S&&(N.current=S),C&&(E.current=C),S&&C){if(I.current)return I.current(S,C,M);M()}},[S,C,M,I,T]);const U=w.useMemo(()=>({reference:N,floating:E,setReference:x,setFloating:k}),[x,k]),P=w.useMemo(()=>({reference:S,floating:C}),[S,C]),Q=w.useMemo(()=>{const G={position:n,left:0,top:0};if(!P.floating)return G;const X=wxe(P.floating,u.x),he=wxe(P.floating,u.y);return s?{...G,transform:"translate("+X+"px, "+he+"px)",...nQe(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:he}},[n,s,P.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:M,refs:U,elements:P,floatingStyles:Q}),[u,M,U,P,Q])}const rVt=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?CP({element:r.current,padding:i}).fn(n):{}:r?CP({element:r,padding:i}).fn(n):{}}}},iVt=(t,e)=>({...one(t),options:[t,e]}),aVt=(t,e)=>({...d3(t),options:[t,e]}),oVt=(t,e)=>({...tMe(t),options:[t,e]}),sVt=(t,e)=>({...sne(t),options:[t,e]}),lVt=(t,e)=>({...J4e(t),options:[t,e]}),cVt=(t,e)=>({...Cyt(t),options:[t,e]}),uVt=(t,e)=>({...rVt(t),options:[t,e]});var dVt="Arrow",rQe=w.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...a}=t;return d.jsx(wn.svg,{...a,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});rQe.displayName=dVt;var fVt=rQe,pae="Popper",[iQe,Wy]=Cc(pae),[hVt,aQe]=iQe(pae),oQe=t=>{const{__scopePopper:e,children:n}=t,[r,i]=w.useState(null);return d.jsx(hVt,{scope:e,anchor:r,onAnchorChange:i,children:n})};oQe.displayName=pae;var sQe="PopperAnchor",lQe=w.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,a=aQe(sQe,n),o=w.useRef(null),s=$r(e,o),l=w.useRef(null);return w.useEffect(()=>{const c=l.current;l.current=r?.current||o.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:d.jsx(wn.div,{...i,ref:s})});lQe.displayName=sQe;var Aae="PopperContent",[mVt,pVt]=iQe(Aae),cQe=w.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:A,...p}=t,v=aQe(Aae,n),[y,x]=w.useState(null),k=$r(e,te=>x(te)),[S,C]=w.useState(null),N=dae(S),E=N?.width??0,D=N?.height??0,T=r+(a!=="center"?"-"+a:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(c)?c:[c],B=O.length>0,M={padding:I,boundary:O.filter(gVt),altBoundary:B},{refs:$,floatingStyles:U,placement:P,isPositioned:Q,middlewareData:G}=nVt({strategy:"fixed",placement:T,whileElementsMounted:(...te)=>Z4e(...te,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[iVt({mainAxis:i+D,alignmentAxis:o}),l&&aVt({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?oVt():void 0,...M}),l&&sVt({...M}),lVt({...M,apply:({elements:te,rects:ue,availableWidth:fe,availableHeight:ge})=>{const{width:oe,height:J}=ue.reference,Se=te.floating.style;Se.setProperty("--radix-popper-available-width",`${fe}px`),Se.setProperty("--radix-popper-available-height",`${ge}px`),Se.setProperty("--radix-popper-anchor-width",`${oe}px`),Se.setProperty("--radix-popper-anchor-height",`${J}px`)}}),S&&uVt({element:S,padding:s}),vVt({arrowWidth:E,arrowHeight:D}),h&&cVt({strategy:"referenceHidden",...M})]}),[X,he]=fQe(P),ne=wl(A);bs(()=>{Q&&ne?.()},[Q,ne]);const H=G.arrow?.x,W=G.arrow?.y,q=G.arrow?.centerOffset!==0,[Z,re]=w.useState();return bs(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Q?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d.jsx(mVt,{scope:n,placedSide:X,onArrowChange:C,arrowX:H,arrowY:W,shouldHideArrow:q,children:d.jsx(wn.div,{"data-side":X,"data-align":he,...p,ref:k,style:{...p.style,animation:Q?void 0:"none"}})})})});cQe.displayName=Aae;var uQe="PopperArrow",AVt={top:"bottom",right:"left",bottom:"top",left:"right"},dQe=w.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,a=pVt(uQe,r),o=AVt[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(fVt,{...i,ref:n,style:{...i.style,display:"block"}})})});dQe.displayName=uQe;function gVt(t){return t!==null}var vVt=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,o=i.arrow?.centerOffset!==0,s=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=fQe(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+s/2,m=(i.arrow?.y??0)+l/2;let A="",p="";return c==="bottom"?(A=o?f:`${h}px`,p=`${-l}px`):c==="top"?(A=o?f:`${h}px`,p=`${r.floating.height+l}px`):c==="right"?(A=`${-l}px`,p=o?f:`${m}px`):c==="left"&&(A=`${r.floating.width+l}px`,p=o?f:`${m}px`),{data:{x:A,y:p}}}});function fQe(t){const[e,n="center"]=t.split("-");return[e,n]}var uL=oQe,MD=lQe,dL=cQe,fL=dQe,hQe=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yVt="VisuallyHidden",mQe=w.forwardRef((t,e)=>d.jsx(wn.span,{...t,ref:e,style:{...hQe,...t.style}}));mQe.displayName=yVt;var bVt=mQe,[hL]=Cc("Tooltip",[Wy]),mL=Wy(),pQe="TooltipProvider",xVt=700,yX="tooltip.open",[wVt,gae]=hL(pQe),AQe=t=>{const{__scopeTooltip:e,delayDuration:n=xVt,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=t,o=w.useRef(!0),s=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),d.jsx(wVt,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:w.useCallback(c=>{s.current=c},[]),disableHoverableContent:i,children:a})};AQe.displayName=pQe;var CE="Tooltip",[kVt,RD]=hL(CE),gQe=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=t,l=gae(CE,t.__scopeTooltip),c=mL(e),[u,f]=w.useState(null),h=Rs(),m=w.useRef(0),A=o??l.disableHoverableContent,p=s??l.delayDuration,v=w.useRef(!1),[y,x]=Pd({prop:r,defaultProp:i??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(yX))):l.onClose(),a?.(E)},caller:CE}),k=w.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=w.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),C=w.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),N=w.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},p)},[p,x]);return w.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),d.jsx(uL,{...c,children:d.jsx(kVt,{scope:e,contentId:h,open:y,stateAttribute:k,trigger:u,onTriggerChange:f,onTriggerEnter:w.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:w.useCallback(()=>{A?C():(window.clearTimeout(m.current),m.current=0)},[C,A]),onOpen:S,onClose:C,disableHoverableContent:A,children:n})})};gQe.displayName=CE;var bX="TooltipTrigger",vQe=w.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=RD(bX,n),a=gae(bX,n),o=mL(n),s=w.useRef(null),l=$r(e,s,i.onTriggerChange),c=w.useRef(!1),u=w.useRef(!1),f=w.useCallback(()=>c.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(MD,{asChild:!0,...o,children:d.jsx(wn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:ln(t.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:ln(t.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:ln(t.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ln(t.onFocus,()=>{c.current||i.onOpen()}),onBlur:ln(t.onBlur,i.onClose),onClick:ln(t.onClick,i.onClose)})})});vQe.displayName=bX;var vae="TooltipPortal",[SVt,CVt]=hL(vae,{forceMount:void 0}),yQe=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:i}=t,a=RD(vae,e);return d.jsx(SVt,{scope:e,forceMount:n,children:d.jsx(cl,{present:n||a.open,children:d.jsx(NC,{asChild:!0,container:i,children:r})})})};yQe.displayName=vae;var AS="TooltipContent",bQe=w.forwardRef((t,e)=>{const n=CVt(AS,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=t,o=RD(AS,t.__scopeTooltip);return d.jsx(cl,{present:r||o.open,children:o.disableHoverableContent?d.jsx(xQe,{side:i,...a,ref:e}):d.jsx(_Vt,{side:i,...a,ref:e})})}),_Vt=w.forwardRef((t,e)=>{const n=RD(AS,t.__scopeTooltip),r=gae(AS,t.__scopeTooltip),i=w.useRef(null),a=$r(e,i),[o,s]=w.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:f}=r,h=w.useCallback(()=>{s(null),f(!1)},[f]),m=w.useCallback((A,p)=>{const v=A.currentTarget,y={x:A.clientX,y:A.clientY},x=DVt(y,v.getBoundingClientRect()),k=TVt(y,x),S=OVt(p.getBoundingClientRect()),C=jVt([...k,...S]);s(C),f(!0)},[f]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(l&&u){const A=v=>m(v,u),p=v=>m(v,l);return l.addEventListener("pointerleave",A),u.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",A),u.removeEventListener("pointerleave",p)}}},[l,u,m,h]),w.useEffect(()=>{if(o){const A=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},x=l?.contains(v)||u?.contains(v),k=!BVt(y,o);x?h():k&&(h(),c())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[l,u,o,c,h]),d.jsx(xQe,{...t,ref:a})}),[NVt,EVt]=hL(CE,{isInside:!1}),FVt=FPt("TooltipContent"),xQe=w.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=t,l=RD(AS,n),c=mL(n),{onClose:u}=l;return w.useEffect(()=>(document.addEventListener(yX,u),()=>document.removeEventListener(yX,u)),[u]),w.useEffect(()=>{if(l.trigger){const f=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),d.jsx(_C,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:d.jsxs(dL,{"data-state":l.stateAttribute,...c,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(FVt,{children:r}),d.jsx(NVt,{scope:n,isInside:!0,children:d.jsx(bVt,{id:l.contentId,role:"tooltip",children:i||r})})]})})});bQe.displayName=AS;var wQe="TooltipArrow",kQe=w.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=mL(n);return EVt(wQe,n).isInside?null:d.jsx(fL,{...i,...r,ref:e})});kQe.displayName=wQe;function DVt(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function TVt(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function OVt(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function BVt(t,e){const{x:n,y:r}=t;let i=!1;for(let a=0,o=e.length-1;a<e.length;o=a++){const s=e[a],l=e[o],c=s.x,u=s.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function jVt(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),IVt(e)}function IVt(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const a=e[e.length-1],o=e[e.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var PVt=AQe,MVt=gQe,RVt=vQe,$Vt=yQe,LVt=bQe,UVt=kQe;function pL({delayDuration:t=0,...e}){return d.jsx(PVt,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function Ig({...t}){return d.jsx(pL,{children:d.jsx(MVt,{"data-slot":"tooltip",...t})})}function Pg({...t}){return d.jsx(RVt,{"data-slot":"tooltip-trigger",...t})}function Mg({className:t,sideOffset:e=0,children:n,...r}){return d.jsx($Vt,{children:d.jsxs(LVt,{"data-slot":"tooltip-content",sideOffset:e,className:Ct("bg-gray-900 text-gray-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1001 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance dark:bg-gray-50 dark:text-gray-900",t),...r,children:[n,d.jsx(UVt,{className:"bg-gray-900 fill-primary z-1001 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] dark:bg-gray-50"})]})})}function zVt(t,e){const n=new Uint8Array([239,187,191]),r=new Blob([n,t],{type:"text/csv;charset=UTF-8"}),i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=`${e}.csv`,document.body.appendChild(a),a.click(),document.body.removeChild(a)}const AL=({createFileVariables:t,buttonProps:e,buttonContent:n,label:r})=>{const i=w.useCallback(()=>{t().then(({fileContent:a,fileName:o})=>{zVt(a,o)})},[t]);return d.jsxs(Ig,{children:[d.jsx(Pg,{children:d.jsx(qe,{variant:"outline",className:"p-2",...e,onClick:i,children:n||d.jsx(MLe,{size:20})})}),d.jsx(Mg,{children:d.jsx("p",{children:r||"Download CSV"})})]})};function gL(t){return d.jsx(Un,{disabled:!t.tooltip,label:t.tooltip,children:d.jsx(qe,{className:"size-7.5",variant:"ghost",...t,children:d.jsx(Gu,{className:"size-5"})})})}function SQe(t){return d.jsx(Un,{disabled:!t.tooltip,label:t.tooltip,children:d.jsx(qe,{variant:"ghost",size:"icon",className:"size-7.5",...t,children:d.jsx(kc,{className:"size-5"})})})}function HVt(){const t=iC(),{authService:e}=w.useContext(TD),n=w.useCallback(()=>{e.logout(),t("/login")},[t,e]);return d.jsx(qe,{variant:"ghost",onClick:n,children:"Log out"})}/*!
693
693
  * html2canvas-pro 1.5.12 <https://yorickshan.github.io/html2canvas-pro/>
694
694
  * Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
695
695
  * Released under MIT License
@@ -812,7 +812,7 @@ T* `):Y.join(` Tj
812
812
  endobj\r
813
813
  `},n.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(qn.API),(function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(n,r,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=(function(f){for(var h,m=256*f.charCodeAt(4)+f.charCodeAt(5),A=f.length,p={width:0,height:0,numcomponents:1},v=4;v<A;v+=2){if(v+=m,e.indexOf(f.charCodeAt(v+1))!==-1){h=256*f.charCodeAt(v+5)+f.charCodeAt(v+6),p={width:256*f.charCodeAt(v+7)+f.charCodeAt(v+8),height:h,numcomponents:f.charCodeAt(v+9)};break}m=256*f.charCodeAt(v+2)+f.charCodeAt(v+3)}return p})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:i}}return u}})(qn.API),qn.API.processPNG=function(t,e,n,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var i,a=vJt(t,{checkCrc:!0}),o=a.width,s=a.height,l=a.channels,c=a.palette,u=a.depth;i=c&&l===1?(function(D){for(var T=D.width,I=D.height,O=D.data,B=D.palette,M=D.depth,$=!1,U=[],P=[],Q=void 0,G=!1,X=0,he=0;he<B.length;he++){var ne=T1e(B[he],4),H=ne[0],W=ne[1],q=ne[2],Z=ne[3];U.push(H,W,q),Z!=null&&(Z===0?(X++,P.length<1&&P.push(he)):Z<255&&(G=!0))}if(G||X>1){$=!0,P=void 0;var re=T*I;Q=new Uint8Array(re);for(var te=new DataView(O.buffer),ue=0;ue<re;ue++){var fe=XH(te,ue,M),ge=T1e(B[fe],4)[3];Q[ue]=ge}}else X===0&&(P=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:$?8:void 0,colorBytes:O,alphaBytes:Q,needSMask:$,palette:U,mask:P}})(a):l===2||l===4?(function(D){for(var T=D.data,I=D.width,O=D.height,B=D.channels,M=D.depth,$=B===2?"DeviceGray":"DeviceRGB",U=B-1,P=I*O,Q=U,G=P*Q,X=1*P,he=Math.ceil(G*M/8),ne=Math.ceil(X*M/8),H=new Uint8Array(he),W=new Uint8Array(ne),q=new DataView(T.buffer),Z=new DataView(H.buffer),re=new DataView(W.buffer),te=!1,ue=0;ue<P;ue++){for(var fe=ue*B,ge=0;ge<Q;ge++)Pwe(Z,XH(q,fe+ge,M),ue*Q+ge,M);var oe=XH(q,fe+Q,M);oe<(1<<M)-1&&(te=!0),Pwe(re,oe,1*ue,M)}return{colorSpace:$,colorsPerPixel:U,sMaskBitsPerComponent:te?M:void 0,colorBytes:H,alphaBytes:W,needSMask:te}})(a):(function(D){var T=D.data,I=D.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:I,colorsPerPixel:I==="DeviceGray"?1:3,colorBytes:T instanceof Uint16Array?(function(O){for(var B=O.length,M=new Uint8Array(2*B),$=new DataView(M.buffer,M.byteOffset,M.byteLength),U=0;U<B;U++)$.setUint16(2*U,O[U],!1);return M})(T):T,needSMask:!1}})(a);var f,h,m,A=i,p=A.colorSpace,v=A.colorsPerPixel,y=A.sMaskBitsPerComponent,x=A.colorBytes,k=A.alphaBytes,S=A.needSMask,C=A.palette,N=A.mask,E=null;return r!==qn.API.image_compression.NONE&&typeof YX=="function"?(E=(function(D){var T;switch(D){case qn.API.image_compression.FAST:T=11;break;case qn.API.image_compression.MEDIUM:T=13;break;case qn.API.image_compression.SLOW:T=14;break;default:T=12}return T})(r),f=this.decode.FLATE_DECODE,h="/Predictor ".concat(E," /Colors ").concat(v," /BitsPerComponent ").concat(u," /Columns ").concat(o),t=Twe(x,Math.ceil(o*v*u/8),v,u,r),S&&(m=Twe(k,Math.ceil(o*y/8),1,y,r))):(f=void 0,h=void 0,t=x,S&&(m=k)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:n,data:t,index:e,filter:f,decodeParameters:h,transparency:N,palette:C,sMask:m,predictor:E,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:y,colorSpace:p}}},(function(t){t.processGIF89A=function(e,n,r,i){var a=new $Jt(e),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new ZH(100).encode(c,100);return t.processJPEG.call(this,u,n,r,i)},t.processGIF87A=t.processGIF89A})(qn.API),Nh.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Nh.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(n){Sa.log("bit decode error:"+n)}},Nh.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},Nh.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},Nh.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}t!==0&&(this.pos+=4-t)}},Nh.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,l=(a>>10&e)/e*255|0,c=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=t}},Nh.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},Nh.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},Nh.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},Nh.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(e,n,r,i){var a=new Nh(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new ZH(100).encode(l,100);return t.processJPEG.call(this,c,n,r,i)}})(qn.API),Rwe.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(e,n,r,i){var a=new Rwe(e),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new ZH(100).encode(l,100);return t.processJPEG.call(this,c,n,r,i)}})(qn.API),qn.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=r[c],f=r[c+1],h=r[c+2],m=r[c+3];a[s++]=u,a[s++]=f,a[s++]=h,o[l++]=m}var A=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:A,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},qn.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Nw=qn.API,hB=Nw.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=e.doKerning!==!1,h=0,m=t.length,A=0,p=s[0]||l,v=[];for(n=0;n<m;n++)r=t.charCodeAt(n),typeof i.metadata.widthOfString=="function"?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(h=f&&sa(c[r])==="object"&&!isNaN(parseInt(c[r][A],10))?c[r][A]/u:0,v.push((s[r]||p)/l+h)),A=r;return v},Ewe=Nw.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Nw.processArabic&&(t=Nw.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,n,i)/n:hB.apply(this,arguments).reduce(function(a,o){return a+o},0)},Fwe=function(t,e,n,r){for(var i=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<n;)s+=e[a],a++;i.push(t.slice(0,a));var l=a;for(s=0;a!==o;)s+e[a]>r&&(i.push(t.slice(l,a)),s=0,l=a),s+=e[a],a++;return l!==a&&i.push(t.slice(l,a)),i},Dwe=function(t,e,n){n||(n={});var r,i,a,o,s,l,c,u=[],f=[u],h=n.textIndent||0,m=0,A=0,p=t.split(" "),v=hB.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?p[0].length+2:n.lineIndent||0){var y=Array(l).join(" "),x=[];p.map(function(S){(S=S.split(/\s*\n/)).length>1?x=x.concat(S.map(function(C,N){return(N&&C.length?`
814
814
  `:"")+C})):x.push(S[0])}),p=x,l=Ewe.apply(this,[y,n])}for(a=0,o=p.length;a<o;a++){var k=0;if(r=p[a],l&&r[0]==`
815
- `&&(r=r.substr(1),k=1),h+m+(A=(i=hB.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>e||k){if(A>e){for(s=Fwe.apply(this,[r,i,e-(h+m),e]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);A=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];f.push(u),h=A+l,m=v}else u.push(r),h+=m+A,m=v}return c=l?function(S,C){return(C?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},Nw.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(Dwe.apply(this,[r[s],o,a]));return c},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=e[a],i[e[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=t.__fontmetrics__.compress=function(h){var m,A,p,v,y=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?A="'"+x+"'":(x=parseInt(x,10),A=(A=o(x).slice(2)).slice(0,-1)+i[A.slice(-1)]),typeof m=="number")m<0?(p=o(m).slice(3),v="-"):(p=o(m).slice(2),v=""),p=v+p.slice(0,-1)+i[p.slice(-1)];else{if(sa(m)!=="object")throw new Error("Don't know what to do with value type "+sa(m)+".");p=s(m)}y.push(A+p)}return y.push("}"),y.join("")},l=t.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,A,p,v,y={},x=1,k=y,S=[],C="",N="",E=h.length-1,D=1;D<E;D+=1)(v=h[D])=="'"?m?(p=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(S.push([k,p]),k={},p=void 0):v=="}"?((A=S.pop())[0][A[1]]=k,p=void 0,k=A[0]):v=="-"?x=-1:p===void 0?r.hasOwnProperty(v)?(C+=r[v],p=parseInt(C,16)*x,x=1,C=""):C+=v:r.hasOwnProperty(v)?(N+=r[v],k[p]=parseInt(N,16)*x,x=1,p=void 0,N=""):N+=v;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(h){var m=h.font,A=f.Unicode[m.postScriptName];A&&(m.metadata.Unicode={},m.metadata.Unicode.widths=A.widths,m.metadata.Unicode.kerning=A.kerning);var p=u.Unicode[m.postScriptName];p&&(m.metadata.Unicode.encoding=p,m.encoding=p.codePages[0])}])})(qn.API),(function(t){var e=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(sI(s)),o.metadata=t.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(qn),qn.API.addSvgAsImage=function(t,e,n,r,i,a,o,s){if(isNaN(e)||isNaN(n))throw Sa.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Sa.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(vr.canvg?Promise.resolve(vr.canvg):TH(()=>import("./index.es-CNXdeXse.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,t,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),e,n,r,i,o,s)})},qn.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},qn.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function h(A,p){var v,y=!1;for(v=0;v<A.length;v+=1)A[v]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var m=s.length;for(f=0;f<m;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if(sa(t)==="object"){for(i in t)if(a=t[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var A,p=[];for(A in n)n[A].explicitSet===!0&&(n[A].type==="name"?p.push("/"+A+" /"+n[A].value):p.push("/"+A+" "+n[A].value));p.length!==0&&this.internal.write(`/ViewerPreferences
815
+ `&&(r=r.substr(1),k=1),h+m+(A=(i=hB.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>e||k){if(A>e){for(s=Fwe.apply(this,[r,i,e-(h+m),e]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);A=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];f.push(u),h=A+l,m=v}else u.push(r),h+=m+A,m=v}return c=l?function(S,C){return(C?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},Nw.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(Dwe.apply(this,[r[s],o,a]));return c},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=e[a],i[e[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=t.__fontmetrics__.compress=function(h){var m,A,p,v,y=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?A="'"+x+"'":(x=parseInt(x,10),A=(A=o(x).slice(2)).slice(0,-1)+i[A.slice(-1)]),typeof m=="number")m<0?(p=o(m).slice(3),v="-"):(p=o(m).slice(2),v=""),p=v+p.slice(0,-1)+i[p.slice(-1)];else{if(sa(m)!=="object")throw new Error("Don't know what to do with value type "+sa(m)+".");p=s(m)}y.push(A+p)}return y.push("}"),y.join("")},l=t.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,A,p,v,y={},x=1,k=y,S=[],C="",N="",E=h.length-1,D=1;D<E;D+=1)(v=h[D])=="'"?m?(p=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(S.push([k,p]),k={},p=void 0):v=="}"?((A=S.pop())[0][A[1]]=k,p=void 0,k=A[0]):v=="-"?x=-1:p===void 0?r.hasOwnProperty(v)?(C+=r[v],p=parseInt(C,16)*x,x=1,C=""):C+=v:r.hasOwnProperty(v)?(N+=r[v],k[p]=parseInt(N,16)*x,x=1,p=void 0,N=""):N+=v;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(h){var m=h.font,A=f.Unicode[m.postScriptName];A&&(m.metadata.Unicode={},m.metadata.Unicode.widths=A.widths,m.metadata.Unicode.kerning=A.kerning);var p=u.Unicode[m.postScriptName];p&&(m.metadata.Unicode.encoding=p,m.encoding=p.codePages[0])}])})(qn.API),(function(t){var e=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(sI(s)),o.metadata=t.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(qn),qn.API.addSvgAsImage=function(t,e,n,r,i,a,o,s){if(isNaN(e)||isNaN(n))throw Sa.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Sa.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(vr.canvg?Promise.resolve(vr.canvg):TH(()=>import("./index.es-C1dS5uFC.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,t,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),e,n,r,i,o,s)})},qn.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},qn.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function h(A,p){var v,y=!1;for(v=0;v<A.length;v+=1)A[v]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var m=s.length;for(f=0;f<m;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if(sa(t)==="object"){for(i in t)if(a=t[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var A,p=[];for(A in n)n[A].explicitSet===!0&&(n[A].type==="name"?p.push("/"+A+" /"+n[A].value):p.push("/"+A+" "+n[A].value));p.length!==0&&this.internal.write(`/ViewerPreferences
816
816
  <<
817
817
  `+p.join(`
818
818
  `)+`
@@ -984,7 +984,7 @@ export default theme;`}function i_e(t){return typeof t=="number"?`${(t*100).toFi
984
984
  `))):ge=W.stylize("[Circular]","special")),D(fe)){if(ue&&te.match(/^\d+$/))return ge;fe=JSON.stringify(""+te),fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fe=fe.slice(1,-1),fe=W.stylize(fe,"name")):(fe=fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fe=W.stylize(fe,"string"))}return fe+": "+ge}function v(W,q,Z){var re=W.reduce(function(te,ue){return ue.indexOf(`
985
985
  `)>=0,te+ue.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?Z[0]+(q===""?"":q+`
986
986
  `)+" "+W.join(`,
987
- `)+" "+Z[1]:Z[0]+q+" "+W.join(", ")+" "+Z[1]}t.types=MEn();function y(W){return Array.isArray(W)}t.isArray=y;function x(W){return typeof W=="boolean"}t.isBoolean=x;function k(W){return W===null}t.isNull=k;function S(W){return W==null}t.isNullOrUndefined=S;function C(W){return typeof W=="number"}t.isNumber=C;function N(W){return typeof W=="string"}t.isString=N;function E(W){return typeof W=="symbol"}t.isSymbol=E;function D(W){return W===void 0}t.isUndefined=D;function T(W){return I(W)&&U(W)==="[object RegExp]"}t.isRegExp=T,t.types.isRegExp=T;function I(W){return typeof W=="object"&&W!==null}t.isObject=I;function O(W){return I(W)&&U(W)==="[object Date]"}t.isDate=O,t.types.isDate=O;function B(W){return I(W)&&(U(W)==="[object Error]"||W instanceof Error)}t.isError=B,t.types.isNativeError=B;function M(W){return typeof W=="function"}t.isFunction=M;function $(W){return W===null||typeof W=="boolean"||typeof W=="number"||typeof W=="string"||typeof W=="symbol"||typeof W>"u"}t.isPrimitive=$,t.isBuffer=REn();function U(W){return Object.prototype.toString.call(W)}function P(W){return W<10?"0"+W.toString(10):W.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function G(){var W=new Date,q=[P(W.getHours()),P(W.getMinutes()),P(W.getSeconds())].join(":");return[W.getDate(),Q[W.getMonth()],q].join(" ")}t.log=function(){console.log("%s - %s",G(),t.format.apply(t,arguments))},t.inherits=d1(),t._extend=function(W,q){if(!q||!I(q))return W;for(var Z=Object.keys(q),re=Z.length;re--;)W[Z[re]]=q[Z[re]];return W};function X(W,q){return Object.prototype.hasOwnProperty.call(W,q)}var he=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(he&&q[he]){var Z=q[he];if(typeof Z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Z,he,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Z}function Z(){for(var re,te,ue=new Promise(function(oe,J){re=oe,te=J}),fe=[],ge=0;ge<arguments.length;ge++)fe.push(arguments[ge]);fe.push(function(oe,J){oe?te(oe):re(J)});try{q.apply(this,fe)}catch(oe){te(oe)}return ue}return Object.setPrototypeOf(Z,Object.getPrototypeOf(q)),he&&Object.defineProperty(Z,he,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Z,n(q))},t.promisify.custom=he;function ne(W,q){if(!W){var Z=new Error("Promise was rejected with a falsy value");Z.reason=W,W=Z}return q(W)}function H(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');function q(){for(var Z=[],re=0;re<arguments.length;re++)Z.push(arguments[re]);var te=Z.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var ue=this,fe=function(){return te.apply(ue,arguments)};W.apply(this,Z).then(function(ge){Kn.nextTick(fe.bind(null,null,ge))},function(ge){Kn.nextTick(ne.bind(null,ge,fe))})}return Object.setPrototypeOf(q,Object.getPrototypeOf(W)),Object.defineProperties(q,n(W)),q}t.callbackify=H})(TQ)),TQ}var PQ,b2e;function $En(){if(b2e)return PQ;b2e=1;function t(A,p){var v=Object.keys(A);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(A);p&&(y=y.filter(function(x){return Object.getOwnPropertyDescriptor(A,x).enumerable})),v.push.apply(v,y)}return v}function e(A){for(var p=1;p<arguments.length;p++){var v=arguments[p]!=null?arguments[p]:{};p%2?t(Object(v),!0).forEach(function(y){n(A,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(v)):t(Object(v)).forEach(function(y){Object.defineProperty(A,y,Object.getOwnPropertyDescriptor(v,y))})}return A}function n(A,p,v){return p=o(p),p in A?Object.defineProperty(A,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):A[p]=v,A}function r(A,p){if(!(A instanceof p))throw new TypeError("Cannot call a class as a function")}function i(A,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(A,o(y.key),y)}}function a(A,p,v){return p&&i(A.prototype,p),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A){var p=s(A,"string");return typeof p=="symbol"?p:String(p)}function s(A,p){if(typeof A!="object"||A===null)return A;var v=A[Symbol.toPrimitive];if(v!==void 0){var y=v.call(A,p);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}var l=ET(),c=l.Buffer,u=ltt(),f=u.inspect,h=f&&f.custom||"inspect";function m(A,p,v){c.prototype.copy.call(A,p,v)}return PQ=(function(){function A(){r(this,A),this.head=null,this.tail=null,this.length=0}return a(A,[{key:"push",value:function(v){var y={data:v,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(v){var y={data:v,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var y=this.head,x=""+y.data;y=y.next;)x+=v+y.data;return x}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(v>>>0),x=this.head,k=0;x;)m(x.data,y,k),k+=x.data.length,x=x.next;return y}},{key:"consume",value:function(v,y){var x;return v<this.head.data.length?(x=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?x=this.shift():x=y?this._getString(v):this._getBuffer(v),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var y=this.head,x=1,k=y.data;for(v-=k.length;y=y.next;){var S=y.data,C=v>S.length?S.length:v;if(C===S.length?k+=S:k+=S.slice(0,v),v-=C,v===0){C===S.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=S.slice(C));break}++x}return this.length-=x,k}},{key:"_getBuffer",value:function(v){var y=c.allocUnsafe(v),x=this.head,k=1;for(x.data.copy(y),v-=x.data.length;x=x.next;){var S=x.data,C=v>S.length?S.length:v;if(S.copy(y,y.length-v,0,C),v-=C,v===0){C===S.length?(++k,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=S.slice(C));break}++k}return this.length-=k,y}},{key:h,value:function(v,y){return f(this,e(e({},y),{},{depth:0,customInspect:!1}))}}]),A})(),PQ}var MQ,x2e;function ctt(){if(x2e)return MQ;x2e=1;function t(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Kn.nextTick(i,this,o)):Kn.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!s&&f?l._writableState?l._writableState.errorEmitted?Kn.nextTick(n,l):(l._writableState.errorEmitted=!0,Kn.nextTick(e,l,f)):Kn.nextTick(e,l,f):s?(Kn.nextTick(n,l),s(f)):Kn.nextTick(n,l)}),this)}function e(o,s){i(o,s),n(o)}function n(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(o,s){o.emit("error",s)}function a(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return MQ={destroy:t,undestroy:r,errorOrDestroy:a},MQ}var RQ={},w2e;function UC(){if(w2e)return RQ;w2e=1;function t(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var e={};function n(s,l,c){c||(c=Error);function u(h,m,A){return typeof l=="string"?l:l(h,m,A)}var f=(function(h){t(m,h);function m(A,p,v){return h.call(this,u(A,p,v))||this}return m})(c);f.prototype.name=c.name,f.prototype.code=s,e[s]=f}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function i(s,l,c){return s.substr(0,l.length)===l}function a(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return n("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&i(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var h=o(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(r(l,"type"))}return f+=". Received type ".concat(typeof c),f},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),RQ.codes=e,RQ}var $Q,k2e;function utt(){if(k2e)return $Q;k2e=1;var t=UC().codes.ERR_INVALID_OPT_VALUE;function e(r,i,a){return r.highWaterMark!=null?r.highWaterMark:i?r[a]:null}function n(r,i,a,o){var s=e(i,o,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?a:"highWaterMark";throw new t(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return $Q={getHighWaterMark:n},$Q}var LQ,S2e;function LEn(){if(S2e)return LQ;S2e=1,LQ=t;function t(n,r){if(e("noDeprecation"))return n;var i=!1;function a(){if(!i){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return n.apply(this,arguments)}return a}function e(n){try{if(!Iu.localStorage)return!1}catch{return!1}var r=Iu.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return LQ}var UQ,C2e;function dtt(){if(C2e)return UQ;C2e=1,UQ=D;function t(re){var te=this;this.next=null,this.entry=null,this.finish=function(){Z(te,re)}}var e;D.WritableState=N;var n={deprecate:LEn()},r=stt(),i=ET().Buffer,a=(typeof Iu<"u"?Iu:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(re){return i.from(re)}function s(re){return i.isBuffer(re)||re instanceof a}var l=ctt(),c=utt(),u=c.getHighWaterMark,f=UC().codes,h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,A=f.ERR_MULTIPLE_CALLBACK,p=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,x=f.ERR_STREAM_WRITE_AFTER_END,k=f.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;d1()(D,r);function C(){}function N(re,te,ue){e=e||PS(),re=re||{},typeof ue!="boolean"&&(ue=te instanceof e),this.objectMode=!!re.objectMode,ue&&(this.objectMode=this.objectMode||!!re.writableObjectMode),this.highWaterMark=u(this,re,"writableHighWaterMark",ue),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=re.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ge){P(te,ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=re.emitClose!==!1,this.autoDestroy=!!re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}N.prototype.getBuffer=function(){for(var te=this.bufferedRequest,ue=[];te;)ue.push(te),te=te.next;return ue},(function(){try{Object.defineProperty(N.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(te){return E.call(this,te)?!0:this!==D?!1:te&&te._writableState instanceof N}})):E=function(te){return te instanceof this};function D(re){e=e||PS();var te=this instanceof e;if(!te&&!E.call(D,this))return new D(re);this._writableState=new N(re,this,te),this.writable=!0,re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final)),r.call(this)}D.prototype.pipe=function(){S(this,new p)};function T(re,te){var ue=new x;S(re,ue),Kn.nextTick(te,ue)}function I(re,te,ue,fe){var ge;return ue===null?ge=new y:typeof ue!="string"&&!te.objectMode&&(ge=new h("chunk",["string","Buffer"],ue)),ge?(S(re,ge),Kn.nextTick(fe,ge),!1):!0}D.prototype.write=function(re,te,ue){var fe=this._writableState,ge=!1,oe=!fe.objectMode&&s(re);return oe&&!i.isBuffer(re)&&(re=o(re)),typeof te=="function"&&(ue=te,te=null),oe?te="buffer":te||(te=fe.defaultEncoding),typeof ue!="function"&&(ue=C),fe.ending?T(this,ue):(oe||I(this,fe,re,ue))&&(fe.pendingcb++,ge=B(this,fe,oe,re,te,ue)),ge},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var re=this._writableState;re.corked&&(re.corked--,!re.writing&&!re.corked&&!re.bufferProcessing&&re.bufferedRequest&&X(this,re))},D.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new k(te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(re,te,ue){return!re.objectMode&&re.decodeStrings!==!1&&typeof te=="string"&&(te=i.from(te,ue)),te}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(re,te,ue,fe,ge,oe){if(!ue){var J=O(te,fe,ge);fe!==J&&(ue=!0,ge="buffer",fe=J)}var Se=te.objectMode?1:fe.length;te.length+=Se;var ye=te.length<te.highWaterMark;if(ye||(te.needDrain=!0),te.writing||te.corked){var xe=te.lastBufferedRequest;te.lastBufferedRequest={chunk:fe,encoding:ge,isBuf:ue,callback:oe,next:null},xe?xe.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else M(re,te,!1,Se,fe,ge,oe);return ye}function M(re,te,ue,fe,ge,oe,J){te.writelen=fe,te.writecb=J,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new v("write")):ue?re._writev(ge,te.onwrite):re._write(ge,oe,te.onwrite),te.sync=!1}function $(re,te,ue,fe,ge){--te.pendingcb,ue?(Kn.nextTick(ge,fe),Kn.nextTick(W,re,te),re._writableState.errorEmitted=!0,S(re,fe)):(ge(fe),re._writableState.errorEmitted=!0,S(re,fe),W(re,te))}function U(re){re.writing=!1,re.writecb=null,re.length-=re.writelen,re.writelen=0}function P(re,te){var ue=re._writableState,fe=ue.sync,ge=ue.writecb;if(typeof ge!="function")throw new A;if(U(ue),te)$(re,ue,fe,te,ge);else{var oe=he(ue)||re.destroyed;!oe&&!ue.corked&&!ue.bufferProcessing&&ue.bufferedRequest&&X(re,ue),fe?Kn.nextTick(Q,re,ue,oe,ge):Q(re,ue,oe,ge)}}function Q(re,te,ue,fe){ue||G(re,te),te.pendingcb--,fe(),W(re,te)}function G(re,te){te.length===0&&te.needDrain&&(te.needDrain=!1,re.emit("drain"))}function X(re,te){te.bufferProcessing=!0;var ue=te.bufferedRequest;if(re._writev&&ue&&ue.next){var fe=te.bufferedRequestCount,ge=new Array(fe),oe=te.corkedRequestsFree;oe.entry=ue;for(var J=0,Se=!0;ue;)ge[J]=ue,ue.isBuf||(Se=!1),ue=ue.next,J+=1;ge.allBuffers=Se,M(re,te,!0,te.length,ge,"",oe.finish),te.pendingcb++,te.lastBufferedRequest=null,oe.next?(te.corkedRequestsFree=oe.next,oe.next=null):te.corkedRequestsFree=new t(te),te.bufferedRequestCount=0}else{for(;ue;){var ye=ue.chunk,xe=ue.encoding,pe=ue.callback,K=te.objectMode?1:ye.length;if(M(re,te,!1,K,ye,xe,pe),ue=ue.next,te.bufferedRequestCount--,te.writing)break}ue===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=ue,te.bufferProcessing=!1}D.prototype._write=function(re,te,ue){ue(new m("_write()"))},D.prototype._writev=null,D.prototype.end=function(re,te,ue){var fe=this._writableState;return typeof re=="function"?(ue=re,re=null,te=null):typeof te=="function"&&(ue=te,te=null),re!=null&&this.write(re,te),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||q(this,fe,ue),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function he(re){return re.ending&&re.length===0&&re.bufferedRequest===null&&!re.finished&&!re.writing}function ne(re,te){re._final(function(ue){te.pendingcb--,ue&&S(re,ue),te.prefinished=!0,re.emit("prefinish"),W(re,te)})}function H(re,te){!te.prefinished&&!te.finalCalled&&(typeof re._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,Kn.nextTick(ne,re,te)):(te.prefinished=!0,re.emit("prefinish")))}function W(re,te){var ue=he(te);if(ue&&(H(re,te),te.pendingcb===0&&(te.finished=!0,re.emit("finish"),te.autoDestroy))){var fe=re._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&re.destroy()}return ue}function q(re,te,ue){te.ending=!0,W(re,te),ue&&(te.finished?Kn.nextTick(ue):re.once("finish",ue)),te.ended=!0,re.writable=!1}function Z(re,te,ue){var fe=re.entry;for(re.entry=null;fe;){var ge=fe.callback;te.pendingcb--,ge(ue),fe=fe.next}te.corkedRequestsFree.next=re}return Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),D.prototype.destroy=l.destroy,D.prototype._undestroy=l.undestroy,D.prototype._destroy=function(re,te){te(re)},UQ}var zQ,_2e;function PS(){if(_2e)return zQ;_2e=1;var t=Object.keys||function(c){var u=[];for(var f in c)u.push(f);return u};zQ=o;var e=ftt(),n=dtt();d1()(o,e);for(var r=t(n.prototype),i=0;i<r.length;i++){var a=r[i];o.prototype[a]||(o.prototype[a]=n.prototype[a])}function o(c){if(!(this instanceof o))return new o(c);e.call(this,c),n.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||Kn.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),zQ}var HQ,N2e;function lle(){if(N2e)return HQ;N2e=1;var t=UC().codes.ERR_STREAM_PREMATURE_CLOSE;function e(a){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];a.apply(this,l)}}}function n(){}function r(a){return a.setHeader&&typeof a.abort=="function"}function i(a,o,s){if(typeof o=="function")return i(a,null,o);o||(o={}),s=e(s||n);var l=o.readable||o.readable!==!1&&a.readable,c=o.writable||o.writable!==!1&&a.writable,u=function(){a.writable||h()},f=a._writableState&&a._writableState.finished,h=function(){c=!1,f=!0,l||s.call(a)},m=a._readableState&&a._readableState.endEmitted,A=function(){l=!1,m=!0,c||s.call(a)},p=function(k){s.call(a,k)},v=function(){var k;if(l&&!m)return(!a._readableState||!a._readableState.ended)&&(k=new t),s.call(a,k);if(c&&!f)return(!a._writableState||!a._writableState.ended)&&(k=new t),s.call(a,k)},y=function(){a.req.on("finish",h)};return r(a)?(a.on("complete",h),a.on("abort",v),a.req?y():a.on("request",y)):c&&!a._writableState&&(a.on("end",u),a.on("close",u)),a.on("end",A),a.on("finish",h),o.error!==!1&&a.on("error",p),a.on("close",v),function(){a.removeListener("complete",h),a.removeListener("abort",v),a.removeListener("request",y),a.req&&a.req.removeListener("finish",h),a.removeListener("end",u),a.removeListener("close",u),a.removeListener("finish",h),a.removeListener("end",A),a.removeListener("error",p),a.removeListener("close",v)}}return HQ=i,HQ}var VQ,E2e;function UEn(){if(E2e)return VQ;E2e=1;var t;function e(k,S,C){return S=n(S),S in k?Object.defineProperty(k,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[S]=C,k}function n(k){var S=r(k,"string");return typeof S=="symbol"?S:String(S)}function r(k,S){if(typeof k!="object"||k===null)return k;var C=k[Symbol.toPrimitive];if(C!==void 0){var N=C.call(k,S);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(k)}var i=lle(),a=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function h(k,S){return{value:k,done:S}}function m(k){var S=k[a];if(S!==null){var C=k[f].read();C!==null&&(k[c]=null,k[a]=null,k[o]=null,S(h(C,!1)))}}function A(k){Kn.nextTick(m,k)}function p(k,S){return function(C,N){k.then(function(){if(S[l]){C(h(void 0,!0));return}S[u](C,N)},N)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((t={get stream(){return this[f]},next:function(){var S=this,C=this[s];if(C!==null)return Promise.reject(C);if(this[l])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(T,I){Kn.nextTick(function(){S[s]?I(S[s]):T(h(void 0,!0))})});var N=this[c],E;if(N)E=new Promise(p(N,this));else{var D=this[f].read();if(D!==null)return Promise.resolve(h(D,!1));E=new Promise(this[u])}return this[c]=E,E}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var S=this;return new Promise(function(C,N){S[f].destroy(null,function(E){if(E){N(E);return}C(h(void 0,!0))})})}),t),v),x=function(S){var C,N=Object.create(y,(C={},e(C,f,{value:S,writable:!0}),e(C,a,{value:null,writable:!0}),e(C,o,{value:null,writable:!0}),e(C,s,{value:null,writable:!0}),e(C,l,{value:S._readableState.endEmitted,writable:!0}),e(C,u,{value:function(D,T){var I=N[f].read();I?(N[c]=null,N[a]=null,N[o]=null,D(h(I,!1))):(N[a]=D,N[o]=T)},writable:!0}),C));return N[c]=null,i(S,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=N[o];D!==null&&(N[c]=null,N[a]=null,N[o]=null,D(E)),N[s]=E;return}var T=N[a];T!==null&&(N[c]=null,N[a]=null,N[o]=null,T(h(void 0,!0))),N[l]=!0}),S.on("readable",A.bind(null,N)),N};return VQ=x,VQ}var QQ,F2e;function zEn(){return F2e||(F2e=1,QQ=function(){throw new Error("Readable.from is not available in the browser")}),QQ}var qQ,D2e;function ftt(){if(D2e)return qQ;D2e=1,qQ=T;var t;T.ReadableState=D,sle().EventEmitter;var e=function(J,Se){return J.listeners(Se).length},n=stt(),r=ET().Buffer,i=(typeof Iu<"u"?Iu:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(oe){return r.from(oe)}function o(oe){return r.isBuffer(oe)||oe instanceof i}var s=ltt(),l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=$En(),u=ctt(),f=utt(),h=f.getHighWaterMark,m=UC().codes,A=m.ERR_INVALID_ARG_TYPE,p=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,k,S;d1()(T,n);var C=u.errorOrDestroy,N=["error","close","destroy","pause","resume"];function E(oe,J,Se){if(typeof oe.prependListener=="function")return oe.prependListener(J,Se);!oe._events||!oe._events[J]?oe.on(J,Se):Array.isArray(oe._events[J])?oe._events[J].unshift(Se):oe._events[J]=[Se,oe._events[J]]}function D(oe,J,Se){t=t||PS(),oe=oe||{},typeof Se!="boolean"&&(Se=J instanceof t),this.objectMode=!!oe.objectMode,Se&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=h(this,oe,"readableHighWaterMark",Se),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=oe.emitClose!==!1,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(x||(x=_J().StringDecoder),this.decoder=new x(oe.encoding),this.encoding=oe.encoding)}function T(oe){if(t=t||PS(),!(this instanceof T))return new T(oe);var J=this instanceof t;this._readableState=new D(oe,this,J),this.readable=!0,oe&&(typeof oe.read=="function"&&(this._read=oe.read),typeof oe.destroy=="function"&&(this._destroy=oe.destroy)),n.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(oe,J){J(oe)},T.prototype.push=function(oe,J){var Se=this._readableState,ye;return Se.objectMode?ye=!0:typeof oe=="string"&&(J=J||Se.defaultEncoding,J!==Se.encoding&&(oe=r.from(oe,J),J=""),ye=!0),I(this,oe,J,!1,ye)},T.prototype.unshift=function(oe){return I(this,oe,null,!0,!1)};function I(oe,J,Se,ye,xe){l("readableAddChunk",J);var pe=oe._readableState;if(J===null)pe.reading=!1,P(oe,pe);else{var K;if(xe||(K=B(pe,J)),K)C(oe,K);else if(pe.objectMode||J&&J.length>0)if(typeof J!="string"&&!pe.objectMode&&Object.getPrototypeOf(J)!==r.prototype&&(J=a(J)),ye)pe.endEmitted?C(oe,new y):O(oe,pe,J,!0);else if(pe.ended)C(oe,new p);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!Se?(J=pe.decoder.write(J),pe.objectMode||J.length!==0?O(oe,pe,J,!1):X(oe,pe)):O(oe,pe,J,!1)}else ye||(pe.reading=!1,X(oe,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function O(oe,J,Se,ye){J.flowing&&J.length===0&&!J.sync?(J.awaitDrain=0,oe.emit("data",Se)):(J.length+=J.objectMode?1:Se.length,ye?J.buffer.unshift(Se):J.buffer.push(Se),J.needReadable&&Q(oe)),X(oe,J)}function B(oe,J){var Se;return!o(J)&&typeof J!="string"&&J!==void 0&&!oe.objectMode&&(Se=new A("chunk",["string","Buffer","Uint8Array"],J)),Se}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(oe){x||(x=_J().StringDecoder);var J=new x(oe);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,ye="";Se!==null;)ye+=J.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),ye!==""&&this._readableState.buffer.push(ye),this._readableState.length=ye.length,this};var M=1073741824;function $(oe){return oe>=M?oe=M:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}function U(oe,J){return oe<=0||J.length===0&&J.ended?0:J.objectMode?1:oe!==oe?J.flowing&&J.length?J.buffer.head.data.length:J.length:(oe>J.highWaterMark&&(J.highWaterMark=$(oe)),oe<=J.length?oe:J.ended?J.length:(J.needReadable=!0,0))}T.prototype.read=function(oe){l("read",oe),oe=parseInt(oe,10);var J=this._readableState,Se=oe;if(oe!==0&&(J.emittedReadable=!1),oe===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return l("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?ue(this):Q(this),null;if(oe=U(oe,J),oe===0&&J.ended)return J.length===0&&ue(this),null;var ye=J.needReadable;l("need readable",ye),(J.length===0||J.length-oe<J.highWaterMark)&&(ye=!0,l("length less than watermark",ye)),J.ended||J.reading?(ye=!1,l("reading or ended",ye)):ye&&(l("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0),this._read(J.highWaterMark),J.sync=!1,J.reading||(oe=U(Se,J)));var xe;return oe>0?xe=te(oe,J):xe=null,xe===null?(J.needReadable=J.length<=J.highWaterMark,oe=0):(J.length-=oe,J.awaitDrain=0),J.length===0&&(J.ended||(J.needReadable=!0),Se!==oe&&J.ended&&ue(this)),xe!==null&&this.emit("data",xe),xe};function P(oe,J){if(l("onEofChunk"),!J.ended){if(J.decoder){var Se=J.decoder.end();Se&&Se.length&&(J.buffer.push(Se),J.length+=J.objectMode?1:Se.length)}J.ended=!0,J.sync?Q(oe):(J.needReadable=!1,J.emittedReadable||(J.emittedReadable=!0,G(oe)))}}function Q(oe){var J=oe._readableState;l("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(l("emitReadable",J.flowing),J.emittedReadable=!0,Kn.nextTick(G,oe))}function G(oe){var J=oe._readableState;l("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&(J.length||J.ended)&&(oe.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,re(oe)}function X(oe,J){J.readingMore||(J.readingMore=!0,Kn.nextTick(he,oe,J))}function he(oe,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){var Se=J.length;if(l("maybeReadMore read 0"),oe.read(0),Se===J.length)break}J.readingMore=!1}T.prototype._read=function(oe){C(this,new v("_read()"))},T.prototype.pipe=function(oe,J){var Se=this,ye=this._readableState;switch(ye.pipesCount){case 0:ye.pipes=oe;break;case 1:ye.pipes=[ye.pipes,oe];break;default:ye.pipes.push(oe);break}ye.pipesCount+=1,l("pipe count=%d opts=%j",ye.pipesCount,J);var xe=(!J||J.end!==!1)&&oe!==Kn.stdout&&oe!==Kn.stderr,pe=xe?ie:Ke;ye.endEmitted?Kn.nextTick(pe):Se.once("end",pe),oe.on("unpipe",K);function K(rt,ct){l("onunpipe"),rt===Se&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,ve())}function ie(){l("onend"),oe.end()}var le=ne(Se);oe.on("drain",le);var ce=!1;function ve(){l("cleanup"),oe.removeListener("close",je),oe.removeListener("finish",Re),oe.removeListener("drain",le),oe.removeListener("error",$e),oe.removeListener("unpipe",K),Se.removeListener("end",ie),Se.removeListener("end",Ke),Se.removeListener("data",be),ce=!0,ye.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&le()}Se.on("data",be);function be(rt){l("ondata");var ct=oe.write(rt);l("dest.write",ct),ct===!1&&((ye.pipesCount===1&&ye.pipes===oe||ye.pipesCount>1&&ge(ye.pipes,oe)!==-1)&&!ce&&(l("false write response, pause",ye.awaitDrain),ye.awaitDrain++),Se.pause())}function $e(rt){l("onerror",rt),Ke(),oe.removeListener("error",$e),e(oe,"error")===0&&C(oe,rt)}E(oe,"error",$e);function je(){oe.removeListener("finish",Re),Ke()}oe.once("close",je);function Re(){l("onfinish"),oe.removeListener("close",je),Ke()}oe.once("finish",Re);function Ke(){l("unpipe"),Se.unpipe(oe)}return oe.emit("pipe",Se),ye.flowing||(l("pipe resume"),Se.resume()),oe};function ne(oe){return function(){var Se=oe._readableState;l("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&e(oe,"data")&&(Se.flowing=!0,re(oe))}}T.prototype.unpipe=function(oe){var J=this._readableState,Se={hasUnpiped:!1};if(J.pipesCount===0)return this;if(J.pipesCount===1)return oe&&oe!==J.pipes?this:(oe||(oe=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,oe&&oe.emit("unpipe",this,Se),this);if(!oe){var ye=J.pipes,xe=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var pe=0;pe<xe;pe++)ye[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var K=ge(J.pipes,oe);return K===-1?this:(J.pipes.splice(K,1),J.pipesCount-=1,J.pipesCount===1&&(J.pipes=J.pipes[0]),oe.emit("unpipe",this,Se),this)},T.prototype.on=function(oe,J){var Se=n.prototype.on.call(this,oe,J),ye=this._readableState;return oe==="data"?(ye.readableListening=this.listenerCount("readable")>0,ye.flowing!==!1&&this.resume()):oe==="readable"&&!ye.endEmitted&&!ye.readableListening&&(ye.readableListening=ye.needReadable=!0,ye.flowing=!1,ye.emittedReadable=!1,l("on readable",ye.length,ye.reading),ye.length?Q(this):ye.reading||Kn.nextTick(W,this)),Se},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(oe,J){var Se=n.prototype.removeListener.call(this,oe,J);return oe==="readable"&&Kn.nextTick(H,this),Se},T.prototype.removeAllListeners=function(oe){var J=n.prototype.removeAllListeners.apply(this,arguments);return(oe==="readable"||oe===void 0)&&Kn.nextTick(H,this),J};function H(oe){var J=oe._readableState;J.readableListening=oe.listenerCount("readable")>0,J.resumeScheduled&&!J.paused?J.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function W(oe){l("readable nexttick read 0"),oe.read(0)}T.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(l("resume"),oe.flowing=!oe.readableListening,q(this,oe)),oe.paused=!1,this};function q(oe,J){J.resumeScheduled||(J.resumeScheduled=!0,Kn.nextTick(Z,oe,J))}function Z(oe,J){l("resume",J.reading),J.reading||oe.read(0),J.resumeScheduled=!1,oe.emit("resume"),re(oe),J.flowing&&!J.reading&&oe.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function re(oe){var J=oe._readableState;for(l("flow",J.flowing);J.flowing&&oe.read()!==null;);}T.prototype.wrap=function(oe){var J=this,Se=this._readableState,ye=!1;oe.on("end",function(){if(l("wrapped end"),Se.decoder&&!Se.ended){var K=Se.decoder.end();K&&K.length&&J.push(K)}J.push(null)}),oe.on("data",function(K){if(l("wrapped data"),Se.decoder&&(K=Se.decoder.write(K)),!(Se.objectMode&&K==null)&&!(!Se.objectMode&&(!K||!K.length))){var ie=J.push(K);ie||(ye=!0,oe.pause())}});for(var xe in oe)this[xe]===void 0&&typeof oe[xe]=="function"&&(this[xe]=(function(ie){return function(){return oe[ie].apply(oe,arguments)}})(xe));for(var pe=0;pe<N.length;pe++)oe.on(N[pe],this.emit.bind(this,N[pe]));return this._read=function(K){l("wrapped _read",K),ye&&(ye=!1,oe.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=UEn()),k(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}}),T._fromList=te,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(oe,J){if(J.length===0)return null;var Se;return J.objectMode?Se=J.buffer.shift():!oe||oe>=J.length?(J.decoder?Se=J.buffer.join(""):J.buffer.length===1?Se=J.buffer.first():Se=J.buffer.concat(J.length),J.buffer.clear()):Se=J.buffer.consume(oe,J.decoder),Se}function ue(oe){var J=oe._readableState;l("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,Kn.nextTick(fe,J,oe))}function fe(oe,J){if(l("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&oe.length===0&&(oe.endEmitted=!0,J.readable=!1,J.emit("end"),oe.autoDestroy)){var Se=J._writableState;(!Se||Se.autoDestroy&&Se.finished)&&J.destroy()}}typeof Symbol=="function"&&(T.from=function(oe,J){return S===void 0&&(S=zEn()),S(T,oe,J)});function ge(oe,J){for(var Se=0,ye=oe.length;Se<ye;Se++)if(oe[Se]===J)return Se;return-1}return qQ}var GQ,T2e;function htt(){if(T2e)return GQ;T2e=1,GQ=s;var t=UC().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,r=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,a=PS();d1()(s,a);function o(u,f){var h=this._transformState;h.transforming=!1;var m=h.writecb;if(m===null)return this.emit("error",new n);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),m(u);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);a.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){c(u,f,h)}):c(this,null,null)}s.prototype.push=function(u,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,u,f)},s.prototype._transform=function(u,f,h){h(new e("_transform()"))},s.prototype._write=function(u,f,h){var m=this._transformState;if(m.writecb=h,m.writechunk=u,m.writeencoding=f,!m.transforming){var A=this._readableState;(m.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},s.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(u,f){a.prototype._destroy.call(this,u,function(h){f(h)})};function c(u,f,h){if(f)return u.emit("error",f);if(h!=null&&u.push(h),u._writableState.length)throw new i;if(u._transformState.transforming)throw new r;return u.push(null)}return GQ}var WQ,O2e;function HEn(){if(O2e)return WQ;O2e=1,WQ=e;var t=htt();d1()(e,t);function e(n){if(!(this instanceof e))return new e(n);t.call(this,n)}return e.prototype._transform=function(n,r,i){i(null,n)},WQ}var KQ,B2e;function VEn(){if(B2e)return KQ;B2e=1;var t;function e(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var n=UC().codes,r=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function a(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,m,A,p){p=e(p);var v=!1;h.on("close",function(){v=!0}),t===void 0&&(t=lle()),t(h,{readable:m,writable:A},function(x){if(x)return p(x);v=!0,p()});var y=!1;return function(x){if(!v&&!y){if(y=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();p(x||new i("pipe"))}}}function l(h){h()}function c(h,m){return h.pipe(m)}function u(h){return!h.length||typeof h[h.length-1]!="function"?a:h.pop()}function f(){for(var h=arguments.length,m=new Array(h),A=0;A<h;A++)m[A]=arguments[A];var p=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var v,y=m.map(function(x,k){var S=k<m.length-1,C=k>0;return s(x,S,C,function(N){v||(v=N),N&&y.forEach(l),!S&&(y.forEach(l),p(v))})});return m.reduce(c)}return KQ=f,KQ}var YQ,j2e;function QEn(){if(j2e)return YQ;j2e=1,YQ=n;var t=sle().EventEmitter,e=d1();e(n,t),n.Readable=ftt(),n.Writable=dtt(),n.Duplex=PS(),n.Transform=htt(),n.PassThrough=HEn(),n.finished=lle(),n.pipeline=VEn(),n.Stream=n;function n(){t.call(this)}return n.prototype.pipe=function(r,i){var a=this;function o(m){r.writable&&r.write(m)===!1&&a.pause&&a.pause()}a.on("data",o);function s(){a.readable&&a.resume&&a.resume()}r.on("drain",s),!r._isStdio&&(!i||i.end!==!1)&&(a.on("end",c),a.on("close",u));var l=!1;function c(){l||(l=!0,r.end())}function u(){l||(l=!0,typeof r.destroy=="function"&&r.destroy())}function f(m){if(h(),t.listenerCount(this,"error")===0)throw m}a.on("error",f),r.on("error",f);function h(){a.removeListener("data",o),r.removeListener("drain",s),a.removeListener("end",c),a.removeListener("close",u),a.removeListener("error",f),r.removeListener("error",f),a.removeListener("end",h),a.removeListener("close",h),r.removeListener("close",h)}return a.on("end",h),a.on("close",h),r.on("close",h),r.emit("pipe",a),r},YQ}var I2e;function qEn(){return I2e||(I2e=1,(function(t){var e=l0().Buffer,n=pEn(),r=ott(),i=t.exports;i.encodings=null,i.defaultCharUnicode="�",i.defaultCharSingleByte="?",i.encode=function(s,l,c){s=""+(s||"");var u=i.getEncoder(l,c),f=u.write(s),h=u.end();return h&&h.length>0?e.concat([f,h]):f},i.decode=function(s,l,c){typeof s=="string"&&(i.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),i.skipDecodeWarning=!0),s=e.from(""+(s||""),"binary"));var u=i.getDecoder(l,c),f=u.write(s),h=u.end();return h?f+h:f},i.encodingExists=function(s){try{return i.getCodec(s),!0}catch{return!1}},i.toEncoding=i.encode,i.fromEncoding=i.decode,i._codecDataCache={__proto__:null},i.getCodec=function(s){if(!i.encodings){var l=BEn();i.encodings={__proto__:null},r(i.encodings,l)}for(var c=i._canonicalizeEncoding(s),u={};;){var f=i._codecDataCache[c];if(f)return f;var h=i.encodings[c];switch(typeof h){case"string":c=h;break;case"object":for(var m in h)u[m]=h[m];u.encodingName||(u.encodingName=c),c=h.type;break;case"function":return u.encodingName||(u.encodingName=c),f=new h(u,i),i._codecDataCache[u.encodingName]=f,f;default:throw new Error("Encoding not recognized: '"+s+"' (searched as: '"+c+"')")}}},i._canonicalizeEncoding=function(o){return(""+o).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},i.getEncoder=function(s,l){var c=i.getCodec(s),u=new c.encoder(l,c);return c.bomAware&&l&&l.addBOM&&(u=new n.PrependBOM(u,l)),u},i.getDecoder=function(s,l){var c=i.getCodec(s),u=new c.decoder(l,c);return c.bomAware&&!(l&&l.stripBOM===!1)&&(u=new n.StripBOM(u,l)),u},i.enableStreamingAPI=function(s){if(!i.supportsStreams){var l=jEn()(s);i.IconvLiteEncoderStream=l.IconvLiteEncoderStream,i.IconvLiteDecoderStream=l.IconvLiteDecoderStream,i.encodeStream=function(u,f){return new i.IconvLiteEncoderStream(i.getEncoder(u,f),f)},i.decodeStream=function(u,f){return new i.IconvLiteDecoderStream(i.getDecoder(u,f),f)},i.supportsStreams=!0}};var a;try{a=QEn()}catch{}a&&a.Transform?i.enableStreamingAPI(a):i.encodeStream=i.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}})(AQ)),AQ.exports}var GEn=qEn();const P2e=Ti(GEn);function mtt({open:t,onOpenChange:e}){const n=One(new Date),r=$t(y3(n),"yyyy-MM-dd"),i=$t(CLe(n),"yyyy-MM-dd"),[a,o]=w.useState(r),[s,l]=w.useState(i),[c,u]=w.useState(!1),[f,h]=w.useState(""),[m,A]=on({pause:!0,query:zFt,variables:{fromDate:a,toDate:s}});w.useEffect(()=>{if(c&&!m.fetching){if(m.error){h("Failed to fetch uniform format data. Please try again."),console.error("GraphQL error:",m.error),u(!1);return}if(m.data?.uniformFormat){const{bkmvdata:y,ini:x}=m.data.uniformFormat;if(!y||!x){h("Incomplete data received from the server. Please try again."),u(!1);return}const k=new File([new Uint8Array(P2e.encode(y,"ISO-8859-8"))],"bkmvdata.txt",{type:"text/plain"}),S=new File([new Uint8Array(P2e.encode(x,"ISO-8859-8"))],"ini.txt",{type:"text/plain"});YY(S),setTimeout(()=>YY(k),100),e(!1),o(r),l(i),u(!1)}else m.stale&&!m.data?.uniformFormat&&(h("No data returned from the server. Please try again."),u(!1))}},[m,c,a,s,r,i,e]);const p=async y=>{if(y.preventDefault(),h(""),!a||!s){h("Please select both from and to dates");return}const x=new Date(a),k=new Date(s);if(x>=k){h("From date must be before to date");return}if(k>new Date){h("To date cannot be in the future");return}u(!0);try{A({requestPolicy:"network-only"})}catch(S){h("Failed to generate files. Please try again."),console.error("Error generating files:",S),u(!1)}},v=y=>{c||(e(y),y||(o(r),l(i),h("")))};return d.jsx(Wa,{open:t,onOpenChange:v,children:d.jsxs(Ka,{className:"sm:max-w-md",children:[d.jsxs(ws,{children:[d.jsxs(ks,{className:"flex items-center gap-2",children:[d.jsx(cS,{className:"h-5 w-5"}),"Generate Uniform Files"]}),d.jsx(gVe,{children:"Select the date range to generate and download uniform files."})]}),d.jsxs("form",{onSubmit:p,className:"space-y-4",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Rn,{htmlFor:"from-date",children:"From Date"}),d.jsx(kn,{id:"from-date",type:"date",value:a,onChange:y=>o(y.target.value),disabled:c,required:!0})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Rn,{htmlFor:"to-date",children:"To Date"}),d.jsx(kn,{id:"to-date",type:"date",value:s,onChange:y=>l(y.target.value),disabled:c,required:!0})]})]}),f&&d.jsx("div",{className:"text-sm text-red-600 bg-red-50 p-3 rounded-md",children:f}),d.jsxs(qy,{className:"gap-2",children:[d.jsx(qe,{type:"button",variant:"outline",onClick:()=>v(!1),disabled:c,children:"Cancel"}),d.jsx(qe,{type:"submit",disabled:c,className:"gap-2",children:c?d.jsxs(d.Fragment,{children:[d.jsx(ai,{className:"h-4 w-4 animate-spin"}),"Generating..."]}):d.jsxs(d.Fragment,{children:[d.jsx(jne,{className:"h-4 w-4"}),"Generate & Download"]})})]})]})]})})}function WEn({...t}){return d.jsx(eL,{"data-slot":"sheet",...t})}function KEn({...t}){return d.jsx(Jie,{"data-slot":"sheet-trigger",...t})}function YEn({...t}){return d.jsx(tL,{"data-slot":"sheet-portal",...t})}function XEn({className:t,...e}){return d.jsx(nL,{"data-slot":"sheet-overlay",className:Ct("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1001 bg-black/50",t),...e})}function ZEn({className:t,children:e,side:n="right",...r}){return d.jsxs(YEn,{children:[d.jsx(XEn,{}),d.jsxs(rL,{"data-slot":"sheet-content",className:Ct("bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-1001 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-gray-950",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,d.jsxs(AVe,{className:"ring-offset-white focus:ring-gray-950 data-[state=open]:bg-gray-100 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none dark:ring-offset-gray-950 dark:focus:ring-gray-300 dark:data-[state=open]:bg-gray-800",children:[d.jsx(Qx,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}var e8="Collapsible",[JEn,ptt]=Cc(e8),[eFn,cle]=JEn(e8),Att=w.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=t,[l,c]=Pd({prop:r,defaultProp:i??!1,onChange:o,caller:e8});return d.jsx(eFn,{scope:n,disabled:a,contentId:Rs(),open:l,onOpenToggle:w.useCallback(()=>c(u=>!u),[c]),children:d.jsx(wn.div,{"data-state":hle(l),"data-disabled":a?"":void 0,...s,ref:e})})});Att.displayName=e8;var gtt="CollapsibleTrigger",ule=w.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,i=cle(gtt,n);return d.jsx(wn.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":hle(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:e,onClick:ln(t.onClick,i.onOpenToggle)})});ule.displayName=gtt;var dle="CollapsibleContent",fle=w.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=cle(dle,t.__scopeCollapsible);return d.jsx(cl,{present:n||i.open,children:({present:a})=>d.jsx(tFn,{...r,ref:e,present:a})})});fle.displayName=dle;var tFn=w.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=t,o=cle(dle,n),[s,l]=w.useState(r),c=w.useRef(null),u=$r(e,c),f=w.useRef(0),h=f.current,m=w.useRef(0),A=m.current,p=o.open||s,v=w.useRef(p),y=w.useRef(void 0);return w.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),bs(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const k=x.getBoundingClientRect();f.current=k.height,m.current=k.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[o.open,r]),d.jsx(wn.div,{"data-state":hle(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...t.style},children:p&&i})});function hle(t){return t?"open":"closed"}var vtt=Att,nFn=ule,rFn=fle;function iFn({...t}){return d.jsx(vtt,{"data-slot":"collapsible",...t})}function aFn({...t}){return d.jsx(ule,{"data-slot":"collapsible-trigger",...t})}function oFn({...t}){return d.jsx(fle,{"data-slot":"collapsible-content",...t})}var NJ=["Enter"," "],sFn=["ArrowDown","PageUp","Home"],ytt=["ArrowUp","PageDown","End"],lFn=[...sFn,...ytt],cFn={ltr:[...NJ,"ArrowRight"],rtl:[...NJ,"ArrowLeft"]},uFn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},FT="Menu",[dF,dFn,fFn]=jL(FT),[f1,btt]=Cc(FT,[fFn,Wy,s6]),t8=Wy(),xtt=s6(),[hFn,h1]=f1(FT),[mFn,DT]=f1(FT),wtt=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=t,s=t8(e),[l,c]=w.useState(null),u=w.useRef(!1),f=wl(a),h=OC(i);return w.useEffect(()=>{const m=()=>{u.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>u.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),d.jsx(uL,{...s,children:d.jsx(hFn,{scope:e,open:n,onOpenChange:f,content:l,onContentChange:c,children:d.jsx(mFn,{scope:e,onClose:w.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:h,modal:o,children:r})})})};wtt.displayName=FT;var pFn="MenuAnchor",mle=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=t8(n);return d.jsx(MD,{...i,...r,ref:e})});mle.displayName=pFn;var ple="MenuPortal",[AFn,ktt]=f1(ple,{forceMount:void 0}),Stt=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:i}=t,a=h1(ple,e);return d.jsx(AFn,{scope:e,forceMount:n,children:d.jsx(cl,{present:n||a.open,children:d.jsx(NC,{asChild:!0,container:i,children:r})})})};Stt.displayName=ple;var Rf="MenuContent",[gFn,Ale]=f1(Rf),Ctt=w.forwardRef((t,e)=>{const n=ktt(Rf,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,a=h1(Rf,t.__scopeMenu),o=DT(Rf,t.__scopeMenu);return d.jsx(dF.Provider,{scope:t.__scopeMenu,children:d.jsx(cl,{present:r||a.open,children:d.jsx(dF.Slot,{scope:t.__scopeMenu,children:o.modal?d.jsx(vFn,{...i,ref:e}):d.jsx(yFn,{...i,ref:e})})})})}),vFn=w.forwardRef((t,e)=>{const n=h1(Rf,t.__scopeMenu),r=w.useRef(null),i=$r(e,r);return w.useEffect(()=>{const a=r.current;if(a)return o3(a)},[]),d.jsx(gle,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ln(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),yFn=w.forwardRef((t,e)=>{const n=h1(Rf,t.__scopeMenu);return d.jsx(gle,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bFn=ky("MenuContent.ScrollLock"),gle=w.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:A,...p}=t,v=h1(Rf,n),y=DT(Rf,n),x=t8(n),k=xtt(n),S=dFn(n),[C,N]=w.useState(null),E=w.useRef(null),D=$r(e,E,v.onContentChange),T=w.useRef(0),I=w.useRef(""),O=w.useRef(0),B=w.useRef(null),M=w.useRef("right"),$=w.useRef(0),U=A?cC:w.Fragment,P=A?{as:bFn,allowPinchZoom:!0}:void 0,Q=X=>{const he=I.current+X,ne=S().filter(te=>!te.disabled),H=document.activeElement,W=ne.find(te=>te.ref.current===H)?.textValue,q=ne.map(te=>te.textValue),Z=OFn(q,he,W),re=ne.find(te=>te.textValue===Z)?.ref.current;(function te(ue){I.current=ue,window.clearTimeout(T.current),ue!==""&&(T.current=window.setTimeout(()=>te(""),1e3))})(he),re&&setTimeout(()=>re.focus())};w.useEffect(()=>()=>window.clearTimeout(T.current),[]),Z3();const G=w.useCallback(X=>M.current===B.current?.side&&jFn(X,B.current?.area),[]);return d.jsx(gFn,{scope:n,searchRef:I,onItemEnter:w.useCallback(X=>{G(X)&&X.preventDefault()},[G]),onItemLeave:w.useCallback(X=>{G(X)||(E.current?.focus(),N(null))},[G]),onTriggerLeave:w.useCallback(X=>{G(X)&&X.preventDefault()},[G]),pointerGraceTimerRef:O,onPointerGraceIntentChange:w.useCallback(X=>{B.current=X},[]),children:d.jsx(U,{...P,children:d.jsx(BD,{asChild:!0,trapped:i,onMountAutoFocus:ln(a,X=>{X.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:d.jsx(_C,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:d.jsx(qYe,{asChild:!0,...k,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:ln(l,X=>{y.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(dL,{role:"menu","aria-orientation":"vertical","data-state":Utt(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...p,ref:D,style:{outline:"none",...p.style},onKeyDown:ln(p.onKeyDown,X=>{const ne=X.target.closest("[data-radix-menu-content]")===X.currentTarget,H=X.ctrlKey||X.altKey||X.metaKey,W=X.key.length===1;ne&&(X.key==="Tab"&&X.preventDefault(),!H&&W&&Q(X.key));const q=E.current;if(X.target!==q||!lFn.includes(X.key))return;X.preventDefault();const re=S().filter(te=>!te.disabled).map(te=>te.ref.current);ytt.includes(X.key)&&re.reverse(),DFn(re)}),onBlur:ln(t.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(T.current),I.current="")}),onPointerMove:ln(t.onPointerMove,fF(X=>{const he=X.target,ne=$.current!==X.clientX;if(X.currentTarget.contains(he)&&ne){const H=X.clientX>$.current?"right":"left";M.current=H,$.current=X.clientX}}))})})})})})})});Ctt.displayName=Rf;var xFn="MenuGroup",vle=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return d.jsx(wn.div,{role:"group",...r,ref:e})});vle.displayName=xFn;var wFn="MenuLabel",_tt=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return d.jsx(wn.div,{...r,ref:e})});_tt.displayName=wFn;var qR="MenuItem",M2e="menu.itemSelect",n8=w.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...i}=t,a=w.useRef(null),o=DT(qR,t.__scopeMenu),s=Ale(qR,t.__scopeMenu),l=$r(e,a),c=w.useRef(!1),u=()=>{const f=a.current;if(!n&&f){const h=new CustomEvent(M2e,{bubbles:!0,cancelable:!0});f.addEventListener(M2e,m=>r?.(m),{once:!0}),d6e(f,h),h.defaultPrevented?c.current=!1:o.onClose()}};return d.jsx(Ntt,{...i,ref:l,disabled:n,onClick:ln(t.onClick,u),onPointerDown:f=>{t.onPointerDown?.(f),c.current=!0},onPointerUp:ln(t.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:ln(t.onKeyDown,f=>{const h=s.searchRef.current!=="";n||h&&f.key===" "||NJ.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});n8.displayName=qR;var Ntt=w.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=t,o=Ale(qR,n),s=xtt(n),l=w.useRef(null),c=$r(e,l),[u,f]=w.useState(!1),[h,m]=w.useState("");return w.useEffect(()=>{const A=l.current;A&&m((A.textContent??"").trim())},[a.children]),d.jsx(dF.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:d.jsx(GYe,{asChild:!0,...s,focusable:!r,children:d.jsx(wn.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:ln(t.onPointerMove,fF(A=>{r?o.onItemLeave(A):(o.onItemEnter(A),A.defaultPrevented||A.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ln(t.onPointerLeave,fF(A=>o.onItemLeave(A))),onFocus:ln(t.onFocus,()=>f(!0)),onBlur:ln(t.onBlur,()=>f(!1))})})})}),kFn="MenuCheckboxItem",Ett=w.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...i}=t;return d.jsx(Btt,{scope:t.__scopeMenu,checked:n,children:d.jsx(n8,{role:"menuitemcheckbox","aria-checked":GR(n)?"mixed":n,...i,ref:e,"data-state":ble(n),onSelect:ln(i.onSelect,()=>r?.(GR(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ett.displayName=kFn;var Ftt="MenuRadioGroup",[SFn,CFn]=f1(Ftt,{value:void 0,onValueChange:()=>{}}),Dtt=w.forwardRef((t,e)=>{const{value:n,onValueChange:r,...i}=t,a=wl(r);return d.jsx(SFn,{scope:t.__scopeMenu,value:n,onValueChange:a,children:d.jsx(vle,{...i,ref:e})})});Dtt.displayName=Ftt;var Ttt="MenuRadioItem",Ott=w.forwardRef((t,e)=>{const{value:n,...r}=t,i=CFn(Ttt,t.__scopeMenu),a=n===i.value;return d.jsx(Btt,{scope:t.__scopeMenu,checked:a,children:d.jsx(n8,{role:"menuitemradio","aria-checked":a,...r,ref:e,"data-state":ble(a),onSelect:ln(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ott.displayName=Ttt;var yle="MenuItemIndicator",[Btt,_Fn]=f1(yle,{checked:!1}),jtt=w.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...i}=t,a=_Fn(yle,n);return d.jsx(cl,{present:r||GR(a.checked)||a.checked===!0,children:d.jsx(wn.span,{...i,ref:e,"data-state":ble(a.checked)})})});jtt.displayName=yle;var NFn="MenuSeparator",Itt=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return d.jsx(wn.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});Itt.displayName=NFn;var EFn="MenuArrow",Ptt=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=t8(n);return d.jsx(fL,{...i,...r,ref:e})});Ptt.displayName=EFn;var FFn="MenuSub",[uYn,Mtt]=f1(FFn),d2="MenuSubTrigger",Rtt=w.forwardRef((t,e)=>{const n=h1(d2,t.__scopeMenu),r=DT(d2,t.__scopeMenu),i=Mtt(d2,t.__scopeMenu),a=Ale(d2,t.__scopeMenu),o=w.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:t.__scopeMenu},u=w.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return w.useEffect(()=>u,[u]),w.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),d.jsx(mle,{asChild:!0,...c,children:d.jsx(Ntt,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Utt(n.open),...t,ref:gg(e,i.onTriggerChange),onClick:f=>{t.onClick?.(f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ln(t.onPointerMove,fF(f=>{a.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:ln(t.onPointerLeave,fF(f=>{u();const h=n.content?.getBoundingClientRect();if(h){const m=n.content?.dataset.side,A=m==="right",p=A?-5:5,v=h[A?"left":"right"],y=h[A?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+p,y:f.clientY},{x:v,y:h.top},{x:y,y:h.top},{x:y,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ln(t.onKeyDown,f=>{const h=a.searchRef.current!=="";t.disabled||h&&f.key===" "||cFn[r.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});Rtt.displayName=d2;var $tt="MenuSubContent",Ltt=w.forwardRef((t,e)=>{const n=ktt(Rf,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,a=h1(Rf,t.__scopeMenu),o=DT(Rf,t.__scopeMenu),s=Mtt($tt,t.__scopeMenu),l=w.useRef(null),c=$r(e,l);return d.jsx(dF.Provider,{scope:t.__scopeMenu,children:d.jsx(cl,{present:r||a.open,children:d.jsx(dF.Slot,{scope:t.__scopeMenu,children:d.jsx(gle,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:c,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{o.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ln(t.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ln(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ln(t.onKeyDown,u=>{const f=u.currentTarget.contains(u.target),h=uFn[o.dir].includes(u.key);f&&h&&(a.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});Ltt.displayName=$tt;function Utt(t){return t?"open":"closed"}function GR(t){return t==="indeterminate"}function ble(t){return GR(t)?"indeterminate":t?"checked":"unchecked"}function DFn(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function TFn(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function OFn(t,e,n){const i=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,a=n?t.indexOf(n):-1;let o=TFn(t,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function BFn(t,e){const{x:n,y:r}=t;let i=!1;for(let a=0,o=e.length-1;a<e.length;o=a++){const s=e[a],l=e[o],c=s.x,u=s.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function jFn(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return BFn(n,e)}function fF(t){return e=>e.pointerType==="mouse"?t(e):void 0}var IFn=wtt,PFn=mle,MFn=Stt,RFn=Ctt,$Fn=vle,LFn=_tt,UFn=n8,zFn=Ett,HFn=Dtt,VFn=Ott,QFn=jtt,qFn=Itt,GFn=Ptt,WFn=Rtt,KFn=Ltt,r8="DropdownMenu",[YFn]=Cc(r8,[btt]),tu=btt(),[XFn,ztt]=YFn(r8),Htt=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,l=tu(e),c=w.useRef(null),[u,f]=Pd({prop:i,defaultProp:a??!1,onChange:o,caller:r8});return d.jsx(XFn,{scope:e,triggerId:Rs(),triggerRef:c,contentId:Rs(),open:u,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(h=>!h),[f]),modal:s,children:d.jsx(IFn,{...l,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};Htt.displayName=r8;var Vtt="DropdownMenuTrigger",Qtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=t,a=ztt(Vtt,n),o=tu(n);return d.jsx(PFn,{asChild:!0,...o,children:d.jsx(wn.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:gg(e,a.triggerRef),onPointerDown:ln(t.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:ln(t.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Qtt.displayName=Vtt;var ZFn="DropdownMenuPortal",qtt=t=>{const{__scopeDropdownMenu:e,...n}=t,r=tu(e);return d.jsx(MFn,{...r,...n})};qtt.displayName=ZFn;var Gtt="DropdownMenuContent",Wtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=ztt(Gtt,n),a=tu(n),o=w.useRef(!1);return d.jsx(RFn,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:e,onCloseAutoFocus:ln(t.onCloseAutoFocus,s=>{o.current||i.triggerRef.current?.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:ln(t.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wtt.displayName=Gtt;var JFn="DropdownMenuGroup",Ktt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx($Fn,{...i,...r,ref:e})});Ktt.displayName=JFn;var eDn="DropdownMenuLabel",Ytt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(LFn,{...i,...r,ref:e})});Ytt.displayName=eDn;var tDn="DropdownMenuItem",Xtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(UFn,{...i,...r,ref:e})});Xtt.displayName=tDn;var nDn="DropdownMenuCheckboxItem",Ztt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(zFn,{...i,...r,ref:e})});Ztt.displayName=nDn;var rDn="DropdownMenuRadioGroup",iDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(HFn,{...i,...r,ref:e})});iDn.displayName=rDn;var aDn="DropdownMenuRadioItem",oDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(VFn,{...i,...r,ref:e})});oDn.displayName=aDn;var sDn="DropdownMenuItemIndicator",Jtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(QFn,{...i,...r,ref:e})});Jtt.displayName=sDn;var lDn="DropdownMenuSeparator",ent=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(qFn,{...i,...r,ref:e})});ent.displayName=lDn;var cDn="DropdownMenuArrow",uDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(GFn,{...i,...r,ref:e})});uDn.displayName=cDn;var dDn="DropdownMenuSubTrigger",fDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(WFn,{...i,...r,ref:e})});fDn.displayName=dDn;var hDn="DropdownMenuSubContent",mDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(KFn,{...i,...r,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mDn.displayName=hDn;var pDn=Htt,ADn=Qtt,gDn=qtt,vDn=Wtt,yDn=Ktt,bDn=Ytt,xDn=Xtt,wDn=Ztt,kDn=Jtt,SDn=ent;function TT({...t}){return d.jsx(pDn,{"data-slot":"dropdown-menu",...t})}function OT({...t}){return d.jsx(ADn,{"data-slot":"dropdown-menu-trigger",...t})}function BT({className:t,sideOffset:e=4,...n}){return d.jsx(gDn,{children:d.jsx(vDn,{"data-slot":"dropdown-menu-content",sideOffset:e,className:Ct("bg-white text-gray-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1001 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-gray-200 p-1 shadow-md dark:bg-gray-950 dark:text-gray-50 dark:border-gray-800",t),...n})})}function CDn({...t}){return d.jsx(yDn,{"data-slot":"dropdown-menu-group",...t})}function lg({className:t,inset:e,variant:n="default",...r}){return d.jsx(xDn,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":n,className:Ct("focus:bg-gray-100 focus:text-gray-900 data-[variant=destructive]:text-red-500 data-[variant=destructive]:focus:bg-red-500/10 dark:data-[variant=destructive]:focus:bg-red-500/20 data-[variant=destructive]:focus:text-red-500 data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-gray-500 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-gray-800 dark:focus:text-gray-50 dark:data-[variant=destructive]:text-red-900 dark:data-[variant=destructive]:focus:bg-red-900/10 dark:dark:data-[variant=destructive]:focus:bg-red-900/20 dark:data-[variant=destructive]:focus:text-red-900 dark:[&_svg:not([class*='text-'])]:text-gray-400",t),...r})}function _Dn({className:t,children:e,checked:n,...r}){return d.jsxs(wDn,{"data-slot":"dropdown-menu-checkbox-item",className:Ct("focus:bg-gray-100 focus:text-gray-900 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-gray-800 dark:focus:text-gray-50",t),checked:n,...r,children:[d.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:d.jsx(kDn,{children:d.jsx(Ls,{className:"size-4"})})}),e]})}function xle({className:t,inset:e,...n}){return d.jsx(bDn,{"data-slot":"dropdown-menu-label","data-inset":e,className:Ct("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...n})}function wle({className:t,...e}){return d.jsx(SDn,{"data-slot":"dropdown-menu-separator",className:Ct("bg-gray-200 -mx-1 my-1 h-px dark:bg-gray-800",t),...e})}function R2e({className:t,...e}){return d.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:Ct("text-gray-500 ml-auto text-xs tracking-widest dark:text-gray-400",t),...e})}function tnt({links:t,isCollapsed:e,closeNav:n}){const r=({sub:i,...a})=>{const o=`${a.title}-${a.href}`;return e&&i?w.createElement(FDn,{...a,sub:i,key:o,closeNav:n}):e?w.createElement(EDn,{...a,key:o,closeNav:n}):i?w.createElement(NDn,{...a,sub:i,key:o,closeNav:n}):w.createElement(nnt,{...a,key:o,closeNav:n})};return d.jsx(jYe,{className:"h-screen pb-40",children:d.jsx(pL,{delayDuration:0,children:d.jsx("nav",{className:"grid grid-cols-1 items-start gap-2",children:t.map(r)})})})}function nnt({title:t,icon:e,label:n,href:r,action:i,closeNav:a,subLink:o=!1}){return i?d.jsxs("button",{onClick:()=>{i(),a()},className:Ct(vg({variant:"ghost",size:"sm"}),"h-12 font-semibold tracking-tight justify-start text-wrap rounded-none px-6 w-full",o&&"h-10 w-full border-l border-l-slate-500 px-2"),children:[d.jsx("div",{className:"mr-2",children:e}),t,n&&d.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:n})]}):d.jsxs(oC,{to:r,onClick:a,className:Ct(vg({variant:"ghost",size:"sm"}),"h-12 font-semibold tracking-tight justify-start text-wrap rounded-none px-6",o&&"h-10 w-full border-l border-l-slate-500 px-2"),"aria-current":"page",children:[d.jsx("div",{className:"mr-2",children:e}),t,n&&d.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:n})]})}function NDn({title:t,icon:e,label:n,sub:r,closeNav:i}){const a=!!r?.find(o=>o.href===window.location.pathname);return d.jsxs(iFn,{defaultOpen:a,children:[d.jsxs(aFn,{className:Ct(vg({variant:"ghost",size:"sm"}),"group h-12 w-full justify-start rounded-none px-6"),children:[d.jsx("div",{className:"mr-2",children:e}),d.jsx("div",{className:"font-semibold tracking-tight",children:t}),n&&d.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:n}),d.jsx("span",{className:Ct('ml-auto transition-all group-data-[state="open"]:-rotate-180'),children:d.jsx(ei,{})})]}),d.jsx(oFn,{className:"collapsibleDropdown",asChild:!0,children:d.jsx("ul",{children:r.map(o=>d.jsx("li",{className:"my-1 ml-8",children:d.jsx(nnt,{...o,subLink:!0,closeNav:i})},o.title))})})]})}function EDn({title:t,icon:e,label:n,href:r,action:i}){return d.jsxs(Ig,{delayDuration:0,children:[d.jsx(Pg,{asChild:!0,children:i?d.jsxs(qe,{variant:"ghost",size:"icon",className:"h-12 w-12",onClick:i,children:[e,d.jsx("span",{className:"sr-only",children:t})]}):d.jsxs(oC,{to:r,className:Ct(vg({variant:"ghost",size:"icon"}),"h-12 w-12"),children:[e,d.jsx("span",{className:"sr-only",children:t})]})}),d.jsxs(Mg,{side:"right",className:"flex font-semibold tracking-tight items-center gap-4",children:[t,n&&d.jsx("span",{className:"ml-auto text-muted-foreground",children:n})]})]})}function FDn({title:t,icon:e,label:n,sub:r}){const i=!!r?.find(a=>a.href===window.location.pathname);return d.jsxs(TT,{children:[d.jsxs(Ig,{delayDuration:0,children:[d.jsx(Pg,{asChild:!0,children:d.jsx(OT,{asChild:!0,children:d.jsx(qe,{variant:i?"secondary":"ghost",size:"icon",className:"h-12 w-12",children:e})})}),d.jsxs(Mg,{side:"right",className:"flex font-semibold tracking-tight items-center gap-4",children:[t," ",n&&d.jsx("span",{className:"ml-auto text-muted-foreground",children:n}),d.jsx(ei,{size:18,className:"-rotate-90 text-muted-foreground"})]})]}),d.jsxs(BT,{side:"right",align:"start",sideOffset:4,children:[d.jsxs(xle,{children:[t," ",n?`(${n})`:""]}),d.jsx(wle,{}),r.map(({title:a,icon:o,label:s,href:l,action:c})=>d.jsx(lg,{asChild:!c,children:c?d.jsxs("button",{onClick:c,className:Ct(vg({variant:"ghost",size:"sm"}),"flex h-12 cursor-pointer justify-start text-wrap rounded-none px-6 w-full"),children:[o," ",d.jsx("span",{className:"ml-2 max-w-52 text-wrap font-semibold tracking-tight",children:a}),s&&d.jsx("span",{className:"ml-auto text-xs",children:s})]}):d.jsxs(oC,{to:l,className:Ct(vg({variant:"ghost",size:"sm"}),"flex h-12 cursor-pointer justify-start text-wrap rounded-none px-6"),children:[o," ",d.jsx("span",{className:"ml-2 max-w-52 text-wrap font-semibold tracking-tight",children:a}),s&&d.jsx("span",{className:"ml-auto text-xs",children:s})]})},`${a}-${l||a}`))]})]})}const WR=[{title:"Charges",label:"",href:"",icon:d.jsx(Ek,{size:18}),sub:[{title:"All Charges",label:"",href:"/charges",icon:d.jsx(Ek,{size:18})},{title:"Missing Info Charges",label:"",href:"/missing-info-charges",icon:d.jsx(qjt,{size:18})},{title:"Ledger Validation",label:"",href:"/charges-ledger-validation",icon:d.jsx(Q5t,{size:18})}]},{title:"Reports",label:"",href:"",icon:d.jsx(Hjt,{size:18}),sub:[{title:"VAT Monthly Report",label:"",href:"/reports/vat-monthly",icon:d.jsx(Ek,{size:18})},{title:"Trial Balance Report",label:"",href:"/reports/trial-balance",icon:d.jsx(zLe,{size:18})},{title:"Conto Report",label:"",href:"/reports/conto",icon:d.jsx(Ujt,{size:18})},{title:"Profit and Loss Report",label:"",href:"/reports/profit-and-loss",icon:d.jsx(qY,{size:18})},{title:"Tax Report",label:"",href:"/reports/tax",icon:d.jsx(Cve,{size:18})},{title:"Corporate Tax Ruling Compliance Report",label:"",href:"/reports/corporate-tax-ruling-compliance",icon:d.jsx(Cve,{size:18})},{title:"Depreciation Report",label:"",href:"/reports/depreciation",icon:d.jsx(iBt,{size:18})},{title:"Shaam 6111 Report",label:"",href:"/reports/shaam6111",icon:d.jsx(qY,{size:18})},{title:"Accountant Approvals",label:"",href:"/accountant-approvals",icon:d.jsx(Z5t,{size:18})},{title:"Yearly Ledger Report",label:"",href:"/reports/yearly-ledger",icon:d.jsx(Yjt,{size:18})},{title:"Transactions Balance",label:"",href:"/reports/balance",icon:d.jsx(oBt,{size:18})},{title:"Validate Reports",label:"",href:"/reports/validate-reports",icon:d.jsx(lBt,{size:18})},{title:"Generate Uniform Files",label:"",icon:d.jsx(jne,{size:18})}]},{title:"Financial Entities",label:"",href:"",icon:d.jsx($Le,{size:18}),sub:[{title:"Businesses",label:"",href:"/businesses",icon:d.jsx(HBt,{size:18})},{title:"Business Transactions",label:"",href:"/business-transactions",icon:d.jsx(M5t,{size:18})},{title:"Tax Categories",label:"",href:"/tax-categories",icon:d.jsx(B5t,{size:18})},{title:"Sort Codes",label:"",href:"/sort-codes",icon:d.jsx(G5t,{size:18})}]},{title:"Documents",label:"",href:"",icon:d.jsx(kve,{size:18}),sub:[{href:"/documents",title:"All Documents",label:"",icon:d.jsx(kve,{size:18})},{title:"Issue Documents",label:"",href:"/documents/issue-documents",icon:d.jsx(bve,{size:18})},{title:"Issue Document",label:"",href:"/documents/issue-document",icon:d.jsx(bve,{size:18})}]},{href:"/business-trips",title:"Business Trips",label:"",icon:d.jsx(jjt,{size:18})},{title:"Charts",label:"",href:"",icon:d.jsx(Uz,{size:18}),sub:[{title:"Main",label:"",href:"/charts/",icon:d.jsx(Uz,{size:18})},{title:"Monthly Income/Expense",label:"",href:"/charts/monthly-income-expense",icon:d.jsx(Uz,{size:18})}]},{href:"/salaries",title:"Salaries",label:"",icon:d.jsx(z5t,{size:18})},{href:"/tags",title:"Tags",label:"",icon:d.jsx(lIt,{size:18})}];function DDn(){const[t,e]=w.useState(!1),[n,r]=w.useState(!1),i=WR.map(a=>a.sub?{...a,sub:a.sub.map(o=>o.title==="Generate Uniform Files"?{...o,action:()=>{e(!1),r(!0)}}:o)}:a);return d.jsxs(d.Fragment,{children:[d.jsxs(WEn,{open:t,onOpenChange:e,children:[d.jsx(KEn,{asChild:!0,children:d.jsx(Sjt,{})}),d.jsx(ZEn,{side:"left",className:"px-0!",children:d.jsx("div",{className:"space-y-4 py-4",children:d.jsxs("div",{className:"px-3 py-2",children:[d.jsx("h2",{className:"mb-2 px-4 text-lg font-semibold tracking-tight",children:"Overview"}),d.jsx("div",{className:"space-y-1",children:d.jsx(tnt,{isCollapsed:!1,links:i,closeNav:()=>e(!1)})})]})})})]}),d.jsx(mtt,{open:n,onOpenChange:r})]})}const XQ="mergeChargesByTransactionReference",TDn=()=>{const[{fetching:t},e]=zn(NDt),[{fetching:n},r]=zn(EDt),[{fetching:i},a]=zn(FDt),o=w.useCallback(async()=>{let s="Error flagging foreign fee transactions";const l=`${XQ}-fees`,c=`${XQ}-merge`,u=`${XQ}-debit-date`;Ve.loading("Flagging Fees",{id:l});try{const f=await e({}),h=Hn(f,s,l);if(!h)return;if(!h.flagForeignFeeTransactions.success){console.error(`${s} ${h.flagForeignFeeTransactions.errors?`:
987
+ `)+" "+Z[1]:Z[0]+q+" "+W.join(", ")+" "+Z[1]}t.types=MEn();function y(W){return Array.isArray(W)}t.isArray=y;function x(W){return typeof W=="boolean"}t.isBoolean=x;function k(W){return W===null}t.isNull=k;function S(W){return W==null}t.isNullOrUndefined=S;function C(W){return typeof W=="number"}t.isNumber=C;function N(W){return typeof W=="string"}t.isString=N;function E(W){return typeof W=="symbol"}t.isSymbol=E;function D(W){return W===void 0}t.isUndefined=D;function T(W){return I(W)&&U(W)==="[object RegExp]"}t.isRegExp=T,t.types.isRegExp=T;function I(W){return typeof W=="object"&&W!==null}t.isObject=I;function O(W){return I(W)&&U(W)==="[object Date]"}t.isDate=O,t.types.isDate=O;function B(W){return I(W)&&(U(W)==="[object Error]"||W instanceof Error)}t.isError=B,t.types.isNativeError=B;function M(W){return typeof W=="function"}t.isFunction=M;function $(W){return W===null||typeof W=="boolean"||typeof W=="number"||typeof W=="string"||typeof W=="symbol"||typeof W>"u"}t.isPrimitive=$,t.isBuffer=REn();function U(W){return Object.prototype.toString.call(W)}function P(W){return W<10?"0"+W.toString(10):W.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function G(){var W=new Date,q=[P(W.getHours()),P(W.getMinutes()),P(W.getSeconds())].join(":");return[W.getDate(),Q[W.getMonth()],q].join(" ")}t.log=function(){console.log("%s - %s",G(),t.format.apply(t,arguments))},t.inherits=d1(),t._extend=function(W,q){if(!q||!I(q))return W;for(var Z=Object.keys(q),re=Z.length;re--;)W[Z[re]]=q[Z[re]];return W};function X(W,q){return Object.prototype.hasOwnProperty.call(W,q)}var he=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(he&&q[he]){var Z=q[he];if(typeof Z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Z,he,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Z}function Z(){for(var re,te,ue=new Promise(function(oe,J){re=oe,te=J}),fe=[],ge=0;ge<arguments.length;ge++)fe.push(arguments[ge]);fe.push(function(oe,J){oe?te(oe):re(J)});try{q.apply(this,fe)}catch(oe){te(oe)}return ue}return Object.setPrototypeOf(Z,Object.getPrototypeOf(q)),he&&Object.defineProperty(Z,he,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Z,n(q))},t.promisify.custom=he;function ne(W,q){if(!W){var Z=new Error("Promise was rejected with a falsy value");Z.reason=W,W=Z}return q(W)}function H(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');function q(){for(var Z=[],re=0;re<arguments.length;re++)Z.push(arguments[re]);var te=Z.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var ue=this,fe=function(){return te.apply(ue,arguments)};W.apply(this,Z).then(function(ge){Kn.nextTick(fe.bind(null,null,ge))},function(ge){Kn.nextTick(ne.bind(null,ge,fe))})}return Object.setPrototypeOf(q,Object.getPrototypeOf(W)),Object.defineProperties(q,n(W)),q}t.callbackify=H})(TQ)),TQ}var PQ,b2e;function $En(){if(b2e)return PQ;b2e=1;function t(A,p){var v=Object.keys(A);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(A);p&&(y=y.filter(function(x){return Object.getOwnPropertyDescriptor(A,x).enumerable})),v.push.apply(v,y)}return v}function e(A){for(var p=1;p<arguments.length;p++){var v=arguments[p]!=null?arguments[p]:{};p%2?t(Object(v),!0).forEach(function(y){n(A,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(v)):t(Object(v)).forEach(function(y){Object.defineProperty(A,y,Object.getOwnPropertyDescriptor(v,y))})}return A}function n(A,p,v){return p=o(p),p in A?Object.defineProperty(A,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):A[p]=v,A}function r(A,p){if(!(A instanceof p))throw new TypeError("Cannot call a class as a function")}function i(A,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(A,o(y.key),y)}}function a(A,p,v){return p&&i(A.prototype,p),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A){var p=s(A,"string");return typeof p=="symbol"?p:String(p)}function s(A,p){if(typeof A!="object"||A===null)return A;var v=A[Symbol.toPrimitive];if(v!==void 0){var y=v.call(A,p);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}var l=ET(),c=l.Buffer,u=ltt(),f=u.inspect,h=f&&f.custom||"inspect";function m(A,p,v){c.prototype.copy.call(A,p,v)}return PQ=(function(){function A(){r(this,A),this.head=null,this.tail=null,this.length=0}return a(A,[{key:"push",value:function(v){var y={data:v,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(v){var y={data:v,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var y=this.head,x=""+y.data;y=y.next;)x+=v+y.data;return x}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(v>>>0),x=this.head,k=0;x;)m(x.data,y,k),k+=x.data.length,x=x.next;return y}},{key:"consume",value:function(v,y){var x;return v<this.head.data.length?(x=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?x=this.shift():x=y?this._getString(v):this._getBuffer(v),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var y=this.head,x=1,k=y.data;for(v-=k.length;y=y.next;){var S=y.data,C=v>S.length?S.length:v;if(C===S.length?k+=S:k+=S.slice(0,v),v-=C,v===0){C===S.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=S.slice(C));break}++x}return this.length-=x,k}},{key:"_getBuffer",value:function(v){var y=c.allocUnsafe(v),x=this.head,k=1;for(x.data.copy(y),v-=x.data.length;x=x.next;){var S=x.data,C=v>S.length?S.length:v;if(S.copy(y,y.length-v,0,C),v-=C,v===0){C===S.length?(++k,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=S.slice(C));break}++k}return this.length-=k,y}},{key:h,value:function(v,y){return f(this,e(e({},y),{},{depth:0,customInspect:!1}))}}]),A})(),PQ}var MQ,x2e;function ctt(){if(x2e)return MQ;x2e=1;function t(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Kn.nextTick(i,this,o)):Kn.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!s&&f?l._writableState?l._writableState.errorEmitted?Kn.nextTick(n,l):(l._writableState.errorEmitted=!0,Kn.nextTick(e,l,f)):Kn.nextTick(e,l,f):s?(Kn.nextTick(n,l),s(f)):Kn.nextTick(n,l)}),this)}function e(o,s){i(o,s),n(o)}function n(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(o,s){o.emit("error",s)}function a(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return MQ={destroy:t,undestroy:r,errorOrDestroy:a},MQ}var RQ={},w2e;function UC(){if(w2e)return RQ;w2e=1;function t(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var e={};function n(s,l,c){c||(c=Error);function u(h,m,A){return typeof l=="string"?l:l(h,m,A)}var f=(function(h){t(m,h);function m(A,p,v){return h.call(this,u(A,p,v))||this}return m})(c);f.prototype.name=c.name,f.prototype.code=s,e[s]=f}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function i(s,l,c){return s.substr(0,l.length)===l}function a(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return n("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&i(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var h=o(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(r(l,"type"))}return f+=". Received type ".concat(typeof c),f},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),RQ.codes=e,RQ}var $Q,k2e;function utt(){if(k2e)return $Q;k2e=1;var t=UC().codes.ERR_INVALID_OPT_VALUE;function e(r,i,a){return r.highWaterMark!=null?r.highWaterMark:i?r[a]:null}function n(r,i,a,o){var s=e(i,o,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?a:"highWaterMark";throw new t(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return $Q={getHighWaterMark:n},$Q}var LQ,S2e;function LEn(){if(S2e)return LQ;S2e=1,LQ=t;function t(n,r){if(e("noDeprecation"))return n;var i=!1;function a(){if(!i){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return n.apply(this,arguments)}return a}function e(n){try{if(!Iu.localStorage)return!1}catch{return!1}var r=Iu.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return LQ}var UQ,C2e;function dtt(){if(C2e)return UQ;C2e=1,UQ=D;function t(re){var te=this;this.next=null,this.entry=null,this.finish=function(){Z(te,re)}}var e;D.WritableState=N;var n={deprecate:LEn()},r=stt(),i=ET().Buffer,a=(typeof Iu<"u"?Iu:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(re){return i.from(re)}function s(re){return i.isBuffer(re)||re instanceof a}var l=ctt(),c=utt(),u=c.getHighWaterMark,f=UC().codes,h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,A=f.ERR_MULTIPLE_CALLBACK,p=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,x=f.ERR_STREAM_WRITE_AFTER_END,k=f.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;d1()(D,r);function C(){}function N(re,te,ue){e=e||PS(),re=re||{},typeof ue!="boolean"&&(ue=te instanceof e),this.objectMode=!!re.objectMode,ue&&(this.objectMode=this.objectMode||!!re.writableObjectMode),this.highWaterMark=u(this,re,"writableHighWaterMark",ue),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var fe=re.decodeStrings===!1;this.decodeStrings=!fe,this.defaultEncoding=re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ge){P(te,ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=re.emitClose!==!1,this.autoDestroy=!!re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}N.prototype.getBuffer=function(){for(var te=this.bufferedRequest,ue=[];te;)ue.push(te),te=te.next;return ue},(function(){try{Object.defineProperty(N.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(te){return E.call(this,te)?!0:this!==D?!1:te&&te._writableState instanceof N}})):E=function(te){return te instanceof this};function D(re){e=e||PS();var te=this instanceof e;if(!te&&!E.call(D,this))return new D(re);this._writableState=new N(re,this,te),this.writable=!0,re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final)),r.call(this)}D.prototype.pipe=function(){S(this,new p)};function T(re,te){var ue=new x;S(re,ue),Kn.nextTick(te,ue)}function I(re,te,ue,fe){var ge;return ue===null?ge=new y:typeof ue!="string"&&!te.objectMode&&(ge=new h("chunk",["string","Buffer"],ue)),ge?(S(re,ge),Kn.nextTick(fe,ge),!1):!0}D.prototype.write=function(re,te,ue){var fe=this._writableState,ge=!1,oe=!fe.objectMode&&s(re);return oe&&!i.isBuffer(re)&&(re=o(re)),typeof te=="function"&&(ue=te,te=null),oe?te="buffer":te||(te=fe.defaultEncoding),typeof ue!="function"&&(ue=C),fe.ending?T(this,ue):(oe||I(this,fe,re,ue))&&(fe.pendingcb++,ge=B(this,fe,oe,re,te,ue)),ge},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var re=this._writableState;re.corked&&(re.corked--,!re.writing&&!re.corked&&!re.bufferProcessing&&re.bufferedRequest&&X(this,re))},D.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new k(te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(re,te,ue){return!re.objectMode&&re.decodeStrings!==!1&&typeof te=="string"&&(te=i.from(te,ue)),te}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(re,te,ue,fe,ge,oe){if(!ue){var J=O(te,fe,ge);fe!==J&&(ue=!0,ge="buffer",fe=J)}var Se=te.objectMode?1:fe.length;te.length+=Se;var ye=te.length<te.highWaterMark;if(ye||(te.needDrain=!0),te.writing||te.corked){var xe=te.lastBufferedRequest;te.lastBufferedRequest={chunk:fe,encoding:ge,isBuf:ue,callback:oe,next:null},xe?xe.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else M(re,te,!1,Se,fe,ge,oe);return ye}function M(re,te,ue,fe,ge,oe,J){te.writelen=fe,te.writecb=J,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new v("write")):ue?re._writev(ge,te.onwrite):re._write(ge,oe,te.onwrite),te.sync=!1}function $(re,te,ue,fe,ge){--te.pendingcb,ue?(Kn.nextTick(ge,fe),Kn.nextTick(W,re,te),re._writableState.errorEmitted=!0,S(re,fe)):(ge(fe),re._writableState.errorEmitted=!0,S(re,fe),W(re,te))}function U(re){re.writing=!1,re.writecb=null,re.length-=re.writelen,re.writelen=0}function P(re,te){var ue=re._writableState,fe=ue.sync,ge=ue.writecb;if(typeof ge!="function")throw new A;if(U(ue),te)$(re,ue,fe,te,ge);else{var oe=he(ue)||re.destroyed;!oe&&!ue.corked&&!ue.bufferProcessing&&ue.bufferedRequest&&X(re,ue),fe?Kn.nextTick(Q,re,ue,oe,ge):Q(re,ue,oe,ge)}}function Q(re,te,ue,fe){ue||G(re,te),te.pendingcb--,fe(),W(re,te)}function G(re,te){te.length===0&&te.needDrain&&(te.needDrain=!1,re.emit("drain"))}function X(re,te){te.bufferProcessing=!0;var ue=te.bufferedRequest;if(re._writev&&ue&&ue.next){var fe=te.bufferedRequestCount,ge=new Array(fe),oe=te.corkedRequestsFree;oe.entry=ue;for(var J=0,Se=!0;ue;)ge[J]=ue,ue.isBuf||(Se=!1),ue=ue.next,J+=1;ge.allBuffers=Se,M(re,te,!0,te.length,ge,"",oe.finish),te.pendingcb++,te.lastBufferedRequest=null,oe.next?(te.corkedRequestsFree=oe.next,oe.next=null):te.corkedRequestsFree=new t(te),te.bufferedRequestCount=0}else{for(;ue;){var ye=ue.chunk,xe=ue.encoding,pe=ue.callback,K=te.objectMode?1:ye.length;if(M(re,te,!1,K,ye,xe,pe),ue=ue.next,te.bufferedRequestCount--,te.writing)break}ue===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=ue,te.bufferProcessing=!1}D.prototype._write=function(re,te,ue){ue(new m("_write()"))},D.prototype._writev=null,D.prototype.end=function(re,te,ue){var fe=this._writableState;return typeof re=="function"?(ue=re,re=null,te=null):typeof te=="function"&&(ue=te,te=null),re!=null&&this.write(re,te),fe.corked&&(fe.corked=1,this.uncork()),fe.ending||q(this,fe,ue),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function he(re){return re.ending&&re.length===0&&re.bufferedRequest===null&&!re.finished&&!re.writing}function ne(re,te){re._final(function(ue){te.pendingcb--,ue&&S(re,ue),te.prefinished=!0,re.emit("prefinish"),W(re,te)})}function H(re,te){!te.prefinished&&!te.finalCalled&&(typeof re._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,Kn.nextTick(ne,re,te)):(te.prefinished=!0,re.emit("prefinish")))}function W(re,te){var ue=he(te);if(ue&&(H(re,te),te.pendingcb===0&&(te.finished=!0,re.emit("finish"),te.autoDestroy))){var fe=re._readableState;(!fe||fe.autoDestroy&&fe.endEmitted)&&re.destroy()}return ue}function q(re,te,ue){te.ending=!0,W(re,te),ue&&(te.finished?Kn.nextTick(ue):re.once("finish",ue)),te.ended=!0,re.writable=!1}function Z(re,te,ue){var fe=re.entry;for(re.entry=null;fe;){var ge=fe.callback;te.pendingcb--,ge(ue),fe=fe.next}te.corkedRequestsFree.next=re}return Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),D.prototype.destroy=l.destroy,D.prototype._undestroy=l.undestroy,D.prototype._destroy=function(re,te){te(re)},UQ}var zQ,_2e;function PS(){if(_2e)return zQ;_2e=1;var t=Object.keys||function(c){var u=[];for(var f in c)u.push(f);return u};zQ=o;var e=ftt(),n=dtt();d1()(o,e);for(var r=t(n.prototype),i=0;i<r.length;i++){var a=r[i];o.prototype[a]||(o.prototype[a]=n.prototype[a])}function o(c){if(!(this instanceof o))return new o(c);e.call(this,c),n.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||Kn.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),zQ}var HQ,N2e;function lle(){if(N2e)return HQ;N2e=1;var t=UC().codes.ERR_STREAM_PREMATURE_CLOSE;function e(a){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];a.apply(this,l)}}}function n(){}function r(a){return a.setHeader&&typeof a.abort=="function"}function i(a,o,s){if(typeof o=="function")return i(a,null,o);o||(o={}),s=e(s||n);var l=o.readable||o.readable!==!1&&a.readable,c=o.writable||o.writable!==!1&&a.writable,u=function(){a.writable||h()},f=a._writableState&&a._writableState.finished,h=function(){c=!1,f=!0,l||s.call(a)},m=a._readableState&&a._readableState.endEmitted,A=function(){l=!1,m=!0,c||s.call(a)},p=function(k){s.call(a,k)},v=function(){var k;if(l&&!m)return(!a._readableState||!a._readableState.ended)&&(k=new t),s.call(a,k);if(c&&!f)return(!a._writableState||!a._writableState.ended)&&(k=new t),s.call(a,k)},y=function(){a.req.on("finish",h)};return r(a)?(a.on("complete",h),a.on("abort",v),a.req?y():a.on("request",y)):c&&!a._writableState&&(a.on("end",u),a.on("close",u)),a.on("end",A),a.on("finish",h),o.error!==!1&&a.on("error",p),a.on("close",v),function(){a.removeListener("complete",h),a.removeListener("abort",v),a.removeListener("request",y),a.req&&a.req.removeListener("finish",h),a.removeListener("end",u),a.removeListener("close",u),a.removeListener("finish",h),a.removeListener("end",A),a.removeListener("error",p),a.removeListener("close",v)}}return HQ=i,HQ}var VQ,E2e;function UEn(){if(E2e)return VQ;E2e=1;var t;function e(k,S,C){return S=n(S),S in k?Object.defineProperty(k,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[S]=C,k}function n(k){var S=r(k,"string");return typeof S=="symbol"?S:String(S)}function r(k,S){if(typeof k!="object"||k===null)return k;var C=k[Symbol.toPrimitive];if(C!==void 0){var N=C.call(k,S);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(k)}var i=lle(),a=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function h(k,S){return{value:k,done:S}}function m(k){var S=k[a];if(S!==null){var C=k[f].read();C!==null&&(k[c]=null,k[a]=null,k[o]=null,S(h(C,!1)))}}function A(k){Kn.nextTick(m,k)}function p(k,S){return function(C,N){k.then(function(){if(S[l]){C(h(void 0,!0));return}S[u](C,N)},N)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((t={get stream(){return this[f]},next:function(){var S=this,C=this[s];if(C!==null)return Promise.reject(C);if(this[l])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(T,I){Kn.nextTick(function(){S[s]?I(S[s]):T(h(void 0,!0))})});var N=this[c],E;if(N)E=new Promise(p(N,this));else{var D=this[f].read();if(D!==null)return Promise.resolve(h(D,!1));E=new Promise(this[u])}return this[c]=E,E}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var S=this;return new Promise(function(C,N){S[f].destroy(null,function(E){if(E){N(E);return}C(h(void 0,!0))})})}),t),v),x=function(S){var C,N=Object.create(y,(C={},e(C,f,{value:S,writable:!0}),e(C,a,{value:null,writable:!0}),e(C,o,{value:null,writable:!0}),e(C,s,{value:null,writable:!0}),e(C,l,{value:S._readableState.endEmitted,writable:!0}),e(C,u,{value:function(D,T){var I=N[f].read();I?(N[c]=null,N[a]=null,N[o]=null,D(h(I,!1))):(N[a]=D,N[o]=T)},writable:!0}),C));return N[c]=null,i(S,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=N[o];D!==null&&(N[c]=null,N[a]=null,N[o]=null,D(E)),N[s]=E;return}var T=N[a];T!==null&&(N[c]=null,N[a]=null,N[o]=null,T(h(void 0,!0))),N[l]=!0}),S.on("readable",A.bind(null,N)),N};return VQ=x,VQ}var QQ,F2e;function zEn(){return F2e||(F2e=1,QQ=function(){throw new Error("Readable.from is not available in the browser")}),QQ}var qQ,D2e;function ftt(){if(D2e)return qQ;D2e=1,qQ=T;var t;T.ReadableState=D,sle().EventEmitter;var e=function(J,Se){return J.listeners(Se).length},n=stt(),r=ET().Buffer,i=(typeof Iu<"u"?Iu:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(oe){return r.from(oe)}function o(oe){return r.isBuffer(oe)||oe instanceof i}var s=ltt(),l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=$En(),u=ctt(),f=utt(),h=f.getHighWaterMark,m=UC().codes,A=m.ERR_INVALID_ARG_TYPE,p=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,k,S;d1()(T,n);var C=u.errorOrDestroy,N=["error","close","destroy","pause","resume"];function E(oe,J,Se){if(typeof oe.prependListener=="function")return oe.prependListener(J,Se);!oe._events||!oe._events[J]?oe.on(J,Se):Array.isArray(oe._events[J])?oe._events[J].unshift(Se):oe._events[J]=[Se,oe._events[J]]}function D(oe,J,Se){t=t||PS(),oe=oe||{},typeof Se!="boolean"&&(Se=J instanceof t),this.objectMode=!!oe.objectMode,Se&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=h(this,oe,"readableHighWaterMark",Se),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=oe.emitClose!==!1,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(x||(x=_J().StringDecoder),this.decoder=new x(oe.encoding),this.encoding=oe.encoding)}function T(oe){if(t=t||PS(),!(this instanceof T))return new T(oe);var J=this instanceof t;this._readableState=new D(oe,this,J),this.readable=!0,oe&&(typeof oe.read=="function"&&(this._read=oe.read),typeof oe.destroy=="function"&&(this._destroy=oe.destroy)),n.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(oe,J){J(oe)},T.prototype.push=function(oe,J){var Se=this._readableState,ye;return Se.objectMode?ye=!0:typeof oe=="string"&&(J=J||Se.defaultEncoding,J!==Se.encoding&&(oe=r.from(oe,J),J=""),ye=!0),I(this,oe,J,!1,ye)},T.prototype.unshift=function(oe){return I(this,oe,null,!0,!1)};function I(oe,J,Se,ye,xe){l("readableAddChunk",J);var pe=oe._readableState;if(J===null)pe.reading=!1,P(oe,pe);else{var K;if(xe||(K=B(pe,J)),K)C(oe,K);else if(pe.objectMode||J&&J.length>0)if(typeof J!="string"&&!pe.objectMode&&Object.getPrototypeOf(J)!==r.prototype&&(J=a(J)),ye)pe.endEmitted?C(oe,new y):O(oe,pe,J,!0);else if(pe.ended)C(oe,new p);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!Se?(J=pe.decoder.write(J),pe.objectMode||J.length!==0?O(oe,pe,J,!1):X(oe,pe)):O(oe,pe,J,!1)}else ye||(pe.reading=!1,X(oe,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function O(oe,J,Se,ye){J.flowing&&J.length===0&&!J.sync?(J.awaitDrain=0,oe.emit("data",Se)):(J.length+=J.objectMode?1:Se.length,ye?J.buffer.unshift(Se):J.buffer.push(Se),J.needReadable&&Q(oe)),X(oe,J)}function B(oe,J){var Se;return!o(J)&&typeof J!="string"&&J!==void 0&&!oe.objectMode&&(Se=new A("chunk",["string","Buffer","Uint8Array"],J)),Se}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(oe){x||(x=_J().StringDecoder);var J=new x(oe);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,ye="";Se!==null;)ye+=J.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),ye!==""&&this._readableState.buffer.push(ye),this._readableState.length=ye.length,this};var M=1073741824;function $(oe){return oe>=M?oe=M:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}function U(oe,J){return oe<=0||J.length===0&&J.ended?0:J.objectMode?1:oe!==oe?J.flowing&&J.length?J.buffer.head.data.length:J.length:(oe>J.highWaterMark&&(J.highWaterMark=$(oe)),oe<=J.length?oe:J.ended?J.length:(J.needReadable=!0,0))}T.prototype.read=function(oe){l("read",oe),oe=parseInt(oe,10);var J=this._readableState,Se=oe;if(oe!==0&&(J.emittedReadable=!1),oe===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return l("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?ue(this):Q(this),null;if(oe=U(oe,J),oe===0&&J.ended)return J.length===0&&ue(this),null;var ye=J.needReadable;l("need readable",ye),(J.length===0||J.length-oe<J.highWaterMark)&&(ye=!0,l("length less than watermark",ye)),J.ended||J.reading?(ye=!1,l("reading or ended",ye)):ye&&(l("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0),this._read(J.highWaterMark),J.sync=!1,J.reading||(oe=U(Se,J)));var xe;return oe>0?xe=te(oe,J):xe=null,xe===null?(J.needReadable=J.length<=J.highWaterMark,oe=0):(J.length-=oe,J.awaitDrain=0),J.length===0&&(J.ended||(J.needReadable=!0),Se!==oe&&J.ended&&ue(this)),xe!==null&&this.emit("data",xe),xe};function P(oe,J){if(l("onEofChunk"),!J.ended){if(J.decoder){var Se=J.decoder.end();Se&&Se.length&&(J.buffer.push(Se),J.length+=J.objectMode?1:Se.length)}J.ended=!0,J.sync?Q(oe):(J.needReadable=!1,J.emittedReadable||(J.emittedReadable=!0,G(oe)))}}function Q(oe){var J=oe._readableState;l("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(l("emitReadable",J.flowing),J.emittedReadable=!0,Kn.nextTick(G,oe))}function G(oe){var J=oe._readableState;l("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&(J.length||J.ended)&&(oe.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,re(oe)}function X(oe,J){J.readingMore||(J.readingMore=!0,Kn.nextTick(he,oe,J))}function he(oe,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){var Se=J.length;if(l("maybeReadMore read 0"),oe.read(0),Se===J.length)break}J.readingMore=!1}T.prototype._read=function(oe){C(this,new v("_read()"))},T.prototype.pipe=function(oe,J){var Se=this,ye=this._readableState;switch(ye.pipesCount){case 0:ye.pipes=oe;break;case 1:ye.pipes=[ye.pipes,oe];break;default:ye.pipes.push(oe);break}ye.pipesCount+=1,l("pipe count=%d opts=%j",ye.pipesCount,J);var xe=(!J||J.end!==!1)&&oe!==Kn.stdout&&oe!==Kn.stderr,pe=xe?ie:Ke;ye.endEmitted?Kn.nextTick(pe):Se.once("end",pe),oe.on("unpipe",K);function K(rt,ct){l("onunpipe"),rt===Se&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,ve())}function ie(){l("onend"),oe.end()}var le=ne(Se);oe.on("drain",le);var ce=!1;function ve(){l("cleanup"),oe.removeListener("close",je),oe.removeListener("finish",Re),oe.removeListener("drain",le),oe.removeListener("error",$e),oe.removeListener("unpipe",K),Se.removeListener("end",ie),Se.removeListener("end",Ke),Se.removeListener("data",be),ce=!0,ye.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&le()}Se.on("data",be);function be(rt){l("ondata");var ct=oe.write(rt);l("dest.write",ct),ct===!1&&((ye.pipesCount===1&&ye.pipes===oe||ye.pipesCount>1&&ge(ye.pipes,oe)!==-1)&&!ce&&(l("false write response, pause",ye.awaitDrain),ye.awaitDrain++),Se.pause())}function $e(rt){l("onerror",rt),Ke(),oe.removeListener("error",$e),e(oe,"error")===0&&C(oe,rt)}E(oe,"error",$e);function je(){oe.removeListener("finish",Re),Ke()}oe.once("close",je);function Re(){l("onfinish"),oe.removeListener("close",je),Ke()}oe.once("finish",Re);function Ke(){l("unpipe"),Se.unpipe(oe)}return oe.emit("pipe",Se),ye.flowing||(l("pipe resume"),Se.resume()),oe};function ne(oe){return function(){var Se=oe._readableState;l("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&e(oe,"data")&&(Se.flowing=!0,re(oe))}}T.prototype.unpipe=function(oe){var J=this._readableState,Se={hasUnpiped:!1};if(J.pipesCount===0)return this;if(J.pipesCount===1)return oe&&oe!==J.pipes?this:(oe||(oe=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,oe&&oe.emit("unpipe",this,Se),this);if(!oe){var ye=J.pipes,xe=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var pe=0;pe<xe;pe++)ye[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var K=ge(J.pipes,oe);return K===-1?this:(J.pipes.splice(K,1),J.pipesCount-=1,J.pipesCount===1&&(J.pipes=J.pipes[0]),oe.emit("unpipe",this,Se),this)},T.prototype.on=function(oe,J){var Se=n.prototype.on.call(this,oe,J),ye=this._readableState;return oe==="data"?(ye.readableListening=this.listenerCount("readable")>0,ye.flowing!==!1&&this.resume()):oe==="readable"&&!ye.endEmitted&&!ye.readableListening&&(ye.readableListening=ye.needReadable=!0,ye.flowing=!1,ye.emittedReadable=!1,l("on readable",ye.length,ye.reading),ye.length?Q(this):ye.reading||Kn.nextTick(W,this)),Se},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(oe,J){var Se=n.prototype.removeListener.call(this,oe,J);return oe==="readable"&&Kn.nextTick(H,this),Se},T.prototype.removeAllListeners=function(oe){var J=n.prototype.removeAllListeners.apply(this,arguments);return(oe==="readable"||oe===void 0)&&Kn.nextTick(H,this),J};function H(oe){var J=oe._readableState;J.readableListening=oe.listenerCount("readable")>0,J.resumeScheduled&&!J.paused?J.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function W(oe){l("readable nexttick read 0"),oe.read(0)}T.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(l("resume"),oe.flowing=!oe.readableListening,q(this,oe)),oe.paused=!1,this};function q(oe,J){J.resumeScheduled||(J.resumeScheduled=!0,Kn.nextTick(Z,oe,J))}function Z(oe,J){l("resume",J.reading),J.reading||oe.read(0),J.resumeScheduled=!1,oe.emit("resume"),re(oe),J.flowing&&!J.reading&&oe.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function re(oe){var J=oe._readableState;for(l("flow",J.flowing);J.flowing&&oe.read()!==null;);}T.prototype.wrap=function(oe){var J=this,Se=this._readableState,ye=!1;oe.on("end",function(){if(l("wrapped end"),Se.decoder&&!Se.ended){var K=Se.decoder.end();K&&K.length&&J.push(K)}J.push(null)}),oe.on("data",function(K){if(l("wrapped data"),Se.decoder&&(K=Se.decoder.write(K)),!(Se.objectMode&&K==null)&&!(!Se.objectMode&&(!K||!K.length))){var ie=J.push(K);ie||(ye=!0,oe.pause())}});for(var xe in oe)this[xe]===void 0&&typeof oe[xe]=="function"&&(this[xe]=(function(ie){return function(){return oe[ie].apply(oe,arguments)}})(xe));for(var pe=0;pe<N.length;pe++)oe.on(N[pe],this.emit.bind(this,N[pe]));return this._read=function(K){l("wrapped _read",K),ye&&(ye=!1,oe.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=UEn()),k(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}}),T._fromList=te,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(oe,J){if(J.length===0)return null;var Se;return J.objectMode?Se=J.buffer.shift():!oe||oe>=J.length?(J.decoder?Se=J.buffer.join(""):J.buffer.length===1?Se=J.buffer.first():Se=J.buffer.concat(J.length),J.buffer.clear()):Se=J.buffer.consume(oe,J.decoder),Se}function ue(oe){var J=oe._readableState;l("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,Kn.nextTick(fe,J,oe))}function fe(oe,J){if(l("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&oe.length===0&&(oe.endEmitted=!0,J.readable=!1,J.emit("end"),oe.autoDestroy)){var Se=J._writableState;(!Se||Se.autoDestroy&&Se.finished)&&J.destroy()}}typeof Symbol=="function"&&(T.from=function(oe,J){return S===void 0&&(S=zEn()),S(T,oe,J)});function ge(oe,J){for(var Se=0,ye=oe.length;Se<ye;Se++)if(oe[Se]===J)return Se;return-1}return qQ}var GQ,T2e;function htt(){if(T2e)return GQ;T2e=1,GQ=s;var t=UC().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,r=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,a=PS();d1()(s,a);function o(u,f){var h=this._transformState;h.transforming=!1;var m=h.writecb;if(m===null)return this.emit("error",new n);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),m(u);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);a.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){c(u,f,h)}):c(this,null,null)}s.prototype.push=function(u,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,u,f)},s.prototype._transform=function(u,f,h){h(new e("_transform()"))},s.prototype._write=function(u,f,h){var m=this._transformState;if(m.writecb=h,m.writechunk=u,m.writeencoding=f,!m.transforming){var A=this._readableState;(m.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},s.prototype._read=function(u){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(u,f){a.prototype._destroy.call(this,u,function(h){f(h)})};function c(u,f,h){if(f)return u.emit("error",f);if(h!=null&&u.push(h),u._writableState.length)throw new i;if(u._transformState.transforming)throw new r;return u.push(null)}return GQ}var WQ,O2e;function HEn(){if(O2e)return WQ;O2e=1,WQ=e;var t=htt();d1()(e,t);function e(n){if(!(this instanceof e))return new e(n);t.call(this,n)}return e.prototype._transform=function(n,r,i){i(null,n)},WQ}var KQ,B2e;function VEn(){if(B2e)return KQ;B2e=1;var t;function e(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var n=UC().codes,r=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function a(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,m,A,p){p=e(p);var v=!1;h.on("close",function(){v=!0}),t===void 0&&(t=lle()),t(h,{readable:m,writable:A},function(x){if(x)return p(x);v=!0,p()});var y=!1;return function(x){if(!v&&!y){if(y=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();p(x||new i("pipe"))}}}function l(h){h()}function c(h,m){return h.pipe(m)}function u(h){return!h.length||typeof h[h.length-1]!="function"?a:h.pop()}function f(){for(var h=arguments.length,m=new Array(h),A=0;A<h;A++)m[A]=arguments[A];var p=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var v,y=m.map(function(x,k){var S=k<m.length-1,C=k>0;return s(x,S,C,function(N){v||(v=N),N&&y.forEach(l),!S&&(y.forEach(l),p(v))})});return m.reduce(c)}return KQ=f,KQ}var YQ,j2e;function QEn(){if(j2e)return YQ;j2e=1,YQ=n;var t=sle().EventEmitter,e=d1();e(n,t),n.Readable=ftt(),n.Writable=dtt(),n.Duplex=PS(),n.Transform=htt(),n.PassThrough=HEn(),n.finished=lle(),n.pipeline=VEn(),n.Stream=n;function n(){t.call(this)}return n.prototype.pipe=function(r,i){var a=this;function o(m){r.writable&&r.write(m)===!1&&a.pause&&a.pause()}a.on("data",o);function s(){a.readable&&a.resume&&a.resume()}r.on("drain",s),!r._isStdio&&(!i||i.end!==!1)&&(a.on("end",c),a.on("close",u));var l=!1;function c(){l||(l=!0,r.end())}function u(){l||(l=!0,typeof r.destroy=="function"&&r.destroy())}function f(m){if(h(),t.listenerCount(this,"error")===0)throw m}a.on("error",f),r.on("error",f);function h(){a.removeListener("data",o),r.removeListener("drain",s),a.removeListener("end",c),a.removeListener("close",u),a.removeListener("error",f),r.removeListener("error",f),a.removeListener("end",h),a.removeListener("close",h),r.removeListener("close",h)}return a.on("end",h),a.on("close",h),r.on("close",h),r.emit("pipe",a),r},YQ}var I2e;function qEn(){return I2e||(I2e=1,(function(t){var e=l0().Buffer,n=pEn(),r=ott(),i=t.exports;i.encodings=null,i.defaultCharUnicode="�",i.defaultCharSingleByte="?",i.encode=function(s,l,c){s=""+(s||"");var u=i.getEncoder(l,c),f=u.write(s),h=u.end();return h&&h.length>0?e.concat([f,h]):f},i.decode=function(s,l,c){typeof s=="string"&&(i.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),i.skipDecodeWarning=!0),s=e.from(""+(s||""),"binary"));var u=i.getDecoder(l,c),f=u.write(s),h=u.end();return h?f+h:f},i.encodingExists=function(s){try{return i.getCodec(s),!0}catch{return!1}},i.toEncoding=i.encode,i.fromEncoding=i.decode,i._codecDataCache={__proto__:null},i.getCodec=function(s){if(!i.encodings){var l=BEn();i.encodings={__proto__:null},r(i.encodings,l)}for(var c=i._canonicalizeEncoding(s),u={};;){var f=i._codecDataCache[c];if(f)return f;var h=i.encodings[c];switch(typeof h){case"string":c=h;break;case"object":for(var m in h)u[m]=h[m];u.encodingName||(u.encodingName=c),c=h.type;break;case"function":return u.encodingName||(u.encodingName=c),f=new h(u,i),i._codecDataCache[u.encodingName]=f,f;default:throw new Error("Encoding not recognized: '"+s+"' (searched as: '"+c+"')")}}},i._canonicalizeEncoding=function(o){return(""+o).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},i.getEncoder=function(s,l){var c=i.getCodec(s),u=new c.encoder(l,c);return c.bomAware&&l&&l.addBOM&&(u=new n.PrependBOM(u,l)),u},i.getDecoder=function(s,l){var c=i.getCodec(s),u=new c.decoder(l,c);return c.bomAware&&!(l&&l.stripBOM===!1)&&(u=new n.StripBOM(u,l)),u},i.enableStreamingAPI=function(s){if(!i.supportsStreams){var l=jEn()(s);i.IconvLiteEncoderStream=l.IconvLiteEncoderStream,i.IconvLiteDecoderStream=l.IconvLiteDecoderStream,i.encodeStream=function(u,f){return new i.IconvLiteEncoderStream(i.getEncoder(u,f),f)},i.decodeStream=function(u,f){return new i.IconvLiteDecoderStream(i.getDecoder(u,f),f)},i.supportsStreams=!0}};var a;try{a=QEn()}catch{}a&&a.Transform?i.enableStreamingAPI(a):i.encodeStream=i.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}})(AQ)),AQ.exports}var GEn=qEn();const P2e=Ti(GEn);function mtt({open:t,onOpenChange:e}){const n=One(new Date),r=$t(y3(n),"yyyy-MM-dd"),i=$t(CLe(n),"yyyy-MM-dd"),[a,o]=w.useState(r),[s,l]=w.useState(i),[c,u]=w.useState(!1),[f,h]=w.useState(""),[m,A]=on({pause:!0,query:zFt,variables:{fromDate:a,toDate:s}});w.useEffect(()=>{if(c&&!m.fetching){if(m.error){h("Failed to fetch uniform format data. Please try again."),console.error("GraphQL error:",m.error),u(!1);return}if(m.data?.uniformFormat){const{bkmvdata:y,ini:x}=m.data.uniformFormat;if(!y||!x){h("Incomplete data received from the server. Please try again."),u(!1);return}const k=new File([new Uint8Array(P2e.encode(y,"ISO-8859-8"))],"bkmvdata.txt",{type:"text/plain"}),S=new File([new Uint8Array(P2e.encode(x,"ISO-8859-8"))],"ini.txt",{type:"text/plain"});YY(S),setTimeout(()=>YY(k),100),e(!1),o(r),l(i),u(!1)}else m.stale&&!m.data?.uniformFormat&&(h("No data returned from the server. Please try again."),u(!1))}},[m,c,a,s,r,i,e]);const p=async y=>{if(y.preventDefault(),h(""),!a||!s){h("Please select both from and to dates");return}const x=new Date(a),k=new Date(s);if(x>=k){h("From date must be before to date");return}if(k>new Date){h("To date cannot be in the future");return}u(!0);try{A({requestPolicy:"network-only"})}catch(S){h("Failed to generate files. Please try again."),console.error("Error generating files:",S),u(!1)}},v=y=>{c||(e(y),y||(o(r),l(i),h("")))};return d.jsx(Wa,{open:t,onOpenChange:v,children:d.jsxs(Ka,{className:"sm:max-w-md",children:[d.jsxs(ws,{children:[d.jsxs(ks,{className:"flex items-center gap-2",children:[d.jsx(cS,{className:"h-5 w-5"}),"Generate Uniform Files"]}),d.jsx(gVe,{children:"Select the date range to generate and download uniform files."})]}),d.jsxs("form",{onSubmit:p,className:"space-y-4",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Rn,{htmlFor:"from-date",children:"From Date"}),d.jsx(kn,{id:"from-date",type:"date",value:a,onChange:y=>o(y.target.value),disabled:c,required:!0})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Rn,{htmlFor:"to-date",children:"To Date"}),d.jsx(kn,{id:"to-date",type:"date",value:s,onChange:y=>l(y.target.value),disabled:c,required:!0})]})]}),f&&d.jsx("div",{className:"text-sm text-red-600 bg-red-50 p-3 rounded-md",children:f}),d.jsxs(qy,{className:"gap-2",children:[d.jsx(qe,{type:"button",variant:"outline",onClick:()=>v(!1),disabled:c,children:"Cancel"}),d.jsx(qe,{type:"submit",disabled:c,className:"gap-2",children:c?d.jsxs(d.Fragment,{children:[d.jsx(ai,{className:"h-4 w-4 animate-spin"}),"Generating..."]}):d.jsxs(d.Fragment,{children:[d.jsx(jne,{className:"h-4 w-4"}),"Generate & Download"]})})]})]})]})})}function WEn({...t}){return d.jsx(eL,{"data-slot":"sheet",...t})}function KEn({...t}){return d.jsx(Jie,{"data-slot":"sheet-trigger",...t})}function YEn({...t}){return d.jsx(tL,{"data-slot":"sheet-portal",...t})}function XEn({className:t,...e}){return d.jsx(nL,{"data-slot":"sheet-overlay",className:Ct("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1001 bg-black/50",t),...e})}function ZEn({className:t,children:e,side:n="right",...r}){return d.jsxs(YEn,{children:[d.jsx(XEn,{}),d.jsxs(rL,{"data-slot":"sheet-content",className:Ct("bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-1001 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-gray-950",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,d.jsxs(AVe,{className:"ring-offset-white focus:ring-gray-950 data-[state=open]:bg-gray-100 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none dark:ring-offset-gray-950 dark:focus:ring-gray-300 dark:data-[state=open]:bg-gray-800",children:[d.jsx(Qx,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}var e8="Collapsible",[JEn,ptt]=Cc(e8),[eFn,cle]=JEn(e8),Att=w.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=t,[l,c]=Pd({prop:r,defaultProp:i??!1,onChange:o,caller:e8});return d.jsx(eFn,{scope:n,disabled:a,contentId:Rs(),open:l,onOpenToggle:w.useCallback(()=>c(u=>!u),[c]),children:d.jsx(wn.div,{"data-state":hle(l),"data-disabled":a?"":void 0,...s,ref:e})})});Att.displayName=e8;var gtt="CollapsibleTrigger",ule=w.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,i=cle(gtt,n);return d.jsx(wn.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":hle(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:e,onClick:ln(t.onClick,i.onOpenToggle)})});ule.displayName=gtt;var dle="CollapsibleContent",fle=w.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=cle(dle,t.__scopeCollapsible);return d.jsx(cl,{present:n||i.open,children:({present:a})=>d.jsx(tFn,{...r,ref:e,present:a})})});fle.displayName=dle;var tFn=w.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=t,o=cle(dle,n),[s,l]=w.useState(r),c=w.useRef(null),u=$r(e,c),f=w.useRef(0),h=f.current,m=w.useRef(0),A=m.current,p=o.open||s,v=w.useRef(p),y=w.useRef(void 0);return w.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),bs(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const k=x.getBoundingClientRect();f.current=k.height,m.current=k.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[o.open,r]),d.jsx(wn.div,{"data-state":hle(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...t.style},children:p&&i})});function hle(t){return t?"open":"closed"}var vtt=Att,nFn=ule,rFn=fle;function iFn({...t}){return d.jsx(vtt,{"data-slot":"collapsible",...t})}function aFn({...t}){return d.jsx(ule,{"data-slot":"collapsible-trigger",...t})}function oFn({...t}){return d.jsx(fle,{"data-slot":"collapsible-content",...t})}var NJ=["Enter"," "],sFn=["ArrowDown","PageUp","Home"],ytt=["ArrowUp","PageDown","End"],lFn=[...sFn,...ytt],cFn={ltr:[...NJ,"ArrowRight"],rtl:[...NJ,"ArrowLeft"]},uFn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},FT="Menu",[dF,dFn,fFn]=jL(FT),[f1,btt]=Cc(FT,[fFn,Wy,s6]),t8=Wy(),xtt=s6(),[hFn,h1]=f1(FT),[mFn,DT]=f1(FT),wtt=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=t,s=t8(e),[l,c]=w.useState(null),u=w.useRef(!1),f=wl(a),h=OC(i);return w.useEffect(()=>{const m=()=>{u.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>u.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),d.jsx(uL,{...s,children:d.jsx(hFn,{scope:e,open:n,onOpenChange:f,content:l,onContentChange:c,children:d.jsx(mFn,{scope:e,onClose:w.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:h,modal:o,children:r})})})};wtt.displayName=FT;var pFn="MenuAnchor",mle=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=t8(n);return d.jsx(MD,{...i,...r,ref:e})});mle.displayName=pFn;var ple="MenuPortal",[AFn,ktt]=f1(ple,{forceMount:void 0}),Stt=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:i}=t,a=h1(ple,e);return d.jsx(AFn,{scope:e,forceMount:n,children:d.jsx(cl,{present:n||a.open,children:d.jsx(NC,{asChild:!0,container:i,children:r})})})};Stt.displayName=ple;var Rf="MenuContent",[gFn,Ale]=f1(Rf),Ctt=w.forwardRef((t,e)=>{const n=ktt(Rf,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,a=h1(Rf,t.__scopeMenu),o=DT(Rf,t.__scopeMenu);return d.jsx(dF.Provider,{scope:t.__scopeMenu,children:d.jsx(cl,{present:r||a.open,children:d.jsx(dF.Slot,{scope:t.__scopeMenu,children:o.modal?d.jsx(vFn,{...i,ref:e}):d.jsx(yFn,{...i,ref:e})})})})}),vFn=w.forwardRef((t,e)=>{const n=h1(Rf,t.__scopeMenu),r=w.useRef(null),i=$r(e,r);return w.useEffect(()=>{const a=r.current;if(a)return o3(a)},[]),d.jsx(gle,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ln(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),yFn=w.forwardRef((t,e)=>{const n=h1(Rf,t.__scopeMenu);return d.jsx(gle,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bFn=ky("MenuContent.ScrollLock"),gle=w.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:A,...p}=t,v=h1(Rf,n),y=DT(Rf,n),x=t8(n),k=xtt(n),S=dFn(n),[C,N]=w.useState(null),E=w.useRef(null),D=$r(e,E,v.onContentChange),T=w.useRef(0),I=w.useRef(""),O=w.useRef(0),B=w.useRef(null),M=w.useRef("right"),$=w.useRef(0),U=A?cC:w.Fragment,P=A?{as:bFn,allowPinchZoom:!0}:void 0,Q=X=>{const he=I.current+X,ne=S().filter(te=>!te.disabled),H=document.activeElement,W=ne.find(te=>te.ref.current===H)?.textValue,q=ne.map(te=>te.textValue),Z=OFn(q,he,W),re=ne.find(te=>te.textValue===Z)?.ref.current;(function te(ue){I.current=ue,window.clearTimeout(T.current),ue!==""&&(T.current=window.setTimeout(()=>te(""),1e3))})(he),re&&setTimeout(()=>re.focus())};w.useEffect(()=>()=>window.clearTimeout(T.current),[]),Z3();const G=w.useCallback(X=>M.current===B.current?.side&&jFn(X,B.current?.area),[]);return d.jsx(gFn,{scope:n,searchRef:I,onItemEnter:w.useCallback(X=>{G(X)&&X.preventDefault()},[G]),onItemLeave:w.useCallback(X=>{G(X)||(E.current?.focus(),N(null))},[G]),onTriggerLeave:w.useCallback(X=>{G(X)&&X.preventDefault()},[G]),pointerGraceTimerRef:O,onPointerGraceIntentChange:w.useCallback(X=>{B.current=X},[]),children:d.jsx(U,{...P,children:d.jsx(BD,{asChild:!0,trapped:i,onMountAutoFocus:ln(a,X=>{X.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:d.jsx(_C,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:d.jsx(qYe,{asChild:!0,...k,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:ln(l,X=>{y.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(dL,{role:"menu","aria-orientation":"vertical","data-state":Utt(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...p,ref:D,style:{outline:"none",...p.style},onKeyDown:ln(p.onKeyDown,X=>{const ne=X.target.closest("[data-radix-menu-content]")===X.currentTarget,H=X.ctrlKey||X.altKey||X.metaKey,W=X.key.length===1;ne&&(X.key==="Tab"&&X.preventDefault(),!H&&W&&Q(X.key));const q=E.current;if(X.target!==q||!lFn.includes(X.key))return;X.preventDefault();const re=S().filter(te=>!te.disabled).map(te=>te.ref.current);ytt.includes(X.key)&&re.reverse(),DFn(re)}),onBlur:ln(t.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(T.current),I.current="")}),onPointerMove:ln(t.onPointerMove,fF(X=>{const he=X.target,ne=$.current!==X.clientX;if(X.currentTarget.contains(he)&&ne){const H=X.clientX>$.current?"right":"left";M.current=H,$.current=X.clientX}}))})})})})})})});Ctt.displayName=Rf;var xFn="MenuGroup",vle=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return d.jsx(wn.div,{role:"group",...r,ref:e})});vle.displayName=xFn;var wFn="MenuLabel",_tt=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return d.jsx(wn.div,{...r,ref:e})});_tt.displayName=wFn;var qR="MenuItem",M2e="menu.itemSelect",n8=w.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...i}=t,a=w.useRef(null),o=DT(qR,t.__scopeMenu),s=Ale(qR,t.__scopeMenu),l=$r(e,a),c=w.useRef(!1),u=()=>{const f=a.current;if(!n&&f){const h=new CustomEvent(M2e,{bubbles:!0,cancelable:!0});f.addEventListener(M2e,m=>r?.(m),{once:!0}),d6e(f,h),h.defaultPrevented?c.current=!1:o.onClose()}};return d.jsx(Ntt,{...i,ref:l,disabled:n,onClick:ln(t.onClick,u),onPointerDown:f=>{t.onPointerDown?.(f),c.current=!0},onPointerUp:ln(t.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:ln(t.onKeyDown,f=>{const h=s.searchRef.current!=="";n||h&&f.key===" "||NJ.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});n8.displayName=qR;var Ntt=w.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=t,o=Ale(qR,n),s=xtt(n),l=w.useRef(null),c=$r(e,l),[u,f]=w.useState(!1),[h,m]=w.useState("");return w.useEffect(()=>{const A=l.current;A&&m((A.textContent??"").trim())},[a.children]),d.jsx(dF.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:d.jsx(GYe,{asChild:!0,...s,focusable:!r,children:d.jsx(wn.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:ln(t.onPointerMove,fF(A=>{r?o.onItemLeave(A):(o.onItemEnter(A),A.defaultPrevented||A.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ln(t.onPointerLeave,fF(A=>o.onItemLeave(A))),onFocus:ln(t.onFocus,()=>f(!0)),onBlur:ln(t.onBlur,()=>f(!1))})})})}),kFn="MenuCheckboxItem",Ett=w.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...i}=t;return d.jsx(Btt,{scope:t.__scopeMenu,checked:n,children:d.jsx(n8,{role:"menuitemcheckbox","aria-checked":GR(n)?"mixed":n,...i,ref:e,"data-state":ble(n),onSelect:ln(i.onSelect,()=>r?.(GR(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ett.displayName=kFn;var Ftt="MenuRadioGroup",[SFn,CFn]=f1(Ftt,{value:void 0,onValueChange:()=>{}}),Dtt=w.forwardRef((t,e)=>{const{value:n,onValueChange:r,...i}=t,a=wl(r);return d.jsx(SFn,{scope:t.__scopeMenu,value:n,onValueChange:a,children:d.jsx(vle,{...i,ref:e})})});Dtt.displayName=Ftt;var Ttt="MenuRadioItem",Ott=w.forwardRef((t,e)=>{const{value:n,...r}=t,i=CFn(Ttt,t.__scopeMenu),a=n===i.value;return d.jsx(Btt,{scope:t.__scopeMenu,checked:a,children:d.jsx(n8,{role:"menuitemradio","aria-checked":a,...r,ref:e,"data-state":ble(a),onSelect:ln(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ott.displayName=Ttt;var yle="MenuItemIndicator",[Btt,_Fn]=f1(yle,{checked:!1}),jtt=w.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...i}=t,a=_Fn(yle,n);return d.jsx(cl,{present:r||GR(a.checked)||a.checked===!0,children:d.jsx(wn.span,{...i,ref:e,"data-state":ble(a.checked)})})});jtt.displayName=yle;var NFn="MenuSeparator",Itt=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return d.jsx(wn.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});Itt.displayName=NFn;var EFn="MenuArrow",Ptt=w.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=t8(n);return d.jsx(fL,{...i,...r,ref:e})});Ptt.displayName=EFn;var FFn="MenuSub",[uYn,Mtt]=f1(FFn),d2="MenuSubTrigger",Rtt=w.forwardRef((t,e)=>{const n=h1(d2,t.__scopeMenu),r=DT(d2,t.__scopeMenu),i=Mtt(d2,t.__scopeMenu),a=Ale(d2,t.__scopeMenu),o=w.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:t.__scopeMenu},u=w.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return w.useEffect(()=>u,[u]),w.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),d.jsx(mle,{asChild:!0,...c,children:d.jsx(Ntt,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Utt(n.open),...t,ref:gg(e,i.onTriggerChange),onClick:f=>{t.onClick?.(f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ln(t.onPointerMove,fF(f=>{a.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:ln(t.onPointerLeave,fF(f=>{u();const h=n.content?.getBoundingClientRect();if(h){const m=n.content?.dataset.side,A=m==="right",p=A?-5:5,v=h[A?"left":"right"],y=h[A?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+p,y:f.clientY},{x:v,y:h.top},{x:y,y:h.top},{x:y,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ln(t.onKeyDown,f=>{const h=a.searchRef.current!=="";t.disabled||h&&f.key===" "||cFn[r.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});Rtt.displayName=d2;var $tt="MenuSubContent",Ltt=w.forwardRef((t,e)=>{const n=ktt(Rf,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,a=h1(Rf,t.__scopeMenu),o=DT(Rf,t.__scopeMenu),s=Mtt($tt,t.__scopeMenu),l=w.useRef(null),c=$r(e,l);return d.jsx(dF.Provider,{scope:t.__scopeMenu,children:d.jsx(cl,{present:r||a.open,children:d.jsx(dF.Slot,{scope:t.__scopeMenu,children:d.jsx(gle,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:c,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{o.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ln(t.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ln(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ln(t.onKeyDown,u=>{const f=u.currentTarget.contains(u.target),h=uFn[o.dir].includes(u.key);f&&h&&(a.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});Ltt.displayName=$tt;function Utt(t){return t?"open":"closed"}function GR(t){return t==="indeterminate"}function ble(t){return GR(t)?"indeterminate":t?"checked":"unchecked"}function DFn(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function TFn(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function OFn(t,e,n){const i=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,a=n?t.indexOf(n):-1;let o=TFn(t,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function BFn(t,e){const{x:n,y:r}=t;let i=!1;for(let a=0,o=e.length-1;a<e.length;o=a++){const s=e[a],l=e[o],c=s.x,u=s.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function jFn(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return BFn(n,e)}function fF(t){return e=>e.pointerType==="mouse"?t(e):void 0}var IFn=wtt,PFn=mle,MFn=Stt,RFn=Ctt,$Fn=vle,LFn=_tt,UFn=n8,zFn=Ett,HFn=Dtt,VFn=Ott,QFn=jtt,qFn=Itt,GFn=Ptt,WFn=Rtt,KFn=Ltt,r8="DropdownMenu",[YFn]=Cc(r8,[btt]),tu=btt(),[XFn,ztt]=YFn(r8),Htt=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,l=tu(e),c=w.useRef(null),[u,f]=Pd({prop:i,defaultProp:a??!1,onChange:o,caller:r8});return d.jsx(XFn,{scope:e,triggerId:Rs(),triggerRef:c,contentId:Rs(),open:u,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(h=>!h),[f]),modal:s,children:d.jsx(IFn,{...l,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};Htt.displayName=r8;var Vtt="DropdownMenuTrigger",Qtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=t,a=ztt(Vtt,n),o=tu(n);return d.jsx(PFn,{asChild:!0,...o,children:d.jsx(wn.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:gg(e,a.triggerRef),onPointerDown:ln(t.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:ln(t.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Qtt.displayName=Vtt;var ZFn="DropdownMenuPortal",qtt=t=>{const{__scopeDropdownMenu:e,...n}=t,r=tu(e);return d.jsx(MFn,{...r,...n})};qtt.displayName=ZFn;var Gtt="DropdownMenuContent",Wtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=ztt(Gtt,n),a=tu(n),o=w.useRef(!1);return d.jsx(RFn,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:e,onCloseAutoFocus:ln(t.onCloseAutoFocus,s=>{o.current||i.triggerRef.current?.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:ln(t.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wtt.displayName=Gtt;var JFn="DropdownMenuGroup",Ktt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx($Fn,{...i,...r,ref:e})});Ktt.displayName=JFn;var eDn="DropdownMenuLabel",Ytt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(LFn,{...i,...r,ref:e})});Ytt.displayName=eDn;var tDn="DropdownMenuItem",Xtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(UFn,{...i,...r,ref:e})});Xtt.displayName=tDn;var nDn="DropdownMenuCheckboxItem",Ztt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(zFn,{...i,...r,ref:e})});Ztt.displayName=nDn;var rDn="DropdownMenuRadioGroup",iDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(HFn,{...i,...r,ref:e})});iDn.displayName=rDn;var aDn="DropdownMenuRadioItem",oDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(VFn,{...i,...r,ref:e})});oDn.displayName=aDn;var sDn="DropdownMenuItemIndicator",Jtt=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(QFn,{...i,...r,ref:e})});Jtt.displayName=sDn;var lDn="DropdownMenuSeparator",ent=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(qFn,{...i,...r,ref:e})});ent.displayName=lDn;var cDn="DropdownMenuArrow",uDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(GFn,{...i,...r,ref:e})});uDn.displayName=cDn;var dDn="DropdownMenuSubTrigger",fDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(WFn,{...i,...r,ref:e})});fDn.displayName=dDn;var hDn="DropdownMenuSubContent",mDn=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=tu(n);return d.jsx(KFn,{...i,...r,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mDn.displayName=hDn;var pDn=Htt,ADn=Qtt,gDn=qtt,vDn=Wtt,yDn=Ktt,bDn=Ytt,xDn=Xtt,wDn=Ztt,kDn=Jtt,SDn=ent;function TT({...t}){return d.jsx(pDn,{"data-slot":"dropdown-menu",...t})}function OT({...t}){return d.jsx(ADn,{"data-slot":"dropdown-menu-trigger",...t})}function BT({className:t,sideOffset:e=4,...n}){return d.jsx(gDn,{children:d.jsx(vDn,{"data-slot":"dropdown-menu-content",sideOffset:e,className:Ct("bg-white text-gray-950 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1001 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-gray-200 p-1 shadow-md dark:bg-gray-950 dark:text-gray-50 dark:border-gray-800",t),...n})})}function CDn({...t}){return d.jsx(yDn,{"data-slot":"dropdown-menu-group",...t})}function lg({className:t,inset:e,variant:n="default",...r}){return d.jsx(xDn,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":n,className:Ct("focus:bg-gray-100 focus:text-gray-900 data-[variant=destructive]:text-red-500 data-[variant=destructive]:focus:bg-red-500/10 dark:data-[variant=destructive]:focus:bg-red-500/20 data-[variant=destructive]:focus:text-red-500 data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-gray-500 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-gray-800 dark:focus:text-gray-50 dark:data-[variant=destructive]:text-red-900 dark:data-[variant=destructive]:focus:bg-red-900/10 dark:dark:data-[variant=destructive]:focus:bg-red-900/20 dark:data-[variant=destructive]:focus:text-red-900 dark:[&_svg:not([class*='text-'])]:text-gray-400",t),...r})}function _Dn({className:t,children:e,checked:n,...r}){return d.jsxs(wDn,{"data-slot":"dropdown-menu-checkbox-item",className:Ct("focus:bg-gray-100 focus:text-gray-900 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:focus:bg-gray-800 dark:focus:text-gray-50",t),checked:n,...r,children:[d.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:d.jsx(kDn,{children:d.jsx(Ls,{className:"size-4"})})}),e]})}function xle({className:t,inset:e,...n}){return d.jsx(bDn,{"data-slot":"dropdown-menu-label","data-inset":e,className:Ct("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...n})}function wle({className:t,...e}){return d.jsx(SDn,{"data-slot":"dropdown-menu-separator",className:Ct("bg-gray-200 -mx-1 my-1 h-px dark:bg-gray-800",t),...e})}function R2e({className:t,...e}){return d.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:Ct("text-gray-500 ml-auto text-xs tracking-widest dark:text-gray-400",t),...e})}function tnt({links:t,isCollapsed:e,closeNav:n}){const r=({sub:i,...a})=>{const o=`${a.title}-${a.href}`;return e&&i?w.createElement(FDn,{...a,sub:i,key:o,closeNav:n}):e?w.createElement(EDn,{...a,key:o,closeNav:n}):i?w.createElement(NDn,{...a,sub:i,key:o,closeNav:n}):w.createElement(nnt,{...a,key:o,closeNav:n})};return d.jsx(jYe,{className:"h-screen pb-40",children:d.jsx(pL,{delayDuration:0,children:d.jsx("nav",{className:"grid grid-cols-1 items-start gap-2",children:t.map(r)})})})}function nnt({title:t,icon:e,label:n,href:r,action:i,closeNav:a,subLink:o=!1}){return i?d.jsxs("button",{onClick:()=>{i(),a()},className:Ct(vg({variant:"ghost",size:"sm"}),"h-12 font-semibold tracking-tight justify-start text-wrap rounded-none px-6 w-full",o&&"h-10 w-full border-l border-l-slate-500 px-2"),children:[d.jsx("div",{className:"mr-2",children:e}),t,n&&d.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:n})]}):d.jsxs(oC,{to:r,onClick:a,className:Ct(vg({variant:"ghost",size:"sm"}),"h-12 font-semibold tracking-tight justify-start text-wrap rounded-none px-6",o&&"h-10 w-full border-l border-l-slate-500 px-2"),"aria-current":"page",children:[d.jsx("div",{className:"mr-2",children:e}),t,n&&d.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:n})]})}function NDn({title:t,icon:e,label:n,sub:r,closeNav:i}){const a=!!r?.find(o=>o.href===window.location.pathname);return d.jsxs(iFn,{defaultOpen:a,children:[d.jsxs(aFn,{className:Ct(vg({variant:"ghost",size:"sm"}),"group h-12 w-full justify-start rounded-none px-6"),children:[d.jsx("div",{className:"mr-2",children:e}),d.jsx("div",{className:"font-semibold tracking-tight",children:t}),n&&d.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:n}),d.jsx("span",{className:Ct('ml-auto transition-all group-data-[state="open"]:-rotate-180'),children:d.jsx(ei,{})})]}),d.jsx(oFn,{className:"collapsibleDropdown",asChild:!0,children:d.jsx("ul",{children:r.map(o=>d.jsx("li",{className:"my-1 ml-8",children:d.jsx(nnt,{...o,subLink:!0,closeNav:i})},o.title))})})]})}function EDn({title:t,icon:e,label:n,href:r,action:i}){return d.jsxs(Ig,{delayDuration:0,children:[d.jsx(Pg,{asChild:!0,children:i?d.jsxs(qe,{variant:"ghost",size:"icon",className:"h-12 w-12",onClick:i,children:[e,d.jsx("span",{className:"sr-only",children:t})]}):d.jsxs(oC,{to:r,className:Ct(vg({variant:"ghost",size:"icon"}),"h-12 w-12"),children:[e,d.jsx("span",{className:"sr-only",children:t})]})}),d.jsxs(Mg,{side:"right",className:"flex font-semibold tracking-tight items-center gap-4",children:[t,n&&d.jsx("span",{className:"ml-auto text-muted-foreground",children:n})]})]})}function FDn({title:t,icon:e,label:n,sub:r}){const i=!!r?.find(a=>a.href===window.location.pathname);return d.jsxs(TT,{children:[d.jsxs(Ig,{delayDuration:0,children:[d.jsx(Pg,{asChild:!0,children:d.jsx(OT,{asChild:!0,children:d.jsx(qe,{variant:i?"secondary":"ghost",size:"icon",className:"h-12 w-12",children:e})})}),d.jsxs(Mg,{side:"right",className:"flex font-semibold tracking-tight items-center gap-4",children:[t," ",n&&d.jsx("span",{className:"ml-auto text-muted-foreground",children:n}),d.jsx(ei,{size:18,className:"-rotate-90 text-muted-foreground"})]})]}),d.jsxs(BT,{side:"right",align:"start",sideOffset:4,children:[d.jsxs(xle,{children:[t," ",n?`(${n})`:""]}),d.jsx(wle,{}),r.map(({title:a,icon:o,label:s,href:l,action:c})=>d.jsx(lg,{asChild:!c,children:c?d.jsxs("button",{onClick:c,className:Ct(vg({variant:"ghost",size:"sm"}),"flex h-12 cursor-pointer justify-start text-wrap rounded-none px-6 w-full"),children:[o," ",d.jsx("span",{className:"ml-2 max-w-52 text-wrap font-semibold tracking-tight",children:a}),s&&d.jsx("span",{className:"ml-auto text-xs",children:s})]}):d.jsxs(oC,{to:l,className:Ct(vg({variant:"ghost",size:"sm"}),"flex h-12 cursor-pointer justify-start text-wrap rounded-none px-6"),children:[o," ",d.jsx("span",{className:"ml-2 max-w-52 text-wrap font-semibold tracking-tight",children:a}),s&&d.jsx("span",{className:"ml-auto text-xs",children:s})]})},`${a}-${l||a}`))]})]})}const WR=[{title:"Charges",label:"",href:"",icon:d.jsx(Ek,{size:18}),sub:[{title:"All Charges",label:"",href:"/charges",icon:d.jsx(Ek,{size:18})},{title:"Missing Info Charges",label:"",href:"/missing-info-charges",icon:d.jsx(qjt,{size:18})},{title:"Ledger Validation",label:"",href:"/charges-ledger-validation",icon:d.jsx(Q5t,{size:18})}]},{title:"Reports",label:"",href:"",icon:d.jsx(Hjt,{size:18}),sub:[{title:"VAT Monthly Report",label:"",href:"/reports/vat-monthly",icon:d.jsx(Ek,{size:18})},{title:"Trial Balance Report",label:"",href:"/reports/trial-balance",icon:d.jsx(zLe,{size:18})},{title:"Conto Report",label:"",href:"/reports/conto",icon:d.jsx(Ujt,{size:18})},{title:"Profit and Loss Report",label:"",href:"/reports/profit-and-loss",icon:d.jsx(qY,{size:18})},{title:"Tax Report",label:"",href:"/reports/tax",icon:d.jsx(Cve,{size:18})},{title:"Corporate Tax Ruling Compliance Report",label:"",href:"/reports/corporate-tax-ruling-compliance",icon:d.jsx(Cve,{size:18})},{title:"Depreciation Report",label:"",href:"/reports/depreciation",icon:d.jsx(iBt,{size:18})},{title:"Shaam 6111 Report",label:"",href:"/reports/shaam6111",icon:d.jsx(qY,{size:18})},{title:"Accountant Approvals",label:"",href:"/accountant-approvals",icon:d.jsx(Z5t,{size:18})},{title:"Yearly Ledger Report",label:"",href:"/reports/yearly-ledger",icon:d.jsx(Yjt,{size:18})},{title:"Transactions Balance",label:"",href:"/reports/balance",icon:d.jsx(oBt,{size:18})},{title:"Validate Reports",label:"",href:"/reports/validate-reports",icon:d.jsx(lBt,{size:18})},{title:"Generate Uniform Files",label:"",icon:d.jsx(jne,{size:18})}]},{title:"Financial Entities",label:"",href:"",icon:d.jsx($Le,{size:18}),sub:[{title:"Businesses",label:"",href:"/businesses",icon:d.jsx(zBt,{size:18})},{title:"Business Transactions",label:"",href:"/business-transactions",icon:d.jsx(M5t,{size:18})},{title:"Tax Categories",label:"",href:"/tax-categories",icon:d.jsx(B5t,{size:18})},{title:"Sort Codes",label:"",href:"/sort-codes",icon:d.jsx(G5t,{size:18})}]},{title:"Documents",label:"",href:"",icon:d.jsx(Sve,{size:18}),sub:[{href:"/documents",title:"All Documents",label:"",icon:d.jsx(Sve,{size:18})},{title:"Issue Documents",label:"",href:"/documents/issue-documents",icon:d.jsx(bve,{size:18})},{title:"Issue Document",label:"",href:"/documents/issue-document",icon:d.jsx(bve,{size:18})}]},{href:"/business-trips",title:"Business Trips",label:"",icon:d.jsx(jjt,{size:18})},{title:"Charts",label:"",href:"",icon:d.jsx(Uz,{size:18}),sub:[{title:"Main",label:"",href:"/charts/",icon:d.jsx(Uz,{size:18})},{title:"Monthly Income/Expense",label:"",href:"/charts/monthly-income-expense",icon:d.jsx(Uz,{size:18})}]},{href:"/salaries",title:"Salaries",label:"",icon:d.jsx(z5t,{size:18})},{href:"/tags",title:"Tags",label:"",icon:d.jsx(lIt,{size:18})}];function DDn(){const[t,e]=w.useState(!1),[n,r]=w.useState(!1),i=WR.map(a=>a.sub?{...a,sub:a.sub.map(o=>o.title==="Generate Uniform Files"?{...o,action:()=>{e(!1),r(!0)}}:o)}:a);return d.jsxs(d.Fragment,{children:[d.jsxs(WEn,{open:t,onOpenChange:e,children:[d.jsx(KEn,{asChild:!0,children:d.jsx(Cjt,{})}),d.jsx(ZEn,{side:"left",className:"px-0!",children:d.jsx("div",{className:"space-y-4 py-4",children:d.jsxs("div",{className:"px-3 py-2",children:[d.jsx("h2",{className:"mb-2 px-4 text-lg font-semibold tracking-tight",children:"Overview"}),d.jsx("div",{className:"space-y-1",children:d.jsx(tnt,{isCollapsed:!1,links:i,closeNav:()=>e(!1)})})]})})})]}),d.jsx(mtt,{open:n,onOpenChange:r})]})}const XQ="mergeChargesByTransactionReference",TDn=()=>{const[{fetching:t},e]=zn(NDt),[{fetching:n},r]=zn(EDt),[{fetching:i},a]=zn(FDt),o=w.useCallback(async()=>{let s="Error flagging foreign fee transactions";const l=`${XQ}-fees`,c=`${XQ}-merge`,u=`${XQ}-debit-date`;Ve.loading("Flagging Fees",{id:l});try{const f=await e({}),h=Hn(f,s,l);if(!h)return;if(!h.flagForeignFeeTransactions.success){console.error(`${s} ${h.flagForeignFeeTransactions.errors?`:
988
988
  `+h.flagForeignFeeTransactions.errors?.join(`
989
989
  `):""}`),Ve.error("Error",{id:l,description:s});return}Ve.success("Success",{id:l,description:"Foreign fee transactions were successfully tagged"}),s="Error auto-merging charges",Ve.loading("Merging Charges",{id:c});const m=await r({}),A=Hn(m,s,c);if(!A)return;if(!A.mergeChargesByTransactionReference.success){console.error(`${s} ${A.mergeChargesByTransactionReference.errors?`:
990
990
  `+A.mergeChargesByTransactionReference.errors?.join(`